@sendbird/uikit-react 3.15.13 → 3.15.14
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 +115 -270
- package/App.js.map +1 -1
- package/CHANGELOG.md +39 -0
- package/Channel/components/ChannelHeader.js +32 -40
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +77 -76
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +31 -35
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +6 -5
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +68 -67
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +48 -50
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageInputWrapper.js +48 -50
- package/Channel/components/MessageInputWrapper.js.map +1 -1
- package/Channel/components/MessageList.js +74 -70
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +31 -36
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +31 -41
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +11 -7
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +8 -7
- package/Channel/components/UnreadCount.js.map +1 -1
- package/Channel/context.js +71 -39
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +20 -22
- package/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/Channel/utils/compareMessagesForGrouping.js +16 -18
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/Channel/utils/getMessagePartsInfo.js +13 -14
- package/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/Channel.js +77 -76
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +214 -45
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +16 -11
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +205 -138
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +39 -41
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +17 -18
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +14 -27
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +212 -81
- package/ChannelList.js.map +1 -1
- package/ChannelSettings/components/ChannelProfile.js +28 -32
- package/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingMenuList.js +15 -28
- package/ChannelSettings/components/ChannelSettingMenuList.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsHeader.js +16 -10
- package/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsMenuItem.js +2 -2
- package/ChannelSettings/components/ChannelSettingsUI.js +49 -50
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +23 -31
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +25 -28
- package/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/ChannelSettings/components/ModerationPanel.js +33 -33
- package/ChannelSettings/components/UserListItem.js +26 -29
- package/ChannelSettings/components/UserListItem.js.map +1 -1
- package/ChannelSettings/components/UserPanel.js +35 -35
- package/ChannelSettings/context.js +11 -173
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings/hooks/useMenuList.js +33 -33
- package/ChannelSettings.js +52 -52
- package/CreateChannel/components/CreateChannelUI.js +214 -45
- package/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/CreateChannel/components/InviteUsers.js +215 -153
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +216 -85
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +221 -6
- package/CreateChannel/context.js.map +1 -1
- package/CreateChannel.js +213 -39
- package/CreateChannel.js.map +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +16 -24
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +9 -4
- package/CreateOpenChannel/context.js.map +1 -1
- package/CreateOpenChannel.js +16 -24
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +27 -35
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile/context.js +1 -1
- package/EditUserProfile.js +16 -25
- package/EditUserProfile.js.map +1 -1
- package/GroupChannel/components/FileViewer.js +34 -36
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +6 -5
- package/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/GroupChannel/components/GroupChannelHeader.js +31 -37
- package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/GroupChannel/components/GroupChannelUI.js +73 -70
- package/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/GroupChannel/components/Message.js +67 -63
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +49 -48
- package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/GroupChannel/components/MessageList.js +76 -71
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +32 -34
- package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/GroupChannel/components/SuggestedMentionList.js +18 -13
- package/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/GroupChannel/components/TypingIndicator.js +14 -10
- package/GroupChannel/components/TypingIndicator.js.map +1 -1
- package/GroupChannel/components/UnreadCount.js +8 -7
- package/GroupChannel/components/UnreadCount.js.map +1 -1
- package/GroupChannel/context.js +19 -513
- package/GroupChannel/context.js.map +1 -1
- package/GroupChannel.js +71 -68
- package/GroupChannel.js.map +1 -1
- package/GroupChannelList/components/AddGroupChannel.js +214 -45
- package/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListHeader.js +17 -13
- package/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListItem.js +39 -40
- package/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListUI.js +211 -115
- package/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/GroupChannelList/components/GroupChannelPreviewAction.js +18 -20
- package/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/GroupChannelList/context.js +13 -118
- package/GroupChannelList/context.js.map +1 -1
- package/GroupChannelList.js +209 -72
- package/GroupChannelList.js.map +1 -1
- package/MessageSearch/components/MessageSearchUI.js +24 -23
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +9 -280
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +24 -20
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -4
- package/OpenChannel/components/FrozenChannelNotification.js.map +1 -1
- package/OpenChannel/components/OpenChannelHeader.js +23 -29
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +31 -33
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +45 -44
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +54 -52
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +49 -48
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +21 -27
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +47 -46
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +20 -28
- package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/OpenChannelList/context.js +9 -5
- package/OpenChannelList/context.js.map +1 -1
- package/OpenChannelList.js +18 -26
- package/OpenChannelList.js.map +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +23 -31
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +24 -32
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +33 -34
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +37 -41
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +22 -23
- package/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/OpenChannelSettings/context.js +16 -35
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +27 -28
- package/OpenChannelSettings.js.map +1 -1
- package/SendbirdProvider.js +486 -914
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +71 -68
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +42 -39
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +8 -7
- package/Thread/components/ThreadHeader.js.map +1 -1
- package/Thread/components/ThreadList.js +67 -63
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +77 -76
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +67 -67
- package/Thread/components/ThreadUI.js +74 -72
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context/types.js +0 -1
- package/Thread/context/types.js.map +1 -1
- package/Thread/context.js +20 -1335
- package/Thread/context.js.map +1 -1
- package/Thread.js +70 -68
- package/Thread.js.map +1 -1
- package/VoicePlayer/context.js +9 -6
- package/VoicePlayer/context.js.map +1 -1
- package/VoicePlayer/useVoicePlayer.js +17 -22
- package/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/VoiceRecorder/context.js +127 -22
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +16 -22
- package/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/chunks/{bundle-MkyS3j4-.js → bundle--1cImOGd.js} +1 -1
- package/chunks/bundle--1cImOGd.js.map +1 -0
- package/chunks/{bundle-BBowfNDO.js → bundle-4w9Y7uxA.js} +1 -1
- package/chunks/bundle-4w9Y7uxA.js.map +1 -0
- package/chunks/{bundle-ryUmMhVP.js → bundle-B5_aP8LE.js} +1 -1
- package/chunks/{bundle-ryUmMhVP.js.map → bundle-B5_aP8LE.js.map} +1 -1
- package/chunks/{bundle-C7jYHvwG.js → bundle-B8Grfnrx.js} +2 -2
- package/chunks/{bundle-C7jYHvwG.js.map → bundle-B8Grfnrx.js.map} +1 -1
- package/chunks/{bundle-BP1DBRft.js → bundle-BCGcsRu2.js} +5 -5
- package/chunks/{bundle-BP1DBRft.js.map → bundle-BCGcsRu2.js.map} +1 -1
- package/chunks/{bundle-Crm9sJrW.js → bundle-BFJ4ctRk.js} +8 -8
- package/chunks/{bundle-Crm9sJrW.js.map → bundle-BFJ4ctRk.js.map} +1 -1
- package/chunks/{bundle-LWpHaUiZ.js → bundle-BGj68IUE.js} +9 -7
- package/chunks/bundle-BGj68IUE.js.map +1 -0
- package/chunks/{bundle-V4PrrT67.js → bundle-BQnpPj5l.js} +13 -13
- package/chunks/bundle-BQnpPj5l.js.map +1 -0
- package/chunks/{bundle-CDjVXDOc.js → bundle-BTxw_tIt.js} +1 -1
- package/chunks/bundle-BTxw_tIt.js.map +1 -0
- package/{cjs/chunks/bundle-DE5YH8Q-.js → chunks/bundle-BYOddwmS.js} +2 -32
- package/chunks/{bundle-CIN9yQRB.js.map → bundle-BYOddwmS.js.map} +1 -1
- package/chunks/{bundle-gQ2a8Eki.js → bundle-BYqblmEM.js} +4 -19
- package/chunks/bundle-BYqblmEM.js.map +1 -0
- package/chunks/bundle-Bc6hXWJF.js +190 -0
- package/chunks/bundle-Bc6hXWJF.js.map +1 -0
- package/chunks/{bundle-Dpdq7qeD.js → bundle-BciLDE6M.js} +1 -1
- package/chunks/bundle-BciLDE6M.js.map +1 -0
- package/chunks/bundle-BfEYq-V8.js +9 -0
- package/chunks/bundle-BfEYq-V8.js.map +1 -0
- package/chunks/bundle-BkZBhjs8.js +209 -0
- package/chunks/bundle-BkZBhjs8.js.map +1 -0
- package/chunks/{bundle-JYgg9UJ5.js → bundle-BoZwl2OL.js} +23 -23
- package/chunks/{bundle-JYgg9UJ5.js.map → bundle-BoZwl2OL.js.map} +1 -1
- package/chunks/{bundle-CMuwfYDs.js → bundle-BqREbgmR.js} +17 -17
- package/chunks/{bundle-CMuwfYDs.js.map → bundle-BqREbgmR.js.map} +1 -1
- package/chunks/{bundle-Dskg5qjd.js → bundle-BqjbaVLO.js} +1 -1
- package/chunks/bundle-BqjbaVLO.js.map +1 -0
- package/chunks/{bundle-DjgT6gu4.js → bundle-C3VM5eS8.js} +1 -1
- package/chunks/bundle-C3VM5eS8.js.map +1 -0
- package/chunks/bundle-C4OmfIXk.js +2920 -0
- package/chunks/bundle-C4OmfIXk.js.map +1 -0
- package/chunks/bundle-C5Pz6wMm.js +38 -0
- package/chunks/bundle-C5Pz6wMm.js.map +1 -0
- package/chunks/{bundle-Dvg19muo.js → bundle-C60pq62Y.js} +6 -6
- package/chunks/bundle-C60pq62Y.js.map +1 -0
- package/chunks/{bundle-LPNnEgGp.js → bundle-C6Hk5xTT.js} +1 -1
- package/chunks/bundle-C6Hk5xTT.js.map +1 -0
- package/chunks/{bundle-yLTgHCRG.js → bundle-C8TP-mjp.js} +2 -2
- package/chunks/{bundle-yLTgHCRG.js.map → bundle-C8TP-mjp.js.map} +1 -1
- package/chunks/{bundle-DLlgZtQy.js → bundle-CBOpPuMW.js} +5 -5
- package/chunks/{bundle-DLlgZtQy.js.map → bundle-CBOpPuMW.js.map} +1 -1
- package/chunks/{bundle-DUTyBaXr.js → bundle-CDcu1I4f.js} +7 -2
- package/chunks/bundle-CDcu1I4f.js.map +1 -0
- package/chunks/{bundle-BXE5p6Kc.js → bundle-CEE3GJSk.js} +14 -13
- package/chunks/{bundle-BXE5p6Kc.js.map → bundle-CEE3GJSk.js.map} +1 -1
- package/chunks/{bundle-BL_0pgq0.js → bundle-CF8V-ET_.js} +17 -16
- package/chunks/{bundle-BL_0pgq0.js.map → bundle-CF8V-ET_.js.map} +1 -1
- package/chunks/{bundle-DaKZZ13Y.js → bundle-CFXaZ31h.js} +1 -1
- package/chunks/bundle-CFXaZ31h.js.map +1 -0
- package/chunks/{bundle-D5-VMB5f.js → bundle-CGOt5cwH.js} +13 -12
- package/chunks/{bundle-D5-VMB5f.js.map → bundle-CGOt5cwH.js.map} +1 -1
- package/chunks/{bundle-eYHtE5ry.js → bundle-CJmXP56m.js} +3 -3
- package/chunks/bundle-CJmXP56m.js.map +1 -0
- package/chunks/{bundle-3aUfVJHj.js → bundle-CQAiZVNS.js} +8 -9
- package/chunks/bundle-CQAiZVNS.js.map +1 -0
- package/chunks/{bundle-2kzSicIw.js → bundle-CSDZhWAY.js} +3 -3
- package/chunks/{bundle-2kzSicIw.js.map → bundle-CSDZhWAY.js.map} +1 -1
- package/chunks/{bundle-4W3uBGU3.js → bundle-CTkGIdt8.js} +1 -1
- package/chunks/bundle-CTkGIdt8.js.map +1 -0
- package/chunks/bundle-CVS5Kfg_.js +1108 -0
- package/chunks/bundle-CVS5Kfg_.js.map +1 -0
- package/chunks/{bundle-DrHsf0sP.js → bundle-CYGowmbA.js} +4 -4
- package/chunks/bundle-CYGowmbA.js.map +1 -0
- package/chunks/{bundle-CZsW3iP9.js → bundle-CYXfk28D.js} +2 -2
- package/chunks/bundle-CYXfk28D.js.map +1 -0
- package/chunks/{bundle-BR3O1lZq.js → bundle-C_ngoQD_.js} +1 -1
- package/chunks/bundle-C_ngoQD_.js.map +1 -0
- package/chunks/{bundle-DYeeW5nS.js → bundle-CgLhYjm5.js} +7 -14
- package/chunks/bundle-CgLhYjm5.js.map +1 -0
- package/chunks/bundle-CinANGYQ.js +260 -0
- package/chunks/bundle-CinANGYQ.js.map +1 -0
- package/chunks/{bundle-P-vXuw8U.js → bundle-Cn2czFA-.js} +1 -1
- package/chunks/bundle-Cn2czFA-.js.map +1 -0
- package/chunks/{bundle-5-21Jk06.js → bundle-CrQTAewk.js} +16 -20
- package/chunks/bundle-CrQTAewk.js.map +1 -0
- package/chunks/{bundle-CJBs1h8R.js → bundle-CuP5OWwY.js} +16 -16
- package/chunks/{bundle-CJBs1h8R.js.map → bundle-CuP5OWwY.js.map} +1 -1
- package/chunks/{bundle-Er6ifVzM.js → bundle-CwHldvb8.js} +1 -1
- package/chunks/{bundle-Er6ifVzM.js.map → bundle-CwHldvb8.js.map} +1 -1
- package/chunks/bundle-D4BlmM5H.js +661 -0
- package/chunks/bundle-D4BlmM5H.js.map +1 -0
- package/chunks/{bundle-BE58pe-0.js → bundle-D6CBeFkE.js} +8 -8
- package/chunks/bundle-D6CBeFkE.js.map +1 -0
- package/chunks/{bundle-C1U8wE49.js → bundle-D8xAej93.js} +2 -2
- package/chunks/bundle-D8xAej93.js.map +1 -0
- package/chunks/{bundle-DCbJaskZ.js → bundle-DDZn5buS.js} +3 -2
- package/chunks/bundle-DDZn5buS.js.map +1 -0
- package/chunks/{bundle-Ci2fMtNJ.js → bundle-DED6q4Ti.js} +1 -2
- package/chunks/bundle-DED6q4Ti.js.map +1 -0
- package/chunks/{bundle-TGosz9cX.js → bundle-DS6Kt7YS.js} +1 -1
- package/chunks/bundle-DS6Kt7YS.js.map +1 -0
- package/chunks/{bundle-_-FiwcfQ.js → bundle-DT1VcdMs.js} +2 -2
- package/chunks/{bundle-_-FiwcfQ.js.map → bundle-DT1VcdMs.js.map} +1 -1
- package/chunks/{bundle-DvcOxLrR.js → bundle-DTYj03OD.js} +3 -3
- package/chunks/bundle-DTYj03OD.js.map +1 -0
- package/chunks/{bundle-C9dF4QVS.js → bundle-DXneAdAp.js} +1 -1
- package/chunks/bundle-DXneAdAp.js.map +1 -0
- package/chunks/{bundle-Dl9NVsui.js → bundle-DYBTopZK.js} +1 -1
- package/chunks/{bundle-Dl9NVsui.js.map → bundle-DYBTopZK.js.map} +1 -1
- package/chunks/{bundle-BP1CB0js.js → bundle-DZJe3dCn.js} +1 -1
- package/chunks/bundle-DZJe3dCn.js.map +1 -0
- package/chunks/{bundle-_sFl37fA.js → bundle-D_SH0JG9.js} +6 -7
- package/chunks/{bundle-CTE4m7bC.js.map → bundle-D_SH0JG9.js.map} +1 -1
- package/chunks/{bundle-Deel9XzY.js → bundle-D_tSqvX6.js} +3 -3
- package/chunks/bundle-D_tSqvX6.js.map +1 -0
- package/chunks/{bundle-BH8ohfFx.js → bundle-Dd7rgmeQ.js} +8 -8
- package/chunks/{bundle-BH8ohfFx.js.map → bundle-Dd7rgmeQ.js.map} +1 -1
- package/chunks/bundle-De-3zaYV.js +4 -0
- package/chunks/bundle-De-3zaYV.js.map +1 -0
- package/chunks/{bundle-CbEyAimK.js → bundle-DgFzcADJ.js} +4 -4
- package/chunks/bundle-DgFzcADJ.js.map +1 -0
- package/chunks/{bundle-BiPxcZtH.js → bundle-DgpfIrde.js} +1 -1
- package/chunks/bundle-DgpfIrde.js.map +1 -0
- package/chunks/{bundle-Bzt5nDi4.js → bundle-Dhf37wzM.js} +4 -4
- package/chunks/{bundle-Bzt5nDi4.js.map → bundle-Dhf37wzM.js.map} +1 -1
- package/chunks/{bundle-CTE4m7bC.js → bundle-DhzrKzt2.js} +5 -5
- package/{cjs/chunks/bundle-ChVeqDIG.js.map → chunks/bundle-DhzrKzt2.js.map} +1 -1
- package/chunks/{bundle-CzdrQ_Yq.js → bundle-Djq12iSf.js} +1 -1
- package/chunks/bundle-Djq12iSf.js.map +1 -0
- package/chunks/bundle-Dkmv9H3b.js +149 -0
- package/chunks/bundle-Dkmv9H3b.js.map +1 -0
- package/chunks/{bundle-k6zcGkBp.js → bundle-Do9UFGCD.js} +4 -4
- package/chunks/bundle-Do9UFGCD.js.map +1 -0
- package/chunks/{bundle-BMygDCXK.js → bundle-Dp_oW1ks.js} +1 -1
- package/chunks/bundle-Dp_oW1ks.js.map +1 -0
- package/chunks/{bundle-DWrM1EW4.js → bundle-DqR5RvpV.js} +4 -4
- package/chunks/bundle-DqR5RvpV.js.map +1 -0
- package/chunks/bundle-Dupd7RPQ.js +740 -0
- package/chunks/bundle-Dupd7RPQ.js.map +1 -0
- package/chunks/{bundle-BAQj91eb.js → bundle-DvsR4u7y.js} +9 -8
- package/chunks/bundle-DvsR4u7y.js.map +1 -0
- package/chunks/{bundle-DCX2mqfp.js → bundle-DwLTEVMK.js} +8 -22
- package/{cjs/chunks/bundle-DpyxKl7F.js.map → chunks/bundle-DwLTEVMK.js.map} +1 -1
- package/chunks/{bundle-90vsNbxW.js → bundle-Dx4-1s0A.js} +1 -1
- package/chunks/bundle-Dx4-1s0A.js.map +1 -0
- package/chunks/{bundle-BeUKuH7h.js → bundle-Dy1IZ181.js} +3 -3
- package/chunks/{bundle-BeUKuH7h.js.map → bundle-Dy1IZ181.js.map} +1 -1
- package/chunks/{bundle-DImSV9VW.js → bundle-HspRRkmy.js} +3 -3
- package/chunks/bundle-HspRRkmy.js.map +1 -0
- package/chunks/bundle-I25ah_Bv.js +257 -0
- package/chunks/{bundle-DCX2mqfp.js.map → bundle-I25ah_Bv.js.map} +1 -1
- package/chunks/{bundle-CDvvzlad.js → bundle-L60pJMdf.js} +6 -5
- package/chunks/bundle-L60pJMdf.js.map +1 -0
- package/chunks/bundle-LnGQMQVt.js +65 -0
- package/chunks/bundle-LnGQMQVt.js.map +1 -0
- package/chunks/{bundle-DkviGBGz.js → bundle-Ob7Cw3V-.js} +2 -2
- package/chunks/bundle-Ob7Cw3V-.js.map +1 -0
- package/chunks/{bundle-C6-Ix-Lk.js → bundle-QCH8CZT8.js} +8 -7
- package/{cjs/chunks/bundle-DUanoG7J.js.map → chunks/bundle-QCH8CZT8.js.map} +1 -1
- package/chunks/bundle-WJtiC3BL.js +12 -0
- package/chunks/bundle-WJtiC3BL.js.map +1 -0
- package/chunks/{bundle-Cq6wCLlD.js → bundle-WsWZ-SJW.js} +15 -15
- package/chunks/{bundle-Cq6wCLlD.js.map → bundle-WsWZ-SJW.js.map} +1 -1
- package/chunks/{bundle-pOZPN8hk.js → bundle-Y2KBbxRr.js} +1 -1
- package/chunks/{bundle-pOZPN8hk.js.map → bundle-Y2KBbxRr.js.map} +1 -1
- package/chunks/{bundle-BI2YMBw_.js → bundle-YbXrJewH.js} +60 -6
- package/chunks/bundle-YbXrJewH.js.map +1 -0
- package/chunks/{bundle-CcHvUx-a.js → bundle-fYlljM7o.js} +11 -10
- package/chunks/{bundle-CcHvUx-a.js.map → bundle-fYlljM7o.js.map} +1 -1
- package/chunks/{bundle-BFqR1X1Q.js → bundle-jhdKInOw.js} +1 -1
- package/chunks/bundle-jhdKInOw.js.map +1 -0
- package/chunks/bundle-l_QLKq1Y.js +24 -0
- package/chunks/bundle-l_QLKq1Y.js.map +1 -0
- package/chunks/{bundle-B2dhmpsj.js → bundle-nmIRAkKg.js} +14 -14
- package/chunks/{bundle-B2dhmpsj.js.map → bundle-nmIRAkKg.js.map} +1 -1
- package/chunks/{bundle-jw_xHmHg.js → bundle-tFnb24Id.js} +3 -2
- package/chunks/bundle-tFnb24Id.js.map +1 -0
- package/chunks/{bundle-DRyEkedz.js → bundle-uthnB1Zu.js} +28 -24
- package/chunks/{bundle-DRyEkedz.js.map → bundle-uthnB1Zu.js.map} +1 -1
- package/chunks/{bundle-DfDrbjM5.js → bundle-yKqHFFfz.js} +1 -1
- package/chunks/bundle-yKqHFFfz.js.map +1 -0
- package/chunks/{bundle-CLonR-iH.js → bundle-zOZq2Vpt.js} +8 -7
- package/chunks/{bundle-CLonR-iH.js.map → bundle-zOZq2Vpt.js.map} +1 -1
- package/cjs/App.js +116 -271
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +32 -40
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +77 -76
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +31 -35
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +6 -5
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +68 -67
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +48 -50
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageInputWrapper.js +48 -50
- package/cjs/Channel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +74 -70
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +31 -36
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +31 -41
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +11 -7
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +8 -7
- package/cjs/Channel/components/UnreadCount.js.map +1 -1
- package/cjs/Channel/context.js +153 -121
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +21 -23
- package/cjs/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/cjs/Channel/utils/compareMessagesForGrouping.js +16 -18
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/cjs/Channel/utils/getMessagePartsInfo.js +13 -14
- package/cjs/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/cjs/Channel.js +77 -76
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +216 -47
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +16 -11
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +206 -139
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +39 -41
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +17 -18
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +14 -27
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +213 -82
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +28 -32
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingMenuList.js +15 -28
- package/cjs/ChannelSettings/components/ChannelSettingMenuList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +16 -10
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsMenuItem.js +2 -2
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +48 -49
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +23 -31
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +25 -28
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/cjs/ChannelSettings/components/ModerationPanel.js +33 -33
- package/cjs/ChannelSettings/components/UserListItem.js +26 -29
- package/cjs/ChannelSettings/components/UserListItem.js.map +1 -1
- package/cjs/ChannelSettings/components/UserPanel.js +34 -34
- package/cjs/ChannelSettings/context.js +14 -175
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings/hooks/useMenuList.js +33 -33
- package/cjs/ChannelSettings.js +53 -53
- package/cjs/CreateChannel/components/CreateChannelUI.js +215 -46
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/cjs/CreateChannel/components/InviteUsers.js +216 -154
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +217 -86
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +225 -8
- package/cjs/CreateChannel/context.js.map +1 -1
- package/cjs/CreateChannel.js +214 -40
- package/cjs/CreateChannel.js.map +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +16 -24
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +9 -4
- package/cjs/CreateOpenChannel/context.js.map +1 -1
- package/cjs/CreateOpenChannel.js +16 -24
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +27 -35
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile/context.js +1 -1
- package/cjs/EditUserProfile.js +16 -25
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/GroupChannel/components/FileViewer.js +34 -36
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +6 -5
- package/cjs/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelHeader.js +32 -38
- package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelUI.js +74 -71
- package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/cjs/GroupChannel/components/Message.js +67 -63
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +48 -47
- package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/GroupChannel/components/MessageList.js +75 -70
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +32 -34
- package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/GroupChannel/components/SuggestedMentionList.js +18 -13
- package/cjs/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/GroupChannel/components/TypingIndicator.js +14 -10
- package/cjs/GroupChannel/components/TypingIndicator.js.map +1 -1
- package/cjs/GroupChannel/components/UnreadCount.js +8 -7
- package/cjs/GroupChannel/components/UnreadCount.js.map +1 -1
- package/cjs/GroupChannel/context.js +25 -520
- package/cjs/GroupChannel/context.js.map +1 -1
- package/cjs/GroupChannel.js +72 -69
- package/cjs/GroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/AddGroupChannel.js +216 -47
- package/cjs/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +17 -13
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +39 -40
- package/cjs/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +213 -117
- package/cjs/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +18 -20
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/cjs/GroupChannelList/context.js +19 -121
- package/cjs/GroupChannelList/context.js.map +1 -1
- package/cjs/GroupChannelList.js +211 -74
- package/cjs/GroupChannelList.js.map +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +24 -23
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +17 -285
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +25 -21
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -4
- package/cjs/OpenChannel/components/FrozenChannelNotification.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelHeader.js +23 -29
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +31 -33
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +45 -44
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +54 -52
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +49 -48
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +21 -27
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +47 -46
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +20 -28
- package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/cjs/OpenChannelList/context.js +9 -5
- package/cjs/OpenChannelList/context.js.map +1 -1
- package/cjs/OpenChannelList.js +18 -26
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +23 -31
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +24 -32
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +33 -34
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +37 -41
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +22 -23
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/cjs/OpenChannelSettings/context.js +16 -35
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +27 -28
- package/cjs/OpenChannelSettings.js.map +1 -1
- package/cjs/SendbirdProvider.js +486 -915
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +71 -68
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +42 -39
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +8 -7
- package/cjs/Thread/components/ThreadHeader.js.map +1 -1
- package/cjs/Thread/components/ThreadList.js +67 -63
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +77 -76
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +67 -67
- package/cjs/Thread/components/ThreadUI.js +74 -72
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context/types.js +0 -1
- package/cjs/Thread/context/types.js.map +1 -1
- package/cjs/Thread/context.js +26 -1337
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +71 -69
- package/cjs/Thread.js.map +1 -1
- package/cjs/VoicePlayer/context.js +9 -6
- package/cjs/VoicePlayer/context.js.map +1 -1
- package/cjs/VoicePlayer/useVoicePlayer.js +18 -23
- package/cjs/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/cjs/VoiceRecorder/context.js +130 -25
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +17 -23
- package/cjs/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/cjs/chunks/{bundle-BpThX3wu.js → bundle-4kO4nPo9.js} +5 -5
- package/{chunks/bundle-BI2YMBw_.js.map → cjs/chunks/bundle-4kO4nPo9.js.map} +1 -1
- package/cjs/chunks/bundle-AAO7jUU2.js +2932 -0
- package/cjs/chunks/bundle-AAO7jUU2.js.map +1 -0
- package/cjs/chunks/{bundle-ChDTEa9-.js → bundle-B-Smxy4L.js} +1 -1
- package/cjs/chunks/bundle-B-Smxy4L.js.map +1 -0
- package/cjs/chunks/{bundle-BA6Cum_9.js → bundle-B0UICprZ.js} +3 -3
- package/cjs/chunks/{bundle-BA6Cum_9.js.map → bundle-B0UICprZ.js.map} +1 -1
- package/cjs/chunks/{bundle-BOCivP7e.js → bundle-B1NPGl_q.js} +2 -2
- package/cjs/chunks/bundle-B1NPGl_q.js.map +1 -0
- package/cjs/chunks/{bundle-Bu4cmOCm.js → bundle-B2KoWBOt.js} +1 -1
- package/cjs/chunks/bundle-B2KoWBOt.js.map +1 -0
- package/cjs/chunks/{bundle-D30swLTX.js → bundle-B2xIXbEG.js} +3 -3
- package/cjs/chunks/bundle-B2xIXbEG.js.map +1 -0
- package/cjs/chunks/bundle-B7URG8PR.js +1119 -0
- package/cjs/chunks/bundle-B7URG8PR.js.map +1 -0
- package/cjs/chunks/{bundle-BOSyMutC.js → bundle-B9BY1g5d.js} +2 -2
- package/cjs/chunks/{bundle-BOSyMutC.js.map → bundle-B9BY1g5d.js.map} +1 -1
- package/cjs/chunks/{bundle-DpyxKl7F.js → bundle-BEbBkdwl.js} +16 -20
- package/{chunks/bundle-3aUfVJHj.js.map → cjs/chunks/bundle-BEbBkdwl.js.map} +1 -1
- package/cjs/chunks/{bundle-D6fimwV5.js → bundle-BFKxvlzn.js} +8 -8
- package/cjs/chunks/bundle-BFKxvlzn.js.map +1 -0
- package/cjs/chunks/{bundle-XANrnOqB.js → bundle-BIrmQghI.js} +1 -2
- package/cjs/chunks/bundle-BIrmQghI.js.map +1 -0
- package/cjs/chunks/{bundle-R7sVfaA9.js → bundle-BLQ7t6yE.js} +9 -8
- package/cjs/chunks/bundle-BLQ7t6yE.js.map +1 -0
- package/cjs/chunks/{bundle-BFFRQpby.js → bundle-BOb4newg.js} +8 -8
- package/cjs/chunks/bundle-BOb4newg.js.map +1 -0
- package/cjs/chunks/{bundle-Dq5LRxGL.js → bundle-BPGU6BH2.js} +11 -10
- package/cjs/chunks/bundle-BPGU6BH2.js.map +1 -0
- package/cjs/chunks/{bundle-DWfeFlxG.js → bundle-BPWJgESF.js} +1 -1
- package/cjs/chunks/bundle-BPWJgESF.js.map +1 -0
- package/cjs/chunks/{bundle-s1cLz65w.js → bundle-BUGwK1WK.js} +1 -1
- package/cjs/chunks/bundle-BUGwK1WK.js.map +1 -0
- package/{chunks/bundle-CIN9yQRB.js → cjs/chunks/bundle-BV7y6VDn.js} +3 -22
- package/cjs/chunks/{bundle-DE5YH8Q-.js.map → bundle-BV7y6VDn.js.map} +1 -1
- package/cjs/chunks/{bundle-D4NkDFD-.js → bundle-BWtBhW43.js} +11 -10
- package/cjs/chunks/{bundle-sZREfKpL.js.map → bundle-BWtBhW43.js.map} +1 -1
- package/cjs/chunks/{bundle-Bua7cUR6.js → bundle-BX4VESNC.js} +16 -16
- package/cjs/chunks/{bundle-Bua7cUR6.js.map → bundle-BX4VESNC.js.map} +1 -1
- package/cjs/chunks/{bundle-BL1sGjVd.js → bundle-BXvzT2m9.js} +1 -1
- package/cjs/chunks/bundle-BXvzT2m9.js.map +1 -0
- package/cjs/chunks/{bundle-n_Z6yPjx.js → bundle-BcgWN8U2.js} +6 -7
- package/cjs/chunks/bundle-BcgWN8U2.js.map +1 -0
- package/cjs/chunks/{bundle-BSfpBazH.js → bundle-Bd-cNaJc.js} +3 -3
- package/cjs/chunks/bundle-Bd-cNaJc.js.map +1 -0
- package/cjs/chunks/{bundle-LNbeYHuL.js → bundle-BeI9AozB.js} +24 -24
- package/cjs/chunks/{bundle-LNbeYHuL.js.map → bundle-BeI9AozB.js.map} +1 -1
- package/cjs/chunks/{bundle-bfd2VoyQ.js → bundle-BfhkRB7U.js} +26 -25
- package/cjs/chunks/{bundle-bfd2VoyQ.js.map → bundle-BfhkRB7U.js.map} +1 -1
- package/cjs/chunks/{bundle-JpIugjtL.js → bundle-BqAUDzGx.js} +3 -3
- package/cjs/chunks/bundle-BqAUDzGx.js.map +1 -0
- package/cjs/chunks/{bundle-QF_AmnwV.js → bundle-Bqahh-7Q.js} +8 -7
- package/cjs/chunks/{bundle-D4NkDFD-.js.map → bundle-Bqahh-7Q.js.map} +1 -1
- package/cjs/chunks/{bundle-m5OpCHlj.js → bundle-Bx1_cAVo.js} +8 -22
- package/cjs/chunks/bundle-Bx1_cAVo.js.map +1 -0
- package/cjs/chunks/{bundle-CuWm0vby.js → bundle-C1G0SKDq.js} +1 -1
- package/cjs/chunks/{bundle-CuWm0vby.js.map → bundle-C1G0SKDq.js.map} +1 -1
- package/cjs/chunks/{bundle-B3LOu7kN.js → bundle-C4t_1F0C.js} +4 -3
- package/cjs/chunks/bundle-C4t_1F0C.js.map +1 -0
- package/cjs/chunks/{bundle-C3_KfqSN.js → bundle-C8MACRPO.js} +1 -1
- package/cjs/chunks/bundle-C8MACRPO.js.map +1 -0
- package/cjs/chunks/{bundle-COBYaK8T.js → bundle-CBLzrxjV.js} +4 -4
- package/cjs/chunks/{bundle-COBYaK8T.js.map → bundle-CBLzrxjV.js.map} +1 -1
- package/cjs/chunks/{bundle-DX3sBwvt.js → bundle-CCXodf32.js} +29 -25
- package/{chunks/bundle-MyLy9AIu.js.map → cjs/chunks/bundle-CCXodf32.js.map} +1 -1
- package/cjs/chunks/{bundle-BZd597ep.js → bundle-CG2rv5Ij.js} +1 -1
- package/cjs/chunks/bundle-CG2rv5Ij.js.map +1 -0
- package/cjs/chunks/{bundle-DHPSwRDh.js → bundle-CLL-nCFU.js} +4 -4
- package/cjs/chunks/bundle-CLL-nCFU.js.map +1 -0
- package/cjs/chunks/bundle-CLXojdVj.js +761 -0
- package/cjs/chunks/bundle-CLXojdVj.js.map +1 -0
- package/cjs/chunks/bundle-CMpha6Ac.js +152 -0
- package/cjs/chunks/bundle-CMpha6Ac.js.map +1 -0
- package/cjs/chunks/{bundle-B2zio8XF.js → bundle-CPeZ4wPf.js} +1 -1
- package/cjs/chunks/bundle-CPeZ4wPf.js.map +1 -0
- package/cjs/chunks/{bundle-BbpZ1Xe-.js → bundle-CXHWkhsI.js} +2 -2
- package/cjs/chunks/{bundle-BbpZ1Xe-.js.map → bundle-CXHWkhsI.js.map} +1 -1
- package/cjs/chunks/{bundle-DYjhaLRW.js → bundle-CaNXlSAv.js} +9 -7
- package/cjs/chunks/bundle-CaNXlSAv.js.map +1 -0
- package/cjs/chunks/bundle-CcVLRLk8.js +217 -0
- package/{chunks/bundle-5-21Jk06.js.map → cjs/chunks/bundle-CcVLRLk8.js.map} +1 -1
- package/cjs/chunks/{bundle-vf5ayidG.js → bundle-CdtZVJ6y.js} +17 -17
- package/cjs/chunks/{bundle-vf5ayidG.js.map → bundle-CdtZVJ6y.js.map} +1 -1
- package/cjs/chunks/{bundle-Aw-PHA-I.js → bundle-CgCnWqE5.js} +1 -1
- package/cjs/chunks/bundle-CgCnWqE5.js.map +1 -0
- package/cjs/chunks/bundle-ChpcAmBg.js +40 -0
- package/cjs/chunks/bundle-ChpcAmBg.js.map +1 -0
- package/cjs/chunks/bundle-CpzjjrHg.js +201 -0
- package/cjs/chunks/bundle-CpzjjrHg.js.map +1 -0
- package/cjs/chunks/{bundle-Khwf-z37.js → bundle-Cq2Y8hPN.js} +9 -9
- package/cjs/chunks/bundle-Cq2Y8hPN.js.map +1 -0
- package/cjs/chunks/{bundle-nWxq3V_Q.js → bundle-CqFqMb6S.js} +3 -3
- package/cjs/chunks/bundle-CqFqMb6S.js.map +1 -0
- package/cjs/chunks/{bundle-YTiDKoON.js → bundle-CvQwksvR.js} +1 -1
- package/cjs/chunks/bundle-CvQwksvR.js.map +1 -0
- package/cjs/chunks/{bundle-CNvRk1Z6.js → bundle-Cwboa2Wr.js} +1 -1
- package/cjs/chunks/bundle-Cwboa2Wr.js.map +1 -0
- package/cjs/chunks/{bundle-D1slQ3hS.js → bundle-CxoFSSXv.js} +1 -1
- package/cjs/chunks/bundle-CxoFSSXv.js.map +1 -0
- package/cjs/chunks/{bundle-B5aEwfu1.js → bundle-CyQD5TkW.js} +1 -1
- package/cjs/chunks/bundle-CyQD5TkW.js.map +1 -0
- package/cjs/chunks/{bundle-S-XkXH4q.js → bundle-CzJX13Yl.js} +2 -2
- package/cjs/chunks/bundle-CzJX13Yl.js.map +1 -0
- package/cjs/chunks/{bundle-DkDRIPJe.js → bundle-CzdU1g3S.js} +6 -5
- package/cjs/chunks/bundle-CzdU1g3S.js.map +1 -0
- package/cjs/chunks/{bundle-XxCVYLKy.js → bundle-D2TXT2xX.js} +8 -9
- package/cjs/chunks/bundle-D2TXT2xX.js.map +1 -0
- package/cjs/chunks/{bundle-DuSS5Dmw.js → bundle-D4Il5UXX.js} +1 -1
- package/cjs/chunks/bundle-D4Il5UXX.js.map +1 -0
- package/cjs/chunks/{bundle-CfUeEOi0.js → bundle-D5wxUmg4.js} +14 -14
- package/cjs/chunks/bundle-D5wxUmg4.js.map +1 -0
- package/cjs/chunks/{bundle-DTD48j2K.js → bundle-D7YiKR6i.js} +7 -17
- package/cjs/chunks/bundle-D7YiKR6i.js.map +1 -0
- package/cjs/chunks/{bundle-DL3fuSPu.js → bundle-DAVPwIxJ.js} +1 -1
- package/cjs/chunks/bundle-DAVPwIxJ.js.map +1 -0
- package/cjs/chunks/bundle-DDNdw3A9.js +32 -0
- package/cjs/chunks/bundle-DDNdw3A9.js.map +1 -0
- package/cjs/chunks/bundle-DJOukqkN.js +672 -0
- package/cjs/chunks/bundle-DJOukqkN.js.map +1 -0
- package/cjs/chunks/{bundle-sZREfKpL.js → bundle-DK39NcVd.js} +7 -6
- package/{chunks/bundle-C6-Ix-Lk.js.map → cjs/chunks/bundle-DK39NcVd.js.map} +1 -1
- package/cjs/chunks/{bundle-D-kYFL1Z.js → bundle-DNjcGEfJ.js} +1 -1
- package/cjs/chunks/bundle-DNjcGEfJ.js.map +1 -0
- package/cjs/chunks/{bundle-Cq5LKFhE.js → bundle-DQNu-S6D.js} +7 -1
- package/cjs/chunks/bundle-DQNu-S6D.js.map +1 -0
- package/cjs/chunks/{bundle-Clz7RiTn.js → bundle-Da973hrK.js} +1 -1
- package/cjs/chunks/bundle-Da973hrK.js.map +1 -0
- package/cjs/chunks/{bundle-B0uIbH1T.js → bundle-DeyX1dvY.js} +4 -19
- package/cjs/chunks/bundle-DeyX1dvY.js.map +1 -0
- package/cjs/chunks/bundle-DlOFss3p.js +11 -0
- package/cjs/chunks/bundle-DlOFss3p.js.map +1 -0
- package/cjs/chunks/bundle-Dn0hi6OJ.js +7 -0
- package/cjs/chunks/bundle-Dn0hi6OJ.js.map +1 -0
- package/cjs/chunks/bundle-Dn7m9LzR.js +187 -0
- package/cjs/chunks/bundle-Dn7m9LzR.js.map +1 -0
- package/cjs/chunks/{bundle-B5-vaN7x.js → bundle-DptJHWLW.js} +17 -16
- package/cjs/chunks/{bundle-DeLEOQNO.js.map → bundle-DptJHWLW.js.map} +1 -1
- package/cjs/chunks/{bundle-BcIrmepz.js → bundle-DsZL8mH-.js} +1 -1
- package/cjs/chunks/bundle-DsZL8mH-.js.map +1 -0
- package/cjs/chunks/{bundle-A5UoPEJO.js → bundle-DwVBqZFY.js} +4 -4
- package/cjs/chunks/bundle-DwVBqZFY.js.map +1 -0
- package/cjs/chunks/{bundle-DzEGN4bG.js → bundle-EhtiN7UV.js} +1 -1
- package/cjs/chunks/bundle-EhtiN7UV.js.map +1 -0
- package/cjs/chunks/{bundle-WqJcr9PX.js → bundle-FJtjwZwh.js} +4 -4
- package/cjs/chunks/{bundle-WqJcr9PX.js.map → bundle-FJtjwZwh.js.map} +1 -1
- package/cjs/chunks/{bundle-BBgc3koD.js → bundle-G4J-OWth.js} +15 -14
- package/cjs/chunks/{bundle-BBgc3koD.js.map → bundle-G4J-OWth.js.map} +1 -1
- package/cjs/chunks/{bundle-qMxPIH0k.js → bundle-L8U6SolV.js} +6 -6
- package/cjs/chunks/bundle-L8U6SolV.js.map +1 -0
- package/cjs/chunks/bundle-LI9JjqG2.js +263 -0
- package/cjs/chunks/bundle-LI9JjqG2.js.map +1 -0
- package/cjs/chunks/{bundle-DeLEOQNO.js → bundle-THfLGJxy.js} +5 -5
- package/cjs/chunks/{bundle-B5-vaN7x.js.map → bundle-THfLGJxy.js.map} +1 -1
- package/cjs/chunks/{bundle-Bhf_RRfA.js → bundle-UKqK7ytZ.js} +1 -1
- package/cjs/chunks/bundle-UKqK7ytZ.js.map +1 -0
- package/cjs/chunks/{bundle-ChVeqDIG.js → bundle-Y1fPW7ES.js} +13 -13
- package/{chunks/bundle-_sFl37fA.js.map → cjs/chunks/bundle-Y1fPW7ES.js.map} +1 -1
- package/cjs/chunks/bundle-YeW89zsR.js +76 -0
- package/cjs/chunks/bundle-YeW89zsR.js.map +1 -0
- package/cjs/chunks/{bundle-DmO3Qtot.js → bundle-aMt_60_o.js} +1 -1
- package/cjs/chunks/{bundle-DmO3Qtot.js.map → bundle-aMt_60_o.js.map} +1 -1
- package/cjs/chunks/{bundle-Bc_sQb3i.js → bundle-de2DEYPS.js} +5 -5
- package/cjs/chunks/bundle-de2DEYPS.js.map +1 -0
- package/cjs/chunks/{bundle-BAF8GaDh.js → bundle-dfqZUdij.js} +1 -1
- package/cjs/chunks/bundle-dfqZUdij.js.map +1 -0
- package/cjs/chunks/bundle-j0RMwIZ5.js +270 -0
- package/cjs/chunks/bundle-j0RMwIZ5.js.map +1 -0
- package/cjs/chunks/{bundle-DHZYT5M_.js → bundle-kPv1Olqr.js} +1 -1
- package/cjs/chunks/bundle-kPv1Olqr.js.map +1 -0
- package/cjs/chunks/{bundle-DUanoG7J.js → bundle-nPNv9ATU.js} +5 -5
- package/cjs/chunks/bundle-nPNv9ATU.js.map +1 -0
- package/cjs/chunks/{bundle-BfjugOIp.js → bundle-swpo7Z_P.js} +4 -4
- package/cjs/chunks/bundle-swpo7Z_P.js.map +1 -0
- package/cjs/chunks/{bundle-DVc6YedH.js → bundle-vEi_Cfco.js} +4 -4
- package/cjs/chunks/bundle-vEi_Cfco.js.map +1 -0
- package/cjs/chunks/{bundle-BloKh_k7.js → bundle-yU9Mr2pS.js} +1 -1
- package/cjs/chunks/bundle-yU9Mr2pS.js.map +1 -0
- package/cjs/chunks/{bundle-6UD0H-nz.js → bundle-ys65nyET.js} +14 -14
- package/cjs/chunks/bundle-ys65nyET.js.map +1 -0
- package/cjs/chunks/{bundle-ByQJ042a.js → bundle-za5uPkdP.js} +1 -1
- package/cjs/chunks/bundle-za5uPkdP.js.map +1 -0
- package/cjs/hooks/useConnectionState.js +8 -5
- package/cjs/hooks/useConnectionState.js.map +1 -1
- package/cjs/hooks/useLocalization.js +4 -3
- package/cjs/hooks/useLocalization.js.map +1 -1
- package/cjs/hooks/useModal.js +56 -24
- package/cjs/hooks/useModal.js.map +1 -1
- package/cjs/index.js +119 -127
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/ui/Accordion.js +2 -2
- package/cjs/ui/AccordionGroup.js +1 -1
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +5 -4
- package/cjs/ui/Badge.js.map +1 -1
- package/cjs/ui/BottomSheet.js +19 -25
- package/cjs/ui/BottomSheet.js.map +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +5 -5
- package/cjs/ui/ConnectionStatus.js +6 -5
- package/cjs/ui/ConnectionStatus.js.map +1 -1
- package/cjs/ui/ContextMenu.js +16 -14
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +27 -28
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +10 -8
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +20 -16
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +22 -23
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Header.js +6 -6
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +2 -2
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +4 -4
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +2 -2
- package/cjs/ui/MentionLabel.js +24 -27
- package/cjs/ui/MentionLabel.js.map +1 -1
- package/cjs/ui/MentionUserLabel.js +2 -2
- package/cjs/ui/MessageContent.js +48 -45
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +15 -22
- package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/cjs/ui/MessageFeedbackModal.js +15 -22
- package/cjs/ui/MessageFeedbackModal.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +26 -22
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +15 -13
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +16 -14
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageMenu.js +17 -15
- package/cjs/ui/MessageMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +17 -15
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +12 -11
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +15 -13
- package/cjs/ui/MessageStatus.js.map +1 -1
- package/cjs/ui/MessageTemplate.js +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +15 -21
- package/cjs/ui/MobileFeedbackMenu.js.map +1 -1
- package/cjs/ui/MobileMenu.js +21 -23
- package/cjs/ui/MobileMenu.js.map +1 -1
- package/cjs/ui/Modal.js +13 -21
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +24 -26
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -7
- package/cjs/ui/OpenChannelAvatar.js.map +1 -1
- package/cjs/ui/OpenchannelConversationHeader.js +8 -7
- package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
- package/cjs/ui/OpenchannelFileMessage.js +24 -26
- package/cjs/ui/OpenchannelFileMessage.js.map +1 -1
- package/cjs/ui/OpenchannelOGMessage.js +26 -28
- package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +23 -25
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/cjs/ui/OpenchannelUserMessage.js +25 -27
- package/cjs/ui/OpenchannelUserMessage.js.map +1 -1
- package/cjs/ui/PlaceHolder.js +6 -5
- package/cjs/ui/PlaceHolder.js.map +1 -1
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/ProgressBar.js +1 -1
- package/cjs/ui/QuoteMessage.js +12 -10
- package/cjs/ui/QuoteMessage.js.map +1 -1
- package/cjs/ui/QuoteMessageInput.js +12 -10
- package/cjs/ui/QuoteMessageInput.js.map +1 -1
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TemplateMessageItemBody.js +21 -17
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +24 -27
- package/cjs/ui/TextMessageItemBody.js.map +1 -1
- package/cjs/ui/ThreadReplies.js +8 -7
- package/cjs/ui/ThreadReplies.js.map +1 -1
- package/cjs/ui/ThumbnailMessageItemBody.js +10 -9
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Toggle.js +8 -5
- package/cjs/ui/Toggle.js.map +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/TypingIndicatorBubble.js +4 -4
- package/cjs/ui/UnknownMessageItemBody.js +10 -8
- package/cjs/ui/UnknownMessageItemBody.js.map +1 -1
- package/cjs/ui/UserListItem.js +28 -31
- package/cjs/ui/UserListItem.js.map +1 -1
- package/cjs/ui/UserListItemMenu.js +17 -15
- package/cjs/ui/UserListItemMenu.js.map +1 -1
- package/cjs/ui/UserProfile.js +19 -32
- package/cjs/ui/UserProfile.js.map +1 -1
- package/cjs/ui/VoiceMessageInput.js +9 -8
- package/cjs/ui/VoiceMessageInput.js.map +1 -1
- package/cjs/ui/VoiceMessageItemBody.js +16 -21
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/Word.js +21 -24
- package/cjs/ui/Word.js.map +1 -1
- package/cjs/utils/message/isVoiceMessage.js +6 -5
- package/cjs/utils/message/isVoiceMessage.js.map +1 -1
- package/dist/index.css +113 -113
- package/hooks/useConnectionState.js +8 -5
- package/hooks/useConnectionState.js.map +1 -1
- package/hooks/useLocalization.js +4 -3
- package/hooks/useLocalization.js.map +1 -1
- package/hooks/useModal.js +55 -22
- package/hooks/useModal.js.map +1 -1
- package/index.js +116 -125
- package/index.js.map +1 -1
- package/package.json +15 -33
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +3 -3
- package/types/hooks/useDeepCompareEffect.d.ts +24 -0
- package/types/hooks/useStore.d.ts +14 -0
- package/types/hooks/useThrottleCallback.d.ts +0 -7
- package/types/index.d.ts +3 -2
- package/types/lib/MediaQueryContext.d.ts +1 -1
- package/types/lib/Sendbird/context/SendbirdContext.d.ts +18 -0
- package/types/lib/Sendbird/context/SendbirdProvider.d.ts +4 -0
- package/types/lib/Sendbird/context/hooks/useSendbird.d.ts +32 -0
- package/types/lib/Sendbird/context/hooks/useSendbirdStateContext.d.ts +3 -0
- package/types/lib/Sendbird/context/initialState.d.ts +2 -0
- package/types/lib/Sendbird/index.d.ts +16 -0
- package/types/lib/{types.d.ts → Sendbird/types.d.ts} +167 -102
- package/types/lib/Sendbird/utils.d.ts +28 -0
- package/types/lib/emojiManager.d.ts +2 -3
- package/types/lib/hooks/schedulerFactory.d.ts +1 -1
- package/types/lib/hooks/useMarkAsDeliveredScheduler.d.ts +1 -1
- package/types/lib/hooks/useMarkAsReadScheduler.d.ts +1 -1
- package/types/lib/hooks/useMessageTemplateUtils.d.ts +10 -5
- package/types/lib/selectors.d.ts +37 -37
- package/types/lib/utils/uikitConfigMapper.d.ts +1 -1
- package/types/modules/App/types.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useGetChannel.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleReconnect.d.ts +1 -2
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +1 -2
- package/types/modules/Channel/context/hooks/useHandleUploadFiles.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollDownCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendMultipleFilesMessage.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useToggleReactionCallback.d.ts +16 -8
- package/types/modules/Channel/context/utils.d.ts +1 -1
- package/types/modules/ChannelList/context/hooks/useActiveChannelUrl.d.ts +1 -2
- package/types/modules/ChannelList/context/hooks/useFetchChannelList.d.ts +1 -1
- package/types/modules/ChannelList/utils.d.ts +1 -1
- package/types/modules/ChannelSettings/components/ChannelSettingsUI/index.d.ts +2 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/BannedUsersModal.d.ts +1 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/MutedMembersModal.d.ts +1 -1
- package/types/modules/ChannelSettings/context/ChannelSettingsProvider.d.ts +23 -38
- package/types/modules/ChannelSettings/context/hooks/useChannelHandler.d.ts +10 -0
- package/types/modules/ChannelSettings/context/hooks/useSetChannel.d.ts +10 -0
- package/types/modules/ChannelSettings/context/index.d.ts +3 -0
- package/types/modules/ChannelSettings/context/types.d.ts +40 -0
- package/types/modules/ChannelSettings/context/useChannelSettings.d.ts +11 -0
- package/types/modules/ChannelSettings/index.d.ts +1 -1
- package/types/modules/CreateChannel/components/InviteUsers/utils.d.ts +1 -1
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +36 -9
- package/types/modules/CreateChannel/context/index.d.ts +2 -0
- package/types/modules/CreateChannel/context/useCreateChannel.d.ts +11 -0
- package/types/modules/CreateChannel/utils.d.ts +1 -1
- package/types/modules/CreateOpenChannel/context/CreateOpenChannelProvider.d.ts +1 -2
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageList/getMessagePartsInfo.d.ts +3 -1
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +64 -55
- package/types/modules/GroupChannel/context/hooks/useGroupChannel.d.ts +23 -0
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +4 -10
- package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +0 -2
- package/types/modules/GroupChannel/context/index.d.ts +2 -0
- package/types/modules/GroupChannel/context/types.d.ts +80 -0
- package/types/modules/GroupChannel/index.d.ts +1 -1
- package/types/modules/GroupChannelList/context/GroupChannelListProvider.d.ts +36 -4
- package/types/modules/GroupChannelList/context/index.d.ts +2 -0
- package/types/modules/GroupChannelList/context/useGroupChannelList.d.ts +8 -0
- package/types/modules/Message/hooks/useDirtyGetMentions.d.ts +1 -1
- package/types/modules/MessageSearch/context/MessageSearchProvider.d.ts +51 -24
- package/types/modules/MessageSearch/context/hooks/useGetSearchedMessages.d.ts +2 -8
- package/types/modules/MessageSearch/context/hooks/useMessageSearch.d.ts +21 -0
- package/types/modules/MessageSearch/context/hooks/useScrollCallback.d.ts +2 -9
- package/types/modules/MessageSearch/context/hooks/useSearchStringEffect.d.ts +1 -7
- package/types/modules/MessageSearch/context/hooks/useSetChannel.d.ts +2 -7
- package/types/modules/MessageSearch/context/index.d.ts +2 -0
- package/types/modules/OpenChannel/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useFileUploadCallback.d.ts +1 -3
- package/types/modules/OpenChannel/context/hooks/useHandleChannelEvents.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useInitialMessagesFetch.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useScrollCallback.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useSendMessageCallback.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useSetChannel.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useUpdateMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/utils.d.ts +1 -1
- package/types/modules/OpenChannelList/context/OpenChannelListInterfaces.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/createChannelListQuery.d.ts +1 -2
- package/types/modules/OpenChannelList/context/hooks/useFetchNextCallback.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useRefreshOpenChannelList.d.ts +1 -2
- package/types/modules/OpenChannelList/context/hooks/useSetupOpenChannelList.d.ts +1 -2
- package/types/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.d.ts +1 -1
- package/types/modules/Thread/context/ThreadProvider.d.ts +110 -22
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useGetAllEmoji.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useGetChannel.d.ts +2 -7
- package/types/modules/Thread/context/hooks/useGetParentMessage.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useHandleChannelEvents.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -3
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +5 -3
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSetCurrentUserId.d.ts +6 -0
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +14 -7
- package/types/modules/Thread/context/hooks/useToggleReactionsCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/index.d.ts +2 -0
- package/types/modules/Thread/context/useThread.d.ts +64 -0
- package/types/modules/Thread/types.d.ts +8 -0
- package/types/ui/FileMessageItemBody/index.d.ts +1 -1
- package/types/ui/MessageContent/MessageBody/index.d.ts +3 -3
- package/types/ui/MessageContent/index.d.ts +1 -1
- package/types/ui/MessageInput/messageInputUtils.d.ts +3 -3
- package/types/ui/MultipleFilesMessageItemBody/index.d.ts +1 -1
- package/types/utils/color.d.ts +0 -1
- package/types/utils/compressImages.d.ts +1 -2
- package/types/utils/getIsReactionEnabled.d.ts +2 -2
- package/types/utils/index.d.ts +2 -26
- package/types/utils/messages.d.ts +7 -6
- package/types/utils/storeManager.d.ts +10 -0
- package/types/utils/utils.d.ts +5 -0
- package/ui/Accordion.js +2 -2
- package/ui/AccordionGroup.js +1 -1
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -4
- package/ui/Badge.js.map +1 -1
- package/ui/BottomSheet.js +19 -25
- package/ui/BottomSheet.js.map +1 -1
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -5
- package/ui/ConnectionStatus.js.map +1 -1
- package/ui/ContextMenu.js +16 -14
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +26 -27
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FallbackTemplateMessageItemBody.tsx.js +10 -8
- package/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/ui/FileMessageItemBody.js +20 -16
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +22 -23
- package/ui/FileViewer.js.map +1 -1
- package/ui/Header.js +6 -6
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +2 -2
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +4 -4
- package/ui/Loader.js +2 -2
- package/ui/LoadingTemplateMessageItemBody.tsx.js +2 -2
- package/ui/MentionLabel.js +24 -27
- package/ui/MentionLabel.js.map +1 -1
- package/ui/MentionUserLabel.js +2 -2
- package/ui/MessageContent.js +48 -45
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +15 -22
- package/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/ui/MessageFeedbackModal.js +15 -22
- package/ui/MessageFeedbackModal.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +24 -20
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +15 -13
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +16 -14
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageMenu.js +17 -15
- package/ui/MessageMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +17 -15
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +12 -11
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +15 -13
- package/ui/MessageStatus.js.map +1 -1
- package/ui/MessageTemplate.js +1 -1
- package/ui/MobileFeedbackMenu.js +15 -21
- package/ui/MobileFeedbackMenu.js.map +1 -1
- package/ui/MobileMenu.js +21 -23
- package/ui/MobileMenu.js.map +1 -1
- package/ui/Modal.js +13 -21
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +24 -26
- package/ui/OGMessageItemBody.js.map +1 -1
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -7
- package/ui/OpenChannelAvatar.js.map +1 -1
- package/ui/OpenchannelConversationHeader.js +8 -7
- package/ui/OpenchannelConversationHeader.js.map +1 -1
- package/ui/OpenchannelFileMessage.js +24 -26
- package/ui/OpenchannelFileMessage.js.map +1 -1
- package/ui/OpenchannelOGMessage.js +26 -28
- package/ui/OpenchannelOGMessage.js.map +1 -1
- package/ui/OpenchannelThumbnailMessage.js +23 -25
- package/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/ui/OpenchannelUserMessage.js +25 -27
- package/ui/OpenchannelUserMessage.js.map +1 -1
- package/ui/PlaceHolder.js +6 -5
- package/ui/PlaceHolder.js.map +1 -1
- package/ui/PlaybackTime.js +3 -3
- package/ui/ProgressBar.js +1 -1
- package/ui/QuoteMessage.js +12 -10
- package/ui/QuoteMessage.js.map +1 -1
- package/ui/QuoteMessageInput.js +12 -10
- package/ui/QuoteMessageInput.js.map +1 -1
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TemplateMessageItemBody.js +21 -17
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +24 -27
- package/ui/TextMessageItemBody.js.map +1 -1
- package/ui/ThreadReplies.js +8 -7
- package/ui/ThreadReplies.js.map +1 -1
- package/ui/ThumbnailMessageItemBody.js +10 -9
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Toggle.js +8 -5
- package/ui/Toggle.js.map +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +10 -8
- package/ui/UnknownMessageItemBody.js.map +1 -1
- package/ui/UserListItem.js +28 -31
- package/ui/UserListItem.js.map +1 -1
- package/ui/UserListItemMenu.js +18 -16
- package/ui/UserListItemMenu.js.map +1 -1
- package/ui/UserProfile.js +19 -32
- package/ui/UserProfile.js.map +1 -1
- package/ui/VoiceMessageInput.js +9 -8
- package/ui/VoiceMessageInput.js.map +1 -1
- package/ui/VoiceMessageItemBody.js +16 -21
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/Word.js +21 -24
- package/ui/Word.js.map +1 -1
- package/utils/message/isVoiceMessage.js +6 -5
- package/utils/message/isVoiceMessage.js.map +1 -1
- package/chunks/bundle-4W3uBGU3.js.map +0 -1
- package/chunks/bundle-90vsNbxW.js.map +0 -1
- package/chunks/bundle-BAQj91eb.js.map +0 -1
- package/chunks/bundle-BBowfNDO.js.map +0 -1
- package/chunks/bundle-BE58pe-0.js.map +0 -1
- package/chunks/bundle-BFqR1X1Q.js.map +0 -1
- package/chunks/bundle-BMygDCXK.js.map +0 -1
- package/chunks/bundle-BP1CB0js.js.map +0 -1
- package/chunks/bundle-BR3O1lZq.js.map +0 -1
- package/chunks/bundle-BWM5xqIs.js +0 -57
- package/chunks/bundle-BWM5xqIs.js.map +0 -1
- package/chunks/bundle-BiPxcZtH.js.map +0 -1
- package/chunks/bundle-Bk5X1tDl.js +0 -8
- package/chunks/bundle-Bk5X1tDl.js.map +0 -1
- package/chunks/bundle-C1U8wE49.js.map +0 -1
- package/chunks/bundle-C9dF4QVS.js.map +0 -1
- package/chunks/bundle-CB5ZFhrW.js +0 -9
- package/chunks/bundle-CB5ZFhrW.js.map +0 -1
- package/chunks/bundle-CDjVXDOc.js.map +0 -1
- package/chunks/bundle-CDvvzlad.js.map +0 -1
- package/chunks/bundle-CHzQIw7_.js +0 -43
- package/chunks/bundle-CHzQIw7_.js.map +0 -1
- package/chunks/bundle-CZsW3iP9.js.map +0 -1
- package/chunks/bundle-CbEyAimK.js.map +0 -1
- package/chunks/bundle-Ci2fMtNJ.js.map +0 -1
- package/chunks/bundle-Ctm0h0rU.js +0 -12
- package/chunks/bundle-Ctm0h0rU.js.map +0 -1
- package/chunks/bundle-Cu4bYcMG.js +0 -67
- package/chunks/bundle-Cu4bYcMG.js.map +0 -1
- package/chunks/bundle-CzdrQ_Yq.js.map +0 -1
- package/chunks/bundle-DCbJaskZ.js.map +0 -1
- package/chunks/bundle-DImSV9VW.js.map +0 -1
- package/chunks/bundle-DUTyBaXr.js.map +0 -1
- package/chunks/bundle-DWrM1EW4.js.map +0 -1
- package/chunks/bundle-DYeeW5nS.js.map +0 -1
- package/chunks/bundle-DaKZZ13Y.js.map +0 -1
- package/chunks/bundle-Deel9XzY.js.map +0 -1
- package/chunks/bundle-DfDrbjM5.js.map +0 -1
- package/chunks/bundle-DjgT6gu4.js.map +0 -1
- package/chunks/bundle-DkviGBGz.js.map +0 -1
- package/chunks/bundle-Dpdq7qeD.js.map +0 -1
- package/chunks/bundle-DrHsf0sP.js.map +0 -1
- package/chunks/bundle-Dskg5qjd.js.map +0 -1
- package/chunks/bundle-DtycZWOo.js +0 -20
- package/chunks/bundle-DtycZWOo.js.map +0 -1
- package/chunks/bundle-DvcOxLrR.js.map +0 -1
- package/chunks/bundle-Dvg19muo.js.map +0 -1
- package/chunks/bundle-LPNnEgGp.js.map +0 -1
- package/chunks/bundle-LWpHaUiZ.js.map +0 -1
- package/chunks/bundle-MkyS3j4-.js.map +0 -1
- package/chunks/bundle-MrMJJXf2.js +0 -34
- package/chunks/bundle-MrMJJXf2.js.map +0 -1
- package/chunks/bundle-MyLy9AIu.js +0 -367
- package/chunks/bundle-P-vXuw8U.js.map +0 -1
- package/chunks/bundle-TGosz9cX.js.map +0 -1
- package/chunks/bundle-V4PrrT67.js.map +0 -1
- package/chunks/bundle-eYHtE5ry.js.map +0 -1
- package/chunks/bundle-gQ2a8Eki.js.map +0 -1
- package/chunks/bundle-jw_xHmHg.js.map +0 -1
- package/chunks/bundle-k6zcGkBp.js.map +0 -1
- package/cjs/chunks/bundle-4i5ybSGL.js +0 -107
- package/cjs/chunks/bundle-4i5ybSGL.js.map +0 -1
- package/cjs/chunks/bundle-6UD0H-nz.js.map +0 -1
- package/cjs/chunks/bundle-A5UoPEJO.js.map +0 -1
- package/cjs/chunks/bundle-Aw-PHA-I.js.map +0 -1
- package/cjs/chunks/bundle-B0uIbH1T.js.map +0 -1
- package/cjs/chunks/bundle-B2zio8XF.js.map +0 -1
- package/cjs/chunks/bundle-B3LOu7kN.js.map +0 -1
- package/cjs/chunks/bundle-B5aEwfu1.js.map +0 -1
- package/cjs/chunks/bundle-BAF8GaDh.js.map +0 -1
- package/cjs/chunks/bundle-BFFRQpby.js.map +0 -1
- package/cjs/chunks/bundle-BFPhV1oD.js +0 -10
- package/cjs/chunks/bundle-BFPhV1oD.js.map +0 -1
- package/cjs/chunks/bundle-BFXyNnQ0.js +0 -11
- package/cjs/chunks/bundle-BFXyNnQ0.js.map +0 -1
- package/cjs/chunks/bundle-BL1sGjVd.js.map +0 -1
- package/cjs/chunks/bundle-BOCivP7e.js.map +0 -1
- package/cjs/chunks/bundle-BSfpBazH.js.map +0 -1
- package/cjs/chunks/bundle-BUuEhLl0.js +0 -26
- package/cjs/chunks/bundle-BUuEhLl0.js.map +0 -1
- package/cjs/chunks/bundle-BZd597ep.js.map +0 -1
- package/cjs/chunks/bundle-BcIrmepz.js.map +0 -1
- package/cjs/chunks/bundle-Bc_sQb3i.js.map +0 -1
- package/cjs/chunks/bundle-BfjugOIp.js.map +0 -1
- package/cjs/chunks/bundle-Bhf_RRfA.js.map +0 -1
- package/cjs/chunks/bundle-BloKh_k7.js.map +0 -1
- package/cjs/chunks/bundle-BpThX3wu.js.map +0 -1
- package/cjs/chunks/bundle-Bu4cmOCm.js.map +0 -1
- package/cjs/chunks/bundle-ByQJ042a.js.map +0 -1
- package/cjs/chunks/bundle-C3_KfqSN.js.map +0 -1
- package/cjs/chunks/bundle-CNvRk1Z6.js.map +0 -1
- package/cjs/chunks/bundle-CT3qZJLT.js +0 -36
- package/cjs/chunks/bundle-CT3qZJLT.js.map +0 -1
- package/cjs/chunks/bundle-CYAm3mYC.js +0 -50
- package/cjs/chunks/bundle-CYAm3mYC.js.map +0 -1
- package/cjs/chunks/bundle-CfUeEOi0.js.map +0 -1
- package/cjs/chunks/bundle-ChDTEa9-.js.map +0 -1
- package/cjs/chunks/bundle-Clz7RiTn.js.map +0 -1
- package/cjs/chunks/bundle-Cq5LKFhE.js.map +0 -1
- package/cjs/chunks/bundle-D-kYFL1Z.js.map +0 -1
- package/cjs/chunks/bundle-D1slQ3hS.js.map +0 -1
- package/cjs/chunks/bundle-D30swLTX.js.map +0 -1
- package/cjs/chunks/bundle-D6fimwV5.js.map +0 -1
- package/cjs/chunks/bundle-D7uROwt_.js +0 -73
- package/cjs/chunks/bundle-D7uROwt_.js.map +0 -1
- package/cjs/chunks/bundle-DHPSwRDh.js.map +0 -1
- package/cjs/chunks/bundle-DHZYT5M_.js.map +0 -1
- package/cjs/chunks/bundle-DL3fuSPu.js.map +0 -1
- package/cjs/chunks/bundle-DQy9DqFO.js +0 -84
- package/cjs/chunks/bundle-DQy9DqFO.js.map +0 -1
- package/cjs/chunks/bundle-DTD48j2K.js.map +0 -1
- package/cjs/chunks/bundle-DVc6YedH.js.map +0 -1
- package/cjs/chunks/bundle-DWfeFlxG.js.map +0 -1
- package/cjs/chunks/bundle-DX3sBwvt.js.map +0 -1
- package/cjs/chunks/bundle-DYjhaLRW.js.map +0 -1
- package/cjs/chunks/bundle-DkDRIPJe.js.map +0 -1
- package/cjs/chunks/bundle-Dq5LRxGL.js.map +0 -1
- package/cjs/chunks/bundle-DuSS5Dmw.js.map +0 -1
- package/cjs/chunks/bundle-DzEGN4bG.js.map +0 -1
- package/cjs/chunks/bundle-JpIugjtL.js.map +0 -1
- package/cjs/chunks/bundle-Khwf-z37.js.map +0 -1
- package/cjs/chunks/bundle-Ol1CxgYk.js +0 -385
- package/cjs/chunks/bundle-Ol1CxgYk.js.map +0 -1
- package/cjs/chunks/bundle-QF_AmnwV.js.map +0 -1
- package/cjs/chunks/bundle-R7sVfaA9.js.map +0 -1
- package/cjs/chunks/bundle-S-XkXH4q.js.map +0 -1
- package/cjs/chunks/bundle-XANrnOqB.js.map +0 -1
- package/cjs/chunks/bundle-XxCVYLKy.js.map +0 -1
- package/cjs/chunks/bundle-YTiDKoON.js.map +0 -1
- package/cjs/chunks/bundle-m5OpCHlj.js.map +0 -1
- package/cjs/chunks/bundle-nWxq3V_Q.js.map +0 -1
- package/cjs/chunks/bundle-n_Z6yPjx.js.map +0 -1
- package/cjs/chunks/bundle-qMxPIH0k.js.map +0 -1
- package/cjs/chunks/bundle-s1cLz65w.js.map +0 -1
- package/cjs/useSendbirdStateContext.js +0 -27
- package/cjs/useSendbirdStateContext.js.map +0 -1
- package/cjs/withSendbird.js +0 -33
- package/cjs/withSendbird.js.map +0 -1
- package/types/hooks/useAppendDomNode.d.ts +0 -2
- package/types/hooks/useSendbirdStateContext.d.ts +0 -3
- package/types/lib/Sendbird.d.ts +0 -67
- package/types/lib/SendbirdSdkContext.d.ts +0 -12
- package/types/lib/SendbirdState.d.ts +0 -7
- package/types/lib/dux/appInfo/actionTypes.d.ts +0 -26
- package/types/lib/dux/appInfo/initialState.d.ts +0 -23
- package/types/lib/dux/appInfo/reducers.d.ts +0 -3
- package/types/lib/dux/appInfo/utils.d.ts +0 -7
- package/types/lib/dux/sdk/actionTypes.d.ts +0 -16
- package/types/lib/dux/sdk/initialState.d.ts +0 -9
- package/types/lib/dux/sdk/reducers.d.ts +0 -3
- package/types/lib/dux/user/actionTypes.d.ts +0 -14
- package/types/lib/dux/user/initialState.d.ts +0 -8
- package/types/lib/dux/user/reducers.d.ts +0 -3
- package/types/lib/hooks/useConnect/__test__/data.mocks.d.ts +0 -16
- package/types/lib/hooks/useConnect/connect.d.ts +0 -2
- package/types/lib/hooks/useConnect/disconnectSdk.d.ts +0 -2
- package/types/lib/hooks/useConnect/index.d.ts +0 -2
- package/types/lib/hooks/useConnect/setupConnection.d.ts +0 -22
- package/types/lib/hooks/useConnect/types.d.ts +0 -47
- package/types/modules/GroupChannel/context/hooks/useToggleReactionCallback.d.ts +0 -4
- package/types/modules/MessageSearch/context/dux/actionTypes.d.ts +0 -8
- package/types/modules/MessageSearch/context/dux/initialState.d.ts +0 -14
- package/types/modules/MessageSearch/context/dux/reducers.d.ts +0 -7
- package/types/modules/Thread/context/dux/actionTypes.d.ts +0 -38
- package/types/modules/Thread/context/dux/initialState.d.ts +0 -22
- package/types/modules/Thread/context/dux/reducer.d.ts +0 -8
- package/useSendbirdStateContext.js +0 -22
- package/useSendbirdStateContext.js.map +0 -1
- package/withSendbird.js +0 -24
- package/withSendbird.js.map +0 -1
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import { _ as __assign, a as __spreadArray, b as __awaiter, c as __generator } from './bundle-B8Grfnrx.js';
|
|
2
|
+
import React__default, { useState, useRef, useEffect, useContext, useMemo } from 'react';
|
|
3
|
+
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
4
|
+
import { GroupChannel } from '../GroupChannel.js';
|
|
5
|
+
import { u as useGroupChannelList, c as GroupChannelListProvider } from './bundle-Bc6hXWJF.js';
|
|
6
|
+
import { GroupChannelListHeader } from '../GroupChannelList/components/GroupChannelListHeader.js';
|
|
7
|
+
import EditUserProfile from '../EditUserProfile.js';
|
|
8
|
+
import PlaceHolder, { PlaceHolderTypes } from '../ui/PlaceHolder.js';
|
|
9
|
+
import { u as useOnScrollPositionChangeDetector } from './bundle-DqR5RvpV.js';
|
|
10
|
+
import { u as useSendbird } from './bundle-I25ah_Bv.js';
|
|
11
|
+
import { GroupChannelPreviewAction } from '../GroupChannelList/components/GroupChannelPreviewAction.js';
|
|
12
|
+
import { GroupChannelListItem } from '../GroupChannelList/components/GroupChannelListItem.js';
|
|
13
|
+
import IconButton from '../ui/IconButton.js';
|
|
14
|
+
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
15
|
+
import { L as LocalizationContext } from './bundle-l_QLKq1Y.js';
|
|
16
|
+
import { u as useMediaQueryContext } from './bundle-yKqHFFfz.js';
|
|
17
|
+
import { M as Modal } from './bundle-LnGQMQVt.js';
|
|
18
|
+
import { L as Label, b as LabelColors, a as LabelTypography } from './bundle-HspRRkmy.js';
|
|
19
|
+
import { ButtonTypes } from '../ui/Button.js';
|
|
20
|
+
import { UserListItem } from '../ui/UserListItem.js';
|
|
21
|
+
import { n as noop } from './bundle-CDcu1I4f.js';
|
|
22
|
+
import { c as createStore, u as useStore, s as shimExports } from './bundle-C4OmfIXk.js';
|
|
23
|
+
import { getCreateGroupChannel, getSdk } from '../sendbirdSelectors.js';
|
|
24
|
+
import '@sendbird/uikit-tools';
|
|
25
|
+
import { u as useVoicePlayerContext, b as ALL } from './bundle-zOZq2Vpt.js';
|
|
26
|
+
import '../VoiceRecorder/context.js';
|
|
27
|
+
import '../hooks/useModal.js';
|
|
28
|
+
import './bundle-Dkmv9H3b.js';
|
|
29
|
+
import 'css-vars-ponyfill';
|
|
30
|
+
import '@sendbird/chat';
|
|
31
|
+
import { A as APP_LAYOUT_ROOT } from './bundle-QCH8CZT8.js';
|
|
32
|
+
import '@sendbird/chat/openChannel';
|
|
33
|
+
import 'react-dom';
|
|
34
|
+
import './bundle-CgLhYjm5.js';
|
|
35
|
+
import './bundle-D4BlmM5H.js';
|
|
36
|
+
import './bundle-DZJe3dCn.js';
|
|
37
|
+
import './bundle-DgFzcADJ.js';
|
|
38
|
+
import '../ui/Header.js';
|
|
39
|
+
import './bundle-BciLDE6M.js';
|
|
40
|
+
import './bundle-DED6q4Ti.js';
|
|
41
|
+
import '../ui/MessageInput.js';
|
|
42
|
+
import './bundle-Dd7rgmeQ.js';
|
|
43
|
+
import '../ui/ReactionButton.js';
|
|
44
|
+
import '../ui/ReactionBadge.js';
|
|
45
|
+
import './bundle-BYqblmEM.js';
|
|
46
|
+
import '../Message/context.js';
|
|
47
|
+
import './bundle-De-3zaYV.js';
|
|
48
|
+
import '@sendbird/chat/message';
|
|
49
|
+
import '../ui/ThreadReplies.js';
|
|
50
|
+
import './bundle-CwHldvb8.js';
|
|
51
|
+
import '../ui/TemplateMessageItemBody.js';
|
|
52
|
+
import '../ui/FeedbackIconButton.js';
|
|
53
|
+
import '../ui/Input.js';
|
|
54
|
+
import '../ui/MessageContent.js';
|
|
55
|
+
import './bundle--1cImOGd.js';
|
|
56
|
+
import '../GroupChannel/components/MessageList.js';
|
|
57
|
+
import './bundle-uthnB1Zu.js';
|
|
58
|
+
import '../EditUserProfile/context.js';
|
|
59
|
+
import '../Channel/context.js';
|
|
60
|
+
import { u as useChannelListContext, S as SET_CURRENT_CHANNEL, L as LEAVE_CHANNEL_SUCCESS, C as ChannelListProvider } from './bundle-CGOt5cwH.js';
|
|
61
|
+
import './bundle-BkZBhjs8.js';
|
|
62
|
+
import '../ChannelSettings/hooks/useMenuList.js';
|
|
63
|
+
import './bundle-fYlljM7o.js';
|
|
64
|
+
import './bundle-CinANGYQ.js';
|
|
65
|
+
import './bundle-CVS5Kfg_.js';
|
|
66
|
+
import '../Thread/context/types.js';
|
|
67
|
+
import '../utils/message/getOutgoingMessageState.js';
|
|
68
|
+
import 'date-fns';
|
|
69
|
+
import '../Thread/components/ThreadMessageInput.js';
|
|
70
|
+
import Channel from '../Channel.js';
|
|
71
|
+
import ChannelPreview from '../ChannelList/components/ChannelPreview.js';
|
|
72
|
+
import ChannelSettings from '../ChannelSettings.js';
|
|
73
|
+
import MessageSearchPannel from '../MessageSearch.js';
|
|
74
|
+
import Thread from '../Thread.js';
|
|
75
|
+
import { u as uuidv4 } from './bundle-CTkGIdt8.js';
|
|
76
|
+
import './bundle-BoZwl2OL.js';
|
|
77
|
+
import '../OpenChannel/components/OpenChannelInput.js';
|
|
78
|
+
import '../OpenChannel/components/OpenChannelMessageList.js';
|
|
79
|
+
import '../OpenChannelSettings/context.js';
|
|
80
|
+
import '../ui/AccordionGroup.js';
|
|
81
|
+
|
|
82
|
+
var GroupChannelListUIView = function (_a) {
|
|
83
|
+
var renderHeader = _a.renderHeader, renderPlaceHolderError = _a.renderPlaceHolderError, renderPlaceHolderLoading = _a.renderPlaceHolderLoading, renderPlaceHolderEmptyList = _a.renderPlaceHolderEmptyList, onChangeTheme = _a.onChangeTheme, onUserProfileUpdated = _a.onUserProfileUpdated, allowProfileEdit = _a.allowProfileEdit, channels = _a.channels, onLoadMore = _a.onLoadMore, initialized = _a.initialized, renderChannel = _a.renderChannel, renderAddChannel = _a.renderAddChannel, scrollRef = _a.scrollRef;
|
|
84
|
+
var _b = useState(false), showProfileEdit = _b[0], setShowProfileEdit = _b[1];
|
|
85
|
+
var stores = useSendbird().state.stores;
|
|
86
|
+
var renderer = {
|
|
87
|
+
addChannel: renderAddChannel,
|
|
88
|
+
channel: renderChannel,
|
|
89
|
+
placeholder: {
|
|
90
|
+
loading: function () {
|
|
91
|
+
if (initialized)
|
|
92
|
+
return null;
|
|
93
|
+
if (renderPlaceHolderLoading)
|
|
94
|
+
return renderPlaceHolderLoading();
|
|
95
|
+
return React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.LOADING });
|
|
96
|
+
},
|
|
97
|
+
empty: function () {
|
|
98
|
+
if (!initialized)
|
|
99
|
+
return null;
|
|
100
|
+
if (renderPlaceHolderEmptyList)
|
|
101
|
+
return renderPlaceHolderEmptyList();
|
|
102
|
+
return React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.NO_CHANNELS });
|
|
103
|
+
},
|
|
104
|
+
error: function () {
|
|
105
|
+
if (!initialized || !stores.sdkStore.error)
|
|
106
|
+
return null;
|
|
107
|
+
if (renderPlaceHolderError)
|
|
108
|
+
return renderPlaceHolderError();
|
|
109
|
+
return React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.WRONG });
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
114
|
+
React__default.createElement("div", { className: "sendbird-channel-list__header" }, (renderHeader === null || renderHeader === void 0 ? void 0 : renderHeader()) || (React__default.createElement(GroupChannelListHeader, { onEdit: function () { return allowProfileEdit && setShowProfileEdit(true); }, allowProfileEdit: allowProfileEdit, renderIconButton: function () { return renderer.addChannel(); } }))),
|
|
115
|
+
showProfileEdit && (React__default.createElement(EditUserProfile, { onThemeChange: onChangeTheme, onCancel: function () { return setShowProfileEdit(false); }, onEditProfile: function (user) {
|
|
116
|
+
setShowProfileEdit(false);
|
|
117
|
+
onUserProfileUpdated(user);
|
|
118
|
+
} })),
|
|
119
|
+
React__default.createElement(ChannelListComponent, { data: channels, renderItem: renderer.channel, onLoadMore: onLoadMore, placeholderLoading: renderer.placeholder.loading(), placeholderEmpty: renderer.placeholder.empty(), placeholderError: renderer.placeholder.error(), scrollRef: scrollRef })));
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* To do: Implement windowing
|
|
123
|
+
* Implement windowing if you are dealing with large number of messages/channels
|
|
124
|
+
* https://github.com/bvaughn/react-window -> recommendation
|
|
125
|
+
* We hesitate to bring one more dependency to our library,
|
|
126
|
+
* we are planning to implement it inside the library
|
|
127
|
+
* */
|
|
128
|
+
var ChannelListComponent = function (props) {
|
|
129
|
+
var data = props.data, renderItem = props.renderItem, onLoadMore = props.onLoadMore, placeholderLoading = props.placeholderLoading, placeholderError = props.placeholderError, placeholderEmpty = props.placeholderEmpty, scrollRef = props.scrollRef;
|
|
130
|
+
var onScroll = useOnScrollPositionChangeDetector({
|
|
131
|
+
onReachedBottom: function () { return onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore(); },
|
|
132
|
+
});
|
|
133
|
+
return (React__default.createElement("div", { className: 'sendbird-channel-list__body', onScroll: onScroll, ref: scrollRef },
|
|
134
|
+
placeholderError,
|
|
135
|
+
React__default.createElement("div", null, data.map(function (item, index) { return renderItem({ item: item, index: index }); })),
|
|
136
|
+
placeholderLoading,
|
|
137
|
+
data.length === 0 && placeholderEmpty));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
var filterUser = function (idsToFilter) { return function (currentId) { return idsToFilter === null || idsToFilter === void 0 ? void 0 : idsToFilter.includes(currentId); }; };
|
|
141
|
+
var setChannelType = function (params, type) {
|
|
142
|
+
if (type === 'broadcast') {
|
|
143
|
+
// eslint-disable-next-line no-param-reassign
|
|
144
|
+
params.isBroadcast = true;
|
|
145
|
+
}
|
|
146
|
+
if (type === 'supergroup') {
|
|
147
|
+
// eslint-disable-next-line no-param-reassign
|
|
148
|
+
params.isSuper = true;
|
|
149
|
+
}
|
|
150
|
+
return params;
|
|
151
|
+
};
|
|
152
|
+
var createDefaultUserListQuery = function (_a) {
|
|
153
|
+
var sdk = _a.sdk, userFilledApplicationUserListQuery = _a.userFilledApplicationUserListQuery;
|
|
154
|
+
var params = sdk.createApplicationUserListQuery();
|
|
155
|
+
if (userFilledApplicationUserListQuery) {
|
|
156
|
+
Object.keys(userFilledApplicationUserListQuery).forEach(function (key) {
|
|
157
|
+
// @ts-ignore
|
|
158
|
+
params[key] = userFilledApplicationUserListQuery[key];
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
return params;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
var CHANNEL_TYPE;
|
|
165
|
+
(function (CHANNEL_TYPE) {
|
|
166
|
+
CHANNEL_TYPE["GROUP"] = "group";
|
|
167
|
+
CHANNEL_TYPE["SUPERGROUP"] = "supergroup";
|
|
168
|
+
CHANNEL_TYPE["BROADCAST"] = "broadcast";
|
|
169
|
+
})(CHANNEL_TYPE || (CHANNEL_TYPE = {}));
|
|
170
|
+
|
|
171
|
+
var CreateChannelContext = React__default.createContext(null);
|
|
172
|
+
var initialState = {
|
|
173
|
+
sdk: undefined,
|
|
174
|
+
userListQuery: undefined,
|
|
175
|
+
onCreateChannelClick: undefined,
|
|
176
|
+
onChannelCreated: undefined,
|
|
177
|
+
onBeforeCreateChannel: undefined,
|
|
178
|
+
pageStep: 0,
|
|
179
|
+
type: CHANNEL_TYPE.GROUP,
|
|
180
|
+
onCreateChannel: undefined,
|
|
181
|
+
overrideInviteUser: undefined,
|
|
182
|
+
};
|
|
183
|
+
var CreateChannelManager = function (props) {
|
|
184
|
+
var onCreateChannelClick = props.onCreateChannelClick, onBeforeCreateChannel = props.onBeforeCreateChannel, onChannelCreated = props.onChannelCreated, userListQuery = props.userListQuery, onCreateChannel = props.onCreateChannel, overrideInviteUser = props.overrideInviteUser;
|
|
185
|
+
var updateState = useCreateChannelStore().updateState;
|
|
186
|
+
var config = useSendbird().state.config;
|
|
187
|
+
var _userListQuery = userListQuery !== null && userListQuery !== void 0 ? userListQuery : config === null || config === void 0 ? void 0 : config.userListQuery;
|
|
188
|
+
useEffect(function () {
|
|
189
|
+
updateState({
|
|
190
|
+
onCreateChannelClick: onCreateChannelClick,
|
|
191
|
+
onBeforeCreateChannel: onBeforeCreateChannel,
|
|
192
|
+
onChannelCreated: onChannelCreated,
|
|
193
|
+
userListQuery: _userListQuery,
|
|
194
|
+
onCreateChannel: onCreateChannel,
|
|
195
|
+
overrideInviteUser: overrideInviteUser,
|
|
196
|
+
});
|
|
197
|
+
}, [
|
|
198
|
+
onCreateChannelClick,
|
|
199
|
+
onBeforeCreateChannel,
|
|
200
|
+
onChannelCreated,
|
|
201
|
+
userListQuery,
|
|
202
|
+
onCreateChannel,
|
|
203
|
+
overrideInviteUser,
|
|
204
|
+
_userListQuery,
|
|
205
|
+
]);
|
|
206
|
+
return null;
|
|
207
|
+
};
|
|
208
|
+
var CreateChannelProvider = function (props) {
|
|
209
|
+
var children = props.children;
|
|
210
|
+
return (React__default.createElement(InternalCreateChannelProvider, null,
|
|
211
|
+
React__default.createElement(CreateChannelManager, __assign({}, props)),
|
|
212
|
+
children));
|
|
213
|
+
};
|
|
214
|
+
var createCreateChannelStore = function () { return createStore(initialState); };
|
|
215
|
+
var InternalCreateChannelProvider = function (_a) {
|
|
216
|
+
var children = _a.children;
|
|
217
|
+
var storeRef = useRef(createCreateChannelStore());
|
|
218
|
+
return (React__default.createElement(CreateChannelContext.Provider, { value: storeRef.current }, children));
|
|
219
|
+
};
|
|
220
|
+
var useCreateChannelStore = function () {
|
|
221
|
+
return useStore(CreateChannelContext, function (state) { return state; }, initialState);
|
|
222
|
+
};
|
|
223
|
+
var useCreateChannelContext = function () {
|
|
224
|
+
var _a = useCreateChannel(), state = _a.state, actions = _a.actions;
|
|
225
|
+
return __assign(__assign({}, state), actions);
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
var useCreateChannel = function () {
|
|
229
|
+
var store = useContext(CreateChannelContext);
|
|
230
|
+
var sendbirdStore = useSendbirdStateContext();
|
|
231
|
+
if (!store)
|
|
232
|
+
throw new Error('useCreateChannel must be used within a CreateChannelProvider');
|
|
233
|
+
var state = shimExports.useSyncExternalStore(store.subscribe, store.getState);
|
|
234
|
+
var actions = useMemo(function () { return ({
|
|
235
|
+
setPageStep: function (pageStep) { return store.setState(function (state) { return (__assign(__assign({}, state), { pageStep: pageStep })); }); },
|
|
236
|
+
setType: function (type) { return store.setState(function (state) { return (__assign(__assign({}, state), { type: type })); }); },
|
|
237
|
+
createChannel: getCreateGroupChannel(sendbirdStore),
|
|
238
|
+
}); }, [store]);
|
|
239
|
+
return { state: state, actions: actions };
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
var BUFFER = 50;
|
|
243
|
+
var InviteUsers = function (_a) {
|
|
244
|
+
var onCancel = _a.onCancel, userListQuery = _a.userListQuery;
|
|
245
|
+
var _b = useCreateChannel(), _c = _b.state, onCreateChannelClick = _c.onCreateChannelClick, onBeforeCreateChannel = _c.onBeforeCreateChannel, onChannelCreated = _c.onChannelCreated, onCreateChannel = _c.onCreateChannel, overrideInviteUser = _c.overrideInviteUser, type = _c.type, createChannel = _b.actions.createChannel;
|
|
246
|
+
var _d = useSendbird().state, userId = _d.config.userId, sdk = _d.stores.sdkStore.sdk;
|
|
247
|
+
var idsToFilter = [userId];
|
|
248
|
+
var _e = useState([]), users = _e[0], setUsers = _e[1];
|
|
249
|
+
var _f = useState({}), selectedUsers = _f[0], setSelectedUsers = _f[1];
|
|
250
|
+
var stringSet = useContext(LocalizationContext).stringSet;
|
|
251
|
+
var _g = useState(null), usersDataSource = _g[0], setUsersDataSource = _g[1];
|
|
252
|
+
var selectedCount = Object.keys(selectedUsers).length;
|
|
253
|
+
var titleText = stringSet.MODAL__CREATE_CHANNEL__TITLE;
|
|
254
|
+
var submitText = stringSet.BUTTON__CREATE;
|
|
255
|
+
var isMobile = useMediaQueryContext().isMobile;
|
|
256
|
+
var _h = useState(window.innerHeight), scrollableAreaHeight = _h[0], setScrollableAreaHeight = _h[1];
|
|
257
|
+
useEffect(function () {
|
|
258
|
+
var applicationUserListQuery = userListQuery ? userListQuery() : createDefaultUserListQuery({ sdk: sdk });
|
|
259
|
+
setUsersDataSource(applicationUserListQuery);
|
|
260
|
+
if (!(applicationUserListQuery === null || applicationUserListQuery === void 0 ? void 0 : applicationUserListQuery.isLoading)) {
|
|
261
|
+
applicationUserListQuery.next().then(function (it) {
|
|
262
|
+
setUsers(it);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}, []);
|
|
266
|
+
// To fix navbar break in mobile we set dynamic height to the scrollable area
|
|
267
|
+
useEffect(function () {
|
|
268
|
+
var scrollableAreaHeight = function () {
|
|
269
|
+
setScrollableAreaHeight(window.innerHeight);
|
|
270
|
+
};
|
|
271
|
+
window.addEventListener('resize', scrollableAreaHeight);
|
|
272
|
+
return function () {
|
|
273
|
+
window.removeEventListener('resize', scrollableAreaHeight);
|
|
274
|
+
};
|
|
275
|
+
}, []);
|
|
276
|
+
return (React__default.createElement(Modal, { isFullScreenOnMobile: true, titleText: titleText, submitText: submitText, type: ButtonTypes.PRIMARY,
|
|
277
|
+
// Disable the create button if no users are selected,
|
|
278
|
+
// but if there's only the logged-in user in the user list,
|
|
279
|
+
// then the create button should be enabled
|
|
280
|
+
disabled: users.length > 1 && Object.keys(selectedUsers).length === 0, onCancel: onCancel, onSubmit: function () {
|
|
281
|
+
var selectedUserList = Object.keys(selectedUsers).length > 0
|
|
282
|
+
? Object.keys(selectedUsers)
|
|
283
|
+
: [userId];
|
|
284
|
+
var _onChannelCreated = onChannelCreated !== null && onChannelCreated !== void 0 ? onChannelCreated : onCreateChannel;
|
|
285
|
+
var _onCreateChannelClick = onCreateChannelClick !== null && onCreateChannelClick !== void 0 ? onCreateChannelClick : overrideInviteUser;
|
|
286
|
+
if (typeof _onCreateChannelClick === 'function') {
|
|
287
|
+
_onCreateChannelClick({
|
|
288
|
+
users: selectedUserList,
|
|
289
|
+
onClose: onCancel !== null && onCancel !== void 0 ? onCancel : noop,
|
|
290
|
+
channelType: type,
|
|
291
|
+
});
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
if (onBeforeCreateChannel) {
|
|
295
|
+
var params = onBeforeCreateChannel(selectedUserList);
|
|
296
|
+
setChannelType(params, type);
|
|
297
|
+
createChannel(params).then(function (channel) { return _onChannelCreated === null || _onChannelCreated === void 0 ? void 0 : _onChannelCreated(channel); });
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
var params = {};
|
|
301
|
+
params.invitedUserIds = selectedUserList;
|
|
302
|
+
params.isDistinct = false;
|
|
303
|
+
if (userId) {
|
|
304
|
+
params.operatorUserIds = [userId];
|
|
305
|
+
}
|
|
306
|
+
setChannelType(params, type);
|
|
307
|
+
// do not have custom params
|
|
308
|
+
createChannel(params).then(function (channel) { return _onChannelCreated === null || _onChannelCreated === void 0 ? void 0 : _onChannelCreated(channel); });
|
|
309
|
+
}
|
|
310
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
311
|
+
} },
|
|
312
|
+
React__default.createElement("div", null,
|
|
313
|
+
React__default.createElement(Label, { color: (selectedCount > 0) ? LabelColors.PRIMARY : LabelColors.ONBACKGROUND_3, type: LabelTypography.CAPTION_1 }, "".concat(selectedCount, " ").concat(stringSet.MODAL__INVITE_MEMBER__SELECTED)),
|
|
314
|
+
React__default.createElement("div", { className: "sendbird-create-channel--scroll", style: isMobile ? { height: "calc(".concat(scrollableAreaHeight, "px - 200px)") } : {}, onScroll: function (e) {
|
|
315
|
+
if (!usersDataSource)
|
|
316
|
+
return;
|
|
317
|
+
var eventTarget = e.target;
|
|
318
|
+
var hasNext = usersDataSource.hasNext, isLoading = usersDataSource.isLoading;
|
|
319
|
+
var fetchMore = ((eventTarget.clientHeight + eventTarget.scrollTop + BUFFER) > eventTarget.scrollHeight);
|
|
320
|
+
if (hasNext && fetchMore && !isLoading) {
|
|
321
|
+
usersDataSource.next().then(function (usersBatch) {
|
|
322
|
+
setUsers(__spreadArray(__spreadArray([], users, true), usersBatch, true));
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
} }, users.map(function (user) { return (!filterUser(idsToFilter)(user.userId)) && (React__default.createElement(UserListItem, { key: user.userId, user: user, checkBox: true, checked: selectedUsers[user.userId], onChange: function (event) {
|
|
326
|
+
var _a;
|
|
327
|
+
var modifiedSelectedUsers = __assign(__assign({}, selectedUsers), (_a = {}, _a[event.target.id] = event.target.checked, _a));
|
|
328
|
+
if (!event.target.checked) {
|
|
329
|
+
delete modifiedSelectedUsers[event.target.id];
|
|
330
|
+
}
|
|
331
|
+
setSelectedUsers(modifiedSelectedUsers);
|
|
332
|
+
} })); })))));
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
var isBroadcastChannelEnabled = function (sdk) {
|
|
336
|
+
var _a;
|
|
337
|
+
var ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';
|
|
338
|
+
var applicationAttributes = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) === null || _a === void 0 ? void 0 : _a.applicationAttributes;
|
|
339
|
+
if (Array.isArray(applicationAttributes)) {
|
|
340
|
+
return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);
|
|
341
|
+
}
|
|
342
|
+
return false;
|
|
343
|
+
};
|
|
344
|
+
var isSuperGroupChannelEnabled = function (sdk) {
|
|
345
|
+
var _a;
|
|
346
|
+
var ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';
|
|
347
|
+
var applicationAttributes = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) === null || _a === void 0 ? void 0 : _a.applicationAttributes;
|
|
348
|
+
if (Array.isArray(applicationAttributes)) {
|
|
349
|
+
return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);
|
|
350
|
+
}
|
|
351
|
+
return false;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
var SelectChannelType = function (props) {
|
|
355
|
+
var onCancel = props.onCancel;
|
|
356
|
+
var state = useSendbird().state;
|
|
357
|
+
var sdk = getSdk(state);
|
|
358
|
+
var _a = useCreateChannel().actions, setPageStep = _a.setPageStep, setType = _a.setType;
|
|
359
|
+
var stringSet = useContext(LocalizationContext).stringSet;
|
|
360
|
+
var isBroadcastAvailable = isBroadcastChannelEnabled(sdk);
|
|
361
|
+
var isSupergroupAvailable = isSuperGroupChannelEnabled(sdk);
|
|
362
|
+
return (React__default.createElement(Modal, { titleText: stringSet === null || stringSet === void 0 ? void 0 : stringSet.MODAL__CREATE_CHANNEL__TITLE, hideFooter: true, onCancel: function () { onCancel === null || onCancel === void 0 ? void 0 : onCancel(); }, className: "sendbird-add-channel__modal" },
|
|
363
|
+
React__default.createElement("div", { className: "sendbird-add-channel__rectangle-wrap" },
|
|
364
|
+
React__default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
365
|
+
setType(CHANNEL_TYPE.GROUP);
|
|
366
|
+
setPageStep(1);
|
|
367
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
368
|
+
setType(CHANNEL_TYPE.GROUP);
|
|
369
|
+
setPageStep(1);
|
|
370
|
+
} },
|
|
371
|
+
React__default.createElement(Icon, { className: "sendbird-add-channel__rectangle__chat-icon", type: IconTypes.CHAT, fillColor: IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
372
|
+
React__default.createElement(Label, { type: LabelTypography.SUBTITLE_1, color: LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__GROUP)),
|
|
373
|
+
isSupergroupAvailable && (React__default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
374
|
+
setType(CHANNEL_TYPE.SUPERGROUP);
|
|
375
|
+
setPageStep(1);
|
|
376
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
377
|
+
setType(CHANNEL_TYPE.SUPERGROUP);
|
|
378
|
+
setPageStep(1);
|
|
379
|
+
} },
|
|
380
|
+
React__default.createElement(Icon, { className: "sendbird-add-channel__rectangle__supergroup-icon", type: IconTypes.SUPERGROUP, fillColor: IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
381
|
+
React__default.createElement(Label, { type: LabelTypography.SUBTITLE_1, color: LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__SUPER))),
|
|
382
|
+
isBroadcastAvailable && (React__default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
383
|
+
setType(CHANNEL_TYPE.BROADCAST);
|
|
384
|
+
setPageStep(1);
|
|
385
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
386
|
+
setType(CHANNEL_TYPE.BROADCAST);
|
|
387
|
+
setPageStep(1);
|
|
388
|
+
} },
|
|
389
|
+
React__default.createElement(Icon, { className: "sendbird-add-channel__rectangle__broadcast-icon", type: IconTypes.BROADCAST, fillColor: IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
390
|
+
React__default.createElement(Label, { type: LabelTypography.SUBTITLE_1, color: LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__BROADCAST))))));
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
var CreateChannel$1 = function (props) {
|
|
394
|
+
var onCancel = props.onCancel, renderStepOne = props.renderStepOne;
|
|
395
|
+
var _a = useCreateChannel(), _b = _a.state, pageStep = _b.pageStep, userListQuery = _b.userListQuery, setPageStep = _a.actions.setPageStep;
|
|
396
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
397
|
+
pageStep === 0 && ((renderStepOne === null || renderStepOne === void 0 ? void 0 : renderStepOne()) || (React__default.createElement(SelectChannelType, { onCancel: onCancel }))),
|
|
398
|
+
pageStep === 1 && (React__default.createElement(InviteUsers, { userListQuery: userListQuery, onCancel: function () {
|
|
399
|
+
setPageStep(0);
|
|
400
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
401
|
+
} }))));
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
var CreateChannel = function (props) {
|
|
405
|
+
return (React__default.createElement(CreateChannelProvider, __assign({}, props),
|
|
406
|
+
React__default.createElement(CreateChannel$1, __assign({}, props))));
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
var AddGroupChannelView = function (_a) {
|
|
410
|
+
var createChannelVisible = _a.createChannelVisible, onChangeCreateChannelVisible = _a.onChangeCreateChannelVisible, onBeforeCreateChannel = _a.onBeforeCreateChannel, onCreateChannelClick = _a.onCreateChannelClick, onChannelCreated = _a.onChannelCreated;
|
|
411
|
+
var config = useSendbird().state.config;
|
|
412
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
413
|
+
React__default.createElement(IconButton, { height: '32px', width: '32px', disabled: !config.isOnline, onClick: function () { return onChangeCreateChannelVisible(true); } },
|
|
414
|
+
React__default.createElement(Icon, { type: IconTypes.CREATE, fillColor: IconColors.PRIMARY, width: '24px', height: '24px' })),
|
|
415
|
+
createChannelVisible && (React__default.createElement(CreateChannel, { onCancel: function () { return onChangeCreateChannelVisible(false); }, onChannelCreated: function (channel) {
|
|
416
|
+
onChannelCreated === null || onChannelCreated === void 0 ? void 0 : onChannelCreated(channel);
|
|
417
|
+
onChangeCreateChannelVisible(false);
|
|
418
|
+
}, onBeforeCreateChannel: onBeforeCreateChannel, onCreateChannelClick: onCreateChannelClick }))));
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
var AddGroupChannel = function () {
|
|
422
|
+
var _a = useState(false), createChannelVisible = _a[0], setCreateChannelVisible = _a[1];
|
|
423
|
+
var _b = useGroupChannelList().state, onChannelCreated = _b.onChannelCreated, onBeforeCreateChannel = _b.onBeforeCreateChannel, onCreateChannelClick = _b.onCreateChannelClick;
|
|
424
|
+
return (React__default.createElement(AddGroupChannelView, { createChannelVisible: createChannelVisible, onChangeCreateChannelVisible: setCreateChannelVisible, onCreateChannelClick: onCreateChannelClick, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: onChannelCreated }));
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
var GroupChannelListUI = function (props) {
|
|
428
|
+
var renderHeader = props.renderHeader, renderChannelPreview = props.renderChannelPreview, renderPlaceHolderError = props.renderPlaceHolderError, renderPlaceHolderLoading = props.renderPlaceHolderLoading, renderPlaceHolderEmptyList = props.renderPlaceHolderEmptyList;
|
|
429
|
+
var _a = useGroupChannelList().state, onChannelSelect = _a.onChannelSelect, onThemeChange = _a.onThemeChange, allowProfileEdit = _a.allowProfileEdit, typingChannelUrls = _a.typingChannelUrls, groupChannels = _a.groupChannels, initialized = _a.initialized, selectedChannelUrl = _a.selectedChannelUrl, loadMore = _a.loadMore, onUserProfileUpdated = _a.onUserProfileUpdated, scrollRef = _a.scrollRef;
|
|
430
|
+
var _b = useSendbird().state, stores = _b.stores, _c = _b.config, logger = _c.logger, isOnline = _c.isOnline;
|
|
431
|
+
var sdk = stores.sdkStore.sdk;
|
|
432
|
+
var renderListItem = function (renderProps) {
|
|
433
|
+
var channel = renderProps.item, index = renderProps.index;
|
|
434
|
+
var itemProps = {
|
|
435
|
+
channel: channel,
|
|
436
|
+
tabIndex: index,
|
|
437
|
+
isSelected: channel.url === selectedChannelUrl,
|
|
438
|
+
isTyping: typingChannelUrls.includes(channel.url),
|
|
439
|
+
renderChannelAction: function (props) { return React__default.createElement(GroupChannelPreviewAction, __assign({}, props)); },
|
|
440
|
+
onClick: function () {
|
|
441
|
+
if (isOnline || (sdk === null || sdk === void 0 ? void 0 : sdk.isCacheEnabled)) {
|
|
442
|
+
logger.info('ChannelList: Clicked on channel:', channel);
|
|
443
|
+
onChannelSelect(channel);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
logger.warning('ChannelList: Inactivated clicking channel item during offline.');
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
onLeaveChannel: function () {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
switch (_a.label) {
|
|
453
|
+
case 0:
|
|
454
|
+
logger.info('ChannelList: Leaving channel', channel);
|
|
455
|
+
return [4 /*yield*/, channel.leave()];
|
|
456
|
+
case 1:
|
|
457
|
+
_a.sent();
|
|
458
|
+
logger.info('ChannelList: Leaving channel success');
|
|
459
|
+
return [2 /*return*/];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
if (renderChannelPreview) {
|
|
466
|
+
return (React__default.createElement("div", { key: channel.url, onClick: itemProps.onClick }, renderChannelPreview(itemProps)));
|
|
467
|
+
}
|
|
468
|
+
return React__default.createElement(GroupChannelListItem, __assign({ key: channel.url }, itemProps));
|
|
469
|
+
};
|
|
470
|
+
return (React__default.createElement(GroupChannelListUIView, { renderHeader: renderHeader, renderChannel: renderListItem, renderPlaceHolderError: renderPlaceHolderError, renderPlaceHolderLoading: renderPlaceHolderLoading, renderPlaceHolderEmptyList: renderPlaceHolderEmptyList, onChangeTheme: onThemeChange !== null && onThemeChange !== void 0 ? onThemeChange : noop, allowProfileEdit: allowProfileEdit, onUserProfileUpdated: onUserProfileUpdated !== null && onUserProfileUpdated !== void 0 ? onUserProfileUpdated : noop, channels: groupChannels, onLoadMore: loadMore, initialized: initialized, renderAddChannel: function () { return React__default.createElement(AddGroupChannel, null); }, scrollRef: scrollRef }));
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
var GroupChannelList = function (props) {
|
|
474
|
+
return (React__default.createElement(GroupChannelListProvider, __assign({}, props),
|
|
475
|
+
React__default.createElement(GroupChannelListUI, __assign({}, props))));
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
var AddChannel = function () {
|
|
479
|
+
var _a = useState(false), showModal = _a[0], setShowModal = _a[1];
|
|
480
|
+
var _b = useChannelListContext(), overrideInviteUser = _b.overrideInviteUser, onBeforeCreateChannel = _b.onBeforeCreateChannel, onChannelSelect = _b.onChannelSelect;
|
|
481
|
+
return (React__default.createElement(AddGroupChannelView, { createChannelVisible: showModal, onChangeCreateChannelVisible: setShowModal, onCreateChannelClick: overrideInviteUser, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: function (it) { return onChannelSelect === null || onChannelSelect === void 0 ? void 0 : onChannelSelect(it); } }));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @deprecated This component is deprecated and will be removed in the next major update.
|
|
486
|
+
* Please use the `GroupChannel` component from '@sendbird/uikit-react/GroupChannel' instead.
|
|
487
|
+
* For more information, please refer to the migration guide:
|
|
488
|
+
* https://docs.sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide
|
|
489
|
+
*/
|
|
490
|
+
var ChannelListUI = function (props) {
|
|
491
|
+
var renderHeader = props.renderHeader, renderChannelPreview = props.renderChannelPreview, renderPlaceHolderError = props.renderPlaceHolderError, renderPlaceHolderLoading = props.renderPlaceHolderLoading, renderPlaceHolderEmptyList = props.renderPlaceHolderEmptyList;
|
|
492
|
+
var _a = useChannelListContext(), onThemeChange = _a.onThemeChange, allowProfileEdit = _a.allowProfileEdit, allChannels = _a.allChannels, currentChannel = _a.currentChannel, channelListDispatcher = _a.channelListDispatcher, typingChannels = _a.typingChannels, initialized = _a.initialized, fetchChannelList = _a.fetchChannelList, onProfileEditSuccess = _a.onProfileEditSuccess;
|
|
493
|
+
var state = useSendbird().state;
|
|
494
|
+
var stores = state.stores, config = state.config;
|
|
495
|
+
var logger = config.logger, _b = config.isOnline, isOnline = _b === void 0 ? false : _b;
|
|
496
|
+
var sdk = stores.sdkStore.sdk;
|
|
497
|
+
var renderListItem = function (props) {
|
|
498
|
+
var channel = props.item, index = props.index;
|
|
499
|
+
var previewProps = {
|
|
500
|
+
channel: channel,
|
|
501
|
+
tabIndex: index,
|
|
502
|
+
isSelected: (channel === null || channel === void 0 ? void 0 : channel.url) === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url),
|
|
503
|
+
isTyping: typingChannels === null || typingChannels === void 0 ? void 0 : typingChannels.some(function (_a) {
|
|
504
|
+
var url = _a.url;
|
|
505
|
+
return url === (channel === null || channel === void 0 ? void 0 : channel.url);
|
|
506
|
+
}),
|
|
507
|
+
renderChannelAction: function (props) { return React__default.createElement(GroupChannelPreviewAction, __assign({}, props)); },
|
|
508
|
+
onClick: function () {
|
|
509
|
+
if (!isOnline && !(sdk === null || sdk === void 0 ? void 0 : sdk.isCacheEnabled)) {
|
|
510
|
+
logger.warning('ChannelList: Inactivated clicking channel item during offline.');
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
logger.info('ChannelList: Clicked on channel:', channel);
|
|
514
|
+
channelListDispatcher({
|
|
515
|
+
type: SET_CURRENT_CHANNEL,
|
|
516
|
+
payload: channel,
|
|
517
|
+
});
|
|
518
|
+
},
|
|
519
|
+
onLeaveChannel: function (channel, cb) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
+
var response, err_1;
|
|
522
|
+
return __generator(this, function (_a) {
|
|
523
|
+
switch (_a.label) {
|
|
524
|
+
case 0:
|
|
525
|
+
logger.info('ChannelList: Leaving channel', channel);
|
|
526
|
+
if (!channel) return [3 /*break*/, 4];
|
|
527
|
+
_a.label = 1;
|
|
528
|
+
case 1:
|
|
529
|
+
_a.trys.push([1, 3, , 4]);
|
|
530
|
+
return [4 /*yield*/, channel.leave()];
|
|
531
|
+
case 2:
|
|
532
|
+
response = _a.sent();
|
|
533
|
+
logger.info('ChannelList: Leaving channel success', response);
|
|
534
|
+
if (cb && typeof cb === 'function')
|
|
535
|
+
cb(channel, null);
|
|
536
|
+
channelListDispatcher({
|
|
537
|
+
type: LEAVE_CHANNEL_SUCCESS,
|
|
538
|
+
payload: channel.url,
|
|
539
|
+
});
|
|
540
|
+
return [3 /*break*/, 4];
|
|
541
|
+
case 3:
|
|
542
|
+
err_1 = _a.sent();
|
|
543
|
+
logger.error('ChannelList: Leaving channel failed', err_1);
|
|
544
|
+
if (cb && typeof cb === 'function')
|
|
545
|
+
cb(channel, err_1);
|
|
546
|
+
return [3 /*break*/, 4];
|
|
547
|
+
case 4: return [2 /*return*/];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
});
|
|
551
|
+
},
|
|
552
|
+
};
|
|
553
|
+
if (renderChannelPreview) {
|
|
554
|
+
return (React__default.createElement("div", { key: channel === null || channel === void 0 ? void 0 : channel.url, onClick: previewProps.onClick }, renderChannelPreview(previewProps)));
|
|
555
|
+
}
|
|
556
|
+
return React__default.createElement(ChannelPreview, __assign({ key: channel === null || channel === void 0 ? void 0 : channel.url }, previewProps));
|
|
557
|
+
};
|
|
558
|
+
return (React__default.createElement(GroupChannelListUIView, { renderHeader: renderHeader, renderChannel: renderListItem, renderPlaceHolderError: renderPlaceHolderError, renderPlaceHolderLoading: renderPlaceHolderLoading, renderPlaceHolderEmptyList: renderPlaceHolderEmptyList, onChangeTheme: onThemeChange !== null && onThemeChange !== void 0 ? onThemeChange : noop, allowProfileEdit: allowProfileEdit, onUserProfileUpdated: onProfileEditSuccess !== null && onProfileEditSuccess !== void 0 ? onProfileEditSuccess : noop, channels: allChannels, onLoadMore: fetchChannelList, initialized: initialized, renderAddChannel: function () { return React__default.createElement(AddChannel, null); } }));
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* @deprecated This component is deprecated and will be removed in the next major update.
|
|
563
|
+
* Please use the `GroupChannelList` component from '@sendbird/uikit-react/GroupChannelList' instead.
|
|
564
|
+
* For more information, please refer to the migration guide:
|
|
565
|
+
* https://docs.sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide
|
|
566
|
+
*/
|
|
567
|
+
var ChannelList = function (props) {
|
|
568
|
+
return (React__default.createElement(ChannelListProvider, __assign({}, props),
|
|
569
|
+
React__default.createElement(ChannelListUI, __assign({}, props))));
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
var PANELS;
|
|
573
|
+
(function (PANELS) {
|
|
574
|
+
PANELS["CHANNEL_LIST"] = "CHANNEL_LIST";
|
|
575
|
+
PANELS["CHANNEL"] = "CHANNEL";
|
|
576
|
+
PANELS["CHANNEL_SETTINGS"] = "CHANNEL_SETTINGS";
|
|
577
|
+
PANELS["MESSAGE_SEARCH"] = "MESSAGE_SEARCH";
|
|
578
|
+
PANELS["THREAD"] = "THREAD";
|
|
579
|
+
})(PANELS || (PANELS = {}));
|
|
580
|
+
var MobileLayout = function (props) {
|
|
581
|
+
var _a, _b, _c;
|
|
582
|
+
var replyType = props.replyType, isMessageGroupingEnabled = props.isMessageGroupingEnabled, isMultipleFilesMessageEnabled = props.isMultipleFilesMessageEnabled, allowProfileEdit = props.allowProfileEdit, isReactionEnabled = props.isReactionEnabled, showSearchIcon = props.showSearchIcon, onProfileEditSuccess = props.onProfileEditSuccess, currentChannel = props.currentChannel, setCurrentChannel = props.setCurrentChannel, startingPoint = props.startingPoint, setStartingPoint = props.setStartingPoint, threadTargetMessage = props.threadTargetMessage, setThreadTargetMessage = props.setThreadTargetMessage, highlightedMessage = props.highlightedMessage, setHighlightedMessage = props.setHighlightedMessage, enableLegacyChannelModules = props.enableLegacyChannelModules;
|
|
583
|
+
var _d = useState(PANELS.CHANNEL_LIST), panel = _d[0], setPanel = _d[1];
|
|
584
|
+
var store = useSendbird().state;
|
|
585
|
+
var sdk = (_b = (_a = store === null || store === void 0 ? void 0 : store.stores) === null || _a === void 0 ? void 0 : _a.sdkStore) === null || _b === void 0 ? void 0 : _b.sdk;
|
|
586
|
+
var userId = (_c = store === null || store === void 0 ? void 0 : store.config) === null || _c === void 0 ? void 0 : _c.userId;
|
|
587
|
+
var pause = useVoicePlayerContext().pause;
|
|
588
|
+
var goToMessage = function (message, timeoutCb) {
|
|
589
|
+
setStartingPoint === null || setStartingPoint === void 0 ? void 0 : setStartingPoint((message === null || message === void 0 ? void 0 : message.createdAt) || null);
|
|
590
|
+
setTimeout(function () {
|
|
591
|
+
timeoutCb === null || timeoutCb === void 0 ? void 0 : timeoutCb((message === null || message === void 0 ? void 0 : message.messageId) || null);
|
|
592
|
+
}, 500);
|
|
593
|
+
};
|
|
594
|
+
useEffect(function () {
|
|
595
|
+
if (panel !== PANELS.CHANNEL) {
|
|
596
|
+
goToMessage(null, function () { return setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(null); });
|
|
597
|
+
}
|
|
598
|
+
}, [panel]);
|
|
599
|
+
useEffect(function () {
|
|
600
|
+
var _a, _b;
|
|
601
|
+
var handlerId = uuidv4();
|
|
602
|
+
if ((_a = sdk === null || sdk === void 0 ? void 0 : sdk.groupChannel) === null || _a === void 0 ? void 0 : _a.addGroupChannelHandler) {
|
|
603
|
+
var handler = new GroupChannelHandler({
|
|
604
|
+
onUserBanned: function (groupChannel, user) {
|
|
605
|
+
if (groupChannel.url === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) && (user === null || user === void 0 ? void 0 : user.userId) === userId) {
|
|
606
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
onChannelDeleted: function (channelUrl) {
|
|
610
|
+
if (channelUrl === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url)) {
|
|
611
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
onUserLeft: function (groupChannel, user) {
|
|
615
|
+
if (groupChannel.url === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) && (user === null || user === void 0 ? void 0 : user.userId) === userId) {
|
|
616
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
});
|
|
620
|
+
(_b = sdk === null || sdk === void 0 ? void 0 : sdk.groupChannel) === null || _b === void 0 ? void 0 : _b.addGroupChannelHandler(handlerId, handler);
|
|
621
|
+
}
|
|
622
|
+
return function () {
|
|
623
|
+
var _a, _b;
|
|
624
|
+
(_b = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.groupChannel) === null || _a === void 0 ? void 0 : _a.removeGroupChannelHandler) === null || _b === void 0 ? void 0 : _b.call(_a, handlerId);
|
|
625
|
+
};
|
|
626
|
+
}, [sdk, currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url]);
|
|
627
|
+
// if currentChannel is changed while on Thread
|
|
628
|
+
// then change panel type to CHANNEL
|
|
629
|
+
useEffect(function () {
|
|
630
|
+
if (panel === PANELS.THREAD) {
|
|
631
|
+
setPanel(PANELS.CHANNEL);
|
|
632
|
+
}
|
|
633
|
+
}, [currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url]);
|
|
634
|
+
var channelListProps = {
|
|
635
|
+
allowProfileEdit: allowProfileEdit,
|
|
636
|
+
onProfileEditSuccess: onProfileEditSuccess,
|
|
637
|
+
disableAutoSelect: true,
|
|
638
|
+
onChannelSelect: function (channel) {
|
|
639
|
+
setCurrentChannel(channel !== null && channel !== void 0 ? channel : undefined);
|
|
640
|
+
if (channel) {
|
|
641
|
+
setPanel(PANELS.CHANNEL);
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
// for GroupChannelList
|
|
648
|
+
onChannelCreated: function (channel) {
|
|
649
|
+
setCurrentChannel(channel);
|
|
650
|
+
setPanel(PANELS.CHANNEL);
|
|
651
|
+
},
|
|
652
|
+
onUserProfileUpdated: onProfileEditSuccess,
|
|
653
|
+
};
|
|
654
|
+
var channelProps = {
|
|
655
|
+
channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '',
|
|
656
|
+
onChatHeaderActionClick: function () {
|
|
657
|
+
setPanel(PANELS.CHANNEL_SETTINGS);
|
|
658
|
+
},
|
|
659
|
+
onBackClick: function () {
|
|
660
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
661
|
+
pause(ALL);
|
|
662
|
+
},
|
|
663
|
+
onSearchClick: function () {
|
|
664
|
+
setPanel(PANELS.MESSAGE_SEARCH);
|
|
665
|
+
},
|
|
666
|
+
onReplyInThread: function (_a) {
|
|
667
|
+
var message = _a.message;
|
|
668
|
+
if (replyType === 'THREAD') {
|
|
669
|
+
setPanel(PANELS.THREAD);
|
|
670
|
+
setThreadTargetMessage(message);
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
onQuoteMessageClick: function (_a) {
|
|
674
|
+
var message = _a.message;
|
|
675
|
+
// thread message
|
|
676
|
+
if (replyType === 'THREAD') {
|
|
677
|
+
setThreadTargetMessage(message);
|
|
678
|
+
setPanel(PANELS.THREAD);
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
animatedMessage: highlightedMessage,
|
|
682
|
+
onMessageAnimated: function () { return setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(null); },
|
|
683
|
+
showSearchIcon: showSearchIcon,
|
|
684
|
+
startingPoint: startingPoint !== null && startingPoint !== void 0 ? startingPoint : undefined,
|
|
685
|
+
isReactionEnabled: isReactionEnabled,
|
|
686
|
+
replyType: replyType,
|
|
687
|
+
isMessageGroupingEnabled: isMessageGroupingEnabled,
|
|
688
|
+
isMultipleFilesMessageEnabled: isMultipleFilesMessageEnabled,
|
|
689
|
+
// for GroupChannel
|
|
690
|
+
animatedMessageId: highlightedMessage,
|
|
691
|
+
onReplyInThreadClick: function (_a) {
|
|
692
|
+
var message = _a.message;
|
|
693
|
+
if (replyType === 'THREAD') {
|
|
694
|
+
setPanel(PANELS.THREAD);
|
|
695
|
+
setThreadTargetMessage(message);
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
};
|
|
699
|
+
return (React__default.createElement("div", { className: "sb_mobile", id: APP_LAYOUT_ROOT },
|
|
700
|
+
panel === PANELS.CHANNEL_LIST && (React__default.createElement("div", { className: "sb_mobile__panelwrap" }, enableLegacyChannelModules ? React__default.createElement(ChannelList, __assign({}, channelListProps)) : React__default.createElement(GroupChannelList, __assign({}, channelListProps)))),
|
|
701
|
+
panel === PANELS.CHANNEL && (React__default.createElement("div", { className: "sb_mobile__panelwrap" }, enableLegacyChannelModules ? React__default.createElement(Channel, __assign({}, channelProps)) : React__default.createElement(GroupChannel, __assign({}, channelProps)))),
|
|
702
|
+
panel === PANELS.CHANNEL_SETTINGS && (React__default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
703
|
+
React__default.createElement(ChannelSettings, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', onCloseClick: function () {
|
|
704
|
+
setPanel(PANELS.CHANNEL);
|
|
705
|
+
}, onLeaveChannel: function () {
|
|
706
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
707
|
+
} }))),
|
|
708
|
+
panel === PANELS.MESSAGE_SEARCH && (React__default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
709
|
+
React__default.createElement(MessageSearchPannel, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', onCloseClick: function () {
|
|
710
|
+
setPanel(PANELS.CHANNEL);
|
|
711
|
+
}, onResultClick: function (message) {
|
|
712
|
+
setPanel(PANELS.CHANNEL);
|
|
713
|
+
goToMessage(message, function (messageId) {
|
|
714
|
+
setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(messageId);
|
|
715
|
+
});
|
|
716
|
+
} }))),
|
|
717
|
+
panel === PANELS.THREAD && (React__default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
718
|
+
React__default.createElement(Thread, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', message: threadTargetMessage, onHeaderActionClick: function () {
|
|
719
|
+
setPanel(PANELS.CHANNEL);
|
|
720
|
+
pause(ALL);
|
|
721
|
+
}, onMoveToParentMessage: function (_a) {
|
|
722
|
+
var message = _a.message, channel = _a.channel;
|
|
723
|
+
setCurrentChannel(channel);
|
|
724
|
+
goToMessage(message, function (messageId) {
|
|
725
|
+
setPanel(PANELS.CHANNEL);
|
|
726
|
+
setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(messageId);
|
|
727
|
+
});
|
|
728
|
+
} })))));
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// NOTE: Do not use this hook internally.
|
|
732
|
+
// This hook is exported to support backward compatibility.
|
|
733
|
+
// Keep this function for backward compatibility.
|
|
734
|
+
function useSendbirdStateContext() {
|
|
735
|
+
var _a = useSendbird(), state = _a.state, actions = _a.actions;
|
|
736
|
+
return __assign(__assign({}, state), actions);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export { AddGroupChannel as A, ChannelList as C, GroupChannelList as G, InviteUsers as I, MobileLayout as M, SelectChannelType as S, useCreateChannel as a, CreateChannelProvider as b, CreateChannelContext as c, useCreateChannelContext as d, CreateChannel$1 as e, CreateChannel as f, GroupChannelListUI as g, AddChannel as h, ChannelListUI as i, useSendbirdStateContext as u };
|
|
740
|
+
//# sourceMappingURL=bundle-Dupd7RPQ.js.map
|