@sendbird/uikit-react 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +59 -59
- package/CHANGELOG.md +54 -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 +81 -54
- package/Channel/components/MessageList.js.map +1 -1
- 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--Hrow3p-.js +42 -0
- package/chunks/bundle--Hrow3p-.js.map +1 -0
- package/chunks/{bundle-YEttY5xG.js → bundle-06CfHADE.js} +1 -1
- package/chunks/bundle-06CfHADE.js.map +1 -0
- package/chunks/{bundle-9KsbryQI.js → bundle-0BwB1B7t.js} +1 -1
- package/chunks/{bundle-9KsbryQI.js.map → bundle-0BwB1B7t.js.map} +1 -1
- package/chunks/{bundle--F_1NyoU.js → bundle-0plqkdfC.js} +1 -1
- package/chunks/bundle-0plqkdfC.js.map +1 -0
- package/chunks/{bundle-mpeh7m6z.js → bundle-1uIyPhfL.js} +1 -1
- package/chunks/bundle-1uIyPhfL.js.map +1 -0
- package/chunks/{bundle-1P01-roD.js → bundle-2oi09sb6.js} +7 -7
- package/chunks/{bundle-1P01-roD.js.map → bundle-2oi09sb6.js.map} +1 -1
- package/chunks/{bundle-hjECCUV3.js → bundle-3KS1YB09.js} +2 -2
- package/chunks/bundle-3KS1YB09.js.map +1 -0
- package/chunks/{bundle-_qiqf8_l.js → bundle-3oeQjqp5.js} +1 -1
- package/chunks/bundle-3oeQjqp5.js.map +1 -0
- package/chunks/{bundle-5yKxJk_M.js → bundle-4zdVdGkr.js} +1 -1
- package/chunks/{bundle-5yKxJk_M.js.map → bundle-4zdVdGkr.js.map} +1 -1
- package/chunks/{bundle-NCqCEOuY.js → bundle-5Z7nY-qa.js} +4 -4
- package/chunks/{bundle-NCqCEOuY.js.map → bundle-5Z7nY-qa.js.map} +1 -1
- package/chunks/{bundle-qunsoajv.js → bundle-62G-DTVs.js} +5 -5
- package/chunks/{bundle-qunsoajv.js.map → bundle-62G-DTVs.js.map} +1 -1
- package/chunks/{bundle-PgBVk3py.js → bundle-6G8kMIS1.js} +12 -12
- package/chunks/{bundle-PgBVk3py.js.map → bundle-6G8kMIS1.js.map} +1 -1
- package/chunks/{bundle-vnmGzWMt.js → bundle-7-9WA7QK.js} +4 -4
- package/chunks/{bundle-vnmGzWMt.js.map → bundle-7-9WA7QK.js.map} +1 -1
- package/chunks/{bundle-prRsVvhT.js → bundle-7DHTLnV3.js} +2 -2
- package/chunks/{bundle-prRsVvhT.js.map → bundle-7DHTLnV3.js.map} +1 -1
- package/chunks/{bundle-btDN-R-c.js → bundle-9uR-6efo.js} +3 -3
- package/chunks/bundle-9uR-6efo.js.map +1 -0
- package/chunks/{bundle-hKtwSqbO.js → bundle-AVOWwEQ4.js} +1 -1
- package/chunks/{bundle-hKtwSqbO.js.map → bundle-AVOWwEQ4.js.map} +1 -1
- package/chunks/{bundle-zoxfINxQ.js → bundle-DwZzB6nL.js} +3 -3
- package/chunks/bundle-DwZzB6nL.js.map +1 -0
- package/chunks/{bundle-zLBuOeRY.js → bundle-EZnDY3Tc.js} +7 -7
- package/chunks/bundle-EZnDY3Tc.js.map +1 -0
- package/chunks/{bundle-8zJE_DCx.js → bundle-F63fi8fP.js} +6 -6
- package/chunks/bundle-F63fi8fP.js.map +1 -0
- package/chunks/{bundle-v9a1_z0P.js → bundle-FQAabli1.js} +1 -1
- package/chunks/bundle-FQAabli1.js.map +1 -0
- package/chunks/{bundle-ubky9D9H.js → bundle-G3cS-S1W.js} +1 -1
- package/chunks/bundle-G3cS-S1W.js.map +1 -0
- package/chunks/{bundle-v0OWADVv.js → bundle-GqUhOzeC.js} +3 -3
- package/chunks/bundle-GqUhOzeC.js.map +1 -0
- package/chunks/{bundle-ftY5T58h.js → bundle-J7RD0FpU.js} +4 -4
- package/chunks/{bundle-ftY5T58h.js.map → bundle-J7RD0FpU.js.map} +1 -1
- package/chunks/{bundle-dLuEa16_.js → bundle-J7om32yx.js} +3 -3
- package/chunks/{bundle-dLuEa16_.js.map → bundle-J7om32yx.js.map} +1 -1
- package/chunks/{bundle-AI8e02c3.js → bundle-JGFwpJZJ.js} +1 -1
- package/chunks/bundle-JGFwpJZJ.js.map +1 -0
- package/chunks/{bundle-w9T6A0ez.js → bundle-KaSW5xxP.js} +9 -9
- package/{cjs/chunks/bundle-4q81wd8X.js.map → chunks/bundle-KaSW5xxP.js.map} +1 -1
- package/chunks/{bundle-h3JIYRTG.js → bundle-LPkaaUo4.js} +2 -2
- package/chunks/{bundle-h3JIYRTG.js.map → bundle-LPkaaUo4.js.map} +1 -1
- package/chunks/{bundle-rYAZn3lj.js → bundle-Lh7-eKPZ.js} +2 -2
- package/chunks/{bundle-rYAZn3lj.js.map → bundle-Lh7-eKPZ.js.map} +1 -1
- package/chunks/{bundle-Q8dtkDOa.js → bundle-NcHt88Fs.js} +1 -1
- package/chunks/bundle-NcHt88Fs.js.map +1 -0
- package/chunks/{bundle-EHReigfD.js → bundle-OoXqnc0l.js} +4 -4
- package/chunks/{bundle-EHReigfD.js.map → bundle-OoXqnc0l.js.map} +1 -1
- package/chunks/{bundle-qst5L6aH.js → bundle-PK1dgVwp.js} +5 -3
- package/chunks/bundle-PK1dgVwp.js.map +1 -0
- package/chunks/{bundle-x-4ukZm_.js → bundle-QKq7b-WA.js} +1 -1
- package/chunks/bundle-QKq7b-WA.js.map +1 -0
- package/chunks/{bundle-mL_86Tua.js → bundle-QeQV8Aqe.js} +1 -1
- package/chunks/bundle-QeQV8Aqe.js.map +1 -0
- package/chunks/{bundle-_YRJ7d9_.js → bundle-TWJd6cza.js} +26 -27
- package/chunks/{bundle-_YRJ7d9_.js.map → bundle-TWJd6cza.js.map} +1 -1
- package/chunks/{bundle-WCTKBopn.js → bundle-UjngV2Kp.js} +2 -2
- package/chunks/bundle-UjngV2Kp.js.map +1 -0
- package/chunks/{bundle-w2v7oZ9G.js → bundle-VSkY75XQ.js} +2 -2
- package/chunks/bundle-VSkY75XQ.js.map +1 -0
- package/chunks/{bundle-LUte5Kb5.js → bundle-YwxAxKwQ.js} +91 -166
- package/chunks/{bundle-LUte5Kb5.js.map → bundle-YwxAxKwQ.js.map} +1 -1
- package/chunks/{bundle-3mdR5HDw.js → bundle-ZZuBYhV1.js} +2 -2
- package/chunks/{bundle-3mdR5HDw.js.map → bundle-ZZuBYhV1.js.map} +1 -1
- package/chunks/bundle-_2iSz8ke.js +353 -0
- package/{cjs/chunks/bundle-kBUglm2K.js.map → chunks/bundle-_2iSz8ke.js.map} +1 -1
- package/chunks/{bundle-khKXutc3.js → bundle-_nlJSeuz.js} +1 -1
- package/chunks/bundle-_nlJSeuz.js.map +1 -0
- package/chunks/{bundle-ZmvX8uZ5.js → bundle-fQ2M7pMu.js} +5 -17
- package/chunks/bundle-fQ2M7pMu.js.map +1 -0
- package/chunks/{bundle-ANPmLOz8.js → bundle-fbmUkwMs.js} +4 -4
- package/chunks/{bundle-ANPmLOz8.js.map → bundle-fbmUkwMs.js.map} +1 -1
- package/chunks/{bundle-rLxuFUa1.js → bundle-gYyMZyCn.js} +5 -5
- package/chunks/bundle-gYyMZyCn.js.map +1 -0
- package/chunks/{bundle-bofQNMJb.js → bundle-iPDlyZXo.js} +1 -1
- package/chunks/bundle-iPDlyZXo.js.map +1 -0
- package/chunks/{bundle-Zl1hrCWc.js → bundle-jUubN32Z.js} +4 -4
- package/chunks/bundle-jUubN32Z.js.map +1 -0
- package/chunks/{bundle-53PRRrlp.js → bundle-kBtT3HBi.js} +3 -3
- package/chunks/{bundle-53PRRrlp.js.map → bundle-kBtT3HBi.js.map} +1 -1
- package/chunks/{bundle-cviP1IM2.js → bundle-kPOY92Qs.js} +3 -3
- package/chunks/{bundle-cviP1IM2.js.map → bundle-kPOY92Qs.js.map} +1 -1
- package/chunks/{bundle-kp1MMNMf.js → bundle-kaJaYGwQ.js} +1 -1
- package/chunks/bundle-kaJaYGwQ.js.map +1 -0
- package/chunks/{bundle-wMgBBDf9.js → bundle-lDOyfwhb.js} +3 -3
- package/chunks/bundle-lDOyfwhb.js.map +1 -0
- package/chunks/{bundle-FTgSGiKe.js → bundle-ltzZCtkR.js} +1 -1
- package/chunks/{bundle-FTgSGiKe.js.map → bundle-ltzZCtkR.js.map} +1 -1
- package/chunks/{bundle-H2I60B2B.js → bundle-ndy1oWfZ.js} +2 -2
- package/chunks/bundle-ndy1oWfZ.js.map +1 -0
- package/chunks/{bundle-bJrywUB-.js → bundle-r7_GdraW.js} +10 -10
- package/chunks/{bundle-TZXZa-F1.js.map → bundle-r7_GdraW.js.map} +1 -1
- package/chunks/{bundle-5iuNyt5M.js → bundle-rX7vrYxX.js} +1 -1
- package/chunks/{bundle-5iuNyt5M.js.map → bundle-rX7vrYxX.js.map} +1 -1
- package/chunks/{bundle-sOjc_nNQ.js → bundle-tK1qgIcU.js} +1 -1
- package/chunks/bundle-tK1qgIcU.js.map +1 -0
- package/chunks/{bundle-7FyFbzI4.js → bundle-um2Azmnd.js} +1 -1
- package/chunks/bundle-um2Azmnd.js.map +1 -0
- package/chunks/{bundle-r_VxbiS3.js → bundle-w-pB0qJ8.js} +1 -1
- package/chunks/bundle-w-pB0qJ8.js.map +1 -0
- package/chunks/bundle-x3udz03j.js +77 -0
- package/chunks/bundle-x3udz03j.js.map +1 -0
- package/chunks/{bundle-TZXZa-F1.js → bundle-zch8NdOh.js} +13 -19
- package/chunks/bundle-zch8NdOh.js.map +1 -0
- package/chunks/{bundle-M2ljBW6p.js → bundle-zqQY3xFx.js} +4 -4
- package/chunks/bundle-zqQY3xFx.js.map +1 -0
- 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 +80 -53
- package/cjs/Channel/components/MessageList.js.map +1 -1
- 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-BN7IOLFq.js → bundle-2KPLdyEL.js} +2 -2
- package/cjs/chunks/bundle-2KPLdyEL.js.map +1 -0
- package/cjs/chunks/{bundle-iwsbhMUN.js → bundle-3qeMVUne.js} +4 -4
- package/cjs/chunks/bundle-3qeMVUne.js.map +1 -0
- package/cjs/chunks/{bundle-L9ushBZQ.js → bundle-4iro9CUN.js} +1 -1
- package/cjs/chunks/bundle-4iro9CUN.js.map +1 -0
- package/cjs/chunks/{bundle-z-Bvsn0B.js → bundle-5l7POen0.js} +1 -1
- package/cjs/chunks/bundle-5l7POen0.js.map +1 -0
- package/cjs/chunks/bundle-6fWeHUzf.js +46 -0
- package/cjs/chunks/bundle-6fWeHUzf.js.map +1 -0
- package/cjs/chunks/{bundle-QmSa90PC.js → bundle-80bw1Z-w.js} +3 -3
- package/cjs/chunks/bundle-80bw1Z-w.js.map +1 -0
- package/cjs/chunks/{bundle-4q81wd8X.js → bundle-8lUFYwiz.js} +4 -17
- package/{chunks/bundle-ZmvX8uZ5.js.map → cjs/chunks/bundle-8lUFYwiz.js.map} +1 -1
- package/cjs/chunks/{bundle-6OOGDxxE.js → bundle-A9-xoiFy.js} +3 -3
- package/cjs/chunks/bundle-A9-xoiFy.js.map +1 -0
- package/cjs/chunks/{bundle-4bb_98h6.js → bundle-ACXel153.js} +1 -1
- package/cjs/chunks/bundle-ACXel153.js.map +1 -0
- package/cjs/chunks/{bundle-FHx0K-3z.js → bundle-BUF_nc4Q.js} +3 -3
- package/cjs/chunks/{bundle-FHx0K-3z.js.map → bundle-BUF_nc4Q.js.map} +1 -1
- package/cjs/chunks/{bundle-FLCJVplO.js → bundle-Bekm94S6.js} +3 -3
- package/cjs/chunks/bundle-Bekm94S6.js.map +1 -0
- package/cjs/chunks/{bundle-F7GEQVgT.js → bundle-Ch6xNfpK.js} +12 -12
- package/cjs/chunks/{bundle-F7GEQVgT.js.map → bundle-Ch6xNfpK.js.map} +1 -1
- package/cjs/chunks/{bundle-RlFjml8m.js → bundle-Co06yFqb.js} +4 -4
- package/{chunks/bundle-w9T6A0ez.js.map → cjs/chunks/bundle-Co06yFqb.js.map} +1 -1
- package/cjs/chunks/{bundle-RaQV-Bpr.js → bundle-DRPbz-J2.js} +1 -1
- package/cjs/chunks/bundle-DRPbz-J2.js.map +1 -0
- package/cjs/chunks/{bundle-kWUEW1ZN.js → bundle-DTSMqW5p.js} +1 -1
- package/cjs/chunks/bundle-DTSMqW5p.js.map +1 -0
- package/cjs/chunks/{bundle-n1yh-qDb.js → bundle-EVv3xRW8.js} +1 -1
- package/cjs/chunks/{bundle-n1yh-qDb.js.map → bundle-EVv3xRW8.js.map} +1 -1
- package/cjs/chunks/{bundle-tywVawyg.js → bundle-FCrfVx0P.js} +3 -3
- package/cjs/chunks/bundle-FCrfVx0P.js.map +1 -0
- package/cjs/chunks/{bundle-cttYM0DR.js → bundle-FI-ZNmbG.js} +1 -1
- package/cjs/chunks/bundle-FI-ZNmbG.js.map +1 -0
- package/cjs/chunks/{bundle-b4fiCQuI.js → bundle-LoNtsKOJ.js} +5 -5
- package/cjs/chunks/bundle-LoNtsKOJ.js.map +1 -0
- package/cjs/chunks/{bundle-lii4Ueh3.js → bundle-M6v8bdc6.js} +1 -1
- package/cjs/chunks/bundle-M6v8bdc6.js.map +1 -0
- package/cjs/chunks/{bundle-g0lpRY8_.js → bundle-MB8QdyyQ.js} +1 -1
- package/cjs/chunks/bundle-MB8QdyyQ.js.map +1 -0
- package/cjs/chunks/{bundle-QfhZ2YNP.js → bundle-MwYMtlCB.js} +2 -2
- package/cjs/chunks/{bundle-QfhZ2YNP.js.map → bundle-MwYMtlCB.js.map} +1 -1
- package/cjs/chunks/{bundle-ELeM0_1Y.js → bundle-NOQysszZ.js} +1 -1
- package/cjs/chunks/bundle-NOQysszZ.js.map +1 -0
- package/cjs/chunks/{bundle-tRBVL0r6.js → bundle-OfmF0BBb.js} +4 -4
- package/cjs/chunks/{bundle-tRBVL0r6.js.map → bundle-OfmF0BBb.js.map} +1 -1
- package/cjs/chunks/{bundle-gS0bojlA.js → bundle-PoR4V_kd.js} +1 -1
- package/cjs/chunks/bundle-PoR4V_kd.js.map +1 -0
- package/cjs/chunks/{bundle-I_9_5a8a.js → bundle-RG3ZDmvE.js} +1 -1
- package/cjs/chunks/{bundle-I_9_5a8a.js.map → bundle-RG3ZDmvE.js.map} +1 -1
- package/cjs/chunks/{bundle-zr9ZXBrm.js → bundle-RV4B0RCM.js} +2 -2
- package/cjs/chunks/bundle-RV4B0RCM.js.map +1 -0
- package/cjs/chunks/{bundle-TEIqVGqn.js → bundle-TCdgqawd.js} +2 -2
- package/cjs/chunks/bundle-TCdgqawd.js.map +1 -0
- package/cjs/chunks/{bundle-P_B0eyVT.js → bundle-VHUezYnn.js} +1 -1
- package/cjs/chunks/bundle-VHUezYnn.js.map +1 -0
- package/cjs/chunks/{bundle-11ybpGNN.js → bundle-Y0ibVW_O.js} +7 -7
- package/cjs/chunks/bundle-Y0ibVW_O.js.map +1 -0
- package/cjs/chunks/{bundle-dXhGOQQM.js → bundle-YRW87MiX.js} +1 -1
- package/cjs/chunks/bundle-YRW87MiX.js.map +1 -0
- package/cjs/chunks/{bundle-gMxOq93o.js → bundle-Z8uBiYyS.js} +1 -1
- package/cjs/chunks/bundle-Z8uBiYyS.js.map +1 -0
- package/cjs/chunks/{bundle-DZeKHvMp.js → bundle-ZYvG_yE0.js} +6 -6
- package/cjs/chunks/bundle-ZYvG_yE0.js.map +1 -0
- package/cjs/chunks/{bundle-Dwrq46Xb.js → bundle-_R3HdLLP.js} +26 -27
- package/cjs/chunks/{bundle-Dwrq46Xb.js.map → bundle-_R3HdLLP.js.map} +1 -1
- package/cjs/chunks/{bundle-4DATo50q.js → bundle-_yIYQoui.js} +95 -170
- package/cjs/chunks/{bundle-4DATo50q.js.map → bundle-_yIYQoui.js.map} +1 -1
- package/cjs/chunks/{bundle-tmB_l3Q9.js → bundle-a_NGo240.js} +1 -1
- package/cjs/chunks/bundle-a_NGo240.js.map +1 -0
- package/cjs/chunks/{bundle-c6O8NjZI.js → bundle-bQffWPr0.js} +5 -2
- package/cjs/chunks/bundle-bQffWPr0.js.map +1 -0
- package/cjs/chunks/{bundle-CUP2x37z.js → bundle-cKt6NzI1.js} +3 -3
- package/cjs/chunks/{bundle-CUP2x37z.js.map → bundle-cKt6NzI1.js.map} +1 -1
- package/cjs/chunks/{bundle-6ziaqiUd.js → bundle-fTDV9UxX.js} +3 -3
- package/cjs/chunks/bundle-fTDV9UxX.js.map +1 -0
- package/cjs/chunks/{bundle-41ZfOrRZ.js → bundle-h48X_8mu.js} +4 -4
- package/cjs/chunks/{bundle-41ZfOrRZ.js.map → bundle-h48X_8mu.js.map} +1 -1
- package/cjs/chunks/{bundle-Y9TkHVI5.js → bundle-kkxTVcGD.js} +1 -1
- package/cjs/chunks/bundle-kkxTVcGD.js.map +1 -0
- package/cjs/chunks/{bundle-6o4fw0w0.js → bundle-leALuaxJ.js} +12 -18
- package/{chunks/bundle-Ael7hqI7.js.map → cjs/chunks/bundle-leALuaxJ.js.map} +1 -1
- package/cjs/chunks/bundle-lj7KorhP.js +81 -0
- package/cjs/chunks/bundle-lj7KorhP.js.map +1 -0
- package/cjs/chunks/{bundle-p1cCW0sH.js → bundle-lkluBCYi.js} +3 -3
- package/cjs/chunks/bundle-lkluBCYi.js.map +1 -0
- package/cjs/chunks/{bundle-hK4x7nmG.js → bundle-mc8PQfi_.js} +1 -1
- package/cjs/chunks/{bundle-hK4x7nmG.js.map → bundle-mc8PQfi_.js.map} +1 -1
- package/cjs/chunks/{bundle-_fjTT1-g.js → bundle-n6O0NYfY.js} +7 -7
- package/cjs/chunks/bundle-n6O0NYfY.js.map +1 -0
- package/cjs/chunks/{bundle-e-fvbugV.js → bundle-o5pJIgS7.js} +1 -1
- package/cjs/chunks/bundle-o5pJIgS7.js.map +1 -0
- package/cjs/chunks/{bundle-UooP2IDU.js → bundle-o66lc7qg.js} +5 -5
- package/cjs/chunks/bundle-o66lc7qg.js.map +1 -0
- package/cjs/chunks/{bundle-B2MaAm21.js → bundle-oISd80pA.js} +1 -1
- package/cjs/chunks/bundle-oISd80pA.js.map +1 -0
- package/cjs/chunks/{bundle-BJe68nS0.js → bundle-oiMScSG6.js} +3 -3
- package/{chunks/bundle-bJrywUB-.js.map → cjs/chunks/bundle-oiMScSG6.js.map} +1 -1
- package/cjs/chunks/{bundle-28p7K0N-.js → bundle-pLajF9mf.js} +2 -2
- package/cjs/chunks/{bundle-28p7K0N-.js.map → bundle-pLajF9mf.js.map} +1 -1
- package/cjs/chunks/{bundle-JggdKsJa.js → bundle-t70SIG3R.js} +10 -10
- package/cjs/chunks/bundle-t70SIG3R.js.map +1 -0
- package/cjs/chunks/{bundle-kBUglm2K.js → bundle-tooLK5gn.js} +4 -4
- package/cjs/chunks/bundle-tooLK5gn.js.map +1 -0
- package/cjs/chunks/{bundle-YNHu-c84.js → bundle-u4ZfKyD_.js} +2 -2
- package/cjs/chunks/bundle-u4ZfKyD_.js.map +1 -0
- package/cjs/chunks/{bundle-4rFcKXQa.js → bundle-uE1K1eGs.js} +2 -2
- package/cjs/chunks/{bundle-4rFcKXQa.js.map → bundle-uE1K1eGs.js.map} +1 -1
- package/cjs/chunks/bundle-vWOLHFBL.js +356 -0
- package/cjs/chunks/bundle-vWOLHFBL.js.map +1 -0
- package/cjs/chunks/{bundle-1yOirqug.js → bundle-viTxhrPr.js} +1 -1
- package/cjs/chunks/bundle-viTxhrPr.js.map +1 -0
- package/cjs/chunks/{bundle-g_OXBrgT.js → bundle-wPu8WyIh.js} +1 -1
- package/cjs/chunks/bundle-wPu8WyIh.js.map +1 -0
- package/cjs/chunks/{bundle-P0kNl8GH.js → bundle-xy995kna.js} +11 -11
- package/cjs/chunks/bundle-xy995kna.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 +711 -653
- 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
|
@@ -1,16 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { PublishingModuleType } from '../../modules/internalInterfaces';
|
|
2
|
+
import { UploadableFileInfo } from '@sendbird/chat/message';
|
|
3
|
+
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
4
|
+
import { PubSubTypes } from './index';
|
|
5
|
+
import { OpenChannel } from '@sendbird/chat/openChannel';
|
|
6
|
+
import { SendableMessageType } from '../../utils';
|
|
7
|
+
export { PublishingModuleType } from '../../modules/internalInterfaces';
|
|
8
|
+
export declare enum PUBSUB_TOPICS {
|
|
9
|
+
USER_UPDATED = "USER_UPDATED",
|
|
10
|
+
SEND_MESSAGE_START = "SEND_MESSAGE_START",
|
|
11
|
+
SEND_MESSAGE_FAILED = "SEND_MESSAGE_FAILED",
|
|
12
|
+
SEND_USER_MESSAGE = "SEND_USER_MESSAGE",
|
|
13
|
+
SEND_FILE_MESSAGE = "SEND_FILE_MESSAGE",
|
|
14
|
+
ON_FILE_INFO_UPLOADED = "ON_FILE_INFO_UPLOADED",
|
|
15
|
+
UPDATE_USER_MESSAGE = "UPDATE_USER_MESSAGE",
|
|
16
|
+
DELETE_MESSAGE = "DELETE_MESSAGE",
|
|
17
|
+
LEAVE_CHANNEL = "LEAVE_CHANNEL",
|
|
18
|
+
CREATE_CHANNEL = "CREATE_CHANNEL",
|
|
19
|
+
UPDATE_OPEN_CHANNEL = "UPDATE_OPEN_CHANNEL"
|
|
20
|
+
}
|
|
21
|
+
type SendMessagePayload = {
|
|
22
|
+
message: SendableMessageType;
|
|
23
|
+
channel: GroupChannel | OpenChannel;
|
|
24
|
+
publishingModules: PublishingModuleType[];
|
|
14
25
|
};
|
|
15
|
-
export type
|
|
26
|
+
export type SBUGlobalPubSubTopicPayloadUnion = {
|
|
27
|
+
topic: PUBSUB_TOPICS.SEND_MESSAGE_START;
|
|
28
|
+
payload: SendMessagePayload & {
|
|
29
|
+
message: SendableMessageType & {
|
|
30
|
+
url?: string;
|
|
31
|
+
requestState?: 'pending';
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
topic: PUBSUB_TOPICS.SEND_MESSAGE_FAILED;
|
|
36
|
+
payload: SendMessagePayload & {
|
|
37
|
+
error: Error;
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
topic: PUBSUB_TOPICS.SEND_USER_MESSAGE;
|
|
41
|
+
payload: SendMessagePayload;
|
|
42
|
+
} | {
|
|
43
|
+
topic: PUBSUB_TOPICS.SEND_FILE_MESSAGE;
|
|
44
|
+
payload: SendMessagePayload;
|
|
45
|
+
} | {
|
|
46
|
+
topic: PUBSUB_TOPICS.ON_FILE_INFO_UPLOADED;
|
|
47
|
+
payload: {
|
|
48
|
+
response: {
|
|
49
|
+
channelUrl: string;
|
|
50
|
+
requestId: string;
|
|
51
|
+
index: number;
|
|
52
|
+
uploadableFileInfo: UploadableFileInfo;
|
|
53
|
+
error: Error;
|
|
54
|
+
};
|
|
55
|
+
publishingModules: PublishingModuleType[];
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
topic: PUBSUB_TOPICS.UPDATE_USER_MESSAGE;
|
|
59
|
+
payload: {
|
|
60
|
+
message: SendableMessageType;
|
|
61
|
+
channel: GroupChannel | OpenChannel;
|
|
62
|
+
publishingModules: PublishingModuleType[];
|
|
63
|
+
fromSelector?: boolean;
|
|
64
|
+
};
|
|
65
|
+
} | {
|
|
66
|
+
topic: PUBSUB_TOPICS.DELETE_MESSAGE;
|
|
67
|
+
payload: {
|
|
68
|
+
messageId: number;
|
|
69
|
+
channel: GroupChannel | OpenChannel;
|
|
70
|
+
};
|
|
71
|
+
} | {
|
|
72
|
+
topic: PUBSUB_TOPICS.LEAVE_CHANNEL;
|
|
73
|
+
payload: {
|
|
74
|
+
channel: GroupChannel | OpenChannel;
|
|
75
|
+
};
|
|
76
|
+
} | {
|
|
77
|
+
topic: PUBSUB_TOPICS.CREATE_CHANNEL;
|
|
78
|
+
payload: {
|
|
79
|
+
channel: GroupChannel | OpenChannel;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
topic: PUBSUB_TOPICS.UPDATE_OPEN_CHANNEL;
|
|
83
|
+
payload: OpenChannel;
|
|
84
|
+
};
|
|
85
|
+
export type SBUGlobalPubSub = PubSubTypes<PUBSUB_TOPICS, SBUGlobalPubSubTopicPayloadUnion>;
|
|
16
86
|
export default PUBSUB_TOPICS;
|
package/types/lib/selectors.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { OpenChannel, OpenChannelCreateParams } from '@sendbird/chat/openChannel
|
|
|
5
5
|
import { FileMessage, FileMessageCreateParams, SendableMessage, UserMessageUpdateParams } from '@sendbird/chat/lib/__definition';
|
|
6
6
|
import { SendBirdState } from './types';
|
|
7
7
|
import { SendableMessageType } from '../utils';
|
|
8
|
+
import { PublishingModuleType } from '../modules/internalInterfaces';
|
|
8
9
|
/**
|
|
9
10
|
* 1. UIKit Instances
|
|
10
11
|
* a. getSdk
|
|
@@ -44,7 +45,7 @@ export declare const getSdk: (state: SendBirdState) => import("@sendbird/chat").
|
|
|
44
45
|
/**
|
|
45
46
|
* const pubSub = selectors.getPubSub(state);
|
|
46
47
|
*/
|
|
47
|
-
export declare const getPubSub: (state: SendBirdState) =>
|
|
48
|
+
export declare const getPubSub: (state: SendBirdState) => import("./pubSub/topics").SBUGlobalPubSub;
|
|
48
49
|
/**
|
|
49
50
|
* const connect = selectors.getConnect(state);
|
|
50
51
|
* connect('user-id-sendbirdian', 'access-token-0000')
|
|
@@ -158,7 +159,7 @@ export declare class UikitMessageHandler<T extends SendableMessage = SendableMes
|
|
|
158
159
|
* .onFailed((error, message) => {})
|
|
159
160
|
* .onSucceeded((message) => {})
|
|
160
161
|
*/
|
|
161
|
-
export declare const getSendUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, params: UserMessageCreateParams) => UikitMessageHandler;
|
|
162
|
+
export declare const getSendUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, params: UserMessageCreateParams) => UikitMessageHandler;
|
|
162
163
|
/**
|
|
163
164
|
* const sendFileMessage = selectors.getSendFileMessage(state);
|
|
164
165
|
* sendFileMessage(
|
|
@@ -169,7 +170,7 @@ export declare const getSendUserMessage: (state: SendBirdState) => (channel: Gro
|
|
|
169
170
|
* .onFailed((error, message) => {})
|
|
170
171
|
* .onSucceeded((message) => {})
|
|
171
172
|
*/
|
|
172
|
-
export declare const getSendFileMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, params: FileMessageCreateParams) => UikitMessageHandler;
|
|
173
|
+
export declare const getSendFileMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, params: FileMessageCreateParams) => UikitMessageHandler;
|
|
173
174
|
/**
|
|
174
175
|
* const updateUserMessage = selectors.getUpdateUserMessage(state);
|
|
175
176
|
* updateUserMessage(
|
|
@@ -180,7 +181,7 @@ export declare const getSendFileMessage: (state: SendBirdState) => (channel: Gro
|
|
|
180
181
|
* .then((message) => {})
|
|
181
182
|
* .catch((error) => {})
|
|
182
183
|
*/
|
|
183
|
-
export declare const getUpdateUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, messageId: number, params: UserMessageUpdateParams) => Promise<UserMessage>;
|
|
184
|
+
export declare const getUpdateUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, messageId: number, params: UserMessageUpdateParams) => Promise<UserMessage>;
|
|
184
185
|
/**
|
|
185
186
|
* const updateFileMessage = selectors.getUpdateFileMessage(state);
|
|
186
187
|
* updateFileMessage(
|
|
@@ -210,7 +211,7 @@ export declare const getDeleteMessage: (state: SendBirdState) => (channel: Group
|
|
|
210
211
|
* .then(() => {})
|
|
211
212
|
* .catch((error) => {})
|
|
212
213
|
*/
|
|
213
|
-
export declare const getResendUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, failedMessage: UserMessage) => Promise<UserMessage>;
|
|
214
|
+
export declare const getResendUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, failedMessage: UserMessage) => Promise<UserMessage>;
|
|
214
215
|
/**
|
|
215
216
|
* const resendFileMessage = selectors.getResendFileMessage(state);
|
|
216
217
|
* resendFileMessage(
|
|
@@ -221,10 +222,10 @@ export declare const getResendUserMessage: (state: SendBirdState) => (channel: G
|
|
|
221
222
|
* .then(() => {})
|
|
222
223
|
* .catch((error) => {})
|
|
223
224
|
*/
|
|
224
|
-
export declare const getResendFileMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, failedMessage: FileMessage, blob: Blob) => Promise<FileMessage>;
|
|
225
|
+
export declare const getResendFileMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, failedMessage: FileMessage, blob: Blob) => Promise<FileMessage>;
|
|
225
226
|
declare const sendbirdSelectors: {
|
|
226
227
|
getSdk: (state: SendBirdState) => import("@sendbird/chat").default & import("@sendbird/chat/lib/__definition").ModuleNamespaces<[import("@sendbird/chat/groupChannel").GroupChannelModule, import("@sendbird/chat/openChannel").OpenChannelModule], import("@sendbird/chat/groupChannel").GroupChannelModule | import("@sendbird/chat/openChannel").OpenChannelModule>;
|
|
227
|
-
getPubSub: (state: SendBirdState) =>
|
|
228
|
+
getPubSub: (state: SendBirdState) => import("./pubSub/topics").SBUGlobalPubSub;
|
|
228
229
|
getConnect: (state: SendBirdState) => (userId: string, accessToken?: string) => Promise<User>;
|
|
229
230
|
getDisconnect: (state: SendBirdState) => () => Promise<void>;
|
|
230
231
|
getUpdateUserInfo: (state: SendBirdState) => (nickname: string, profileUrl?: string) => Promise<User>;
|
|
@@ -237,11 +238,11 @@ declare const sendbirdSelectors: {
|
|
|
237
238
|
getExitOpenChannel: (state: SendBirdState) => (channelUrl: string) => Promise<OpenChannel>;
|
|
238
239
|
getFreezeChannel: () => (channel: GroupChannel | OpenChannel) => Promise<void>;
|
|
239
240
|
getUnfreezeChannel: () => (channel: GroupChannel | OpenChannel) => Promise<void>;
|
|
240
|
-
getSendUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, params: UserMessageCreateParams) => UikitMessageHandler;
|
|
241
|
-
getSendFileMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, params: FileMessageCreateParams) => UikitMessageHandler;
|
|
242
|
-
getUpdateUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, messageId: number, params: UserMessageUpdateParams) => Promise<UserMessage>;
|
|
241
|
+
getSendUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, params: UserMessageCreateParams) => UikitMessageHandler;
|
|
242
|
+
getSendFileMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, params: FileMessageCreateParams) => UikitMessageHandler;
|
|
243
|
+
getUpdateUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, messageId: number, params: UserMessageUpdateParams) => Promise<UserMessage>;
|
|
243
244
|
getDeleteMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, message: SendableMessageType) => Promise<SendableMessageType>;
|
|
244
|
-
getResendUserMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, failedMessage: UserMessage) => Promise<UserMessage>;
|
|
245
|
-
getResendFileMessage: (state: SendBirdState) => (channel: GroupChannel | OpenChannel, failedMessage: FileMessage, blob: Blob) => Promise<FileMessage>;
|
|
245
|
+
getResendUserMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, failedMessage: UserMessage) => Promise<UserMessage>;
|
|
246
|
+
getResendFileMessage: (state: SendBirdState, publishingModules?: PublishingModuleType[]) => (channel: GroupChannel | OpenChannel, failedMessage: FileMessage, blob: Blob) => Promise<FileMessage>;
|
|
246
247
|
};
|
|
247
248
|
export default sendbirdSelectors;
|
package/types/lib/types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { CoreMessageType } from '../utils';
|
|
|
16
16
|
import { UserActionTypes } from './dux/user/actionTypes';
|
|
17
17
|
import { SdkActionTypes } from './dux/sdk/actionTypes';
|
|
18
18
|
import { ReconnectType } from './hooks/useConnect/types';
|
|
19
|
+
import { SBUGlobalPubSub } from './pubSub/topics';
|
|
19
20
|
export declare const Role: {
|
|
20
21
|
readonly OPERATOR: "operator";
|
|
21
22
|
readonly NONE: "none";
|
|
@@ -36,7 +37,7 @@ export interface SendBirdStateConfig {
|
|
|
36
37
|
appId: string;
|
|
37
38
|
accessToken: string;
|
|
38
39
|
theme: string;
|
|
39
|
-
pubSub:
|
|
40
|
+
pubSub: SBUGlobalPubSub;
|
|
40
41
|
logger: Logger;
|
|
41
42
|
setCurrentTheme: (theme: 'light' | 'dark') => void;
|
|
42
43
|
/** @deprecated Please use setCurrentTheme instead * */
|
|
@@ -2,6 +2,7 @@ import { Logger } from '../../../../lib/SendbirdState';
|
|
|
2
2
|
import { SendMFMFunctionType } from '../../context/hooks/useSendMultipleFilesMessage';
|
|
3
3
|
import { SendableMessageType } from '../../../../utils';
|
|
4
4
|
import { SendFileMessageFunctionType } from '../../../Thread/context/hooks/useSendFileMessage';
|
|
5
|
+
import { FileMessage, MultipleFilesMessage } from '@sendbird/chat/message';
|
|
5
6
|
/**
|
|
6
7
|
* The handleUploadFiles is a function sending a FileMessage and MultipleFilesMessage
|
|
7
8
|
* by the received FileList from the ChangeEvent of MessageInput component.
|
|
@@ -14,6 +15,5 @@ interface useHandleUploadFilesDynamicProps {
|
|
|
14
15
|
interface useHandleUploadFilesStaticProps {
|
|
15
16
|
logger: Logger;
|
|
16
17
|
}
|
|
17
|
-
export
|
|
18
|
-
export declare const useHandleUploadFiles: ({ sendFileMessage, sendMultipleFilesMessage, quoteMessage, }: useHandleUploadFilesDynamicProps, { logger, }: useHandleUploadFilesStaticProps) => Array<HandleUploadFunctionType>;
|
|
18
|
+
export declare const useHandleUploadFiles: ({ sendFileMessage, sendMultipleFilesMessage, quoteMessage, }: useHandleUploadFilesDynamicProps, { logger, }: useHandleUploadFilesStaticProps) => (files: File[]) => Promise<void | FileMessage | MultipleFilesMessage>;
|
|
19
19
|
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GroupChannel, Member } from '@sendbird/chat/groupChannel';
|
|
2
|
+
export declare function fetchMembersFromChannel(currentUserId: string, channel: GroupChannel, maxSuggestionCount: number, searchString: string): Promise<Member[]>;
|
|
3
|
+
export declare function fetchMembersFromQuery(currentUserId: string, channel: GroupChannel, maxSuggestionCount: number, searchString: string): Promise<Member[]>;
|
|
@@ -8,6 +8,7 @@ import { ThreadReplySelectType } from './const';
|
|
|
8
8
|
import * as channelActions from './dux/actionTypes';
|
|
9
9
|
import { ChannelActionTypes } from './dux/actionTypes';
|
|
10
10
|
import { MultipleFilesMessage } from '@sendbird/chat/message';
|
|
11
|
+
import { Member } from '@sendbird/chat/groupChannel';
|
|
11
12
|
export type MessageListParams = {
|
|
12
13
|
replyType?: string;
|
|
13
14
|
messageType?: string;
|
|
@@ -78,6 +79,7 @@ interface MessageStoreInterface {
|
|
|
78
79
|
latestMessageTimeStamp: number;
|
|
79
80
|
emojiContainer: EmojiContainer;
|
|
80
81
|
readStatus: any;
|
|
82
|
+
typingMembers: Member[];
|
|
81
83
|
}
|
|
82
84
|
interface SendMessageParams {
|
|
83
85
|
message: string;
|
|
@@ -5,6 +5,7 @@ import { EmojiContainer } from '@sendbird/chat';
|
|
|
5
5
|
import { ReactionEvent } from '@sendbird/chat/message';
|
|
6
6
|
import { MessageListParams } from '../ChannelProvider';
|
|
7
7
|
import { FileUploadedPayload } from '../hooks/useSendMultipleFilesMessage';
|
|
8
|
+
import { Member } from '@sendbird/chat/lib/__definition';
|
|
8
9
|
export declare const RESET_MESSAGES = "RESET_MESSAGES";
|
|
9
10
|
export declare const FETCH_INITIAL_MESSAGES_START = "FETCH_INITIAL_MESSAGES_START";
|
|
10
11
|
export declare const FETCH_INITIAL_MESSAGES_SUCCESS = "FETCH_INITIAL_MESSAGES_SUCCESS";
|
|
@@ -29,6 +30,7 @@ export declare const ON_REACTION_UPDATED = "ON_REACTION_UPDATED";
|
|
|
29
30
|
export declare const SET_EMOJI_CONTAINER = "SET_EMOJI_CONTAINER";
|
|
30
31
|
export declare const MESSAGE_LIST_PARAMS_CHANGED = "MESSAGE_LIST_PARAMS_CHANGED";
|
|
31
32
|
export declare const ON_FILE_INFO_UPLOADED = "ON_FILE_INFO_UPLOADED";
|
|
33
|
+
export declare const ON_TYPING_STATUS_UPDATED = "ON_TYPING_STATUS_UPDATED";
|
|
32
34
|
type CHANNEL_PAYLOAD_TYPES = {
|
|
33
35
|
[RESET_MESSAGES]: null;
|
|
34
36
|
[FETCH_INITIAL_MESSAGES_START]: null;
|
|
@@ -80,6 +82,10 @@ type CHANNEL_PAYLOAD_TYPES = {
|
|
|
80
82
|
[ON_REACTION_UPDATED]: ReactionEvent;
|
|
81
83
|
[MESSAGE_LIST_PARAMS_CHANGED]: MessageListParams;
|
|
82
84
|
[ON_FILE_INFO_UPLOADED]: FileUploadedPayload;
|
|
85
|
+
[ON_TYPING_STATUS_UPDATED]: {
|
|
86
|
+
channel: GroupChannel;
|
|
87
|
+
typingMembers: Member[];
|
|
88
|
+
};
|
|
83
89
|
};
|
|
84
90
|
type MessageId = number;
|
|
85
91
|
type RequestId = string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreMessageType, SendableMessageType } from '../../../../utils';
|
|
2
|
-
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
|
+
import { GroupChannel, Member } from '@sendbird/chat/groupChannel';
|
|
3
3
|
import { EmojiContainer } from '@sendbird/chat';
|
|
4
4
|
import type { MessageListParams as MessageListParamsInternal } from '../ChannelProvider';
|
|
5
5
|
export interface ChannelInitialStateType {
|
|
@@ -19,6 +19,7 @@ export interface ChannelInitialStateType {
|
|
|
19
19
|
emojiContainer: EmojiContainer;
|
|
20
20
|
readStatus: any;
|
|
21
21
|
messageListParams: null | MessageListParamsInternal;
|
|
22
|
+
typingMembers: Member[];
|
|
22
23
|
}
|
|
23
24
|
declare const initialState: ChannelInitialStateType;
|
|
24
25
|
export default initialState;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
2
3
|
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
3
4
|
export interface UseHandlePubsubEventsParams {
|
|
4
5
|
channelUrl: string;
|
|
5
6
|
sdkInit: boolean;
|
|
6
|
-
pubSub:
|
|
7
|
+
pubSub: SBUGlobalPubSub;
|
|
7
8
|
dispatcher: React.Dispatch<ChannelActionTypes>;
|
|
8
9
|
scrollRef: RefObject<HTMLElement>;
|
|
9
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
3
2
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
3
|
+
import { FileMessage, FileMessageCreateParams } from '@sendbird/chat/message';
|
|
4
|
+
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
5
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
4
6
|
import { LoggerInterface } from '../../../../lib/Logger';
|
|
5
|
-
import { PubSubTypes } from '../../../../lib/pubSub';
|
|
6
7
|
import { SendableMessageType } from '../../../../utils';
|
|
7
8
|
import { SendBirdState } from '../../../../lib/types';
|
|
8
|
-
import { FileMessage, FileMessageCreateParams } from '@sendbird/chat/message';
|
|
9
9
|
type UseSendFileMessageCallbackOptions = {
|
|
10
10
|
currentGroupChannel: null | GroupChannel;
|
|
11
11
|
onBeforeSendFileMessage?: (file: File, quoteMessage: SendableMessageType | null) => FileMessageCreateParams;
|
|
@@ -13,9 +13,9 @@ type UseSendFileMessageCallbackOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
type UseSendFileMessageCallbackParams = {
|
|
15
15
|
logger: LoggerInterface;
|
|
16
|
-
pubSub:
|
|
16
|
+
pubSub: SBUGlobalPubSub;
|
|
17
17
|
scrollRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
18
18
|
messagesDispatcher: React.Dispatch<ChannelActionTypes>;
|
|
19
19
|
};
|
|
20
|
-
export default function useSendFileMessageCallback({ currentGroupChannel, onBeforeSendFileMessage, imageCompression }: UseSendFileMessageCallbackOptions, { logger, pubSub, scrollRef, messagesDispatcher }: UseSendFileMessageCallbackParams): ((
|
|
20
|
+
export default function useSendFileMessageCallback({ currentGroupChannel, onBeforeSendFileMessage, imageCompression }: UseSendFileMessageCallbackOptions, { logger, pubSub, scrollRef, messagesDispatcher }: UseSendFileMessageCallbackParams): ((compressedFile: File, quoteMessage?: any) => Promise<FileMessage>)[];
|
|
21
21
|
export {};
|
|
@@ -3,9 +3,9 @@ import { User } from '@sendbird/chat';
|
|
|
3
3
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
4
4
|
import { UserMessageCreateParams } from '@sendbird/chat/message';
|
|
5
5
|
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
6
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
6
7
|
import { SendableMessageType } from '../../../../utils';
|
|
7
8
|
import { LoggerInterface } from '../../../../lib/Logger';
|
|
8
|
-
import { PubSubTypes } from '../../../../lib/pubSub';
|
|
9
9
|
type UseSendMessageCallbackOptions = {
|
|
10
10
|
isMentionEnabled: boolean;
|
|
11
11
|
currentGroupChannel: null | GroupChannel;
|
|
@@ -13,7 +13,7 @@ type UseSendMessageCallbackOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
type UseSendMessageCallbackParams = {
|
|
15
15
|
logger: LoggerInterface;
|
|
16
|
-
pubSub:
|
|
16
|
+
pubSub: SBUGlobalPubSub;
|
|
17
17
|
scrollRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
18
18
|
messagesDispatcher: React.Dispatch<ChannelActionTypes>;
|
|
19
19
|
};
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
3
3
|
import { FileMessageCreateParams } from '@sendbird/chat/message';
|
|
4
4
|
import type { Logger } from '../../../../lib/SendbirdState';
|
|
5
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
5
6
|
import type { SendableMessageType } from '../../../../utils';
|
|
6
7
|
import type { Nullable } from '../../../../types';
|
|
7
8
|
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
@@ -11,7 +12,7 @@ interface DynamicParams {
|
|
|
11
12
|
}
|
|
12
13
|
interface StaticParams {
|
|
13
14
|
logger: Logger;
|
|
14
|
-
pubSub:
|
|
15
|
+
pubSub: SBUGlobalPubSub;
|
|
15
16
|
scrollRef: React.RefObject<HTMLDivElement>;
|
|
16
17
|
messagesDispatcher: React.Dispatch<ChannelActionTypes>;
|
|
17
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChannelActionTypes } from '../dux/actionTypes';
|
|
3
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
3
4
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
4
5
|
import { UserMessage, UserMessageUpdateParams } from '@sendbird/chat/message';
|
|
5
6
|
import { LoggerInterface } from '../../../../lib/Logger';
|
|
6
|
-
import { PubSubTypes } from '../../../../lib/pubSub';
|
|
7
7
|
import { SendbirdError, User } from '@sendbird/chat';
|
|
8
8
|
type UseUpdateMessageCallbackOptions = {
|
|
9
9
|
currentGroupChannel: null | GroupChannel;
|
|
@@ -13,7 +13,7 @@ type UseUpdateMessageCallbackOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
type UseUpdateMessageCallbackParams = {
|
|
15
15
|
logger: LoggerInterface;
|
|
16
|
-
pubSub:
|
|
16
|
+
pubSub: SBUGlobalPubSub;
|
|
17
17
|
};
|
|
18
18
|
type UpdateMessageParams = {
|
|
19
19
|
messageId: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GroupChannel, GroupChannelListQuery } from '@sendbird/chat/groupChannel';
|
|
2
|
+
import { SBUGlobalPubSub } from '../../lib/pubSub/topics';
|
|
2
3
|
import { SdkStore } from '../../lib/types';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { ChannelListInitialStateType } from './dux/initialState';
|
|
@@ -6,7 +7,6 @@ import { ChannelListActionTypes } from './dux/actionTypes';
|
|
|
6
7
|
import { GroupChannelListQueryParamsInternal } from './context/ChannelListProvider';
|
|
7
8
|
import { LoggerInterface } from '../../lib/Logger';
|
|
8
9
|
import { MarkAsDeliveredSchedulerType } from '../../lib/hooks/useMarkAsDeliveredScheduler';
|
|
9
|
-
import { PubSubTypes } from '../../lib/pubSub';
|
|
10
10
|
/**
|
|
11
11
|
* Setup event listener
|
|
12
12
|
* create channel source query
|
|
@@ -29,7 +29,7 @@ declare function setupChannelList({ sdk, sdkChannelHandlerId, channelListDispatc
|
|
|
29
29
|
export declare const pubSubHandleRemover: (subscriber: Map<string, {
|
|
30
30
|
remove: () => void;
|
|
31
31
|
}>) => void;
|
|
32
|
-
export declare const pubSubHandler: (pubSub:
|
|
32
|
+
export declare const pubSubHandler: (pubSub: SBUGlobalPubSub, channelListDispatcher: React.Dispatch<ChannelListActionTypes>) => Map<string, {
|
|
33
33
|
remove: () => void;
|
|
34
34
|
}>;
|
|
35
35
|
export default setupChannelList;
|
|
@@ -33,5 +33,6 @@ export declare enum ThreadContextActionTypes {
|
|
|
33
33
|
ON_USER_LEFT = "ON_USER_LEFT",
|
|
34
34
|
ON_CHANNEL_FROZEN = "ON_CHANNEL_FROZEN",
|
|
35
35
|
ON_CHANNEL_UNFROZEN = "ON_CHANNEL_UNFROZEN",
|
|
36
|
-
ON_OPERATOR_UPDATED = "ON_OPERATOR_UPDATED"
|
|
36
|
+
ON_OPERATOR_UPDATED = "ON_OPERATOR_UPDATED",
|
|
37
|
+
ON_TYPING_STATUS_UPDATED = "ON_TYPING_STATUS_UPDATED"
|
|
37
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmojiContainer } from '@sendbird/chat';
|
|
2
|
-
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
|
+
import { GroupChannel, Member } from '@sendbird/chat/groupChannel';
|
|
3
3
|
import { ChannelStateTypes, ParentMessageStateTypes, ThreadListStateTypes } from '../../types';
|
|
4
4
|
import { CoreMessageType, SendableMessageType } from '../../../../utils';
|
|
5
5
|
export interface ThreadContextInitialState {
|
|
@@ -16,6 +16,7 @@ export interface ThreadContextInitialState {
|
|
|
16
16
|
isMuted: boolean;
|
|
17
17
|
isChannelFrozen: boolean;
|
|
18
18
|
currentUserId: string;
|
|
19
|
+
typingMembers: Member[];
|
|
19
20
|
}
|
|
20
21
|
declare const initialState: ThreadContextInitialState;
|
|
21
22
|
export default initialState;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
2
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
3
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
3
4
|
import { SendableMessageType } from '../../../../utils';
|
|
4
5
|
interface DynamicProps {
|
|
5
6
|
sdkInit: boolean;
|
|
@@ -8,7 +9,7 @@ interface DynamicProps {
|
|
|
8
9
|
}
|
|
9
10
|
interface StaticProps {
|
|
10
11
|
logger: Logger;
|
|
11
|
-
pubSub:
|
|
12
|
+
pubSub: SBUGlobalPubSub;
|
|
12
13
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
13
14
|
}
|
|
14
15
|
export default function useHandleThreadPubsubEvents({ sdkInit, currentChannel, parentMessage, }: DynamicProps, { pubSub, threadDispatcher, }: StaticProps): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
2
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
3
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
3
4
|
import { SendableMessageType } from '../../../../utils';
|
|
4
5
|
interface DynamicProps {
|
|
5
6
|
currentChannel: GroupChannel;
|
|
6
7
|
}
|
|
7
8
|
interface StaticProps {
|
|
8
9
|
logger: Logger;
|
|
9
|
-
pubSub:
|
|
10
|
+
pubSub: SBUGlobalPubSub;
|
|
10
11
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
11
12
|
}
|
|
12
13
|
export default function useResendMessageCallback({ currentChannel, }: DynamicProps, { logger, pubSub, threadDispatcher, }: StaticProps): (failedMessage: SendableMessageType) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
2
|
import { FileMessage, FileMessageCreateParams } from '@sendbird/chat/message';
|
|
3
3
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
4
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
4
5
|
import { SendableMessageType } from '../../../../utils';
|
|
5
6
|
interface DynamicProps {
|
|
6
7
|
currentChannel: GroupChannel;
|
|
@@ -8,7 +9,7 @@ interface DynamicProps {
|
|
|
8
9
|
}
|
|
9
10
|
interface StaticProps {
|
|
10
11
|
logger: Logger;
|
|
11
|
-
pubSub:
|
|
12
|
+
pubSub: SBUGlobalPubSub;
|
|
12
13
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
13
14
|
}
|
|
14
15
|
export type SendFileMessageFunctionType = (file: File, quoteMessage?: SendableMessageType) => Promise<FileMessage>;
|
|
@@ -2,6 +2,7 @@ import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
|
2
2
|
import { UserMessageCreateParams } from '@sendbird/chat/message';
|
|
3
3
|
import { User } from '@sendbird/chat';
|
|
4
4
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
5
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
5
6
|
import { SendableMessageType } from '../../../../utils';
|
|
6
7
|
export type OnBeforeSendUserMessageType = (message: string, quoteMessage?: SendableMessageType) => UserMessageCreateParams;
|
|
7
8
|
interface DynamicProps {
|
|
@@ -11,7 +12,7 @@ interface DynamicProps {
|
|
|
11
12
|
}
|
|
12
13
|
interface StaticProps {
|
|
13
14
|
logger: Logger;
|
|
14
|
-
pubSub:
|
|
15
|
+
pubSub: SBUGlobalPubSub;
|
|
15
16
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
16
17
|
}
|
|
17
18
|
export type SendMessageParams = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
2
|
import { FileMessageCreateParams } from '@sendbird/chat/message';
|
|
3
3
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
4
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
4
5
|
import { SendableMessageType } from '../../../../utils';
|
|
5
6
|
interface DynamicParams {
|
|
6
7
|
currentChannel: GroupChannel;
|
|
@@ -8,7 +9,7 @@ interface DynamicParams {
|
|
|
8
9
|
}
|
|
9
10
|
interface StaticParams {
|
|
10
11
|
logger: Logger;
|
|
11
|
-
pubSub:
|
|
12
|
+
pubSub: SBUGlobalPubSub;
|
|
12
13
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
13
14
|
}
|
|
14
15
|
type FuncType = (file: File, duration: number, quoteMessage: SendableMessageType) => void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
2
2
|
import { CustomUseReducerDispatcher, Logger } from '../../../../lib/SendbirdState';
|
|
3
|
+
import { SBUGlobalPubSub } from '../../../../lib/pubSub/topics';
|
|
3
4
|
interface DynamicProps {
|
|
4
5
|
currentChannel: GroupChannel;
|
|
5
6
|
isMentionEnabled?: boolean;
|
|
6
7
|
}
|
|
7
8
|
interface StaticProps {
|
|
8
9
|
logger: Logger;
|
|
9
|
-
pubSub:
|
|
10
|
+
pubSub: SBUGlobalPubSub;
|
|
10
11
|
threadDispatcher: CustomUseReducerDispatcher;
|
|
11
12
|
}
|
|
12
13
|
export default function useUpdateMessageCallback({ currentChannel, isMentionEnabled, }: DynamicProps, { logger, pubSub, threadDispatcher, }: StaticProps): (props: any) => void;
|
|
@@ -2,3 +2,5 @@ export declare enum PublishingModuleType {
|
|
|
2
2
|
CHANNEL = "CHANNEL",
|
|
3
3
|
THREAD = "THREAD"
|
|
4
4
|
}
|
|
5
|
+
export declare function shouldPubSubPublishToChannel(modules?: PublishingModuleType[]): boolean;
|
|
6
|
+
export declare function shouldPubSubPublishToThread(modules?: PublishingModuleType[]): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import '../index.scss';
|
|
3
|
+
import { CoreMessageType } from '../../../utils';
|
|
4
|
+
import { SendBirdStateConfig } from '../../../lib/types';
|
|
5
|
+
import { Nullable } from '../../../types';
|
|
6
|
+
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
7
|
+
export interface MessageBodyProps {
|
|
8
|
+
channel: Nullable<GroupChannel>;
|
|
9
|
+
message: CoreMessageType;
|
|
10
|
+
showFileViewer?: (bool: boolean) => void;
|
|
11
|
+
onMessageHeightChange?: () => void;
|
|
12
|
+
mouseHover: boolean;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
config: SendBirdStateConfig;
|
|
15
|
+
isReactionEnabledInChannel: boolean;
|
|
16
|
+
isByMe: boolean;
|
|
17
|
+
}
|
|
18
|
+
export default function MessageBody(props: MessageBodyProps): ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import '../index.scss';
|
|
3
|
+
import { CoreMessageType } from '../../../utils';
|
|
4
|
+
import { Nullable } from '../../../types';
|
|
5
|
+
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
6
|
+
export interface MessageHeaderProps {
|
|
7
|
+
channel: Nullable<GroupChannel>;
|
|
8
|
+
message: CoreMessageType;
|
|
9
|
+
}
|
|
10
|
+
export default function MessageHeader(props: MessageHeaderProps): ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
|
2
|
+
import '../index.scss';
|
|
3
|
+
import { MessageContentProps } from '../index';
|
|
4
|
+
export interface MessageProfileProps extends MessageContentProps {
|
|
5
|
+
setSupposedHover?: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
isMobile?: boolean;
|
|
7
|
+
isReactionEnabledInChannel?: boolean;
|
|
8
|
+
isReactionEnabledClassName?: string;
|
|
9
|
+
isByMe?: boolean;
|
|
10
|
+
isByMeClassName?: string;
|
|
11
|
+
useReplyingClassName?: string;
|
|
12
|
+
displayThreadReplies?: boolean;
|
|
13
|
+
supposedHoverClassName?: string;
|
|
14
|
+
}
|
|
15
|
+
export default function MessageProfile(props: MessageProfileProps): ReactElement;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import './index.scss';
|
|
3
3
|
import { SendableMessageType, CoreMessageType } from '../../utils';
|
|
4
4
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
5
5
|
import { EmojiContainer } from '@sendbird/chat';
|
|
6
6
|
import { ThreadReplySelectType } from '../../modules/Channel/context/const';
|
|
7
7
|
import { Nullable, ReplyType } from '../../types';
|
|
8
|
-
|
|
8
|
+
import { MessageProfileProps } from './MessageProfile';
|
|
9
|
+
import { MessageBodyProps } from './MessageBody';
|
|
10
|
+
import { MessageHeaderProps } from './MessageHeader';
|
|
11
|
+
export interface MessageContentProps {
|
|
9
12
|
className?: string | Array<string>;
|
|
10
13
|
userId: string;
|
|
11
14
|
channel: Nullable<GroupChannel>;
|
|
@@ -34,6 +37,8 @@ interface Props {
|
|
|
34
37
|
message: SendableMessageType;
|
|
35
38
|
}) => void;
|
|
36
39
|
onMessageHeightChange?: () => void;
|
|
40
|
+
renderSenderProfile?: (props: MessageProfileProps) => ReactNode;
|
|
41
|
+
renderMessageBody?: (props: MessageBodyProps) => ReactNode;
|
|
42
|
+
renderMessageHeader?: (props: MessageHeaderProps) => ReactNode;
|
|
37
43
|
}
|
|
38
|
-
export default function MessageContent(
|
|
39
|
-
export {};
|
|
44
|
+
export default function MessageContent(props: MessageContentProps): ReactElement;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { Member } from '@sendbird/chat/groupChannel';
|
|
3
|
+
export interface TypingIndicatorMessageProps {
|
|
4
|
+
typingMember: Member;
|
|
5
|
+
}
|
|
6
|
+
export default function TypingIndicatorMessage({ typingMember, }: TypingIndicatorMessageProps): ReactElement;
|