@sendbird/uikit-react 3.10.1 → 3.10.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +366 -190
- package/App.js.map +1 -1
- package/Channel/components/ChannelHeader.js +35 -61
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +78 -111
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +35 -81
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +8 -12
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +63 -317
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageFeedbackModal.js +9 -9
- package/Channel/components/MessageInput.js +66 -192
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +60 -57
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +31 -44
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +37 -191
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +12 -80
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +11 -29
- package/Channel/components/UnreadCount.js.map +1 -1
- package/Channel/context.js +1502 -21
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/Channel/hooks/useInitialMessagesFetch.js +6 -8
- package/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/Channel/utils/compareMessagesForGrouping.js +39 -8
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/Channel/utils/getMessagePartsInfo.js +9 -9
- package/Channel.js +78 -74
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +28 -47
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +13 -35
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +61 -135
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +42 -126
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +18 -65
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +10 -9
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +58 -59
- package/ChannelList.js.map +1 -1
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsUI.js +25 -19
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +23 -17
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +22 -16
- package/ChannelSettings/components/UserPanel.js.map +1 -1
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +25 -19
- package/ChannelSettings.js.map +1 -1
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/InviteUsers.js +23 -25
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +18 -19
- package/CreateChannel.js.map +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +11 -12
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +12 -13
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile.js +12 -13
- package/EditUserProfile.js.map +1 -1
- package/Message/hooks/useDirtyGetMentions.js +2 -2
- package/MessageSearch/components/MessageSearchUI.js +14 -15
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +14 -3
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +14 -15
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +18 -19
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +25 -26
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/OpenChannel/components/OpenChannelMessageList.js +40 -38
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +40 -38
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +17 -18
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +40 -38
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +14 -15
- package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/OpenChannelList/components/OpenChannelPreview.js +6 -7
- package/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +14 -15
- package/OpenChannelList.js.map +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +19 -19
- package/SendbirdProvider.js +82 -223
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +43 -44
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +35 -33
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +48 -48
- package/Thread/components/ThreadListItem.js +49 -50
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +49 -42
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +60 -52
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +151 -160
- package/Thread/context.js.map +1 -1
- package/Thread.js +61 -53
- package/Thread.js.map +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +10 -10
- package/VoiceRecorder/context.js +12 -11
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/chunks/{bundle-JbVZ1Tsw.js → bundle-0J_EdUWI.js} +2 -2
- package/chunks/bundle-0J_EdUWI.js.map +1 -0
- package/chunks/{bundle-W8t7rR3H.js → bundle-0jbuC1o3.js} +3 -3
- package/chunks/bundle-0jbuC1o3.js.map +1 -0
- package/chunks/{bundle-NYZlEPQ4.js → bundle-1zn-WT_r.js} +11 -29
- package/{cjs/chunks/bundle-3K153hLM.js.map → chunks/bundle-1zn-WT_r.js.map} +1 -1
- package/chunks/bundle-3GWXgoxj.js +44 -0
- package/chunks/bundle-3GWXgoxj.js.map +1 -0
- package/chunks/{bundle-E33Oa46E.js → bundle-3i31KNu7.js} +10 -10
- package/chunks/{bundle-E33Oa46E.js.map → bundle-3i31KNu7.js.map} +1 -1
- package/chunks/{bundle-Jp5g4YZl.js → bundle-4GPpeoNf.js} +1 -1
- package/chunks/bundle-4GPpeoNf.js.map +1 -0
- package/chunks/{bundle-iYCB6XN2.js → bundle-4Ib7FkR6.js} +1 -1
- package/chunks/bundle-4Ib7FkR6.js.map +1 -0
- package/chunks/{bundle-ETZY-eQc.js → bundle-62ej9afV.js} +5 -5
- package/chunks/{bundle-ETZY-eQc.js.map → bundle-62ej9afV.js.map} +1 -1
- package/chunks/{bundle-wUwB6Q8m.js → bundle-79-Y-lX2.js} +3 -3
- package/chunks/{bundle-wUwB6Q8m.js.map → bundle-79-Y-lX2.js.map} +1 -1
- package/chunks/{bundle-LEanaSuB.js → bundle-8JX3bIpj.js} +3 -3
- package/chunks/{bundle-LEanaSuB.js.map → bundle-8JX3bIpj.js.map} +1 -1
- package/chunks/{bundle-ZcE3JzW_.js → bundle-AXNVQw91.js} +9 -8
- package/chunks/bundle-AXNVQw91.js.map +1 -0
- package/chunks/{bundle-GKopZh-T.js → bundle-BA7tv0JB.js} +14 -2
- package/chunks/{bundle-ldRkCosA.js.map → bundle-BA7tv0JB.js.map} +1 -1
- package/chunks/{bundle-y_LgB6DS.js → bundle-BBjosDA0.js} +3 -3
- package/chunks/bundle-BBjosDA0.js.map +1 -0
- package/chunks/bundle-BVtLlpwZ.js +88 -0
- package/chunks/bundle-BVtLlpwZ.js.map +1 -0
- package/chunks/bundle-D1V3P366.js +23 -0
- package/chunks/bundle-D1V3P366.js.map +1 -0
- package/chunks/bundle-DSoowPBh.js +388 -0
- package/chunks/bundle-DSoowPBh.js.map +1 -0
- package/chunks/{bundle-lmXvuxOb.js → bundle-F6-2aFsp.js} +1 -1
- package/chunks/bundle-F6-2aFsp.js.map +1 -0
- package/chunks/bundle-G7HnuZsw.js +13 -0
- package/chunks/bundle-G7HnuZsw.js.map +1 -0
- package/chunks/{bundle-1WAo3loP.js → bundle-GGE6HRof.js} +1 -1
- package/chunks/bundle-GGE6HRof.js.map +1 -0
- package/chunks/bundle-GJ-4hPvC.js +57 -0
- package/chunks/bundle-GJ-4hPvC.js.map +1 -0
- package/chunks/bundle-GnFOVDL2.js +230 -0
- package/chunks/{bundle-YmIrZYPF.js.map → bundle-GnFOVDL2.js.map} +1 -1
- package/chunks/{bundle-dWJnfDPH.js → bundle-I8JFwttJ.js} +3 -3
- package/chunks/bundle-I8JFwttJ.js.map +1 -0
- package/chunks/{bundle-Gkl7Q1IK.js → bundle-IRlSmJVg.js} +29 -13
- package/chunks/bundle-IRlSmJVg.js.map +1 -0
- package/chunks/{bundle-MyYphU00.js → bundle-J3DrW9X2.js} +8 -8
- package/chunks/bundle-J3DrW9X2.js.map +1 -0
- package/chunks/{bundle-OZZH5fXZ.js → bundle-LWD0OLz8.js} +1 -1
- package/chunks/bundle-LWD0OLz8.js.map +1 -0
- package/chunks/{bundle-ZKM9Qk_j.js → bundle-MBrlu_LK.js} +2 -2
- package/chunks/bundle-MBrlu_LK.js.map +1 -0
- package/chunks/{bundle-uk2Y0AQu.js → bundle-N9hMnIRl.js} +15 -7
- package/chunks/{bundle-uk2Y0AQu.js.map → bundle-N9hMnIRl.js.map} +1 -1
- package/chunks/bundle-NjNqsDXb.js +11 -0
- package/chunks/bundle-NjNqsDXb.js.map +1 -0
- package/chunks/{bundle-yur9nm4N.js → bundle-NwZvowyL.js} +1 -1
- package/chunks/bundle-NwZvowyL.js.map +1 -0
- package/chunks/bundle-OAJaPWYb.js +27 -0
- package/chunks/bundle-OAJaPWYb.js.map +1 -0
- package/chunks/{bundle-ldRkCosA.js → bundle-OFH4qWaN.js} +4 -4
- package/chunks/{bundle-Fkv6nKcy.js.map → bundle-OFH4qWaN.js.map} +1 -1
- package/chunks/{bundle-H2Il__gY.js → bundle-OJ-0ytxX.js} +1 -1
- package/chunks/bundle-OJ-0ytxX.js.map +1 -0
- package/chunks/bundle-Q8kUKu5l.js +34 -0
- package/chunks/bundle-Q8kUKu5l.js.map +1 -0
- package/chunks/{bundle-X3h4GiLa.js → bundle-Qufz6_i_.js} +4 -5
- package/chunks/bundle-Qufz6_i_.js.map +1 -0
- package/chunks/{bundle-MzSKVbUQ.js → bundle-RZWoLRNe.js} +96 -59
- package/chunks/bundle-RZWoLRNe.js.map +1 -0
- package/chunks/bundle-Rz5QaIhK.js +12 -0
- package/chunks/bundle-Rz5QaIhK.js.map +1 -0
- package/chunks/{bundle-F3QT9IFj.js → bundle-SlaQb7y0.js} +2 -2
- package/chunks/{bundle-GKopZh-T.js.map → bundle-SlaQb7y0.js.map} +1 -1
- package/chunks/{bundle-TV4-nyqN.js → bundle-ULVw0l0r.js} +1 -1
- package/chunks/{bundle-TV4-nyqN.js.map → bundle-ULVw0l0r.js.map} +1 -1
- package/chunks/bundle-VbkO6hwH.js +29 -0
- package/chunks/{bundle-zpSxKsxM.js.map → bundle-VbkO6hwH.js.map} +1 -1
- package/chunks/bundle-Wzk9dnsn.js +199 -0
- package/chunks/bundle-Wzk9dnsn.js.map +1 -0
- package/chunks/bundle-Xytq6xaz.js +179 -0
- package/{cjs/chunks/bundle-XaLiuh0L.js.map → chunks/bundle-Xytq6xaz.js.map} +1 -1
- package/chunks/{bundle-HkbweK1K.js → bundle-YHAMs1sP.js} +1 -1
- package/chunks/bundle-YHAMs1sP.js.map +1 -0
- package/chunks/{bundle-tca5p7Pl.js → bundle-YVEtWFVy.js} +2 -2
- package/chunks/bundle-YVEtWFVy.js.map +1 -0
- package/chunks/{bundle-aeQZ5WsP.js → bundle-YoWLsJ0C.js} +1 -1
- package/chunks/bundle-YoWLsJ0C.js.map +1 -0
- package/chunks/{bundle-zpSxKsxM.js → bundle-ZOCAUrJO.js} +2 -2
- package/chunks/bundle-ZOCAUrJO.js.map +1 -0
- package/chunks/{bundle-pWIkt9Ng.js → bundle-_cXVZn5n.js} +1 -1
- package/chunks/bundle-_cXVZn5n.js.map +1 -0
- package/chunks/{bundle-kfNTRju0.js → bundle-aKXnhi3A.js} +1 -1
- package/chunks/{bundle-kfNTRju0.js.map → bundle-aKXnhi3A.js.map} +1 -1
- package/chunks/{bundle-GbC4a59M.js → bundle-agW9Hw66.js} +4 -4
- package/chunks/bundle-agW9Hw66.js.map +1 -0
- package/chunks/bundle-bAY1j7eP.js +34 -0
- package/chunks/bundle-bAY1j7eP.js.map +1 -0
- package/chunks/bundle-beMggMMW.js +289 -0
- package/chunks/{bundle-MzSKVbUQ.js.map → bundle-beMggMMW.js.map} +1 -1
- package/chunks/bundle-bjEEGmYA.js +197 -0
- package/chunks/bundle-bjEEGmYA.js.map +1 -0
- package/chunks/{bundle-iWI3kIle.js → bundle-c1LUbaVa.js} +12 -41
- package/chunks/{bundle-iWI3kIle.js.map → bundle-c1LUbaVa.js.map} +1 -1
- package/chunks/{bundle-WpHDilD_.js → bundle-cA_r9HRx.js} +2 -3
- package/chunks/bundle-cA_r9HRx.js.map +1 -0
- package/chunks/bundle-cBbT3DlY.js +148 -0
- package/chunks/bundle-cBbT3DlY.js.map +1 -0
- package/chunks/{bundle-d6R6m9-9.js → bundle-ctAjRHDW.js} +14 -8
- package/{cjs/chunks/bundle-s82XYT1Q.js.map → chunks/bundle-ctAjRHDW.js.map} +1 -1
- package/chunks/{bundle-VPanFdbf.js → bundle-cvTUkQV_.js} +6 -6
- package/chunks/bundle-cvTUkQV_.js.map +1 -0
- package/chunks/{bundle-xsV7pD8p.js → bundle-d5KevIXI.js} +3 -27
- package/chunks/bundle-d5KevIXI.js.map +1 -0
- package/chunks/bundle-dOD0mfTw.js +120 -0
- package/chunks/bundle-dOD0mfTw.js.map +1 -0
- package/chunks/{bundle-J_erGfOo.js → bundle-drww6xht.js} +42 -30
- package/chunks/bundle-drww6xht.js.map +1 -0
- package/chunks/{bundle-xgiw36M5.js → bundle-fQ1V_U8F.js} +1 -1
- package/chunks/bundle-fQ1V_U8F.js.map +1 -0
- package/chunks/{bundle-WDOQg3ty.js → bundle-hDx2-CRe.js} +39 -39
- package/chunks/{bundle-WDOQg3ty.js.map → bundle-hDx2-CRe.js.map} +1 -1
- package/chunks/{bundle-KSjFhl4l.js → bundle-iwZaUd9o.js} +1 -1
- package/chunks/bundle-iwZaUd9o.js.map +1 -0
- package/chunks/{bundle-Kv4GXRTs.js → bundle-jDjj3eHU.js} +1 -1
- package/chunks/bundle-jDjj3eHU.js.map +1 -0
- package/chunks/{bundle-YmIrZYPF.js → bundle-jy6_UG14.js} +1 -1
- package/chunks/{bundle-J_erGfOo.js.map → bundle-jy6_UG14.js.map} +1 -1
- package/chunks/bundle-khgxDrnA.js +61 -0
- package/chunks/bundle-khgxDrnA.js.map +1 -0
- package/chunks/{bundle-PZta2LmS.js → bundle-lUrIOx9p.js} +3 -3
- package/chunks/{bundle-PZta2LmS.js.map → bundle-lUrIOx9p.js.map} +1 -1
- package/chunks/{bundle-mTQPBbmZ.js → bundle-lVxQMV9H.js} +6 -6
- package/chunks/bundle-lVxQMV9H.js.map +1 -0
- package/chunks/{bundle-cHbX4Rxo.js → bundle-laVKAiJ-.js} +5 -40
- package/{cjs/chunks/bundle-JVe1J2FX.js.map → chunks/bundle-laVKAiJ-.js.map} +1 -1
- package/chunks/{bundle-niN5G0Bo.js → bundle-mn6nwwm3.js} +2 -2
- package/chunks/bundle-mn6nwwm3.js.map +1 -0
- package/chunks/{bundle-VCZsMdpB.js → bundle-nD2ZWBq4.js} +2 -2
- package/chunks/{bundle-VCZsMdpB.js.map → bundle-nD2ZWBq4.js.map} +1 -1
- package/chunks/{bundle-ku6CEjGk.js → bundle-nlOgiAcu.js} +1 -1
- package/chunks/bundle-nlOgiAcu.js.map +1 -0
- package/chunks/{bundle-Fkv6nKcy.js → bundle-o1Ev7FSN.js} +5 -47
- package/chunks/bundle-o1Ev7FSN.js.map +1 -0
- package/chunks/{bundle-ipC2A4Tb.js → bundle-otzUyFE_.js} +151 -29
- package/{cjs/chunks/bundle-Jcrboe06.js.map → chunks/bundle-otzUyFE_.js.map} +1 -1
- package/chunks/{bundle-f9mkey82.js → bundle-poK2Vr1v.js} +2 -4
- package/chunks/bundle-poK2Vr1v.js.map +1 -0
- package/chunks/bundle-qAc60kip.js +48 -0
- package/chunks/bundle-qAc60kip.js.map +1 -0
- package/chunks/{bundle-KmauOTrg.js → bundle-r9j_eCHc.js} +1 -1
- package/chunks/bundle-r9j_eCHc.js.map +1 -0
- package/chunks/bundle-tPCzzoc1.js +34 -0
- package/chunks/bundle-tPCzzoc1.js.map +1 -0
- package/chunks/bundle-uIetzCLw.js +64 -0
- package/chunks/bundle-uIetzCLw.js.map +1 -0
- package/chunks/bundle-v3WxYU8s.js +30 -0
- package/chunks/bundle-v3WxYU8s.js.map +1 -0
- package/chunks/{bundle-cXqs96Pt.js → bundle-vOT5acXc.js} +1 -1
- package/chunks/bundle-vOT5acXc.js.map +1 -0
- package/chunks/{bundle-Lt8mReNU.js → bundle-vz3GEsoi.js} +3 -3
- package/chunks/bundle-vz3GEsoi.js.map +1 -0
- package/chunks/{bundle-aVVX2zHR.js → bundle-w1C-Xmf3.js} +3 -3
- package/chunks/bundle-w1C-Xmf3.js.map +1 -0
- package/chunks/{bundle-DeRyZP32.js → bundle-wMP1pqZM.js} +10 -10
- package/chunks/{bundle-DeRyZP32.js.map → bundle-wMP1pqZM.js.map} +1 -1
- package/chunks/bundle-x_yt1Yd5.js +30 -0
- package/chunks/bundle-x_yt1Yd5.js.map +1 -0
- package/chunks/bundle-zKBdD-J6.js +550 -0
- package/chunks/bundle-zKBdD-J6.js.map +1 -0
- package/chunks/{bundle-_-2NCsYr.js → bundle-zV8TJWvL.js} +1 -1
- package/chunks/bundle-zV8TJWvL.js.map +1 -0
- package/cjs/App.js +365 -189
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +40 -59
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +80 -109
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +38 -80
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +9 -13
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +64 -314
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageFeedbackModal.js +9 -9
- package/cjs/Channel/components/MessageInput.js +66 -192
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +64 -58
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +33 -42
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +39 -190
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +12 -83
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +12 -30
- package/cjs/Channel/components/UnreadCount.js.map +1 -1
- package/cjs/Channel/context.js +1500 -23
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -8
- package/cjs/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/cjs/Channel/utils/compareMessagesForGrouping.js +45 -9
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/cjs/Channel/utils/getMessagePartsInfo.js +9 -9
- package/cjs/Channel.js +78 -74
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +31 -46
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +13 -35
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +63 -133
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +44 -124
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +19 -62
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +10 -9
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +58 -59
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +25 -19
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +23 -17
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +22 -16
- package/cjs/ChannelSettings/components/UserPanel.js.map +1 -1
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +25 -19
- package/cjs/ChannelSettings.js.map +1 -1
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/InviteUsers.js +23 -25
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +18 -19
- package/cjs/CreateChannel.js.map +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -12
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -13
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile.js +12 -13
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/Message/hooks/useDirtyGetMentions.js +2 -2
- package/cjs/MessageSearch/components/MessageSearchUI.js +14 -15
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +14 -3
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +14 -15
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -19
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +25 -26
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +41 -39
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +40 -38
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +17 -18
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +40 -38
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -15
- package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -7
- package/cjs/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -15
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +19 -19
- package/cjs/SendbirdProvider.js +86 -227
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +45 -46
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +38 -36
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +50 -50
- package/cjs/Thread/components/ThreadListItem.js +54 -55
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +51 -44
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +60 -52
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +151 -160
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +61 -53
- package/cjs/Thread.js.map +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
- package/cjs/VoiceRecorder/context.js +12 -11
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/cjs/chunks/bundle--1R8Yp9p.js +553 -0
- package/cjs/chunks/bundle--1R8Yp9p.js.map +1 -0
- package/cjs/chunks/{bundle-VogwjxgI.js → bundle--A9iQL7y.js} +3 -3
- package/cjs/chunks/{bundle-VogwjxgI.js.map → bundle--A9iQL7y.js.map} +1 -1
- package/cjs/chunks/bundle--QPuGnli.js +183 -0
- package/{chunks/bundle-ucXG1Py7.js.map → cjs/chunks/bundle--QPuGnli.js.map} +1 -1
- package/cjs/chunks/bundle--t85OO-4.js +37 -0
- package/cjs/chunks/bundle--t85OO-4.js.map +1 -0
- package/cjs/chunks/{bundle-zgoic8x9.js → bundle--tki3Ejh.js} +1 -1
- package/cjs/chunks/bundle--tki3Ejh.js.map +1 -0
- package/cjs/chunks/{bundle-OVfymd1y.js → bundle-0zagc7hR.js} +1 -1
- package/cjs/chunks/bundle-0zagc7hR.js.map +1 -0
- package/cjs/chunks/{bundle-1dUHK2qC.js → bundle-1dcvUZjP.js} +1 -1
- package/cjs/chunks/bundle-1dcvUZjP.js.map +1 -0
- package/cjs/chunks/bundle-1tu4OFP8.js +51 -0
- package/cjs/chunks/bundle-1tu4OFP8.js.map +1 -0
- package/cjs/chunks/{bundle-TFo3Eb8z.js → bundle-2hJhRu5W.js} +3 -3
- package/cjs/chunks/bundle-2hJhRu5W.js.map +1 -0
- package/cjs/chunks/{bundle-TxdziCwH.js → bundle-3_XFLnnt.js} +4 -4
- package/cjs/chunks/bundle-3_XFLnnt.js.map +1 -0
- package/cjs/chunks/bundle-3eaFVTUX.js +36 -0
- package/cjs/chunks/bundle-3eaFVTUX.js.map +1 -0
- package/cjs/chunks/bundle-5UyAossc.js +67 -0
- package/cjs/chunks/bundle-5UyAossc.js.map +1 -0
- package/cjs/chunks/{bundle-7QMU-JU1.js → bundle-66GvrL2V.js} +2 -2
- package/cjs/chunks/bundle-66GvrL2V.js.map +1 -0
- package/cjs/chunks/{bundle-Oc2T5_VP.js → bundle-6L4HCLmb.js} +6 -6
- package/cjs/chunks/bundle-6L4HCLmb.js.map +1 -0
- package/cjs/chunks/{bundle-qtXdbPNE.js → bundle-6SzyBwQ5.js} +3 -3
- package/cjs/chunks/bundle-6SzyBwQ5.js.map +1 -0
- package/cjs/chunks/{bundle-WzrocC57.js → bundle-6zBNmPOP.js} +1 -1
- package/cjs/chunks/bundle-6zBNmPOP.js.map +1 -0
- package/cjs/chunks/{bundle-135pRm7i.js → bundle-77qvrXp8.js} +1 -1
- package/cjs/chunks/bundle-77qvrXp8.js.map +1 -0
- package/cjs/chunks/{bundle-RSklGv-u.js → bundle-AN4eZ2xs.js} +1 -1
- package/cjs/chunks/{bundle-RSklGv-u.js.map → bundle-AN4eZ2xs.js.map} +1 -1
- package/cjs/chunks/bundle-CDUgp575.js +14 -0
- package/cjs/chunks/bundle-CDUgp575.js.map +1 -0
- package/cjs/chunks/bundle-CZTvTAu-.js +32 -0
- package/cjs/chunks/bundle-CZTvTAu-.js.map +1 -0
- package/cjs/chunks/bundle-Cbklvbls.js +233 -0
- package/cjs/chunks/bundle-Cbklvbls.js.map +1 -0
- package/cjs/chunks/{bundle-XaLiuh0L.js → bundle-CrbMqpah.js} +2 -28
- package/{chunks/bundle-Gkl7Q1IK.js.map → cjs/chunks/bundle-CrbMqpah.js.map} +1 -1
- package/cjs/chunks/bundle-DfMlIvtm.js +31 -0
- package/cjs/chunks/bundle-DfMlIvtm.js.map +1 -0
- package/cjs/chunks/{bundle-bXLZZTmP.js → bundle-DhtZdKsr.js} +14 -1
- package/cjs/chunks/bundle-DhtZdKsr.js.map +1 -0
- package/cjs/chunks/bundle-Eqd9bAds.js +292 -0
- package/cjs/chunks/bundle-Eqd9bAds.js.map +1 -0
- package/cjs/chunks/{bundle-kSScygqj.js → bundle-H9rcn1PJ.js} +1 -1
- package/cjs/chunks/bundle-H9rcn1PJ.js.map +1 -0
- package/cjs/chunks/{bundle--d5w7FVF.js → bundle-HQAiUNev.js} +1 -1
- package/cjs/chunks/bundle-HQAiUNev.js.map +1 -0
- package/cjs/chunks/bundle-JBbKwE7L.js +25 -0
- package/cjs/chunks/bundle-JBbKwE7L.js.map +1 -0
- package/cjs/chunks/{bundle-s82XYT1Q.js → bundle-KBZdi1sN.js} +14 -8
- package/cjs/chunks/bundle-KBZdi1sN.js.map +1 -0
- package/cjs/chunks/{bundle-aoIToceJ.js → bundle-KWR-0b7P.js} +3 -3
- package/cjs/chunks/bundle-KWR-0b7P.js.map +1 -0
- package/cjs/chunks/bundle-LsJ9u7uN.js +64 -0
- package/cjs/chunks/bundle-LsJ9u7uN.js.map +1 -0
- package/cjs/chunks/{bundle-zrsbDQGp.js → bundle-MNUU2JEo.js} +1 -5
- package/cjs/chunks/bundle-MNUU2JEo.js.map +1 -0
- package/cjs/chunks/bundle-Msh8rb3L.js +13 -0
- package/cjs/chunks/bundle-Msh8rb3L.js.map +1 -0
- package/cjs/chunks/{bundle-B5gH_etT.js → bundle-NALzAgLv.js} +10 -10
- package/cjs/chunks/bundle-NALzAgLv.js.map +1 -0
- package/cjs/chunks/{bundle-68NdNRjR.js → bundle-NPzNlnHJ.js} +10 -10
- package/cjs/chunks/bundle-NPzNlnHJ.js.map +1 -0
- package/cjs/chunks/{bundle-UaSM_xZY.js → bundle-NZvAE9FS.js} +1 -1
- package/cjs/chunks/bundle-NZvAE9FS.js.map +1 -0
- package/cjs/chunks/bundle-Njt4gDEW.js +91 -0
- package/cjs/chunks/bundle-Njt4gDEW.js.map +1 -0
- package/cjs/chunks/{bundle--MJd6Gw1.js → bundle-O6Mos2Xn.js} +1 -1
- package/cjs/chunks/bundle-O6Mos2Xn.js.map +1 -0
- package/cjs/chunks/{bundle-tad4_cNF.js → bundle-OdZXNc-g.js} +5 -48
- package/cjs/chunks/bundle-OdZXNc-g.js.map +1 -0
- package/cjs/chunks/{bundle-GsUulypb.js → bundle-Oq2rnNn_.js} +1 -1
- package/cjs/chunks/bundle-Oq2rnNn_.js.map +1 -0
- package/cjs/chunks/{bundle-v02q7K8T.js → bundle-PSEoX-EH.js} +3 -3
- package/cjs/chunks/bundle-PSEoX-EH.js.map +1 -0
- package/cjs/chunks/{bundle-J_ooPKgS.js → bundle-PhGdgkei.js} +3 -3
- package/cjs/chunks/{bundle-J_ooPKgS.js.map → bundle-PhGdgkei.js.map} +1 -1
- package/cjs/chunks/{bundle-ptZslG_m.js → bundle-Pzvqu5yR.js} +7 -7
- package/cjs/chunks/bundle-Pzvqu5yR.js.map +1 -0
- package/cjs/chunks/{bundle-hXzxY0NJ.js → bundle-RUqSDidW.js} +1 -1
- package/cjs/chunks/bundle-RUqSDidW.js.map +1 -0
- package/cjs/chunks/{bundle-2gCdAlxv.js → bundle-RquYsY0d.js} +2 -2
- package/cjs/chunks/{bundle-2gCdAlxv.js.map → bundle-RquYsY0d.js.map} +1 -1
- package/cjs/chunks/{bundle-INJtS58R.js → bundle-TB_UEIPg.js} +1 -1
- package/cjs/chunks/bundle-TB_UEIPg.js.map +1 -0
- package/cjs/chunks/{bundle-7AS0Rcch.js → bundle-TPy0gj60.js} +1 -1
- package/cjs/chunks/bundle-TPy0gj60.js.map +1 -0
- package/cjs/chunks/{bundle-JbxviE94.js → bundle-UAspU0bH.js} +1 -1
- package/cjs/chunks/bundle-UAspU0bH.js.map +1 -0
- package/cjs/chunks/{bundle-JOBLCwk9.js → bundle-UuftRMuc.js} +1 -1
- package/cjs/chunks/bundle-UuftRMuc.js.map +1 -0
- package/cjs/chunks/{bundle-CUa6Hz7c.js → bundle-VP5r38Gj.js} +6 -6
- package/cjs/chunks/bundle-VP5r38Gj.js.map +1 -0
- package/cjs/chunks/{bundle-7J3nX_hP.js → bundle-VxcYXhwp.js} +3 -3
- package/cjs/chunks/bundle-VxcYXhwp.js.map +1 -0
- package/cjs/chunks/{bundle-LRCFL23q.js → bundle-Y-_KhZFq.js} +1 -3
- package/cjs/chunks/bundle-Y-_KhZFq.js.map +1 -0
- package/cjs/chunks/bundle-Y86Tvf8p.js +204 -0
- package/cjs/chunks/bundle-Y86Tvf8p.js.map +1 -0
- package/cjs/chunks/{bundle-VB_a0u7i.js → bundle-YjNFrYVt.js} +1 -1
- package/cjs/chunks/bundle-YjNFrYVt.js.map +1 -0
- package/cjs/chunks/bundle-ZvLEz_GA.js +391 -0
- package/cjs/chunks/bundle-ZvLEz_GA.js.map +1 -0
- package/cjs/chunks/{bundle-GDX6wyym.js → bundle-bDQKUQ5r.js} +95 -58
- package/cjs/chunks/bundle-bDQKUQ5r.js.map +1 -0
- package/cjs/chunks/{bundle-3K153hLM.js → bundle-eCBAJmJN.js} +4 -40
- package/cjs/chunks/bundle-eCBAJmJN.js.map +1 -0
- package/cjs/chunks/{bundle-dny_TiUT.js → bundle-ekyeVpZG.js} +2 -2
- package/cjs/chunks/bundle-ekyeVpZG.js.map +1 -0
- package/cjs/chunks/{bundle-AbGazomk.js → bundle-fTMJH5JE.js} +17 -35
- package/cjs/chunks/bundle-fTMJH5JE.js.map +1 -0
- package/cjs/chunks/bundle-fUWIw3RI.js +32 -0
- package/cjs/chunks/bundle-fUWIw3RI.js.map +1 -0
- package/cjs/chunks/bundle-fzSiKesI.js +202 -0
- package/cjs/chunks/bundle-fzSiKesI.js.map +1 -0
- package/cjs/chunks/{bundle-r8Z3GYqh.js → bundle-gW6qz9z9.js} +9 -8
- package/cjs/chunks/bundle-gW6qz9z9.js.map +1 -0
- package/cjs/chunks/{bundle-9iE0HY96.js → bundle-haAptps1.js} +29 -13
- package/cjs/chunks/bundle-haAptps1.js.map +1 -0
- package/cjs/chunks/{bundle-vphYV1gz.js → bundle-iY19D_aw.js} +1 -1
- package/cjs/chunks/bundle-iY19D_aw.js.map +1 -0
- package/cjs/chunks/bundle-jYLCAuUn.js +123 -0
- package/cjs/chunks/bundle-jYLCAuUn.js.map +1 -0
- package/cjs/chunks/bundle-jcgWT1ad.js +40 -0
- package/cjs/chunks/bundle-jcgWT1ad.js.map +1 -0
- package/cjs/chunks/{bundle-Dax6YIIr.js → bundle-nYBtJl9e.js} +1 -1
- package/cjs/chunks/bundle-nYBtJl9e.js.map +1 -0
- package/cjs/chunks/{bundle-p6kWiWDv.js → bundle-nox41MG6.js} +14 -7
- package/cjs/chunks/{bundle-p6kWiWDv.js.map → bundle-nox41MG6.js.map} +1 -1
- package/cjs/chunks/{bundle-mnbFX6XC.js → bundle-pp7tp7GG.js} +11 -41
- package/cjs/chunks/{bundle-mnbFX6XC.js.map → bundle-pp7tp7GG.js.map} +1 -1
- package/cjs/chunks/bundle-qRiLsSwC.js +153 -0
- package/cjs/chunks/bundle-qRiLsSwC.js.map +1 -0
- package/cjs/chunks/bundle-rcw3KtAu.js +30 -0
- package/cjs/chunks/bundle-rcw3KtAu.js.map +1 -0
- package/cjs/chunks/{bundle-BH9aeaqG.js → bundle-s--ExKtj.js} +2 -2
- package/cjs/chunks/bundle-s--ExKtj.js.map +1 -0
- package/cjs/chunks/{bundle-hEYmMlZe.js → bundle-t2GWOYzL.js} +5 -5
- package/{chunks/bundle-cHbX4Rxo.js.map → cjs/chunks/bundle-t2GWOYzL.js.map} +1 -1
- package/cjs/chunks/{bundle-6ZegaDWX.js → bundle-tntEm-Mv.js} +39 -39
- package/cjs/chunks/{bundle-6ZegaDWX.js.map → bundle-tntEm-Mv.js.map} +1 -1
- package/cjs/chunks/bundle-u7wWilEW.js +15 -0
- package/cjs/chunks/bundle-u7wWilEW.js.map +1 -0
- package/cjs/chunks/{bundle-y8EiLlDT.js → bundle-v5-SR4v4.js} +2 -2
- package/cjs/chunks/bundle-v5-SR4v4.js.map +1 -0
- package/cjs/chunks/{bundle-7J-qpEzM.js → bundle-vMF9NM5u.js} +1 -1
- package/cjs/chunks/bundle-vMF9NM5u.js.map +1 -0
- package/cjs/chunks/{bundle-7VJjqIPJ.js → bundle-w0ATt2gt.js} +4 -5
- package/cjs/chunks/bundle-w0ATt2gt.js.map +1 -0
- package/cjs/chunks/{bundle-5Nd6zn0d.js → bundle-wZDX1pVR.js} +3 -3
- package/cjs/chunks/bundle-wZDX1pVR.js.map +1 -0
- package/cjs/chunks/{bundle-65IwoStx.js → bundle-xM2DAzE6.js} +1 -1
- package/cjs/chunks/{bundle-65IwoStx.js.map → bundle-xM2DAzE6.js.map} +1 -1
- package/cjs/chunks/{bundle-rgxTgHrK.js → bundle-zAQuo6rI.js} +42 -30
- package/{chunks/bundle-NYZlEPQ4.js.map → cjs/chunks/bundle-zAQuo6rI.js.map} +1 -1
- package/cjs/chunks/{bundle-n6iwTZAo.js → bundle-zDh-X-Q4.js} +1 -1
- package/cjs/chunks/bundle-zDh-X-Q4.js.map +1 -0
- package/cjs/chunks/{bundle-Jcrboe06.js → bundle-zGSEOOdl.js} +150 -28
- package/{chunks/bundle-ipC2A4Tb.js.map → cjs/chunks/bundle-zGSEOOdl.js.map} +1 -1
- package/cjs/chunks/bundle-zHDXCFIb.js +60 -0
- package/cjs/chunks/bundle-zHDXCFIb.js.map +1 -0
- package/cjs/chunks/{bundle-Dz3ncvS3.js → bundle-zLoe4MOM.js} +4 -4
- package/{chunks/bundle-F3QT9IFj.js.map → cjs/chunks/bundle-zLoe4MOM.js.map} +1 -1
- package/cjs/chunks/bundle-zRJE2NjU.js +47 -0
- package/cjs/chunks/bundle-zRJE2NjU.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +136 -126
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -5
- package/cjs/ui/Avatar.js.map +1 -1
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +9 -9
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +6 -7
- package/cjs/ui/ChannelAvatar.js.map +1 -1
- package/cjs/ui/ConnectionStatus.js +6 -6
- package/cjs/ui/ContextMenu.js +6 -6
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +31 -22
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +8 -8
- package/cjs/ui/FileViewer.js +15 -16
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +96 -69
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/MentionLabel.js +13 -13
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +41 -46
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
- package/cjs/ui/MessageInput.js +19 -19
- package/cjs/ui/MessageItemMenu.js +12 -29
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +15 -12
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +14 -15
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +11 -12
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/MobileFeedbackMenu.js +9 -9
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +16 -16
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -9
- package/cjs/ui/OpenChannelAvatar.js.map +1 -1
- package/cjs/ui/OpenchannelConversationHeader.js +8 -9
- package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
- package/cjs/ui/OpenchannelFileMessage.js +18 -18
- package/cjs/ui/OpenchannelOGMessage.js +20 -20
- package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
- package/cjs/ui/OpenchannelUserMessage.js +18 -18
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/QuoteMessage.js +9 -9
- package/cjs/ui/QuoteMessageInput.js +9 -9
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +16 -16
- package/cjs/ui/ThreadReplies.js +9 -10
- package/cjs/ui/ThreadReplies.js.map +1 -1
- package/cjs/ui/ThumbnailMessageItemBody.js +11 -8
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/TypingIndicatorBubble.js +4 -5
- package/cjs/ui/TypingIndicatorBubble.js.map +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +10 -11
- package/cjs/ui/UserProfile.js.map +1 -1
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/Word.js +13 -13
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +2973 -2899
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +136 -126
- package/index.js.map +1 -1
- package/package.json +11 -11
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/hooks/VoicePlayer/dux/actionTypes.d.ts +2 -0
- package/types/hooks/VoicePlayer/dux/reducer.d.ts +2 -0
- package/types/hooks/useOnScrollReachedEndDetector/index.d.ts +10 -5
- package/types/hooks/useThrottleCallback.d.ts +11 -1
- package/types/lib/UserProfileContext.d.ts +1 -1
- package/types/lib/emojiManager.d.ts +29 -0
- package/types/lib/pubSub/topics.d.ts +5 -5
- package/types/lib/selectors.d.ts +2 -2
- package/types/lib/types.d.ts +6 -1
- package/types/modules/App/index.d.ts +5 -0
- package/types/modules/App/types.d.ts +1 -0
- package/types/modules/Channel/components/ChannelHeader/index.d.ts +2 -3
- package/types/modules/Channel/components/ChannelUI/index.d.ts +5 -4
- package/types/modules/Channel/components/FileViewer/index.d.ts +3 -16
- package/types/modules/Channel/components/FrozenNotification/index.d.ts +1 -6
- package/types/modules/Channel/components/Message/index.d.ts +2 -14
- package/types/modules/Channel/components/MessageInputWrapper/index.d.ts +11 -0
- package/types/modules/Channel/components/MessageList/index.d.ts +2 -2
- package/types/modules/Channel/components/RemoveMessageModal/index.d.ts +4 -0
- package/types/modules/Channel/components/SuggestedMentionList/index.d.ts +3 -18
- package/types/modules/Channel/components/TypingIndicator.d.ts +1 -7
- package/types/modules/Channel/components/UnreadCount/index.d.ts +1 -11
- package/types/modules/Channel/context/ChannelProvider.d.ts +9 -9
- package/types/modules/Channel/context/hooks/useDeleteMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useFileInfoListWithUploaded.d.ts +3 -0
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +23 -0
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +3 -3
- package/types/modules/Channel/context/utils.d.ts +0 -1
- package/types/modules/Channel/index.d.ts +1 -1
- package/types/modules/ChannelList/components/AddChannel/index.d.ts +1 -1
- package/types/modules/ChannelList/components/ChannelListHeader/index.d.ts +1 -10
- package/types/modules/ChannelList/components/ChannelListUI/index.d.ts +1 -3
- package/types/modules/ChannelList/components/ChannelPreview/utils.d.ts +1 -10
- package/types/modules/ChannelList/components/LeaveChannel/index.d.ts +1 -8
- package/types/modules/ChannelList/context/ChannelListProvider.d.ts +9 -8
- package/types/modules/ChannelList/dux/actionTypes.d.ts +5 -0
- package/types/modules/ChannelList/utils.d.ts +6 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/InviteUsersModal.d.ts +4 -3
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +45 -7
- package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +22 -0
- package/types/modules/GroupChannel/components/FileViewer/index.d.ts +8 -0
- package/types/modules/GroupChannel/components/FrozenNotification/index.d.ts +7 -0
- package/types/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.d.ts +13 -0
- package/types/modules/GroupChannel/components/GroupChannelHeader/index.d.ts +6 -0
- package/types/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.d.ts +10 -0
- package/types/modules/GroupChannel/components/GroupChannelUI/index.d.ts +24 -0
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +64 -0
- package/types/modules/GroupChannel/components/Message/index.d.ts +4 -0
- package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +30 -0
- package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/index.d.ts +4 -6
- package/types/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.d.ts +18 -0
- package/types/modules/GroupChannel/components/MessageList/hooks/useScrollBehavior.d.ts +1 -0
- package/types/modules/GroupChannel/components/MessageList/index.d.ts +15 -0
- package/types/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.d.ts +13 -0
- package/types/modules/GroupChannel/components/RemoveMessageModal/index.d.ts +4 -0
- package/types/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.d.ts +22 -0
- package/types/modules/GroupChannel/components/SuggestedMentionList/index.d.ts +5 -0
- package/types/modules/GroupChannel/components/TypingIndicator.d.ts +11 -0
- package/types/modules/GroupChannel/components/UnreadCount/index.d.ts +12 -0
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +74 -0
- package/types/modules/GroupChannel/context/const.d.ts +7 -0
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +23 -0
- package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +26 -0
- package/types/modules/GroupChannel/context/hooks/usePreventDuplicateRequest.d.ts +9 -0
- package/types/modules/GroupChannel/context/hooks/useToggleReactionCallback.d.ts +4 -0
- package/types/modules/GroupChannel/context/utils.d.ts +8 -0
- package/types/modules/GroupChannel/index.d.ts +7 -0
- package/types/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.d.ts +11 -0
- package/types/modules/GroupChannelList/components/AddGroupChannel/index.d.ts +3 -0
- package/types/modules/GroupChannelList/components/GroupChannelListHeader/index.d.ts +10 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/index.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelListItem/utils.d.ts +10 -0
- package/types/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.d.ts +21 -0
- package/types/modules/GroupChannelList/components/GroupChannelListUI/index.d.ts +16 -0
- package/types/modules/GroupChannelList/components/GroupChannelPreviewAction.d.ts +9 -0
- package/types/modules/GroupChannelList/components/LeaveGroupChannel/index.d.ts +9 -0
- package/types/modules/GroupChannelList/context/GroupChannelListProvider.d.ts +40 -0
- package/types/modules/GroupChannelList/index.d.ts +7 -0
- package/types/modules/OpenChannel/context/utils.d.ts +1 -3
- package/types/modules/Thread/components/SuggestedMentionList.d.ts +5 -0
- package/types/modules/Thread/components/ThreadList/index.d.ts +1 -1
- package/types/modules/Thread/context/ThreadProvider.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +21 -0
- package/types/modules/Thread/context/utils.d.ts +0 -2
- package/types/modules/Thread/index.d.ts +1 -1
- package/types/types.d.ts +11 -3
- package/types/ui/FileViewer/index.d.ts +2 -2
- package/types/ui/ImageRenderer/index.d.ts +1 -3
- package/types/ui/MessageContent/index.d.ts +1 -1
- package/types/ui/MessageItemMenu/index.d.ts +2 -1
- package/types/ui/MobileMenu/types.d.ts +1 -1
- package/types/ui/MultipleFilesMessageItemBody/index.d.ts +2 -2
- package/types/utils/index.d.ts +7 -0
- package/types/utils/messages.d.ts +17 -0
- package/types/utils/typeHelpers/partialRequired.d.ts +1 -0
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -5
- package/ui/Avatar.js.map +1 -1
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +9 -9
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +6 -7
- package/ui/ChannelAvatar.js.map +1 -1
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +31 -22
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +15 -16
- package/ui/FileViewer.js.map +1 -1
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +97 -70
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +2 -2
- package/ui/MentionLabel.js +13 -13
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +39 -44
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +5 -5
- package/ui/MessageInput.js +19 -19
- package/ui/MessageItemMenu.js +12 -29
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +15 -12
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +14 -15
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +11 -12
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +12 -12
- package/ui/MobileFeedbackMenu.js +9 -9
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +16 -16
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -9
- package/ui/OpenChannelAvatar.js.map +1 -1
- package/ui/OpenchannelConversationHeader.js +8 -9
- package/ui/OpenchannelConversationHeader.js.map +1 -1
- package/ui/OpenchannelFileMessage.js +18 -18
- package/ui/OpenchannelOGMessage.js +20 -20
- package/ui/OpenchannelThumbnailMessage.js +17 -17
- package/ui/OpenchannelUserMessage.js +18 -18
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +3 -3
- package/ui/QuoteMessage.js +9 -9
- package/ui/QuoteMessageInput.js +9 -9
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +9 -10
- package/ui/ThreadReplies.js.map +1 -1
- package/ui/ThumbnailMessageItemBody.js +11 -8
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/TypingIndicatorBubble.js +4 -5
- package/ui/TypingIndicatorBubble.js.map +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +13 -13
- package/ui/UserProfile.js +10 -11
- package/ui/UserProfile.js.map +1 -1
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/Word.js +13 -13
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle-1WAo3loP.js.map +0 -1
- package/chunks/bundle-GbC4a59M.js.map +0 -1
- package/chunks/bundle-H2Il__gY.js.map +0 -1
- package/chunks/bundle-HkbweK1K.js.map +0 -1
- package/chunks/bundle-J79McRkg.js +0 -1551
- package/chunks/bundle-J79McRkg.js.map +0 -1
- package/chunks/bundle-JbVZ1Tsw.js.map +0 -1
- package/chunks/bundle-Jp5g4YZl.js.map +0 -1
- package/chunks/bundle-KSjFhl4l.js.map +0 -1
- package/chunks/bundle-KmauOTrg.js.map +0 -1
- package/chunks/bundle-Kv4GXRTs.js.map +0 -1
- package/chunks/bundle-Lt8mReNU.js.map +0 -1
- package/chunks/bundle-MyYphU00.js.map +0 -1
- package/chunks/bundle-OZZH5fXZ.js.map +0 -1
- package/chunks/bundle-VPanFdbf.js.map +0 -1
- package/chunks/bundle-W8t7rR3H.js.map +0 -1
- package/chunks/bundle-WpHDilD_.js.map +0 -1
- package/chunks/bundle-X3h4GiLa.js.map +0 -1
- package/chunks/bundle-ZKM9Qk_j.js.map +0 -1
- package/chunks/bundle-ZcE3JzW_.js.map +0 -1
- package/chunks/bundle-_-2NCsYr.js.map +0 -1
- package/chunks/bundle-aVVX2zHR.js.map +0 -1
- package/chunks/bundle-aeQZ5WsP.js.map +0 -1
- package/chunks/bundle-cXqs96Pt.js.map +0 -1
- package/chunks/bundle-d6R6m9-9.js.map +0 -1
- package/chunks/bundle-dWJnfDPH.js.map +0 -1
- package/chunks/bundle-f9mkey82.js.map +0 -1
- package/chunks/bundle-gEwUSFTG.js +0 -134
- package/chunks/bundle-gEwUSFTG.js.map +0 -1
- package/chunks/bundle-iYCB6XN2.js.map +0 -1
- package/chunks/bundle-ku6CEjGk.js.map +0 -1
- package/chunks/bundle-lmXvuxOb.js.map +0 -1
- package/chunks/bundle-mTQPBbmZ.js.map +0 -1
- package/chunks/bundle-niN5G0Bo.js.map +0 -1
- package/chunks/bundle-pWIkt9Ng.js.map +0 -1
- package/chunks/bundle-tca5p7Pl.js.map +0 -1
- package/chunks/bundle-ucXG1Py7.js +0 -174
- package/chunks/bundle-xgiw36M5.js.map +0 -1
- package/chunks/bundle-xsV7pD8p.js.map +0 -1
- package/chunks/bundle-y_LgB6DS.js.map +0 -1
- package/chunks/bundle-yur9nm4N.js.map +0 -1
- package/cjs/chunks/bundle--MJd6Gw1.js.map +0 -1
- package/cjs/chunks/bundle--d5w7FVF.js.map +0 -1
- package/cjs/chunks/bundle-135pRm7i.js.map +0 -1
- package/cjs/chunks/bundle-1dUHK2qC.js.map +0 -1
- package/cjs/chunks/bundle-5Nd6zn0d.js.map +0 -1
- package/cjs/chunks/bundle-68NdNRjR.js.map +0 -1
- package/cjs/chunks/bundle-7AS0Rcch.js.map +0 -1
- package/cjs/chunks/bundle-7J-qpEzM.js.map +0 -1
- package/cjs/chunks/bundle-7J3nX_hP.js.map +0 -1
- package/cjs/chunks/bundle-7QMU-JU1.js.map +0 -1
- package/cjs/chunks/bundle-7VJjqIPJ.js.map +0 -1
- package/cjs/chunks/bundle-9iE0HY96.js.map +0 -1
- package/cjs/chunks/bundle-AbGazomk.js.map +0 -1
- package/cjs/chunks/bundle-B5gH_etT.js.map +0 -1
- package/cjs/chunks/bundle-BH9aeaqG.js.map +0 -1
- package/cjs/chunks/bundle-CUa6Hz7c.js.map +0 -1
- package/cjs/chunks/bundle-Dax6YIIr.js.map +0 -1
- package/cjs/chunks/bundle-Dz3ncvS3.js.map +0 -1
- package/cjs/chunks/bundle-GDX6wyym.js.map +0 -1
- package/cjs/chunks/bundle-GsUulypb.js.map +0 -1
- package/cjs/chunks/bundle-INJtS58R.js.map +0 -1
- package/cjs/chunks/bundle-JOBLCwk9.js.map +0 -1
- package/cjs/chunks/bundle-JVe1J2FX.js +0 -179
- package/cjs/chunks/bundle-JbxviE94.js.map +0 -1
- package/cjs/chunks/bundle-LRCFL23q.js.map +0 -1
- package/cjs/chunks/bundle-OVfymd1y.js.map +0 -1
- package/cjs/chunks/bundle-Oc2T5_VP.js.map +0 -1
- package/cjs/chunks/bundle-TFo3Eb8z.js.map +0 -1
- package/cjs/chunks/bundle-TxdziCwH.js.map +0 -1
- package/cjs/chunks/bundle-UaSM_xZY.js.map +0 -1
- package/cjs/chunks/bundle-Ue5GkT2H.js +0 -1555
- package/cjs/chunks/bundle-Ue5GkT2H.js.map +0 -1
- package/cjs/chunks/bundle-VB_a0u7i.js.map +0 -1
- package/cjs/chunks/bundle-WzrocC57.js.map +0 -1
- package/cjs/chunks/bundle-aoIToceJ.js.map +0 -1
- package/cjs/chunks/bundle-bXLZZTmP.js.map +0 -1
- package/cjs/chunks/bundle-dny_TiUT.js.map +0 -1
- package/cjs/chunks/bundle-hEYmMlZe.js.map +0 -1
- package/cjs/chunks/bundle-hXzxY0NJ.js.map +0 -1
- package/cjs/chunks/bundle-kSScygqj.js.map +0 -1
- package/cjs/chunks/bundle-n6iwTZAo.js.map +0 -1
- package/cjs/chunks/bundle-ptZslG_m.js.map +0 -1
- package/cjs/chunks/bundle-qtXdbPNE.js.map +0 -1
- package/cjs/chunks/bundle-r8Z3GYqh.js.map +0 -1
- package/cjs/chunks/bundle-rgxTgHrK.js.map +0 -1
- package/cjs/chunks/bundle-tad4_cNF.js.map +0 -1
- package/cjs/chunks/bundle-v02q7K8T.js.map +0 -1
- package/cjs/chunks/bundle-vphYV1gz.js.map +0 -1
- package/cjs/chunks/bundle-y8EiLlDT.js.map +0 -1
- package/cjs/chunks/bundle-y_gkwZqM.js +0 -136
- package/cjs/chunks/bundle-y_gkwZqM.js.map +0 -1
- package/cjs/chunks/bundle-zgoic8x9.js.map +0 -1
- package/cjs/chunks/bundle-zrsbDQGp.js.map +0 -1
- package/types/modules/Channel/components/RemoveMessageModal.d.ts +0 -9
- package/types/modules/Channel/context/compareMessagesForGrouping.d.ts +0 -10
- package/types/modules/Channel/context/hooks/useStatefulFileInfoList.d.ts +0 -3
- package/types/modules/Thread/context/hooks/useGetNextThreadsCallback.d.ts +0 -17
- package/types/modules/Thread/context/hooks/useGetPrevThreadsCallback.d.ts +0 -17
- package/types/modules/Thread/context/hooks/useGetThreadList.d.ts +0 -14
- package/types/utils/createStatefulFileInfoList.d.ts +0 -11
- package/types/modules/{Channel/components/ChannelHeader → GroupChannel/components/GroupChannelHeader}/utils.d.ts +0 -0
- package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/VoiceMessageInputWrapper.d.ts +1 -1
- /package/types/modules/{Channel → GroupChannel}/components/MessageList/getMessagePartsInfo.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/SuggestedUserMentionItem.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/utils.d.ts +0 -0
- /package/types/modules/{Channel → GroupChannel}/components/SuggestedReplies/index.d.ts +0 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { _ as __assign } from './bundle-BA7tv0JB.js';
|
|
2
|
+
import React__default, { useEffect, useState } from 'react';
|
|
3
|
+
import { useChannelContext } from '../Channel/context.js';
|
|
4
|
+
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
5
|
+
import { G as GroupChannelHeaderView, C as ChannelHeader } from './bundle-3GWXgoxj.js';
|
|
6
|
+
import { u as useGroupChannelContext } from './bundle-zKBdD-J6.js';
|
|
7
|
+
import { useIIFE, useGroupChannelHandler } from '@sendbird/uikit-tools';
|
|
8
|
+
import { T as TypingIndicatorType, M as MessageList$1 } from './bundle-1zn-WT_r.js';
|
|
9
|
+
import PlaceHolder, { PlaceHolderTypes } from '../ui/PlaceHolder.js';
|
|
10
|
+
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
11
|
+
import { L as getSuggestedReplies, Q as isSendableMessage } from './bundle-N9hMnIRl.js';
|
|
12
|
+
import { i as isDisabledBecauseFrozen, a as isDisabledBecauseMuted, c as getComponentKeyFromMessage } from './bundle-tPCzzoc1.js';
|
|
13
|
+
import { a as MessageView } from './bundle-beMggMMW.js';
|
|
14
|
+
import { a as FileViewerView } from './bundle-khgxDrnA.js';
|
|
15
|
+
import { a as RemoveMessageModalView } from './bundle-bAY1j7eP.js';
|
|
16
|
+
import { getMessagePartsInfo } from '../Channel/utils/getMessagePartsInfo.js';
|
|
17
|
+
import { U as UnreadCount } from './bundle-VbkO6hwH.js';
|
|
18
|
+
import { F as FrozenNotification } from './bundle-G7HnuZsw.js';
|
|
19
|
+
import { S as SCROLL_BUFFER } from './bundle-MBrlu_LK.js';
|
|
20
|
+
import { MessageProvider } from '../Message/context.js';
|
|
21
|
+
import TypingIndicatorBubble from '../ui/TypingIndicatorBubble.js';
|
|
22
|
+
import { T as TypingIndicator } from './bundle-uIetzCLw.js';
|
|
23
|
+
import ConnectionStatus from '../ui/ConnectionStatus.js';
|
|
24
|
+
import { M as MessageInputWrapperView } from './bundle-DSoowPBh.js';
|
|
25
|
+
import './bundle-BBjosDA0.js';
|
|
26
|
+
import './bundle-drww6xht.js';
|
|
27
|
+
import '../VoiceRecorder/context.js';
|
|
28
|
+
import '../withSendbird.js';
|
|
29
|
+
import './bundle-I8JFwttJ.js';
|
|
30
|
+
import './bundle-LWD0OLz8.js';
|
|
31
|
+
import 'react-dom';
|
|
32
|
+
import './bundle-r9j_eCHc.js';
|
|
33
|
+
import '../ui/IconButton.js';
|
|
34
|
+
import '../ui/Button.js';
|
|
35
|
+
import { MessageInputWrapper as MessageInputWrapper$1 } from '../Channel/components/MessageInput.js';
|
|
36
|
+
|
|
37
|
+
var GroupChannelHeader = function (_a) {
|
|
38
|
+
var className = _a.className;
|
|
39
|
+
var context = useGroupChannelContext();
|
|
40
|
+
return (React__default.createElement(GroupChannelHeaderView, __assign({}, context, { className: className, currentChannel: context.currentChannel })));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var FileViewer = function (props) {
|
|
44
|
+
var deleteMessage = useGroupChannelContext().deleteMessage;
|
|
45
|
+
return React__default.createElement(FileViewerView, __assign({}, props, { deleteMessage: deleteMessage }));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var RemoveMessageModal = function (props) {
|
|
49
|
+
var deleteMessage = useGroupChannelContext().deleteMessage;
|
|
50
|
+
return React__default.createElement(RemoveMessageModalView, __assign({}, props, { deleteMessage: deleteMessage }));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var Message = function (props) {
|
|
54
|
+
var _a = useSendbirdStateContext(), config = _a.config, emojiManager = _a.emojiManager;
|
|
55
|
+
var _b = useGroupChannelContext(), loading = _b.loading, currentChannel = _b.currentChannel, animatedMessageId = _b.animatedMessageId, setAnimatedMessageId = _b.setAnimatedMessageId, scrollToMessage = _b.scrollToMessage, replyType = _b.replyType, threadReplySelectType = _b.threadReplySelectType, isReactionEnabled = _b.isReactionEnabled, toggleReaction = _b.toggleReaction, nicknamesMap = _b.nicknamesMap, setQuoteMessage = _b.setQuoteMessage, renderUserMentionItem = _b.renderUserMentionItem, onQuoteMessageClick = _b.onQuoteMessageClick, onReplyInThreadClick = _b.onReplyInThreadClick, onMessageAnimated = _b.onMessageAnimated, messages = _b.messages, updateUserMessage = _b.updateUserMessage, sendUserMessage = _b.sendUserMessage, resendMessage = _b.resendMessage, deleteMessage = _b.deleteMessage;
|
|
56
|
+
var message = props.message;
|
|
57
|
+
var initialized = !loading && Boolean(currentChannel);
|
|
58
|
+
var shouldRenderSuggestedReplies = useIIFE(function () {
|
|
59
|
+
var _a;
|
|
60
|
+
if (message.messageId !== ((_a = currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.lastMessage) === null || _a === void 0 ? void 0 : _a.messageId))
|
|
61
|
+
return false;
|
|
62
|
+
if (getSuggestedReplies(message).length === 0)
|
|
63
|
+
return false;
|
|
64
|
+
var lastMessage = messages[messages.length - 1];
|
|
65
|
+
if (lastMessage && isSendableMessage(lastMessage) && lastMessage.sendingStatus !== 'succeeded')
|
|
66
|
+
return false;
|
|
67
|
+
return true;
|
|
68
|
+
});
|
|
69
|
+
return (React__default.createElement(MessageView, __assign({}, props, { channel: currentChannel, emojiContainer: emojiManager.emojiContainer, editInputDisabled: !initialized || isDisabledBecauseFrozen(currentChannel) || isDisabledBecauseMuted(currentChannel) || !config.isOnline, shouldRenderSuggestedReplies: shouldRenderSuggestedReplies, isReactionEnabled: isReactionEnabled, replyType: replyType, threadReplySelectType: threadReplySelectType, nicknamesMap: nicknamesMap, renderUserMentionItem: renderUserMentionItem, scrollToMessage: scrollToMessage, toggleReaction: toggleReaction, setQuoteMessage: setQuoteMessage, onQuoteMessageClick: onQuoteMessageClick, onReplyInThreadClick: onReplyInThreadClick, sendUserMessage: sendUserMessage, updateUserMessage: updateUserMessage, resendMessage: resendMessage, deleteMessage: deleteMessage, animatedMessageId: animatedMessageId, setAnimatedMessageId: setAnimatedMessageId, onMessageAnimated: onMessageAnimated, renderFileViewer: function (props) { return React__default.createElement(FileViewer, __assign({}, props)); }, renderRemoveMessageModal: function (props) { return React__default.createElement(RemoveMessageModal, __assign({}, props)); } })));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
function useScrollBehavior() {
|
|
73
|
+
var _a = useGroupChannelContext(), scrollRef = _a.scrollRef, _b = _a.scrollBehavior, scrollBehavior = _b === void 0 ? 'auto' : _b;
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
if (scrollRef.current) {
|
|
76
|
+
scrollRef.current.style.scrollBehavior = scrollBehavior;
|
|
77
|
+
}
|
|
78
|
+
}, [scrollRef.current]);
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var MessageList = function (_a) {
|
|
83
|
+
var _b, _c, _d, _e, _f;
|
|
84
|
+
var _g = _a.className, className = _g === void 0 ? '' : _g, renderMessage = _a.renderMessage, renderPlaceholderEmpty = _a.renderPlaceholderEmpty, renderCustomSeparator = _a.renderCustomSeparator, renderPlaceholderLoader = _a.renderPlaceholderLoader, renderFrozenNotification = _a.renderFrozenNotification;
|
|
85
|
+
var _h = useGroupChannelContext(), channelUrl = _h.channelUrl, hasNext = _h.hasNext, loading = _h.loading, messages = _h.messages, newMessages = _h.newMessages, scrollToBottom = _h.scrollToBottom, isScrollBottomReached = _h.isScrollBottomReached, isMessageGroupingEnabled = _h.isMessageGroupingEnabled, scrollRef = _h.scrollRef, scrollDistanceFromBottomRef = _h.scrollDistanceFromBottomRef, currentChannel = _h.currentChannel, replyType = _h.replyType, scrollPubSub = _h.scrollPubSub;
|
|
86
|
+
var store = useSendbirdStateContext();
|
|
87
|
+
var _j = useState(), unreadSinceDate = _j[0], setUnreadSinceDate = _j[1];
|
|
88
|
+
useScrollBehavior();
|
|
89
|
+
useEffect(function () {
|
|
90
|
+
if (isScrollBottomReached) {
|
|
91
|
+
setUnreadSinceDate(undefined);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
setUnreadSinceDate(new Date());
|
|
95
|
+
}
|
|
96
|
+
}, [isScrollBottomReached]);
|
|
97
|
+
/**
|
|
98
|
+
* 1. Move the message list scroll
|
|
99
|
+
* when each message's height is changed by `reactions` OR `showEdit`
|
|
100
|
+
* 2. Keep the scrollBottom value after fetching new message list
|
|
101
|
+
*/
|
|
102
|
+
var onMessageContentSizeChanged = function (isBottomMessageAffected) {
|
|
103
|
+
if (isBottomMessageAffected === void 0) { isBottomMessageAffected = false; }
|
|
104
|
+
var elem = scrollRef.current;
|
|
105
|
+
if (elem) {
|
|
106
|
+
var latestDistance = scrollDistanceFromBottomRef.current;
|
|
107
|
+
var currentDistance = elem.scrollHeight - elem.scrollTop - elem.offsetHeight;
|
|
108
|
+
if (latestDistance < currentDistance && (!isBottomMessageAffected || latestDistance < SCROLL_BUFFER)) {
|
|
109
|
+
var diff = currentDistance - latestDistance;
|
|
110
|
+
// Move the scroll as much as the height of the message has changed
|
|
111
|
+
scrollPubSub.publish('scroll', { top: elem.scrollTop + diff, lazy: false });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var renderer = {
|
|
116
|
+
frozenNotification: function () {
|
|
117
|
+
if (!currentChannel || !currentChannel.isFrozen)
|
|
118
|
+
return null;
|
|
119
|
+
if (renderFrozenNotification)
|
|
120
|
+
return renderFrozenNotification();
|
|
121
|
+
return React__default.createElement(FrozenNotification, { className: "sendbird-conversation__messages__notification" });
|
|
122
|
+
},
|
|
123
|
+
unreadMessagesNotification: function () {
|
|
124
|
+
if (isScrollBottomReached || !unreadSinceDate)
|
|
125
|
+
return null;
|
|
126
|
+
return (React__default.createElement(UnreadCount, { className: "sendbird-conversation__messages__notification", count: newMessages.length, lastReadAt: unreadSinceDate, onClick: scrollToBottom }));
|
|
127
|
+
},
|
|
128
|
+
scrollToBottomButton: function () {
|
|
129
|
+
if (!hasNext() && isScrollBottomReached)
|
|
130
|
+
return null;
|
|
131
|
+
return (React__default.createElement("div", { className: "sendbird-conversation__scroll-bottom-button", onClick: scrollToBottom, onKeyDown: scrollToBottom, tabIndex: 0, role: "button" },
|
|
132
|
+
React__default.createElement(Icon, { width: "24px", height: "24px", type: IconTypes.CHEVRON_DOWN, fillColor: IconColors.PRIMARY })));
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
if (loading) {
|
|
136
|
+
if (renderPlaceholderLoader)
|
|
137
|
+
return renderPlaceholderLoader();
|
|
138
|
+
return React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.LOADING });
|
|
139
|
+
}
|
|
140
|
+
if (messages.length === 0) {
|
|
141
|
+
if (renderPlaceholderEmpty)
|
|
142
|
+
return renderPlaceholderEmpty();
|
|
143
|
+
return React__default.createElement(PlaceHolder, { className: "sendbird-conversation__no-messages", type: PlaceHolderTypes.NO_MESSAGES });
|
|
144
|
+
}
|
|
145
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
146
|
+
React__default.createElement("div", { className: "sendbird-conversation__messages ".concat(className) },
|
|
147
|
+
React__default.createElement("div", { className: "sendbird-conversation__scroll-container" },
|
|
148
|
+
React__default.createElement("div", { className: "sendbird-conversation__padding" }),
|
|
149
|
+
React__default.createElement("div", { className: "sendbird-conversation__messages-padding", ref: scrollRef },
|
|
150
|
+
messages.map(function (message, idx) {
|
|
151
|
+
var _a = getMessagePartsInfo({
|
|
152
|
+
allMessages: messages,
|
|
153
|
+
replyType: replyType,
|
|
154
|
+
isMessageGroupingEnabled: isMessageGroupingEnabled,
|
|
155
|
+
currentIndex: idx,
|
|
156
|
+
currentMessage: message,
|
|
157
|
+
currentChannel: currentChannel,
|
|
158
|
+
}), chainTop = _a.chainTop, chainBottom = _a.chainBottom, hasSeparator = _a.hasSeparator;
|
|
159
|
+
var isOutgoingMessage = message.isUserMessage() && message.sender.userId === store.config.userId;
|
|
160
|
+
return (React__default.createElement(MessageProvider, { message: message, key: getComponentKeyFromMessage(message), isByMe: isOutgoingMessage },
|
|
161
|
+
React__default.createElement(Message, { handleScroll: onMessageContentSizeChanged, renderMessage: renderMessage, message: message, hasSeparator: hasSeparator, chainTop: chainTop, chainBottom: chainBottom, renderCustomSeparator: renderCustomSeparator })));
|
|
162
|
+
}),
|
|
163
|
+
!hasNext()
|
|
164
|
+
&& ((_c = (_b = store === null || store === void 0 ? void 0 : store.config) === null || _b === void 0 ? void 0 : _b.groupChannel) === null || _c === void 0 ? void 0 : _c.enableTypingIndicator)
|
|
165
|
+
&& ((_f = (_e = (_d = store === null || store === void 0 ? void 0 : store.config) === null || _d === void 0 ? void 0 : _d.groupChannel) === null || _e === void 0 ? void 0 : _e.typingIndicatorTypes) === null || _f === void 0 ? void 0 : _f.has(TypingIndicatorType.Bubble)) && (React__default.createElement(TypingIndicatorBubbleWrapper, { channelUrl: channelUrl, handleScroll: onMessageContentSizeChanged })))),
|
|
166
|
+
React__default.createElement(React__default.Fragment, null, renderer.frozenNotification()),
|
|
167
|
+
React__default.createElement(React__default.Fragment, null, renderer.unreadMessagesNotification()),
|
|
168
|
+
React__default.createElement(React__default.Fragment, null, renderer.scrollToBottomButton()))));
|
|
169
|
+
};
|
|
170
|
+
var TypingIndicatorBubbleWrapper = function (props) {
|
|
171
|
+
var stores = useSendbirdStateContext().stores;
|
|
172
|
+
var _a = useState([]), typingMembers = _a[0], setTypingMembers = _a[1];
|
|
173
|
+
useGroupChannelHandler(stores.sdkStore.sdk, {
|
|
174
|
+
onTypingStatusUpdated: function (channel) {
|
|
175
|
+
if (channel.url === props.channelUrl) {
|
|
176
|
+
setTypingMembers(channel.getTypingUsers());
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
return React__default.createElement(TypingIndicatorBubble, { typingMembers: typingMembers, handleScroll: props.handleScroll });
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var MessageInputWrapper = function (props) {
|
|
184
|
+
var context = useGroupChannelContext();
|
|
185
|
+
return (React__default.createElement(MessageInputWrapperView, __assign({}, props, context)));
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
var GroupChannelUIView = function (props) {
|
|
189
|
+
var _a, _b, _c, _d;
|
|
190
|
+
var requestedChannelUrl = props.requestedChannelUrl, loading = props.loading, isInvalid = props.isInvalid, _e = props.renderChannelHeader, renderChannelHeader = _e === void 0 ? function (props) { return (React__default.createElement(GroupChannelHeader, __assign({}, props))); } : _e, _f = props.renderMessageList, renderMessageList = _f === void 0 ? function (props) { return (React__default.createElement(MessageList, __assign({}, props, { className: "sendbird-conversation__message-list" }))); } : _f, _g = props.renderMessageInput, renderMessageInput = _g === void 0 ? function () { return React__default.createElement(MessageInputWrapper, null); } : _g, renderTypingIndicator = props.renderTypingIndicator, renderPlaceholderLoader = props.renderPlaceholderLoader, renderPlaceholderInvalid = props.renderPlaceholderInvalid;
|
|
191
|
+
var _h = useSendbirdStateContext(), stores = _h.stores, config = _h.config;
|
|
192
|
+
var sdkError = (_a = stores === null || stores === void 0 ? void 0 : stores.sdkStore) === null || _a === void 0 ? void 0 : _a.error;
|
|
193
|
+
var logger = config.logger, isOnline = config.isOnline;
|
|
194
|
+
if (loading) {
|
|
195
|
+
return React__default.createElement("div", { className: "sendbird-conversation" }, (renderPlaceholderLoader === null || renderPlaceholderLoader === void 0 ? void 0 : renderPlaceholderLoader()) || React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.LOADING }));
|
|
196
|
+
}
|
|
197
|
+
if (!requestedChannelUrl) {
|
|
198
|
+
return (React__default.createElement("div", { className: "sendbird-conversation" }, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.NO_CHANNELS })));
|
|
199
|
+
}
|
|
200
|
+
if (isInvalid) {
|
|
201
|
+
return React__default.createElement("div", { className: "sendbird-conversation" }, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.WRONG }));
|
|
202
|
+
}
|
|
203
|
+
if (sdkError) {
|
|
204
|
+
return (React__default.createElement("div", { className: "sendbird-conversation" }, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || (React__default.createElement(PlaceHolder, { type: PlaceHolderTypes.WRONG, retryToConnect: function () {
|
|
205
|
+
logger.info('Channel: reconnecting');
|
|
206
|
+
// reconnect();
|
|
207
|
+
} }))));
|
|
208
|
+
}
|
|
209
|
+
return (React__default.createElement("div", { className: 'sendbird-conversation' }, renderChannelHeader === null || renderChannelHeader === void 0 ? void 0 :
|
|
210
|
+
renderChannelHeader({ className: 'sendbird-conversation__channel-header' }), renderMessageList === null || renderMessageList === void 0 ? void 0 :
|
|
211
|
+
renderMessageList(props),
|
|
212
|
+
React__default.createElement("div", { className: "sendbird-conversation__footer" }, renderMessageInput === null || renderMessageInput === void 0 ? void 0 :
|
|
213
|
+
renderMessageInput(),
|
|
214
|
+
React__default.createElement("div", { className: "sendbird-conversation__footer__typing-indicator" },
|
|
215
|
+
(renderTypingIndicator === null || renderTypingIndicator === void 0 ? void 0 : renderTypingIndicator())
|
|
216
|
+
|| (((_b = config === null || config === void 0 ? void 0 : config.groupChannel) === null || _b === void 0 ? void 0 : _b.enableTypingIndicator)
|
|
217
|
+
&& ((_d = (_c = config === null || config === void 0 ? void 0 : config.groupChannel) === null || _c === void 0 ? void 0 : _c.typingIndicatorTypes) === null || _d === void 0 ? void 0 : _d.has(TypingIndicatorType.Text))
|
|
218
|
+
&& (React__default.createElement(TypingIndicator, { channelUrl: requestedChannelUrl }))),
|
|
219
|
+
!isOnline && React__default.createElement(ConnectionStatus, null)))));
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
var ChannelUI = function (props) {
|
|
223
|
+
var _a;
|
|
224
|
+
var context = useChannelContext();
|
|
225
|
+
var channelUrl = context.channelUrl, isInvalid = context.isInvalid, loading = context.loading;
|
|
226
|
+
return (React__default.createElement(GroupChannelUIView, __assign({}, props, context, { requestedChannelUrl: channelUrl, loading: (_a = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _a !== void 0 ? _a : loading, isInvalid: isInvalid, renderChannelHeader: function (props) { return (React__default.createElement(ChannelHeader, __assign({}, props))); }, renderMessageList: function (props) { return (React__default.createElement(MessageList$1, __assign({}, props))); }, renderMessageInput: function () { return (React__default.createElement(MessageInputWrapper$1, __assign({}, props))); } })));
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export { ChannelUI as C, GroupChannelUIView as G };
|
|
230
|
+
//# sourceMappingURL=bundle-GnFOVDL2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-GnFOVDL2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
1
|
+
import { a as __spreadArray } from './bundle-BA7tv0JB.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { g as getStringSet } from './bundle-
|
|
3
|
+
import { g as getStringSet } from './bundle-jy6_UG14.js';
|
|
4
4
|
|
|
5
5
|
var Typography = {
|
|
6
6
|
H_1: 'H_1',
|
|
@@ -77,4 +77,4 @@ var LabelColors = Colors;
|
|
|
77
77
|
var LabelStringSet = getStringSet('en');
|
|
78
78
|
|
|
79
79
|
export { Label as L, LabelTypography as a, LabelColors as b, LabelStringSet as c, changeColorToClassName as d };
|
|
80
|
-
//# sourceMappingURL=bundle-
|
|
80
|
+
//# sourceMappingURL=bundle-I8JFwttJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-I8JFwttJ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
2
|
-
import { K as isUrl } from './bundle-uk2Y0AQu.js';
|
|
1
|
+
import { a as __spreadArray } from './bundle-BA7tv0JB.js';
|
|
3
2
|
|
|
4
3
|
var USER_MENTION_PREFIX = '@';
|
|
5
4
|
|
|
@@ -52,21 +51,38 @@ function identifyMentions(_a) {
|
|
|
52
51
|
return results;
|
|
53
52
|
}
|
|
54
53
|
function identifyUrlsAndStrings(token) {
|
|
54
|
+
var URL_REG = /(?:https?:\/\/|www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.(xn--)?[a-z0-9-]{2,20}\b([-a-zA-Z0-9@:%_+[\],.~#?&/=]*[-a-zA-Z0-9@:%_+~#?&/=])*/g;
|
|
55
55
|
var results = token.map(function (token) {
|
|
56
56
|
if (token.type !== TOKEN_TYPES.undetermined) {
|
|
57
57
|
return token;
|
|
58
58
|
}
|
|
59
59
|
var _a = token.value, value = _a === void 0 ? '' : _a;
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
60
|
+
var matches = Array.from(value.matchAll(URL_REG));
|
|
61
|
+
var founds = matches.map(function (value) {
|
|
62
|
+
var _a;
|
|
63
|
+
var text = value[0];
|
|
64
|
+
var start = (_a = value.index) !== null && _a !== void 0 ? _a : 0;
|
|
65
|
+
var end = start + text.length;
|
|
66
|
+
return { text: text, start: start, end: end };
|
|
68
67
|
});
|
|
69
|
-
|
|
68
|
+
var items = [{ value: value, type: TOKEN_TYPES.string }];
|
|
69
|
+
var cursor = 0;
|
|
70
|
+
founds.forEach(function (_a) {
|
|
71
|
+
var text = _a.text, start = _a.start, end = _a.end;
|
|
72
|
+
var restText = items.pop().value;
|
|
73
|
+
var head = restText.slice(0, start - cursor);
|
|
74
|
+
var mid = text;
|
|
75
|
+
var tail = restText.slice(end - cursor);
|
|
76
|
+
items.push({ value: head, type: TOKEN_TYPES.string }, { value: mid, type: TOKEN_TYPES.url });
|
|
77
|
+
if (tail.length > 0)
|
|
78
|
+
items.push({ value: tail, type: TOKEN_TYPES.string });
|
|
79
|
+
cursor = end;
|
|
80
|
+
});
|
|
81
|
+
// Remove the first empty string
|
|
82
|
+
if (items[0].value === '' && items[0].type === TOKEN_TYPES.string) {
|
|
83
|
+
items.shift();
|
|
84
|
+
}
|
|
85
|
+
return items;
|
|
70
86
|
}).flat();
|
|
71
87
|
return results;
|
|
72
88
|
}
|
|
@@ -74,7 +90,7 @@ function combineNearbyStrings(tokens) {
|
|
|
74
90
|
var results = tokens.reduce(function (acc, token) {
|
|
75
91
|
var lastToken = acc[acc.length - 1];
|
|
76
92
|
if ((lastToken === null || lastToken === void 0 ? void 0 : lastToken.type) === TOKEN_TYPES.string && token.type === TOKEN_TYPES.string) {
|
|
77
|
-
lastToken.value = "".concat(lastToken.value
|
|
93
|
+
lastToken.value = "".concat(lastToken.value).concat(token.value);
|
|
78
94
|
return acc;
|
|
79
95
|
}
|
|
80
96
|
return __spreadArray(__spreadArray([], acc, true), [token], false);
|
|
@@ -129,4 +145,4 @@ function getWhiteSpacePreservedText(text) {
|
|
|
129
145
|
}
|
|
130
146
|
|
|
131
147
|
export { TOKEN_TYPES as T, USER_MENTION_PREFIX as U, getWhiteSpacePreservedText as g, tokenizeMessage as t };
|
|
132
|
-
//# sourceMappingURL=bundle-
|
|
148
|
+
//# sourceMappingURL=bundle-IRlSmJVg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-IRlSmJVg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
1
|
+
import { a as __spreadArray } from './bundle-BA7tv0JB.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { f as format } from './bundle-
|
|
3
|
+
import { f as format } from './bundle-hDx2-CRe.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
5
|
-
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from './bundle-
|
|
5
|
+
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from './bundle-I8JFwttJ.js';
|
|
6
6
|
import Loader from '../ui/Loader.js';
|
|
7
|
-
import {
|
|
7
|
+
import { u as isImage, x as isGif, w as isVideo, z as isAudio, A as isVoiceMessageMimeType, B as isSentStatus } from './bundle-N9hMnIRl.js';
|
|
8
8
|
import { getOutgoingMessageState, OutgoingMessageStates } from '../utils/message/getOutgoingMessageState.js';
|
|
9
|
-
import { i as isToday, a as isYesterday, b as isThisYear } from './bundle-
|
|
10
|
-
import { u as useLocalization } from './bundle-
|
|
9
|
+
import { i as isToday, a as isYesterday, b as isThisYear } from './bundle-lUrIOx9p.js';
|
|
10
|
+
import { u as useLocalization } from './bundle-BBjosDA0.js';
|
|
11
11
|
|
|
12
12
|
var getChannelTitle = function (channel, currentUserId, stringSet) {
|
|
13
13
|
var _a;
|
|
@@ -127,5 +127,5 @@ function MessageStatus(_a) {
|
|
|
127
127
|
: getLastMessageCreatedAt({ channel: channel, locale: dateLocale, stringSet: stringSet })))));
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
export { MessageStatus as M,
|
|
131
|
-
//# sourceMappingURL=bundle-
|
|
130
|
+
export { MessageStatus as M, getLastMessageCreatedAt as a, getLastMessage as b, getChannelUnreadMessageCount as c, getChannelTitle as d, MessageStatusTypes as e, getTotalMembers as g };
|
|
131
|
+
//# sourceMappingURL=bundle-J3DrW9X2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-J3DrW9X2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-LWD0OLz8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,5 +27,5 @@ var SLIDER_BUTTON_ICON_SIDE_LENGTH = '32px';
|
|
|
27
27
|
// multiple files message file info count limit
|
|
28
28
|
var DEFAULT_MULTIPLE_FILES_MESSAGE_LIMIT = 10;
|
|
29
29
|
|
|
30
|
-
export { BROWSER_SUPPORT_MIME_TYPE_LIST as B, DELIVERY_RECEIPT as D, META_ARRAY_VOICE_DURATION_KEY as M, ONE_MiB as O, SCROLL_BUFFER as S, VOICE_RECORDER_AUDIO_BIT_RATE as V, VOICE_MESSAGE_FILE_NAME as a, VOICE_MESSAGE_MIME_TYPE as b,
|
|
31
|
-
//# sourceMappingURL=bundle-
|
|
30
|
+
export { BROWSER_SUPPORT_MIME_TYPE_LIST as B, DELIVERY_RECEIPT as D, META_ARRAY_VOICE_DURATION_KEY as M, ONE_MiB as O, SCROLL_BUFFER as S, VOICE_RECORDER_AUDIO_BIT_RATE as V, VOICE_MESSAGE_FILE_NAME as a, VOICE_MESSAGE_MIME_TYPE as b, VOICE_RECORDER_AUDIO_SAMPLE_RATE as c, VOICE_PLAYER_AUDIO_ID as d, VOICE_RECORDER_CLICK_BUFFER_TIME as e, VOICE_RECORDER_DEFAULT_MIN as f, VOICE_PLAYER_ROOT_ID as g, META_ARRAY_MESSAGE_TYPE_KEY as h, META_ARRAY_MESSAGE_TYPE_VALUE__VOICE as i, SLIDER_BUTTON_ICON_SIDE_LENGTH as j, DEFAULT_MULTIPLE_FILES_MESSAGE_LIMIT as k, VOICE_RECORDER_DEFAULT_MAX as l };
|
|
31
|
+
//# sourceMappingURL=bundle-MBrlu_LK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-MBrlu_LK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __assign, a as __spreadArray } from './bundle-
|
|
1
|
+
import { _ as __assign, a as __spreadArray } from './bundle-BA7tv0JB.js';
|
|
2
2
|
import { GroupChannelListOrder } from '@sendbird/chat/groupChannel';
|
|
3
3
|
import { OutgoingMessageStates, getOutgoingMessageState } from '../utils/message/getOutgoingMessageState.js';
|
|
4
|
-
import { K } from './bundle-
|
|
4
|
+
import { K } from './bundle-aKXnhi3A.js';
|
|
5
5
|
|
|
6
6
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
|
|
7
7
|
var SUPPORTED_MIMES = {
|
|
@@ -253,6 +253,9 @@ function getSuggestedReplies(message) {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
var URL_REG = /^((http|https):\/\/)?([a-z\d-]+\.)+[a-z]{2,}(\:[0-9]{1,5})?(\/[-a-zA-Z\d%_.~+&=]*)*(\?[;&a-zA-Z\d%_.~+=-]*)?(#\S*)?$/;
|
|
256
|
+
/** @deprecated
|
|
257
|
+
* URL detection in a message text will be handled in utils/tokens/tokenize.ts
|
|
258
|
+
*/
|
|
256
259
|
var isUrl = function (text) { return URL_REG.test(text); };
|
|
257
260
|
var truncateString = function (fullStr, strLen) {
|
|
258
261
|
if (!strLen)
|
|
@@ -559,12 +562,17 @@ var filterChannelListParams = function (params, channel, currentUserId) {
|
|
|
559
562
|
}
|
|
560
563
|
return true;
|
|
561
564
|
};
|
|
562
|
-
|
|
563
|
-
var getChannelsWithUpsertedChannel = function (_channels, channel, order) {
|
|
565
|
+
var sortChannelList = function (channels, order) {
|
|
564
566
|
var compareFunc = K(order)
|
|
565
567
|
.with(GroupChannelListOrder.CHANNEL_NAME_ALPHABETICAL, function () { return (function (a, b) { return a.name.localeCompare(b.name); }); })
|
|
566
568
|
.with(GroupChannelListOrder.CHRONOLOGICAL, function () { return (function (a, b) { return b.createdAt - a.createdAt; }); })
|
|
567
569
|
.otherwise(function () { return (function (a, b) { var _a, _b, _c, _d; return ((_b = (_a = b.lastMessage) === null || _a === void 0 ? void 0 : _a.createdAt) !== null && _b !== void 0 ? _b : Number.MIN_SAFE_INTEGER) - ((_d = (_c = a.lastMessage) === null || _c === void 0 ? void 0 : _c.createdAt) !== null && _d !== void 0 ? _d : Number.MIN_SAFE_INTEGER); }); });
|
|
570
|
+
return channels.sort(compareFunc);
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Upserts given channel to the channel list and then returns the sorted channel list.
|
|
574
|
+
*/
|
|
575
|
+
var getChannelsWithUpsertedChannel = function (_channels, channel, order) {
|
|
568
576
|
var channels = __spreadArray([], _channels, true);
|
|
569
577
|
var findingIndex = channels.findIndex(function (ch) { return ch.url === channel.url; });
|
|
570
578
|
if (findingIndex !== -1) {
|
|
@@ -573,7 +581,7 @@ var getChannelsWithUpsertedChannel = function (_channels, channel, order) {
|
|
|
573
581
|
else {
|
|
574
582
|
channels.push(channel);
|
|
575
583
|
}
|
|
576
|
-
return channels
|
|
584
|
+
return sortChannelList(channels, order);
|
|
577
585
|
};
|
|
578
586
|
var StringObjType;
|
|
579
587
|
(function (StringObjType) {
|
|
@@ -647,5 +655,5 @@ var isSendableMessage = function (message) {
|
|
|
647
655
|
return Boolean(message) && 'sender' in message;
|
|
648
656
|
};
|
|
649
657
|
|
|
650
|
-
export {
|
|
651
|
-
//# sourceMappingURL=bundle-
|
|
658
|
+
export { isVoiceMessageMimeType as A, isSentStatus as B, arrayEqual as C, getMimeTypesUIKitAccepts as D, isSupportedFileView as E, isImageMessage as F, isImageFileInfo as G, isAudioMessage as H, isOGMessage as I, isTextMessage as J, isThreadMessage as K, getSuggestedReplies as L, getEmojiUrl as M, isReactedBy as N, getEmojiTooltipString as O, getEmojiMapAll as P, isSendableMessage as Q, filterChannelListParams as R, StringObjType as S, getChannelsWithUpsertedChannel as T, UIKitMessageTypes as U, filterMessageListParams as V, isTextuallyNull as W, isMultipleFilesMessage as a, isReadMessage as b, isFileMessage as c, isEditedMessage as d, isUserMessage as e, getUIKitMessageType as f, getSenderName as g, getUIKitMessageTypes as h, isVoiceMessage as i, getUIKitFileType as j, isThumbnailMessage as k, isSentMessage as l, isVideoMessage as m, isGifMessage as n, isFailedMessage as o, isPendingMessage as p, getClassName as q, copyToClipboard as r, getEmojiListAll as s, truncateString as t, isImage as u, getUIKitFileTypes as v, isVideo as w, isGif as x, convertWordToStringObj as y, isAudio as z };
|
|
659
|
+
//# sourceMappingURL=bundle-N9hMnIRl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-N9hMnIRl.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function helps consider the every condition
|
|
3
|
+
* related to enabling emoji reaction feature.
|
|
4
|
+
*/
|
|
5
|
+
function getIsReactionEnabled(_a) {
|
|
6
|
+
var _b = _a.isBroadcast, isBroadcast = _b === void 0 ? false : _b, _c = _a.isSuper, isSuper = _c === void 0 ? false : _c, _d = _a.globalLevel, globalLevel = _d === void 0 ? true : _d, moduleLevel = _a.moduleLevel;
|
|
7
|
+
return !(isBroadcast || isSuper) && (moduleLevel !== null && moduleLevel !== void 0 ? moduleLevel : globalLevel);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { getIsReactionEnabled as g };
|
|
11
|
+
//# sourceMappingURL=bundle-NjNqsDXb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-NjNqsDXb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-NwZvowyL.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React__default, { useState } from 'react';
|
|
2
|
+
import { u as useChannelListContext } from './bundle-otzUyFE_.js';
|
|
3
|
+
import IconButton from '../ui/IconButton.js';
|
|
4
|
+
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
5
|
+
import CreateChannel from '../CreateChannel.js';
|
|
6
|
+
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
7
|
+
|
|
8
|
+
var AddGroupChannelView = function (_a) {
|
|
9
|
+
var createChannelVisible = _a.createChannelVisible, onChangeCreateChannelVisible = _a.onChangeCreateChannelVisible, onBeforeCreateChannel = _a.onBeforeCreateChannel, onCreateChannelClick = _a.onCreateChannelClick, onChannelCreated = _a.onChannelCreated;
|
|
10
|
+
var config = useSendbirdStateContext().config;
|
|
11
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
12
|
+
React__default.createElement(IconButton, { height: '32px', width: '32px', disabled: !config.isOnline, onClick: function () { return onChangeCreateChannelVisible(true); } },
|
|
13
|
+
React__default.createElement(Icon, { type: IconTypes.CREATE, fillColor: IconColors.PRIMARY, width: '24px', height: '24px' })),
|
|
14
|
+
createChannelVisible && (React__default.createElement(CreateChannel, { onCancel: function () { return onChangeCreateChannelVisible(false); }, onChannelCreated: function (channel) {
|
|
15
|
+
onChannelCreated === null || onChannelCreated === void 0 ? void 0 : onChannelCreated(channel);
|
|
16
|
+
onChangeCreateChannelVisible(false);
|
|
17
|
+
}, onBeforeCreateChannel: onBeforeCreateChannel, onCreateChannelClick: onCreateChannelClick }))));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var AddChannel = function () {
|
|
21
|
+
var _a = useState(false), showModal = _a[0], setShowModal = _a[1];
|
|
22
|
+
var _b = useChannelListContext(), overrideInviteUser = _b.overrideInviteUser, onBeforeCreateChannel = _b.onBeforeCreateChannel, onChannelSelect = _b.onChannelSelect;
|
|
23
|
+
return (React__default.createElement(AddGroupChannelView, { createChannelVisible: showModal, onChangeCreateChannelVisible: setShowModal, onCreateChannelClick: overrideInviteUser, onBeforeCreateChannel: onBeforeCreateChannel, onChannelCreated: onChannelSelect }));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { AddChannel as A, AddGroupChannelView as a };
|
|
27
|
+
//# sourceMappingURL=bundle-OAJaPWYb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-OAJaPWYb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,9 +3,9 @@ import { PlaybackTime } from '../ui/PlaybackTime.js';
|
|
|
3
3
|
import { ProgressBar } from '../ui/ProgressBar.js';
|
|
4
4
|
import TextButton from '../ui/TextButton.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
6
|
-
import { b as LabelColors, L as Label, a as LabelTypography } from './bundle-
|
|
7
|
-
import { u as useLocalization } from './bundle-
|
|
8
|
-
import {
|
|
6
|
+
import { b as LabelColors, L as Label, a as LabelTypography } from './bundle-I8JFwttJ.js';
|
|
7
|
+
import { u as useLocalization } from './bundle-BBjosDA0.js';
|
|
8
|
+
import { e as VOICE_RECORDER_CLICK_BUFFER_TIME, f as VOICE_RECORDER_DEFAULT_MIN } from './bundle-MBrlu_LK.js';
|
|
9
9
|
|
|
10
10
|
/* eslint-disable no-redeclare */
|
|
11
11
|
var VoiceMessageInputStatus = {
|
|
@@ -93,4 +93,4 @@ var VoiceMessageInput = function (_a) {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export { VoiceMessageInputStatus as V, VoiceMessageInput as a };
|
|
96
|
-
//# sourceMappingURL=bundle-
|
|
96
|
+
//# sourceMappingURL=bundle-OFH4qWaN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-OFH4qWaN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-OJ-0ytxX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
var LOG_PRESET = 'useToggleReactionCallback:';
|
|
4
|
+
function useToggleReactionCallback(currentChannel, logger) {
|
|
5
|
+
return useCallback(function (message, key, isReacted) {
|
|
6
|
+
if (!currentChannel) {
|
|
7
|
+
logger.warning("".concat(LOG_PRESET, " currentChannel doesn't exist"), currentChannel);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (isReacted) {
|
|
11
|
+
currentChannel
|
|
12
|
+
.deleteReaction(message, key)
|
|
13
|
+
.then(function (res) {
|
|
14
|
+
logger.info("".concat(LOG_PRESET, " Delete reaction success"), res);
|
|
15
|
+
})
|
|
16
|
+
.catch(function (err) {
|
|
17
|
+
logger.warning("".concat(LOG_PRESET, " Delete reaction failed"), err);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
currentChannel
|
|
22
|
+
.addReaction(message, key)
|
|
23
|
+
.then(function (res) {
|
|
24
|
+
logger.info("".concat(LOG_PRESET, " Add reaction success"), res);
|
|
25
|
+
})
|
|
26
|
+
.catch(function (err) {
|
|
27
|
+
logger.warning("".concat(LOG_PRESET, " Add reaction failed"), err);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}, [currentChannel]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { useToggleReactionCallback as u };
|
|
34
|
+
//# sourceMappingURL=bundle-Q8kUKu5l.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-Q8kUKu5l.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
1
|
+
import { a as __spreadArray } from './bundle-BA7tv0JB.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import ImageRenderer from '../ui/ImageRenderer.js';
|
|
4
|
-
import {
|
|
5
|
-
import { p as pxToNumber } from './bundle-Kv4GXRTs.js';
|
|
4
|
+
import { p as pxToNumber } from './bundle-jDjj3eHU.js';
|
|
6
5
|
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
7
6
|
|
|
8
7
|
var AvatarDefault = function (props) {
|
|
@@ -47,7 +46,7 @@ var AvatarInner = function (_a) {
|
|
|
47
46
|
React__default.createElement(ImageRenderer, { className: imageRendererClassName, url: src[2], height: height, width: width, alt: alt, defaultComponent: defaultComponent }))));
|
|
48
47
|
}
|
|
49
48
|
return (React__default.createElement("div", { className: "sendbird-avatar--inner__four-child" }, src.slice(0, 4)
|
|
50
|
-
.map(function (
|
|
49
|
+
.map(function (url, index) { return (React__default.createElement(ImageRenderer, { className: imageRendererClassName, url: url, height: height, width: width, alt: alt, key: "".concat(url, "-").concat(index), defaultComponent: defaultComponent })); })));
|
|
51
50
|
}
|
|
52
51
|
// default img
|
|
53
52
|
return (React__default.createElement(ImageRenderer, { className: imageRendererClassName, url: "", height: height, width: width, alt: alt, defaultComponent: defaultComponent }));
|
|
@@ -67,4 +66,4 @@ function Avatar(_a, ref) {
|
|
|
67
66
|
var Avatar$1 = React__default.forwardRef(Avatar);
|
|
68
67
|
|
|
69
68
|
export { Avatar$1 as A, AvatarDefault as a, AvatarInner as b };
|
|
70
|
-
//# sourceMappingURL=bundle-
|
|
69
|
+
//# sourceMappingURL=bundle-Qufz6_i_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-Qufz6_i_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|