@sendbird/uikit-react 3.15.13 → 3.15.14-rc
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-Dl9NVsui.js → bundle-1WicDXzs.js} +1 -1
- package/chunks/{bundle-Dl9NVsui.js.map → bundle-1WicDXzs.js.map} +1 -1
- package/chunks/{bundle-BXE5p6Kc.js → bundle-1dw3VwGW.js} +14 -13
- package/chunks/{bundle-BXE5p6Kc.js.map → bundle-1dw3VwGW.js.map} +1 -1
- package/chunks/{bundle-CDvvzlad.js → bundle-6HmJcgNR.js} +6 -5
- package/chunks/bundle-6HmJcgNR.js.map +1 -0
- package/chunks/{bundle-BAQj91eb.js → bundle-A2onzY73.js} +9 -8
- package/chunks/bundle-A2onzY73.js.map +1 -0
- package/chunks/{bundle-C6-Ix-Lk.js → bundle-B-hLTjcZ.js} +8 -7
- package/chunks/{bundle-DLlgZtQy.js.map → bundle-B-hLTjcZ.js.map} +1 -1
- package/chunks/{bundle-DfDrbjM5.js → bundle-B2hCX5Y1.js} +1 -1
- package/chunks/bundle-B2hCX5Y1.js.map +1 -0
- package/chunks/{bundle-DCX2mqfp.js → bundle-B8U-MPIR.js} +8 -22
- package/{cjs/chunks/bundle-DpyxKl7F.js.map → chunks/bundle-B8U-MPIR.js.map} +1 -1
- package/chunks/{bundle-BE58pe-0.js → bundle-B9ip9Rgs.js} +8 -8
- package/chunks/bundle-B9ip9Rgs.js.map +1 -0
- package/chunks/{bundle-5-21Jk06.js → bundle-BBTkAdNh.js} +16 -20
- package/chunks/bundle-BBTkAdNh.js.map +1 -0
- package/chunks/{bundle-DaKZZ13Y.js → bundle-BBhGk7VW.js} +1 -1
- package/chunks/bundle-BBhGk7VW.js.map +1 -0
- package/chunks/{bundle-TGosz9cX.js → bundle-BD_ok0_K.js} +1 -1
- package/chunks/bundle-BD_ok0_K.js.map +1 -0
- package/chunks/{bundle-_-FiwcfQ.js → bundle-BJw1wPlD.js} +2 -2
- package/chunks/{bundle-_-FiwcfQ.js.map → bundle-BJw1wPlD.js.map} +1 -1
- package/chunks/{bundle-Er6ifVzM.js → bundle-BMqNmFAC.js} +1 -1
- package/chunks/{bundle-Er6ifVzM.js.map → bundle-BMqNmFAC.js.map} +1 -1
- package/chunks/{bundle-Ci2fMtNJ.js → bundle-BMtR335z.js} +1 -2
- package/chunks/bundle-BMtR335z.js.map +1 -0
- package/chunks/{bundle-DWrM1EW4.js → bundle-BVQ6FvPr.js} +4 -4
- package/chunks/bundle-BVQ6FvPr.js.map +1 -0
- package/chunks/{bundle-DUTyBaXr.js → bundle-BY9oUVFG.js} +7 -2
- package/chunks/bundle-BY9oUVFG.js.map +1 -0
- package/chunks/{bundle-Deel9XzY.js → bundle-B_2pLVhC.js} +3 -3
- package/chunks/bundle-B_2pLVhC.js.map +1 -0
- package/chunks/bundle-BdjfIRue.js +24 -0
- package/chunks/bundle-BdjfIRue.js.map +1 -0
- package/chunks/{bundle-gQ2a8Eki.js → bundle-Bkbt9_K2.js} +4 -19
- package/chunks/bundle-Bkbt9_K2.js.map +1 -0
- package/chunks/bundle-BlijUxQw.js +38 -0
- package/chunks/bundle-BlijUxQw.js.map +1 -0
- package/chunks/{bundle-BFqR1X1Q.js → bundle-BneAvNJ6.js} +1 -1
- package/chunks/bundle-BneAvNJ6.js.map +1 -0
- package/chunks/bundle-BqSIw_8a.js +740 -0
- package/chunks/bundle-BqSIw_8a.js.map +1 -0
- package/chunks/{bundle-ryUmMhVP.js → bundle-ByVGO6Cn.js} +1 -1
- package/chunks/{bundle-ryUmMhVP.js.map → bundle-ByVGO6Cn.js.map} +1 -1
- package/chunks/{bundle-DkviGBGz.js → bundle-BznbvczW.js} +2 -2
- package/chunks/bundle-BznbvczW.js.map +1 -0
- package/chunks/{bundle-Dpdq7qeD.js → bundle-C-JPnBnR.js} +1 -1
- package/chunks/bundle-C-JPnBnR.js.map +1 -0
- package/chunks/{bundle-DrHsf0sP.js → bundle-C-rvXpNA.js} +4 -4
- package/chunks/bundle-C-rvXpNA.js.map +1 -0
- package/chunks/{bundle-90vsNbxW.js → bundle-C-yTkyP0.js} +1 -1
- package/chunks/bundle-C-yTkyP0.js.map +1 -0
- package/chunks/{bundle-CDjVXDOc.js → bundle-C1ncZUjl.js} +1 -1
- package/chunks/bundle-C1ncZUjl.js.map +1 -0
- package/chunks/{bundle-JYgg9UJ5.js → bundle-C9ITO9KN.js} +23 -23
- package/chunks/{bundle-JYgg9UJ5.js.map → bundle-C9ITO9KN.js.map} +1 -1
- package/chunks/{bundle-DRyEkedz.js → bundle-CAUVIS8U.js} +28 -24
- package/chunks/{bundle-DRyEkedz.js.map → bundle-CAUVIS8U.js.map} +1 -1
- package/chunks/{bundle-eYHtE5ry.js → bundle-CCC20GHQ.js} +3 -3
- package/chunks/bundle-CCC20GHQ.js.map +1 -0
- package/chunks/bundle-CClknHGO.js +4 -0
- package/chunks/bundle-CClknHGO.js.map +1 -0
- package/chunks/{bundle-yLTgHCRG.js → bundle-CDRwx6ov.js} +2 -2
- package/chunks/{bundle-yLTgHCRG.js.map → bundle-CDRwx6ov.js.map} +1 -1
- package/chunks/bundle-CDp-g5XU.js +257 -0
- package/chunks/{bundle-DCX2mqfp.js.map → bundle-CDp-g5XU.js.map} +1 -1
- package/chunks/{bundle-Dvg19muo.js → bundle-CFIe1TQh.js} +6 -6
- package/chunks/bundle-CFIe1TQh.js.map +1 -0
- package/chunks/{bundle-CZsW3iP9.js → bundle-CL4aee1v.js} +2 -2
- package/chunks/bundle-CL4aee1v.js.map +1 -0
- package/chunks/{bundle-D5-VMB5f.js → bundle-CPrxIh9y.js} +13 -12
- package/chunks/{bundle-D5-VMB5f.js.map → bundle-CPrxIh9y.js.map} +1 -1
- package/chunks/bundle-CQ2tpjBC.js +65 -0
- package/chunks/bundle-CQ2tpjBC.js.map +1 -0
- package/chunks/{bundle-BMygDCXK.js → bundle-CQrtVJsS.js} +1 -1
- package/chunks/bundle-CQrtVJsS.js.map +1 -0
- package/chunks/{bundle-LWpHaUiZ.js → bundle-CSXuv4Bd.js} +9 -7
- package/chunks/bundle-CSXuv4Bd.js.map +1 -0
- package/chunks/{bundle-CLonR-iH.js → bundle-CT9lv9jW.js} +8 -7
- package/chunks/{bundle-CLonR-iH.js.map → bundle-CT9lv9jW.js.map} +1 -1
- package/chunks/bundle-CUrIGyMS.js +661 -0
- package/chunks/bundle-CUrIGyMS.js.map +1 -0
- package/chunks/{bundle-MkyS3j4-.js → bundle-CdizyEdk.js} +1 -1
- package/chunks/bundle-CdizyEdk.js.map +1 -0
- package/chunks/{bundle-BBowfNDO.js → bundle-CfElKzoM.js} +1 -1
- package/chunks/bundle-CfElKzoM.js.map +1 -0
- package/chunks/{bundle-Cq6wCLlD.js → bundle-CgYA6f2I.js} +15 -15
- package/chunks/{bundle-Cq6wCLlD.js.map → bundle-CgYA6f2I.js.map} +1 -1
- package/chunks/{bundle-C7jYHvwG.js → bundle-Cj5_JUGB.js} +2 -2
- package/chunks/{bundle-C7jYHvwG.js.map → bundle-Cj5_JUGB.js.map} +1 -1
- package/chunks/{bundle-3aUfVJHj.js → bundle-ClwW4Dg-.js} +8 -9
- package/chunks/bundle-ClwW4Dg-.js.map +1 -0
- package/chunks/{bundle-Crm9sJrW.js → bundle-CrfqwS86.js} +8 -8
- package/chunks/{bundle-Crm9sJrW.js.map → bundle-CrfqwS86.js.map} +1 -1
- package/chunks/{bundle-CMuwfYDs.js → bundle-CuNiKKod.js} +17 -17
- package/chunks/{bundle-CMuwfYDs.js.map → bundle-CuNiKKod.js.map} +1 -1
- package/chunks/{bundle-DjgT6gu4.js → bundle-Cui2dEHn.js} +1 -1
- package/chunks/bundle-Cui2dEHn.js.map +1 -0
- package/chunks/{bundle-V4PrrT67.js → bundle-CvS9hHiN.js} +13 -13
- package/chunks/bundle-CvS9hHiN.js.map +1 -0
- package/chunks/{bundle-LPNnEgGp.js → bundle-CwlHaxRY.js} +1 -1
- package/chunks/bundle-CwlHaxRY.js.map +1 -0
- package/chunks/{bundle-DImSV9VW.js → bundle-CyiL7cM0.js} +3 -3
- package/chunks/bundle-CyiL7cM0.js.map +1 -0
- package/chunks/{bundle-CbEyAimK.js → bundle-CyrtxrpV.js} +4 -4
- package/chunks/bundle-CyrtxrpV.js.map +1 -0
- package/chunks/bundle-CzQv-JhI.js +9 -0
- package/chunks/bundle-CzQv-JhI.js.map +1 -0
- package/chunks/{bundle-B2dhmpsj.js → bundle-D1dUz9rt.js} +14 -14
- package/chunks/{bundle-B2dhmpsj.js.map → bundle-D1dUz9rt.js.map} +1 -1
- package/chunks/{bundle-BH8ohfFx.js → bundle-D5jjox7Q.js} +8 -8
- package/chunks/{bundle-BH8ohfFx.js.map → bundle-D5jjox7Q.js.map} +1 -1
- package/chunks/{bundle-BL_0pgq0.js → bundle-D7RFGuQj.js} +17 -16
- package/chunks/{bundle-BL_0pgq0.js.map → bundle-D7RFGuQj.js.map} +1 -1
- package/chunks/{bundle-4W3uBGU3.js → bundle-D9R7Jiqe.js} +1 -1
- package/chunks/bundle-D9R7Jiqe.js.map +1 -0
- package/chunks/bundle-DCVn-5-M.js +209 -0
- package/chunks/bundle-DCVn-5-M.js.map +1 -0
- package/chunks/bundle-DFLinAbj.js +12 -0
- package/chunks/bundle-DFLinAbj.js.map +1 -0
- package/chunks/{bundle-BI2YMBw_.js → bundle-DG6u-bEo.js} +60 -6
- package/chunks/bundle-DG6u-bEo.js.map +1 -0
- package/chunks/{bundle-C1U8wE49.js → bundle-DGW9ZhNd.js} +2 -2
- package/chunks/bundle-DGW9ZhNd.js.map +1 -0
- package/chunks/{bundle-BiPxcZtH.js → bundle-DMhVPx55.js} +1 -1
- package/chunks/bundle-DMhVPx55.js.map +1 -0
- package/chunks/{bundle-2kzSicIw.js → bundle-DTsnEKas.js} +3 -3
- package/chunks/{bundle-2kzSicIw.js.map → bundle-DTsnEKas.js.map} +1 -1
- package/chunks/bundle-DYlj08ur.js +1108 -0
- package/chunks/bundle-DYlj08ur.js.map +1 -0
- package/chunks/{bundle-DYeeW5nS.js → bundle-DbJ8lyIW.js} +7 -14
- package/chunks/bundle-DbJ8lyIW.js.map +1 -0
- package/chunks/{bundle-Bzt5nDi4.js → bundle-DbWSwWAr.js} +4 -4
- package/chunks/{bundle-Bzt5nDi4.js.map → bundle-DbWSwWAr.js.map} +1 -1
- package/chunks/{bundle-BeUKuH7h.js → bundle-Dg1G5COD.js} +3 -3
- package/chunks/{bundle-BeUKuH7h.js.map → bundle-Dg1G5COD.js.map} +1 -1
- package/chunks/{bundle-CcHvUx-a.js → bundle-DloA6aeM.js} +11 -10
- package/chunks/{bundle-CcHvUx-a.js.map → bundle-DloA6aeM.js.map} +1 -1
- package/chunks/{bundle-P-vXuw8U.js → bundle-DqDF0kxo.js} +1 -1
- package/chunks/bundle-DqDF0kxo.js.map +1 -0
- package/chunks/{bundle-k6zcGkBp.js → bundle-Dw8813nX.js} +4 -4
- package/chunks/bundle-Dw8813nX.js.map +1 -0
- package/chunks/{bundle-BP1CB0js.js → bundle-DwSHHkPT.js} +1 -1
- package/chunks/bundle-DwSHHkPT.js.map +1 -0
- package/chunks/{bundle-pOZPN8hk.js → bundle-DxxvrMQI.js} +1 -1
- package/chunks/{bundle-pOZPN8hk.js.map → bundle-DxxvrMQI.js.map} +1 -1
- package/chunks/{bundle-C9dF4QVS.js → bundle-DyUM-cLB.js} +1 -1
- package/chunks/bundle-DyUM-cLB.js.map +1 -0
- package/chunks/{bundle-BP1DBRft.js → bundle-HWQAzYJv.js} +5 -5
- package/chunks/{bundle-BP1DBRft.js.map → bundle-HWQAzYJv.js.map} +1 -1
- package/chunks/{bundle-DLlgZtQy.js → bundle-I8q8yCrt.js} +5 -5
- package/{cjs/chunks/bundle-DUanoG7J.js.map → chunks/bundle-I8q8yCrt.js.map} +1 -1
- package/chunks/{bundle-CzdrQ_Yq.js → bundle-IJCJg91y.js} +1 -1
- package/chunks/bundle-IJCJg91y.js.map +1 -0
- package/chunks/bundle-JsdOq6pg.js +260 -0
- package/chunks/bundle-JsdOq6pg.js.map +1 -0
- package/{cjs/chunks/bundle-DE5YH8Q-.js → chunks/bundle-KQc1NYs1.js} +2 -32
- package/chunks/{bundle-CIN9yQRB.js.map → bundle-KQc1NYs1.js.map} +1 -1
- package/chunks/{bundle-BR3O1lZq.js → bundle-RBoKRbHz.js} +1 -1
- package/chunks/bundle-RBoKRbHz.js.map +1 -0
- package/chunks/{bundle-DCbJaskZ.js → bundle-c5KbzTiA.js} +3 -2
- package/chunks/bundle-c5KbzTiA.js.map +1 -0
- package/chunks/{bundle-Dskg5qjd.js → bundle-eHS4YF9i.js} +1 -1
- package/chunks/bundle-eHS4YF9i.js.map +1 -0
- package/chunks/bundle-hj-JCZtT.js +149 -0
- package/chunks/bundle-hj-JCZtT.js.map +1 -0
- package/chunks/{bundle-DvcOxLrR.js → bundle-i9LnR1n4.js} +3 -3
- package/chunks/bundle-i9LnR1n4.js.map +1 -0
- package/chunks/{bundle-CJBs1h8R.js → bundle-jlClj1B3.js} +16 -16
- package/chunks/{bundle-CJBs1h8R.js.map → bundle-jlClj1B3.js.map} +1 -1
- package/chunks/{bundle-jw_xHmHg.js → bundle-k2A_Dplg.js} +3 -2
- package/chunks/bundle-k2A_Dplg.js.map +1 -0
- package/chunks/bundle-m1et25Jg.js +2920 -0
- package/chunks/bundle-m1et25Jg.js.map +1 -0
- package/chunks/bundle-t7Yx3Waq.js +190 -0
- package/chunks/bundle-t7Yx3Waq.js.map +1 -0
- package/chunks/{bundle-CTE4m7bC.js → bundle-ur8S4QkK.js} +5 -5
- package/chunks/{bundle-CTE4m7bC.js.map → bundle-ur8S4QkK.js.map} +1 -1
- package/chunks/{bundle-_sFl37fA.js → bundle-zZfVGvhn.js} +6 -7
- package/{cjs/chunks/bundle-ChVeqDIG.js.map → chunks/bundle-zZfVGvhn.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-s1cLz65w.js → bundle-89fX6BxE.js} +1 -1
- package/cjs/chunks/bundle-89fX6BxE.js.map +1 -0
- package/cjs/chunks/{bundle-ByQJ042a.js → bundle-9_krLx4g.js} +1 -1
- package/cjs/chunks/bundle-9_krLx4g.js.map +1 -0
- package/cjs/chunks/bundle-9tkwiavu.js +76 -0
- package/cjs/chunks/bundle-9tkwiavu.js.map +1 -0
- package/cjs/chunks/{bundle-B5-vaN7x.js → bundle-AIWiAqMa.js} +17 -16
- package/cjs/chunks/{bundle-DeLEOQNO.js.map → bundle-AIWiAqMa.js.map} +1 -1
- package/cjs/chunks/{bundle-qMxPIH0k.js → bundle-B0eUHYFY.js} +6 -6
- package/cjs/chunks/bundle-B0eUHYFY.js.map +1 -0
- package/cjs/chunks/{bundle-BcIrmepz.js → bundle-B1kfg8W4.js} +1 -1
- package/cjs/chunks/bundle-B1kfg8W4.js.map +1 -0
- package/cjs/chunks/{bundle-BloKh_k7.js → bundle-B6qGo4m1.js} +1 -1
- package/cjs/chunks/bundle-B6qGo4m1.js.map +1 -0
- package/cjs/chunks/{bundle-DHPSwRDh.js → bundle-B9hMMeRS.js} +4 -4
- package/cjs/chunks/bundle-B9hMMeRS.js.map +1 -0
- package/cjs/chunks/{bundle-Cq5LKFhE.js → bundle-BDIgb36c.js} +7 -1
- package/cjs/chunks/bundle-BDIgb36c.js.map +1 -0
- package/cjs/chunks/{bundle-XANrnOqB.js → bundle-BETqmgP_.js} +1 -2
- package/cjs/chunks/bundle-BETqmgP_.js.map +1 -0
- package/cjs/chunks/{bundle-BA6Cum_9.js → bundle-BFcjbhNL.js} +3 -3
- package/cjs/chunks/{bundle-BA6Cum_9.js.map → bundle-BFcjbhNL.js.map} +1 -1
- package/cjs/chunks/bundle-BJftto_l.js +7 -0
- package/cjs/chunks/bundle-BJftto_l.js.map +1 -0
- package/cjs/chunks/bundle-BNJqog7S.js +217 -0
- package/{chunks/bundle-5-21Jk06.js.map → cjs/chunks/bundle-BNJqog7S.js.map} +1 -1
- package/cjs/chunks/{bundle-6UD0H-nz.js → bundle-BPPW92E3.js} +14 -14
- package/cjs/chunks/bundle-BPPW92E3.js.map +1 -0
- package/cjs/chunks/{bundle-D1slQ3hS.js → bundle-BPkbLqnu.js} +1 -1
- package/cjs/chunks/bundle-BPkbLqnu.js.map +1 -0
- package/cjs/chunks/{bundle-BpThX3wu.js → bundle-BRCUEZkM.js} +5 -5
- package/{chunks/bundle-BI2YMBw_.js.map → cjs/chunks/bundle-BRCUEZkM.js.map} +1 -1
- package/cjs/chunks/{bundle-DX3sBwvt.js → bundle-BT0N2gkH.js} +29 -25
- package/{chunks/bundle-MyLy9AIu.js.map → cjs/chunks/bundle-BT0N2gkH.js.map} +1 -1
- package/cjs/chunks/{bundle-BZd597ep.js → bundle-BT4XFhDb.js} +1 -1
- package/cjs/chunks/bundle-BT4XFhDb.js.map +1 -0
- package/cjs/chunks/bundle-BVPusRwU.js +187 -0
- package/cjs/chunks/bundle-BVPusRwU.js.map +1 -0
- package/cjs/chunks/{bundle-LNbeYHuL.js → bundle-BX-bINZz.js} +24 -24
- package/cjs/chunks/{bundle-LNbeYHuL.js.map → bundle-BX-bINZz.js.map} +1 -1
- package/cjs/chunks/{bundle-m5OpCHlj.js → bundle-Baj1zcQe.js} +8 -22
- package/cjs/chunks/bundle-Baj1zcQe.js.map +1 -0
- package/cjs/chunks/{bundle-DTD48j2K.js → bundle-BauO6Klm.js} +7 -17
- package/cjs/chunks/bundle-BauO6Klm.js.map +1 -0
- package/cjs/chunks/{bundle-Aw-PHA-I.js → bundle-BbTEVoxS.js} +1 -1
- package/cjs/chunks/bundle-BbTEVoxS.js.map +1 -0
- package/cjs/chunks/bundle-BgQpYkVd.js +263 -0
- package/cjs/chunks/bundle-BgQpYkVd.js.map +1 -0
- package/cjs/chunks/{bundle-BbpZ1Xe-.js → bundle-BhqxNcA7.js} +2 -2
- package/cjs/chunks/{bundle-BbpZ1Xe-.js.map → bundle-BhqxNcA7.js.map} +1 -1
- package/cjs/chunks/{bundle-DuSS5Dmw.js → bundle-BlmK-5Zz.js} +1 -1
- package/cjs/chunks/bundle-BlmK-5Zz.js.map +1 -0
- package/cjs/chunks/{bundle-DkDRIPJe.js → bundle-BptOxtGN.js} +6 -5
- package/cjs/chunks/bundle-BptOxtGN.js.map +1 -0
- package/cjs/chunks/bundle-BreESs72.js +672 -0
- package/cjs/chunks/bundle-BreESs72.js.map +1 -0
- package/cjs/chunks/{bundle-DVc6YedH.js → bundle-Bt94Y5zF.js} +4 -4
- package/cjs/chunks/bundle-Bt94Y5zF.js.map +1 -0
- package/cjs/chunks/{bundle-YTiDKoON.js → bundle-BtQOYbDr.js} +1 -1
- package/cjs/chunks/bundle-BtQOYbDr.js.map +1 -0
- package/cjs/chunks/bundle-BxRRC13A.js +40 -0
- package/cjs/chunks/bundle-BxRRC13A.js.map +1 -0
- package/cjs/chunks/{bundle-C3_KfqSN.js → bundle-BzLDYrps.js} +1 -1
- package/cjs/chunks/bundle-BzLDYrps.js.map +1 -0
- package/cjs/chunks/{bundle-BFFRQpby.js → bundle-C1XBtmxo.js} +8 -8
- package/cjs/chunks/bundle-C1XBtmxo.js.map +1 -0
- package/cjs/chunks/{bundle-Bua7cUR6.js → bundle-CIv79KtD.js} +16 -16
- package/cjs/chunks/{bundle-Bua7cUR6.js.map → bundle-CIv79KtD.js.map} +1 -1
- package/cjs/chunks/{bundle-bfd2VoyQ.js → bundle-CJLuEmh0.js} +26 -25
- package/cjs/chunks/{bundle-bfd2VoyQ.js.map → bundle-CJLuEmh0.js.map} +1 -1
- package/cjs/chunks/{bundle-B0uIbH1T.js → bundle-CK1N-Lna.js} +4 -19
- package/cjs/chunks/bundle-CK1N-Lna.js.map +1 -0
- package/cjs/chunks/{bundle-D4NkDFD-.js → bundle-CKctMt7s.js} +11 -10
- package/cjs/chunks/{bundle-sZREfKpL.js.map → bundle-CKctMt7s.js.map} +1 -1
- package/cjs/chunks/bundle-CPmEIY0J.js +1119 -0
- package/cjs/chunks/bundle-CPmEIY0J.js.map +1 -0
- package/cjs/chunks/{bundle-DUanoG7J.js → bundle-CTa0qp2J.js} +5 -5
- package/cjs/chunks/bundle-CTa0qp2J.js.map +1 -0
- package/cjs/chunks/{bundle-CNvRk1Z6.js → bundle-CVshjFAv.js} +1 -1
- package/cjs/chunks/bundle-CVshjFAv.js.map +1 -0
- package/cjs/chunks/{bundle-DeLEOQNO.js → bundle-C_Lbwszw.js} +5 -5
- package/cjs/chunks/{bundle-B5-vaN7x.js.map → bundle-C_Lbwszw.js.map} +1 -1
- package/cjs/chunks/{bundle-BfjugOIp.js → bundle-CayzfAtS.js} +4 -4
- package/cjs/chunks/bundle-CayzfAtS.js.map +1 -0
- package/cjs/chunks/bundle-Cbdc9ZJY.js +201 -0
- package/cjs/chunks/bundle-Cbdc9ZJY.js.map +1 -0
- package/cjs/chunks/{bundle-BSfpBazH.js → bundle-CcGys-84.js} +3 -3
- package/cjs/chunks/bundle-CcGys-84.js.map +1 -0
- package/cjs/chunks/{bundle-BAF8GaDh.js → bundle-Cgx64DbJ.js} +1 -1
- package/cjs/chunks/bundle-Cgx64DbJ.js.map +1 -0
- package/cjs/chunks/{bundle-D-kYFL1Z.js → bundle-CkXIqGZB.js} +1 -1
- package/cjs/chunks/bundle-CkXIqGZB.js.map +1 -0
- package/cjs/chunks/bundle-CmF5XsRI.js +270 -0
- package/cjs/chunks/bundle-CmF5XsRI.js.map +1 -0
- package/cjs/chunks/{bundle-BOCivP7e.js → bundle-CmJi_0Nb.js} +2 -2
- package/cjs/chunks/bundle-CmJi_0Nb.js.map +1 -0
- package/cjs/chunks/{bundle-QF_AmnwV.js → bundle-CqCReWdH.js} +8 -7
- package/cjs/chunks/{bundle-D4NkDFD-.js.map → bundle-CqCReWdH.js.map} +1 -1
- package/cjs/chunks/{bundle-n_Z6yPjx.js → bundle-CsoIWjn3.js} +6 -7
- package/cjs/chunks/bundle-CsoIWjn3.js.map +1 -0
- package/cjs/chunks/{bundle-sZREfKpL.js → bundle-Csp1LbIg.js} +7 -6
- package/{chunks/bundle-C6-Ix-Lk.js.map → cjs/chunks/bundle-Csp1LbIg.js.map} +1 -1
- package/cjs/chunks/bundle-Ctgz-ey7.js +761 -0
- package/cjs/chunks/bundle-Ctgz-ey7.js.map +1 -0
- package/cjs/chunks/{bundle-Bu4cmOCm.js → bundle-D-ZoYmRl.js} +1 -1
- package/cjs/chunks/bundle-D-ZoYmRl.js.map +1 -0
- package/cjs/chunks/{bundle-JpIugjtL.js → bundle-D07kXU0F.js} +3 -3
- package/cjs/chunks/bundle-D07kXU0F.js.map +1 -0
- package/cjs/chunks/{bundle-B5aEwfu1.js → bundle-D0lw9Bpa.js} +1 -1
- package/cjs/chunks/bundle-D0lw9Bpa.js.map +1 -0
- package/cjs/chunks/{bundle-D30swLTX.js → bundle-D1THQ7gU.js} +3 -3
- package/cjs/chunks/bundle-D1THQ7gU.js.map +1 -0
- package/cjs/chunks/{bundle-DpyxKl7F.js → bundle-D6K2mhIo.js} +16 -20
- package/{chunks/bundle-3aUfVJHj.js.map → cjs/chunks/bundle-D6K2mhIo.js.map} +1 -1
- package/cjs/chunks/{bundle-DYjhaLRW.js → bundle-D6rmjKfk.js} +9 -7
- package/cjs/chunks/bundle-D6rmjKfk.js.map +1 -0
- package/{chunks/bundle-CIN9yQRB.js → cjs/chunks/bundle-D8Y4YVC3.js} +3 -22
- package/cjs/chunks/{bundle-DE5YH8Q-.js.map → bundle-D8Y4YVC3.js.map} +1 -1
- package/cjs/chunks/{bundle-DWfeFlxG.js → bundle-DB7AA9OZ.js} +1 -1
- package/cjs/chunks/bundle-DB7AA9OZ.js.map +1 -0
- package/cjs/chunks/{bundle-CuWm0vby.js → bundle-DFU6GAqv.js} +1 -1
- package/cjs/chunks/{bundle-CuWm0vby.js.map → bundle-DFU6GAqv.js.map} +1 -1
- package/cjs/chunks/{bundle-COBYaK8T.js → bundle-DGGbCcCF.js} +4 -4
- package/cjs/chunks/{bundle-COBYaK8T.js.map → bundle-DGGbCcCF.js.map} +1 -1
- package/cjs/chunks/{bundle-Khwf-z37.js → bundle-DGGi0jBz.js} +9 -9
- package/cjs/chunks/bundle-DGGi0jBz.js.map +1 -0
- package/cjs/chunks/{bundle-XxCVYLKy.js → bundle-DHln-sDF.js} +8 -9
- package/cjs/chunks/bundle-DHln-sDF.js.map +1 -0
- package/cjs/chunks/bundle-DKTpL0g1.js +32 -0
- package/cjs/chunks/bundle-DKTpL0g1.js.map +1 -0
- package/cjs/chunks/{bundle-A5UoPEJO.js → bundle-DNSLlJbl.js} +4 -4
- package/cjs/chunks/bundle-DNSLlJbl.js.map +1 -0
- package/cjs/chunks/{bundle-DL3fuSPu.js → bundle-DQuGiR7V.js} +1 -1
- package/cjs/chunks/bundle-DQuGiR7V.js.map +1 -0
- package/cjs/chunks/{bundle-BL1sGjVd.js → bundle-DY7vPqdQ.js} +1 -1
- package/cjs/chunks/bundle-DY7vPqdQ.js.map +1 -0
- package/cjs/chunks/bundle-DYhBZd6j.js +152 -0
- package/cjs/chunks/bundle-DYhBZd6j.js.map +1 -0
- package/cjs/chunks/{bundle-Clz7RiTn.js → bundle-DeK5VJQG.js} +1 -1
- package/cjs/chunks/bundle-DeK5VJQG.js.map +1 -0
- package/cjs/chunks/{bundle-Bhf_RRfA.js → bundle-DeUnCD5j.js} +1 -1
- package/cjs/chunks/bundle-DeUnCD5j.js.map +1 -0
- package/cjs/chunks/{bundle-vf5ayidG.js → bundle-Dj5V094j.js} +17 -17
- package/cjs/chunks/{bundle-vf5ayidG.js.map → bundle-Dj5V094j.js.map} +1 -1
- package/cjs/chunks/{bundle-DzEGN4bG.js → bundle-Dk0-umQd.js} +1 -1
- package/cjs/chunks/bundle-Dk0-umQd.js.map +1 -0
- package/cjs/chunks/{bundle-nWxq3V_Q.js → bundle-DmbYmCTt.js} +3 -3
- package/cjs/chunks/bundle-DmbYmCTt.js.map +1 -0
- package/cjs/chunks/{bundle-B3LOu7kN.js → bundle-DxdlR74x.js} +4 -3
- package/cjs/chunks/bundle-DxdlR74x.js.map +1 -0
- package/cjs/chunks/{bundle-D6fimwV5.js → bundle-DyKOhVHq.js} +8 -8
- package/cjs/chunks/bundle-DyKOhVHq.js.map +1 -0
- package/cjs/chunks/{bundle-BOSyMutC.js → bundle-DzDaD05v.js} +2 -2
- package/cjs/chunks/{bundle-BOSyMutC.js.map → bundle-DzDaD05v.js.map} +1 -1
- package/cjs/chunks/{bundle-DHZYT5M_.js → bundle-DzywW4aT.js} +1 -1
- package/cjs/chunks/bundle-DzywW4aT.js.map +1 -0
- package/cjs/chunks/bundle-G3zxoxUu.js +11 -0
- package/cjs/chunks/bundle-G3zxoxUu.js.map +1 -0
- package/cjs/chunks/{bundle-Bc_sQb3i.js → bundle-Kcs0P7Bk.js} +5 -5
- package/cjs/chunks/bundle-Kcs0P7Bk.js.map +1 -0
- package/cjs/chunks/bundle-LSngpiw3.js +2932 -0
- package/cjs/chunks/bundle-LSngpiw3.js.map +1 -0
- package/cjs/chunks/{bundle-Dq5LRxGL.js → bundle-QCztkj4c.js} +11 -10
- package/cjs/chunks/bundle-QCztkj4c.js.map +1 -0
- package/cjs/chunks/{bundle-ChVeqDIG.js → bundle-QoSUa8d1.js} +13 -13
- package/{chunks/bundle-_sFl37fA.js.map → cjs/chunks/bundle-QoSUa8d1.js.map} +1 -1
- package/cjs/chunks/{bundle-WqJcr9PX.js → bundle-aZt_yr7x.js} +4 -4
- package/cjs/chunks/{bundle-WqJcr9PX.js.map → bundle-aZt_yr7x.js.map} +1 -1
- package/cjs/chunks/{bundle-DmO3Qtot.js → bundle-es5xApqy.js} +1 -1
- package/cjs/chunks/{bundle-DmO3Qtot.js.map → bundle-es5xApqy.js.map} +1 -1
- package/cjs/chunks/{bundle-R7sVfaA9.js → bundle-jKIGkHX-.js} +9 -8
- package/cjs/chunks/bundle-jKIGkHX-.js.map +1 -0
- package/cjs/chunks/{bundle-ChDTEa9-.js → bundle-lK-G2WrJ.js} +1 -1
- package/cjs/chunks/bundle-lK-G2WrJ.js.map +1 -0
- package/cjs/chunks/{bundle-CfUeEOi0.js → bundle-nScEwTro.js} +14 -14
- package/cjs/chunks/bundle-nScEwTro.js.map +1 -0
- package/cjs/chunks/{bundle-S-XkXH4q.js → bundle-r0O7RuH2.js} +2 -2
- package/cjs/chunks/bundle-r0O7RuH2.js.map +1 -0
- package/cjs/chunks/{bundle-B2zio8XF.js → bundle-vqTlMP2p.js} +1 -1
- package/cjs/chunks/bundle-vqTlMP2p.js.map +1 -0
- package/cjs/chunks/{bundle-BBgc3koD.js → bundle-ysciuVYD.js} +15 -14
- package/cjs/chunks/{bundle-BBgc3koD.js.map → bundle-ysciuVYD.js.map} +1 -1
- 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,761 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _tslib = require('./bundle-BPkbLqnu.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var groupChannel = require('@sendbird/chat/groupChannel');
|
|
6
|
+
var GroupChannel = require('../GroupChannel.js');
|
|
7
|
+
var GroupChannelListProvider = require('./bundle-Cbdc9ZJY.js');
|
|
8
|
+
var GroupChannelList_components_GroupChannelListHeader = require('../GroupChannelList/components/GroupChannelListHeader.js');
|
|
9
|
+
var EditUserProfile = require('../EditUserProfile.js');
|
|
10
|
+
var ui_PlaceHolder = require('../ui/PlaceHolder.js');
|
|
11
|
+
var index = require('./bundle-DNSLlJbl.js');
|
|
12
|
+
var useSendbird = require('./bundle-BgQpYkVd.js');
|
|
13
|
+
var GroupChannelList_components_GroupChannelPreviewAction = require('../GroupChannelList/components/GroupChannelPreviewAction.js');
|
|
14
|
+
var GroupChannelList_components_GroupChannelListItem = require('../GroupChannelList/components/GroupChannelListItem.js');
|
|
15
|
+
var ui_IconButton = require('../ui/IconButton.js');
|
|
16
|
+
var ui_Icon = require('../ui/Icon.js');
|
|
17
|
+
var LocalizationContext = require('./bundle-DKTpL0g1.js');
|
|
18
|
+
var MediaQueryContext = require('./bundle-D0lw9Bpa.js');
|
|
19
|
+
var ui_Modal = require('./bundle-9tkwiavu.js');
|
|
20
|
+
var ui_Label = require('./bundle-BFcjbhNL.js');
|
|
21
|
+
var ui_Button = require('../ui/Button.js');
|
|
22
|
+
var ui_UserListItem = require('../ui/UserListItem.js');
|
|
23
|
+
var utils = require('./bundle-BDIgb36c.js');
|
|
24
|
+
var SendbirdContext = require('./bundle-LSngpiw3.js');
|
|
25
|
+
var sendbirdSelectors = require('../sendbirdSelectors.js');
|
|
26
|
+
require('@sendbird/uikit-tools');
|
|
27
|
+
var VoicePlayer_context = require('./bundle-Csp1LbIg.js');
|
|
28
|
+
require('../VoiceRecorder/context.js');
|
|
29
|
+
require('../hooks/useModal.js');
|
|
30
|
+
require('./bundle-DYhBZd6j.js');
|
|
31
|
+
require('css-vars-ponyfill');
|
|
32
|
+
require('@sendbird/chat');
|
|
33
|
+
var ui_ContextMenu = require('./bundle-CqCReWdH.js');
|
|
34
|
+
require('@sendbird/chat/openChannel');
|
|
35
|
+
require('react-dom');
|
|
36
|
+
require('./bundle-BauO6Klm.js');
|
|
37
|
+
require('./bundle-BreESs72.js');
|
|
38
|
+
require('./bundle-lK-G2WrJ.js');
|
|
39
|
+
require('./bundle-B9hMMeRS.js');
|
|
40
|
+
require('../ui/Header.js');
|
|
41
|
+
require('./bundle-DzywW4aT.js');
|
|
42
|
+
require('./bundle-BETqmgP_.js');
|
|
43
|
+
require('../ui/MessageInput.js');
|
|
44
|
+
require('./bundle-DyKOhVHq.js');
|
|
45
|
+
require('../ui/ReactionButton.js');
|
|
46
|
+
require('../ui/ReactionBadge.js');
|
|
47
|
+
require('./bundle-CK1N-Lna.js');
|
|
48
|
+
require('../Message/context.js');
|
|
49
|
+
require('./bundle-BJftto_l.js');
|
|
50
|
+
require('@sendbird/chat/message');
|
|
51
|
+
require('../ui/ThreadReplies.js');
|
|
52
|
+
require('./bundle-es5xApqy.js');
|
|
53
|
+
require('../ui/TemplateMessageItemBody.js');
|
|
54
|
+
require('../ui/FeedbackIconButton.js');
|
|
55
|
+
require('../ui/Input.js');
|
|
56
|
+
require('../ui/MessageContent.js');
|
|
57
|
+
require('./bundle-DB7AA9OZ.js');
|
|
58
|
+
require('../GroupChannel/components/MessageList.js');
|
|
59
|
+
require('./bundle-BT0N2gkH.js');
|
|
60
|
+
require('../EditUserProfile/context.js');
|
|
61
|
+
require('../Channel/context.js');
|
|
62
|
+
var ChannelList_context = require('./bundle-CJLuEmh0.js');
|
|
63
|
+
require('./bundle-BNJqog7S.js');
|
|
64
|
+
require('../ChannelSettings/hooks/useMenuList.js');
|
|
65
|
+
require('./bundle-CKctMt7s.js');
|
|
66
|
+
require('./bundle-CmF5XsRI.js');
|
|
67
|
+
require('./bundle-CPmEIY0J.js');
|
|
68
|
+
require('../Thread/context/types.js');
|
|
69
|
+
require('../utils/message/getOutgoingMessageState.js');
|
|
70
|
+
require('date-fns');
|
|
71
|
+
require('../Thread/components/ThreadMessageInput.js');
|
|
72
|
+
var Channel = require('../Channel.js');
|
|
73
|
+
var ChannelList_components_ChannelPreview = require('../ChannelList/components/ChannelPreview.js');
|
|
74
|
+
var ChannelSettings = require('../ChannelSettings.js');
|
|
75
|
+
var MessageSearch = require('../MessageSearch.js');
|
|
76
|
+
var Thread = require('../Thread.js');
|
|
77
|
+
var uuid = require('./bundle-89fX6BxE.js');
|
|
78
|
+
require('./bundle-BX-bINZz.js');
|
|
79
|
+
require('../OpenChannel/components/OpenChannelInput.js');
|
|
80
|
+
require('../OpenChannel/components/OpenChannelMessageList.js');
|
|
81
|
+
require('../OpenChannelSettings/context.js');
|
|
82
|
+
require('../ui/AccordionGroup.js');
|
|
83
|
+
|
|
84
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
85
|
+
|
|
86
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
87
|
+
|
|
88
|
+
var GroupChannelListUIView = function (_a) {
|
|
89
|
+
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;
|
|
90
|
+
var _b = React.useState(false), showProfileEdit = _b[0], setShowProfileEdit = _b[1];
|
|
91
|
+
var stores = useSendbird.useSendbird().state.stores;
|
|
92
|
+
var renderer = {
|
|
93
|
+
addChannel: renderAddChannel,
|
|
94
|
+
channel: renderChannel,
|
|
95
|
+
placeholder: {
|
|
96
|
+
loading: function () {
|
|
97
|
+
if (initialized)
|
|
98
|
+
return null;
|
|
99
|
+
if (renderPlaceHolderLoading)
|
|
100
|
+
return renderPlaceHolderLoading();
|
|
101
|
+
return React__default.default.createElement(ui_PlaceHolder.default, { type: ui_PlaceHolder.PlaceHolderTypes.LOADING });
|
|
102
|
+
},
|
|
103
|
+
empty: function () {
|
|
104
|
+
if (!initialized)
|
|
105
|
+
return null;
|
|
106
|
+
if (renderPlaceHolderEmptyList)
|
|
107
|
+
return renderPlaceHolderEmptyList();
|
|
108
|
+
return React__default.default.createElement(ui_PlaceHolder.default, { type: ui_PlaceHolder.PlaceHolderTypes.NO_CHANNELS });
|
|
109
|
+
},
|
|
110
|
+
error: function () {
|
|
111
|
+
if (!initialized || !stores.sdkStore.error)
|
|
112
|
+
return null;
|
|
113
|
+
if (renderPlaceHolderError)
|
|
114
|
+
return renderPlaceHolderError();
|
|
115
|
+
return React__default.default.createElement(ui_PlaceHolder.default, { type: ui_PlaceHolder.PlaceHolderTypes.WRONG });
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
120
|
+
React__default.default.createElement("div", { className: "sendbird-channel-list__header" }, (renderHeader === null || renderHeader === void 0 ? void 0 : renderHeader()) || (React__default.default.createElement(GroupChannelList_components_GroupChannelListHeader.GroupChannelListHeader, { onEdit: function () { return allowProfileEdit && setShowProfileEdit(true); }, allowProfileEdit: allowProfileEdit, renderIconButton: function () { return renderer.addChannel(); } }))),
|
|
121
|
+
showProfileEdit && (React__default.default.createElement(EditUserProfile, { onThemeChange: onChangeTheme, onCancel: function () { return setShowProfileEdit(false); }, onEditProfile: function (user) {
|
|
122
|
+
setShowProfileEdit(false);
|
|
123
|
+
onUserProfileUpdated(user);
|
|
124
|
+
} })),
|
|
125
|
+
React__default.default.createElement(ChannelListComponent, { data: channels, renderItem: renderer.channel, onLoadMore: onLoadMore, placeholderLoading: renderer.placeholder.loading(), placeholderEmpty: renderer.placeholder.empty(), placeholderError: renderer.placeholder.error(), scrollRef: scrollRef })));
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* To do: Implement windowing
|
|
129
|
+
* Implement windowing if you are dealing with large number of messages/channels
|
|
130
|
+
* https://github.com/bvaughn/react-window -> recommendation
|
|
131
|
+
* We hesitate to bring one more dependency to our library,
|
|
132
|
+
* we are planning to implement it inside the library
|
|
133
|
+
* */
|
|
134
|
+
var ChannelListComponent = function (props) {
|
|
135
|
+
var data = props.data, renderItem = props.renderItem, onLoadMore = props.onLoadMore, placeholderLoading = props.placeholderLoading, placeholderError = props.placeholderError, placeholderEmpty = props.placeholderEmpty, scrollRef = props.scrollRef;
|
|
136
|
+
var onScroll = index.useOnScrollPositionChangeDetector({
|
|
137
|
+
onReachedBottom: function () { return onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore(); },
|
|
138
|
+
});
|
|
139
|
+
return (React__default.default.createElement("div", { className: 'sendbird-channel-list__body', onScroll: onScroll, ref: scrollRef },
|
|
140
|
+
placeholderError,
|
|
141
|
+
React__default.default.createElement("div", null, data.map(function (item, index) { return renderItem({ item: item, index: index }); })),
|
|
142
|
+
placeholderLoading,
|
|
143
|
+
data.length === 0 && placeholderEmpty));
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var filterUser = function (idsToFilter) { return function (currentId) { return idsToFilter === null || idsToFilter === void 0 ? void 0 : idsToFilter.includes(currentId); }; };
|
|
147
|
+
var setChannelType = function (params, type) {
|
|
148
|
+
if (type === 'broadcast') {
|
|
149
|
+
// eslint-disable-next-line no-param-reassign
|
|
150
|
+
params.isBroadcast = true;
|
|
151
|
+
}
|
|
152
|
+
if (type === 'supergroup') {
|
|
153
|
+
// eslint-disable-next-line no-param-reassign
|
|
154
|
+
params.isSuper = true;
|
|
155
|
+
}
|
|
156
|
+
return params;
|
|
157
|
+
};
|
|
158
|
+
var createDefaultUserListQuery = function (_a) {
|
|
159
|
+
var sdk = _a.sdk, userFilledApplicationUserListQuery = _a.userFilledApplicationUserListQuery;
|
|
160
|
+
var params = sdk.createApplicationUserListQuery();
|
|
161
|
+
if (userFilledApplicationUserListQuery) {
|
|
162
|
+
Object.keys(userFilledApplicationUserListQuery).forEach(function (key) {
|
|
163
|
+
// @ts-ignore
|
|
164
|
+
params[key] = userFilledApplicationUserListQuery[key];
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return params;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var CHANNEL_TYPE;
|
|
171
|
+
(function (CHANNEL_TYPE) {
|
|
172
|
+
CHANNEL_TYPE["GROUP"] = "group";
|
|
173
|
+
CHANNEL_TYPE["SUPERGROUP"] = "supergroup";
|
|
174
|
+
CHANNEL_TYPE["BROADCAST"] = "broadcast";
|
|
175
|
+
})(CHANNEL_TYPE || (CHANNEL_TYPE = {}));
|
|
176
|
+
|
|
177
|
+
var CreateChannelContext = React__default.default.createContext(null);
|
|
178
|
+
var initialState = {
|
|
179
|
+
sdk: undefined,
|
|
180
|
+
userListQuery: undefined,
|
|
181
|
+
onCreateChannelClick: undefined,
|
|
182
|
+
onChannelCreated: undefined,
|
|
183
|
+
onBeforeCreateChannel: undefined,
|
|
184
|
+
pageStep: 0,
|
|
185
|
+
type: CHANNEL_TYPE.GROUP,
|
|
186
|
+
onCreateChannel: undefined,
|
|
187
|
+
overrideInviteUser: undefined,
|
|
188
|
+
};
|
|
189
|
+
var CreateChannelManager = function (props) {
|
|
190
|
+
var onCreateChannelClick = props.onCreateChannelClick, onBeforeCreateChannel = props.onBeforeCreateChannel, onChannelCreated = props.onChannelCreated, userListQuery = props.userListQuery, onCreateChannel = props.onCreateChannel, overrideInviteUser = props.overrideInviteUser;
|
|
191
|
+
var updateState = useCreateChannelStore().updateState;
|
|
192
|
+
var config = useSendbird.useSendbird().state.config;
|
|
193
|
+
var _userListQuery = userListQuery !== null && userListQuery !== void 0 ? userListQuery : config === null || config === void 0 ? void 0 : config.userListQuery;
|
|
194
|
+
React.useEffect(function () {
|
|
195
|
+
updateState({
|
|
196
|
+
onCreateChannelClick: onCreateChannelClick,
|
|
197
|
+
onBeforeCreateChannel: onBeforeCreateChannel,
|
|
198
|
+
onChannelCreated: onChannelCreated,
|
|
199
|
+
userListQuery: _userListQuery,
|
|
200
|
+
onCreateChannel: onCreateChannel,
|
|
201
|
+
overrideInviteUser: overrideInviteUser,
|
|
202
|
+
});
|
|
203
|
+
}, [
|
|
204
|
+
onCreateChannelClick,
|
|
205
|
+
onBeforeCreateChannel,
|
|
206
|
+
onChannelCreated,
|
|
207
|
+
userListQuery,
|
|
208
|
+
onCreateChannel,
|
|
209
|
+
overrideInviteUser,
|
|
210
|
+
_userListQuery,
|
|
211
|
+
]);
|
|
212
|
+
return null;
|
|
213
|
+
};
|
|
214
|
+
var CreateChannelProvider = function (props) {
|
|
215
|
+
var children = props.children;
|
|
216
|
+
return (React__default.default.createElement(InternalCreateChannelProvider, null,
|
|
217
|
+
React__default.default.createElement(CreateChannelManager, _tslib.__assign({}, props)),
|
|
218
|
+
children));
|
|
219
|
+
};
|
|
220
|
+
var createCreateChannelStore = function () { return SendbirdContext.createStore(initialState); };
|
|
221
|
+
var InternalCreateChannelProvider = function (_a) {
|
|
222
|
+
var children = _a.children;
|
|
223
|
+
var storeRef = React.useRef(createCreateChannelStore());
|
|
224
|
+
return (React__default.default.createElement(CreateChannelContext.Provider, { value: storeRef.current }, children));
|
|
225
|
+
};
|
|
226
|
+
var useCreateChannelStore = function () {
|
|
227
|
+
return SendbirdContext.useStore(CreateChannelContext, function (state) { return state; }, initialState);
|
|
228
|
+
};
|
|
229
|
+
var useCreateChannelContext = function () {
|
|
230
|
+
var _a = useCreateChannel(), state = _a.state, actions = _a.actions;
|
|
231
|
+
return _tslib.__assign(_tslib.__assign({}, state), actions);
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
var useCreateChannel = function () {
|
|
235
|
+
var store = React.useContext(CreateChannelContext);
|
|
236
|
+
var sendbirdStore = useSendbirdStateContext();
|
|
237
|
+
if (!store)
|
|
238
|
+
throw new Error('useCreateChannel must be used within a CreateChannelProvider');
|
|
239
|
+
var state = SendbirdContext.shimExports.useSyncExternalStore(store.subscribe, store.getState);
|
|
240
|
+
var actions = React.useMemo(function () { return ({
|
|
241
|
+
setPageStep: function (pageStep) { return store.setState(function (state) { return (_tslib.__assign(_tslib.__assign({}, state), { pageStep: pageStep })); }); },
|
|
242
|
+
setType: function (type) { return store.setState(function (state) { return (_tslib.__assign(_tslib.__assign({}, state), { type: type })); }); },
|
|
243
|
+
createChannel: sendbirdSelectors.getCreateGroupChannel(sendbirdStore),
|
|
244
|
+
}); }, [store]);
|
|
245
|
+
return { state: state, actions: actions };
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
var BUFFER = 50;
|
|
249
|
+
var InviteUsers = function (_a) {
|
|
250
|
+
var onCancel = _a.onCancel, userListQuery = _a.userListQuery;
|
|
251
|
+
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;
|
|
252
|
+
var _d = useSendbird.useSendbird().state, userId = _d.config.userId, sdk = _d.stores.sdkStore.sdk;
|
|
253
|
+
var idsToFilter = [userId];
|
|
254
|
+
var _e = React.useState([]), users = _e[0], setUsers = _e[1];
|
|
255
|
+
var _f = React.useState({}), selectedUsers = _f[0], setSelectedUsers = _f[1];
|
|
256
|
+
var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
|
|
257
|
+
var _g = React.useState(null), usersDataSource = _g[0], setUsersDataSource = _g[1];
|
|
258
|
+
var selectedCount = Object.keys(selectedUsers).length;
|
|
259
|
+
var titleText = stringSet.MODAL__CREATE_CHANNEL__TITLE;
|
|
260
|
+
var submitText = stringSet.BUTTON__CREATE;
|
|
261
|
+
var isMobile = MediaQueryContext.useMediaQueryContext().isMobile;
|
|
262
|
+
var _h = React.useState(window.innerHeight), scrollableAreaHeight = _h[0], setScrollableAreaHeight = _h[1];
|
|
263
|
+
React.useEffect(function () {
|
|
264
|
+
var applicationUserListQuery = userListQuery ? userListQuery() : createDefaultUserListQuery({ sdk: sdk });
|
|
265
|
+
setUsersDataSource(applicationUserListQuery);
|
|
266
|
+
if (!(applicationUserListQuery === null || applicationUserListQuery === void 0 ? void 0 : applicationUserListQuery.isLoading)) {
|
|
267
|
+
applicationUserListQuery.next().then(function (it) {
|
|
268
|
+
setUsers(it);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}, []);
|
|
272
|
+
// To fix navbar break in mobile we set dynamic height to the scrollable area
|
|
273
|
+
React.useEffect(function () {
|
|
274
|
+
var scrollableAreaHeight = function () {
|
|
275
|
+
setScrollableAreaHeight(window.innerHeight);
|
|
276
|
+
};
|
|
277
|
+
window.addEventListener('resize', scrollableAreaHeight);
|
|
278
|
+
return function () {
|
|
279
|
+
window.removeEventListener('resize', scrollableAreaHeight);
|
|
280
|
+
};
|
|
281
|
+
}, []);
|
|
282
|
+
return (React__default.default.createElement(ui_Modal.Modal, { isFullScreenOnMobile: true, titleText: titleText, submitText: submitText, type: ui_Button.ButtonTypes.PRIMARY,
|
|
283
|
+
// Disable the create button if no users are selected,
|
|
284
|
+
// but if there's only the logged-in user in the user list,
|
|
285
|
+
// then the create button should be enabled
|
|
286
|
+
disabled: users.length > 1 && Object.keys(selectedUsers).length === 0, onCancel: onCancel, onSubmit: function () {
|
|
287
|
+
var selectedUserList = Object.keys(selectedUsers).length > 0
|
|
288
|
+
? Object.keys(selectedUsers)
|
|
289
|
+
: [userId];
|
|
290
|
+
var _onChannelCreated = onChannelCreated !== null && onChannelCreated !== void 0 ? onChannelCreated : onCreateChannel;
|
|
291
|
+
var _onCreateChannelClick = onCreateChannelClick !== null && onCreateChannelClick !== void 0 ? onCreateChannelClick : overrideInviteUser;
|
|
292
|
+
if (typeof _onCreateChannelClick === 'function') {
|
|
293
|
+
_onCreateChannelClick({
|
|
294
|
+
users: selectedUserList,
|
|
295
|
+
onClose: onCancel !== null && onCancel !== void 0 ? onCancel : utils.noop,
|
|
296
|
+
channelType: type,
|
|
297
|
+
});
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (onBeforeCreateChannel) {
|
|
301
|
+
var params = onBeforeCreateChannel(selectedUserList);
|
|
302
|
+
setChannelType(params, type);
|
|
303
|
+
createChannel(params).then(function (channel) { return _onChannelCreated === null || _onChannelCreated === void 0 ? void 0 : _onChannelCreated(channel); });
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
var params = {};
|
|
307
|
+
params.invitedUserIds = selectedUserList;
|
|
308
|
+
params.isDistinct = false;
|
|
309
|
+
if (userId) {
|
|
310
|
+
params.operatorUserIds = [userId];
|
|
311
|
+
}
|
|
312
|
+
setChannelType(params, type);
|
|
313
|
+
// do not have custom params
|
|
314
|
+
createChannel(params).then(function (channel) { return _onChannelCreated === null || _onChannelCreated === void 0 ? void 0 : _onChannelCreated(channel); });
|
|
315
|
+
}
|
|
316
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
317
|
+
} },
|
|
318
|
+
React__default.default.createElement("div", null,
|
|
319
|
+
React__default.default.createElement(ui_Label.Label, { color: (selectedCount > 0) ? ui_Label.LabelColors.PRIMARY : ui_Label.LabelColors.ONBACKGROUND_3, type: ui_Label.LabelTypography.CAPTION_1 }, "".concat(selectedCount, " ").concat(stringSet.MODAL__INVITE_MEMBER__SELECTED)),
|
|
320
|
+
React__default.default.createElement("div", { className: "sendbird-create-channel--scroll", style: isMobile ? { height: "calc(".concat(scrollableAreaHeight, "px - 200px)") } : {}, onScroll: function (e) {
|
|
321
|
+
if (!usersDataSource)
|
|
322
|
+
return;
|
|
323
|
+
var eventTarget = e.target;
|
|
324
|
+
var hasNext = usersDataSource.hasNext, isLoading = usersDataSource.isLoading;
|
|
325
|
+
var fetchMore = ((eventTarget.clientHeight + eventTarget.scrollTop + BUFFER) > eventTarget.scrollHeight);
|
|
326
|
+
if (hasNext && fetchMore && !isLoading) {
|
|
327
|
+
usersDataSource.next().then(function (usersBatch) {
|
|
328
|
+
setUsers(_tslib.__spreadArray(_tslib.__spreadArray([], users, true), usersBatch, true));
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
} }, users.map(function (user) { return (!filterUser(idsToFilter)(user.userId)) && (React__default.default.createElement(ui_UserListItem.UserListItem, { key: user.userId, user: user, checkBox: true, checked: selectedUsers[user.userId], onChange: function (event) {
|
|
332
|
+
var _a;
|
|
333
|
+
var modifiedSelectedUsers = _tslib.__assign(_tslib.__assign({}, selectedUsers), (_a = {}, _a[event.target.id] = event.target.checked, _a));
|
|
334
|
+
if (!event.target.checked) {
|
|
335
|
+
delete modifiedSelectedUsers[event.target.id];
|
|
336
|
+
}
|
|
337
|
+
setSelectedUsers(modifiedSelectedUsers);
|
|
338
|
+
} })); })))));
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
var isBroadcastChannelEnabled = function (sdk) {
|
|
342
|
+
var _a;
|
|
343
|
+
var ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';
|
|
344
|
+
var applicationAttributes = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) === null || _a === void 0 ? void 0 : _a.applicationAttributes;
|
|
345
|
+
if (Array.isArray(applicationAttributes)) {
|
|
346
|
+
return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);
|
|
347
|
+
}
|
|
348
|
+
return false;
|
|
349
|
+
};
|
|
350
|
+
var isSuperGroupChannelEnabled = function (sdk) {
|
|
351
|
+
var _a;
|
|
352
|
+
var ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';
|
|
353
|
+
var applicationAttributes = (_a = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) === null || _a === void 0 ? void 0 : _a.applicationAttributes;
|
|
354
|
+
if (Array.isArray(applicationAttributes)) {
|
|
355
|
+
return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);
|
|
356
|
+
}
|
|
357
|
+
return false;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
var SelectChannelType = function (props) {
|
|
361
|
+
var onCancel = props.onCancel;
|
|
362
|
+
var state = useSendbird.useSendbird().state;
|
|
363
|
+
var sdk = sendbirdSelectors.getSdk(state);
|
|
364
|
+
var _a = useCreateChannel().actions, setPageStep = _a.setPageStep, setType = _a.setType;
|
|
365
|
+
var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
|
|
366
|
+
var isBroadcastAvailable = isBroadcastChannelEnabled(sdk);
|
|
367
|
+
var isSupergroupAvailable = isSuperGroupChannelEnabled(sdk);
|
|
368
|
+
return (React__default.default.createElement(ui_Modal.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" },
|
|
369
|
+
React__default.default.createElement("div", { className: "sendbird-add-channel__rectangle-wrap" },
|
|
370
|
+
React__default.default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
371
|
+
setType(CHANNEL_TYPE.GROUP);
|
|
372
|
+
setPageStep(1);
|
|
373
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
374
|
+
setType(CHANNEL_TYPE.GROUP);
|
|
375
|
+
setPageStep(1);
|
|
376
|
+
} },
|
|
377
|
+
React__default.default.createElement(ui_Icon.default, { className: "sendbird-add-channel__rectangle__chat-icon", type: ui_Icon.IconTypes.CHAT, fillColor: ui_Icon.IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
378
|
+
React__default.default.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.SUBTITLE_1, color: ui_Label.LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__GROUP)),
|
|
379
|
+
isSupergroupAvailable && (React__default.default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
380
|
+
setType(CHANNEL_TYPE.SUPERGROUP);
|
|
381
|
+
setPageStep(1);
|
|
382
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
383
|
+
setType(CHANNEL_TYPE.SUPERGROUP);
|
|
384
|
+
setPageStep(1);
|
|
385
|
+
} },
|
|
386
|
+
React__default.default.createElement(ui_Icon.default, { className: "sendbird-add-channel__rectangle__supergroup-icon", type: ui_Icon.IconTypes.SUPERGROUP, fillColor: ui_Icon.IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
387
|
+
React__default.default.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.SUBTITLE_1, color: ui_Label.LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__SUPER))),
|
|
388
|
+
isBroadcastAvailable && (React__default.default.createElement("div", { className: "sendbird-add-channel__rectangle", onClick: function () {
|
|
389
|
+
setType(CHANNEL_TYPE.BROADCAST);
|
|
390
|
+
setPageStep(1);
|
|
391
|
+
}, role: "button", tabIndex: 0, onKeyDown: function () {
|
|
392
|
+
setType(CHANNEL_TYPE.BROADCAST);
|
|
393
|
+
setPageStep(1);
|
|
394
|
+
} },
|
|
395
|
+
React__default.default.createElement(ui_Icon.default, { className: "sendbird-add-channel__rectangle__broadcast-icon", type: ui_Icon.IconTypes.BROADCAST, fillColor: ui_Icon.IconColors.PRIMARY, width: "28px", height: "28px" }),
|
|
396
|
+
React__default.default.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.SUBTITLE_1, color: ui_Label.LabelColors.ONBACKGROUND_1 }, stringSet.MODAL__CREATE_CHANNEL__BROADCAST))))));
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
var CreateChannel$1 = function (props) {
|
|
400
|
+
var onCancel = props.onCancel, renderStepOne = props.renderStepOne;
|
|
401
|
+
var _a = useCreateChannel(), _b = _a.state, pageStep = _b.pageStep, userListQuery = _b.userListQuery, setPageStep = _a.actions.setPageStep;
|
|
402
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
403
|
+
pageStep === 0 && ((renderStepOne === null || renderStepOne === void 0 ? void 0 : renderStepOne()) || (React__default.default.createElement(SelectChannelType, { onCancel: onCancel }))),
|
|
404
|
+
pageStep === 1 && (React__default.default.createElement(InviteUsers, { userListQuery: userListQuery, onCancel: function () {
|
|
405
|
+
setPageStep(0);
|
|
406
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
407
|
+
} }))));
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
var CreateChannel = function (props) {
|
|
411
|
+
return (React__default.default.createElement(CreateChannelProvider, _tslib.__assign({}, props),
|
|
412
|
+
React__default.default.createElement(CreateChannel$1, _tslib.__assign({}, props))));
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
var AddGroupChannelView = function (_a) {
|
|
416
|
+
var createChannelVisible = _a.createChannelVisible, onChangeCreateChannelVisible = _a.onChangeCreateChannelVisible, onBeforeCreateChannel = _a.onBeforeCreateChannel, onCreateChannelClick = _a.onCreateChannelClick, onChannelCreated = _a.onChannelCreated;
|
|
417
|
+
var config = useSendbird.useSendbird().state.config;
|
|
418
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
419
|
+
React__default.default.createElement(ui_IconButton, { height: '32px', width: '32px', disabled: !config.isOnline, onClick: function () { return onChangeCreateChannelVisible(true); } },
|
|
420
|
+
React__default.default.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.CREATE, fillColor: ui_Icon.IconColors.PRIMARY, width: '24px', height: '24px' })),
|
|
421
|
+
createChannelVisible && (React__default.default.createElement(CreateChannel, { onCancel: function () { return onChangeCreateChannelVisible(false); }, onChannelCreated: function (channel) {
|
|
422
|
+
onChannelCreated === null || onChannelCreated === void 0 ? void 0 : onChannelCreated(channel);
|
|
423
|
+
onChangeCreateChannelVisible(false);
|
|
424
|
+
}, onBeforeCreateChannel: onBeforeCreateChannel, onCreateChannelClick: onCreateChannelClick }))));
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
var AddGroupChannel = function () {
|
|
428
|
+
var _a = React.useState(false), createChannelVisible = _a[0], setCreateChannelVisible = _a[1];
|
|
429
|
+
var _b = GroupChannelListProvider.useGroupChannelList().state, onChannelCreated = _b.onChannelCreated, onBeforeCreateChannel = _b.onBeforeCreateChannel, onCreateChannelClick = _b.onCreateChannelClick;
|
|
430
|
+
return (React__default.default.createElement(AddGroupChannelView, { createChannelVisible: createChannelVisible, onChangeCreateChannelVisible: setCreateChannelVisible, onCreateChannelClick: onCreateChannelClick, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: onChannelCreated }));
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
var GroupChannelListUI = function (props) {
|
|
434
|
+
var renderHeader = props.renderHeader, renderChannelPreview = props.renderChannelPreview, renderPlaceHolderError = props.renderPlaceHolderError, renderPlaceHolderLoading = props.renderPlaceHolderLoading, renderPlaceHolderEmptyList = props.renderPlaceHolderEmptyList;
|
|
435
|
+
var _a = GroupChannelListProvider.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;
|
|
436
|
+
var _b = useSendbird.useSendbird().state, stores = _b.stores, _c = _b.config, logger = _c.logger, isOnline = _c.isOnline;
|
|
437
|
+
var sdk = stores.sdkStore.sdk;
|
|
438
|
+
var renderListItem = function (renderProps) {
|
|
439
|
+
var channel = renderProps.item, index = renderProps.index;
|
|
440
|
+
var itemProps = {
|
|
441
|
+
channel: channel,
|
|
442
|
+
tabIndex: index,
|
|
443
|
+
isSelected: channel.url === selectedChannelUrl,
|
|
444
|
+
isTyping: typingChannelUrls.includes(channel.url),
|
|
445
|
+
renderChannelAction: function (props) { return React__default.default.createElement(GroupChannelList_components_GroupChannelPreviewAction.GroupChannelPreviewAction, _tslib.__assign({}, props)); },
|
|
446
|
+
onClick: function () {
|
|
447
|
+
if (isOnline || (sdk === null || sdk === void 0 ? void 0 : sdk.isCacheEnabled)) {
|
|
448
|
+
logger.info('ChannelList: Clicked on channel:', channel);
|
|
449
|
+
onChannelSelect(channel);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
logger.warning('ChannelList: Inactivated clicking channel item during offline.');
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
onLeaveChannel: function () {
|
|
456
|
+
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
457
|
+
return _tslib.__generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0:
|
|
460
|
+
logger.info('ChannelList: Leaving channel', channel);
|
|
461
|
+
return [4 /*yield*/, channel.leave()];
|
|
462
|
+
case 1:
|
|
463
|
+
_a.sent();
|
|
464
|
+
logger.info('ChannelList: Leaving channel success');
|
|
465
|
+
return [2 /*return*/];
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
},
|
|
470
|
+
};
|
|
471
|
+
if (renderChannelPreview) {
|
|
472
|
+
return (React__default.default.createElement("div", { key: channel.url, onClick: itemProps.onClick }, renderChannelPreview(itemProps)));
|
|
473
|
+
}
|
|
474
|
+
return React__default.default.createElement(GroupChannelList_components_GroupChannelListItem.GroupChannelListItem, _tslib.__assign({ key: channel.url }, itemProps));
|
|
475
|
+
};
|
|
476
|
+
return (React__default.default.createElement(GroupChannelListUIView, { renderHeader: renderHeader, renderChannel: renderListItem, renderPlaceHolderError: renderPlaceHolderError, renderPlaceHolderLoading: renderPlaceHolderLoading, renderPlaceHolderEmptyList: renderPlaceHolderEmptyList, onChangeTheme: onThemeChange !== null && onThemeChange !== void 0 ? onThemeChange : utils.noop, allowProfileEdit: allowProfileEdit, onUserProfileUpdated: onUserProfileUpdated !== null && onUserProfileUpdated !== void 0 ? onUserProfileUpdated : utils.noop, channels: groupChannels, onLoadMore: loadMore, initialized: initialized, renderAddChannel: function () { return React__default.default.createElement(AddGroupChannel, null); }, scrollRef: scrollRef }));
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
var GroupChannelList = function (props) {
|
|
480
|
+
return (React__default.default.createElement(GroupChannelListProvider.GroupChannelListProvider, _tslib.__assign({}, props),
|
|
481
|
+
React__default.default.createElement(GroupChannelListUI, _tslib.__assign({}, props))));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
var AddChannel = function () {
|
|
485
|
+
var _a = React.useState(false), showModal = _a[0], setShowModal = _a[1];
|
|
486
|
+
var _b = ChannelList_context.useChannelListContext(), overrideInviteUser = _b.overrideInviteUser, onBeforeCreateChannel = _b.onBeforeCreateChannel, onChannelSelect = _b.onChannelSelect;
|
|
487
|
+
return (React__default.default.createElement(AddGroupChannelView, { createChannelVisible: showModal, onChangeCreateChannelVisible: setShowModal, onCreateChannelClick: overrideInviteUser, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: function (it) { return onChannelSelect === null || onChannelSelect === void 0 ? void 0 : onChannelSelect(it); } }));
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated This component is deprecated and will be removed in the next major update.
|
|
492
|
+
* Please use the `GroupChannel` component from '@sendbird/uikit-react/GroupChannel' instead.
|
|
493
|
+
* For more information, please refer to the migration guide:
|
|
494
|
+
* https://docs.sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide
|
|
495
|
+
*/
|
|
496
|
+
var ChannelListUI = function (props) {
|
|
497
|
+
var renderHeader = props.renderHeader, renderChannelPreview = props.renderChannelPreview, renderPlaceHolderError = props.renderPlaceHolderError, renderPlaceHolderLoading = props.renderPlaceHolderLoading, renderPlaceHolderEmptyList = props.renderPlaceHolderEmptyList;
|
|
498
|
+
var _a = ChannelList_context.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;
|
|
499
|
+
var state = useSendbird.useSendbird().state;
|
|
500
|
+
var stores = state.stores, config = state.config;
|
|
501
|
+
var logger = config.logger, _b = config.isOnline, isOnline = _b === void 0 ? false : _b;
|
|
502
|
+
var sdk = stores.sdkStore.sdk;
|
|
503
|
+
var renderListItem = function (props) {
|
|
504
|
+
var channel = props.item, index = props.index;
|
|
505
|
+
var previewProps = {
|
|
506
|
+
channel: channel,
|
|
507
|
+
tabIndex: index,
|
|
508
|
+
isSelected: (channel === null || channel === void 0 ? void 0 : channel.url) === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url),
|
|
509
|
+
isTyping: typingChannels === null || typingChannels === void 0 ? void 0 : typingChannels.some(function (_a) {
|
|
510
|
+
var url = _a.url;
|
|
511
|
+
return url === (channel === null || channel === void 0 ? void 0 : channel.url);
|
|
512
|
+
}),
|
|
513
|
+
renderChannelAction: function (props) { return React__default.default.createElement(GroupChannelList_components_GroupChannelPreviewAction.GroupChannelPreviewAction, _tslib.__assign({}, props)); },
|
|
514
|
+
onClick: function () {
|
|
515
|
+
if (!isOnline && !(sdk === null || sdk === void 0 ? void 0 : sdk.isCacheEnabled)) {
|
|
516
|
+
logger.warning('ChannelList: Inactivated clicking channel item during offline.');
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
logger.info('ChannelList: Clicked on channel:', channel);
|
|
520
|
+
channelListDispatcher({
|
|
521
|
+
type: ChannelList_context.SET_CURRENT_CHANNEL,
|
|
522
|
+
payload: channel,
|
|
523
|
+
});
|
|
524
|
+
},
|
|
525
|
+
onLeaveChannel: function (channel, cb) {
|
|
526
|
+
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var response, err_1;
|
|
528
|
+
return _tslib.__generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
logger.info('ChannelList: Leaving channel', channel);
|
|
532
|
+
if (!channel) return [3 /*break*/, 4];
|
|
533
|
+
_a.label = 1;
|
|
534
|
+
case 1:
|
|
535
|
+
_a.trys.push([1, 3, , 4]);
|
|
536
|
+
return [4 /*yield*/, channel.leave()];
|
|
537
|
+
case 2:
|
|
538
|
+
response = _a.sent();
|
|
539
|
+
logger.info('ChannelList: Leaving channel success', response);
|
|
540
|
+
if (cb && typeof cb === 'function')
|
|
541
|
+
cb(channel, null);
|
|
542
|
+
channelListDispatcher({
|
|
543
|
+
type: ChannelList_context.LEAVE_CHANNEL_SUCCESS,
|
|
544
|
+
payload: channel.url,
|
|
545
|
+
});
|
|
546
|
+
return [3 /*break*/, 4];
|
|
547
|
+
case 3:
|
|
548
|
+
err_1 = _a.sent();
|
|
549
|
+
logger.error('ChannelList: Leaving channel failed', err_1);
|
|
550
|
+
if (cb && typeof cb === 'function')
|
|
551
|
+
cb(channel, err_1);
|
|
552
|
+
return [3 /*break*/, 4];
|
|
553
|
+
case 4: return [2 /*return*/];
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
},
|
|
558
|
+
};
|
|
559
|
+
if (renderChannelPreview) {
|
|
560
|
+
return (React__default.default.createElement("div", { key: channel === null || channel === void 0 ? void 0 : channel.url, onClick: previewProps.onClick }, renderChannelPreview(previewProps)));
|
|
561
|
+
}
|
|
562
|
+
return React__default.default.createElement(ChannelList_components_ChannelPreview, _tslib.__assign({ key: channel === null || channel === void 0 ? void 0 : channel.url }, previewProps));
|
|
563
|
+
};
|
|
564
|
+
return (React__default.default.createElement(GroupChannelListUIView, { renderHeader: renderHeader, renderChannel: renderListItem, renderPlaceHolderError: renderPlaceHolderError, renderPlaceHolderLoading: renderPlaceHolderLoading, renderPlaceHolderEmptyList: renderPlaceHolderEmptyList, onChangeTheme: onThemeChange !== null && onThemeChange !== void 0 ? onThemeChange : utils.noop, allowProfileEdit: allowProfileEdit, onUserProfileUpdated: onProfileEditSuccess !== null && onProfileEditSuccess !== void 0 ? onProfileEditSuccess : utils.noop, channels: allChannels, onLoadMore: fetchChannelList, initialized: initialized, renderAddChannel: function () { return React__default.default.createElement(AddChannel, null); } }));
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @deprecated This component is deprecated and will be removed in the next major update.
|
|
569
|
+
* Please use the `GroupChannelList` component from '@sendbird/uikit-react/GroupChannelList' instead.
|
|
570
|
+
* For more information, please refer to the migration guide:
|
|
571
|
+
* https://docs.sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide
|
|
572
|
+
*/
|
|
573
|
+
var ChannelList = function (props) {
|
|
574
|
+
return (React__default.default.createElement(ChannelList_context.ChannelListProvider, _tslib.__assign({}, props),
|
|
575
|
+
React__default.default.createElement(ChannelListUI, _tslib.__assign({}, props))));
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
var PANELS;
|
|
579
|
+
(function (PANELS) {
|
|
580
|
+
PANELS["CHANNEL_LIST"] = "CHANNEL_LIST";
|
|
581
|
+
PANELS["CHANNEL"] = "CHANNEL";
|
|
582
|
+
PANELS["CHANNEL_SETTINGS"] = "CHANNEL_SETTINGS";
|
|
583
|
+
PANELS["MESSAGE_SEARCH"] = "MESSAGE_SEARCH";
|
|
584
|
+
PANELS["THREAD"] = "THREAD";
|
|
585
|
+
})(PANELS || (PANELS = {}));
|
|
586
|
+
var MobileLayout = function (props) {
|
|
587
|
+
var _a, _b, _c;
|
|
588
|
+
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;
|
|
589
|
+
var _d = React.useState(PANELS.CHANNEL_LIST), panel = _d[0], setPanel = _d[1];
|
|
590
|
+
var store = useSendbird.useSendbird().state;
|
|
591
|
+
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;
|
|
592
|
+
var userId = (_c = store === null || store === void 0 ? void 0 : store.config) === null || _c === void 0 ? void 0 : _c.userId;
|
|
593
|
+
var pause = VoicePlayer_context.useVoicePlayerContext().pause;
|
|
594
|
+
var goToMessage = function (message, timeoutCb) {
|
|
595
|
+
setStartingPoint === null || setStartingPoint === void 0 ? void 0 : setStartingPoint((message === null || message === void 0 ? void 0 : message.createdAt) || null);
|
|
596
|
+
setTimeout(function () {
|
|
597
|
+
timeoutCb === null || timeoutCb === void 0 ? void 0 : timeoutCb((message === null || message === void 0 ? void 0 : message.messageId) || null);
|
|
598
|
+
}, 500);
|
|
599
|
+
};
|
|
600
|
+
React.useEffect(function () {
|
|
601
|
+
if (panel !== PANELS.CHANNEL) {
|
|
602
|
+
goToMessage(null, function () { return setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(null); });
|
|
603
|
+
}
|
|
604
|
+
}, [panel]);
|
|
605
|
+
React.useEffect(function () {
|
|
606
|
+
var _a, _b;
|
|
607
|
+
var handlerId = uuid.uuidv4();
|
|
608
|
+
if ((_a = sdk === null || sdk === void 0 ? void 0 : sdk.groupChannel) === null || _a === void 0 ? void 0 : _a.addGroupChannelHandler) {
|
|
609
|
+
var handler = new groupChannel.GroupChannelHandler({
|
|
610
|
+
onUserBanned: function (groupChannel, user) {
|
|
611
|
+
if (groupChannel.url === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) && (user === null || user === void 0 ? void 0 : user.userId) === userId) {
|
|
612
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
onChannelDeleted: function (channelUrl) {
|
|
616
|
+
if (channelUrl === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url)) {
|
|
617
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
onUserLeft: function (groupChannel, user) {
|
|
621
|
+
if (groupChannel.url === (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) && (user === null || user === void 0 ? void 0 : user.userId) === userId) {
|
|
622
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
});
|
|
626
|
+
(_b = sdk === null || sdk === void 0 ? void 0 : sdk.groupChannel) === null || _b === void 0 ? void 0 : _b.addGroupChannelHandler(handlerId, handler);
|
|
627
|
+
}
|
|
628
|
+
return function () {
|
|
629
|
+
var _a, _b;
|
|
630
|
+
(_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);
|
|
631
|
+
};
|
|
632
|
+
}, [sdk, currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url]);
|
|
633
|
+
// if currentChannel is changed while on Thread
|
|
634
|
+
// then change panel type to CHANNEL
|
|
635
|
+
React.useEffect(function () {
|
|
636
|
+
if (panel === PANELS.THREAD) {
|
|
637
|
+
setPanel(PANELS.CHANNEL);
|
|
638
|
+
}
|
|
639
|
+
}, [currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url]);
|
|
640
|
+
var channelListProps = {
|
|
641
|
+
allowProfileEdit: allowProfileEdit,
|
|
642
|
+
onProfileEditSuccess: onProfileEditSuccess,
|
|
643
|
+
disableAutoSelect: true,
|
|
644
|
+
onChannelSelect: function (channel) {
|
|
645
|
+
setCurrentChannel(channel !== null && channel !== void 0 ? channel : undefined);
|
|
646
|
+
if (channel) {
|
|
647
|
+
setPanel(PANELS.CHANNEL);
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
// for GroupChannelList
|
|
654
|
+
onChannelCreated: function (channel) {
|
|
655
|
+
setCurrentChannel(channel);
|
|
656
|
+
setPanel(PANELS.CHANNEL);
|
|
657
|
+
},
|
|
658
|
+
onUserProfileUpdated: onProfileEditSuccess,
|
|
659
|
+
};
|
|
660
|
+
var channelProps = {
|
|
661
|
+
channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '',
|
|
662
|
+
onChatHeaderActionClick: function () {
|
|
663
|
+
setPanel(PANELS.CHANNEL_SETTINGS);
|
|
664
|
+
},
|
|
665
|
+
onBackClick: function () {
|
|
666
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
667
|
+
pause(VoicePlayer_context.ALL);
|
|
668
|
+
},
|
|
669
|
+
onSearchClick: function () {
|
|
670
|
+
setPanel(PANELS.MESSAGE_SEARCH);
|
|
671
|
+
},
|
|
672
|
+
onReplyInThread: function (_a) {
|
|
673
|
+
var message = _a.message;
|
|
674
|
+
if (replyType === 'THREAD') {
|
|
675
|
+
setPanel(PANELS.THREAD);
|
|
676
|
+
setThreadTargetMessage(message);
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
onQuoteMessageClick: function (_a) {
|
|
680
|
+
var message = _a.message;
|
|
681
|
+
// thread message
|
|
682
|
+
if (replyType === 'THREAD') {
|
|
683
|
+
setThreadTargetMessage(message);
|
|
684
|
+
setPanel(PANELS.THREAD);
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
animatedMessage: highlightedMessage,
|
|
688
|
+
onMessageAnimated: function () { return setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(null); },
|
|
689
|
+
showSearchIcon: showSearchIcon,
|
|
690
|
+
startingPoint: startingPoint !== null && startingPoint !== void 0 ? startingPoint : undefined,
|
|
691
|
+
isReactionEnabled: isReactionEnabled,
|
|
692
|
+
replyType: replyType,
|
|
693
|
+
isMessageGroupingEnabled: isMessageGroupingEnabled,
|
|
694
|
+
isMultipleFilesMessageEnabled: isMultipleFilesMessageEnabled,
|
|
695
|
+
// for GroupChannel
|
|
696
|
+
animatedMessageId: highlightedMessage,
|
|
697
|
+
onReplyInThreadClick: function (_a) {
|
|
698
|
+
var message = _a.message;
|
|
699
|
+
if (replyType === 'THREAD') {
|
|
700
|
+
setPanel(PANELS.THREAD);
|
|
701
|
+
setThreadTargetMessage(message);
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
};
|
|
705
|
+
return (React__default.default.createElement("div", { className: "sb_mobile", id: ui_ContextMenu.APP_LAYOUT_ROOT },
|
|
706
|
+
panel === PANELS.CHANNEL_LIST && (React__default.default.createElement("div", { className: "sb_mobile__panelwrap" }, enableLegacyChannelModules ? React__default.default.createElement(ChannelList, _tslib.__assign({}, channelListProps)) : React__default.default.createElement(GroupChannelList, _tslib.__assign({}, channelListProps)))),
|
|
707
|
+
panel === PANELS.CHANNEL && (React__default.default.createElement("div", { className: "sb_mobile__panelwrap" }, enableLegacyChannelModules ? React__default.default.createElement(Channel, _tslib.__assign({}, channelProps)) : React__default.default.createElement(GroupChannel.GroupChannel, _tslib.__assign({}, channelProps)))),
|
|
708
|
+
panel === PANELS.CHANNEL_SETTINGS && (React__default.default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
709
|
+
React__default.default.createElement(ChannelSettings, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', onCloseClick: function () {
|
|
710
|
+
setPanel(PANELS.CHANNEL);
|
|
711
|
+
}, onLeaveChannel: function () {
|
|
712
|
+
setPanel(PANELS.CHANNEL_LIST);
|
|
713
|
+
} }))),
|
|
714
|
+
panel === PANELS.MESSAGE_SEARCH && (React__default.default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
715
|
+
React__default.default.createElement(MessageSearch, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', onCloseClick: function () {
|
|
716
|
+
setPanel(PANELS.CHANNEL);
|
|
717
|
+
}, onResultClick: function (message) {
|
|
718
|
+
setPanel(PANELS.CHANNEL);
|
|
719
|
+
goToMessage(message, function (messageId) {
|
|
720
|
+
setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(messageId);
|
|
721
|
+
});
|
|
722
|
+
} }))),
|
|
723
|
+
panel === PANELS.THREAD && (React__default.default.createElement("div", { className: "sb_mobile__panelwrap" },
|
|
724
|
+
React__default.default.createElement(Thread, { channelUrl: (currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.url) || '', message: threadTargetMessage, onHeaderActionClick: function () {
|
|
725
|
+
setPanel(PANELS.CHANNEL);
|
|
726
|
+
pause(VoicePlayer_context.ALL);
|
|
727
|
+
}, onMoveToParentMessage: function (_a) {
|
|
728
|
+
var message = _a.message, channel = _a.channel;
|
|
729
|
+
setCurrentChannel(channel);
|
|
730
|
+
goToMessage(message, function (messageId) {
|
|
731
|
+
setPanel(PANELS.CHANNEL);
|
|
732
|
+
setHighlightedMessage === null || setHighlightedMessage === void 0 ? void 0 : setHighlightedMessage(messageId);
|
|
733
|
+
});
|
|
734
|
+
} })))));
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
// NOTE: Do not use this hook internally.
|
|
738
|
+
// This hook is exported to support backward compatibility.
|
|
739
|
+
// Keep this function for backward compatibility.
|
|
740
|
+
function useSendbirdStateContext() {
|
|
741
|
+
var _a = useSendbird.useSendbird(), state = _a.state, actions = _a.actions;
|
|
742
|
+
return _tslib.__assign(_tslib.__assign({}, state), actions);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
exports.AddChannel = AddChannel;
|
|
746
|
+
exports.AddGroupChannel = AddGroupChannel;
|
|
747
|
+
exports.ChannelList = ChannelList;
|
|
748
|
+
exports.ChannelListUI = ChannelListUI;
|
|
749
|
+
exports.CreateChannel = CreateChannel$1;
|
|
750
|
+
exports.CreateChannel$1 = CreateChannel;
|
|
751
|
+
exports.CreateChannelContext = CreateChannelContext;
|
|
752
|
+
exports.CreateChannelProvider = CreateChannelProvider;
|
|
753
|
+
exports.GroupChannelList = GroupChannelList;
|
|
754
|
+
exports.GroupChannelListUI = GroupChannelListUI;
|
|
755
|
+
exports.InviteUsers = InviteUsers;
|
|
756
|
+
exports.MobileLayout = MobileLayout;
|
|
757
|
+
exports.SelectChannelType = SelectChannelType;
|
|
758
|
+
exports.useCreateChannel = useCreateChannel;
|
|
759
|
+
exports.useCreateChannelContext = useCreateChannelContext;
|
|
760
|
+
exports.useSendbirdStateContext = useSendbirdStateContext;
|
|
761
|
+
//# sourceMappingURL=bundle-Ctgz-ey7.js.map
|