@sendbird/uikit-react 3.10.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +369 -190
- package/App.js.map +1 -1
- package/CHANGELOG.md +29 -2
- package/Channel/components/ChannelHeader.js +35 -61
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +78 -111
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +35 -81
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +8 -12
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +63 -317
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageFeedbackModal.js +9 -9
- package/Channel/components/MessageInput.js +71 -189
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +60 -57
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +31 -44
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +37 -191
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +12 -80
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +11 -29
- package/Channel/components/UnreadCount.js.map +1 -1
- package/Channel/context.js +1502 -21
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/Channel/hooks/useInitialMessagesFetch.js +6 -8
- package/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/Channel/utils/compareMessagesForGrouping.js +39 -8
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/Channel/utils/getMessagePartsInfo.js +9 -9
- package/Channel.js +78 -74
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +28 -47
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +13 -35
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +61 -135
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +42 -126
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +18 -65
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +10 -9
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +58 -59
- package/ChannelList.js.map +1 -1
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsUI.js +25 -19
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +23 -17
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +22 -16
- package/ChannelSettings/components/UserPanel.js.map +1 -1
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +25 -19
- package/ChannelSettings.js.map +1 -1
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/InviteUsers.js +23 -25
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +18 -19
- package/CreateChannel.js.map +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +11 -12
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +12 -13
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile.js +12 -13
- package/EditUserProfile.js.map +1 -1
- package/Message/hooks/useDirtyGetMentions.js +2 -2
- package/MessageSearch/components/MessageSearchUI.js +14 -15
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +14 -3
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +14 -15
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +18 -19
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +25 -26
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/OpenChannel/components/OpenChannelMessageList.js +40 -38
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +40 -38
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +17 -18
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +40 -38
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +14 -15
- package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/OpenChannelList/components/OpenChannelPreview.js +6 -7
- package/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +14 -15
- package/OpenChannelList.js.map +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +19 -19
- package/SendbirdProvider.js +91 -230
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +43 -44
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +35 -33
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +48 -48
- package/Thread/components/ThreadListItem.js +49 -50
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +50 -43
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +60 -52
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +151 -160
- package/Thread/context.js.map +1 -1
- package/Thread.js +61 -53
- package/Thread.js.map +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +10 -10
- package/VoiceRecorder/context.js +12 -11
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/chunks/{bundle-GbC4a59M.js → bundle-0v0L0TbZ.js} +4 -4
- package/chunks/bundle-0v0L0TbZ.js.map +1 -0
- package/chunks/bundle-143lYf48.js +57 -0
- package/chunks/bundle-143lYf48.js.map +1 -0
- package/chunks/bundle-1nyUxr-Z.js +34 -0
- package/chunks/bundle-1nyUxr-Z.js.map +1 -0
- package/chunks/{bundle-X3h4GiLa.js → bundle-2QckWBqt.js} +4 -5
- package/chunks/bundle-2QckWBqt.js.map +1 -0
- package/chunks/{bundle-LEanaSuB.js → bundle-2d4_n6Eh.js} +3 -3
- package/chunks/{bundle-LEanaSuB.js.map → bundle-2d4_n6Eh.js.map} +1 -1
- package/chunks/bundle-2jWyEzHg.js +64 -0
- package/chunks/bundle-2jWyEzHg.js.map +1 -0
- package/chunks/bundle-2mo18Chz.js +34 -0
- package/chunks/bundle-2mo18Chz.js.map +1 -0
- package/chunks/{bundle-mTQPBbmZ.js → bundle-2vQfu2KQ.js} +6 -6
- package/chunks/bundle-2vQfu2KQ.js.map +1 -0
- package/chunks/{bundle-PZta2LmS.js → bundle-3cuuQsdK.js} +3 -3
- package/chunks/{bundle-PZta2LmS.js.map → bundle-3cuuQsdK.js.map} +1 -1
- package/chunks/{bundle-aeQZ5WsP.js → bundle-4IsRvL2E.js} +1 -1
- package/chunks/bundle-4IsRvL2E.js.map +1 -0
- package/chunks/{bundle-_-2NCsYr.js → bundle-4l6RpXkL.js} +1 -1
- package/chunks/bundle-4l6RpXkL.js.map +1 -0
- package/chunks/{bundle-JbVZ1Tsw.js → bundle-7MnAkGtU.js} +2 -2
- package/chunks/bundle-7MnAkGtU.js.map +1 -0
- package/chunks/bundle-7jAH-Rav.js +550 -0
- package/chunks/bundle-7jAH-Rav.js.map +1 -0
- package/chunks/bundle-82c4Z7tx.js +251 -0
- package/chunks/{bundle-NYZlEPQ4.js.map → bundle-82c4Z7tx.js.map} +1 -1
- package/chunks/bundle-8CxBlReU.js +61 -0
- package/chunks/bundle-8CxBlReU.js.map +1 -0
- package/chunks/{bundle-xgiw36M5.js → bundle-9lUB2eTP.js} +1 -1
- package/chunks/bundle-9lUB2eTP.js.map +1 -0
- package/chunks/bundle-AnoUW9yQ.js +199 -0
- package/chunks/{bundle-ETZY-eQc.js.map → bundle-AnoUW9yQ.js.map} +1 -1
- package/chunks/{bundle-xsV7pD8p.js → bundle-BbdMr4SL.js} +3 -27
- package/chunks/bundle-BbdMr4SL.js.map +1 -0
- package/chunks/{bundle-F3QT9IFj.js → bundle-Bph6KjZN.js} +2 -2
- package/chunks/{bundle-GKopZh-T.js.map → bundle-Bph6KjZN.js.map} +1 -1
- package/chunks/{bundle-uk2Y0AQu.js → bundle-GQt7EDbt.js} +15 -7
- package/chunks/{bundle-uk2Y0AQu.js.map → bundle-GQt7EDbt.js.map} +1 -1
- package/chunks/bundle-GpRTDFGV.js +11 -0
- package/chunks/bundle-GpRTDFGV.js.map +1 -0
- package/chunks/{bundle-E33Oa46E.js → bundle-HOZJLjST.js} +10 -10
- package/chunks/{bundle-E33Oa46E.js.map → bundle-HOZJLjST.js.map} +1 -1
- package/chunks/bundle-HRsLD2CW.js +29 -0
- package/chunks/{bundle-zpSxKsxM.js.map → bundle-HRsLD2CW.js.map} +1 -1
- package/chunks/bundle-IbFVsltH.js +30 -0
- package/chunks/bundle-IbFVsltH.js.map +1 -0
- package/chunks/{bundle-KSjFhl4l.js → bundle-JHAEGHwc.js} +1 -1
- package/chunks/bundle-JHAEGHwc.js.map +1 -0
- package/chunks/{bundle-iWI3kIle.js → bundle-Jm7rtWnz.js} +12 -41
- package/chunks/{bundle-iWI3kIle.js.map → bundle-Jm7rtWnz.js.map} +1 -1
- package/chunks/{bundle-VPanFdbf.js → bundle-K0s-Ect1.js} +6 -6
- package/chunks/bundle-K0s-Ect1.js.map +1 -0
- package/chunks/{bundle-Lt8mReNU.js → bundle-KWJtSpuF.js} +3 -3
- package/chunks/bundle-KWJtSpuF.js.map +1 -0
- package/chunks/{bundle-Fkv6nKcy.js → bundle-MGkFgiJm.js} +5 -47
- package/chunks/bundle-MGkFgiJm.js.map +1 -0
- package/chunks/bundle-MvpO_S_k.js +12 -0
- package/chunks/bundle-MvpO_S_k.js.map +1 -0
- package/chunks/{bundle-cXqs96Pt.js → bundle-NQlEMhhs.js} +1 -1
- package/chunks/bundle-NQlEMhhs.js.map +1 -0
- package/chunks/bundle-NeB2uoNn.js +34 -0
- package/chunks/bundle-NeB2uoNn.js.map +1 -0
- package/chunks/bundle-NxSCk3As.js +23 -0
- package/chunks/bundle-NxSCk3As.js.map +1 -0
- package/chunks/bundle-QOv6Bgtw.js +179 -0
- package/{cjs/chunks/bundle-XaLiuh0L.js.map → chunks/bundle-QOv6Bgtw.js.map} +1 -1
- package/chunks/{bundle-VCZsMdpB.js → bundle-QaBTXAtO.js} +2 -2
- package/chunks/{bundle-VCZsMdpB.js.map → bundle-QaBTXAtO.js.map} +1 -1
- package/chunks/{bundle-Kv4GXRTs.js → bundle-Rq3p335Q.js} +1 -1
- package/chunks/bundle-Rq3p335Q.js.map +1 -0
- package/chunks/{bundle-KmauOTrg.js → bundle-SbHFlBY0.js} +1 -1
- package/chunks/bundle-SbHFlBY0.js.map +1 -0
- package/chunks/{bundle-yur9nm4N.js → bundle-T9LQyh_7.js} +1 -1
- package/chunks/bundle-T9LQyh_7.js.map +1 -0
- package/chunks/bundle-W8as0zrL.js +197 -0
- package/chunks/bundle-W8as0zrL.js.map +1 -0
- package/chunks/{bundle-zpSxKsxM.js → bundle-WK57RaQR.js} +2 -2
- package/chunks/bundle-WK57RaQR.js.map +1 -0
- package/chunks/{bundle-iYCB6XN2.js → bundle-WdOdwp-Y.js} +1 -1
- package/chunks/bundle-WdOdwp-Y.js.map +1 -0
- package/chunks/{bundle-f9mkey82.js → bundle-ZcOjo_4l.js} +2 -4
- package/chunks/bundle-ZcOjo_4l.js.map +1 -0
- package/chunks/bundle-aaseqnuB.js +44 -0
- package/chunks/bundle-aaseqnuB.js.map +1 -0
- package/chunks/{bundle-ipC2A4Tb.js → bundle-areDE3aT.js} +151 -29
- package/{cjs/chunks/bundle-Jcrboe06.js.map → chunks/bundle-areDE3aT.js.map} +1 -1
- package/chunks/bundle-b1IOVyYG.js +389 -0
- package/chunks/bundle-b1IOVyYG.js.map +1 -0
- package/chunks/{bundle-TV4-nyqN.js → bundle-b6xyPdyj.js} +1 -1
- package/chunks/{bundle-TV4-nyqN.js.map → bundle-b6xyPdyj.js.map} +1 -1
- package/chunks/{bundle-DeRyZP32.js → bundle-bTljiK8B.js} +10 -10
- package/chunks/{bundle-DeRyZP32.js.map → bundle-bTljiK8B.js.map} +1 -1
- package/chunks/bundle-byix4-_Z.js +30 -0
- package/chunks/bundle-byix4-_Z.js.map +1 -0
- package/chunks/{bundle-Gkl7Q1IK.js → bundle-dVzhcuE8.js} +29 -13
- package/chunks/bundle-dVzhcuE8.js.map +1 -0
- package/chunks/{bundle-J_erGfOo.js → bundle-eHUDbnaD.js} +42 -30
- package/chunks/bundle-eHUDbnaD.js.map +1 -0
- package/chunks/{bundle-wUwB6Q8m.js → bundle-f6-Dp_Ka.js} +3 -3
- package/chunks/{bundle-wUwB6Q8m.js.map → bundle-f6-Dp_Ka.js.map} +1 -1
- package/chunks/{bundle-GKopZh-T.js → bundle-fgwje9pW.js} +14 -2
- package/chunks/{bundle-ldRkCosA.js.map → bundle-fgwje9pW.js.map} +1 -1
- package/chunks/{bundle-HkbweK1K.js → bundle-fsBmcKjs.js} +1 -1
- package/chunks/bundle-fsBmcKjs.js.map +1 -0
- package/chunks/{bundle-y_LgB6DS.js → bundle-hOV701rb.js} +3 -3
- package/chunks/bundle-hOV701rb.js.map +1 -0
- package/chunks/{bundle-OZZH5fXZ.js → bundle-j8bOxoFa.js} +1 -1
- package/chunks/bundle-j8bOxoFa.js.map +1 -0
- package/chunks/{bundle-W8t7rR3H.js → bundle-jXtqc1kU.js} +3 -3
- package/chunks/bundle-jXtqc1kU.js.map +1 -0
- package/chunks/{bundle-lmXvuxOb.js → bundle-kTQOM0SQ.js} +1 -1
- package/chunks/bundle-kTQOM0SQ.js.map +1 -0
- package/chunks/{bundle-dWJnfDPH.js → bundle-kVopRZZG.js} +3 -3
- package/chunks/bundle-kVopRZZG.js.map +1 -0
- package/chunks/bundle-l3_ubbH6.js +88 -0
- package/chunks/bundle-l3_ubbH6.js.map +1 -0
- package/chunks/{bundle-ldRkCosA.js → bundle-lxPqhWGY.js} +4 -4
- package/chunks/{bundle-Fkv6nKcy.js.map → bundle-lxPqhWGY.js.map} +1 -1
- package/chunks/{bundle-kfNTRju0.js → bundle-n9wVwJwL.js} +1 -1
- package/chunks/{bundle-kfNTRju0.js.map → bundle-n9wVwJwL.js.map} +1 -1
- package/chunks/{bundle-pWIkt9Ng.js → bundle-nA9SX_Hi.js} +1 -1
- package/chunks/bundle-nA9SX_Hi.js.map +1 -0
- package/chunks/bundle-o1VHRKp9.js +148 -0
- package/chunks/bundle-o1VHRKp9.js.map +1 -0
- package/chunks/{bundle-YmIrZYPF.js → bundle-oRyfuopS.js} +1 -1
- package/chunks/{bundle-YmIrZYPF.js.map → bundle-oRyfuopS.js.map} +1 -1
- package/chunks/bundle-oszCig8K.js +27 -0
- package/chunks/bundle-oszCig8K.js.map +1 -0
- package/chunks/{bundle-ku6CEjGk.js → bundle-pfcIdF14.js} +1 -1
- package/chunks/bundle-pfcIdF14.js.map +1 -0
- package/chunks/bundle-qGLQQXlH.js +281 -0
- package/chunks/{bundle-MzSKVbUQ.js.map → bundle-qGLQQXlH.js.map} +1 -1
- package/chunks/{bundle-cHbX4Rxo.js → bundle-qLmDwx8F.js} +5 -40
- package/{cjs/chunks/bundle-JVe1J2FX.js.map → chunks/bundle-qLmDwx8F.js.map} +1 -1
- package/chunks/{bundle-ETZY-eQc.js → bundle-qXA8wWBC.js} +5 -5
- package/chunks/bundle-qXA8wWBC.js.map +1 -0
- package/chunks/{bundle-Jp5g4YZl.js → bundle-qvDlYEM_.js} +1 -1
- package/chunks/bundle-qvDlYEM_.js.map +1 -0
- package/chunks/{bundle-MzSKVbUQ.js → bundle-rCo3Zf4a.js} +96 -59
- package/chunks/bundle-rCo3Zf4a.js.map +1 -0
- package/chunks/{bundle-MyYphU00.js → bundle-rgUMi-vG.js} +8 -8
- package/chunks/bundle-rgUMi-vG.js.map +1 -0
- package/chunks/{bundle-niN5G0Bo.js → bundle-s-yWiXW2.js} +2 -2
- package/chunks/bundle-s-yWiXW2.js.map +1 -0
- package/chunks/{bundle-WpHDilD_.js → bundle-tOpyp2TM.js} +2 -3
- package/chunks/bundle-tOpyp2TM.js.map +1 -0
- package/chunks/{bundle-aVVX2zHR.js → bundle-thvveea5.js} +3 -3
- package/chunks/bundle-thvveea5.js.map +1 -0
- package/chunks/{bundle-1WAo3loP.js → bundle-ueo2Sf-L.js} +1 -1
- package/chunks/bundle-ueo2Sf-L.js.map +1 -0
- package/chunks/bundle-vBXnDJn4.js +120 -0
- package/chunks/bundle-vBXnDJn4.js.map +1 -0
- package/chunks/{bundle-ZcE3JzW_.js → bundle-wBOLbuH7.js} +9 -8
- package/chunks/bundle-wBOLbuH7.js.map +1 -0
- package/chunks/{bundle-NYZlEPQ4.js → bundle-wsahaI_Z.js} +11 -29
- package/{cjs/chunks/bundle-3K153hLM.js.map → chunks/bundle-wsahaI_Z.js.map} +1 -1
- package/chunks/{bundle-tca5p7Pl.js → bundle-x1NoGtpJ.js} +2 -2
- package/chunks/bundle-x1NoGtpJ.js.map +1 -0
- package/chunks/bundle-xkOWTTW1.js +13 -0
- package/chunks/bundle-xkOWTTW1.js.map +1 -0
- package/chunks/{bundle-WDOQg3ty.js → bundle-yE5T9BpV.js} +39 -39
- package/chunks/{bundle-WDOQg3ty.js.map → bundle-yE5T9BpV.js.map} +1 -1
- package/chunks/{bundle-d6R6m9-9.js → bundle-zJNJlM2H.js} +14 -8
- package/{cjs/chunks/bundle-s82XYT1Q.js.map → chunks/bundle-zJNJlM2H.js.map} +1 -1
- package/chunks/{bundle-H2Il__gY.js → bundle-zLlQw-jW.js} +1 -1
- package/chunks/bundle-zLlQw-jW.js.map +1 -0
- package/chunks/{bundle-ZKM9Qk_j.js → bundle-zpdae5WH.js} +2 -2
- package/chunks/bundle-zpdae5WH.js.map +1 -0
- package/chunks/bundle-zuRObww2.js +48 -0
- package/chunks/bundle-zuRObww2.js.map +1 -0
- package/cjs/App.js +368 -189
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +40 -59
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +80 -109
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +38 -80
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +9 -13
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +64 -314
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageFeedbackModal.js +9 -9
- package/cjs/Channel/components/MessageInput.js +71 -189
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +64 -58
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +33 -42
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +39 -190
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +12 -83
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +12 -30
- package/cjs/Channel/components/UnreadCount.js.map +1 -1
- package/cjs/Channel/context.js +1500 -23
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -8
- package/cjs/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/cjs/Channel/utils/compareMessagesForGrouping.js +45 -9
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/cjs/Channel/utils/getMessagePartsInfo.js +9 -9
- package/cjs/Channel.js +78 -74
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +31 -46
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +13 -35
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +63 -133
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +44 -124
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +19 -62
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +10 -9
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +58 -59
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +25 -19
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +23 -17
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +22 -16
- package/cjs/ChannelSettings/components/UserPanel.js.map +1 -1
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +25 -19
- package/cjs/ChannelSettings.js.map +1 -1
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/InviteUsers.js +23 -25
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +18 -19
- package/cjs/CreateChannel.js.map +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -12
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -13
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile.js +12 -13
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/Message/hooks/useDirtyGetMentions.js +2 -2
- package/cjs/MessageSearch/components/MessageSearchUI.js +14 -15
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +14 -3
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +14 -15
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -19
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +25 -26
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +41 -39
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +40 -38
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +17 -18
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +40 -38
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -15
- package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -7
- package/cjs/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -15
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +19 -19
- package/cjs/SendbirdProvider.js +95 -234
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +45 -46
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +38 -36
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +50 -50
- package/cjs/Thread/components/ThreadListItem.js +54 -55
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +52 -45
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +60 -52
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +151 -160
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +61 -53
- package/cjs/Thread.js.map +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
- package/cjs/VoiceRecorder/context.js +12 -11
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/cjs/chunks/{bundle-65IwoStx.js → bundle--RWWGoZo.js} +1 -1
- package/cjs/chunks/{bundle-65IwoStx.js.map → bundle--RWWGoZo.js.map} +1 -1
- package/cjs/chunks/{bundle-UaSM_xZY.js → bundle-1n4GnjYf.js} +1 -1
- package/cjs/chunks/bundle-1n4GnjYf.js.map +1 -0
- package/cjs/chunks/{bundle-TxdziCwH.js → bundle-28M_gXGl.js} +4 -4
- package/cjs/chunks/bundle-28M_gXGl.js.map +1 -0
- package/cjs/chunks/{bundle-WzrocC57.js → bundle-2ToiwW-_.js} +1 -1
- package/cjs/chunks/bundle-2ToiwW-_.js.map +1 -0
- package/cjs/chunks/{bundle-68NdNRjR.js → bundle-3GWdY_5G.js} +10 -10
- package/cjs/chunks/bundle-3GWdY_5G.js.map +1 -0
- package/cjs/chunks/{bundle-7AS0Rcch.js → bundle-3S8jBmCV.js} +1 -1
- package/cjs/chunks/bundle-3S8jBmCV.js.map +1 -0
- package/cjs/chunks/{bundle-s82XYT1Q.js → bundle-3VBtozeG.js} +14 -8
- package/{chunks/bundle-J_erGfOo.js.map → cjs/chunks/bundle-3VBtozeG.js.map} +1 -1
- package/cjs/chunks/{bundle-BH9aeaqG.js → bundle-4OXJViEd.js} +2 -2
- package/cjs/chunks/bundle-4OXJViEd.js.map +1 -0
- package/cjs/chunks/{bundle-dny_TiUT.js → bundle-4RwXAyc6.js} +2 -2
- package/cjs/chunks/bundle-4RwXAyc6.js.map +1 -0
- package/cjs/chunks/bundle-4hsD0CCh.js +25 -0
- package/cjs/chunks/bundle-4hsD0CCh.js.map +1 -0
- package/cjs/chunks/bundle-5cpSg7Yt.js +30 -0
- package/cjs/chunks/bundle-5cpSg7Yt.js.map +1 -0
- package/cjs/chunks/{bundle-VB_a0u7i.js → bundle-60IjeSgc.js} +1 -1
- package/cjs/chunks/bundle-60IjeSgc.js.map +1 -0
- package/cjs/chunks/{bundle-OVfymd1y.js → bundle-7IKA03Ad.js} +1 -1
- package/cjs/chunks/bundle-7IKA03Ad.js.map +1 -0
- package/cjs/chunks/{bundle-6ZegaDWX.js → bundle-7sO7MuTY.js} +39 -39
- package/cjs/chunks/{bundle-6ZegaDWX.js.map → bundle-7sO7MuTY.js.map} +1 -1
- package/cjs/chunks/{bundle-5Nd6zn0d.js → bundle-7zgRAH2f.js} +3 -3
- package/cjs/chunks/bundle-7zgRAH2f.js.map +1 -0
- package/cjs/chunks/bundle-85DGianx.js +553 -0
- package/cjs/chunks/bundle-85DGianx.js.map +1 -0
- package/cjs/chunks/{bundle-ptZslG_m.js → bundle-8XyvQRnm.js} +7 -7
- package/cjs/chunks/bundle-8XyvQRnm.js.map +1 -0
- package/cjs/chunks/{bundle-Jcrboe06.js → bundle-9ZxGYXTj.js} +150 -28
- package/{chunks/bundle-ipC2A4Tb.js.map → cjs/chunks/bundle-9ZxGYXTj.js.map} +1 -1
- package/cjs/chunks/bundle-9fFxVdSK.js +51 -0
- package/cjs/chunks/bundle-9fFxVdSK.js.map +1 -0
- package/cjs/chunks/{bundle-r8Z3GYqh.js → bundle-BRRuC2D3.js} +9 -8
- package/cjs/chunks/bundle-BRRuC2D3.js.map +1 -0
- package/cjs/chunks/bundle-Bx0FCMKL.js +153 -0
- package/cjs/chunks/bundle-Bx0FCMKL.js.map +1 -0
- package/cjs/chunks/bundle-C42WLw1z.js +40 -0
- package/cjs/chunks/bundle-C42WLw1z.js.map +1 -0
- package/cjs/chunks/bundle-GRS8tlu-.js +15 -0
- package/cjs/chunks/bundle-GRS8tlu-.js.map +1 -0
- package/cjs/chunks/{bundle-B5gH_etT.js → bundle-HbkwcKgM.js} +10 -10
- package/cjs/chunks/bundle-HbkwcKgM.js.map +1 -0
- package/cjs/chunks/{bundle-9iE0HY96.js → bundle-JReI_QbA.js} +29 -13
- package/cjs/chunks/bundle-JReI_QbA.js.map +1 -0
- package/cjs/chunks/{bundle-aoIToceJ.js → bundle-JVylXDBB.js} +3 -3
- package/cjs/chunks/bundle-JVylXDBB.js.map +1 -0
- package/cjs/chunks/{bundle-7J3nX_hP.js → bundle-JaD2Ao-u.js} +3 -3
- package/cjs/chunks/bundle-JaD2Ao-u.js.map +1 -0
- package/cjs/chunks/bundle-JwSYMgZa.js +284 -0
- package/cjs/chunks/bundle-JwSYMgZa.js.map +1 -0
- package/cjs/chunks/{bundle-135pRm7i.js → bundle-K8ngPNTR.js} +1 -1
- package/cjs/chunks/bundle-K8ngPNTR.js.map +1 -0
- package/cjs/chunks/{bundle-2gCdAlxv.js → bundle-KUtVpakA.js} +2 -2
- package/cjs/chunks/{bundle-2gCdAlxv.js.map → bundle-KUtVpakA.js.map} +1 -1
- package/cjs/chunks/{bundle-zgoic8x9.js → bundle-L5q_NWiq.js} +1 -1
- package/cjs/chunks/bundle-L5q_NWiq.js.map +1 -0
- package/cjs/chunks/{bundle-GsUulypb.js → bundle-L9oXX97B.js} +1 -1
- package/cjs/chunks/bundle-L9oXX97B.js.map +1 -0
- package/cjs/chunks/bundle-LmzJA_0-.js +47 -0
- package/cjs/chunks/bundle-LmzJA_0-.js.map +1 -0
- package/cjs/chunks/bundle-Mq0jUvZk.js +32 -0
- package/cjs/chunks/bundle-Mq0jUvZk.js.map +1 -0
- package/cjs/chunks/{bundle-kSScygqj.js → bundle-OBj337Le.js} +1 -1
- package/cjs/chunks/bundle-OBj337Le.js.map +1 -0
- package/cjs/chunks/{bundle-7J-qpEzM.js → bundle-Og0K_sLb.js} +1 -1
- package/cjs/chunks/bundle-Og0K_sLb.js.map +1 -0
- package/cjs/chunks/{bundle-tad4_cNF.js → bundle-Oti8UWhr.js} +5 -48
- package/cjs/chunks/bundle-Oti8UWhr.js.map +1 -0
- package/cjs/chunks/{bundle-y8EiLlDT.js → bundle-QCo3MNRk.js} +2 -2
- package/cjs/chunks/bundle-QCo3MNRk.js.map +1 -0
- package/cjs/chunks/{bundle-mnbFX6XC.js → bundle-R3zWrV0l.js} +11 -41
- package/cjs/chunks/{bundle-mnbFX6XC.js.map → bundle-R3zWrV0l.js.map} +1 -1
- package/cjs/chunks/{bundle-hEYmMlZe.js → bundle-RC4m8KcZ.js} +5 -5
- package/{chunks/bundle-cHbX4Rxo.js.map → cjs/chunks/bundle-RC4m8KcZ.js.map} +1 -1
- package/cjs/chunks/{bundle-J_ooPKgS.js → bundle-RPY1irFl.js} +3 -3
- package/cjs/chunks/{bundle-J_ooPKgS.js.map → bundle-RPY1irFl.js.map} +1 -1
- package/cjs/chunks/{bundle-bXLZZTmP.js → bundle-RVs527mS.js} +14 -1
- package/cjs/chunks/bundle-RVs527mS.js.map +1 -0
- package/cjs/chunks/{bundle-JbxviE94.js → bundle-SggLEV_z.js} +1 -1
- package/cjs/chunks/bundle-SggLEV_z.js.map +1 -0
- package/cjs/chunks/{bundle-7QMU-JU1.js → bundle-UjIQqVUq.js} +2 -2
- package/cjs/chunks/bundle-UjIQqVUq.js.map +1 -0
- package/cjs/chunks/bundle-W1vXanLo.js +392 -0
- package/cjs/chunks/bundle-W1vXanLo.js.map +1 -0
- package/cjs/chunks/{bundle-qtXdbPNE.js → bundle-WLD9KKbn.js} +3 -3
- package/cjs/chunks/bundle-WLD9KKbn.js.map +1 -0
- package/cjs/chunks/bundle-WuJcM_O3.js +183 -0
- package/{chunks/bundle-ucXG1Py7.js.map → cjs/chunks/bundle-WuJcM_O3.js.map} +1 -1
- package/cjs/chunks/{bundle-GDX6wyym.js → bundle-XNa54U87.js} +95 -58
- package/cjs/chunks/bundle-XNa54U87.js.map +1 -0
- package/cjs/chunks/bundle-YyXY-feT.js +32 -0
- package/cjs/chunks/bundle-YyXY-feT.js.map +1 -0
- package/cjs/chunks/{bundle-Dz3ncvS3.js → bundle-Z-IXQ2N3.js} +4 -4
- package/{chunks/bundle-F3QT9IFj.js.map → cjs/chunks/bundle-Z-IXQ2N3.js.map} +1 -1
- package/cjs/chunks/{bundle-CUa6Hz7c.js → bundle-Z2aMvN9Y.js} +6 -6
- package/cjs/chunks/bundle-Z2aMvN9Y.js.map +1 -0
- package/cjs/chunks/{bundle-RSklGv-u.js → bundle-ZL4COF6I.js} +1 -1
- package/cjs/chunks/{bundle-RSklGv-u.js.map → bundle-ZL4COF6I.js.map} +1 -1
- package/cjs/chunks/{bundle-Dax6YIIr.js → bundle-ZqkDqz4X.js} +1 -1
- package/cjs/chunks/bundle-ZqkDqz4X.js.map +1 -0
- package/cjs/chunks/{bundle-n6iwTZAo.js → bundle-_QsPNZ6J.js} +1 -1
- package/cjs/chunks/bundle-_QsPNZ6J.js.map +1 -0
- package/cjs/chunks/bundle-_TBSquwd.js +60 -0
- package/cjs/chunks/bundle-_TBSquwd.js.map +1 -0
- package/cjs/chunks/{bundle-rgxTgHrK.js → bundle-_apVcG-_.js} +42 -30
- package/cjs/chunks/bundle-_apVcG-_.js.map +1 -0
- package/cjs/chunks/{bundle-XaLiuh0L.js → bundle-a1nOrOrG.js} +2 -28
- package/{chunks/bundle-Gkl7Q1IK.js.map → cjs/chunks/bundle-a1nOrOrG.js.map} +1 -1
- package/cjs/chunks/{bundle-v02q7K8T.js → bundle-aAOHT0Qv.js} +3 -3
- package/cjs/chunks/bundle-aAOHT0Qv.js.map +1 -0
- package/cjs/chunks/{bundle-hXzxY0NJ.js → bundle-dLwo2XPj.js} +1 -1
- package/cjs/chunks/bundle-dLwo2XPj.js.map +1 -0
- package/cjs/chunks/{bundle--MJd6Gw1.js → bundle-duGLRUrw.js} +1 -1
- package/cjs/chunks/bundle-duGLRUrw.js.map +1 -0
- package/cjs/chunks/{bundle-p6kWiWDv.js → bundle-fnv2bNo-.js} +14 -7
- package/cjs/chunks/{bundle-p6kWiWDv.js.map → bundle-fnv2bNo-.js.map} +1 -1
- package/cjs/chunks/bundle-fvz26Ije.js +31 -0
- package/cjs/chunks/bundle-fvz26Ije.js.map +1 -0
- package/cjs/chunks/bundle-g2rKMwnQ.js +123 -0
- package/cjs/chunks/bundle-g2rKMwnQ.js.map +1 -0
- package/cjs/chunks/bundle-guyZxs5x.js +91 -0
- package/cjs/chunks/bundle-guyZxs5x.js.map +1 -0
- package/cjs/chunks/{bundle-3K153hLM.js → bundle-iRjY_BU4.js} +4 -40
- package/cjs/chunks/bundle-iRjY_BU4.js.map +1 -0
- package/cjs/chunks/{bundle-VogwjxgI.js → bundle-iamCM7iG.js} +3 -3
- package/cjs/chunks/{bundle-VogwjxgI.js.map → bundle-iamCM7iG.js.map} +1 -1
- package/cjs/chunks/{bundle-vphYV1gz.js → bundle-lXjDRYAu.js} +1 -1
- package/cjs/chunks/bundle-lXjDRYAu.js.map +1 -0
- package/cjs/chunks/{bundle-AbGazomk.js → bundle-le086Dbq.js} +17 -35
- package/cjs/chunks/bundle-le086Dbq.js.map +1 -0
- package/cjs/chunks/{bundle-Oc2T5_VP.js → bundle-lnLwvZ7H.js} +6 -6
- package/cjs/chunks/bundle-lnLwvZ7H.js.map +1 -0
- package/cjs/chunks/{bundle-LRCFL23q.js → bundle-nQDclaWr.js} +1 -3
- package/cjs/chunks/bundle-nQDclaWr.js.map +1 -0
- package/cjs/chunks/bundle-nTv23k8q.js +64 -0
- package/cjs/chunks/bundle-nTv23k8q.js.map +1 -0
- package/cjs/chunks/bundle-oTDe-k6e.js +255 -0
- package/cjs/chunks/bundle-oTDe-k6e.js.map +1 -0
- package/cjs/chunks/bundle-p7twnCCD.js +37 -0
- package/cjs/chunks/bundle-p7twnCCD.js.map +1 -0
- package/cjs/chunks/bundle-plE_NeWt.js +204 -0
- package/cjs/chunks/bundle-plE_NeWt.js.map +1 -0
- package/cjs/chunks/{bundle-JOBLCwk9.js → bundle-rPjvPmtP.js} +1 -1
- package/cjs/chunks/bundle-rPjvPmtP.js.map +1 -0
- package/cjs/chunks/{bundle-7VJjqIPJ.js → bundle-rUpy0DGt.js} +4 -5
- package/cjs/chunks/bundle-rUpy0DGt.js.map +1 -0
- package/cjs/chunks/{bundle-TFo3Eb8z.js → bundle-rmOQxjwa.js} +3 -3
- package/cjs/chunks/bundle-rmOQxjwa.js.map +1 -0
- package/cjs/chunks/{bundle-INJtS58R.js → bundle-sW6CpN9W.js} +1 -1
- package/cjs/chunks/bundle-sW6CpN9W.js.map +1 -0
- package/cjs/chunks/bundle-v2kRYowu.js +14 -0
- package/cjs/chunks/bundle-v2kRYowu.js.map +1 -0
- package/cjs/chunks/bundle-vFjv8pGX.js +202 -0
- package/cjs/chunks/bundle-vFjv8pGX.js.map +1 -0
- package/cjs/chunks/bundle-w4VdLYPs.js +13 -0
- package/cjs/chunks/bundle-w4VdLYPs.js.map +1 -0
- package/cjs/chunks/bundle-wQUBcS0L.js +36 -0
- package/cjs/chunks/bundle-wQUBcS0L.js.map +1 -0
- package/cjs/chunks/{bundle--d5w7FVF.js → bundle-wU4qxzey.js} +1 -1
- package/cjs/chunks/bundle-wU4qxzey.js.map +1 -0
- package/cjs/chunks/{bundle-zrsbDQGp.js → bundle-yf5herNq.js} +1 -5
- package/cjs/chunks/bundle-yf5herNq.js.map +1 -0
- package/cjs/chunks/{bundle-1dUHK2qC.js → bundle-z2YN8uJe.js} +1 -1
- package/cjs/chunks/bundle-z2YN8uJe.js.map +1 -0
- package/cjs/chunks/bundle-ziLsN5lV.js +67 -0
- package/cjs/chunks/bundle-ziLsN5lV.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +136 -126
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -5
- 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 +6 -7
- package/cjs/ui/ChannelAvatar.js.map +1 -1
- 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 +31 -22
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +8 -8
- package/cjs/ui/FileViewer.js +15 -16
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +96 -69
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/MentionLabel.js +13 -13
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +41 -46
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
- package/cjs/ui/MessageInput.js +19 -19
- package/cjs/ui/MessageItemMenu.js +12 -29
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +15 -12
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +14 -15
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +11 -12
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/MobileFeedbackMenu.js +9 -9
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +16 -16
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -9
- package/cjs/ui/OpenChannelAvatar.js.map +1 -1
- package/cjs/ui/OpenchannelConversationHeader.js +8 -9
- package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
- 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 +16 -16
- package/cjs/ui/ThreadReplies.js +9 -10
- package/cjs/ui/ThreadReplies.js.map +1 -1
- package/cjs/ui/ThumbnailMessageItemBody.js +11 -8
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/TypingIndicatorBubble.js +4 -5
- package/cjs/ui/TypingIndicatorBubble.js.map +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +10 -11
- package/cjs/ui/UserProfile.js.map +1 -1
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/Word.js +13 -13
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +2973 -2899
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +136 -126
- package/index.js.map +1 -1
- package/package.json +11 -11
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/hooks/VoicePlayer/dux/actionTypes.d.ts +2 -0
- package/types/hooks/VoicePlayer/dux/reducer.d.ts +2 -0
- package/types/hooks/useOnScrollReachedEndDetector/index.d.ts +10 -5
- package/types/hooks/useThrottleCallback.d.ts +11 -1
- package/types/lib/UserProfileContext.d.ts +1 -1
- package/types/lib/emojiManager.d.ts +29 -0
- package/types/lib/pubSub/topics.d.ts +5 -5
- package/types/lib/selectors.d.ts +2 -2
- package/types/lib/types.d.ts +7 -1
- package/types/modules/App/index.d.ts +5 -0
- package/types/modules/App/types.d.ts +1 -0
- package/types/modules/Channel/components/ChannelHeader/index.d.ts +2 -3
- package/types/modules/Channel/components/ChannelUI/index.d.ts +5 -4
- package/types/modules/Channel/components/FileViewer/index.d.ts +3 -16
- package/types/modules/Channel/components/FrozenNotification/index.d.ts +1 -6
- package/types/modules/Channel/components/Message/index.d.ts +2 -14
- package/types/modules/Channel/components/MessageInputWrapper/index.d.ts +11 -0
- package/types/modules/Channel/components/MessageList/index.d.ts +2 -2
- package/types/modules/Channel/components/RemoveMessageModal/index.d.ts +4 -0
- package/types/modules/Channel/components/SuggestedMentionList/index.d.ts +3 -18
- package/types/modules/Channel/components/TypingIndicator.d.ts +1 -7
- package/types/modules/Channel/components/UnreadCount/index.d.ts +1 -11
- package/types/modules/Channel/context/ChannelProvider.d.ts +9 -9
- package/types/modules/Channel/context/hooks/useDeleteMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useFileInfoListWithUploaded.d.ts +3 -0
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +23 -0
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +3 -3
- package/types/modules/Channel/context/utils.d.ts +0 -1
- package/types/modules/Channel/index.d.ts +1 -1
- package/types/modules/ChannelList/components/AddChannel/index.d.ts +1 -1
- package/types/modules/ChannelList/components/ChannelListHeader/index.d.ts +1 -10
- package/types/modules/ChannelList/components/ChannelListUI/index.d.ts +1 -3
- package/types/modules/ChannelList/components/ChannelPreview/utils.d.ts +1 -10
- package/types/modules/ChannelList/components/LeaveChannel/index.d.ts +1 -8
- package/types/modules/ChannelList/context/ChannelListProvider.d.ts +9 -8
- package/types/modules/ChannelList/dux/actionTypes.d.ts +5 -0
- package/types/modules/ChannelList/utils.d.ts +6 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/InviteUsersModal.d.ts +4 -3
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +45 -7
- package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +22 -0
- package/types/modules/GroupChannel/components/FileViewer/index.d.ts +8 -0
- package/types/modules/GroupChannel/components/FrozenNotification/index.d.ts +7 -0
- package/types/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.d.ts +13 -0
- package/types/modules/GroupChannel/components/GroupChannelHeader/index.d.ts +6 -0
- package/types/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.d.ts +10 -0
- package/types/modules/GroupChannel/components/GroupChannelUI/index.d.ts +24 -0
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +64 -0
- package/types/modules/GroupChannel/components/Message/index.d.ts +4 -0
- package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +30 -0
- package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/index.d.ts +4 -6
- package/types/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.d.ts +18 -0
- package/types/modules/GroupChannel/components/MessageList/hooks/useScrollBehavior.d.ts +1 -0
- package/types/modules/GroupChannel/components/MessageList/index.d.ts +15 -0
- package/types/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.d.ts +13 -0
- package/types/modules/GroupChannel/components/RemoveMessageModal/index.d.ts +4 -0
- package/types/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.d.ts +22 -0
- package/types/modules/GroupChannel/components/SuggestedMentionList/index.d.ts +5 -0
- package/types/modules/GroupChannel/components/TypingIndicator.d.ts +11 -0
- package/types/modules/GroupChannel/components/UnreadCount/index.d.ts +12 -0
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +74 -0
- package/types/modules/GroupChannel/context/const.d.ts +7 -0
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +23 -0
- package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +26 -0
- package/types/modules/GroupChannel/context/hooks/usePreventDuplicateRequest.d.ts +9 -0
- package/types/modules/GroupChannel/context/hooks/useToggleReactionCallback.d.ts +4 -0
- package/types/modules/GroupChannel/context/utils.d.ts +8 -0
- package/types/modules/GroupChannel/index.d.ts +7 -0
- package/types/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.d.ts +11 -0
- package/types/modules/GroupChannelList/components/AddGroupChannel/index.d.ts +3 -0
- package/types/modules/GroupChannelList/components/GroupChannelListHeader/index.d.ts +10 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/index.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/utils.d.ts +10 -0
- package/types/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.d.ts +21 -0
- package/types/modules/GroupChannelList/components/GroupChannelListUI/index.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelPreviewAction.d.ts +9 -0
- package/types/modules/GroupChannelList/components/LeaveGroupChannel/index.d.ts +9 -0
- package/types/modules/GroupChannelList/context/GroupChannelListProvider.d.ts +40 -0
- package/types/modules/GroupChannelList/index.d.ts +7 -0
- package/types/modules/OpenChannel/context/utils.d.ts +1 -3
- package/types/modules/Thread/components/SuggestedMentionList.d.ts +5 -0
- package/types/modules/Thread/components/ThreadList/index.d.ts +1 -1
- package/types/modules/Thread/context/ThreadProvider.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +21 -0
- package/types/modules/Thread/context/utils.d.ts +0 -2
- package/types/modules/Thread/index.d.ts +1 -1
- package/types/types.d.ts +11 -3
- package/types/ui/FileViewer/index.d.ts +2 -2
- package/types/ui/ImageRenderer/index.d.ts +1 -3
- package/types/ui/MessageContent/index.d.ts +1 -1
- package/types/ui/MessageItemMenu/index.d.ts +2 -1
- package/types/ui/MobileMenu/types.d.ts +1 -1
- package/types/ui/MultipleFilesMessageItemBody/index.d.ts +2 -2
- package/types/utils/index.d.ts +9 -2
- package/types/utils/messages.d.ts +17 -0
- package/types/utils/typeHelpers/partialRequired.d.ts +1 -0
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -5
- 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 +6 -7
- package/ui/ChannelAvatar.js.map +1 -1
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +31 -22
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +15 -16
- package/ui/FileViewer.js.map +1 -1
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +97 -70
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +2 -2
- package/ui/MentionLabel.js +13 -13
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +39 -44
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +5 -5
- package/ui/MessageInput.js +19 -19
- package/ui/MessageItemMenu.js +12 -29
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +15 -12
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +14 -15
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +11 -12
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +12 -12
- package/ui/MobileFeedbackMenu.js +9 -9
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +16 -16
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -9
- package/ui/OpenChannelAvatar.js.map +1 -1
- package/ui/OpenchannelConversationHeader.js +8 -9
- package/ui/OpenchannelConversationHeader.js.map +1 -1
- package/ui/OpenchannelFileMessage.js +18 -18
- package/ui/OpenchannelOGMessage.js +20 -20
- package/ui/OpenchannelThumbnailMessage.js +17 -17
- package/ui/OpenchannelUserMessage.js +18 -18
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +3 -3
- package/ui/QuoteMessage.js +9 -9
- package/ui/QuoteMessageInput.js +9 -9
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +9 -10
- package/ui/ThreadReplies.js.map +1 -1
- package/ui/ThumbnailMessageItemBody.js +11 -8
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/TypingIndicatorBubble.js +4 -5
- package/ui/TypingIndicatorBubble.js.map +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +13 -13
- package/ui/UserProfile.js +10 -11
- package/ui/UserProfile.js.map +1 -1
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/Word.js +13 -13
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle-1WAo3loP.js.map +0 -1
- package/chunks/bundle-GbC4a59M.js.map +0 -1
- package/chunks/bundle-H2Il__gY.js.map +0 -1
- package/chunks/bundle-HkbweK1K.js.map +0 -1
- package/chunks/bundle-J79McRkg.js +0 -1551
- package/chunks/bundle-J79McRkg.js.map +0 -1
- package/chunks/bundle-JbVZ1Tsw.js.map +0 -1
- package/chunks/bundle-Jp5g4YZl.js.map +0 -1
- package/chunks/bundle-KSjFhl4l.js.map +0 -1
- package/chunks/bundle-KmauOTrg.js.map +0 -1
- package/chunks/bundle-Kv4GXRTs.js.map +0 -1
- package/chunks/bundle-Lt8mReNU.js.map +0 -1
- package/chunks/bundle-MyYphU00.js.map +0 -1
- package/chunks/bundle-OZZH5fXZ.js.map +0 -1
- package/chunks/bundle-VPanFdbf.js.map +0 -1
- package/chunks/bundle-W8t7rR3H.js.map +0 -1
- package/chunks/bundle-WpHDilD_.js.map +0 -1
- package/chunks/bundle-X3h4GiLa.js.map +0 -1
- package/chunks/bundle-ZKM9Qk_j.js.map +0 -1
- package/chunks/bundle-ZcE3JzW_.js.map +0 -1
- package/chunks/bundle-_-2NCsYr.js.map +0 -1
- package/chunks/bundle-aVVX2zHR.js.map +0 -1
- package/chunks/bundle-aeQZ5WsP.js.map +0 -1
- package/chunks/bundle-cXqs96Pt.js.map +0 -1
- package/chunks/bundle-d6R6m9-9.js.map +0 -1
- package/chunks/bundle-dWJnfDPH.js.map +0 -1
- package/chunks/bundle-f9mkey82.js.map +0 -1
- package/chunks/bundle-gEwUSFTG.js +0 -134
- package/chunks/bundle-gEwUSFTG.js.map +0 -1
- package/chunks/bundle-iYCB6XN2.js.map +0 -1
- package/chunks/bundle-ku6CEjGk.js.map +0 -1
- package/chunks/bundle-lmXvuxOb.js.map +0 -1
- package/chunks/bundle-mTQPBbmZ.js.map +0 -1
- package/chunks/bundle-niN5G0Bo.js.map +0 -1
- package/chunks/bundle-pWIkt9Ng.js.map +0 -1
- package/chunks/bundle-tca5p7Pl.js.map +0 -1
- package/chunks/bundle-ucXG1Py7.js +0 -174
- package/chunks/bundle-xgiw36M5.js.map +0 -1
- package/chunks/bundle-xsV7pD8p.js.map +0 -1
- package/chunks/bundle-y_LgB6DS.js.map +0 -1
- package/chunks/bundle-yur9nm4N.js.map +0 -1
- package/cjs/chunks/bundle--MJd6Gw1.js.map +0 -1
- package/cjs/chunks/bundle--d5w7FVF.js.map +0 -1
- package/cjs/chunks/bundle-135pRm7i.js.map +0 -1
- package/cjs/chunks/bundle-1dUHK2qC.js.map +0 -1
- package/cjs/chunks/bundle-5Nd6zn0d.js.map +0 -1
- package/cjs/chunks/bundle-68NdNRjR.js.map +0 -1
- package/cjs/chunks/bundle-7AS0Rcch.js.map +0 -1
- package/cjs/chunks/bundle-7J-qpEzM.js.map +0 -1
- package/cjs/chunks/bundle-7J3nX_hP.js.map +0 -1
- package/cjs/chunks/bundle-7QMU-JU1.js.map +0 -1
- package/cjs/chunks/bundle-7VJjqIPJ.js.map +0 -1
- package/cjs/chunks/bundle-9iE0HY96.js.map +0 -1
- package/cjs/chunks/bundle-AbGazomk.js.map +0 -1
- package/cjs/chunks/bundle-B5gH_etT.js.map +0 -1
- package/cjs/chunks/bundle-BH9aeaqG.js.map +0 -1
- package/cjs/chunks/bundle-CUa6Hz7c.js.map +0 -1
- package/cjs/chunks/bundle-Dax6YIIr.js.map +0 -1
- package/cjs/chunks/bundle-Dz3ncvS3.js.map +0 -1
- package/cjs/chunks/bundle-GDX6wyym.js.map +0 -1
- package/cjs/chunks/bundle-GsUulypb.js.map +0 -1
- package/cjs/chunks/bundle-INJtS58R.js.map +0 -1
- package/cjs/chunks/bundle-JOBLCwk9.js.map +0 -1
- package/cjs/chunks/bundle-JVe1J2FX.js +0 -179
- package/cjs/chunks/bundle-JbxviE94.js.map +0 -1
- package/cjs/chunks/bundle-LRCFL23q.js.map +0 -1
- package/cjs/chunks/bundle-OVfymd1y.js.map +0 -1
- package/cjs/chunks/bundle-Oc2T5_VP.js.map +0 -1
- package/cjs/chunks/bundle-TFo3Eb8z.js.map +0 -1
- package/cjs/chunks/bundle-TxdziCwH.js.map +0 -1
- package/cjs/chunks/bundle-UaSM_xZY.js.map +0 -1
- package/cjs/chunks/bundle-Ue5GkT2H.js +0 -1555
- package/cjs/chunks/bundle-Ue5GkT2H.js.map +0 -1
- package/cjs/chunks/bundle-VB_a0u7i.js.map +0 -1
- package/cjs/chunks/bundle-WzrocC57.js.map +0 -1
- package/cjs/chunks/bundle-aoIToceJ.js.map +0 -1
- package/cjs/chunks/bundle-bXLZZTmP.js.map +0 -1
- package/cjs/chunks/bundle-dny_TiUT.js.map +0 -1
- package/cjs/chunks/bundle-hEYmMlZe.js.map +0 -1
- package/cjs/chunks/bundle-hXzxY0NJ.js.map +0 -1
- package/cjs/chunks/bundle-kSScygqj.js.map +0 -1
- package/cjs/chunks/bundle-n6iwTZAo.js.map +0 -1
- package/cjs/chunks/bundle-ptZslG_m.js.map +0 -1
- package/cjs/chunks/bundle-qtXdbPNE.js.map +0 -1
- package/cjs/chunks/bundle-r8Z3GYqh.js.map +0 -1
- package/cjs/chunks/bundle-rgxTgHrK.js.map +0 -1
- package/cjs/chunks/bundle-tad4_cNF.js.map +0 -1
- package/cjs/chunks/bundle-v02q7K8T.js.map +0 -1
- package/cjs/chunks/bundle-vphYV1gz.js.map +0 -1
- package/cjs/chunks/bundle-y8EiLlDT.js.map +0 -1
- package/cjs/chunks/bundle-y_gkwZqM.js +0 -136
- package/cjs/chunks/bundle-y_gkwZqM.js.map +0 -1
- package/cjs/chunks/bundle-zgoic8x9.js.map +0 -1
- package/cjs/chunks/bundle-zrsbDQGp.js.map +0 -1
- package/types/modules/Channel/components/RemoveMessageModal.d.ts +0 -9
- package/types/modules/Channel/context/compareMessagesForGrouping.d.ts +0 -10
- package/types/modules/Channel/context/hooks/useStatefulFileInfoList.d.ts +0 -3
- package/types/modules/Thread/context/hooks/useGetNextThreadsCallback.d.ts +0 -17
- package/types/modules/Thread/context/hooks/useGetPrevThreadsCallback.d.ts +0 -17
- package/types/modules/Thread/context/hooks/useGetThreadList.d.ts +0 -14
- package/types/utils/createStatefulFileInfoList.d.ts +0 -11
- package/types/utils/omitObjectProperty.d.ts +0 -1
- package/types/modules/{Channel/components/ChannelHeader → GroupChannel/components/GroupChannelHeader}/utils.d.ts +0 -0
- package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/VoiceMessageInputWrapper.d.ts +1 -1
- /package/types/modules/{Channel → GroupChannel}/components/MessageList/getMessagePartsInfo.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/SuggestedUserMentionItem.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/utils.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedReplies/index.d.ts +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { _ as __assign, a as __spreadArray, b as __awaiter, c as __generator } from './bundle-
|
|
1
|
+
import { _ as __assign, a as __spreadArray, b as __awaiter, c as __generator } from './bundle-fgwje9pW.js';
|
|
2
2
|
import React__default, { useEffect, useCallback, useReducer, useState, useMemo, useContext } from 'react';
|
|
3
|
-
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
4
|
-
import { p as pubSubTopics } from './bundle-
|
|
5
|
-
import { u as uuidv4 } from './bundle-
|
|
6
|
-
import { n as noop } from './bundle-
|
|
7
|
-
import { D as DELIVERY_RECEIPT$1 } from './bundle-
|
|
8
|
-
import { U as UserProfileProvider } from './bundle-
|
|
3
|
+
import { GroupChannelHandler, GroupChannelListOrder } from '@sendbird/chat/groupChannel';
|
|
4
|
+
import { p as pubSubTopics } from './bundle-pfcIdF14.js';
|
|
5
|
+
import { u as uuidv4 } from './bundle-4IsRvL2E.js';
|
|
6
|
+
import { n as noop } from './bundle-tOpyp2TM.js';
|
|
7
|
+
import { D as DELIVERY_RECEIPT$1 } from './bundle-zpdae5WH.js';
|
|
8
|
+
import { U as UserProfileProvider } from './bundle-NQlEMhhs.js';
|
|
9
9
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
10
|
-
import { K, S } from './bundle-
|
|
11
|
-
import {
|
|
10
|
+
import { K, S } from './bundle-n9wVwJwL.js';
|
|
11
|
+
import { R as filterChannelListParams, T as getChannelsWithUpsertedChannel } from './bundle-GQt7EDbt.js';
|
|
12
|
+
import { u as useReconnectOnIdle } from './bundle-NxSCk3As.js';
|
|
12
13
|
|
|
13
14
|
var RESET_CHANNEL_LIST = 'RESET_CHANNEL_LIST';
|
|
14
15
|
var CREATE_CHANNEL = 'CREATE_CHANNEL';
|
|
@@ -19,6 +20,7 @@ var FETCH_CHANNELS_SUCCESS = 'FETCH_CHANNELS_SUCCESS';
|
|
|
19
20
|
var FETCH_CHANNELS_FAILURE = 'FETCH_CHANNELS_FAILURE';
|
|
20
21
|
var INIT_CHANNELS_START = 'INIT_CHANNELS_START';
|
|
21
22
|
var INIT_CHANNELS_SUCCESS = 'INIT_CHANNELS_SUCCESS';
|
|
23
|
+
var REFRESH_CHANNELS_SUCCESS = 'REFRESH_CHANNELS_SUCCESS';
|
|
22
24
|
var INIT_CHANNELS_FAILURE = 'INIT_CHANNELS_FAILURE';
|
|
23
25
|
var ON_USER_JOINED = 'ON_USER_JOINED';
|
|
24
26
|
var ON_CHANNEL_DELETED = 'ON_CHANNEL_DELETED';
|
|
@@ -138,7 +140,7 @@ var createChannelListQuery = function (_a) {
|
|
|
138
140
|
var params = {
|
|
139
141
|
includeEmpty: false,
|
|
140
142
|
limit: 20,
|
|
141
|
-
order:
|
|
143
|
+
order: GroupChannelListOrder.LATEST_LAST_MESSAGE,
|
|
142
144
|
};
|
|
143
145
|
if (userFilledChannelListQuery) {
|
|
144
146
|
Object.keys(userFilledChannelListQuery).forEach(function (key) {
|
|
@@ -303,10 +305,16 @@ function channelListReducer(state, action) {
|
|
|
303
305
|
var payload = _a.payload;
|
|
304
306
|
return (__assign(__assign({}, state), { loading: true, currentUserId: payload.currentUserId }));
|
|
305
307
|
})
|
|
306
|
-
.with({ type: RESET_CHANNEL_LIST }, function () {
|
|
308
|
+
.with({ type: RESET_CHANNEL_LIST }, function () {
|
|
309
|
+
return initialState;
|
|
310
|
+
})
|
|
307
311
|
.with({ type: INIT_CHANNELS_SUCCESS }, function (action) {
|
|
308
312
|
var _a = action.payload, channelList = _a.channelList, disableAutoSelect = _a.disableAutoSelect;
|
|
309
|
-
return __assign(__assign({}, state), { initialized: true, loading: false, allChannels: channelList, disableAutoSelect: disableAutoSelect, currentChannel: !disableAutoSelect && channelList && channelList.length && channelList.length > 0 ? channelList[0] :
|
|
313
|
+
return __assign(__assign({}, state), { initialized: true, loading: false, allChannels: channelList, disableAutoSelect: disableAutoSelect, currentChannel: !disableAutoSelect && channelList && channelList.length && channelList.length > 0 ? channelList[0] : state.currentChannel });
|
|
314
|
+
})
|
|
315
|
+
.with({ type: REFRESH_CHANNELS_SUCCESS }, function (action) {
|
|
316
|
+
var _a = action.payload, channelList = _a.channelList, currentChannel = _a.currentChannel;
|
|
317
|
+
return __assign(__assign({}, state), { loading: false, allChannels: channelList, currentChannel: currentChannel });
|
|
310
318
|
})
|
|
311
319
|
.with({ type: FETCH_CHANNELS_SUCCESS }, function (action) {
|
|
312
320
|
var currentChannels = state.allChannels.map(function (c) { return c.url; });
|
|
@@ -371,22 +379,41 @@ function channelListReducer(state, action) {
|
|
|
371
379
|
var _a;
|
|
372
380
|
var _b = action.payload, channel = _b.channel, isMe = _b.isMe;
|
|
373
381
|
var allChannels = state.allChannels, currentUserId = state.currentUserId, currentChannel = state.currentChannel, channelListQuery = state.channelListQuery, disableAutoSelect = state.disableAutoSelect;
|
|
374
|
-
var nextChannels =
|
|
375
|
-
var nextChannel =
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
382
|
+
var nextChannels = __spreadArray([], allChannels, true);
|
|
383
|
+
var nextChannel = channel;
|
|
384
|
+
/**
|
|
385
|
+
* 1. If I left channel:
|
|
386
|
+
* - Remove the channel from channel list
|
|
387
|
+
* - Replace currentChannel with the next ordered channel
|
|
388
|
+
* 2. If other member left channel:
|
|
389
|
+
* 2-1. If query is given:
|
|
390
|
+
* 2-1-1. If channel no longer matches the query
|
|
391
|
+
* - Same as step 1
|
|
392
|
+
* 2-1-2. If channel matches the query:
|
|
393
|
+
* - Upsert channel list with the channel
|
|
394
|
+
* - Replace currentChannel IFF url is same
|
|
395
|
+
* 2-2. If query is not given,
|
|
396
|
+
* - Same as step 2-1-2
|
|
397
|
+
*/
|
|
398
|
+
/* `1` and `2-1-1` */
|
|
399
|
+
if (isMe || (channelListQuery && !filterChannelListParams(channelListQuery, channel, currentUserId))) {
|
|
400
|
+
var channelAt = allChannels.findIndex(function (ch) { return ch.url === channel.url; });
|
|
401
|
+
if (channelAt > -1) {
|
|
402
|
+
nextChannels.splice(channelAt, 1);
|
|
403
|
+
nextChannel = getNextChannel({
|
|
404
|
+
channel: channel,
|
|
405
|
+
currentChannel: currentChannel,
|
|
406
|
+
allChannels: allChannels,
|
|
407
|
+
disableAutoSelect: disableAutoSelect,
|
|
408
|
+
});
|
|
380
409
|
}
|
|
381
410
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
disableAutoSelect: disableAutoSelect,
|
|
389
|
-
});
|
|
411
|
+
else {
|
|
412
|
+
/* `2-1-2` and `2-2` */
|
|
413
|
+
nextChannels = getChannelsWithUpsertedChannel(allChannels, channel, (_a = state.channelListQuery) === null || _a === void 0 ? void 0 : _a.order);
|
|
414
|
+
if ((currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) === channel.url) {
|
|
415
|
+
nextChannel = channel;
|
|
416
|
+
}
|
|
390
417
|
}
|
|
391
418
|
return __assign(__assign({}, state), { currentChannel: nextChannel, allChannels: nextChannels });
|
|
392
419
|
})
|
|
@@ -590,6 +617,86 @@ var useFetchChannelList = function (_a, _b) {
|
|
|
590
617
|
]);
|
|
591
618
|
};
|
|
592
619
|
|
|
620
|
+
function useHandleReconnectForChannelList(_a) {
|
|
621
|
+
var isOnline = _a.isOnline, reconnectOnIdle = _a.reconnectOnIdle, logger = _a.logger, sdk = _a.sdk, currentGroupChannel = _a.currentGroupChannel, channelListDispatcher = _a.channelListDispatcher, setChannelSource = _a.setChannelSource, userFilledChannelListQuery = _a.userFilledChannelListQuery, sortChannelList = _a.sortChannelList, disableAutoSelect = _a.disableAutoSelect, markAsDeliveredScheduler = _a.markAsDeliveredScheduler, disableMarkAsDelivered = _a.disableMarkAsDelivered;
|
|
622
|
+
var shouldReconnect = useReconnectOnIdle(isOnline, currentGroupChannel, reconnectOnIdle).shouldReconnect;
|
|
623
|
+
useEffect(function () {
|
|
624
|
+
return function () {
|
|
625
|
+
var _a, _b, _c, _d;
|
|
626
|
+
// state changed from offline to online AND tab is visible
|
|
627
|
+
if (shouldReconnect) {
|
|
628
|
+
logger.info('ChannelList refresh - creating query', { userFilledChannelListQuery: userFilledChannelListQuery });
|
|
629
|
+
var channelListQuery = createChannelListQuery({ sdk: sdk, userFilledChannelListQuery: userFilledChannelListQuery });
|
|
630
|
+
logger.info('ChannelList refresh - created query', channelListQuery);
|
|
631
|
+
setChannelSource(channelListQuery);
|
|
632
|
+
channelListDispatcher({
|
|
633
|
+
type: INIT_CHANNELS_START,
|
|
634
|
+
payload: {
|
|
635
|
+
currentUserId: (_b = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.currentUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '',
|
|
636
|
+
},
|
|
637
|
+
});
|
|
638
|
+
if (userFilledChannelListQuery) {
|
|
639
|
+
logger.info('ChannelList refresh - setting up channelListQuery', channelListQuery);
|
|
640
|
+
channelListDispatcher({
|
|
641
|
+
type: CHANNEL_LIST_PARAMS_UPDATED,
|
|
642
|
+
payload: {
|
|
643
|
+
channelListQuery: channelListQuery,
|
|
644
|
+
currentUserId: (_d = (_c = sdk === null || sdk === void 0 ? void 0 : sdk.currentUser) === null || _c === void 0 ? void 0 : _c.userId) !== null && _d !== void 0 ? _d : '',
|
|
645
|
+
},
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
logger.info('ChannelList refresh - fetching channels');
|
|
649
|
+
if (channelListQuery.hasNext) {
|
|
650
|
+
channelListQuery
|
|
651
|
+
.next()
|
|
652
|
+
.then(function (channelList) {
|
|
653
|
+
var _a, _b;
|
|
654
|
+
logger.info('ChannelList refresh - fetched channels', channelList);
|
|
655
|
+
var sortedChannelList = channelList;
|
|
656
|
+
if (sortChannelList && typeof sortChannelList === 'function') {
|
|
657
|
+
sortedChannelList = sortChannelList(channelList);
|
|
658
|
+
logger.info('ChannelList refresh - channel list sorted', sortedChannelList);
|
|
659
|
+
}
|
|
660
|
+
// select first channel
|
|
661
|
+
var newCurrentChannel = !disableAutoSelect ? sortedChannelList[0] : null;
|
|
662
|
+
if (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.url) {
|
|
663
|
+
var foundChannel = sortedChannelList.find(function (channel) { return (channel.url === currentGroupChannel.url); });
|
|
664
|
+
if (foundChannel) {
|
|
665
|
+
newCurrentChannel = foundChannel;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
logger.info('ChannelList refresh - highlight channel', newCurrentChannel);
|
|
669
|
+
channelListDispatcher({
|
|
670
|
+
type: REFRESH_CHANNELS_SUCCESS,
|
|
671
|
+
payload: {
|
|
672
|
+
channelList: sortedChannelList,
|
|
673
|
+
currentChannel: newCurrentChannel,
|
|
674
|
+
},
|
|
675
|
+
});
|
|
676
|
+
var canSetMarkAsDelivered = (_b = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) === null || _a === void 0 ? void 0 : _a.premiumFeatureList) === null || _b === void 0 ? void 0 : _b.find(function (feature) { return feature === DELIVERY_RECEIPT$1; });
|
|
677
|
+
if (canSetMarkAsDelivered && !disableMarkAsDelivered) {
|
|
678
|
+
sortedChannelList.forEach(function (channel) {
|
|
679
|
+
markAsDeliveredScheduler.push(channel);
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
})
|
|
683
|
+
.catch(function (err) {
|
|
684
|
+
if (err) {
|
|
685
|
+
logger.error('ChannelList refresh - could not fetch channels', err);
|
|
686
|
+
channelListDispatcher({
|
|
687
|
+
type: INIT_CHANNELS_FAILURE,
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
else {
|
|
693
|
+
logger.info('ChannelList refresh - there are no more channels');
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
}, [shouldReconnect]);
|
|
698
|
+
}
|
|
699
|
+
|
|
593
700
|
var ChannelListContext = React__default.createContext({
|
|
594
701
|
disableUserProfile: true,
|
|
595
702
|
allowProfileEdit: true,
|
|
@@ -609,11 +716,12 @@ var ChannelListContext = React__default.createContext({
|
|
|
609
716
|
channelSource: null,
|
|
610
717
|
typingChannels: [],
|
|
611
718
|
fetchChannelList: noop,
|
|
719
|
+
reconnectOnIdle: true,
|
|
612
720
|
});
|
|
613
721
|
var ChannelListProvider = function (props) {
|
|
614
722
|
var _a, _b;
|
|
615
723
|
// destruct props
|
|
616
|
-
var children = props.children, className = props.className, disableUserProfile = props.disableUserProfile, allowProfileEdit = props.allowProfileEdit, queries = props.queries, onProfileEditSuccess = props.onProfileEditSuccess, onThemeChange = props.onThemeChange, onBeforeCreateChannel = props.onBeforeCreateChannel, sortChannelList = props.sortChannelList, overrideInviteUser = props.overrideInviteUser, activeChannelUrl = props.activeChannelUrl, _c = props.isTypingIndicatorEnabled, isTypingIndicatorEnabled = _c === void 0 ? null : _c, _d = props.isMessageReceiptStatusEnabled, isMessageReceiptStatusEnabled = _d === void 0 ? null : _d;
|
|
724
|
+
var children = props.children, className = props.className, disableUserProfile = props.disableUserProfile, allowProfileEdit = props.allowProfileEdit, queries = props.queries, onProfileEditSuccess = props.onProfileEditSuccess, onThemeChange = props.onThemeChange, onBeforeCreateChannel = props.onBeforeCreateChannel, sortChannelList = props.sortChannelList, overrideInviteUser = props.overrideInviteUser, activeChannelUrl = props.activeChannelUrl, _c = props.isTypingIndicatorEnabled, isTypingIndicatorEnabled = _c === void 0 ? null : _c, _d = props.isMessageReceiptStatusEnabled, isMessageReceiptStatusEnabled = _d === void 0 ? null : _d, reconnectOnIdle = props.reconnectOnIdle;
|
|
617
725
|
// disable autoselect, if activeChannelUrl is provided
|
|
618
726
|
// useActiveChannelUrl should be executed when activeChannelUrl is present
|
|
619
727
|
var disableAutoSelect = (props === null || props === void 0 ? void 0 : props.disableAutoSelect) || !!activeChannelUrl;
|
|
@@ -623,7 +731,7 @@ var ChannelListProvider = function (props) {
|
|
|
623
731
|
var config = globalStore.config, stores = globalStore.stores;
|
|
624
732
|
var sdkStore = stores.sdkStore;
|
|
625
733
|
var pubSub = config.pubSub, logger = config.logger, onUserProfileMessage = config.onUserProfileMessage;
|
|
626
|
-
var markAsDeliveredScheduler = config.markAsDeliveredScheduler, _e = config.disableMarkAsDelivered, disableMarkAsDelivered = _e === void 0 ? false : _e, _f = config.isTypingIndicatorEnabledOnChannelList, isTypingIndicatorEnabledOnChannelList = _f === void 0 ? false : _f, _g = config.isMessageReceiptStatusEnabledOnChannelList, isMessageReceiptStatusEnabledOnChannelList = _g === void 0 ? false : _g;
|
|
734
|
+
var markAsDeliveredScheduler = config.markAsDeliveredScheduler, _e = config.disableMarkAsDelivered, disableMarkAsDelivered = _e === void 0 ? false : _e, _f = config.isTypingIndicatorEnabledOnChannelList, isTypingIndicatorEnabledOnChannelList = _f === void 0 ? false : _f, _g = config.isMessageReceiptStatusEnabledOnChannelList, isMessageReceiptStatusEnabledOnChannelList = _g === void 0 ? false : _g, isOnline = config.isOnline;
|
|
627
735
|
var sdk = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.sdk;
|
|
628
736
|
var _h = ((_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) !== null && _a !== void 0 ? _a : {}).premiumFeatureList, premiumFeatureList = _h === void 0 ? [] : _h;
|
|
629
737
|
// derive some variables
|
|
@@ -801,6 +909,20 @@ var ChannelListProvider = function (props) {
|
|
|
801
909
|
logger: logger,
|
|
802
910
|
channelListDispatcher: channelListDispatcher,
|
|
803
911
|
});
|
|
912
|
+
useHandleReconnectForChannelList({
|
|
913
|
+
isOnline: isOnline,
|
|
914
|
+
reconnectOnIdle: reconnectOnIdle,
|
|
915
|
+
logger: logger,
|
|
916
|
+
sdk: sdk,
|
|
917
|
+
currentGroupChannel: currentChannel,
|
|
918
|
+
channelListDispatcher: channelListDispatcher,
|
|
919
|
+
setChannelSource: setChannelSource,
|
|
920
|
+
userFilledChannelListQuery: userFilledChannelListQuery,
|
|
921
|
+
sortChannelList: sortChannelList,
|
|
922
|
+
disableAutoSelect: disableAutoSelect,
|
|
923
|
+
markAsDeliveredScheduler: markAsDeliveredScheduler,
|
|
924
|
+
disableMarkAsDelivered: disableMarkAsDelivered,
|
|
925
|
+
});
|
|
804
926
|
var fetchChannelList = useFetchChannelList({
|
|
805
927
|
channelSource: channelSource,
|
|
806
928
|
disableMarkAsDelivered: disableMarkAsDelivered || !premiumFeatureList.some(function (feature) { return feature === DELIVERY_RECEIPT$1; }),
|
|
@@ -821,4 +943,4 @@ function useChannelListContext() {
|
|
|
821
943
|
}
|
|
822
944
|
|
|
823
945
|
export { ChannelListProvider as C, LEAVE_CHANNEL_SUCCESS as L, SET_CURRENT_CHANNEL as S, useChannelListContext as u };
|
|
824
|
-
//# sourceMappingURL=bundle-
|
|
946
|
+
//# sourceMappingURL=bundle-areDE3aT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-areDE3aT.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { _ as __assign, b as __awaiter, c as __generator, a as __spreadArray } from './bundle-fgwje9pW.js';
|
|
2
|
+
import React__default, { useRef, useState, useEffect, useCallback } from 'react';
|
|
3
|
+
import { i as isDisabledBecauseFrozen, a as isDisabledBecauseMuted } from './bundle-2mo18Chz.js';
|
|
4
|
+
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
5
|
+
import { u as useLocalization } from './bundle-hOV701rb.js';
|
|
6
|
+
import { S as SuggestedMentionListView } from './bundle-QOv6Bgtw.js';
|
|
7
|
+
import { useDirtyGetMentions } from '../Message/hooks/useDirtyGetMentions.js';
|
|
8
|
+
import QuoteMessageInput from '../ui/QuoteMessageInput.js';
|
|
9
|
+
import { useVoicePlayer } from '../VoicePlayer/useVoicePlayer.js';
|
|
10
|
+
import { useVoiceRecorder, VoiceRecorderStatus } from '../VoiceRecorder/useVoiceRecorder.js';
|
|
11
|
+
import { V as VoiceMessageInputStatus, a as VoiceMessageInput } from './bundle-lxPqhWGY.js';
|
|
12
|
+
import { M as Modal, c as ModalFooter } from './bundle-K0s-Ect1.js';
|
|
13
|
+
import Button, { ButtonTypes, ButtonSizes } from '../ui/Button.js';
|
|
14
|
+
import { f as VOICE_RECORDER_DEFAULT_MIN } from './bundle-zpdae5WH.js';
|
|
15
|
+
import { V as VOICE_PLAYER_STATUS } from './bundle-eHUDbnaD.js';
|
|
16
|
+
import { u as uuidv4 } from './bundle-4IsRvL2E.js';
|
|
17
|
+
import MessageInput from '../ui/MessageInput.js';
|
|
18
|
+
import { u as useMediaQueryContext } from './bundle-SbHFlBY0.js';
|
|
19
|
+
import { M as MessageInputKeys } from './bundle-ueo2Sf-L.js';
|
|
20
|
+
import { v as isImage } from './bundle-GQt7EDbt.js';
|
|
21
|
+
import { useGlobalModalContext } from '../hooks/useModal.js';
|
|
22
|
+
import './bundle-kVopRZZG.js';
|
|
23
|
+
import { c as compressImages } from './bundle-2d4_n6Eh.js';
|
|
24
|
+
|
|
25
|
+
var SuggestedMentionList = function (props) {
|
|
26
|
+
return (React__default.createElement(SuggestedMentionListView, __assign({}, props)));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var VoiceMessageInputWrapper = function (_a) {
|
|
30
|
+
var _b;
|
|
31
|
+
var channel = _a.channel, onCancelClick = _a.onCancelClick, onSubmitClick = _a.onSubmitClick;
|
|
32
|
+
var uuid = useRef(uuidv4()).current;
|
|
33
|
+
var _c = useState(null), audioFile = _c[0], setAudioFile = _c[1];
|
|
34
|
+
var _d = useState(VoiceMessageInputStatus.READY_TO_RECORD), voiceInputState = _d[0], setVoiceInputState = _d[1];
|
|
35
|
+
var _e = useState(false), isSubmitted = _e[0], setSubmit = _e[1];
|
|
36
|
+
var _f = useState(false), isDisabled = _f[0], setDisabled = _f[1];
|
|
37
|
+
var _g = useState(false), showModal = _g[0], setShowModal = _g[1];
|
|
38
|
+
var stringSet = useLocalization().stringSet;
|
|
39
|
+
var config = useSendbirdStateContext().config;
|
|
40
|
+
var minRecordingTime = ((_b = config === null || config === void 0 ? void 0 : config.voiceRecord) === null || _b === void 0 ? void 0 : _b.minRecordingTime) || VOICE_RECORDER_DEFAULT_MIN;
|
|
41
|
+
var _h = useVoiceRecorder({
|
|
42
|
+
onRecordingStarted: function () {
|
|
43
|
+
setVoiceInputState(VoiceMessageInputStatus.RECORDING);
|
|
44
|
+
},
|
|
45
|
+
onRecordingEnded: function (audioFile) {
|
|
46
|
+
setAudioFile(audioFile);
|
|
47
|
+
},
|
|
48
|
+
}), start = _h.start, stop = _h.stop, cancel = _h.cancel, recordingTime = _h.recordingTime, recordingStatus = _h.recordingStatus, recordingLimit = _h.recordingLimit;
|
|
49
|
+
var voicePlayer = useVoicePlayer({
|
|
50
|
+
channelUrl: channel === null || channel === void 0 ? void 0 : channel.url,
|
|
51
|
+
key: uuid,
|
|
52
|
+
audioFile: audioFile,
|
|
53
|
+
});
|
|
54
|
+
var play = voicePlayer.play, pause = voicePlayer.pause, playbackTime = voicePlayer.playbackTime, playingStatus = voicePlayer.playingStatus;
|
|
55
|
+
var stopVoicePlayer = voicePlayer.stop;
|
|
56
|
+
// disabled state: muted & frozen
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
if (isDisabledBecauseFrozen(channel) || isDisabledBecauseMuted(channel)) {
|
|
59
|
+
setDisabled(true);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
setDisabled(false);
|
|
63
|
+
}
|
|
64
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.myRole, channel === null || channel === void 0 ? void 0 : channel.isFrozen, channel === null || channel === void 0 ? void 0 : channel.myMutedState]);
|
|
65
|
+
// call onSubmitClick when submit button is clicked and recorded audio file is created
|
|
66
|
+
useEffect(function () {
|
|
67
|
+
if (isSubmitted && audioFile) {
|
|
68
|
+
onSubmitClick(audioFile, recordingTime);
|
|
69
|
+
setSubmit(false);
|
|
70
|
+
setAudioFile(null);
|
|
71
|
+
}
|
|
72
|
+
}, [isSubmitted, audioFile, recordingTime]);
|
|
73
|
+
// operate which control button should be displayed
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
if (audioFile) {
|
|
76
|
+
if (recordingTime < minRecordingTime) {
|
|
77
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
78
|
+
setAudioFile(null);
|
|
79
|
+
}
|
|
80
|
+
else if (playingStatus === VOICE_PLAYER_STATUS.PLAYING) {
|
|
81
|
+
setVoiceInputState(VoiceMessageInputStatus.PLAYING);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_PLAY);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [audioFile, recordingTime, playingStatus]);
|
|
88
|
+
return (React__default.createElement("div", { className: "sendbird-voice-message-input-wrapper" },
|
|
89
|
+
React__default.createElement(VoiceMessageInput, { currentValue: recordingStatus === VoiceRecorderStatus.COMPLETED ? playbackTime : recordingTime, maximumValue: recordingStatus === VoiceRecorderStatus.COMPLETED ? recordingTime : recordingLimit, currentType: voiceInputState, onCancelClick: function () {
|
|
90
|
+
onCancelClick();
|
|
91
|
+
cancel();
|
|
92
|
+
stopVoicePlayer();
|
|
93
|
+
}, onSubmitClick: function () {
|
|
94
|
+
if (isDisabled) {
|
|
95
|
+
setShowModal(true);
|
|
96
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
stop();
|
|
100
|
+
pause();
|
|
101
|
+
setSubmit(true);
|
|
102
|
+
}
|
|
103
|
+
}, onControlClick: function (type) {
|
|
104
|
+
switch (type) {
|
|
105
|
+
case VoiceMessageInputStatus.READY_TO_RECORD: {
|
|
106
|
+
stopVoicePlayer();
|
|
107
|
+
start();
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
case VoiceMessageInputStatus.RECORDING: {
|
|
111
|
+
if (recordingTime >= minRecordingTime && !isDisabled) {
|
|
112
|
+
stop();
|
|
113
|
+
}
|
|
114
|
+
else if (isDisabled) {
|
|
115
|
+
cancel();
|
|
116
|
+
setShowModal(true);
|
|
117
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
cancel();
|
|
121
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case VoiceMessageInputStatus.READY_TO_PLAY: {
|
|
126
|
+
play();
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
case VoiceMessageInputStatus.PLAYING: {
|
|
130
|
+
pause();
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
} }),
|
|
135
|
+
showModal && (React__default.createElement(Modal, { className: "sendbird-voice-message-input-wrapper-alert", titleText: isDisabledBecauseMuted(channel)
|
|
136
|
+
? stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED
|
|
137
|
+
: stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN, hideFooter: true, isCloseOnClickOutside: true, onCancel: function () {
|
|
138
|
+
setShowModal(false);
|
|
139
|
+
onCancelClick();
|
|
140
|
+
} },
|
|
141
|
+
React__default.createElement("div", { className: "sendbird-voice-message-input-wrapper-alert__body" },
|
|
142
|
+
React__default.createElement(Button, { className: "sendbird-voice-message-input-wrapper-alert__body__ok-button", type: ButtonTypes.PRIMARY, size: ButtonSizes.BIG, onClick: function () {
|
|
143
|
+
setShowModal(false);
|
|
144
|
+
onCancelClick();
|
|
145
|
+
} }, stringSet.BUTTON__OK))))));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var useHandleUploadFiles = function (_a, _b) {
|
|
149
|
+
var sendFileMessage = _a.sendFileMessage, sendMultipleFilesMessage = _a.sendMultipleFilesMessage, quoteMessage = _a.quoteMessage;
|
|
150
|
+
var logger = _b.logger;
|
|
151
|
+
var stringSet = useLocalization().stringSet;
|
|
152
|
+
var config = useSendbirdStateContext().config;
|
|
153
|
+
var imageCompression = config.imageCompression;
|
|
154
|
+
var uikitUploadSizeLimit = config === null || config === void 0 ? void 0 : config.uikitUploadSizeLimit;
|
|
155
|
+
var uikitMultipleFilesMessageLimit = config === null || config === void 0 ? void 0 : config.uikitMultipleFilesMessageLimit;
|
|
156
|
+
var openModal = useGlobalModalContext().openModal;
|
|
157
|
+
return useCallback(function (files) { return __awaiter(void 0, void 0, void 0, function () {
|
|
158
|
+
var ONE_MiB, compressedFiles, sendingFiles, file, imageFiles_1, otherFiles_1;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0:
|
|
162
|
+
if (files.length === 0) {
|
|
163
|
+
logger.warning('Channel|useHandleUploadFiles: given file list is empty.', { files: files });
|
|
164
|
+
return [2 /*return*/];
|
|
165
|
+
}
|
|
166
|
+
if (files.length > uikitMultipleFilesMessageLimit) {
|
|
167
|
+
logger.info("Channel|useHandleUploadFiles: Cannot upload files more than ".concat(uikitMultipleFilesMessageLimit));
|
|
168
|
+
openModal({
|
|
169
|
+
modalProps: {
|
|
170
|
+
titleText: "Up to ".concat(uikitMultipleFilesMessageLimit, " files can be attached."),
|
|
171
|
+
hideFooter: true,
|
|
172
|
+
},
|
|
173
|
+
childElement: function (_a) {
|
|
174
|
+
var closeModal = _a.closeModal;
|
|
175
|
+
return (React__default.createElement(ModalFooter, { type: ButtonTypes.PRIMARY, submitText: stringSet.BUTTON__OK, hideCancelButton: true, onCancel: closeModal, onSubmit: closeModal }));
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
return [2 /*return*/];
|
|
179
|
+
}
|
|
180
|
+
// Validate file sizes
|
|
181
|
+
if (files.some(function (file) { return file.size > uikitUploadSizeLimit; })) {
|
|
182
|
+
// The default value of uikitUploadSizeLimit is 26MB
|
|
183
|
+
logger.info("Channel|useHandleUploadFiles: Cannot upload file size exceeding ".concat(uikitUploadSizeLimit));
|
|
184
|
+
ONE_MiB = 1024 * 1024;
|
|
185
|
+
openModal({
|
|
186
|
+
modalProps: {
|
|
187
|
+
titleText: "The maximum size per file is ".concat(Math.floor(uikitUploadSizeLimit / ONE_MiB), " MB."),
|
|
188
|
+
hideFooter: true,
|
|
189
|
+
},
|
|
190
|
+
childElement: function (_a) {
|
|
191
|
+
var closeModal = _a.closeModal;
|
|
192
|
+
return (React__default.createElement(ModalFooter, { type: ButtonTypes.PRIMARY, submitText: stringSet.BUTTON__OK, hideCancelButton: true, onCancel: closeModal, onSubmit: closeModal }));
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
return [2 /*return*/];
|
|
196
|
+
}
|
|
197
|
+
return [4 /*yield*/, compressImages({
|
|
198
|
+
files: files,
|
|
199
|
+
imageCompression: imageCompression,
|
|
200
|
+
logger: logger,
|
|
201
|
+
})];
|
|
202
|
+
case 1:
|
|
203
|
+
compressedFiles = (_a.sent()).compressedFiles;
|
|
204
|
+
sendingFiles = compressedFiles;
|
|
205
|
+
// Send File Message
|
|
206
|
+
if (sendingFiles.length === 1) {
|
|
207
|
+
logger.info('Channel|useHandleUploadFiles: sending one file.');
|
|
208
|
+
file = sendingFiles[0];
|
|
209
|
+
return [2 /*return*/, sendFileMessage({ file: file, parentMessageId: quoteMessage === null || quoteMessage === void 0 ? void 0 : quoteMessage.messageId })];
|
|
210
|
+
}
|
|
211
|
+
else if (sendingFiles.length > 1) {
|
|
212
|
+
logger.info('Channel|useHandleUploadFiles: sending multiple files.');
|
|
213
|
+
imageFiles_1 = [];
|
|
214
|
+
otherFiles_1 = [];
|
|
215
|
+
sendingFiles.forEach(function (file) {
|
|
216
|
+
if (isImage(file.type)) {
|
|
217
|
+
imageFiles_1.push(file);
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
otherFiles_1.push(file);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
return [2 /*return*/, otherFiles_1.reduce(function (previousPromise, item) {
|
|
224
|
+
return previousPromise.then(function () {
|
|
225
|
+
return sendFileMessage({ file: item, parentMessageId: quoteMessage === null || quoteMessage === void 0 ? void 0 : quoteMessage.messageId });
|
|
226
|
+
});
|
|
227
|
+
}, (function () {
|
|
228
|
+
if (imageFiles_1.length === 0) {
|
|
229
|
+
return Promise.resolve();
|
|
230
|
+
}
|
|
231
|
+
else if (imageFiles_1.length === 1) {
|
|
232
|
+
return sendFileMessage({ file: imageFiles_1[0] });
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
return sendMultipleFilesMessage({
|
|
236
|
+
fileInfoList: imageFiles_1.map(function (file) { return ({
|
|
237
|
+
file: file,
|
|
238
|
+
fileName: file.name,
|
|
239
|
+
fileSize: file.size,
|
|
240
|
+
mimeType: file.type,
|
|
241
|
+
}); }),
|
|
242
|
+
parentMessageId: quoteMessage === null || quoteMessage === void 0 ? void 0 : quoteMessage.messageId,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
})())];
|
|
246
|
+
}
|
|
247
|
+
return [2 /*return*/];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}); }, [sendFileMessage, sendMultipleFilesMessage, quoteMessage]);
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
var MessageInputWrapperView = React__default.forwardRef(function (props, ref) {
|
|
254
|
+
// Props
|
|
255
|
+
var currentChannel = props.currentChannel, localIsMFMEnabled = props.isMultipleFilesMessageEnabled, loading = props.loading, quoteMessage = props.quoteMessage, setQuoteMessage = props.setQuoteMessage, messageInputRef = props.messageInputRef, sendUserMessage = props.sendUserMessage, sendFileMessage = props.sendFileMessage, sendVoiceMessage = props.sendVoiceMessage, sendMultipleFilesMessage = props.sendMultipleFilesMessage,
|
|
256
|
+
// render
|
|
257
|
+
renderUserMentionItem = props.renderUserMentionItem, renderFileUploadIcon = props.renderFileUploadIcon, renderVoiceMessageIcon = props.renderVoiceMessageIcon, renderSendMessageIcon = props.renderSendMessageIcon, acceptableMimeTypes = props.acceptableMimeTypes, disabled = props.disabled;
|
|
258
|
+
var stringSet = useLocalization().stringSet;
|
|
259
|
+
var isMobile = useMediaQueryContext().isMobile;
|
|
260
|
+
var _a = useSendbirdStateContext(), stores = _a.stores, config = _a.config;
|
|
261
|
+
var isOnline = config.isOnline, isMentionEnabled = config.isMentionEnabled, isVoiceMessageEnabled = config.isVoiceMessageEnabled, globalIsMFMenabled = config.isMultipleFilesMessageEnabled, userMention = config.userMention, logger = config.logger;
|
|
262
|
+
var sdk = stores.sdkStore.sdk;
|
|
263
|
+
var maxMentionCount = userMention.maxMentionCount, maxSuggestionCount = userMention.maxSuggestionCount;
|
|
264
|
+
var isBroadcast = currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.isBroadcast;
|
|
265
|
+
var isOperator = (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.myRole) === 'operator';
|
|
266
|
+
// States
|
|
267
|
+
var _b = useState(''), mentionNickname = _b[0], setMentionNickname = _b[1];
|
|
268
|
+
var _c = useState([]), mentionedUsers = _c[0], setMentionedUsers = _c[1];
|
|
269
|
+
var _d = useState([]), mentionedUserIds = _d[0], setMentionedUserIds = _d[1];
|
|
270
|
+
var _e = useState(null), selectedUser = _e[0], setSelectedUser = _e[1];
|
|
271
|
+
var _f = useState([]), mentionSuggestedUsers = _f[0], setMentionSuggestedUsers = _f[1];
|
|
272
|
+
var _g = useState(null), messageInputEvent = _g[0], setMessageInputEvent = _g[1];
|
|
273
|
+
var _h = useState(false), showVoiceMessageInput = _h[0], setShowVoiceMessageInput = _h[1];
|
|
274
|
+
// Conditions
|
|
275
|
+
var isMessageInputDisabled = loading
|
|
276
|
+
|| !currentChannel
|
|
277
|
+
|| isDisabledBecauseFrozen(currentChannel)
|
|
278
|
+
|| isDisabledBecauseMuted(currentChannel)
|
|
279
|
+
|| (!isOnline && !(sdk === null || sdk === void 0 ? void 0 : sdk.isCacheEnabled))
|
|
280
|
+
|| disabled;
|
|
281
|
+
var showSuggestedMentionList = !isMessageInputDisabled
|
|
282
|
+
&& isMentionEnabled
|
|
283
|
+
&& mentionNickname.length > 0
|
|
284
|
+
&& !isBroadcast;
|
|
285
|
+
var isMultipleFilesMessageEnabled = localIsMFMEnabled !== null && localIsMFMEnabled !== void 0 ? localIsMFMEnabled : globalIsMFMenabled;
|
|
286
|
+
var mentionNodes = useDirtyGetMentions({ ref: ref || messageInputRef }, { logger: logger });
|
|
287
|
+
var ableMention = (mentionNodes === null || mentionNodes === void 0 ? void 0 : mentionNodes.length) < maxMentionCount;
|
|
288
|
+
// Operate states
|
|
289
|
+
useEffect(function () {
|
|
290
|
+
setMentionNickname('');
|
|
291
|
+
setMentionedUsers([]);
|
|
292
|
+
setMentionedUserIds([]);
|
|
293
|
+
setSelectedUser(null);
|
|
294
|
+
setMentionSuggestedUsers([]);
|
|
295
|
+
setMessageInputEvent(null);
|
|
296
|
+
setShowVoiceMessageInput(false);
|
|
297
|
+
}, [currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url]);
|
|
298
|
+
useEffect(function () {
|
|
299
|
+
setMentionedUsers(mentionedUsers.filter(function (_a) {
|
|
300
|
+
var userId = _a.userId;
|
|
301
|
+
var i = mentionedUserIds.indexOf(userId);
|
|
302
|
+
if (i < 0) {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
mentionedUserIds.splice(i, 1);
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
}));
|
|
310
|
+
}, [mentionedUserIds]);
|
|
311
|
+
// Callbacks
|
|
312
|
+
var handleUploadFiles = useHandleUploadFiles({
|
|
313
|
+
sendFileMessage: sendFileMessage,
|
|
314
|
+
sendMultipleFilesMessage: sendMultipleFilesMessage,
|
|
315
|
+
quoteMessage: quoteMessage,
|
|
316
|
+
}, { logger: logger });
|
|
317
|
+
if (isBroadcast && !isOperator) {
|
|
318
|
+
/* Only `Operator` can send messages in the Broadcast channel */
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
// other conditions
|
|
322
|
+
return (React__default.createElement("div", { className: "sendbird-message-input-wrapper".concat(showVoiceMessageInput ? '--voice-message' : '') },
|
|
323
|
+
showSuggestedMentionList && (React__default.createElement(SuggestedMentionList, { currentChannel: currentChannel, targetNickname: mentionNickname, inputEvent: messageInputEvent, renderUserMentionItem: renderUserMentionItem, onUserItemClick: function (user) {
|
|
324
|
+
if (user) {
|
|
325
|
+
setMentionedUsers(__spreadArray(__spreadArray([], mentionedUsers, true), [user], false));
|
|
326
|
+
}
|
|
327
|
+
setMentionNickname('');
|
|
328
|
+
setSelectedUser(user);
|
|
329
|
+
setMessageInputEvent(null);
|
|
330
|
+
}, onFocusItemChange: function () {
|
|
331
|
+
setMessageInputEvent(null);
|
|
332
|
+
}, onFetchUsers: function (users) {
|
|
333
|
+
setMentionSuggestedUsers(users);
|
|
334
|
+
}, ableAddMention: ableMention, maxMentionCount: maxMentionCount, maxSuggestionCount: maxSuggestionCount })),
|
|
335
|
+
quoteMessage && (React__default.createElement("div", { className: "sendbird-message-input-wrapper__quote-message-input" },
|
|
336
|
+
React__default.createElement(QuoteMessageInput, { replyingMessage: quoteMessage, onClose: function () { return setQuoteMessage(null); } }))),
|
|
337
|
+
showVoiceMessageInput ? (React__default.createElement(VoiceMessageInputWrapper, { channel: currentChannel, onSubmitClick: function (recordedFile, duration) {
|
|
338
|
+
sendVoiceMessage({ file: recordedFile, parentMessageId: quoteMessage === null || quoteMessage === void 0 ? void 0 : quoteMessage.messageId }, duration);
|
|
339
|
+
setQuoteMessage(null);
|
|
340
|
+
setShowVoiceMessageInput(false);
|
|
341
|
+
}, onCancelClick: function () {
|
|
342
|
+
setShowVoiceMessageInput(false);
|
|
343
|
+
} })) : (React__default.createElement(MessageInput, { className: "sendbird-message-input-wrapper__message-input", channel: currentChannel, channelUrl: currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url, acceptableMimeTypes: acceptableMimeTypes, mentionSelectedUser: selectedUser, isMentionEnabled: isMentionEnabled, isVoiceMessageEnabled: isVoiceMessageEnabled, isSelectingMultipleFilesEnabled: isMultipleFilesMessageEnabled, onVoiceMessageIconClick: function () {
|
|
344
|
+
setShowVoiceMessageInput(true);
|
|
345
|
+
}, setMentionedUsers: setMentionedUsers, placeholder: (quoteMessage && stringSet.MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER)
|
|
346
|
+
|| ((disabled || isDisabledBecauseFrozen(currentChannel)) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED)
|
|
347
|
+
|| (isDisabledBecauseMuted(currentChannel)
|
|
348
|
+
&& (isMobile ? stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED_SHORT : stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED)), ref: ref || messageInputRef, disabled: isMessageInputDisabled, renderFileUploadIcon: renderFileUploadIcon, renderSendMessageIcon: renderSendMessageIcon, renderVoiceMessageIcon: renderVoiceMessageIcon, onStartTyping: function () {
|
|
349
|
+
currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.startTyping();
|
|
350
|
+
}, onSendMessage: function (_a) {
|
|
351
|
+
var _b;
|
|
352
|
+
var message = _a.message, mentionTemplate = _a.mentionTemplate;
|
|
353
|
+
sendUserMessage({
|
|
354
|
+
message: message,
|
|
355
|
+
mentionedUsers: mentionedUsers,
|
|
356
|
+
mentionedMessageTemplate: mentionTemplate,
|
|
357
|
+
parentMessageId: quoteMessage === null || quoteMessage === void 0 ? void 0 : quoteMessage.messageId,
|
|
358
|
+
});
|
|
359
|
+
setMentionNickname('');
|
|
360
|
+
setMentionedUsers([]);
|
|
361
|
+
setQuoteMessage(null);
|
|
362
|
+
(_b = currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.endTyping) === null || _b === void 0 ? void 0 : _b.call(currentChannel);
|
|
363
|
+
}, onFileUpload: function (fileList) {
|
|
364
|
+
handleUploadFiles(fileList);
|
|
365
|
+
setQuoteMessage(null);
|
|
366
|
+
}, onUserMentioned: function (user) {
|
|
367
|
+
if ((selectedUser === null || selectedUser === void 0 ? void 0 : selectedUser.userId) === (user === null || user === void 0 ? void 0 : user.userId)) {
|
|
368
|
+
setSelectedUser(null);
|
|
369
|
+
setMentionNickname('');
|
|
370
|
+
}
|
|
371
|
+
}, onMentionStringChange: function (mentionText) {
|
|
372
|
+
setMentionNickname(mentionText);
|
|
373
|
+
}, onMentionedUserIdsUpdated: function (userIds) {
|
|
374
|
+
setMentionedUserIds(userIds);
|
|
375
|
+
}, onKeyDown: function (e) {
|
|
376
|
+
if (showSuggestedMentionList
|
|
377
|
+
&& (mentionSuggestedUsers === null || mentionSuggestedUsers === void 0 ? void 0 : mentionSuggestedUsers.length) > 0
|
|
378
|
+
&& ((e.key === MessageInputKeys.Enter && ableMention)
|
|
379
|
+
|| e.key === MessageInputKeys.ArrowUp
|
|
380
|
+
|| e.key === MessageInputKeys.ArrowDown)) {
|
|
381
|
+
setMessageInputEvent(e);
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
return false;
|
|
385
|
+
} }))));
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
export { MessageInputWrapperView as M, VoiceMessageInputWrapper as V };
|
|
389
|
+
//# sourceMappingURL=bundle-b1IOVyYG.js.map
|