@sendbird/uikit-react 3.14.4 → 3.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +3 -0
- package/App.js +83 -83
- package/CHANGELOG.md +8 -0
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +63 -63
- package/Channel/components/FileViewer.js +29 -29
- package/Channel/components/FrozenNotification.js +6 -5
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +57 -54
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +46 -46
- package/Channel/components/MessageInputWrapper.js +41 -41
- package/Channel/components/MessageList.js +59 -59
- package/Channel/components/RemoveMessageModal.js +28 -28
- package/Channel/components/SuggestedMentionList.js +26 -26
- package/Channel/components/TypingIndicator.js +6 -6
- package/Channel/components/UnreadCount.js +7 -7
- package/Channel/context.js +107 -133
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +15 -15
- package/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/Channel/utils/compareMessagesForGrouping.js +4 -4
- package/Channel/utils/getMessagePartsInfo.js +8 -8
- package/Channel.js +63 -63
- package/ChannelList/components/AddChannel.js +22 -22
- package/ChannelList/components/ChannelListHeader.js +10 -10
- package/ChannelList/components/ChannelListUI.js +36 -36
- package/ChannelList/components/ChannelPreview.js +28 -28
- package/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/ChannelList/context.js +9 -9
- package/ChannelList.js +35 -35
- package/ChannelSettings/components/ChannelProfile.js +20 -20
- package/ChannelSettings/components/ChannelSettingsHeader.js +8 -8
- package/ChannelSettings/components/ChannelSettingsUI.js +26 -26
- package/ChannelSettings/components/EditDetailsModal.js +32 -27
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +16 -16
- package/ChannelSettings/components/ModerationPanel.js +39 -36
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +19 -19
- package/ChannelSettings/components/UserPanel.js +22 -22
- package/ChannelSettings/context.js +10 -5
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +23 -23
- package/CreateChannel/components/CreateChannelUI.js +19 -19
- package/CreateChannel/components/InviteUsers.js +28 -31
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +16 -16
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +18 -18
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +26 -22
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +10 -10
- package/CreateOpenChannel.js +16 -16
- package/EditUserProfile/components/EditUserProfileUI.js +26 -22
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile/context.js +12 -13
- package/EditUserProfile/context.js.map +1 -1
- package/EditUserProfile.js +17 -17
- package/GroupChannel/components/FileViewer.js +28 -29
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +7 -6
- package/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/GroupChannel/components/GroupChannelHeader.js +24 -24
- package/GroupChannel/components/GroupChannelUI.js +58 -58
- package/GroupChannel/components/Message.js +55 -52
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +41 -41
- package/GroupChannel/components/MessageList.js +53 -53
- package/GroupChannel/components/RemoveMessageModal.js +25 -25
- package/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/GroupChannel/components/TypingIndicator.js +6 -6
- package/GroupChannel/components/UnreadCount.js +8 -8
- package/GroupChannel/context.js +39 -31
- package/GroupChannel/context.js.map +1 -1
- package/GroupChannel.js +58 -58
- package/GroupChannelList/components/AddGroupChannel.js +20 -20
- package/GroupChannelList/components/GroupChannelListHeader.js +11 -11
- package/GroupChannelList/components/GroupChannelListItem.js +26 -26
- package/GroupChannelList/components/GroupChannelListUI.js +35 -35
- package/GroupChannelList/components/GroupChannelPreviewAction.js +14 -14
- package/GroupChannelList/context.js +5 -5
- package/GroupChannelList.js +34 -34
- package/MessageSearch/components/MessageSearchUI.js +21 -22
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +18 -10
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +24 -25
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +20 -20
- package/OpenChannel/components/OpenChannelInput.js +26 -26
- package/OpenChannel/components/OpenChannelMessage.js +37 -37
- package/OpenChannel/components/OpenChannelMessageList.js +43 -42
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +40 -40
- package/OpenChannel/context.js +19 -19
- package/OpenChannel.js +40 -40
- package/OpenChannelList/components/OpenChannelListUI.js +18 -18
- package/OpenChannelList/components/OpenChannelPreview.js +8 -8
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +18 -18
- package/OpenChannelSettings/components/EditDetailsModal.js +34 -30
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +19 -19
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +22 -22
- package/OpenChannelSettings/components/OperatorUI.js +56 -49
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +18 -18
- package/OpenChannelSettings/context.js +10 -5
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +20 -20
- package/SendbirdProvider.js +37 -43
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +52 -51
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +43 -41
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +9 -9
- package/Thread/components/ThreadList.js +48 -48
- package/Thread/components/ThreadListItem.js +56 -58
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +46 -46
- package/Thread/components/ThreadUI.js +60 -58
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +28 -38
- package/Thread/context.js.map +1 -1
- package/Thread.js +56 -56
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +17 -17
- package/VoiceRecorder/context.js +13 -13
- package/VoiceRecorder/useVoiceRecorder.js +20 -20
- package/chunks/{bundle-Diqj6For.js → bundle-3Mubyujl.js} +1 -1
- package/chunks/bundle-3Mubyujl.js.map +1 -0
- package/chunks/{bundle-C1hw1sij.js → bundle-B-DnYw4p.js} +4 -4
- package/chunks/bundle-B-DnYw4p.js.map +1 -0
- package/chunks/{bundle-B5N2u5f-.js → bundle-B3nNazhn.js} +1 -1
- package/chunks/bundle-B3nNazhn.js.map +1 -0
- package/chunks/{bundle-h3a36twH.js → bundle-B3sFrr1p.js} +4 -4
- package/chunks/bundle-B3sFrr1p.js.map +1 -0
- package/chunks/{bundle-BTkRy0wv.js → bundle-B3xB7_P4.js} +6 -5
- package/chunks/{bundle-BTkRy0wv.js.map → bundle-B3xB7_P4.js.map} +1 -1
- package/chunks/{bundle-D_eJq5Xk.js → bundle-B4izwMfD.js} +1 -1
- package/chunks/bundle-B4izwMfD.js.map +1 -0
- package/chunks/{bundle-2uJIsyo2.js → bundle-B65gr4tC.js} +1 -1
- package/chunks/bundle-B65gr4tC.js.map +1 -0
- package/chunks/{bundle-DDkUg3Os.js → bundle-B9ue8vfn.js} +6 -5
- package/chunks/bundle-B9ue8vfn.js.map +1 -0
- package/chunks/{bundle-Jir4hfa9.js → bundle-BFa8UJ8b.js} +2 -2
- package/chunks/bundle-BFa8UJ8b.js.map +1 -0
- package/chunks/{bundle-DQFIz2Zf.js → bundle-BKVuhi2w.js} +1 -1
- package/chunks/bundle-BKVuhi2w.js.map +1 -0
- package/chunks/{bundle-CIwVkd-E.js → bundle-BMQLJ23N.js} +16 -11
- package/chunks/{bundle-CIwVkd-E.js.map → bundle-BMQLJ23N.js.map} +1 -1
- package/chunks/{bundle-D2i2ti1U.js → bundle-BRZDoZIQ.js} +3 -3
- package/chunks/bundle-BRZDoZIQ.js.map +1 -0
- package/chunks/{bundle-yZ1rqvSQ.js → bundle-BWiA6-mB.js} +3 -3
- package/chunks/{bundle-yZ1rqvSQ.js.map → bundle-BWiA6-mB.js.map} +1 -1
- package/chunks/{bundle-dC3DwujZ.js → bundle-BYyMnx0z.js} +2 -2
- package/chunks/bundle-BYyMnx0z.js.map +1 -0
- package/chunks/{bundle-CJk_QDUV.js → bundle-BaXke8XU.js} +3 -3
- package/chunks/bundle-BaXke8XU.js.map +1 -0
- package/chunks/{bundle-uBJzoaNT.js → bundle-Bd6fN8eX.js} +1 -1
- package/chunks/bundle-Bd6fN8eX.js.map +1 -0
- package/chunks/{bundle-CNJMLyGJ.js → bundle-BgL9QnGd.js} +5 -4
- package/chunks/bundle-BgL9QnGd.js.map +1 -0
- package/chunks/{bundle-BtY8jyVv.js → bundle-BiK_ngKm.js} +1 -1
- package/chunks/{bundle-BtY8jyVv.js.map → bundle-BiK_ngKm.js.map} +1 -1
- package/chunks/{bundle-Byig85JJ.js → bundle-BjTYwue9.js} +5 -5
- package/chunks/{bundle-Byig85JJ.js.map → bundle-BjTYwue9.js.map} +1 -1
- package/chunks/{bundle-CT8ZXUi2.js → bundle-Bmk2FVdj.js} +1 -1
- package/chunks/bundle-Bmk2FVdj.js.map +1 -0
- package/chunks/{bundle-DmYqVYeD.js → bundle-Boh0Ffwo.js} +1 -1
- package/chunks/bundle-Boh0Ffwo.js.map +1 -0
- package/chunks/{bundle-BZd5IHBF.js → bundle-C093wLqR.js} +10 -9
- package/{cjs/chunks/bundle-BTU876jx.js.map → chunks/bundle-C093wLqR.js.map} +1 -1
- package/chunks/{bundle-DJTSztr0.js → bundle-C3gISq8S.js} +31 -26
- package/chunks/bundle-C3gISq8S.js.map +1 -0
- package/chunks/{bundle-IGQYX_K1.js → bundle-C7Vw36CA.js} +1 -1
- package/chunks/{bundle-IGQYX_K1.js.map → bundle-C7Vw36CA.js.map} +1 -1
- package/chunks/{bundle-DQ2q-zNM.js → bundle-C8jE79mn.js} +1 -1
- package/chunks/bundle-C8jE79mn.js.map +1 -0
- package/chunks/{bundle-BvaqGh4L.js → bundle-CFgnDIJC.js} +1 -1
- package/chunks/bundle-CFgnDIJC.js.map +1 -0
- package/chunks/{bundle-C4Z-NWqF.js → bundle-CGmq3qGM.js} +25 -30
- package/chunks/bundle-CGmq3qGM.js.map +1 -0
- package/chunks/{bundle-BOSnopxk.js → bundle-COYqO05C.js} +1 -1
- package/chunks/bundle-COYqO05C.js.map +1 -0
- package/chunks/{bundle-ZsYMd8JA.js → bundle-COd0N3nE.js} +34 -30
- package/chunks/bundle-COd0N3nE.js.map +1 -0
- package/chunks/{bundle-_-vntp1z.js → bundle-COoyrRF6.js} +2 -1
- package/chunks/bundle-COoyrRF6.js.map +1 -0
- package/chunks/{bundle-QxUVt4Ms.js → bundle-CWXSCBTE.js} +1 -1
- package/chunks/bundle-CWXSCBTE.js.map +1 -0
- package/chunks/{bundle-BTD0sBED.js → bundle-CYknZObK.js} +6 -6
- package/chunks/{bundle-BTD0sBED.js.map → bundle-CYknZObK.js.map} +1 -1
- package/chunks/{bundle-B7barEsR.js → bundle-C_dNvBEo.js} +2 -4
- package/chunks/bundle-C_dNvBEo.js.map +1 -0
- package/chunks/{bundle-BAvMd_j0.js → bundle-CbFt9rKR.js} +6 -6
- package/chunks/bundle-CbFt9rKR.js.map +1 -0
- package/chunks/{bundle-C8im5l9B.js → bundle-Ce-B4ROs.js} +1 -1
- package/chunks/{bundle-C8im5l9B.js.map → bundle-Ce-B4ROs.js.map} +1 -1
- package/chunks/{bundle-DaoHZIZy.js → bundle-Ck_ke5Gq.js} +4 -4
- package/chunks/bundle-Ck_ke5Gq.js.map +1 -0
- package/chunks/{bundle-B__zC9zD.js → bundle-Cn6S1UKt.js} +11 -11
- package/chunks/bundle-Cn6S1UKt.js.map +1 -0
- package/chunks/{bundle-DXCQovsu.js → bundle-Cp2PKGXI.js} +18 -17
- package/chunks/{bundle-DXCQovsu.js.map → bundle-Cp2PKGXI.js.map} +1 -1
- package/chunks/{bundle-BWuyd0AD.js → bundle-CriEArZn.js} +1 -1
- package/chunks/bundle-CriEArZn.js.map +1 -0
- package/chunks/{bundle-Ci146LvO.js → bundle-Ct6xKrI3.js} +35 -38
- package/chunks/{bundle-k3XccyCm.js.map → bundle-Ct6xKrI3.js.map} +1 -1
- package/chunks/{bundle-BmTGlIgs.js → bundle-CttExrDx.js} +19 -35
- package/chunks/{bundle-BmTGlIgs.js.map → bundle-CttExrDx.js.map} +1 -1
- package/chunks/{bundle-CaaUNO3F.js → bundle-D1rcEkoi.js} +2 -2
- package/chunks/{bundle-CaaUNO3F.js.map → bundle-D1rcEkoi.js.map} +1 -1
- package/chunks/{bundle-BjrRhdgd.js → bundle-D5P54ZJi.js} +58 -50
- package/chunks/{bundle-BjrRhdgd.js.map → bundle-D5P54ZJi.js.map} +1 -1
- package/chunks/{bundle-BHn3F_OF.js → bundle-D9dyuFq0.js} +8 -8
- package/chunks/bundle-D9dyuFq0.js.map +1 -0
- package/chunks/{bundle-7oF7KbGv.js → bundle-DKkCwVCs.js} +1 -1
- package/chunks/{bundle-7oF7KbGv.js.map → bundle-DKkCwVCs.js.map} +1 -1
- package/chunks/{bundle-k3XccyCm.js → bundle-DKs8lowG.js} +40 -62
- package/{cjs/chunks/bundle-D6E8Fmnl.js.map → chunks/bundle-DKs8lowG.js.map} +1 -1
- package/chunks/{bundle-oCSRGy9i.js → bundle-DQZG-uS3.js} +6 -6
- package/chunks/bundle-DQZG-uS3.js.map +1 -0
- package/chunks/{bundle-Bi8Wfc2I.js → bundle-DQdztuN4.js} +62 -69
- package/chunks/{bundle-Bi8Wfc2I.js.map → bundle-DQdztuN4.js.map} +1 -1
- package/chunks/{bundle-DDhhxSv0.js → bundle-DYErcqMl.js} +2 -2
- package/chunks/bundle-DYErcqMl.js.map +1 -0
- package/chunks/{bundle-3amhHjNa.js → bundle-DYtgOX1c.js} +6 -6
- package/chunks/{bundle-3amhHjNa.js.map → bundle-DYtgOX1c.js.map} +1 -1
- package/chunks/{bundle-CD9AzC6s.js → bundle-DhBuJR0w.js} +3 -2
- package/chunks/bundle-DhBuJR0w.js.map +1 -0
- package/chunks/{bundle-BKho3Uub.js → bundle-Dk5y6RzJ.js} +1 -1
- package/chunks/bundle-Dk5y6RzJ.js.map +1 -0
- package/chunks/{bundle-C1ds4cil.js → bundle-DprHnWfH.js} +1 -1
- package/chunks/{bundle-C1ds4cil.js.map → bundle-DprHnWfH.js.map} +1 -1
- package/chunks/{bundle-9MhshueU.js → bundle-DuBg9tG9.js} +2 -2
- package/chunks/bundle-DuBg9tG9.js.map +1 -0
- package/chunks/{bundle-fRP_rTVb.js → bundle-DuRujwfr.js} +10 -10
- package/chunks/bundle-DuRujwfr.js.map +1 -0
- package/chunks/{bundle-afCfXO2C.js → bundle-Dv6nIlPZ.js} +7 -7
- package/chunks/bundle-Dv6nIlPZ.js.map +1 -0
- package/chunks/{bundle-DzxiMlgV.js → bundle-DvNDJy8Z.js} +2 -2
- package/chunks/bundle-DvNDJy8Z.js.map +1 -0
- package/chunks/{bundle-ByvmbZD0.js → bundle-Dw9nwO7e.js} +1 -1
- package/chunks/bundle-Dw9nwO7e.js.map +1 -0
- package/chunks/{bundle-BbWD2VuS.js → bundle-DwJ8HgZK.js} +7 -4
- package/chunks/{bundle-BZd5IHBF.js.map → bundle-DwJ8HgZK.js.map} +1 -1
- package/chunks/{bundle-BymWz1lX.js → bundle-EYdnditu.js} +5 -5
- package/chunks/bundle-EYdnditu.js.map +1 -0
- package/chunks/{bundle-BvG71y_P.js → bundle-EgWLYRXK.js} +1 -1
- package/chunks/bundle-EgWLYRXK.js.map +1 -0
- package/chunks/{bundle-DThbnyZd.js → bundle-FfoT30Gt.js} +1 -1
- package/chunks/bundle-FfoT30Gt.js.map +1 -0
- package/chunks/{bundle-DNMURwG9.js → bundle-GMapp_Tb.js} +9 -5
- package/chunks/bundle-GMapp_Tb.js.map +1 -0
- package/chunks/{bundle-B8gKMDtp.js → bundle-Ps1Qc3cX.js} +9 -3
- package/chunks/bundle-Ps1Qc3cX.js.map +1 -0
- package/chunks/{bundle-DSOf9RKe.js → bundle-QPuxH0uW.js} +1 -1
- package/chunks/bundle-QPuxH0uW.js.map +1 -0
- package/chunks/{bundle-Gx0ryc_f.js → bundle-RoB3xpYU.js} +3 -3
- package/chunks/bundle-RoB3xpYU.js.map +1 -0
- package/chunks/{bundle-CDwtSJbC.js → bundle-RuTR5KRM.js} +25 -17
- package/{cjs/chunks/bundle-Cgl5e8xs.js.map → chunks/bundle-RuTR5KRM.js.map} +1 -1
- package/chunks/{bundle-Clhqc2C_.js → bundle-U_oIvkG2.js} +3 -3
- package/chunks/bundle-U_oIvkG2.js.map +1 -0
- package/chunks/{bundle-DO1vNias.js → bundle-YUF6WfTL.js} +30 -33
- package/chunks/bundle-YUF6WfTL.js.map +1 -0
- package/chunks/{bundle-DpGWywZ5.js → bundle-ZBhGb8Lc.js} +2 -2
- package/chunks/bundle-ZBhGb8Lc.js.map +1 -0
- package/chunks/{bundle-DlfN5GTa.js → bundle-gH-X0MYD.js} +17 -16
- package/chunks/{bundle-DaAoUDJk.js.map → bundle-gH-X0MYD.js.map} +1 -1
- package/chunks/{bundle-C_Vyt_ii.js → bundle-gNs_MAJh.js} +1 -1
- package/chunks/bundle-gNs_MAJh.js.map +1 -0
- package/chunks/{bundle-HoQqraNc.js → bundle-h8I0AuUK.js} +2 -2
- package/chunks/bundle-h8I0AuUK.js.map +1 -0
- package/chunks/{bundle-BWCGFXhj.js → bundle-janisM9b.js} +7 -7
- package/chunks/{bundle-BWCGFXhj.js.map → bundle-janisM9b.js.map} +1 -1
- package/chunks/bundle-nfJ9J5Md.js +18 -0
- package/chunks/bundle-nfJ9J5Md.js.map +1 -0
- package/chunks/{bundle-LYAWKk4n.js → bundle-prXB4t_m.js} +3 -3
- package/chunks/bundle-prXB4t_m.js.map +1 -0
- package/chunks/{bundle-DaAoUDJk.js → bundle-sX9kxwmI.js} +11 -13
- package/chunks/{bundle-DlfN5GTa.js.map → bundle-sX9kxwmI.js.map} +1 -1
- package/chunks/{bundle-C040958G.js → bundle-t4qeDosj.js} +2 -2
- package/chunks/{bundle-C040958G.js.map → bundle-t4qeDosj.js.map} +1 -1
- package/chunks/{bundle-BJ46V6XQ.js → bundle-uIqOEfCa.js} +1 -1
- package/chunks/bundle-uIqOEfCa.js.map +1 -0
- package/chunks/{bundle--nVHk3fx.js → bundle-zwvszN0Y.js} +19 -16
- package/{cjs/chunks/bundle-BXEGf4g2.js.map → chunks/bundle-zwvszN0Y.js.map} +1 -1
- package/cjs/App.js +83 -83
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +63 -63
- package/cjs/Channel/components/FileViewer.js +29 -29
- package/cjs/Channel/components/FrozenNotification.js +6 -5
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +57 -54
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +46 -46
- package/cjs/Channel/components/MessageInputWrapper.js +41 -41
- package/cjs/Channel/components/MessageList.js +59 -59
- package/cjs/Channel/components/RemoveMessageModal.js +28 -28
- package/cjs/Channel/components/SuggestedMentionList.js +26 -26
- package/cjs/Channel/components/TypingIndicator.js +6 -6
- package/cjs/Channel/components/UnreadCount.js +7 -7
- package/cjs/Channel/context.js +107 -133
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +15 -15
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/cjs/Channel/utils/compareMessagesForGrouping.js +4 -4
- package/cjs/Channel/utils/getMessagePartsInfo.js +8 -8
- package/cjs/Channel.js +63 -63
- package/cjs/ChannelList/components/AddChannel.js +22 -22
- package/cjs/ChannelList/components/ChannelListHeader.js +10 -10
- package/cjs/ChannelList/components/ChannelListUI.js +36 -36
- package/cjs/ChannelList/components/ChannelPreview.js +28 -28
- package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/cjs/ChannelList/context.js +9 -9
- package/cjs/ChannelList.js +35 -35
- package/cjs/ChannelSettings/components/ChannelProfile.js +20 -20
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +8 -8
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +25 -25
- package/cjs/ChannelSettings/components/EditDetailsModal.js +32 -27
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +16 -16
- package/cjs/ChannelSettings/components/ModerationPanel.js +39 -36
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +19 -19
- package/cjs/ChannelSettings/components/UserPanel.js +22 -22
- package/cjs/ChannelSettings/context.js +10 -5
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +23 -23
- package/cjs/CreateChannel/components/CreateChannelUI.js +19 -19
- package/cjs/CreateChannel/components/InviteUsers.js +28 -31
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +16 -16
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +18 -18
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +26 -22
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +10 -10
- package/cjs/CreateOpenChannel.js +16 -16
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +26 -22
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile/context.js +11 -12
- package/cjs/EditUserProfile/context.js.map +1 -1
- package/cjs/EditUserProfile.js +17 -17
- package/cjs/GroupChannel/components/FileViewer.js +28 -29
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +7 -6
- package/cjs/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelHeader.js +24 -24
- package/cjs/GroupChannel/components/GroupChannelUI.js +58 -58
- package/cjs/GroupChannel/components/Message.js +55 -52
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +40 -40
- package/cjs/GroupChannel/components/MessageList.js +53 -53
- package/cjs/GroupChannel/components/RemoveMessageModal.js +25 -25
- package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
- package/cjs/GroupChannel/components/UnreadCount.js +8 -8
- package/cjs/GroupChannel/context.js +39 -31
- package/cjs/GroupChannel/context.js.map +1 -1
- package/cjs/GroupChannel.js +58 -58
- package/cjs/GroupChannelList/components/AddGroupChannel.js +20 -20
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +11 -11
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +26 -26
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +35 -35
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +14 -14
- package/cjs/GroupChannelList/context.js +5 -5
- package/cjs/GroupChannelList.js +34 -34
- package/cjs/MessageSearch/components/MessageSearchUI.js +21 -22
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +18 -10
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +24 -25
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +20 -20
- package/cjs/OpenChannel/components/OpenChannelInput.js +26 -26
- package/cjs/OpenChannel/components/OpenChannelMessage.js +37 -37
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +43 -42
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +40 -40
- package/cjs/OpenChannel/context.js +19 -19
- package/cjs/OpenChannel.js +40 -40
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +18 -18
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +8 -8
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +18 -18
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +34 -30
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +19 -19
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +22 -22
- package/cjs/OpenChannelSettings/components/OperatorUI.js +56 -49
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
- package/cjs/OpenChannelSettings/context.js +10 -5
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +20 -20
- package/cjs/SendbirdProvider.js +37 -43
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +52 -51
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +43 -41
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +9 -9
- package/cjs/Thread/components/ThreadList.js +48 -48
- package/cjs/Thread/components/ThreadListItem.js +56 -58
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +46 -46
- package/cjs/Thread/components/ThreadUI.js +60 -58
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +28 -38
- 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 +16 -16
- package/cjs/VoiceRecorder/context.js +13 -13
- package/cjs/VoiceRecorder/useVoiceRecorder.js +20 -20
- package/cjs/chunks/{bundle-7UHC8ujA.js → bundle-0t_JDxef.js} +6 -5
- package/cjs/chunks/{bundle-7UHC8ujA.js.map → bundle-0t_JDxef.js.map} +1 -1
- package/cjs/chunks/{bundle-D-qAbZhp.js → bundle-133JUAh1.js} +4 -4
- package/cjs/chunks/bundle-133JUAh1.js.map +1 -0
- package/cjs/chunks/{bundle-DeQZn8GZ.js → bundle-13qq2yWM.js} +10 -10
- package/cjs/chunks/bundle-13qq2yWM.js.map +1 -0
- package/cjs/chunks/{bundle-BWGOXLHb.js → bundle-1A4pOyri.js} +1 -1
- package/cjs/chunks/{bundle-BWGOXLHb.js.map → bundle-1A4pOyri.js.map} +1 -1
- package/cjs/chunks/{bundle-BjgfoBVC.js → bundle-6_B00yYz.js} +1 -1
- package/cjs/chunks/bundle-6_B00yYz.js.map +1 -0
- package/cjs/chunks/{bundle-Cgl5e8xs.js → bundle-6aemRbmn.js} +18 -17
- package/{chunks/bundle-CDwtSJbC.js.map → cjs/chunks/bundle-6aemRbmn.js.map} +1 -1
- package/cjs/chunks/{bundle-Dehhi1FZ.js → bundle-7CEyuoln.js} +1 -1
- package/cjs/chunks/bundle-7CEyuoln.js.map +1 -0
- package/cjs/chunks/{bundle-DAIf7fWo.js → bundle-86A5Bf9J.js} +9 -3
- package/cjs/chunks/bundle-86A5Bf9J.js.map +1 -0
- package/cjs/chunks/{bundle-BLc7P6Sp.js → bundle-A_xDyoq6.js} +30 -33
- package/{chunks/bundle-DO1vNias.js.map → cjs/chunks/bundle-A_xDyoq6.js.map} +1 -1
- package/cjs/chunks/{bundle-CLOaQmX9.js → bundle-B1Ql7yM0.js} +2 -2
- package/cjs/chunks/bundle-B1Ql7yM0.js.map +1 -0
- package/cjs/chunks/{bundle-Tjx9wNAv.js → bundle-B2WuxwoH.js} +2 -2
- package/cjs/chunks/bundle-B2WuxwoH.js.map +1 -0
- package/cjs/chunks/{bundle-CE6bFQmu.js → bundle-BBsKv3Vz.js} +6 -5
- package/cjs/chunks/bundle-BBsKv3Vz.js.map +1 -0
- package/cjs/chunks/{bundle-DTCz0BH1.js → bundle-BE-L5873.js} +19 -16
- package/cjs/chunks/bundle-BE-L5873.js.map +1 -0
- package/cjs/chunks/{bundle-X03vJTEw.js → bundle-BE1dAigY.js} +6 -6
- package/cjs/chunks/bundle-BE1dAigY.js.map +1 -0
- package/cjs/chunks/{bundle-BaAUvjl9.js → bundle-BFy8_d3W.js} +1 -1
- package/cjs/chunks/bundle-BFy8_d3W.js.map +1 -0
- package/cjs/chunks/{bundle-DRy7eNJ0.js → bundle-BK_SqbHE.js} +1 -1
- package/cjs/chunks/bundle-BK_SqbHE.js.map +1 -0
- package/cjs/chunks/{bundle-B-olJv7b.js → bundle-BLs0JcXs.js} +62 -69
- package/cjs/chunks/{bundle-B-olJv7b.js.map → bundle-BLs0JcXs.js.map} +1 -1
- package/cjs/chunks/{bundle-gtkPlUrw.js → bundle-BNMoxGCr.js} +1 -1
- package/cjs/chunks/bundle-BNMoxGCr.js.map +1 -0
- package/cjs/chunks/{bundle-DfcEln0Z.js → bundle-BNzVVkzd.js} +3 -1
- package/cjs/chunks/bundle-BNzVVkzd.js.map +1 -0
- package/cjs/chunks/{bundle-N_CwOE5a.js → bundle-BPV3CKzS.js} +30 -25
- package/cjs/chunks/bundle-BPV3CKzS.js.map +1 -0
- package/cjs/chunks/{bundle-miB6ue8g.js → bundle-Bgeq75IH.js} +3 -3
- package/cjs/chunks/bundle-Bgeq75IH.js.map +1 -0
- package/cjs/chunks/{bundle-DRp9IuV2.js → bundle-BimsU_nb.js} +2 -1
- package/cjs/chunks/bundle-BimsU_nb.js.map +1 -0
- package/cjs/chunks/{bundle-_ekaw3iI.js → bundle-BtsHzLKX.js} +2 -2
- package/cjs/chunks/bundle-BtsHzLKX.js.map +1 -0
- package/cjs/chunks/{bundle-Com-Z-XI.js → bundle-Bvsx1m1J.js} +1 -1
- package/cjs/chunks/bundle-Bvsx1m1J.js.map +1 -0
- package/cjs/chunks/{bundle-Dnq2YP_l.js → bundle-Bw1ttM89.js} +3 -3
- package/cjs/chunks/bundle-Bw1ttM89.js.map +1 -0
- package/cjs/chunks/{bundle-T4lp5F85.js → bundle-BzyQ6Vof.js} +1 -1
- package/cjs/chunks/bundle-BzyQ6Vof.js.map +1 -0
- package/cjs/chunks/{bundle-Q4icQ1qH.js → bundle-C1YuUjH3.js} +6 -6
- package/cjs/chunks/bundle-C1YuUjH3.js.map +1 -0
- package/cjs/chunks/{bundle-B31bbem0.js → bundle-C4Gs08vJ.js} +34 -30
- package/cjs/chunks/bundle-C4Gs08vJ.js.map +1 -0
- package/cjs/chunks/{bundle-DAxedY0T.js → bundle-CA69fSDI.js} +2 -2
- package/cjs/chunks/bundle-CA69fSDI.js.map +1 -0
- package/cjs/chunks/{bundle-D4aDRH9m.js → bundle-CBNBRNN0.js} +1 -1
- package/cjs/chunks/bundle-CBNBRNN0.js.map +1 -0
- package/cjs/chunks/{bundle-Bi-soOXA.js → bundle-CCYpnzRf.js} +58 -50
- package/{chunks/bundle-C4Z-NWqF.js.map → cjs/chunks/bundle-CCYpnzRf.js.map} +1 -1
- package/cjs/chunks/{bundle-DQy218lT.js → bundle-CHvJg3bD.js} +1 -1
- package/cjs/chunks/bundle-CHvJg3bD.js.map +1 -0
- package/cjs/chunks/{bundle-DdxJqNSP.js → bundle-CI1zoEKe.js} +1 -1
- package/cjs/chunks/bundle-CI1zoEKe.js.map +1 -0
- package/cjs/chunks/{bundle-ByyccRIt.js → bundle-CJk1q-XX.js} +25 -17
- package/cjs/chunks/{bundle-ByyccRIt.js.map → bundle-CJk1q-XX.js.map} +1 -1
- package/cjs/chunks/{bundle-C51HeaX4.js → bundle-CL4Kklzg.js} +1 -1
- package/cjs/chunks/bundle-CL4Kklzg.js.map +1 -0
- package/cjs/chunks/{bundle-C6a-umLQ.js → bundle-CTraI7aM.js} +11 -11
- package/cjs/chunks/bundle-CTraI7aM.js.map +1 -0
- package/cjs/chunks/{bundle-L3FEqZsK.js → bundle-CW2oMonb.js} +16 -11
- package/cjs/chunks/bundle-CW2oMonb.js.map +1 -0
- package/cjs/chunks/{bundle-DxSB9NRz.js → bundle-C_8UQBXr.js} +5 -4
- package/cjs/chunks/bundle-C_8UQBXr.js.map +1 -0
- package/cjs/chunks/{bundle-DAj-1QVM.js → bundle-Cd-3W3UM.js} +2 -2
- package/cjs/chunks/{bundle-DAj-1QVM.js.map → bundle-Cd-3W3UM.js.map} +1 -1
- package/cjs/chunks/{bundle-BBoPpUMg.js → bundle-Cd0cyqgA.js} +7 -7
- package/cjs/chunks/bundle-Cd0cyqgA.js.map +1 -0
- package/cjs/chunks/{bundle-D6E8Fmnl.js → bundle-CliI7H5v.js} +39 -61
- package/cjs/chunks/bundle-CliI7H5v.js.map +1 -0
- package/cjs/chunks/{bundle-C3DKUT4Q.js → bundle-CoJbL3ob.js} +4 -4
- package/cjs/chunks/bundle-CoJbL3ob.js.map +1 -0
- package/cjs/chunks/{bundle-CR04Yhbr.js → bundle-CuOOXDK0.js} +1 -1
- package/cjs/chunks/bundle-CuOOXDK0.js.map +1 -0
- package/cjs/chunks/{bundle-BrNoc2XZ.js → bundle-D1Ka8I9e.js} +5 -5
- package/cjs/chunks/bundle-D1Ka8I9e.js.map +1 -0
- package/cjs/chunks/{bundle-BTod-EOk.js → bundle-D1mguvwi.js} +10 -9
- package/cjs/chunks/bundle-D1mguvwi.js.map +1 -0
- package/cjs/chunks/{bundle-8VyIP0TE.js → bundle-D3BhVTZt.js} +1 -1
- package/cjs/chunks/bundle-D3BhVTZt.js.map +1 -0
- package/cjs/chunks/{bundle-DmX69_-l.js → bundle-D7rSRN-8.js} +5 -5
- package/cjs/chunks/bundle-D7rSRN-8.js.map +1 -0
- package/cjs/chunks/{bundle-JtgSY0zB.js → bundle-DAEHB1AV.js} +3 -3
- package/cjs/chunks/bundle-DAEHB1AV.js.map +1 -0
- package/cjs/chunks/{bundle-BaM5Ed34.js → bundle-DMUz-Xui.js} +17 -16
- package/cjs/chunks/{bundle-BaM5Ed34.js.map → bundle-DMUz-Xui.js.map} +1 -1
- package/cjs/chunks/{bundle-BoLhr7Ko.js → bundle-DOoshvnj.js} +1 -1
- package/cjs/chunks/bundle-DOoshvnj.js.map +1 -0
- package/cjs/chunks/{bundle-C1XVsHlE.js → bundle-DQu5RJ2y.js} +4 -4
- package/cjs/chunks/bundle-DQu5RJ2y.js.map +1 -0
- package/cjs/chunks/{bundle-BXEGf4g2.js → bundle-DSLFcE0C.js} +11 -13
- package/{chunks/bundle--nVHk3fx.js.map → cjs/chunks/bundle-DSLFcE0C.js.map} +1 -1
- package/cjs/chunks/{bundle-B_51Svr9.js → bundle-DTJnlh7y.js} +3 -3
- package/cjs/chunks/{bundle-B_51Svr9.js.map → bundle-DTJnlh7y.js.map} +1 -1
- package/cjs/chunks/{bundle-CAUMYdVU.js → bundle-DTzydpqA.js} +2 -4
- package/cjs/chunks/bundle-DTzydpqA.js.map +1 -0
- package/cjs/chunks/{bundle-CDIVI7bT.js → bundle-DUzcm-3u.js} +1 -1
- package/cjs/chunks/{bundle-CDIVI7bT.js.map → bundle-DUzcm-3u.js.map} +1 -1
- package/cjs/chunks/{bundle-CZfcXYaX.js → bundle-DW8u-n3u.js} +25 -30
- package/cjs/chunks/{bundle-CZfcXYaX.js.map → bundle-DW8u-n3u.js.map} +1 -1
- package/cjs/chunks/{bundle-5_kPn4wU.js → bundle-DY5rfl6W.js} +3 -3
- package/cjs/chunks/bundle-DY5rfl6W.js.map +1 -0
- package/cjs/chunks/{bundle-C93-onMF.js → bundle-DcQeRT4T.js} +1 -1
- package/cjs/chunks/bundle-DcQeRT4T.js.map +1 -0
- package/cjs/chunks/{bundle-BOkZUm8a.js → bundle-Dd1DS9KT.js} +1 -1
- package/cjs/chunks/bundle-Dd1DS9KT.js.map +1 -0
- package/cjs/chunks/{bundle-qI5gnScC.js → bundle-DikFXMAd.js} +1 -1
- package/cjs/chunks/bundle-DikFXMAd.js.map +1 -0
- package/cjs/chunks/{bundle-BSAWCcb_.js → bundle-DohVekRv.js} +19 -35
- package/cjs/chunks/{bundle-BSAWCcb_.js.map → bundle-DohVekRv.js.map} +1 -1
- package/cjs/chunks/{bundle-wl1uuzU7.js → bundle-DrYI_bNa.js} +7 -7
- package/cjs/chunks/{bundle-wl1uuzU7.js.map → bundle-DrYI_bNa.js.map} +1 -1
- package/cjs/chunks/{bundle-BTU876jx.js → bundle-Dymg5zVO.js} +7 -4
- package/cjs/chunks/{bundle-BTod-EOk.js.map → bundle-Dymg5zVO.js.map} +1 -1
- package/cjs/chunks/{bundle-Dww6fCVQ.js → bundle-H13ErLKW.js} +2 -2
- package/cjs/chunks/bundle-H13ErLKW.js.map +1 -0
- package/cjs/chunks/{bundle-CQ34zxiR.js → bundle-KUj3wjEl.js} +3 -3
- package/cjs/chunks/bundle-KUj3wjEl.js.map +1 -0
- package/cjs/chunks/{bundle-CsJKON_3.js → bundle-Kf3idGio.js} +9 -5
- package/cjs/chunks/bundle-Kf3idGio.js.map +1 -0
- package/cjs/chunks/{bundle-D8gia2Hg.js → bundle-LO6QlzTz.js} +2 -2
- package/cjs/chunks/bundle-LO6QlzTz.js.map +1 -0
- package/cjs/chunks/{bundle-BwQ4BJif.js → bundle-OIKGVRus.js} +1 -1
- package/cjs/chunks/bundle-OIKGVRus.js.map +1 -0
- package/cjs/chunks/bundle-OWb8eJt-.js +22 -0
- package/cjs/chunks/bundle-OWb8eJt-.js.map +1 -0
- package/cjs/chunks/{bundle-BhCAlWKP.js → bundle-RUFiV4i0.js} +1 -1
- package/cjs/chunks/bundle-RUFiV4i0.js.map +1 -0
- package/cjs/chunks/{bundle-wMKhbE3c.js → bundle-TEjGhclf.js} +2 -2
- package/cjs/chunks/{bundle-wMKhbE3c.js.map → bundle-TEjGhclf.js.map} +1 -1
- package/cjs/chunks/{bundle-1XtsxT8L.js → bundle-YRiE_c63.js} +1 -1
- package/cjs/chunks/bundle-YRiE_c63.js.map +1 -0
- package/cjs/chunks/{bundle-DMGpM9Ye.js → bundle-ZjYFUjTH.js} +35 -38
- package/{chunks/bundle-Ci146LvO.js.map → cjs/chunks/bundle-ZjYFUjTH.js.map} +1 -1
- package/cjs/chunks/{bundle-DcSTnNI0.js → bundle-cqwHj7Dj.js} +2 -2
- package/cjs/chunks/bundle-cqwHj7Dj.js.map +1 -0
- package/cjs/chunks/{bundle-HGbi-rCv.js → bundle-eTYC1RPT.js} +1 -1
- package/cjs/chunks/bundle-eTYC1RPT.js.map +1 -0
- package/cjs/chunks/{bundle-bqRlVm3u.js → bundle-jHjvHr01.js} +1 -1
- package/cjs/chunks/bundle-jHjvHr01.js.map +1 -0
- package/cjs/chunks/{bundle-BaQc9oOW.js → bundle-kbRkyLdH.js} +6 -6
- package/cjs/chunks/bundle-kbRkyLdH.js.map +1 -0
- package/cjs/chunks/{bundle-C3RFfU6_.js → bundle-lYouUxag.js} +6 -6
- package/cjs/chunks/bundle-lYouUxag.js.map +1 -0
- package/cjs/chunks/{bundle-4vdy6J5u.js → bundle-ozey_V94.js} +8 -8
- package/cjs/chunks/bundle-ozey_V94.js.map +1 -0
- package/cjs/chunks/{bundle-CmpLg1_S.js → bundle-wz_O1vyk.js} +1 -1
- package/cjs/chunks/bundle-wz_O1vyk.js.map +1 -0
- package/cjs/hooks/useModal.js +13 -13
- package/cjs/index.js +78 -78
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +1 -1
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +16 -16
- package/cjs/ui/Button.js +5 -5
- package/cjs/ui/ChannelAvatar.js +5 -5
- package/cjs/ui/ConnectionStatus.js +6 -6
- package/cjs/ui/ContextMenu.js +6 -6
- package/cjs/ui/DateSeparator.js +5 -5
- package/cjs/ui/EmojiReactions.js +22 -22
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +9 -9
- package/cjs/ui/FileViewer.js +17 -17
- package/cjs/ui/Header.js +8 -8
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +4 -2
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +4 -4
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
- package/cjs/ui/MentionLabel.js +14 -14
- package/cjs/ui/MentionUserLabel.js +3 -2
- package/cjs/ui/MentionUserLabel.js.map +1 -1
- package/cjs/ui/MessageContent.js +76 -69
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +14 -14
- package/cjs/ui/MessageFeedbackModal.js +19 -19
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +103 -82
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +20 -20
- package/cjs/ui/MessageItemReactionMenu.js +15 -15
- package/cjs/ui/MessageSearchFileItem.js +15 -15
- package/cjs/ui/MessageSearchItem.js +13 -13
- package/cjs/ui/MessageStatus.js +11 -11
- package/cjs/ui/MessageTemplate.js +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +13 -13
- package/cjs/ui/Modal.js +13 -13
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +23 -22
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -8
- package/cjs/ui/OpenchannelConversationHeader.js +8 -8
- package/cjs/ui/OpenchannelFileMessage.js +18 -18
- package/cjs/ui/OpenchannelOGMessage.js +36 -36
- package/cjs/ui/OpenchannelThumbnailMessage.js +18 -18
- package/cjs/ui/OpenchannelUserMessage.js +23 -23
- package/cjs/ui/PlaceHolder.js +7 -7
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/ProgressBar.js +2 -1
- package/cjs/ui/ProgressBar.js.map +1 -1
- package/cjs/ui/QuoteMessage.js +8 -8
- package/cjs/ui/QuoteMessageInput.js +11 -11
- package/cjs/ui/ReactionBadge.js +4 -4
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TemplateMessageItemBody.js +22 -20
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +25 -22
- package/cjs/ui/TextMessageItemBody.js.map +1 -1
- package/cjs/ui/ThreadReplies.js +10 -10
- package/cjs/ui/ThumbnailMessageItemBody.js +6 -6
- package/cjs/ui/Toggle.js +3 -3
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +3 -3
- package/cjs/ui/TypingIndicatorBubble.js +4 -4
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +15 -15
- package/cjs/ui/UserProfile.js +12 -12
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +20 -19
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/Word.js +14 -14
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/withSendbird.js +4 -3
- package/cjs/withSendbird.js.map +1 -1
- package/dist/index.css +3 -4
- package/hooks/useModal.js +13 -13
- package/index.js +78 -78
- package/package.json +1 -1
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +3 -3
- package/types/hooks/VoicePlayer/useVoicePlayer.d.ts +2 -2
- package/types/hooks/VoiceRecorder/WebAudioUtils.d.ts +5 -2
- package/types/hooks/VoiceRecorder/useVoiceRecorder.d.ts +1 -1
- package/types/lib/LocalizationContext.d.ts +3 -4
- package/types/lib/Logger/index.d.ts +1 -1
- package/types/lib/Sendbird.d.ts +2 -8
- package/types/lib/SendbirdSdkContext.d.ts +3 -0
- package/types/lib/hooks/useTheme.d.ts +1 -1
- package/types/lib/pubSub/topics.d.ts +2 -2
- package/types/lib/selectors.d.ts +4 -4
- package/types/lib/types.d.ts +5 -5
- package/types/modules/App/AppLayout.d.ts +1 -1
- package/types/modules/App/types.d.ts +1 -1
- package/types/modules/Channel/components/Message/index.d.ts +1 -1
- package/types/modules/Channel/context/ChannelProvider.d.ts +11 -12
- package/types/modules/Channel/context/hooks/useHandleChannelEvents.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useHandleReconnect.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +4 -4
- package/types/modules/Channel/context/hooks/useInitialMessagesFetch.d.ts +3 -3
- package/types/modules/Channel/context/hooks/useReconnectOnIdle.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useScrollDownCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollToMessage.d.ts +3 -3
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Channel/context/utils.d.ts +4 -4
- package/types/modules/ChannelList/components/ChannelListUI/index.d.ts +1 -1
- package/types/modules/ChannelList/context/ChannelListProvider.d.ts +7 -7
- package/types/modules/ChannelList/index.d.ts +1 -1
- package/types/modules/ChannelList/utils.d.ts +2 -2
- package/types/modules/ChannelSettings/components/UserListItem/index.d.ts +4 -7
- package/types/modules/ChannelSettings/context/ChannelSettingsProvider.d.ts +1 -1
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +3 -2
- package/types/modules/EditUserProfile/components/EditUserProfileUI/EditUserProfileUIView.d.ts +1 -1
- package/types/modules/EditUserProfile/components/EditUserProfileUI/index.d.ts +1 -1
- package/types/modules/EditUserProfile/context/EditUserProfileProvider.d.ts +1 -1
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +9 -9
- package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +2 -2
- package/types/modules/GroupChannel/components/MessageList/getMessagePartsInfo.d.ts +3 -3
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +4 -4
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +1 -1
- package/types/modules/GroupChannel/context/utils.d.ts +2 -2
- package/types/modules/MessageSearch/context/MessageSearchProvider.d.ts +4 -4
- package/types/modules/MessageSearch/context/hooks/useGetSearchedMessages.d.ts +1 -1
- package/types/modules/MessageSearch/context/hooks/useScrollCallback.d.ts +4 -4
- package/types/modules/MessageSearch/index.d.ts +0 -1
- package/types/modules/OpenChannel/context/OpenChannelProvider.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useFileUploadCallback.d.ts +3 -3
- package/types/modules/OpenChannel/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useInitialMessagesFetch.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useScrollCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useSendMessageCallback.d.ts +2 -2
- package/types/modules/OpenChannel/context/hooks/useSetChannel.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useTrimMessageList.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useUpdateMessageCallback.d.ts +3 -3
- package/types/modules/OpenChannel/context/utils.d.ts +2 -3
- package/types/modules/OpenChannelList/context/hooks/createChannelListQuery.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useRefreshOpenChannelList.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useSetupOpenChannelList.d.ts +1 -1
- package/types/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.d.ts +2 -2
- package/types/modules/OpenChannelSettings/context/OpenChannelSettingsProvider.d.ts +3 -4
- package/types/modules/Thread/context/ThreadProvider.d.ts +7 -5
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useGetChannel.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useGetParentMessage.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useToggleReactionsCallback.d.ts +3 -2
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +9 -2
- package/types/modules/Thread/context/utils.d.ts +3 -4
- package/types/ui/AdminMessage/index.d.ts +1 -1
- package/types/ui/ChannelAvatar/utils.d.ts +3 -3
- package/types/ui/ContextMenu/MenuItems.d.ts +3 -3
- package/types/ui/ImageRenderer/index.d.ts +7 -7
- package/types/ui/ImageRenderer/useDynamicSideLength.d.ts +2 -2
- package/types/ui/ImageRenderer/utils.d.ts +1 -1
- package/types/ui/LegacyEditUserProfile/index.d.ts +1 -1
- package/types/ui/MessageContent/MessageProfile/index.d.ts +1 -1
- package/types/ui/MessageInput/hooks/usePaste/types.d.ts +1 -1
- package/types/ui/MessageItemMenu/index.d.ts +5 -7
- package/types/ui/MessageItemReactionMenu/index.d.ts +1 -1
- package/types/ui/ThreadReplies/index.d.ts +1 -1
- package/types/ui/UserProfile/index.d.ts +1 -1
- package/types/ui/Word/index.d.ts +1 -1
- package/types/utils/consts.d.ts +1 -0
- package/types/utils/exports/getOutgoingMessageState.d.ts +1 -1
- package/types/utils/getIsReactionEnabled.d.ts +1 -1
- package/types/utils/index.d.ts +2 -2
- package/types/utils/messages.d.ts +1 -1
- package/types/utils/numberToPx.d.ts +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +1 -1
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +16 -16
- package/ui/Button.js +5 -5
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +5 -5
- package/ui/EmojiReactions.js +22 -22
- package/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/ui/FileMessageItemBody.js +9 -9
- package/ui/FileViewer.js +17 -17
- package/ui/Header.js +8 -8
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +4 -2
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +4 -4
- package/ui/Loader.js +2 -2
- package/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
- package/ui/MentionLabel.js +14 -14
- package/ui/MentionUserLabel.js +3 -2
- package/ui/MentionUserLabel.js.map +1 -1
- package/ui/MessageContent.js +76 -69
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +14 -14
- package/ui/MessageFeedbackModal.js +19 -19
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +103 -82
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +20 -20
- package/ui/MessageItemReactionMenu.js +15 -15
- package/ui/MessageSearchFileItem.js +15 -15
- package/ui/MessageSearchItem.js +13 -13
- package/ui/MessageStatus.js +11 -11
- package/ui/MessageTemplate.js +1 -1
- package/ui/MobileFeedbackMenu.js +13 -13
- package/ui/Modal.js +13 -13
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +23 -22
- package/ui/OGMessageItemBody.js.map +1 -1
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- package/ui/OpenchannelFileMessage.js +18 -18
- package/ui/OpenchannelOGMessage.js +36 -36
- package/ui/OpenchannelThumbnailMessage.js +18 -18
- package/ui/OpenchannelUserMessage.js +23 -23
- package/ui/PlaceHolder.js +7 -7
- package/ui/PlaybackTime.js +3 -3
- package/ui/ProgressBar.js +2 -1
- package/ui/ProgressBar.js.map +1 -1
- package/ui/QuoteMessage.js +8 -8
- package/ui/QuoteMessageInput.js +11 -11
- package/ui/ReactionBadge.js +4 -4
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TemplateMessageItemBody.js +22 -20
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +25 -22
- package/ui/TextMessageItemBody.js.map +1 -1
- package/ui/ThreadReplies.js +10 -10
- package/ui/ThumbnailMessageItemBody.js +6 -6
- package/ui/Toggle.js +3 -3
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +3 -3
- package/ui/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +15 -15
- package/ui/UserProfile.js +12 -12
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +20 -19
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/Word.js +14 -14
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/withSendbird.js +4 -3
- package/withSendbird.js.map +1 -1
- package/chunks/bundle-2uJIsyo2.js.map +0 -1
- package/chunks/bundle-9MhshueU.js.map +0 -1
- package/chunks/bundle-B5N2u5f-.js.map +0 -1
- package/chunks/bundle-B7barEsR.js.map +0 -1
- package/chunks/bundle-B8gKMDtp.js.map +0 -1
- package/chunks/bundle-BAvMd_j0.js.map +0 -1
- package/chunks/bundle-BHn3F_OF.js.map +0 -1
- package/chunks/bundle-BJ46V6XQ.js.map +0 -1
- package/chunks/bundle-BKho3Uub.js.map +0 -1
- package/chunks/bundle-BOSnopxk.js.map +0 -1
- package/chunks/bundle-BWuyd0AD.js.map +0 -1
- package/chunks/bundle-B__zC9zD.js.map +0 -1
- package/chunks/bundle-BbWD2VuS.js.map +0 -1
- package/chunks/bundle-BvG71y_P.js.map +0 -1
- package/chunks/bundle-BvaqGh4L.js.map +0 -1
- package/chunks/bundle-Bx5vhTbU.js +0 -16
- package/chunks/bundle-Bx5vhTbU.js.map +0 -1
- package/chunks/bundle-BymWz1lX.js.map +0 -1
- package/chunks/bundle-ByvmbZD0.js.map +0 -1
- package/chunks/bundle-C1hw1sij.js.map +0 -1
- package/chunks/bundle-CD9AzC6s.js.map +0 -1
- package/chunks/bundle-CJk_QDUV.js.map +0 -1
- package/chunks/bundle-CNJMLyGJ.js.map +0 -1
- package/chunks/bundle-CT8ZXUi2.js.map +0 -1
- package/chunks/bundle-C_Vyt_ii.js.map +0 -1
- package/chunks/bundle-Clhqc2C_.js.map +0 -1
- package/chunks/bundle-D2i2ti1U.js.map +0 -1
- package/chunks/bundle-DDhhxSv0.js.map +0 -1
- package/chunks/bundle-DDkUg3Os.js.map +0 -1
- package/chunks/bundle-DJTSztr0.js.map +0 -1
- package/chunks/bundle-DNMURwG9.js.map +0 -1
- package/chunks/bundle-DQ2q-zNM.js.map +0 -1
- package/chunks/bundle-DQFIz2Zf.js.map +0 -1
- package/chunks/bundle-DSOf9RKe.js.map +0 -1
- package/chunks/bundle-DThbnyZd.js.map +0 -1
- package/chunks/bundle-D_eJq5Xk.js.map +0 -1
- package/chunks/bundle-DaoHZIZy.js.map +0 -1
- package/chunks/bundle-Diqj6For.js.map +0 -1
- package/chunks/bundle-DmYqVYeD.js.map +0 -1
- package/chunks/bundle-DpGWywZ5.js.map +0 -1
- package/chunks/bundle-DzxiMlgV.js.map +0 -1
- package/chunks/bundle-Gx0ryc_f.js.map +0 -1
- package/chunks/bundle-HoQqraNc.js.map +0 -1
- package/chunks/bundle-Jir4hfa9.js.map +0 -1
- package/chunks/bundle-LYAWKk4n.js.map +0 -1
- package/chunks/bundle-QxUVt4Ms.js.map +0 -1
- package/chunks/bundle-ZsYMd8JA.js.map +0 -1
- package/chunks/bundle-_-vntp1z.js.map +0 -1
- package/chunks/bundle-afCfXO2C.js.map +0 -1
- package/chunks/bundle-dC3DwujZ.js.map +0 -1
- package/chunks/bundle-fRP_rTVb.js.map +0 -1
- package/chunks/bundle-h3a36twH.js.map +0 -1
- package/chunks/bundle-oCSRGy9i.js.map +0 -1
- package/chunks/bundle-uBJzoaNT.js.map +0 -1
- package/cjs/chunks/bundle-1XtsxT8L.js.map +0 -1
- package/cjs/chunks/bundle-4vdy6J5u.js.map +0 -1
- package/cjs/chunks/bundle-5_kPn4wU.js.map +0 -1
- package/cjs/chunks/bundle-8VyIP0TE.js.map +0 -1
- package/cjs/chunks/bundle-B31bbem0.js.map +0 -1
- package/cjs/chunks/bundle-BBoPpUMg.js.map +0 -1
- package/cjs/chunks/bundle-BLc7P6Sp.js.map +0 -1
- package/cjs/chunks/bundle-BOkZUm8a.js.map +0 -1
- package/cjs/chunks/bundle-BaAUvjl9.js.map +0 -1
- package/cjs/chunks/bundle-BaQc9oOW.js.map +0 -1
- package/cjs/chunks/bundle-BhCAlWKP.js.map +0 -1
- package/cjs/chunks/bundle-Bi-soOXA.js.map +0 -1
- package/cjs/chunks/bundle-BjgfoBVC.js.map +0 -1
- package/cjs/chunks/bundle-BoLhr7Ko.js.map +0 -1
- package/cjs/chunks/bundle-BrNoc2XZ.js.map +0 -1
- package/cjs/chunks/bundle-BwQ4BJif.js.map +0 -1
- package/cjs/chunks/bundle-C1XVsHlE.js.map +0 -1
- package/cjs/chunks/bundle-C3DKUT4Q.js.map +0 -1
- package/cjs/chunks/bundle-C3RFfU6_.js.map +0 -1
- package/cjs/chunks/bundle-C51HeaX4.js.map +0 -1
- package/cjs/chunks/bundle-C6a-umLQ.js.map +0 -1
- package/cjs/chunks/bundle-C93-onMF.js.map +0 -1
- package/cjs/chunks/bundle-CAUMYdVU.js.map +0 -1
- package/cjs/chunks/bundle-CE6bFQmu.js.map +0 -1
- package/cjs/chunks/bundle-CLOaQmX9.js.map +0 -1
- package/cjs/chunks/bundle-CQ34zxiR.js.map +0 -1
- package/cjs/chunks/bundle-CR04Yhbr.js.map +0 -1
- package/cjs/chunks/bundle-CmpLg1_S.js.map +0 -1
- package/cjs/chunks/bundle-Com-Z-XI.js.map +0 -1
- package/cjs/chunks/bundle-CsJKON_3.js.map +0 -1
- package/cjs/chunks/bundle-D-qAbZhp.js.map +0 -1
- package/cjs/chunks/bundle-D4aDRH9m.js.map +0 -1
- package/cjs/chunks/bundle-D8gia2Hg.js.map +0 -1
- package/cjs/chunks/bundle-DAIf7fWo.js.map +0 -1
- package/cjs/chunks/bundle-DAxedY0T.js.map +0 -1
- package/cjs/chunks/bundle-DMGpM9Ye.js.map +0 -1
- package/cjs/chunks/bundle-DQy218lT.js.map +0 -1
- package/cjs/chunks/bundle-DRp9IuV2.js.map +0 -1
- package/cjs/chunks/bundle-DRy7eNJ0.js.map +0 -1
- package/cjs/chunks/bundle-DTCz0BH1.js.map +0 -1
- package/cjs/chunks/bundle-DcSTnNI0.js.map +0 -1
- package/cjs/chunks/bundle-DdxJqNSP.js.map +0 -1
- package/cjs/chunks/bundle-DeQZn8GZ.js.map +0 -1
- package/cjs/chunks/bundle-Dehhi1FZ.js.map +0 -1
- package/cjs/chunks/bundle-DfcEln0Z.js.map +0 -1
- package/cjs/chunks/bundle-DmX69_-l.js.map +0 -1
- package/cjs/chunks/bundle-Dnq2YP_l.js.map +0 -1
- package/cjs/chunks/bundle-Dww6fCVQ.js.map +0 -1
- package/cjs/chunks/bundle-DxSB9NRz.js.map +0 -1
- package/cjs/chunks/bundle-HGbi-rCv.js.map +0 -1
- package/cjs/chunks/bundle-JtgSY0zB.js.map +0 -1
- package/cjs/chunks/bundle-L3FEqZsK.js.map +0 -1
- package/cjs/chunks/bundle-N_CwOE5a.js.map +0 -1
- package/cjs/chunks/bundle-Q4icQ1qH.js.map +0 -1
- package/cjs/chunks/bundle-T4lp5F85.js.map +0 -1
- package/cjs/chunks/bundle-Tjx9wNAv.js.map +0 -1
- package/cjs/chunks/bundle-X03vJTEw.js.map +0 -1
- package/cjs/chunks/bundle-_ekaw3iI.js.map +0 -1
- package/cjs/chunks/bundle-bqRlVm3u.js.map +0 -1
- package/cjs/chunks/bundle-gtkPlUrw.js.map +0 -1
- package/cjs/chunks/bundle-miB6ue8g.js.map +0 -1
- package/cjs/chunks/bundle-oeWNUdCB.js +0 -20
- package/cjs/chunks/bundle-oeWNUdCB.js.map +0 -1
- package/cjs/chunks/bundle-qI5gnScC.js.map +0 -1
- package/dist/index.css.map +0 -1
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import React__default, { useEffect, useCallback, useState, useReducer, useRef, useMemo } from 'react';
|
|
2
|
-
import { U as UserProfileProvider } from './bundle-
|
|
3
|
-
import { _ as __assign, c as __spreadArray, a as __awaiter, b as __generator } from './bundle-
|
|
4
|
-
import { c as compareIds } from './bundle-
|
|
5
|
-
import { p as pubSubTopics } from './bundle-
|
|
2
|
+
import { U as UserProfileProvider } from './bundle-C_dNvBEo.js';
|
|
3
|
+
import { _ as __assign, c as __spreadArray, a as __awaiter, b as __generator } from './bundle-DKkCwVCs.js';
|
|
4
|
+
import { c as compareIds } from './bundle-Dk5y6RzJ.js';
|
|
5
|
+
import { p as pubSubTopics } from './bundle-CriEArZn.js';
|
|
6
6
|
import { ChannelType } from '@sendbird/chat';
|
|
7
7
|
import { OpenChannelHandler } from '@sendbird/chat/openChannel';
|
|
8
|
-
import { u as uuidv4 } from './bundle-
|
|
9
|
-
import { c as compressImages } from './bundle-
|
|
8
|
+
import { u as uuidv4 } from './bundle-uIqOEfCa.js';
|
|
9
|
+
import { c as compressImages } from './bundle-DYtgOX1c.js';
|
|
10
10
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
11
|
-
import { b as useGlobalModalContext, c as ModalFooter } from './bundle-
|
|
12
|
-
import { u as useLocalization } from './bundle-
|
|
13
|
-
import { O as ONE_MiB } from './bundle-
|
|
14
|
-
import './bundle-
|
|
11
|
+
import { b as useGlobalModalContext, c as ModalFooter } from './bundle-CGmq3qGM.js';
|
|
12
|
+
import { u as useLocalization } from './bundle-nfJ9J5Md.js';
|
|
13
|
+
import { O as ONE_MiB } from './bundle-DhBuJR0w.js';
|
|
14
|
+
import './bundle-prXB4t_m.js';
|
|
15
15
|
import { ButtonTypes } from '../ui/Button.js';
|
|
16
16
|
|
|
17
17
|
var shouldFetchMore = function (messageLength, maxMessages) {
|
|
18
18
|
if (typeof maxMessages !== 'number') {
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
&& maxMessages > messageLength) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
21
|
+
return maxMessages > messageLength;
|
|
26
22
|
};
|
|
27
23
|
/* eslint-disable default-param-last */
|
|
28
24
|
var scrollIntoLast = function (initialTry, scrollRef) {
|
|
@@ -35,7 +31,9 @@ var scrollIntoLast = function (initialTry, scrollRef) {
|
|
|
35
31
|
try {
|
|
36
32
|
var scrollDOM = (scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) || document.querySelector('.sendbird-openchannel-conversation-scroll__container__item-container');
|
|
37
33
|
// eslint-disable-next-line no-multi-assign
|
|
38
|
-
scrollDOM
|
|
34
|
+
if (scrollDOM) {
|
|
35
|
+
scrollDOM.scrollTop = scrollDOM.scrollHeight;
|
|
36
|
+
}
|
|
39
37
|
}
|
|
40
38
|
catch (error) {
|
|
41
39
|
setTimeout(function () {
|
|
@@ -60,7 +58,9 @@ var isOperator = function (openChannel, userId) {
|
|
|
60
58
|
return true;
|
|
61
59
|
};
|
|
62
60
|
var isDisabledBecauseFrozen = function (openChannel, userId) {
|
|
63
|
-
|
|
61
|
+
if (!openChannel)
|
|
62
|
+
return false;
|
|
63
|
+
var isFrozen = openChannel.isFrozen;
|
|
64
64
|
return isFrozen && !isOperator(openChannel, userId);
|
|
65
65
|
};
|
|
66
66
|
var isDisabledBecauseMuted = function (mutedParticipantIds, userId) {
|
|
@@ -125,7 +125,7 @@ var ON_META_COUNTERS_DELETED = 'ON_META_COUNTERS_DELETED';
|
|
|
125
125
|
var ON_MENTION_RECEIVED = 'ON_MENTION_RECEIVED';
|
|
126
126
|
|
|
127
127
|
function reducer(state, action) {
|
|
128
|
-
var _a, _b, _c;
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
129
129
|
switch (action.type) {
|
|
130
130
|
case RESET_MESSAGES: {
|
|
131
131
|
return __assign(__assign({}, state), { allMessages: [] });
|
|
@@ -156,13 +156,13 @@ function reducer(state, action) {
|
|
|
156
156
|
case GET_PREV_MESSAGES_SUCESS:
|
|
157
157
|
case GET_PREV_MESSAGES_FAIL: {
|
|
158
158
|
var isFailed = (action.type === GET_PREV_MESSAGES_FAIL);
|
|
159
|
-
var
|
|
159
|
+
var _j = action.payload, _k = _j.currentOpenChannel, currentOpenChannel = _k === void 0 ? {} : _k, _l = _j.messages, messages = _l === void 0 ? [] : _l, hasMore = _j.hasMore, lastMessageTimestamp = _j.lastMessageTimestamp;
|
|
160
160
|
var actionChannelUrl = currentOpenChannel.url;
|
|
161
|
-
var receivedMessages_1 = isFailed ? [] : messages;
|
|
161
|
+
var receivedMessages_1 = (isFailed ? [] : messages);
|
|
162
162
|
var _hasMore = isFailed ? false : hasMore;
|
|
163
163
|
var _lastMessageTimestamp = isFailed ? 0 : lastMessageTimestamp;
|
|
164
164
|
var stateChannel = state.currentOpenChannel;
|
|
165
|
-
var stateChannelUrl = stateChannel.url;
|
|
165
|
+
var stateChannelUrl = stateChannel === null || stateChannel === void 0 ? void 0 : stateChannel.url;
|
|
166
166
|
if (actionChannelUrl !== stateChannelUrl) {
|
|
167
167
|
return state;
|
|
168
168
|
}
|
|
@@ -173,8 +173,8 @@ function reducer(state, action) {
|
|
|
173
173
|
return __assign(__assign({}, state), { loading: false, initialized: true, hasMore: _hasMore, lastMessageTimestamp: _lastMessageTimestamp, allMessages: __spreadArray(__spreadArray([], receivedMessages_1, true), filteredAllMessages, true) });
|
|
174
174
|
}
|
|
175
175
|
case SENDING_MESSAGE_START: {
|
|
176
|
-
var
|
|
177
|
-
if ((channel === null || channel === void 0 ? void 0 : channel.url) !== state.currentOpenChannel.url
|
|
176
|
+
var _m = action.payload, message_1 = _m.message, channel = _m.channel;
|
|
177
|
+
if ((channel === null || channel === void 0 ? void 0 : channel.url) !== ((_c = state.currentOpenChannel) === null || _c === void 0 ? void 0 : _c.url)
|
|
178
178
|
|| state.allMessages.some(function (m) { return m.reqId === message_1.reqId; })
|
|
179
179
|
// Handing failed first than sending start issue
|
|
180
180
|
) {
|
|
@@ -204,7 +204,7 @@ function reducer(state, action) {
|
|
|
204
204
|
}
|
|
205
205
|
case TRIM_MESSAGE_LIST: {
|
|
206
206
|
var allMessages = state.allMessages;
|
|
207
|
-
var messageLimit = (
|
|
207
|
+
var messageLimit = (_d = action.payload) === null || _d === void 0 ? void 0 : _d.messageLimit;
|
|
208
208
|
if (messageLimit
|
|
209
209
|
&& messageLimit > 0
|
|
210
210
|
&& (allMessages === null || allMessages === void 0 ? void 0 : allMessages.length) > messageLimit) {
|
|
@@ -216,7 +216,7 @@ function reducer(state, action) {
|
|
|
216
216
|
case RESENDING_MESSAGE_START: {
|
|
217
217
|
var eventedChannel = action.payload.channel;
|
|
218
218
|
var resentMessage_1 = action.payload.message;
|
|
219
|
-
if (eventedChannel.url !== state.currentOpenChannel.url) {
|
|
219
|
+
if (eventedChannel.url !== ((_e = state.currentOpenChannel) === null || _e === void 0 ? void 0 : _e.url)) {
|
|
220
220
|
return state;
|
|
221
221
|
}
|
|
222
222
|
return __assign(__assign({}, state), { allMessages: state.allMessages.map(function (m) { return (compareIds(m.reqId, resentMessage_1.reqId) ? resentMessage_1 : m); }) });
|
|
@@ -224,7 +224,7 @@ function reducer(state, action) {
|
|
|
224
224
|
case FETCH_PARTICIPANT_LIST: {
|
|
225
225
|
var eventedChannel = action.payload.channel;
|
|
226
226
|
var fetchedParticipantList = action.payload.users;
|
|
227
|
-
if (eventedChannel.url !== state.currentOpenChannel.url) {
|
|
227
|
+
if (eventedChannel.url !== ((_f = state.currentOpenChannel) === null || _f === void 0 ? void 0 : _f.url)) {
|
|
228
228
|
return state;
|
|
229
229
|
}
|
|
230
230
|
return __assign(__assign({}, state), { participants: __spreadArray(__spreadArray([], state.participants, true), fetchedParticipantList, true) });
|
|
@@ -232,7 +232,7 @@ function reducer(state, action) {
|
|
|
232
232
|
case FETCH_BANNED_USER_LIST: {
|
|
233
233
|
var eventedChannel = action.payload.channel;
|
|
234
234
|
var fetchedBannedUserList = action.payload.users;
|
|
235
|
-
if ((eventedChannel.url !== state.currentOpenChannel.url)
|
|
235
|
+
if ((eventedChannel.url !== ((_g = state.currentOpenChannel) === null || _g === void 0 ? void 0 : _g.url))
|
|
236
236
|
|| !(fetchedBannedUserList.every(function (user) { return typeof user.userId === 'string'; }))) {
|
|
237
237
|
return state;
|
|
238
238
|
}
|
|
@@ -241,7 +241,7 @@ function reducer(state, action) {
|
|
|
241
241
|
case FETCH_MUTED_USER_LIST: {
|
|
242
242
|
var eventedChannel = action.payload.channel;
|
|
243
243
|
var fetchedMutedUserList = action.payload.users;
|
|
244
|
-
if ((eventedChannel.url !== state.currentOpenChannel.url)
|
|
244
|
+
if ((eventedChannel.url !== ((_h = state.currentOpenChannel) === null || _h === void 0 ? void 0 : _h.url))
|
|
245
245
|
|| !(fetchedMutedUserList.every(function (user) { return typeof user.userId === 'string'; }))) {
|
|
246
246
|
return state;
|
|
247
247
|
}
|
|
@@ -252,7 +252,7 @@ function reducer(state, action) {
|
|
|
252
252
|
var eventedChannel = action.payload.channel;
|
|
253
253
|
var receivedMessage = action.payload.message;
|
|
254
254
|
var currentOpenChannel = state.currentOpenChannel;
|
|
255
|
-
if (!compareIds(eventedChannel.url, currentOpenChannel.url)
|
|
255
|
+
if (!compareIds(eventedChannel.url, currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.url)
|
|
256
256
|
|| (!(state.allMessages.map(function (message) { return message.messageId; }).indexOf(receivedMessage.messageId) < 0))) {
|
|
257
257
|
return state;
|
|
258
258
|
}
|
|
@@ -769,6 +769,7 @@ function useInitialMessagesFetch(_a, _b) {
|
|
|
769
769
|
};
|
|
770
770
|
if (userFilledMessageListParams) {
|
|
771
771
|
Object.keys(userFilledMessageListParams).forEach(function (key) {
|
|
772
|
+
// @ts-ignore
|
|
772
773
|
messageListParams_1[key] = userFilledMessageListParams[key];
|
|
773
774
|
});
|
|
774
775
|
logger.info('OpenChannel | useInitialMessagesFetch: Used customizedMessageListParams');
|
|
@@ -821,12 +822,13 @@ function useScrollCallback(_a, _b) {
|
|
|
821
822
|
};
|
|
822
823
|
if (userFilledMessageListParams) {
|
|
823
824
|
Object.keys(userFilledMessageListParams).forEach(function (key) {
|
|
825
|
+
// @ts-ignore
|
|
824
826
|
messageListParams_1[key] = userFilledMessageListParams[key];
|
|
825
827
|
});
|
|
826
828
|
logger.info('OpenChannel | useScrollCallback: Used userFilledMessageListParams', userFilledMessageListParams);
|
|
827
829
|
}
|
|
828
830
|
logger.info('OpenChannel | useScrollCallback: Fetching messages', { currentOpenChannel: currentOpenChannel, messageListParams: messageListParams_1 });
|
|
829
|
-
currentOpenChannel.getMessagesByTimestamp(lastMessageTimestamp || new Date().getTime(), messageListParams_1).then(function (messages) {
|
|
831
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.getMessagesByTimestamp(lastMessageTimestamp || new Date().getTime(), messageListParams_1).then(function (messages) {
|
|
830
832
|
logger.info('OpenChannel | useScrollCallback: Fetching messages succeeded', messages);
|
|
831
833
|
var hasMore = (messages && messages.length > 0);
|
|
832
834
|
var lastMessageTimestamp = hasMore ? messages[0].createdAt : null;
|
|
@@ -880,8 +882,9 @@ function useSendMessageCallback(_a, _b) {
|
|
|
880
882
|
var currentOpenChannel = _a.currentOpenChannel, onBeforeSendUserMessage = _a.onBeforeSendUserMessage, messageInputRef = _a.messageInputRef;
|
|
881
883
|
var sdk = _b.sdk, logger = _b.logger, messagesDispatcher = _b.messagesDispatcher, scrollRef = _b.scrollRef;
|
|
882
884
|
return useCallback(function () {
|
|
885
|
+
var _a;
|
|
883
886
|
if (sdk) {
|
|
884
|
-
var text = messageInputRef.current.innerText;
|
|
887
|
+
var text = (_a = messageInputRef.current) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
885
888
|
var createParamsDefault = function (txt) {
|
|
886
889
|
var message = txt;
|
|
887
890
|
var params = {
|
|
@@ -893,11 +896,10 @@ function useSendMessageCallback(_a, _b) {
|
|
|
893
896
|
if (createCustomParams) {
|
|
894
897
|
logger.info('OpenChannel | useSendMessageCallback: Creating params using onBeforeSendUserMessage', onBeforeSendUserMessage);
|
|
895
898
|
}
|
|
896
|
-
var params = onBeforeSendUserMessage ? onBeforeSendUserMessage(text) : createParamsDefault(text);
|
|
899
|
+
var params = onBeforeSendUserMessage ? onBeforeSendUserMessage(text !== null && text !== void 0 ? text : '') : createParamsDefault(text !== null && text !== void 0 ? text : '');
|
|
897
900
|
logger.info('OpenChannel | useSendMessageCallback: Sending message has started', params);
|
|
898
|
-
var pendingMsg_1
|
|
899
|
-
currentOpenChannel.sendUserMessage(params)
|
|
900
|
-
.onPending(function (pendingMessage) {
|
|
901
|
+
var pendingMsg_1;
|
|
902
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.sendUserMessage(params).onPending(function (pendingMessage) {
|
|
901
903
|
messagesDispatcher({
|
|
902
904
|
type: SENDING_MESSAGE_START,
|
|
903
905
|
payload: {
|
|
@@ -907,15 +909,13 @@ function useSendMessageCallback(_a, _b) {
|
|
|
907
909
|
});
|
|
908
910
|
pendingMsg_1 = pendingMessage;
|
|
909
911
|
setTimeout(function () { return scrollIntoLast(0, scrollRef); });
|
|
910
|
-
})
|
|
911
|
-
.onSucceeded(function (message) {
|
|
912
|
+
}).onSucceeded(function (message) {
|
|
912
913
|
logger.info('OpenChannel | useSendMessageCallback: Sending message succeeded', message);
|
|
913
914
|
messagesDispatcher({
|
|
914
915
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
915
916
|
payload: message,
|
|
916
917
|
});
|
|
917
|
-
})
|
|
918
|
-
.onFailed(function (error) {
|
|
918
|
+
}).onFailed(function (error) {
|
|
919
919
|
logger.warning('OpenChannel | useSendMessageCallback: Sending message failed', error);
|
|
920
920
|
messagesDispatcher({
|
|
921
921
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -954,9 +954,9 @@ function useFileUploadCallback(_a, _b) {
|
|
|
954
954
|
if (!sdk) return [3 /*break*/, 2];
|
|
955
955
|
file_1 = Array.isArray(files) ? files[0] : files;
|
|
956
956
|
createCustomParams = onBeforeSendFileMessage && typeof onBeforeSendFileMessage === 'function';
|
|
957
|
-
createParamsDefault = function (
|
|
957
|
+
createParamsDefault = function (file) {
|
|
958
958
|
var params = {};
|
|
959
|
-
params.file =
|
|
959
|
+
params.file = file;
|
|
960
960
|
return params;
|
|
961
961
|
};
|
|
962
962
|
/**
|
|
@@ -991,8 +991,7 @@ function useFileUploadCallback(_a, _b) {
|
|
|
991
991
|
}
|
|
992
992
|
params = onBeforeSendFileMessage ? onBeforeSendFileMessage(compressedFile) : createParamsDefault(compressedFile);
|
|
993
993
|
logger.info('OpenChannel | useFileUploadCallback: Uploading file message start', params);
|
|
994
|
-
currentOpenChannel.sendFileMessage(params)
|
|
995
|
-
.onPending(function (pendingMessage) {
|
|
994
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.sendFileMessage(params).onPending(function (pendingMessage) {
|
|
996
995
|
messagesDispatcher({
|
|
997
996
|
type: SENDING_MESSAGE_START,
|
|
998
997
|
payload: {
|
|
@@ -1004,15 +1003,13 @@ function useFileUploadCallback(_a, _b) {
|
|
|
1004
1003
|
},
|
|
1005
1004
|
});
|
|
1006
1005
|
setTimeout(function () { return scrollIntoLast(0, scrollRef); });
|
|
1007
|
-
})
|
|
1008
|
-
.onSucceeded(function (message) {
|
|
1006
|
+
}).onSucceeded(function (message) {
|
|
1009
1007
|
logger.info('OpenChannel | useFileUploadCallback: Sending message succeeded', message);
|
|
1010
1008
|
messagesDispatcher({
|
|
1011
1009
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1012
1010
|
payload: message,
|
|
1013
1011
|
});
|
|
1014
|
-
})
|
|
1015
|
-
.onFailed(function (error, message) {
|
|
1012
|
+
}).onFailed(function (error, message) {
|
|
1016
1013
|
logger.error('OpenChannel | useFileUploadCallback: Sending file message failed', { message: message, error: error });
|
|
1017
1014
|
// @ts-ignore
|
|
1018
1015
|
message.localUrl = URL.createObjectURL(file_1);
|
|
@@ -1035,10 +1032,9 @@ function useUpdateMessageCallback(_a, _b) {
|
|
|
1035
1032
|
var logger = _b.logger, messagesDispatcher = _b.messagesDispatcher;
|
|
1036
1033
|
return useCallback(function (messageId, text, callback) {
|
|
1037
1034
|
var createParamsDefault = function (txt) {
|
|
1038
|
-
|
|
1035
|
+
return {
|
|
1039
1036
|
message: txt,
|
|
1040
1037
|
};
|
|
1041
|
-
return params;
|
|
1042
1038
|
};
|
|
1043
1039
|
if (onBeforeSendUserMessage && typeof onBeforeSendUserMessage === 'function') {
|
|
1044
1040
|
logger.info('OpenChannel | useUpdateMessageCallback: Creating params using onBeforeUpdateUserMessage');
|
|
@@ -1083,7 +1079,7 @@ function useDeleteMessageCallback(_a, _b) {
|
|
|
1083
1079
|
return;
|
|
1084
1080
|
}
|
|
1085
1081
|
var messageToDelete = message;
|
|
1086
|
-
currentOpenChannel.deleteMessage(messageToDelete).then(function () {
|
|
1082
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.deleteMessage(messageToDelete).then(function () {
|
|
1087
1083
|
logger.info('OpenChannel | useDeleteMessageCallback: Deleting message on server', sendingStatus);
|
|
1088
1084
|
if (callback) {
|
|
1089
1085
|
callback();
|
|
@@ -1112,9 +1108,7 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1112
1108
|
&& failedMessage.isResendable) {
|
|
1113
1109
|
// userMessage
|
|
1114
1110
|
if (failedMessage.isUserMessage()) {
|
|
1115
|
-
currentOpenChannel
|
|
1116
|
-
.resendMessage(failedMessage)
|
|
1117
|
-
.onPending(function (message) {
|
|
1111
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.resendMessage(failedMessage).onPending(function (message) {
|
|
1118
1112
|
messagesDispatcher({
|
|
1119
1113
|
type: RESENDING_MESSAGE_START,
|
|
1120
1114
|
payload: {
|
|
@@ -1122,15 +1116,13 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1122
1116
|
message: message,
|
|
1123
1117
|
},
|
|
1124
1118
|
});
|
|
1125
|
-
})
|
|
1126
|
-
.onSucceeded(function (message) {
|
|
1119
|
+
}).onSucceeded(function (message) {
|
|
1127
1120
|
logger.info('OpenChannel | useResendMessageCallback: Reseding message succeeded', message);
|
|
1128
1121
|
messagesDispatcher({
|
|
1129
1122
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1130
1123
|
payload: message,
|
|
1131
1124
|
});
|
|
1132
|
-
})
|
|
1133
|
-
.onFailed(function (error, message) {
|
|
1125
|
+
}).onFailed(function (error, message) {
|
|
1134
1126
|
logger.warning('OpenChannel | useResendMessageCallback: Resending message failed', error);
|
|
1135
1127
|
messagesDispatcher({
|
|
1136
1128
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -1140,9 +1132,7 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1140
1132
|
}
|
|
1141
1133
|
// fileMessage
|
|
1142
1134
|
if (failedMessage.isFileMessage()) {
|
|
1143
|
-
currentOpenChannel
|
|
1144
|
-
.resendMessage(failedMessage)
|
|
1145
|
-
.onPending(function (message) {
|
|
1135
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.resendMessage(failedMessage).onPending(function (message) {
|
|
1146
1136
|
messagesDispatcher({
|
|
1147
1137
|
type: RESENDING_MESSAGE_START,
|
|
1148
1138
|
payload: {
|
|
@@ -1150,15 +1140,13 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1150
1140
|
message: message,
|
|
1151
1141
|
},
|
|
1152
1142
|
});
|
|
1153
|
-
})
|
|
1154
|
-
.onSucceeded(function (message) {
|
|
1143
|
+
}).onSucceeded(function (message) {
|
|
1155
1144
|
logger.info('OpenChannel | useResendMessageCallback: Resending file message succeeded', message);
|
|
1156
1145
|
messagesDispatcher({
|
|
1157
1146
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1158
1147
|
payload: message,
|
|
1159
1148
|
});
|
|
1160
|
-
})
|
|
1161
|
-
.onFailed(function (error, message) {
|
|
1149
|
+
}).onFailed(function (error, message) {
|
|
1162
1150
|
logger.warning('OpenChannel | useResendMessageCallback: Resending file message failed', error);
|
|
1163
1151
|
messagesDispatcher({
|
|
1164
1152
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -1189,7 +1177,7 @@ function useTrimMessageList(_a, _b) {
|
|
|
1189
1177
|
if (inProgress) {
|
|
1190
1178
|
return;
|
|
1191
1179
|
}
|
|
1192
|
-
if (typeof messagesLength === 'number' && messagesLength > messageLimit) {
|
|
1180
|
+
if (typeof messagesLength === 'number' && typeof messageLimit === 'number' && messagesLength > messageLimit) {
|
|
1193
1181
|
logger.info('Trimming MessageList');
|
|
1194
1182
|
messagesDispatcher({
|
|
1195
1183
|
type: TRIM_MESSAGE_LIST,
|
|
@@ -1201,7 +1189,7 @@ function useTrimMessageList(_a, _b) {
|
|
|
1201
1189
|
}, [messagesLength, messageLimit]);
|
|
1202
1190
|
}
|
|
1203
1191
|
|
|
1204
|
-
var OpenChannelContext = React__default.createContext(
|
|
1192
|
+
var OpenChannelContext = React__default.createContext(null);
|
|
1205
1193
|
var OpenChannelProvider = function (props) {
|
|
1206
1194
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1207
1195
|
var channelUrl = props.channelUrl, children = props.children, _h = props.isMessageGroupingEnabled, isMessageGroupingEnabled = _h === void 0 ? true : _h, queries = props.queries, onBeforeSendUserMessage = props.onBeforeSendUserMessage, messageLimit = props.messageLimit, onBeforeSendFileMessage = props.onBeforeSendFileMessage, onChatHeaderActionClick = props.onChatHeaderActionClick, onBackClick = props.onBackClick, disableUserProfile = props.disableUserProfile, renderUserProfile = props.renderUserProfile;
|
|
@@ -1241,7 +1229,7 @@ var OpenChannelProvider = function (props) {
|
|
|
1241
1229
|
useHandleChannelEvents({ currentOpenChannel: currentOpenChannel, checkScrollBottom: checkScrollBottom }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1242
1230
|
useInitialMessagesFetch({ currentOpenChannel: currentOpenChannel, userFilledMessageListParams: userFilledMessageListParams }, { logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1243
1231
|
var fetchMore = shouldFetchMore(allMessages === null || allMessages === void 0 ? void 0 : allMessages.length, messageLimit);
|
|
1244
|
-
//
|
|
1232
|
+
// do not fetch more for streaming
|
|
1245
1233
|
var onScroll = useScrollCallback({ currentOpenChannel: currentOpenChannel, lastMessageTimestamp: lastMessageTimestamp, fetchMore: fetchMore }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, hasMore: hasMore, userFilledMessageListParams: userFilledMessageListParams });
|
|
1246
1234
|
var handleSendMessage = useSendMessageCallback({ currentOpenChannel: currentOpenChannel, onBeforeSendUserMessage: onBeforeSendUserMessage, checkScrollBottom: checkScrollBottom, messageInputRef: messageInputRef }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1247
1235
|
var handleFileUpload = useFileUploadCallback({ currentOpenChannel: currentOpenChannel, onBeforeSendFileMessage: onBeforeSendFileMessage, checkScrollBottom: checkScrollBottom, imageCompression: imageCompression }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
@@ -1359,7 +1347,12 @@ var OpenChannelProvider = function (props) {
|
|
|
1359
1347
|
} },
|
|
1360
1348
|
React__default.createElement(UserProfileProvider, { isOpenChannel: true, renderUserProfile: props === null || props === void 0 ? void 0 : props.renderUserProfile, disableUserProfile: (_g = props === null || props === void 0 ? void 0 : props.disableUserProfile) !== null && _g !== void 0 ? _g : config === null || config === void 0 ? void 0 : config.disableUserProfile }, children)));
|
|
1361
1349
|
};
|
|
1362
|
-
var useOpenChannelContext = function () {
|
|
1350
|
+
var useOpenChannelContext = function () {
|
|
1351
|
+
var context = React__default.useContext(OpenChannelContext);
|
|
1352
|
+
if (!context)
|
|
1353
|
+
throw new Error('OpenChannelContext not found. Use within the OpenChannel module');
|
|
1354
|
+
return context;
|
|
1355
|
+
};
|
|
1363
1356
|
|
|
1364
1357
|
export { OpenChannelProvider as O, kFormatter as k, useOpenChannelContext as u };
|
|
1365
|
-
//# sourceMappingURL=bundle-
|
|
1358
|
+
//# sourceMappingURL=bundle-DQdztuN4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-DQdztuN4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K, b as isFileMessage, c as isMultipleFilesMessage } from './bundle-
|
|
1
|
+
import { K, b as isFileMessage, c as isMultipleFilesMessage } from './bundle-janisM9b.js';
|
|
2
2
|
|
|
3
3
|
function getMessageFirstFileType(message) {
|
|
4
4
|
return K(message)
|
|
@@ -65,4 +65,4 @@ function getMessageFirstFileThumbnailUrl(message) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export { getMessageFirstFileType as a, getMessageFirstFileName as b, getMessageFirstFileThumbnailUrl as c, getMessageFirstFileUrl as g };
|
|
68
|
-
//# sourceMappingURL=bundle-
|
|
68
|
+
//# sourceMappingURL=bundle-DYErcqMl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-DYErcqMl.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __awaiter, b as __generator } from './bundle-
|
|
2
|
-
import { p as pxToNumber } from './bundle-
|
|
1
|
+
import { a as __awaiter, b as __generator } from './bundle-DKkCwVCs.js';
|
|
2
|
+
import { p as pxToNumber } from './bundle-Bmk2FVdj.js';
|
|
3
3
|
|
|
4
4
|
var compressImage = function (_a) {
|
|
5
5
|
var imageFile = _a.imageFile, compressionRate = _a.compressionRate, resizingWidth = _a.resizingWidth, resizingHeight = _a.resizingHeight, outputFormat = _a.outputFormat;
|
|
@@ -59,8 +59,8 @@ var compressImages = function (_a) { return __awaiter(void 0, [_a], void 0, func
|
|
|
59
59
|
switch (_d.label) {
|
|
60
60
|
case 0:
|
|
61
61
|
compressionRate = imageCompression.compressionRate, _c = imageCompression.outputFormat, outputFormat = _c === void 0 ? 'preserve' : _c;
|
|
62
|
-
resizingWidth = pxToNumber(imageCompression.resizingWidth);
|
|
63
|
-
resizingHeight = pxToNumber(imageCompression.resizingHeight);
|
|
62
|
+
resizingWidth = imageCompression.resizingWidth ? pxToNumber(imageCompression.resizingWidth) : undefined;
|
|
63
|
+
resizingHeight = imageCompression.resizingHeight ? pxToNumber(imageCompression.resizingHeight) : undefined;
|
|
64
64
|
result = {
|
|
65
65
|
failedIndexes: [],
|
|
66
66
|
compressedFiles: [],
|
|
@@ -69,7 +69,7 @@ var compressImages = function (_a) { return __awaiter(void 0, [_a], void 0, func
|
|
|
69
69
|
logger === null || logger === void 0 ? void 0 : logger.warning('utils - compressImages: There are no files.', files);
|
|
70
70
|
return [2 /*return*/, result];
|
|
71
71
|
}
|
|
72
|
-
if (compressionRate < 0 || 1 < compressionRate) {
|
|
72
|
+
if (!compressionRate || compressionRate < 0 || 1 < compressionRate) {
|
|
73
73
|
logger === null || logger === void 0 ? void 0 : logger.warning('utils - compressImages: The compressionRate is not acceptable.', compressionRate);
|
|
74
74
|
return [2 /*return*/, result];
|
|
75
75
|
}
|
|
@@ -117,4 +117,4 @@ var compressImages = function (_a) { return __awaiter(void 0, [_a], void 0, func
|
|
|
117
117
|
}); };
|
|
118
118
|
|
|
119
119
|
export { compressImages as c };
|
|
120
|
-
//# sourceMappingURL=bundle-
|
|
120
|
+
//# sourceMappingURL=bundle-DYtgOX1c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-DYtgOX1c.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -28,10 +28,11 @@ var DELIVERY_RECEIPT = 'delivery_receipt';
|
|
|
28
28
|
var SLIDER_BUTTON_ICON_SIDE_LENGTH = '32px';
|
|
29
29
|
// multiple files message file info count limit
|
|
30
30
|
var DEFAULT_MULTIPLE_FILES_MESSAGE_LIMIT = 10;
|
|
31
|
+
var DEFAULT_UPLOAD_SIZE_LIMIT = 25 * 1024 * 1024;
|
|
31
32
|
// Local storage item key for sdk templates token
|
|
32
33
|
var CACHED_MESSAGE_TEMPLATES_TOKEN_KEY = 'sendbird_message_templates_token_key';
|
|
33
34
|
// Local storage item key for templates in JSON string form
|
|
34
35
|
var CACHED_MESSAGE_TEMPLATES_KEY = 'sendbird_message_templates_key';
|
|
35
36
|
|
|
36
|
-
export { BROWSER_SUPPORT_MIME_TYPE_LIST as B, CACHED_MESSAGE_TEMPLATES_TOKEN_KEY as C, DELIVERY_RECEIPT as D, META_ARRAY_VOICE_DURATION_KEY as M, ONE_MiB as O, SCROLL_BUFFER as S, VOICE_RECORDER_AUDIO_SAMPLE_RATE as V, SCROLL_BOTTOM_DELAY_FOR_FETCH as a, SCROLL_BOTTOM_DELAY_FOR_SEND as b, VOICE_PLAYER_AUDIO_ID as c,
|
|
37
|
-
//# sourceMappingURL=bundle-
|
|
37
|
+
export { BROWSER_SUPPORT_MIME_TYPE_LIST as B, CACHED_MESSAGE_TEMPLATES_TOKEN_KEY as C, DELIVERY_RECEIPT as D, META_ARRAY_VOICE_DURATION_KEY as M, ONE_MiB as O, SCROLL_BUFFER as S, VOICE_RECORDER_AUDIO_SAMPLE_RATE as V, SCROLL_BOTTOM_DELAY_FOR_FETCH as a, SCROLL_BOTTOM_DELAY_FOR_SEND as b, VOICE_PLAYER_AUDIO_ID as c, VOICE_RECORDER_CLICK_BUFFER_TIME as d, VOICE_RECORDER_DEFAULT_MIN as e, VOICE_PLAYER_ROOT_ID as f, VOICE_MESSAGE_FILE_NAME as g, VOICE_MESSAGE_MIME_TYPE as h, META_ARRAY_MESSAGE_TYPE_KEY as i, META_ARRAY_MESSAGE_TYPE_VALUE__VOICE as j, VOICE_RECORDER_AUDIO_BIT_RATE as k, SLIDER_BUTTON_ICON_SIDE_LENGTH as l, CACHED_MESSAGE_TEMPLATES_KEY as m, DEFAULT_MULTIPLE_FILES_MESSAGE_LIMIT as n, DEFAULT_UPLOAD_SIZE_LIMIT as o, VOICE_RECORDER_DEFAULT_MAX as p };
|
|
38
|
+
//# sourceMappingURL=bundle-DhBuJR0w.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-DhBuJR0w.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-Dk5y6RzJ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|