@sendbird/uikit-react 3.8.0 → 3.8.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 +59 -59
- package/CHANGELOG.md +56 -0
- package/Channel/components/ChannelHeader.js +24 -24
- package/Channel/components/ChannelUI.js +55 -55
- package/Channel/components/FileViewer.js +23 -23
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +53 -53
- package/Channel/components/MessageInput.js +35 -35
- package/Channel/components/MessageList.js +52 -52
- package/Channel/components/RemoveMessageModal.js +23 -23
- package/Channel/components/SuggestedMentionList.js +84 -48
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +19 -19
- package/Channel/components/UnreadCount.js +9 -9
- package/Channel/context.js +16 -16
- package/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/Channel/utils/getMessagePartsInfo.js +7 -7
- package/Channel.js +55 -55
- package/ChannelList/components/AddChannel.js +17 -17
- package/ChannelList/components/ChannelListHeader.js +8 -8
- package/ChannelList/components/ChannelListUI.js +33 -33
- package/ChannelList/components/ChannelPreview.js +31 -31
- package/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/ChannelList/context.js +9 -9
- package/ChannelList.js +33 -33
- package/ChannelSettings/components/ChannelProfile.js +13 -13
- package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +16 -16
- package/ChannelSettings/components/UserListItem.js +12 -12
- package/ChannelSettings/components/UserPanel.js +15 -15
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +18 -18
- package/CreateChannel/components/CreateChannelUI.js +15 -15
- package/CreateChannel/components/InviteUsers.js +15 -15
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +15 -15
- 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/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 +14 -14
- package/OpenChannel/components/OpenChannelInput.js +21 -21
- package/OpenChannel/components/OpenChannelMessage.js +32 -32
- package/OpenChannel/components/OpenChannelMessageList.js +34 -34
- package/OpenChannel/components/OpenChannelUI.js +34 -34
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +34 -34
- 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 +14 -14
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/OpenChannelSettings/components/OperatorUI.js +18 -18
- package/OpenChannelSettings/components/ParticipantUI.js +16 -16
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +18 -18
- package/SendbirdProvider.js +24 -33
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +39 -39
- package/Thread/components/ParentMessageInfoItem.js +27 -26
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +43 -43
- package/Thread/components/ThreadListItem.js +45 -45
- package/Thread/components/ThreadMessageInput.js +35 -35
- package/Thread/components/ThreadUI.js +47 -47
- package/Thread/context.js +69 -49
- package/Thread/context.js.map +1 -1
- package/Thread.js +46 -46
- 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-dLuEa16_.js → bundle-0--XgUA7.js} +3 -3
- package/chunks/{bundle-dLuEa16_.js.map → bundle-0--XgUA7.js.map} +1 -1
- package/chunks/{bundle-bJrywUB-.js → bundle-0QcaQ8yA.js} +10 -10
- package/chunks/{bundle-TZXZa-F1.js.map → bundle-0QcaQ8yA.js.map} +1 -1
- package/chunks/{bundle-v0OWADVv.js → bundle-1O7rPYFy.js} +3 -3
- package/chunks/bundle-1O7rPYFy.js.map +1 -0
- package/chunks/{bundle-H2I60B2B.js → bundle-2zaLibl-.js} +2 -2
- package/chunks/bundle-2zaLibl-.js.map +1 -0
- package/chunks/{bundle-Q8dtkDOa.js → bundle-4yQvKOnq.js} +1 -1
- package/chunks/bundle-4yQvKOnq.js.map +1 -0
- package/chunks/{bundle-_YRJ7d9_.js → bundle-50blTGht.js} +26 -27
- package/chunks/{bundle-_YRJ7d9_.js.map → bundle-50blTGht.js.map} +1 -1
- package/chunks/{bundle-ubky9D9H.js → bundle-5WxplyP9.js} +1 -1
- package/chunks/bundle-5WxplyP9.js.map +1 -0
- package/chunks/{bundle-8zJE_DCx.js → bundle-5asq-E-v.js} +6 -6
- package/chunks/bundle-5asq-E-v.js.map +1 -0
- package/chunks/{bundle-NCqCEOuY.js → bundle-6Opy_RV-.js} +4 -4
- package/chunks/{bundle-NCqCEOuY.js.map → bundle-6Opy_RV-.js.map} +1 -1
- package/chunks/{bundle-YEttY5xG.js → bundle-8Ct4JuXG.js} +1 -1
- package/chunks/bundle-8Ct4JuXG.js.map +1 -0
- package/chunks/{bundle-M2ljBW6p.js → bundle-9AVOtanU.js} +4 -4
- package/chunks/bundle-9AVOtanU.js.map +1 -0
- package/chunks/{bundle-vnmGzWMt.js → bundle-9YazFOHk.js} +4 -4
- package/chunks/{bundle-vnmGzWMt.js.map → bundle-9YazFOHk.js.map} +1 -1
- package/chunks/{bundle-LUte5Kb5.js → bundle-BgGUA_Do.js} +91 -166
- package/chunks/{bundle-LUte5Kb5.js.map → bundle-BgGUA_Do.js.map} +1 -1
- package/chunks/{bundle-cviP1IM2.js → bundle-EaGyVrR8.js} +3 -3
- package/chunks/{bundle-cviP1IM2.js.map → bundle-EaGyVrR8.js.map} +1 -1
- package/chunks/{bundle-ZmvX8uZ5.js → bundle-EoW7JC-6.js} +5 -17
- package/chunks/bundle-EoW7JC-6.js.map +1 -0
- package/chunks/bundle-Ey2KFn-R.js +42 -0
- package/chunks/bundle-Ey2KFn-R.js.map +1 -0
- package/chunks/{bundle-FTgSGiKe.js → bundle-FxBVAeu9.js} +1 -1
- package/chunks/{bundle-FTgSGiKe.js.map → bundle-FxBVAeu9.js.map} +1 -1
- package/chunks/{bundle-qst5L6aH.js → bundle-GaBLtZQZ.js} +5 -3
- package/chunks/bundle-GaBLtZQZ.js.map +1 -0
- package/chunks/{bundle-btDN-R-c.js → bundle-HTP_W562.js} +3 -3
- package/chunks/bundle-HTP_W562.js.map +1 -0
- package/chunks/{bundle-hKtwSqbO.js → bundle-HUCZoqot.js} +1 -1
- package/chunks/{bundle-hKtwSqbO.js.map → bundle-HUCZoqot.js.map} +1 -1
- package/chunks/{bundle-khKXutc3.js → bundle-I0NSP9ei.js} +1 -1
- package/chunks/bundle-I0NSP9ei.js.map +1 -0
- package/chunks/{bundle-5yKxJk_M.js → bundle-JGL7ecyE.js} +1 -1
- package/chunks/{bundle-5yKxJk_M.js.map → bundle-JGL7ecyE.js.map} +1 -1
- package/chunks/{bundle-3mdR5HDw.js → bundle-JJDjO0bj.js} +2 -2
- package/chunks/{bundle-3mdR5HDw.js.map → bundle-JJDjO0bj.js.map} +1 -1
- package/chunks/{bundle-rYAZn3lj.js → bundle-KkDaqYo6.js} +2 -2
- package/chunks/{bundle-rYAZn3lj.js.map → bundle-KkDaqYo6.js.map} +1 -1
- package/chunks/{bundle-_qiqf8_l.js → bundle-L1jL1HlF.js} +1 -1
- package/chunks/bundle-L1jL1HlF.js.map +1 -0
- package/chunks/{bundle-bofQNMJb.js → bundle-LutukB6f.js} +1 -1
- package/chunks/bundle-LutukB6f.js.map +1 -0
- package/chunks/{bundle-sOjc_nNQ.js → bundle-NRuB0VyT.js} +1 -1
- package/chunks/bundle-NRuB0VyT.js.map +1 -0
- package/chunks/{bundle-ftY5T58h.js → bundle-RXyEKXFG.js} +4 -4
- package/chunks/{bundle-ftY5T58h.js.map → bundle-RXyEKXFG.js.map} +1 -1
- package/chunks/{bundle-EHReigfD.js → bundle-UW-TqfsF.js} +4 -4
- package/chunks/{bundle-EHReigfD.js.map → bundle-UW-TqfsF.js.map} +1 -1
- package/chunks/{bundle-mL_86Tua.js → bundle-UvPIovuO.js} +1 -1
- package/chunks/bundle-UvPIovuO.js.map +1 -0
- package/chunks/{bundle-ANPmLOz8.js → bundle-WJ4T7o4h.js} +4 -4
- package/chunks/{bundle-ANPmLOz8.js.map → bundle-WJ4T7o4h.js.map} +1 -1
- package/chunks/{bundle-kp1MMNMf.js → bundle-WiQweU5U.js} +1 -1
- package/chunks/bundle-WiQweU5U.js.map +1 -0
- package/chunks/{bundle-PgBVk3py.js → bundle-Zl59BqjG.js} +12 -12
- package/chunks/{bundle-PgBVk3py.js.map → bundle-Zl59BqjG.js.map} +1 -1
- package/chunks/{bundle-zoxfINxQ.js → bundle-atKtJDZx.js} +3 -3
- package/chunks/bundle-atKtJDZx.js.map +1 -0
- package/chunks/bundle-cTKDcBXH.js +77 -0
- package/chunks/bundle-cTKDcBXH.js.map +1 -0
- package/chunks/{bundle--F_1NyoU.js → bundle-dGdUFeGw.js} +1 -1
- package/chunks/bundle-dGdUFeGw.js.map +1 -0
- package/chunks/{bundle-v9a1_z0P.js → bundle-fBRojj0w.js} +1 -1
- package/chunks/bundle-fBRojj0w.js.map +1 -0
- package/chunks/{bundle-WCTKBopn.js → bundle-fRhlDZge.js} +2 -2
- package/chunks/bundle-fRhlDZge.js.map +1 -0
- package/chunks/{bundle-53PRRrlp.js → bundle-fiU7Tho8.js} +3 -3
- package/chunks/{bundle-53PRRrlp.js.map → bundle-fiU7Tho8.js.map} +1 -1
- package/chunks/{bundle-Zl1hrCWc.js → bundle-grxc9ClY.js} +4 -4
- package/chunks/bundle-grxc9ClY.js.map +1 -0
- package/chunks/{bundle-r_VxbiS3.js → bundle-iI1ssAAJ.js} +1 -1
- package/chunks/bundle-iI1ssAAJ.js.map +1 -0
- package/chunks/{bundle-zLBuOeRY.js → bundle-iTeulylJ.js} +7 -7
- package/chunks/bundle-iTeulylJ.js.map +1 -0
- package/chunks/{bundle-5iuNyt5M.js → bundle-j2oaAFR4.js} +1 -1
- package/chunks/{bundle-5iuNyt5M.js.map → bundle-j2oaAFR4.js.map} +1 -1
- package/chunks/{bundle-hjECCUV3.js → bundle-kdRMkp9s.js} +2 -2
- package/chunks/bundle-kdRMkp9s.js.map +1 -0
- package/chunks/{bundle-rLxuFUa1.js → bundle-mg_7Exot.js} +5 -5
- package/chunks/bundle-mg_7Exot.js.map +1 -0
- package/chunks/{bundle-w2v7oZ9G.js → bundle-mjC4Frm5.js} +2 -2
- package/chunks/bundle-mjC4Frm5.js.map +1 -0
- package/chunks/{bundle-prRsVvhT.js → bundle-moPxtvhk.js} +2 -2
- package/chunks/{bundle-prRsVvhT.js.map → bundle-moPxtvhk.js.map} +1 -1
- package/chunks/{bundle-TZXZa-F1.js → bundle-n3JTobCF.js} +13 -19
- package/chunks/bundle-n3JTobCF.js.map +1 -0
- package/chunks/{bundle-x-4ukZm_.js → bundle-nB9Rk0Vg.js} +1 -1
- package/chunks/bundle-nB9Rk0Vg.js.map +1 -0
- package/chunks/{bundle-h3JIYRTG.js → bundle-o_MR5zP9.js} +2 -2
- package/chunks/{bundle-h3JIYRTG.js.map → bundle-o_MR5zP9.js.map} +1 -1
- package/chunks/{bundle-wMgBBDf9.js → bundle-qJVzRD5Y.js} +3 -3
- package/chunks/bundle-qJVzRD5Y.js.map +1 -0
- package/chunks/{bundle-9KsbryQI.js → bundle-qReOreYH.js} +1 -1
- package/chunks/{bundle-9KsbryQI.js.map → bundle-qReOreYH.js.map} +1 -1
- package/chunks/{bundle-1P01-roD.js → bundle-rYiLt_kr.js} +7 -7
- package/chunks/{bundle-1P01-roD.js.map → bundle-rYiLt_kr.js.map} +1 -1
- package/chunks/{bundle-AI8e02c3.js → bundle-sTNKynXj.js} +1 -1
- package/chunks/bundle-sTNKynXj.js.map +1 -0
- package/chunks/bundle-tR2Ipjel.js +353 -0
- package/{cjs/chunks/bundle-kBUglm2K.js.map → chunks/bundle-tR2Ipjel.js.map} +1 -1
- package/chunks/{bundle-w9T6A0ez.js → bundle-u_gMIDNK.js} +9 -9
- package/{cjs/chunks/bundle-4q81wd8X.js.map → chunks/bundle-u_gMIDNK.js.map} +1 -1
- package/chunks/{bundle-7FyFbzI4.js → bundle-ybonwZPt.js} +1 -1
- package/chunks/bundle-ybonwZPt.js.map +1 -0
- package/chunks/{bundle-mpeh7m6z.js → bundle-zL8um0im.js} +1 -1
- package/chunks/bundle-zL8um0im.js.map +1 -0
- package/chunks/{bundle-qunsoajv.js → bundle-zz-E8ZLu.js} +5 -5
- package/chunks/{bundle-qunsoajv.js.map → bundle-zz-E8ZLu.js.map} +1 -1
- package/cjs/App.js +59 -59
- package/cjs/Channel/components/ChannelHeader.js +24 -24
- package/cjs/Channel/components/ChannelUI.js +55 -55
- package/cjs/Channel/components/FileViewer.js +24 -24
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +53 -53
- package/cjs/Channel/components/MessageInput.js +35 -35
- package/cjs/Channel/components/MessageList.js +52 -52
- package/cjs/Channel/components/RemoveMessageModal.js +23 -23
- package/cjs/Channel/components/SuggestedMentionList.js +85 -49
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +19 -19
- package/cjs/Channel/components/UnreadCount.js +9 -9
- package/cjs/Channel/context.js +16 -16
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/cjs/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/cjs/Channel/utils/getMessagePartsInfo.js +7 -7
- package/cjs/Channel.js +55 -55
- package/cjs/ChannelList/components/AddChannel.js +17 -17
- package/cjs/ChannelList/components/ChannelListHeader.js +9 -9
- package/cjs/ChannelList/components/ChannelListUI.js +33 -33
- package/cjs/ChannelList/components/ChannelPreview.js +31 -31
- package/cjs/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/cjs/ChannelList/context.js +9 -9
- package/cjs/ChannelList.js +33 -33
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +16 -16
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +15 -15
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +18 -18
- package/cjs/CreateChannel/components/CreateChannelUI.js +15 -15
- package/cjs/CreateChannel/components/InviteUsers.js +15 -15
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +15 -15
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +12 -12
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -11
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +12 -12
- 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 +15 -15
- package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
- package/cjs/OpenChannel/components/OpenChannelMessage.js +32 -32
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +34 -34
- package/cjs/OpenChannel/components/OpenChannelUI.js +34 -34
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +34 -34
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +7 -7
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -14
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +16 -16
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/cjs/OpenChannelSettings/components/OperatorUI.js +18 -18
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +16 -16
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +18 -18
- package/cjs/SendbirdProvider.js +24 -33
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +40 -40
- package/cjs/Thread/components/ParentMessageInfoItem.js +27 -26
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +43 -43
- package/cjs/Thread/components/ThreadListItem.js +46 -46
- package/cjs/Thread/components/ThreadMessageInput.js +35 -35
- package/cjs/Thread/components/ThreadUI.js +47 -47
- package/cjs/Thread/context.js +77 -57
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +46 -46
- 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-gMxOq93o.js → bundle--NEfAH1H.js} +1 -1
- package/cjs/chunks/bundle--NEfAH1H.js.map +1 -0
- package/cjs/chunks/{bundle-1yOirqug.js → bundle--OdfDOjY.js} +1 -1
- package/cjs/chunks/bundle--OdfDOjY.js.map +1 -0
- package/cjs/chunks/bundle-03qc56fX.js +81 -0
- package/cjs/chunks/bundle-03qc56fX.js.map +1 -0
- package/cjs/chunks/{bundle-iwsbhMUN.js → bundle-0ugulztA.js} +4 -4
- package/cjs/chunks/bundle-0ugulztA.js.map +1 -0
- package/cjs/chunks/{bundle-6ziaqiUd.js → bundle-1Rk5zlYY.js} +3 -3
- package/cjs/chunks/bundle-1Rk5zlYY.js.map +1 -0
- package/cjs/chunks/{bundle-41ZfOrRZ.js → bundle-1SeNKVYf.js} +4 -4
- package/cjs/chunks/{bundle-41ZfOrRZ.js.map → bundle-1SeNKVYf.js.map} +1 -1
- package/cjs/chunks/{bundle-hK4x7nmG.js → bundle-2s7rxLn3.js} +1 -1
- package/cjs/chunks/{bundle-hK4x7nmG.js.map → bundle-2s7rxLn3.js.map} +1 -1
- package/cjs/chunks/{bundle-QmSa90PC.js → bundle-3AvVQDMo.js} +3 -3
- package/cjs/chunks/bundle-3AvVQDMo.js.map +1 -0
- package/cjs/chunks/{bundle-lii4Ueh3.js → bundle-3PJj-XfK.js} +1 -1
- package/cjs/chunks/bundle-3PJj-XfK.js.map +1 -0
- package/cjs/chunks/{bundle-4DATo50q.js → bundle-4NrBnGEN.js} +95 -170
- package/cjs/chunks/{bundle-4DATo50q.js.map → bundle-4NrBnGEN.js.map} +1 -1
- package/cjs/chunks/{bundle-gS0bojlA.js → bundle-4ajshWV-.js} +1 -1
- package/cjs/chunks/bundle-4ajshWV-.js.map +1 -0
- package/cjs/chunks/{bundle-4q81wd8X.js → bundle-5SOWNViS.js} +4 -17
- package/{chunks/bundle-ZmvX8uZ5.js.map → cjs/chunks/bundle-5SOWNViS.js.map} +1 -1
- package/cjs/chunks/{bundle-UooP2IDU.js → bundle-6lAqYT4t.js} +5 -5
- package/cjs/chunks/bundle-6lAqYT4t.js.map +1 -0
- package/cjs/chunks/{bundle-tywVawyg.js → bundle-6upaSfL9.js} +3 -3
- package/cjs/chunks/bundle-6upaSfL9.js.map +1 -0
- package/cjs/chunks/{bundle-11ybpGNN.js → bundle-7kVSLQPz.js} +7 -7
- package/cjs/chunks/bundle-7kVSLQPz.js.map +1 -0
- package/cjs/chunks/{bundle-cttYM0DR.js → bundle-8YK4BV9m.js} +1 -1
- package/cjs/chunks/bundle-8YK4BV9m.js.map +1 -0
- package/cjs/chunks/{bundle-L9ushBZQ.js → bundle-9GSi_LkG.js} +1 -1
- package/cjs/chunks/bundle-9GSi_LkG.js.map +1 -0
- package/cjs/chunks/{bundle-YNHu-c84.js → bundle-DFBAN2Mi.js} +2 -2
- package/cjs/chunks/bundle-DFBAN2Mi.js.map +1 -0
- package/cjs/chunks/{bundle-B2MaAm21.js → bundle-DvBNc5Qi.js} +1 -1
- package/cjs/chunks/bundle-DvBNc5Qi.js.map +1 -0
- package/cjs/chunks/{bundle-p1cCW0sH.js → bundle-GJqVurdA.js} +3 -3
- package/cjs/chunks/bundle-GJqVurdA.js.map +1 -0
- package/cjs/chunks/{bundle-BN7IOLFq.js → bundle-IZeqjgE7.js} +2 -2
- package/cjs/chunks/bundle-IZeqjgE7.js.map +1 -0
- package/cjs/chunks/{bundle-DZeKHvMp.js → bundle-IpMpyY9U.js} +6 -6
- package/cjs/chunks/bundle-IpMpyY9U.js.map +1 -0
- package/cjs/chunks/{bundle-Y9TkHVI5.js → bundle-K0D5qG0j.js} +1 -1
- package/cjs/chunks/bundle-K0D5qG0j.js.map +1 -0
- package/cjs/chunks/{bundle-28p7K0N-.js → bundle-KQyVyq1q.js} +2 -2
- package/cjs/chunks/{bundle-28p7K0N-.js.map → bundle-KQyVyq1q.js.map} +1 -1
- package/cjs/chunks/{bundle-6o4fw0w0.js → bundle-L6ZM4yRd.js} +12 -18
- package/{chunks/bundle-Ael7hqI7.js.map → cjs/chunks/bundle-L6ZM4yRd.js.map} +1 -1
- package/cjs/chunks/{bundle-CUP2x37z.js → bundle-M4KuiFU1.js} +3 -3
- package/cjs/chunks/{bundle-CUP2x37z.js.map → bundle-M4KuiFU1.js.map} +1 -1
- package/cjs/chunks/{bundle-RaQV-Bpr.js → bundle-NS_si8Av.js} +1 -1
- package/cjs/chunks/bundle-NS_si8Av.js.map +1 -0
- package/cjs/chunks/{bundle-4rFcKXQa.js → bundle-NXDlGjOm.js} +2 -2
- package/cjs/chunks/{bundle-4rFcKXQa.js.map → bundle-NXDlGjOm.js.map} +1 -1
- package/cjs/chunks/bundle-ONpNGzUN.js +46 -0
- package/cjs/chunks/bundle-ONpNGzUN.js.map +1 -0
- package/cjs/chunks/{bundle-tmB_l3Q9.js → bundle-QkZHyxSs.js} +1 -1
- package/cjs/chunks/bundle-QkZHyxSs.js.map +1 -0
- package/cjs/chunks/{bundle-ELeM0_1Y.js → bundle-R4nsdVDF.js} +1 -1
- package/cjs/chunks/bundle-R4nsdVDF.js.map +1 -0
- package/cjs/chunks/{bundle-BJe68nS0.js → bundle-S6CVN67K.js} +3 -3
- package/{chunks/bundle-bJrywUB-.js.map → cjs/chunks/bundle-S6CVN67K.js.map} +1 -1
- package/cjs/chunks/{bundle-tRBVL0r6.js → bundle-UEKzL00k.js} +4 -4
- package/cjs/chunks/{bundle-tRBVL0r6.js.map → bundle-UEKzL00k.js.map} +1 -1
- package/cjs/chunks/{bundle-QfhZ2YNP.js → bundle-VQoPLYq1.js} +2 -2
- package/cjs/chunks/{bundle-QfhZ2YNP.js.map → bundle-VQoPLYq1.js.map} +1 -1
- package/cjs/chunks/{bundle-dXhGOQQM.js → bundle-X1dqH2Sm.js} +1 -1
- package/cjs/chunks/bundle-X1dqH2Sm.js.map +1 -0
- package/cjs/chunks/{bundle-n1yh-qDb.js → bundle-YXCUHkka.js} +1 -1
- package/cjs/chunks/{bundle-n1yh-qDb.js.map → bundle-YXCUHkka.js.map} +1 -1
- package/cjs/chunks/{bundle-P0kNl8GH.js → bundle-ajGnEkbH.js} +11 -11
- package/cjs/chunks/bundle-ajGnEkbH.js.map +1 -0
- package/cjs/chunks/{bundle-F7GEQVgT.js → bundle-cIQlPA4P.js} +12 -12
- package/cjs/chunks/{bundle-F7GEQVgT.js.map → bundle-cIQlPA4P.js.map} +1 -1
- package/cjs/chunks/{bundle-kBUglm2K.js → bundle-hBelyuMa.js} +4 -4
- package/cjs/chunks/bundle-hBelyuMa.js.map +1 -0
- package/cjs/chunks/{bundle-TEIqVGqn.js → bundle-iOLwSv4j.js} +2 -2
- package/cjs/chunks/bundle-iOLwSv4j.js.map +1 -0
- package/cjs/chunks/{bundle-b4fiCQuI.js → bundle-jl7T2kDZ.js} +5 -5
- package/cjs/chunks/bundle-jl7T2kDZ.js.map +1 -0
- package/cjs/chunks/{bundle-zr9ZXBrm.js → bundle-mLp_yP52.js} +2 -2
- package/cjs/chunks/bundle-mLp_yP52.js.map +1 -0
- package/cjs/chunks/{bundle-6OOGDxxE.js → bundle-mtATkaCS.js} +3 -3
- package/cjs/chunks/bundle-mtATkaCS.js.map +1 -0
- package/cjs/chunks/{bundle-P_B0eyVT.js → bundle-nsOL78qf.js} +1 -1
- package/cjs/chunks/bundle-nsOL78qf.js.map +1 -0
- package/cjs/chunks/{bundle-kWUEW1ZN.js → bundle-oCpY1j30.js} +1 -1
- package/cjs/chunks/bundle-oCpY1j30.js.map +1 -0
- package/cjs/chunks/{bundle-I_9_5a8a.js → bundle-qnGmz8ai.js} +1 -1
- package/cjs/chunks/{bundle-I_9_5a8a.js.map → bundle-qnGmz8ai.js.map} +1 -1
- package/cjs/chunks/{bundle-c6O8NjZI.js → bundle-qtVxG8eL.js} +5 -2
- package/cjs/chunks/bundle-qtVxG8eL.js.map +1 -0
- package/cjs/chunks/{bundle-RlFjml8m.js → bundle-r1UVi2ak.js} +4 -4
- package/{chunks/bundle-w9T6A0ez.js.map → cjs/chunks/bundle-r1UVi2ak.js.map} +1 -1
- package/cjs/chunks/{bundle-4bb_98h6.js → bundle-r81ddDqP.js} +1 -1
- package/cjs/chunks/bundle-r81ddDqP.js.map +1 -0
- package/cjs/chunks/{bundle-Dwrq46Xb.js → bundle-sVUGn8PI.js} +26 -27
- package/cjs/chunks/{bundle-Dwrq46Xb.js.map → bundle-sVUGn8PI.js.map} +1 -1
- package/cjs/chunks/{bundle-FHx0K-3z.js → bundle-tFwEElQ4.js} +3 -3
- package/cjs/chunks/{bundle-FHx0K-3z.js.map → bundle-tFwEElQ4.js.map} +1 -1
- package/cjs/chunks/{bundle-_fjTT1-g.js → bundle-uOWwkmAr.js} +7 -7
- package/cjs/chunks/bundle-uOWwkmAr.js.map +1 -0
- package/cjs/chunks/{bundle-g0lpRY8_.js → bundle-veamuCpa.js} +1 -1
- package/cjs/chunks/bundle-veamuCpa.js.map +1 -0
- package/cjs/chunks/{bundle-JggdKsJa.js → bundle-vvpfLay7.js} +10 -10
- package/cjs/chunks/bundle-vvpfLay7.js.map +1 -0
- package/cjs/chunks/{bundle-z-Bvsn0B.js → bundle-wvuQ096A.js} +1 -1
- package/cjs/chunks/bundle-wvuQ096A.js.map +1 -0
- package/cjs/chunks/{bundle-FLCJVplO.js → bundle-ww8_Dx5u.js} +3 -3
- package/cjs/chunks/bundle-ww8_Dx5u.js.map +1 -0
- package/cjs/chunks/bundle-xXG5L42q.js +356 -0
- package/cjs/chunks/bundle-xXG5L42q.js.map +1 -0
- package/cjs/chunks/{bundle-e-fvbugV.js → bundle-z8FhI7RF.js} +1 -1
- package/cjs/chunks/bundle-z8FhI7RF.js.map +1 -0
- package/cjs/chunks/{bundle-g_OXBrgT.js → bundle-zNIQydjM.js} +1 -1
- package/cjs/chunks/bundle-zNIQydjM.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +57 -57
- package/cjs/pubSub/topics.js +12 -17
- package/cjs/pubSub/topics.js.map +1 -1
- package/cjs/sendbirdSelectors.js +80 -65
- package/cjs/sendbirdSelectors.js.map +1 -1
- 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 +9 -75
- package/cjs/ui/Avatar.js.map +1 -1
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +9 -9
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +7 -7
- 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 +15 -15
- package/cjs/ui/FileMessageItemBody.js +8 -8
- package/cjs/ui/FileViewer.js +14 -14
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/MentionLabel.js +12 -12
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +162 -120
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
- package/cjs/ui/MessageInput.js +15 -15
- package/cjs/ui/MessageItemMenu.js +21 -21
- package/cjs/ui/MessageItemReactionMenu.js +9 -9
- package/cjs/ui/MessageSearchFileItem.js +15 -15
- package/cjs/ui/MessageSearchItem.js +12 -12
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +15 -15
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +9 -9
- package/cjs/ui/OpenchannelConversationHeader.js +9 -9
- 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/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +15 -15
- package/cjs/ui/ThreadReplies.js +10 -10
- 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/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +11 -11
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/VoiceMessgeInput.js +9 -9
- package/cjs/ui/Word.js +12 -12
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +663 -664
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +57 -57
- package/package.json +3 -3
- package/pubSub/topics.js +1 -17
- package/pubSub/topics.js.map +1 -1
- package/sendbirdSelectors.js +80 -65
- package/sendbirdSelectors.js.map +1 -1
- package/types/lib/Sendbird.d.ts +2 -2
- package/types/lib/pubSub/index.d.ts +16 -6
- package/types/lib/pubSub/topics.d.ts +84 -14
- package/types/lib/selectors.d.ts +13 -12
- package/types/lib/types.d.ts +2 -1
- package/types/modules/Channel/components/MessageInput/useHandleUploadFiles.d.ts +2 -2
- package/types/modules/Channel/components/SuggestedMentionList/utils.d.ts +3 -0
- package/types/modules/Channel/context/ChannelProvider.d.ts +2 -0
- package/types/modules/Channel/context/dux/actionTypes.d.ts +6 -0
- package/types/modules/Channel/context/dux/initialState.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useHandleChannelPubsubEvents.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +5 -5
- package/types/modules/Channel/context/hooks/useSendMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useUpdateMessageCallback.d.ts +2 -2
- package/types/modules/ChannelList/utils.d.ts +2 -2
- package/types/modules/Thread/context/dux/actionTypes.d.ts +2 -1
- package/types/modules/Thread/context/dux/initialState.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +2 -1
- package/types/modules/internalInterfaces.d.ts +2 -0
- package/types/ui/MessageContent/MessageBody/index.d.ts +18 -0
- package/types/ui/MessageContent/MessageHeader/index.d.ts +10 -0
- package/types/ui/MessageContent/MessageProfile/index.d.ts +15 -0
- package/types/ui/MessageContent/index.d.ts +9 -4
- package/types/ui/TypingIndicatorMessage/TypingDots.d.ts +4 -0
- package/types/ui/TypingIndicatorMessage/index.d.ts +6 -0
- package/types/utils/compressImages.d.ts +11 -0
- package/types/utils/pxToNumber.d.ts +2 -2
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +7 -77
- package/ui/Avatar.js.map +1 -1
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +9 -9
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +15 -15
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +14 -14
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +2 -2
- package/ui/MentionLabel.js +12 -12
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +163 -121
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +5 -5
- package/ui/MessageInput.js +15 -15
- package/ui/MessageItemMenu.js +21 -21
- 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/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +15 -15
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- package/ui/OpenchannelFileMessage.js +17 -17
- package/ui/OpenchannelOGMessage.js +19 -19
- package/ui/OpenchannelThumbnailMessage.js +16 -16
- package/ui/OpenchannelUserMessage.js +17 -17
- 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/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +15 -15
- package/ui/ThreadReplies.js +8 -8
- package/ui/ThumbnailMessageItemBody.js +7 -7
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +12 -12
- package/ui/UserProfile.js +10 -10
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/VoiceMessgeInput.js +9 -9
- package/ui/Word.js +12 -12
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle--F_1NyoU.js.map +0 -1
- package/chunks/bundle-7FyFbzI4.js.map +0 -1
- package/chunks/bundle-8zJE_DCx.js.map +0 -1
- package/chunks/bundle-AI8e02c3.js.map +0 -1
- package/chunks/bundle-Ael7hqI7.js +0 -227
- package/chunks/bundle-H2I60B2B.js.map +0 -1
- package/chunks/bundle-M2ljBW6p.js.map +0 -1
- package/chunks/bundle-Q8dtkDOa.js.map +0 -1
- package/chunks/bundle-WCTKBopn.js.map +0 -1
- package/chunks/bundle-YEttY5xG.js.map +0 -1
- package/chunks/bundle-Zl1hrCWc.js.map +0 -1
- package/chunks/bundle-_qiqf8_l.js.map +0 -1
- package/chunks/bundle-bofQNMJb.js.map +0 -1
- package/chunks/bundle-btDN-R-c.js.map +0 -1
- package/chunks/bundle-hjECCUV3.js.map +0 -1
- package/chunks/bundle-khKXutc3.js.map +0 -1
- package/chunks/bundle-kp1MMNMf.js.map +0 -1
- package/chunks/bundle-mL_86Tua.js.map +0 -1
- package/chunks/bundle-mpeh7m6z.js.map +0 -1
- package/chunks/bundle-qst5L6aH.js.map +0 -1
- package/chunks/bundle-rLxuFUa1.js.map +0 -1
- package/chunks/bundle-r_VxbiS3.js.map +0 -1
- package/chunks/bundle-sOjc_nNQ.js.map +0 -1
- package/chunks/bundle-ubky9D9H.js.map +0 -1
- package/chunks/bundle-v0OWADVv.js.map +0 -1
- package/chunks/bundle-v9a1_z0P.js.map +0 -1
- package/chunks/bundle-w2v7oZ9G.js.map +0 -1
- package/chunks/bundle-wMgBBDf9.js.map +0 -1
- package/chunks/bundle-x-4ukZm_.js.map +0 -1
- package/chunks/bundle-zLBuOeRY.js.map +0 -1
- package/chunks/bundle-zoxfINxQ.js.map +0 -1
- package/cjs/chunks/bundle-11ybpGNN.js.map +0 -1
- package/cjs/chunks/bundle-1yOirqug.js.map +0 -1
- package/cjs/chunks/bundle-4bb_98h6.js.map +0 -1
- package/cjs/chunks/bundle-6OOGDxxE.js.map +0 -1
- package/cjs/chunks/bundle-6o4fw0w0.js.map +0 -1
- package/cjs/chunks/bundle-6ziaqiUd.js.map +0 -1
- package/cjs/chunks/bundle-B2MaAm21.js.map +0 -1
- package/cjs/chunks/bundle-BJe68nS0.js.map +0 -1
- package/cjs/chunks/bundle-BN7IOLFq.js.map +0 -1
- package/cjs/chunks/bundle-DZeKHvMp.js.map +0 -1
- package/cjs/chunks/bundle-ELeM0_1Y.js.map +0 -1
- package/cjs/chunks/bundle-FLCJVplO.js.map +0 -1
- package/cjs/chunks/bundle-JggdKsJa.js.map +0 -1
- package/cjs/chunks/bundle-L9ushBZQ.js.map +0 -1
- package/cjs/chunks/bundle-P0kNl8GH.js.map +0 -1
- package/cjs/chunks/bundle-P_B0eyVT.js.map +0 -1
- package/cjs/chunks/bundle-QmSa90PC.js.map +0 -1
- package/cjs/chunks/bundle-RaQV-Bpr.js.map +0 -1
- package/cjs/chunks/bundle-RlFjml8m.js.map +0 -1
- package/cjs/chunks/bundle-TEIqVGqn.js.map +0 -1
- package/cjs/chunks/bundle-UooP2IDU.js.map +0 -1
- package/cjs/chunks/bundle-Y9TkHVI5.js.map +0 -1
- package/cjs/chunks/bundle-YNHu-c84.js.map +0 -1
- package/cjs/chunks/bundle-_fjTT1-g.js.map +0 -1
- package/cjs/chunks/bundle-b4fiCQuI.js.map +0 -1
- package/cjs/chunks/bundle-c6O8NjZI.js.map +0 -1
- package/cjs/chunks/bundle-cttYM0DR.js.map +0 -1
- package/cjs/chunks/bundle-dXhGOQQM.js.map +0 -1
- package/cjs/chunks/bundle-e-fvbugV.js.map +0 -1
- package/cjs/chunks/bundle-e0il9C3T.js +0 -230
- package/cjs/chunks/bundle-e0il9C3T.js.map +0 -1
- package/cjs/chunks/bundle-g0lpRY8_.js.map +0 -1
- package/cjs/chunks/bundle-gMxOq93o.js.map +0 -1
- package/cjs/chunks/bundle-gS0bojlA.js.map +0 -1
- package/cjs/chunks/bundle-g_OXBrgT.js.map +0 -1
- package/cjs/chunks/bundle-iwsbhMUN.js.map +0 -1
- package/cjs/chunks/bundle-kWUEW1ZN.js.map +0 -1
- package/cjs/chunks/bundle-lii4Ueh3.js.map +0 -1
- package/cjs/chunks/bundle-p1cCW0sH.js.map +0 -1
- package/cjs/chunks/bundle-tmB_l3Q9.js.map +0 -1
- package/cjs/chunks/bundle-tywVawyg.js.map +0 -1
- package/cjs/chunks/bundle-z-Bvsn0B.js.map +0 -1
- package/cjs/chunks/bundle-zr9ZXBrm.js.map +0 -1
package/hooks/useModal.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as __spreadArray, _ as __assign } from '../chunks/bundle-
|
|
1
|
+
import { a as __spreadArray, _ as __assign } from '../chunks/bundle-HUCZoqot.js';
|
|
2
2
|
import React__default, { createContext, useState, useCallback, useMemo, useContext } from 'react';
|
|
3
|
-
import { K } from '../chunks/bundle-
|
|
4
|
-
import { n as noop } from '../chunks/bundle-
|
|
5
|
-
import { M as Modal } from '../chunks/bundle-
|
|
6
|
-
export { a as MODAL_ROOT, b as ModalRoot } from '../chunks/bundle-
|
|
3
|
+
import { K } from '../chunks/bundle-qReOreYH.js';
|
|
4
|
+
import { n as noop } from '../chunks/bundle-fBRojj0w.js';
|
|
5
|
+
import { M as Modal } from '../chunks/bundle-mg_7Exot.js';
|
|
6
|
+
export { a as MODAL_ROOT, b as ModalRoot } from '../chunks/bundle-mg_7Exot.js';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import '../chunks/bundle-
|
|
9
|
-
import '../chunks/bundle-
|
|
10
|
-
import '../chunks/bundle-
|
|
11
|
-
import '../chunks/bundle-
|
|
8
|
+
import '../chunks/bundle-1O7rPYFy.js';
|
|
9
|
+
import '../chunks/bundle-JGL7ecyE.js';
|
|
10
|
+
import '../chunks/bundle-FxBVAeu9.js';
|
|
11
|
+
import '../chunks/bundle-nB9Rk0Vg.js';
|
|
12
12
|
import '../ui/IconButton.js';
|
|
13
13
|
import '../ui/Button.js';
|
|
14
|
-
import '../chunks/bundle-
|
|
14
|
+
import '../chunks/bundle-qJVzRD5Y.js';
|
|
15
15
|
import '../ui/Icon.js';
|
|
16
16
|
|
|
17
17
|
var GlobalModalContext = createContext({
|
package/index.js
CHANGED
|
@@ -3,68 +3,69 @@ export { default as App } from './App.js';
|
|
|
3
3
|
export { default as ChannelSettings } from './ChannelSettings.js';
|
|
4
4
|
export { default as ChannelList } from './ChannelList.js';
|
|
5
5
|
export { default as Channel } from './Channel.js';
|
|
6
|
-
export { g as getStringSet } from './chunks/bundle-
|
|
6
|
+
export { g as getStringSet } from './chunks/bundle-JGL7ecyE.js';
|
|
7
7
|
export { default as OpenChannel } from './OpenChannel.js';
|
|
8
8
|
export { default as OpenChannelSettings } from './OpenChannelSettings.js';
|
|
9
9
|
export { default as MessageSearch } from './MessageSearch.js';
|
|
10
10
|
export { default as withSendBird } from './withSendbird.js';
|
|
11
11
|
export { default as sendBirdSelectors, default as sendbirdSelectors } from './sendbirdSelectors.js';
|
|
12
12
|
export { useSendbirdStateContext } from './useSendbirdStateContext.js';
|
|
13
|
-
import './chunks/bundle-
|
|
13
|
+
import './chunks/bundle-HUCZoqot.js';
|
|
14
14
|
import 'react';
|
|
15
15
|
import '@sendbird/uikit-tools';
|
|
16
16
|
import 'css-vars-ponyfill';
|
|
17
|
-
import './chunks/bundle-
|
|
18
|
-
import './chunks/bundle-
|
|
17
|
+
import './chunks/bundle-qReOreYH.js';
|
|
18
|
+
import './chunks/bundle-4yQvKOnq.js';
|
|
19
19
|
import '@sendbird/chat';
|
|
20
|
-
import './chunks/bundle-
|
|
20
|
+
import './chunks/bundle-LutukB6f.js';
|
|
21
21
|
import '@sendbird/chat/openChannel';
|
|
22
22
|
import '@sendbird/chat/groupChannel';
|
|
23
|
-
import './chunks/bundle-
|
|
23
|
+
import './chunks/bundle-UW-TqfsF.js';
|
|
24
24
|
import './utils/message/getOutgoingMessageState.js';
|
|
25
|
-
import './chunks/bundle-
|
|
26
|
-
import './chunks/bundle-
|
|
27
|
-
import './chunks/bundle-
|
|
25
|
+
import './chunks/bundle-fBRojj0w.js';
|
|
26
|
+
import './chunks/bundle-fiU7Tho8.js';
|
|
27
|
+
import './chunks/bundle-fRhlDZge.js';
|
|
28
28
|
import './VoiceRecorder/context.js';
|
|
29
|
-
import './chunks/bundle-
|
|
30
|
-
import './chunks/bundle-
|
|
31
|
-
import './chunks/bundle-
|
|
29
|
+
import './chunks/bundle-1O7rPYFy.js';
|
|
30
|
+
import './chunks/bundle-FxBVAeu9.js';
|
|
31
|
+
import './chunks/bundle-mg_7Exot.js';
|
|
32
32
|
import 'react-dom';
|
|
33
|
-
import './chunks/bundle-
|
|
33
|
+
import './chunks/bundle-nB9Rk0Vg.js';
|
|
34
34
|
import './ui/IconButton.js';
|
|
35
35
|
import './ui/Button.js';
|
|
36
|
-
import './chunks/bundle-
|
|
36
|
+
import './chunks/bundle-qJVzRD5Y.js';
|
|
37
37
|
import './ui/Icon.js';
|
|
38
|
-
import './chunks/bundle-
|
|
38
|
+
import './chunks/bundle-j2oaAFR4.js';
|
|
39
39
|
import './hooks/useModal.js';
|
|
40
40
|
import './Thread.js';
|
|
41
41
|
import './Thread/context.js';
|
|
42
|
-
import './chunks/bundle-
|
|
43
|
-
import './
|
|
44
|
-
import './chunks/bundle-
|
|
45
|
-
import './chunks/bundle-
|
|
42
|
+
import './chunks/bundle-n3JTobCF.js';
|
|
43
|
+
import './chunks/bundle-Ey2KFn-R.js';
|
|
44
|
+
import './chunks/bundle-EoW7JC-6.js';
|
|
45
|
+
import './chunks/bundle-o_MR5zP9.js';
|
|
46
46
|
import '@sendbird/chat/message';
|
|
47
|
-
import './chunks/bundle-
|
|
47
|
+
import './chunks/bundle-5WxplyP9.js';
|
|
48
48
|
import './Thread/context/types.js';
|
|
49
|
-
import './chunks/bundle-
|
|
49
|
+
import './chunks/bundle-GaBLtZQZ.js';
|
|
50
|
+
import './chunks/bundle-L1jL1HlF.js';
|
|
50
51
|
import './Thread/components/ThreadUI.js';
|
|
51
|
-
import './chunks/bundle-
|
|
52
|
+
import './chunks/bundle-kdRMkp9s.js';
|
|
52
53
|
import './Thread/components/ParentMessageInfo.js';
|
|
53
|
-
import './chunks/bundle-
|
|
54
|
-
import './chunks/bundle-
|
|
54
|
+
import './chunks/bundle-5asq-E-v.js';
|
|
55
|
+
import './chunks/bundle-atKtJDZx.js';
|
|
55
56
|
import './Thread/components/ParentMessageInfoItem.js';
|
|
56
57
|
import './ui/ImageRenderer.js';
|
|
57
58
|
import './ui/TextButton.js';
|
|
58
|
-
import './chunks/bundle-
|
|
59
|
+
import './chunks/bundle-8Ct4JuXG.js';
|
|
59
60
|
import './ui/EmojiReactions.js';
|
|
60
61
|
import './ui/ReactionBadge.js';
|
|
61
62
|
import './ui/ReactionButton.js';
|
|
62
|
-
import './chunks/bundle-
|
|
63
|
+
import './chunks/bundle-HTP_W562.js';
|
|
63
64
|
import './ui/ContextMenu.js';
|
|
64
65
|
import './ui/SortByRow.js';
|
|
65
66
|
import './ui/BottomSheet.js';
|
|
66
67
|
import './ui/UserListItem.js';
|
|
67
|
-
import './
|
|
68
|
+
import './chunks/bundle-cTKDcBXH.js';
|
|
68
69
|
import './ui/MutedAvatarOverlay.js';
|
|
69
70
|
import './ui/Checkbox.js';
|
|
70
71
|
import './ui/UserProfile.js';
|
|
@@ -76,72 +77,71 @@ import './ui/ProgressBar.js';
|
|
|
76
77
|
import './VoicePlayer/useVoicePlayer.js';
|
|
77
78
|
import './ui/PlaybackTime.js';
|
|
78
79
|
import './ui/Loader.js';
|
|
79
|
-
import './chunks/bundle-
|
|
80
|
-
import './chunks/bundle-
|
|
80
|
+
import './chunks/bundle-grxc9ClY.js';
|
|
81
|
+
import './chunks/bundle-EaGyVrR8.js';
|
|
81
82
|
import './ui/MentionLabel.js';
|
|
82
83
|
import './ui/LinkLabel.js';
|
|
83
|
-
import './chunks/bundle-
|
|
84
|
-
import './chunks/bundle-
|
|
85
|
-
import './chunks/bundle-
|
|
86
|
-
import './chunks/bundle-
|
|
87
|
-
import './chunks/bundle-_qiqf8_l.js';
|
|
84
|
+
import './chunks/bundle-WJ4T7o4h.js';
|
|
85
|
+
import './chunks/bundle-u_gMIDNK.js';
|
|
86
|
+
import './chunks/bundle-BgGUA_Do.js';
|
|
87
|
+
import './chunks/bundle-sTNKynXj.js';
|
|
88
88
|
import './Channel/hooks/useInitialMessagesFetch.js';
|
|
89
89
|
import './Channel/components/SuggestedMentionList.js';
|
|
90
|
-
import './chunks/bundle-
|
|
90
|
+
import './chunks/bundle-NRuB0VyT.js';
|
|
91
91
|
import './ui/MessageItemMenu.js';
|
|
92
|
-
import './chunks/bundle-
|
|
92
|
+
import './chunks/bundle-zL8um0im.js';
|
|
93
93
|
import './ui/MessageItemReactionMenu.js';
|
|
94
94
|
import './ui/MessageInput.js';
|
|
95
|
-
import './chunks/bundle-
|
|
95
|
+
import './chunks/bundle-zz-E8ZLu.js';
|
|
96
96
|
import 'dompurify';
|
|
97
|
-
import './chunks/bundle
|
|
98
|
-
import './chunks/bundle-
|
|
99
|
-
import './chunks/bundle-
|
|
100
|
-
import './chunks/bundle-
|
|
97
|
+
import './chunks/bundle-dGdUFeGw.js';
|
|
98
|
+
import './chunks/bundle-WiQweU5U.js';
|
|
99
|
+
import './chunks/bundle-I0NSP9ei.js';
|
|
100
|
+
import './chunks/bundle-9YazFOHk.js';
|
|
101
101
|
import './Message/hooks/useDirtyGetMentions.js';
|
|
102
102
|
import './Thread/components/ThreadHeader.js';
|
|
103
103
|
import './Thread/components/ThreadList.js';
|
|
104
104
|
import './Thread/components/ThreadListItem.js';
|
|
105
105
|
import './ui/DateSeparator.js';
|
|
106
|
-
import './chunks/bundle-
|
|
107
|
-
import './chunks/bundle-
|
|
108
|
-
import './chunks/bundle-
|
|
106
|
+
import './chunks/bundle-iTeulylJ.js';
|
|
107
|
+
import './chunks/bundle-0--XgUA7.js';
|
|
108
|
+
import './chunks/bundle-JJDjO0bj.js';
|
|
109
109
|
import './ui/TextMessageItemBody.js';
|
|
110
110
|
import './ui/OGMessageItemBody.js';
|
|
111
111
|
import './ui/FileMessageItemBody.js';
|
|
112
112
|
import './ui/ThumbnailMessageItemBody.js';
|
|
113
|
-
import './chunks/bundle-
|
|
113
|
+
import './chunks/bundle-9AVOtanU.js';
|
|
114
114
|
import './ui/UnknownMessageItemBody.js';
|
|
115
115
|
import 'date-fns';
|
|
116
116
|
import './Thread/components/ThreadMessageInput.js';
|
|
117
|
-
import './chunks/bundle-
|
|
117
|
+
import './chunks/bundle-tR2Ipjel.js';
|
|
118
118
|
import './VoiceRecorder/useVoiceRecorder.js';
|
|
119
|
-
import './chunks/bundle-
|
|
119
|
+
import './chunks/bundle-RXyEKXFG.js';
|
|
120
120
|
import './ui/PlaceHolder.js';
|
|
121
121
|
import './ChannelSettings/components/ChannelSettingsUI.js';
|
|
122
122
|
import './ChannelSettings/context.js';
|
|
123
123
|
import './ChannelSettings/components/ChannelProfile.js';
|
|
124
124
|
import './ui/ChannelAvatar.js';
|
|
125
|
-
import './chunks/bundle-
|
|
125
|
+
import './chunks/bundle-ybonwZPt.js';
|
|
126
126
|
import './ChannelSettings/components/EditDetailsModal.js';
|
|
127
127
|
import './ui/Input.js';
|
|
128
128
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
129
129
|
import './ui/Accordion.js';
|
|
130
130
|
import './ui/AccordionGroup.js';
|
|
131
|
-
import './chunks/bundle-
|
|
131
|
+
import './chunks/bundle-2zaLibl-.js';
|
|
132
132
|
import './ui/Badge.js';
|
|
133
133
|
import './ui/Toggle.js';
|
|
134
134
|
import './ChannelSettings/components/UserListItem.js';
|
|
135
|
-
import './chunks/bundle-
|
|
135
|
+
import './chunks/bundle-rYiLt_kr.js';
|
|
136
136
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
137
137
|
import './ChannelSettings/components/UserPanel.js';
|
|
138
|
-
import './chunks/bundle-
|
|
138
|
+
import './chunks/bundle-50blTGht.js';
|
|
139
139
|
import './ChannelList/components/ChannelListUI.js';
|
|
140
140
|
import './ChannelList/components/ChannelListHeader.js';
|
|
141
141
|
import './ChannelList/components/AddChannel.js';
|
|
142
142
|
import './CreateChannel.js';
|
|
143
143
|
import './CreateChannel/components/CreateChannelUI.js';
|
|
144
|
-
import './chunks/bundle-
|
|
144
|
+
import './chunks/bundle-iI1ssAAJ.js';
|
|
145
145
|
import './CreateChannel/components/InviteUsers.js';
|
|
146
146
|
import './CreateChannel/components/SelectChannelType.js';
|
|
147
147
|
import './ChannelList/components/ChannelPreview.js';
|
|
@@ -162,7 +162,7 @@ import './ui/QuoteMessage.js';
|
|
|
162
162
|
import './ui/ThreadReplies.js';
|
|
163
163
|
import './Channel/components/FileViewer.js';
|
|
164
164
|
import './Channel/components/RemoveMessageModal.js';
|
|
165
|
-
import './chunks/bundle-
|
|
165
|
+
import './chunks/bundle-mjC4Frm5.js';
|
|
166
166
|
import './Channel/utils/getMessagePartsInfo.js';
|
|
167
167
|
import './Channel/utils/compareMessagesForGrouping.js';
|
|
168
168
|
import './Channel/components/UnreadCount.js';
|
|
@@ -170,15 +170,15 @@ import './Channel/components/FrozenNotification.js';
|
|
|
170
170
|
import './Channel/components/MessageInput.js';
|
|
171
171
|
import './ui/QuoteMessageInput.js';
|
|
172
172
|
import './OpenChannel/components/OpenChannelUI.js';
|
|
173
|
-
import './chunks/bundle-
|
|
173
|
+
import './chunks/bundle-Zl59BqjG.js';
|
|
174
174
|
import './OpenChannel/components/OpenChannelInput.js';
|
|
175
175
|
import './OpenChannel/components/FrozenChannelNotification.js';
|
|
176
176
|
import './OpenChannel/components/OpenChannelHeader.js';
|
|
177
177
|
import './OpenChannel/components/OpenChannelMessageList.js';
|
|
178
178
|
import './OpenChannel/components/OpenChannelMessage.js';
|
|
179
179
|
import './ui/OpenchannelUserMessage.js';
|
|
180
|
-
import './chunks/bundle-
|
|
181
|
-
import './chunks/bundle-
|
|
180
|
+
import './chunks/bundle-UvPIovuO.js';
|
|
181
|
+
import './chunks/bundle-moPxtvhk.js';
|
|
182
182
|
import './ui/OpenChannelAdminMessage.js';
|
|
183
183
|
import './ui/OpenchannelOGMessage.js';
|
|
184
184
|
import './ui/OpenchannelThumbnailMessage.js';
|
|
@@ -189,7 +189,7 @@ import './OpenChannelSettings/components/OperatorUI.js';
|
|
|
189
189
|
import './OpenChannelSettings/components/OpenChannelProfile.js';
|
|
190
190
|
import './ui/OpenChannelAvatar.js';
|
|
191
191
|
import './OpenChannelSettings/components/EditDetailsModal.js';
|
|
192
|
-
import './chunks/bundle-
|
|
192
|
+
import './chunks/bundle-0QcaQ8yA.js';
|
|
193
193
|
import './MessageSearch/components/MessageSearchUI.js';
|
|
194
194
|
import './MessageSearch/context.js';
|
|
195
195
|
import './ui/MessageSearchItem.js';
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"url": "https://community.sendbird.com"
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://sendbird.com",
|
|
39
|
-
"version": "3.8.
|
|
39
|
+
"version": "3.8.2",
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^16.8.6 || ^17.0.0 || ^18.0.0",
|
|
42
42
|
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"default": "./handlers/SessionHandler.js"
|
|
153
153
|
},
|
|
154
154
|
"./pubSub/topics": {
|
|
155
|
-
"types": "./types/lib/pubSub
|
|
155
|
+
"types": "./types/lib/pubSub/topics.d.ts",
|
|
156
156
|
"require": "./cjs/pubSub/topics.js",
|
|
157
157
|
"import": "./pubSub/topics.js",
|
|
158
158
|
"default": "./pubSub/topics.js"
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
"./types/lib/handlers/SessionHandler.d.ts"
|
|
1068
1068
|
],
|
|
1069
1069
|
"pubSub/topics": [
|
|
1070
|
-
"./types/lib/pubSub
|
|
1070
|
+
"./types/lib/pubSub/topics.d.ts"
|
|
1071
1071
|
],
|
|
1072
1072
|
"hooks/useModal": [
|
|
1073
1073
|
"./types/hooks/useModal/index.d.ts"
|
package/pubSub/topics.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
// Group Channel
|
|
3
|
-
USER_UPDATED: 'USER_UPDATED',
|
|
4
|
-
SEND_MESSAGE_START: 'SEND_MESSAGE_START',
|
|
5
|
-
SEND_MESSAGE_FAILED: 'SEND_MESSAGE_FAILED',
|
|
6
|
-
SEND_USER_MESSAGE: 'SEND_USER_MESSAGE',
|
|
7
|
-
SEND_FILE_MESSAGE: 'SEND_FILE_MESSAGE',
|
|
8
|
-
ON_FILE_INFO_UPLOADED: 'ON_FILE_INFO_UPLOADED',
|
|
9
|
-
UPDATE_USER_MESSAGE: 'UPDATE_USER_MESSAGE',
|
|
10
|
-
DELETE_MESSAGE: 'DELETE_MESSAGE',
|
|
11
|
-
LEAVE_CHANNEL: 'LEAVE_CHANNEL',
|
|
12
|
-
CREATE_CHANNEL: 'CREATE_CHANNEL',
|
|
13
|
-
// Open Channel
|
|
14
|
-
UPDATE_OPEN_CHANNEL: 'UPDATE_OPEN_CHANNEL',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { PUBSUB_TOPICS, PUBSUB_TOPICS as default };
|
|
1
|
+
export { b as PUBSUB_TOPICS, P as PublishingModuleType, p as default } from '../chunks/bundle-Ey2KFn-R.js';
|
|
18
2
|
//# sourceMappingURL=topics.js.map
|
package/pubSub/topics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topics.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"topics.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/sendbirdSelectors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as noop } from './chunks/bundle-
|
|
1
|
+
import { p as pubSubTopics } from './chunks/bundle-Ey2KFn-R.js';
|
|
2
|
+
import { n as noop } from './chunks/bundle-fBRojj0w.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* 1. UIKit Instances
|
|
@@ -139,7 +139,7 @@ var getCreateGroupChannel = function (state) { return (function (params) { retur
|
|
|
139
139
|
sdk.groupChannel.createChannel(params)
|
|
140
140
|
.then(function (channel) {
|
|
141
141
|
resolve(channel);
|
|
142
|
-
pubSub.publish(
|
|
142
|
+
pubSub.publish(pubSubTopics.CREATE_CHANNEL, { channel: channel });
|
|
143
143
|
})
|
|
144
144
|
.catch(reject);
|
|
145
145
|
})); }); };
|
|
@@ -365,24 +365,27 @@ var UikitMessageHandler = /** @class */ (function () {
|
|
|
365
365
|
* .onFailed((error, message) => {})
|
|
366
366
|
* .onSucceeded((message) => {})
|
|
367
367
|
*/
|
|
368
|
-
var getSendUserMessage = function (state
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
368
|
+
var getSendUserMessage = function (state, publishingModules) {
|
|
369
|
+
if (publishingModules === void 0) { publishingModules = []; }
|
|
370
|
+
return (function (channel, params) {
|
|
371
|
+
var handler = new UikitMessageHandler();
|
|
372
|
+
var pubSub = getPubSub(state);
|
|
373
|
+
channel.sendUserMessage(params)
|
|
374
|
+
.onFailed(function (error, message) {
|
|
375
|
+
pubSub.publish(pubSubTopics.SEND_MESSAGE_FAILED, { error: error, message: message, channel: channel, publishingModules: publishingModules });
|
|
376
|
+
handler.triggerFailed(error, message);
|
|
377
|
+
})
|
|
378
|
+
.onPending(function (message) {
|
|
379
|
+
pubSub.publish(pubSubTopics.SEND_MESSAGE_START, { message: message, channel: channel, publishingModules: publishingModules });
|
|
380
|
+
handler.triggerPending(message);
|
|
381
|
+
})
|
|
382
|
+
.onSucceeded(function (message) {
|
|
383
|
+
pubSub.publish(pubSubTopics.SEND_USER_MESSAGE, { message: message, channel: channel, publishingModules: publishingModules });
|
|
384
|
+
handler.triggerSucceeded(message);
|
|
385
|
+
});
|
|
386
|
+
return handler;
|
|
383
387
|
});
|
|
384
|
-
|
|
385
|
-
}); };
|
|
388
|
+
};
|
|
386
389
|
/**
|
|
387
390
|
* const sendFileMessage = selectors.getSendFileMessage(state);
|
|
388
391
|
* sendFileMessage(
|
|
@@ -393,24 +396,27 @@ var getSendUserMessage = function (state) { return (function (channel, params) {
|
|
|
393
396
|
* .onFailed((error, message) => {})
|
|
394
397
|
* .onSucceeded((message) => {})
|
|
395
398
|
*/
|
|
396
|
-
var getSendFileMessage = function (state
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
399
|
+
var getSendFileMessage = function (state, publishingModules) {
|
|
400
|
+
if (publishingModules === void 0) { publishingModules = []; }
|
|
401
|
+
return (function (channel, params) {
|
|
402
|
+
var handler = new UikitMessageHandler();
|
|
403
|
+
var pubSub = getPubSub(state);
|
|
404
|
+
channel.sendFileMessage(params)
|
|
405
|
+
.onFailed(function (error, message) {
|
|
406
|
+
pubSub.publish(pubSubTopics.SEND_MESSAGE_FAILED, { error: error, message: message, channel: channel, publishingModules: publishingModules });
|
|
407
|
+
handler.triggerFailed(error, message);
|
|
408
|
+
})
|
|
409
|
+
.onPending(function (message) {
|
|
410
|
+
pubSub.publish(pubSubTopics.SEND_MESSAGE_START, { message: message, channel: channel, publishingModules: publishingModules });
|
|
411
|
+
handler.triggerPending(message);
|
|
412
|
+
})
|
|
413
|
+
.onSucceeded(function (message) {
|
|
414
|
+
pubSub.publish(pubSubTopics.SEND_FILE_MESSAGE, { message: message, channel: channel, publishingModules: publishingModules });
|
|
415
|
+
handler.triggerSucceeded(message);
|
|
416
|
+
});
|
|
417
|
+
return handler;
|
|
411
418
|
});
|
|
412
|
-
|
|
413
|
-
}); };
|
|
419
|
+
};
|
|
414
420
|
/**
|
|
415
421
|
* const updateUserMessage = selectors.getUpdateUserMessage(state);
|
|
416
422
|
* updateUserMessage(
|
|
@@ -421,15 +427,18 @@ var getSendFileMessage = function (state) { return (function (channel, params) {
|
|
|
421
427
|
* .then((message) => {})
|
|
422
428
|
* .catch((error) => {})
|
|
423
429
|
*/
|
|
424
|
-
var getUpdateUserMessage = function (state
|
|
425
|
-
|
|
426
|
-
channel
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
})
|
|
430
|
+
var getUpdateUserMessage = function (state, publishingModules) {
|
|
431
|
+
if (publishingModules === void 0) { publishingModules = []; }
|
|
432
|
+
return (function (channel, messageId, params) { return (new Promise(function (resolve, reject) {
|
|
433
|
+
var pubSub = getPubSub(state);
|
|
434
|
+
channel.updateUserMessage(messageId, params)
|
|
435
|
+
.then(function (message) {
|
|
436
|
+
pubSub.publish(pubSubTopics.UPDATE_USER_MESSAGE, { message: message, channel: channel, fromSelector: true, publishingModules: publishingModules });
|
|
437
|
+
resolve(message);
|
|
438
|
+
})
|
|
439
|
+
.catch(reject);
|
|
440
|
+
})); });
|
|
441
|
+
};
|
|
433
442
|
// TODO: We will provie this function in the future
|
|
434
443
|
/**
|
|
435
444
|
* const updateFileMessage = selectors.getUpdateFileMessage(state);
|
|
@@ -471,7 +480,7 @@ var getDeleteMessage = function (state) { return (function (channel, message) {
|
|
|
471
480
|
var messageId = message.messageId;
|
|
472
481
|
channel.deleteMessage(message)
|
|
473
482
|
.then(function () {
|
|
474
|
-
pubSub.publish(
|
|
483
|
+
pubSub.publish(pubSubTopics.DELETE_MESSAGE, { messageId: messageId, channel: channel });
|
|
475
484
|
resolve(message);
|
|
476
485
|
})
|
|
477
486
|
.catch(reject);
|
|
@@ -485,15 +494,18 @@ var getDeleteMessage = function (state) { return (function (channel, message) {
|
|
|
485
494
|
* .then(() => {})
|
|
486
495
|
* .catch((error) => {})
|
|
487
496
|
*/
|
|
488
|
-
var getResendUserMessage = function (state
|
|
489
|
-
|
|
490
|
-
channel
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
})
|
|
497
|
+
var getResendUserMessage = function (state, publishingModules) {
|
|
498
|
+
if (publishingModules === void 0) { publishingModules = []; }
|
|
499
|
+
return (function (channel, failedMessage) { return (new Promise(function (resolve, reject) {
|
|
500
|
+
var pubSub = getPubSub(state);
|
|
501
|
+
channel.resendUserMessage(failedMessage)
|
|
502
|
+
.then(function (message) {
|
|
503
|
+
pubSub.publish(pubSubTopics.SEND_USER_MESSAGE, { message: message, channel: channel, publishingModules: publishingModules });
|
|
504
|
+
resolve(message);
|
|
505
|
+
})
|
|
506
|
+
.catch(reject);
|
|
507
|
+
})); });
|
|
508
|
+
};
|
|
497
509
|
/**
|
|
498
510
|
* const resendFileMessage = selectors.getResendFileMessage(state);
|
|
499
511
|
* resendFileMessage(
|
|
@@ -504,15 +516,18 @@ var getResendUserMessage = function (state) { return (function (channel, failedM
|
|
|
504
516
|
* .then(() => {})
|
|
505
517
|
* .catch((error) => {})
|
|
506
518
|
*/
|
|
507
|
-
var getResendFileMessage = function (state
|
|
508
|
-
|
|
509
|
-
channel
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
})
|
|
519
|
+
var getResendFileMessage = function (state, publishingModules) {
|
|
520
|
+
if (publishingModules === void 0) { publishingModules = []; }
|
|
521
|
+
return (function (channel, failedMessage, blob) { return (new Promise(function (resolve, reject) {
|
|
522
|
+
var pubSub = getPubSub(state);
|
|
523
|
+
channel.resendFileMessage(failedMessage, blob)
|
|
524
|
+
.then(function (message) {
|
|
525
|
+
pubSub.publish(pubSubTopics.SEND_FILE_MESSAGE, { message: message, channel: channel, publishingModules: publishingModules });
|
|
526
|
+
resolve(message);
|
|
527
|
+
})
|
|
528
|
+
.catch(reject);
|
|
529
|
+
})); });
|
|
530
|
+
};
|
|
516
531
|
var sendbirdSelectors = {
|
|
517
532
|
getSdk: getSdk,
|
|
518
533
|
getPubSub: getPubSub,
|
package/sendbirdSelectors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendbirdSelectors.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendbirdSelectors.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/types/lib/Sendbird.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import './__experimental__typography.scss';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { User } from '@sendbird/chat';
|
|
5
5
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
6
|
-
import { PubSubTypes } from './pubSub/index';
|
|
7
6
|
import { StringSet } from '../ui/Label/stringSet';
|
|
8
7
|
import { ConfigureSessionTypes } from './hooks/useConnect/types';
|
|
9
8
|
import { UIKitOptions, CommonUIKitConfigProps, SendbirdChatInitParams, CustomExtensionParams, SBUEventHandlers } from './types';
|
|
10
9
|
import { RenderUserProfileProps } from '../types';
|
|
10
|
+
import { SBUGlobalPubSub } from './pubSub/topics';
|
|
11
11
|
export { useSendbirdStateContext } from '../hooks/useSendbirdStateContext';
|
|
12
12
|
export type UserListQueryType = {
|
|
13
13
|
hasNext?: boolean;
|
|
@@ -25,7 +25,7 @@ export interface ImageCompressionOptions {
|
|
|
25
25
|
}
|
|
26
26
|
export interface SendbirdConfig {
|
|
27
27
|
logLevel?: string | Array<string>;
|
|
28
|
-
pubSub?:
|
|
28
|
+
pubSub?: SBUGlobalPubSub;
|
|
29
29
|
userMention?: {
|
|
30
30
|
maxMentionCount?: number;
|
|
31
31
|
maxSuggestionCount?: number;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type PubSubTypes<T extends keyof any, U extends {
|
|
2
|
+
topic: T;
|
|
3
|
+
payload: any;
|
|
4
|
+
}> = {
|
|
5
|
+
__getTopics: () => Record<T, Set<(data: PayloadByTopic<T, U>) => void>>;
|
|
6
|
+
subscribe: <K extends T>(topic: K, subscriber: (data: PayloadByTopic<K, U>) => void) => {
|
|
4
7
|
remove: () => void;
|
|
5
8
|
};
|
|
6
|
-
publish: (topic:
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
+
publish: <K extends T>(topic: K, data: PayloadByTopic<K, U>) => void;
|
|
10
|
+
};
|
|
11
|
+
type PayloadByTopic<T extends keyof any, U> = U extends {
|
|
12
|
+
topic: T;
|
|
13
|
+
payload: infer P;
|
|
14
|
+
} ? P : never;
|
|
15
|
+
declare const pubSubFactory: <T extends string | number | symbol = string | number | symbol, U extends {
|
|
16
|
+
topic: T;
|
|
17
|
+
payload: any;
|
|
18
|
+
} = any>() => PubSubTypes<T, U>;
|
|
9
19
|
export default pubSubFactory;
|