@sendbird/uikit-react 3.10.1 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (999) hide show
  1. package/App.js +369 -190
  2. package/App.js.map +1 -1
  3. package/CHANGELOG.md +29 -2
  4. package/Channel/components/ChannelHeader.js +35 -61
  5. package/Channel/components/ChannelHeader.js.map +1 -1
  6. package/Channel/components/ChannelUI.js +78 -111
  7. package/Channel/components/ChannelUI.js.map +1 -1
  8. package/Channel/components/FileViewer.js +35 -81
  9. package/Channel/components/FileViewer.js.map +1 -1
  10. package/Channel/components/FrozenNotification.js +8 -12
  11. package/Channel/components/FrozenNotification.js.map +1 -1
  12. package/Channel/components/Message.js +63 -317
  13. package/Channel/components/Message.js.map +1 -1
  14. package/Channel/components/MessageFeedbackModal.js +9 -9
  15. package/Channel/components/MessageInput.js +71 -189
  16. package/Channel/components/MessageInput.js.map +1 -1
  17. package/Channel/components/MessageList.js +60 -57
  18. package/Channel/components/MessageList.js.map +1 -1
  19. package/Channel/components/RemoveMessageModal.js +31 -44
  20. package/Channel/components/RemoveMessageModal.js.map +1 -1
  21. package/Channel/components/SuggestedMentionList.js +37 -191
  22. package/Channel/components/SuggestedMentionList.js.map +1 -1
  23. package/Channel/components/TypingIndicator.js +12 -80
  24. package/Channel/components/TypingIndicator.js.map +1 -1
  25. package/Channel/components/UnreadCount.js +11 -29
  26. package/Channel/components/UnreadCount.js.map +1 -1
  27. package/Channel/context.js +1502 -21
  28. package/Channel/context.js.map +1 -1
  29. package/Channel/hooks/useHandleUploadFiles.js +13 -13
  30. package/Channel/hooks/useInitialMessagesFetch.js +6 -8
  31. package/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
  32. package/Channel/utils/compareMessagesForGrouping.js +39 -8
  33. package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
  34. package/Channel/utils/getMessagePartsInfo.js +9 -9
  35. package/Channel.js +78 -74
  36. package/Channel.js.map +1 -1
  37. package/ChannelList/components/AddChannel.js +28 -47
  38. package/ChannelList/components/AddChannel.js.map +1 -1
  39. package/ChannelList/components/ChannelListHeader.js +13 -35
  40. package/ChannelList/components/ChannelListHeader.js.map +1 -1
  41. package/ChannelList/components/ChannelListUI.js +61 -135
  42. package/ChannelList/components/ChannelListUI.js.map +1 -1
  43. package/ChannelList/components/ChannelPreview.js +42 -126
  44. package/ChannelList/components/ChannelPreview.js.map +1 -1
  45. package/ChannelList/components/ChannelPreviewAction.js +18 -65
  46. package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  47. package/ChannelList/context.js +10 -9
  48. package/ChannelList/context.js.map +1 -1
  49. package/ChannelList.js +58 -59
  50. package/ChannelList.js.map +1 -1
  51. package/ChannelSettings/components/ChannelProfile.js +14 -14
  52. package/ChannelSettings/components/ChannelSettingsUI.js +25 -19
  53. package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  54. package/ChannelSettings/components/EditDetailsModal.js +14 -14
  55. package/ChannelSettings/components/LeaveChannel.js +11 -11
  56. package/ChannelSettings/components/ModerationPanel.js +23 -17
  57. package/ChannelSettings/components/ModerationPanel.js.map +1 -1
  58. package/ChannelSettings/components/UserListItem.js +13 -13
  59. package/ChannelSettings/components/UserPanel.js +22 -16
  60. package/ChannelSettings/components/UserPanel.js.map +1 -1
  61. package/ChannelSettings/context.js +3 -3
  62. package/ChannelSettings.js +25 -19
  63. package/ChannelSettings.js.map +1 -1
  64. package/CreateChannel/components/CreateChannelUI.js +16 -16
  65. package/CreateChannel/components/InviteUsers.js +23 -25
  66. package/CreateChannel/components/InviteUsers.js.map +1 -1
  67. package/CreateChannel/components/SelectChannelType.js +10 -10
  68. package/CreateChannel/context.js +4 -4
  69. package/CreateChannel.js +18 -19
  70. package/CreateChannel.js.map +1 -1
  71. package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
  72. package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
  73. package/CreateOpenChannel/context.js +1 -1
  74. package/CreateOpenChannel.js +11 -12
  75. package/CreateOpenChannel.js.map +1 -1
  76. package/EditUserProfile/components/EditUserProfileUI.js +12 -13
  77. package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
  78. package/EditUserProfile.js +12 -13
  79. package/EditUserProfile.js.map +1 -1
  80. package/Message/hooks/useDirtyGetMentions.js +2 -2
  81. package/MessageSearch/components/MessageSearchUI.js +14 -15
  82. package/MessageSearch/components/MessageSearchUI.js.map +1 -1
  83. package/MessageSearch/context.js +14 -3
  84. package/MessageSearch/context.js.map +1 -1
  85. package/MessageSearch.js +14 -15
  86. package/MessageSearch.js.map +1 -1
  87. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  88. package/OpenChannel/components/OpenChannelHeader.js +18 -19
  89. package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
  90. package/OpenChannel/components/OpenChannelInput.js +25 -26
  91. package/OpenChannel/components/OpenChannelInput.js.map +1 -1
  92. package/OpenChannel/components/OpenChannelMessage.js +35 -35
  93. package/OpenChannel/components/OpenChannelMessageList.js +40 -38
  94. package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
  95. package/OpenChannel/components/OpenChannelUI.js +40 -38
  96. package/OpenChannel/components/OpenChannelUI.js.map +1 -1
  97. package/OpenChannel/context.js +17 -18
  98. package/OpenChannel/context.js.map +1 -1
  99. package/OpenChannel.js +40 -38
  100. package/OpenChannel.js.map +1 -1
  101. package/OpenChannelList/components/OpenChannelListUI.js +14 -15
  102. package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
  103. package/OpenChannelList/components/OpenChannelPreview.js +6 -7
  104. package/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
  105. package/OpenChannelList/context.js +3 -3
  106. package/OpenChannelList.js +14 -15
  107. package/OpenChannelList.js.map +1 -1
  108. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  109. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  110. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
  111. package/OpenChannelSettings/components/OperatorUI.js +19 -19
  112. package/OpenChannelSettings/components/ParticipantUI.js +17 -17
  113. package/OpenChannelSettings/context.js +3 -3
  114. package/OpenChannelSettings.js +19 -19
  115. package/SendbirdProvider.js +91 -230
  116. package/SendbirdProvider.js.map +1 -1
  117. package/Thread/components/ParentMessageInfo.js +43 -44
  118. package/Thread/components/ParentMessageInfo.js.map +1 -1
  119. package/Thread/components/ParentMessageInfoItem.js +35 -33
  120. package/Thread/components/ParentMessageInfoItem.js.map +1 -1
  121. package/Thread/components/ThreadHeader.js +7 -7
  122. package/Thread/components/ThreadList.js +48 -48
  123. package/Thread/components/ThreadListItem.js +49 -50
  124. package/Thread/components/ThreadListItem.js.map +1 -1
  125. package/Thread/components/ThreadMessageInput.js +50 -43
  126. package/Thread/components/ThreadMessageInput.js.map +1 -1
  127. package/Thread/components/ThreadUI.js +60 -52
  128. package/Thread/components/ThreadUI.js.map +1 -1
  129. package/Thread/context.js +151 -160
  130. package/Thread/context.js.map +1 -1
  131. package/Thread.js +61 -53
  132. package/Thread.js.map +1 -1
  133. package/VoicePlayer/context.js +3 -3
  134. package/VoicePlayer/useVoicePlayer.js +10 -10
  135. package/VoiceRecorder/context.js +12 -11
  136. package/VoiceRecorder/context.js.map +1 -1
  137. package/VoiceRecorder/useVoiceRecorder.js +9 -9
  138. package/chunks/{bundle-GbC4a59M.js → bundle-0v0L0TbZ.js} +4 -4
  139. package/chunks/bundle-0v0L0TbZ.js.map +1 -0
  140. package/chunks/bundle-143lYf48.js +57 -0
  141. package/chunks/bundle-143lYf48.js.map +1 -0
  142. package/chunks/bundle-1nyUxr-Z.js +34 -0
  143. package/chunks/bundle-1nyUxr-Z.js.map +1 -0
  144. package/chunks/{bundle-X3h4GiLa.js → bundle-2QckWBqt.js} +4 -5
  145. package/chunks/bundle-2QckWBqt.js.map +1 -0
  146. package/chunks/{bundle-LEanaSuB.js → bundle-2d4_n6Eh.js} +3 -3
  147. package/chunks/{bundle-LEanaSuB.js.map → bundle-2d4_n6Eh.js.map} +1 -1
  148. package/chunks/bundle-2jWyEzHg.js +64 -0
  149. package/chunks/bundle-2jWyEzHg.js.map +1 -0
  150. package/chunks/bundle-2mo18Chz.js +34 -0
  151. package/chunks/bundle-2mo18Chz.js.map +1 -0
  152. package/chunks/{bundle-mTQPBbmZ.js → bundle-2vQfu2KQ.js} +6 -6
  153. package/chunks/bundle-2vQfu2KQ.js.map +1 -0
  154. package/chunks/{bundle-PZta2LmS.js → bundle-3cuuQsdK.js} +3 -3
  155. package/chunks/{bundle-PZta2LmS.js.map → bundle-3cuuQsdK.js.map} +1 -1
  156. package/chunks/{bundle-aeQZ5WsP.js → bundle-4IsRvL2E.js} +1 -1
  157. package/chunks/bundle-4IsRvL2E.js.map +1 -0
  158. package/chunks/{bundle-_-2NCsYr.js → bundle-4l6RpXkL.js} +1 -1
  159. package/chunks/bundle-4l6RpXkL.js.map +1 -0
  160. package/chunks/{bundle-JbVZ1Tsw.js → bundle-7MnAkGtU.js} +2 -2
  161. package/chunks/bundle-7MnAkGtU.js.map +1 -0
  162. package/chunks/bundle-7jAH-Rav.js +550 -0
  163. package/chunks/bundle-7jAH-Rav.js.map +1 -0
  164. package/chunks/bundle-82c4Z7tx.js +251 -0
  165. package/chunks/{bundle-NYZlEPQ4.js.map → bundle-82c4Z7tx.js.map} +1 -1
  166. package/chunks/bundle-8CxBlReU.js +61 -0
  167. package/chunks/bundle-8CxBlReU.js.map +1 -0
  168. package/chunks/{bundle-xgiw36M5.js → bundle-9lUB2eTP.js} +1 -1
  169. package/chunks/bundle-9lUB2eTP.js.map +1 -0
  170. package/chunks/bundle-AnoUW9yQ.js +199 -0
  171. package/chunks/{bundle-ETZY-eQc.js.map → bundle-AnoUW9yQ.js.map} +1 -1
  172. package/chunks/{bundle-xsV7pD8p.js → bundle-BbdMr4SL.js} +3 -27
  173. package/chunks/bundle-BbdMr4SL.js.map +1 -0
  174. package/chunks/{bundle-F3QT9IFj.js → bundle-Bph6KjZN.js} +2 -2
  175. package/chunks/{bundle-GKopZh-T.js.map → bundle-Bph6KjZN.js.map} +1 -1
  176. package/chunks/{bundle-uk2Y0AQu.js → bundle-GQt7EDbt.js} +15 -7
  177. package/chunks/{bundle-uk2Y0AQu.js.map → bundle-GQt7EDbt.js.map} +1 -1
  178. package/chunks/bundle-GpRTDFGV.js +11 -0
  179. package/chunks/bundle-GpRTDFGV.js.map +1 -0
  180. package/chunks/{bundle-E33Oa46E.js → bundle-HOZJLjST.js} +10 -10
  181. package/chunks/{bundle-E33Oa46E.js.map → bundle-HOZJLjST.js.map} +1 -1
  182. package/chunks/bundle-HRsLD2CW.js +29 -0
  183. package/chunks/{bundle-zpSxKsxM.js.map → bundle-HRsLD2CW.js.map} +1 -1
  184. package/chunks/bundle-IbFVsltH.js +30 -0
  185. package/chunks/bundle-IbFVsltH.js.map +1 -0
  186. package/chunks/{bundle-KSjFhl4l.js → bundle-JHAEGHwc.js} +1 -1
  187. package/chunks/bundle-JHAEGHwc.js.map +1 -0
  188. package/chunks/{bundle-iWI3kIle.js → bundle-Jm7rtWnz.js} +12 -41
  189. package/chunks/{bundle-iWI3kIle.js.map → bundle-Jm7rtWnz.js.map} +1 -1
  190. package/chunks/{bundle-VPanFdbf.js → bundle-K0s-Ect1.js} +6 -6
  191. package/chunks/bundle-K0s-Ect1.js.map +1 -0
  192. package/chunks/{bundle-Lt8mReNU.js → bundle-KWJtSpuF.js} +3 -3
  193. package/chunks/bundle-KWJtSpuF.js.map +1 -0
  194. package/chunks/{bundle-Fkv6nKcy.js → bundle-MGkFgiJm.js} +5 -47
  195. package/chunks/bundle-MGkFgiJm.js.map +1 -0
  196. package/chunks/bundle-MvpO_S_k.js +12 -0
  197. package/chunks/bundle-MvpO_S_k.js.map +1 -0
  198. package/chunks/{bundle-cXqs96Pt.js → bundle-NQlEMhhs.js} +1 -1
  199. package/chunks/bundle-NQlEMhhs.js.map +1 -0
  200. package/chunks/bundle-NeB2uoNn.js +34 -0
  201. package/chunks/bundle-NeB2uoNn.js.map +1 -0
  202. package/chunks/bundle-NxSCk3As.js +23 -0
  203. package/chunks/bundle-NxSCk3As.js.map +1 -0
  204. package/chunks/bundle-QOv6Bgtw.js +179 -0
  205. package/{cjs/chunks/bundle-XaLiuh0L.js.map → chunks/bundle-QOv6Bgtw.js.map} +1 -1
  206. package/chunks/{bundle-VCZsMdpB.js → bundle-QaBTXAtO.js} +2 -2
  207. package/chunks/{bundle-VCZsMdpB.js.map → bundle-QaBTXAtO.js.map} +1 -1
  208. package/chunks/{bundle-Kv4GXRTs.js → bundle-Rq3p335Q.js} +1 -1
  209. package/chunks/bundle-Rq3p335Q.js.map +1 -0
  210. package/chunks/{bundle-KmauOTrg.js → bundle-SbHFlBY0.js} +1 -1
  211. package/chunks/bundle-SbHFlBY0.js.map +1 -0
  212. package/chunks/{bundle-yur9nm4N.js → bundle-T9LQyh_7.js} +1 -1
  213. package/chunks/bundle-T9LQyh_7.js.map +1 -0
  214. package/chunks/bundle-W8as0zrL.js +197 -0
  215. package/chunks/bundle-W8as0zrL.js.map +1 -0
  216. package/chunks/{bundle-zpSxKsxM.js → bundle-WK57RaQR.js} +2 -2
  217. package/chunks/bundle-WK57RaQR.js.map +1 -0
  218. package/chunks/{bundle-iYCB6XN2.js → bundle-WdOdwp-Y.js} +1 -1
  219. package/chunks/bundle-WdOdwp-Y.js.map +1 -0
  220. package/chunks/{bundle-f9mkey82.js → bundle-ZcOjo_4l.js} +2 -4
  221. package/chunks/bundle-ZcOjo_4l.js.map +1 -0
  222. package/chunks/bundle-aaseqnuB.js +44 -0
  223. package/chunks/bundle-aaseqnuB.js.map +1 -0
  224. package/chunks/{bundle-ipC2A4Tb.js → bundle-areDE3aT.js} +151 -29
  225. package/{cjs/chunks/bundle-Jcrboe06.js.map → chunks/bundle-areDE3aT.js.map} +1 -1
  226. package/chunks/bundle-b1IOVyYG.js +389 -0
  227. package/chunks/bundle-b1IOVyYG.js.map +1 -0
  228. package/chunks/{bundle-TV4-nyqN.js → bundle-b6xyPdyj.js} +1 -1
  229. package/chunks/{bundle-TV4-nyqN.js.map → bundle-b6xyPdyj.js.map} +1 -1
  230. package/chunks/{bundle-DeRyZP32.js → bundle-bTljiK8B.js} +10 -10
  231. package/chunks/{bundle-DeRyZP32.js.map → bundle-bTljiK8B.js.map} +1 -1
  232. package/chunks/bundle-byix4-_Z.js +30 -0
  233. package/chunks/bundle-byix4-_Z.js.map +1 -0
  234. package/chunks/{bundle-Gkl7Q1IK.js → bundle-dVzhcuE8.js} +29 -13
  235. package/chunks/bundle-dVzhcuE8.js.map +1 -0
  236. package/chunks/{bundle-J_erGfOo.js → bundle-eHUDbnaD.js} +42 -30
  237. package/chunks/bundle-eHUDbnaD.js.map +1 -0
  238. package/chunks/{bundle-wUwB6Q8m.js → bundle-f6-Dp_Ka.js} +3 -3
  239. package/chunks/{bundle-wUwB6Q8m.js.map → bundle-f6-Dp_Ka.js.map} +1 -1
  240. package/chunks/{bundle-GKopZh-T.js → bundle-fgwje9pW.js} +14 -2
  241. package/chunks/{bundle-ldRkCosA.js.map → bundle-fgwje9pW.js.map} +1 -1
  242. package/chunks/{bundle-HkbweK1K.js → bundle-fsBmcKjs.js} +1 -1
  243. package/chunks/bundle-fsBmcKjs.js.map +1 -0
  244. package/chunks/{bundle-y_LgB6DS.js → bundle-hOV701rb.js} +3 -3
  245. package/chunks/bundle-hOV701rb.js.map +1 -0
  246. package/chunks/{bundle-OZZH5fXZ.js → bundle-j8bOxoFa.js} +1 -1
  247. package/chunks/bundle-j8bOxoFa.js.map +1 -0
  248. package/chunks/{bundle-W8t7rR3H.js → bundle-jXtqc1kU.js} +3 -3
  249. package/chunks/bundle-jXtqc1kU.js.map +1 -0
  250. package/chunks/{bundle-lmXvuxOb.js → bundle-kTQOM0SQ.js} +1 -1
  251. package/chunks/bundle-kTQOM0SQ.js.map +1 -0
  252. package/chunks/{bundle-dWJnfDPH.js → bundle-kVopRZZG.js} +3 -3
  253. package/chunks/bundle-kVopRZZG.js.map +1 -0
  254. package/chunks/bundle-l3_ubbH6.js +88 -0
  255. package/chunks/bundle-l3_ubbH6.js.map +1 -0
  256. package/chunks/{bundle-ldRkCosA.js → bundle-lxPqhWGY.js} +4 -4
  257. package/chunks/{bundle-Fkv6nKcy.js.map → bundle-lxPqhWGY.js.map} +1 -1
  258. package/chunks/{bundle-kfNTRju0.js → bundle-n9wVwJwL.js} +1 -1
  259. package/chunks/{bundle-kfNTRju0.js.map → bundle-n9wVwJwL.js.map} +1 -1
  260. package/chunks/{bundle-pWIkt9Ng.js → bundle-nA9SX_Hi.js} +1 -1
  261. package/chunks/bundle-nA9SX_Hi.js.map +1 -0
  262. package/chunks/bundle-o1VHRKp9.js +148 -0
  263. package/chunks/bundle-o1VHRKp9.js.map +1 -0
  264. package/chunks/{bundle-YmIrZYPF.js → bundle-oRyfuopS.js} +1 -1
  265. package/chunks/{bundle-YmIrZYPF.js.map → bundle-oRyfuopS.js.map} +1 -1
  266. package/chunks/bundle-oszCig8K.js +27 -0
  267. package/chunks/bundle-oszCig8K.js.map +1 -0
  268. package/chunks/{bundle-ku6CEjGk.js → bundle-pfcIdF14.js} +1 -1
  269. package/chunks/bundle-pfcIdF14.js.map +1 -0
  270. package/chunks/bundle-qGLQQXlH.js +281 -0
  271. package/chunks/{bundle-MzSKVbUQ.js.map → bundle-qGLQQXlH.js.map} +1 -1
  272. package/chunks/{bundle-cHbX4Rxo.js → bundle-qLmDwx8F.js} +5 -40
  273. package/{cjs/chunks/bundle-JVe1J2FX.js.map → chunks/bundle-qLmDwx8F.js.map} +1 -1
  274. package/chunks/{bundle-ETZY-eQc.js → bundle-qXA8wWBC.js} +5 -5
  275. package/chunks/bundle-qXA8wWBC.js.map +1 -0
  276. package/chunks/{bundle-Jp5g4YZl.js → bundle-qvDlYEM_.js} +1 -1
  277. package/chunks/bundle-qvDlYEM_.js.map +1 -0
  278. package/chunks/{bundle-MzSKVbUQ.js → bundle-rCo3Zf4a.js} +96 -59
  279. package/chunks/bundle-rCo3Zf4a.js.map +1 -0
  280. package/chunks/{bundle-MyYphU00.js → bundle-rgUMi-vG.js} +8 -8
  281. package/chunks/bundle-rgUMi-vG.js.map +1 -0
  282. package/chunks/{bundle-niN5G0Bo.js → bundle-s-yWiXW2.js} +2 -2
  283. package/chunks/bundle-s-yWiXW2.js.map +1 -0
  284. package/chunks/{bundle-WpHDilD_.js → bundle-tOpyp2TM.js} +2 -3
  285. package/chunks/bundle-tOpyp2TM.js.map +1 -0
  286. package/chunks/{bundle-aVVX2zHR.js → bundle-thvveea5.js} +3 -3
  287. package/chunks/bundle-thvveea5.js.map +1 -0
  288. package/chunks/{bundle-1WAo3loP.js → bundle-ueo2Sf-L.js} +1 -1
  289. package/chunks/bundle-ueo2Sf-L.js.map +1 -0
  290. package/chunks/bundle-vBXnDJn4.js +120 -0
  291. package/chunks/bundle-vBXnDJn4.js.map +1 -0
  292. package/chunks/{bundle-ZcE3JzW_.js → bundle-wBOLbuH7.js} +9 -8
  293. package/chunks/bundle-wBOLbuH7.js.map +1 -0
  294. package/chunks/{bundle-NYZlEPQ4.js → bundle-wsahaI_Z.js} +11 -29
  295. package/{cjs/chunks/bundle-3K153hLM.js.map → chunks/bundle-wsahaI_Z.js.map} +1 -1
  296. package/chunks/{bundle-tca5p7Pl.js → bundle-x1NoGtpJ.js} +2 -2
  297. package/chunks/bundle-x1NoGtpJ.js.map +1 -0
  298. package/chunks/bundle-xkOWTTW1.js +13 -0
  299. package/chunks/bundle-xkOWTTW1.js.map +1 -0
  300. package/chunks/{bundle-WDOQg3ty.js → bundle-yE5T9BpV.js} +39 -39
  301. package/chunks/{bundle-WDOQg3ty.js.map → bundle-yE5T9BpV.js.map} +1 -1
  302. package/chunks/{bundle-d6R6m9-9.js → bundle-zJNJlM2H.js} +14 -8
  303. package/{cjs/chunks/bundle-s82XYT1Q.js.map → chunks/bundle-zJNJlM2H.js.map} +1 -1
  304. package/chunks/{bundle-H2Il__gY.js → bundle-zLlQw-jW.js} +1 -1
  305. package/chunks/bundle-zLlQw-jW.js.map +1 -0
  306. package/chunks/{bundle-ZKM9Qk_j.js → bundle-zpdae5WH.js} +2 -2
  307. package/chunks/bundle-zpdae5WH.js.map +1 -0
  308. package/chunks/bundle-zuRObww2.js +48 -0
  309. package/chunks/bundle-zuRObww2.js.map +1 -0
  310. package/cjs/App.js +368 -189
  311. package/cjs/App.js.map +1 -1
  312. package/cjs/Channel/components/ChannelHeader.js +40 -59
  313. package/cjs/Channel/components/ChannelHeader.js.map +1 -1
  314. package/cjs/Channel/components/ChannelUI.js +80 -109
  315. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  316. package/cjs/Channel/components/FileViewer.js +38 -80
  317. package/cjs/Channel/components/FileViewer.js.map +1 -1
  318. package/cjs/Channel/components/FrozenNotification.js +9 -13
  319. package/cjs/Channel/components/FrozenNotification.js.map +1 -1
  320. package/cjs/Channel/components/Message.js +64 -314
  321. package/cjs/Channel/components/Message.js.map +1 -1
  322. package/cjs/Channel/components/MessageFeedbackModal.js +9 -9
  323. package/cjs/Channel/components/MessageInput.js +71 -189
  324. package/cjs/Channel/components/MessageInput.js.map +1 -1
  325. package/cjs/Channel/components/MessageList.js +64 -58
  326. package/cjs/Channel/components/MessageList.js.map +1 -1
  327. package/cjs/Channel/components/RemoveMessageModal.js +33 -42
  328. package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
  329. package/cjs/Channel/components/SuggestedMentionList.js +39 -190
  330. package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
  331. package/cjs/Channel/components/TypingIndicator.js +12 -83
  332. package/cjs/Channel/components/TypingIndicator.js.map +1 -1
  333. package/cjs/Channel/components/UnreadCount.js +12 -30
  334. package/cjs/Channel/components/UnreadCount.js.map +1 -1
  335. package/cjs/Channel/context.js +1500 -23
  336. package/cjs/Channel/context.js.map +1 -1
  337. package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
  338. package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -8
  339. package/cjs/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
  340. package/cjs/Channel/utils/compareMessagesForGrouping.js +45 -9
  341. package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
  342. package/cjs/Channel/utils/getMessagePartsInfo.js +9 -9
  343. package/cjs/Channel.js +78 -74
  344. package/cjs/Channel.js.map +1 -1
  345. package/cjs/ChannelList/components/AddChannel.js +31 -46
  346. package/cjs/ChannelList/components/AddChannel.js.map +1 -1
  347. package/cjs/ChannelList/components/ChannelListHeader.js +13 -35
  348. package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
  349. package/cjs/ChannelList/components/ChannelListUI.js +63 -133
  350. package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
  351. package/cjs/ChannelList/components/ChannelPreview.js +44 -124
  352. package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
  353. package/cjs/ChannelList/components/ChannelPreviewAction.js +19 -62
  354. package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  355. package/cjs/ChannelList/context.js +10 -9
  356. package/cjs/ChannelList/context.js.map +1 -1
  357. package/cjs/ChannelList.js +58 -59
  358. package/cjs/ChannelList.js.map +1 -1
  359. package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
  360. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +25 -19
  361. package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  362. package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
  363. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  364. package/cjs/ChannelSettings/components/ModerationPanel.js +23 -17
  365. package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
  366. package/cjs/ChannelSettings/components/UserListItem.js +13 -13
  367. package/cjs/ChannelSettings/components/UserPanel.js +22 -16
  368. package/cjs/ChannelSettings/components/UserPanel.js.map +1 -1
  369. package/cjs/ChannelSettings/context.js +3 -3
  370. package/cjs/ChannelSettings.js +25 -19
  371. package/cjs/ChannelSettings.js.map +1 -1
  372. package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
  373. package/cjs/CreateChannel/components/InviteUsers.js +23 -25
  374. package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
  375. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  376. package/cjs/CreateChannel/context.js +4 -4
  377. package/cjs/CreateChannel.js +18 -19
  378. package/cjs/CreateChannel.js.map +1 -1
  379. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -12
  380. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
  381. package/cjs/CreateOpenChannel/context.js +1 -1
  382. package/cjs/CreateOpenChannel.js +11 -12
  383. package/cjs/CreateOpenChannel.js.map +1 -1
  384. package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -13
  385. package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
  386. package/cjs/EditUserProfile.js +12 -13
  387. package/cjs/EditUserProfile.js.map +1 -1
  388. package/cjs/Message/hooks/useDirtyGetMentions.js +2 -2
  389. package/cjs/MessageSearch/components/MessageSearchUI.js +14 -15
  390. package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
  391. package/cjs/MessageSearch/context.js +14 -3
  392. package/cjs/MessageSearch/context.js.map +1 -1
  393. package/cjs/MessageSearch.js +14 -15
  394. package/cjs/MessageSearch.js.map +1 -1
  395. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  396. package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -19
  397. package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
  398. package/cjs/OpenChannel/components/OpenChannelInput.js +25 -26
  399. package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
  400. package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
  401. package/cjs/OpenChannel/components/OpenChannelMessageList.js +41 -39
  402. package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
  403. package/cjs/OpenChannel/components/OpenChannelUI.js +40 -38
  404. package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
  405. package/cjs/OpenChannel/context.js +17 -18
  406. package/cjs/OpenChannel/context.js.map +1 -1
  407. package/cjs/OpenChannel.js +40 -38
  408. package/cjs/OpenChannel.js.map +1 -1
  409. package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -15
  410. package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
  411. package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -7
  412. package/cjs/OpenChannelList/components/OpenChannelPreview.js.map +1 -1
  413. package/cjs/OpenChannelList/context.js +3 -3
  414. package/cjs/OpenChannelList.js +14 -15
  415. package/cjs/OpenChannelList.js.map +1 -1
  416. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  417. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  418. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
  419. package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -19
  420. package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
  421. package/cjs/OpenChannelSettings/context.js +3 -3
  422. package/cjs/OpenChannelSettings.js +19 -19
  423. package/cjs/SendbirdProvider.js +95 -234
  424. package/cjs/SendbirdProvider.js.map +1 -1
  425. package/cjs/Thread/components/ParentMessageInfo.js +45 -46
  426. package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
  427. package/cjs/Thread/components/ParentMessageInfoItem.js +38 -36
  428. package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
  429. package/cjs/Thread/components/ThreadHeader.js +7 -7
  430. package/cjs/Thread/components/ThreadList.js +50 -50
  431. package/cjs/Thread/components/ThreadListItem.js +54 -55
  432. package/cjs/Thread/components/ThreadListItem.js.map +1 -1
  433. package/cjs/Thread/components/ThreadMessageInput.js +52 -45
  434. package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
  435. package/cjs/Thread/components/ThreadUI.js +60 -52
  436. package/cjs/Thread/components/ThreadUI.js.map +1 -1
  437. package/cjs/Thread/context.js +151 -160
  438. package/cjs/Thread/context.js.map +1 -1
  439. package/cjs/Thread.js +61 -53
  440. package/cjs/Thread.js.map +1 -1
  441. package/cjs/VoicePlayer/context.js +3 -3
  442. package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
  443. package/cjs/VoiceRecorder/context.js +12 -11
  444. package/cjs/VoiceRecorder/context.js.map +1 -1
  445. package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
  446. package/cjs/chunks/{bundle-65IwoStx.js → bundle--RWWGoZo.js} +1 -1
  447. package/cjs/chunks/{bundle-65IwoStx.js.map → bundle--RWWGoZo.js.map} +1 -1
  448. package/cjs/chunks/{bundle-UaSM_xZY.js → bundle-1n4GnjYf.js} +1 -1
  449. package/cjs/chunks/bundle-1n4GnjYf.js.map +1 -0
  450. package/cjs/chunks/{bundle-TxdziCwH.js → bundle-28M_gXGl.js} +4 -4
  451. package/cjs/chunks/bundle-28M_gXGl.js.map +1 -0
  452. package/cjs/chunks/{bundle-WzrocC57.js → bundle-2ToiwW-_.js} +1 -1
  453. package/cjs/chunks/bundle-2ToiwW-_.js.map +1 -0
  454. package/cjs/chunks/{bundle-68NdNRjR.js → bundle-3GWdY_5G.js} +10 -10
  455. package/cjs/chunks/bundle-3GWdY_5G.js.map +1 -0
  456. package/cjs/chunks/{bundle-7AS0Rcch.js → bundle-3S8jBmCV.js} +1 -1
  457. package/cjs/chunks/bundle-3S8jBmCV.js.map +1 -0
  458. package/cjs/chunks/{bundle-s82XYT1Q.js → bundle-3VBtozeG.js} +14 -8
  459. package/{chunks/bundle-J_erGfOo.js.map → cjs/chunks/bundle-3VBtozeG.js.map} +1 -1
  460. package/cjs/chunks/{bundle-BH9aeaqG.js → bundle-4OXJViEd.js} +2 -2
  461. package/cjs/chunks/bundle-4OXJViEd.js.map +1 -0
  462. package/cjs/chunks/{bundle-dny_TiUT.js → bundle-4RwXAyc6.js} +2 -2
  463. package/cjs/chunks/bundle-4RwXAyc6.js.map +1 -0
  464. package/cjs/chunks/bundle-4hsD0CCh.js +25 -0
  465. package/cjs/chunks/bundle-4hsD0CCh.js.map +1 -0
  466. package/cjs/chunks/bundle-5cpSg7Yt.js +30 -0
  467. package/cjs/chunks/bundle-5cpSg7Yt.js.map +1 -0
  468. package/cjs/chunks/{bundle-VB_a0u7i.js → bundle-60IjeSgc.js} +1 -1
  469. package/cjs/chunks/bundle-60IjeSgc.js.map +1 -0
  470. package/cjs/chunks/{bundle-OVfymd1y.js → bundle-7IKA03Ad.js} +1 -1
  471. package/cjs/chunks/bundle-7IKA03Ad.js.map +1 -0
  472. package/cjs/chunks/{bundle-6ZegaDWX.js → bundle-7sO7MuTY.js} +39 -39
  473. package/cjs/chunks/{bundle-6ZegaDWX.js.map → bundle-7sO7MuTY.js.map} +1 -1
  474. package/cjs/chunks/{bundle-5Nd6zn0d.js → bundle-7zgRAH2f.js} +3 -3
  475. package/cjs/chunks/bundle-7zgRAH2f.js.map +1 -0
  476. package/cjs/chunks/bundle-85DGianx.js +553 -0
  477. package/cjs/chunks/bundle-85DGianx.js.map +1 -0
  478. package/cjs/chunks/{bundle-ptZslG_m.js → bundle-8XyvQRnm.js} +7 -7
  479. package/cjs/chunks/bundle-8XyvQRnm.js.map +1 -0
  480. package/cjs/chunks/{bundle-Jcrboe06.js → bundle-9ZxGYXTj.js} +150 -28
  481. package/{chunks/bundle-ipC2A4Tb.js.map → cjs/chunks/bundle-9ZxGYXTj.js.map} +1 -1
  482. package/cjs/chunks/bundle-9fFxVdSK.js +51 -0
  483. package/cjs/chunks/bundle-9fFxVdSK.js.map +1 -0
  484. package/cjs/chunks/{bundle-r8Z3GYqh.js → bundle-BRRuC2D3.js} +9 -8
  485. package/cjs/chunks/bundle-BRRuC2D3.js.map +1 -0
  486. package/cjs/chunks/bundle-Bx0FCMKL.js +153 -0
  487. package/cjs/chunks/bundle-Bx0FCMKL.js.map +1 -0
  488. package/cjs/chunks/bundle-C42WLw1z.js +40 -0
  489. package/cjs/chunks/bundle-C42WLw1z.js.map +1 -0
  490. package/cjs/chunks/bundle-GRS8tlu-.js +15 -0
  491. package/cjs/chunks/bundle-GRS8tlu-.js.map +1 -0
  492. package/cjs/chunks/{bundle-B5gH_etT.js → bundle-HbkwcKgM.js} +10 -10
  493. package/cjs/chunks/bundle-HbkwcKgM.js.map +1 -0
  494. package/cjs/chunks/{bundle-9iE0HY96.js → bundle-JReI_QbA.js} +29 -13
  495. package/cjs/chunks/bundle-JReI_QbA.js.map +1 -0
  496. package/cjs/chunks/{bundle-aoIToceJ.js → bundle-JVylXDBB.js} +3 -3
  497. package/cjs/chunks/bundle-JVylXDBB.js.map +1 -0
  498. package/cjs/chunks/{bundle-7J3nX_hP.js → bundle-JaD2Ao-u.js} +3 -3
  499. package/cjs/chunks/bundle-JaD2Ao-u.js.map +1 -0
  500. package/cjs/chunks/bundle-JwSYMgZa.js +284 -0
  501. package/cjs/chunks/bundle-JwSYMgZa.js.map +1 -0
  502. package/cjs/chunks/{bundle-135pRm7i.js → bundle-K8ngPNTR.js} +1 -1
  503. package/cjs/chunks/bundle-K8ngPNTR.js.map +1 -0
  504. package/cjs/chunks/{bundle-2gCdAlxv.js → bundle-KUtVpakA.js} +2 -2
  505. package/cjs/chunks/{bundle-2gCdAlxv.js.map → bundle-KUtVpakA.js.map} +1 -1
  506. package/cjs/chunks/{bundle-zgoic8x9.js → bundle-L5q_NWiq.js} +1 -1
  507. package/cjs/chunks/bundle-L5q_NWiq.js.map +1 -0
  508. package/cjs/chunks/{bundle-GsUulypb.js → bundle-L9oXX97B.js} +1 -1
  509. package/cjs/chunks/bundle-L9oXX97B.js.map +1 -0
  510. package/cjs/chunks/bundle-LmzJA_0-.js +47 -0
  511. package/cjs/chunks/bundle-LmzJA_0-.js.map +1 -0
  512. package/cjs/chunks/bundle-Mq0jUvZk.js +32 -0
  513. package/cjs/chunks/bundle-Mq0jUvZk.js.map +1 -0
  514. package/cjs/chunks/{bundle-kSScygqj.js → bundle-OBj337Le.js} +1 -1
  515. package/cjs/chunks/bundle-OBj337Le.js.map +1 -0
  516. package/cjs/chunks/{bundle-7J-qpEzM.js → bundle-Og0K_sLb.js} +1 -1
  517. package/cjs/chunks/bundle-Og0K_sLb.js.map +1 -0
  518. package/cjs/chunks/{bundle-tad4_cNF.js → bundle-Oti8UWhr.js} +5 -48
  519. package/cjs/chunks/bundle-Oti8UWhr.js.map +1 -0
  520. package/cjs/chunks/{bundle-y8EiLlDT.js → bundle-QCo3MNRk.js} +2 -2
  521. package/cjs/chunks/bundle-QCo3MNRk.js.map +1 -0
  522. package/cjs/chunks/{bundle-mnbFX6XC.js → bundle-R3zWrV0l.js} +11 -41
  523. package/cjs/chunks/{bundle-mnbFX6XC.js.map → bundle-R3zWrV0l.js.map} +1 -1
  524. package/cjs/chunks/{bundle-hEYmMlZe.js → bundle-RC4m8KcZ.js} +5 -5
  525. package/{chunks/bundle-cHbX4Rxo.js.map → cjs/chunks/bundle-RC4m8KcZ.js.map} +1 -1
  526. package/cjs/chunks/{bundle-J_ooPKgS.js → bundle-RPY1irFl.js} +3 -3
  527. package/cjs/chunks/{bundle-J_ooPKgS.js.map → bundle-RPY1irFl.js.map} +1 -1
  528. package/cjs/chunks/{bundle-bXLZZTmP.js → bundle-RVs527mS.js} +14 -1
  529. package/cjs/chunks/bundle-RVs527mS.js.map +1 -0
  530. package/cjs/chunks/{bundle-JbxviE94.js → bundle-SggLEV_z.js} +1 -1
  531. package/cjs/chunks/bundle-SggLEV_z.js.map +1 -0
  532. package/cjs/chunks/{bundle-7QMU-JU1.js → bundle-UjIQqVUq.js} +2 -2
  533. package/cjs/chunks/bundle-UjIQqVUq.js.map +1 -0
  534. package/cjs/chunks/bundle-W1vXanLo.js +392 -0
  535. package/cjs/chunks/bundle-W1vXanLo.js.map +1 -0
  536. package/cjs/chunks/{bundle-qtXdbPNE.js → bundle-WLD9KKbn.js} +3 -3
  537. package/cjs/chunks/bundle-WLD9KKbn.js.map +1 -0
  538. package/cjs/chunks/bundle-WuJcM_O3.js +183 -0
  539. package/{chunks/bundle-ucXG1Py7.js.map → cjs/chunks/bundle-WuJcM_O3.js.map} +1 -1
  540. package/cjs/chunks/{bundle-GDX6wyym.js → bundle-XNa54U87.js} +95 -58
  541. package/cjs/chunks/bundle-XNa54U87.js.map +1 -0
  542. package/cjs/chunks/bundle-YyXY-feT.js +32 -0
  543. package/cjs/chunks/bundle-YyXY-feT.js.map +1 -0
  544. package/cjs/chunks/{bundle-Dz3ncvS3.js → bundle-Z-IXQ2N3.js} +4 -4
  545. package/{chunks/bundle-F3QT9IFj.js.map → cjs/chunks/bundle-Z-IXQ2N3.js.map} +1 -1
  546. package/cjs/chunks/{bundle-CUa6Hz7c.js → bundle-Z2aMvN9Y.js} +6 -6
  547. package/cjs/chunks/bundle-Z2aMvN9Y.js.map +1 -0
  548. package/cjs/chunks/{bundle-RSklGv-u.js → bundle-ZL4COF6I.js} +1 -1
  549. package/cjs/chunks/{bundle-RSklGv-u.js.map → bundle-ZL4COF6I.js.map} +1 -1
  550. package/cjs/chunks/{bundle-Dax6YIIr.js → bundle-ZqkDqz4X.js} +1 -1
  551. package/cjs/chunks/bundle-ZqkDqz4X.js.map +1 -0
  552. package/cjs/chunks/{bundle-n6iwTZAo.js → bundle-_QsPNZ6J.js} +1 -1
  553. package/cjs/chunks/bundle-_QsPNZ6J.js.map +1 -0
  554. package/cjs/chunks/bundle-_TBSquwd.js +60 -0
  555. package/cjs/chunks/bundle-_TBSquwd.js.map +1 -0
  556. package/cjs/chunks/{bundle-rgxTgHrK.js → bundle-_apVcG-_.js} +42 -30
  557. package/cjs/chunks/bundle-_apVcG-_.js.map +1 -0
  558. package/cjs/chunks/{bundle-XaLiuh0L.js → bundle-a1nOrOrG.js} +2 -28
  559. package/{chunks/bundle-Gkl7Q1IK.js.map → cjs/chunks/bundle-a1nOrOrG.js.map} +1 -1
  560. package/cjs/chunks/{bundle-v02q7K8T.js → bundle-aAOHT0Qv.js} +3 -3
  561. package/cjs/chunks/bundle-aAOHT0Qv.js.map +1 -0
  562. package/cjs/chunks/{bundle-hXzxY0NJ.js → bundle-dLwo2XPj.js} +1 -1
  563. package/cjs/chunks/bundle-dLwo2XPj.js.map +1 -0
  564. package/cjs/chunks/{bundle--MJd6Gw1.js → bundle-duGLRUrw.js} +1 -1
  565. package/cjs/chunks/bundle-duGLRUrw.js.map +1 -0
  566. package/cjs/chunks/{bundle-p6kWiWDv.js → bundle-fnv2bNo-.js} +14 -7
  567. package/cjs/chunks/{bundle-p6kWiWDv.js.map → bundle-fnv2bNo-.js.map} +1 -1
  568. package/cjs/chunks/bundle-fvz26Ije.js +31 -0
  569. package/cjs/chunks/bundle-fvz26Ije.js.map +1 -0
  570. package/cjs/chunks/bundle-g2rKMwnQ.js +123 -0
  571. package/cjs/chunks/bundle-g2rKMwnQ.js.map +1 -0
  572. package/cjs/chunks/bundle-guyZxs5x.js +91 -0
  573. package/cjs/chunks/bundle-guyZxs5x.js.map +1 -0
  574. package/cjs/chunks/{bundle-3K153hLM.js → bundle-iRjY_BU4.js} +4 -40
  575. package/cjs/chunks/bundle-iRjY_BU4.js.map +1 -0
  576. package/cjs/chunks/{bundle-VogwjxgI.js → bundle-iamCM7iG.js} +3 -3
  577. package/cjs/chunks/{bundle-VogwjxgI.js.map → bundle-iamCM7iG.js.map} +1 -1
  578. package/cjs/chunks/{bundle-vphYV1gz.js → bundle-lXjDRYAu.js} +1 -1
  579. package/cjs/chunks/bundle-lXjDRYAu.js.map +1 -0
  580. package/cjs/chunks/{bundle-AbGazomk.js → bundle-le086Dbq.js} +17 -35
  581. package/cjs/chunks/bundle-le086Dbq.js.map +1 -0
  582. package/cjs/chunks/{bundle-Oc2T5_VP.js → bundle-lnLwvZ7H.js} +6 -6
  583. package/cjs/chunks/bundle-lnLwvZ7H.js.map +1 -0
  584. package/cjs/chunks/{bundle-LRCFL23q.js → bundle-nQDclaWr.js} +1 -3
  585. package/cjs/chunks/bundle-nQDclaWr.js.map +1 -0
  586. package/cjs/chunks/bundle-nTv23k8q.js +64 -0
  587. package/cjs/chunks/bundle-nTv23k8q.js.map +1 -0
  588. package/cjs/chunks/bundle-oTDe-k6e.js +255 -0
  589. package/cjs/chunks/bundle-oTDe-k6e.js.map +1 -0
  590. package/cjs/chunks/bundle-p7twnCCD.js +37 -0
  591. package/cjs/chunks/bundle-p7twnCCD.js.map +1 -0
  592. package/cjs/chunks/bundle-plE_NeWt.js +204 -0
  593. package/cjs/chunks/bundle-plE_NeWt.js.map +1 -0
  594. package/cjs/chunks/{bundle-JOBLCwk9.js → bundle-rPjvPmtP.js} +1 -1
  595. package/cjs/chunks/bundle-rPjvPmtP.js.map +1 -0
  596. package/cjs/chunks/{bundle-7VJjqIPJ.js → bundle-rUpy0DGt.js} +4 -5
  597. package/cjs/chunks/bundle-rUpy0DGt.js.map +1 -0
  598. package/cjs/chunks/{bundle-TFo3Eb8z.js → bundle-rmOQxjwa.js} +3 -3
  599. package/cjs/chunks/bundle-rmOQxjwa.js.map +1 -0
  600. package/cjs/chunks/{bundle-INJtS58R.js → bundle-sW6CpN9W.js} +1 -1
  601. package/cjs/chunks/bundle-sW6CpN9W.js.map +1 -0
  602. package/cjs/chunks/bundle-v2kRYowu.js +14 -0
  603. package/cjs/chunks/bundle-v2kRYowu.js.map +1 -0
  604. package/cjs/chunks/bundle-vFjv8pGX.js +202 -0
  605. package/cjs/chunks/bundle-vFjv8pGX.js.map +1 -0
  606. package/cjs/chunks/bundle-w4VdLYPs.js +13 -0
  607. package/cjs/chunks/bundle-w4VdLYPs.js.map +1 -0
  608. package/cjs/chunks/bundle-wQUBcS0L.js +36 -0
  609. package/cjs/chunks/bundle-wQUBcS0L.js.map +1 -0
  610. package/cjs/chunks/{bundle--d5w7FVF.js → bundle-wU4qxzey.js} +1 -1
  611. package/cjs/chunks/bundle-wU4qxzey.js.map +1 -0
  612. package/cjs/chunks/{bundle-zrsbDQGp.js → bundle-yf5herNq.js} +1 -5
  613. package/cjs/chunks/bundle-yf5herNq.js.map +1 -0
  614. package/cjs/chunks/{bundle-1dUHK2qC.js → bundle-z2YN8uJe.js} +1 -1
  615. package/cjs/chunks/bundle-z2YN8uJe.js.map +1 -0
  616. package/cjs/chunks/bundle-ziLsN5lV.js +67 -0
  617. package/cjs/chunks/bundle-ziLsN5lV.js.map +1 -0
  618. package/cjs/hooks/useModal.js +9 -9
  619. package/cjs/index.js +136 -126
  620. package/cjs/index.js.map +1 -1
  621. package/cjs/pubSub/topics.js +1 -1
  622. package/cjs/sendbirdSelectors.js +2 -2
  623. package/cjs/ui/Accordion.js +3 -3
  624. package/cjs/ui/AccordionGroup.js +2 -2
  625. package/cjs/ui/AdminMessage.js +3 -3
  626. package/cjs/ui/Avatar.js +4 -5
  627. package/cjs/ui/Avatar.js.map +1 -1
  628. package/cjs/ui/Badge.js +5 -5
  629. package/cjs/ui/BottomSheet.js +9 -9
  630. package/cjs/ui/Button.js +3 -3
  631. package/cjs/ui/ChannelAvatar.js +6 -7
  632. package/cjs/ui/ChannelAvatar.js.map +1 -1
  633. package/cjs/ui/ConnectionStatus.js +6 -6
  634. package/cjs/ui/ContextMenu.js +6 -6
  635. package/cjs/ui/DateSeparator.js +4 -4
  636. package/cjs/ui/EmojiReactions.js +31 -22
  637. package/cjs/ui/EmojiReactions.js.map +1 -1
  638. package/cjs/ui/FileMessageItemBody.js +8 -8
  639. package/cjs/ui/FileViewer.js +15 -16
  640. package/cjs/ui/FileViewer.js.map +1 -1
  641. package/cjs/ui/Icon.js +2 -2
  642. package/cjs/ui/IconButton.js +1 -1
  643. package/cjs/ui/ImageRenderer.js +96 -69
  644. package/cjs/ui/ImageRenderer.js.map +1 -1
  645. package/cjs/ui/Input.js +3 -3
  646. package/cjs/ui/Label.js +3 -3
  647. package/cjs/ui/LinkLabel.js +3 -3
  648. package/cjs/ui/Loader.js +2 -2
  649. package/cjs/ui/MentionLabel.js +13 -13
  650. package/cjs/ui/MentionUserLabel.js +1 -1
  651. package/cjs/ui/MessageContent.js +41 -46
  652. package/cjs/ui/MessageContent.js.map +1 -1
  653. package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
  654. package/cjs/ui/MessageInput.js +19 -19
  655. package/cjs/ui/MessageItemMenu.js +12 -29
  656. package/cjs/ui/MessageItemMenu.js.map +1 -1
  657. package/cjs/ui/MessageItemReactionMenu.js +15 -12
  658. package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
  659. package/cjs/ui/MessageSearchFileItem.js +14 -15
  660. package/cjs/ui/MessageSearchFileItem.js.map +1 -1
  661. package/cjs/ui/MessageSearchItem.js +11 -12
  662. package/cjs/ui/MessageSearchItem.js.map +1 -1
  663. package/cjs/ui/MessageStatus.js +12 -12
  664. package/cjs/ui/MobileFeedbackMenu.js +9 -9
  665. package/cjs/ui/Modal.js +8 -8
  666. package/cjs/ui/MutedAvatarOverlay.js +2 -2
  667. package/cjs/ui/OGMessageItemBody.js +16 -16
  668. package/cjs/ui/OpenChannelAdminMessage.js +3 -3
  669. package/cjs/ui/OpenChannelAvatar.js +8 -9
  670. package/cjs/ui/OpenChannelAvatar.js.map +1 -1
  671. package/cjs/ui/OpenchannelConversationHeader.js +8 -9
  672. package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
  673. package/cjs/ui/OpenchannelFileMessage.js +18 -18
  674. package/cjs/ui/OpenchannelOGMessage.js +20 -20
  675. package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
  676. package/cjs/ui/OpenchannelUserMessage.js +18 -18
  677. package/cjs/ui/PlaceHolder.js +6 -6
  678. package/cjs/ui/PlaybackTime.js +3 -3
  679. package/cjs/ui/QuoteMessage.js +9 -9
  680. package/cjs/ui/QuoteMessageInput.js +9 -9
  681. package/cjs/ui/ReactionBadge.js +3 -3
  682. package/cjs/ui/ReactionButton.js +4 -4
  683. package/cjs/ui/SortByRow.js +2 -2
  684. package/cjs/ui/TextButton.js +2 -2
  685. package/cjs/ui/TextMessageItemBody.js +16 -16
  686. package/cjs/ui/ThreadReplies.js +9 -10
  687. package/cjs/ui/ThreadReplies.js.map +1 -1
  688. package/cjs/ui/ThumbnailMessageItemBody.js +11 -8
  689. package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
  690. package/cjs/ui/Toggle.js +1 -1
  691. package/cjs/ui/Tooltip.js +3 -3
  692. package/cjs/ui/TooltipWrapper.js +1 -1
  693. package/cjs/ui/TypingIndicatorBubble.js +4 -5
  694. package/cjs/ui/TypingIndicatorBubble.js.map +1 -1
  695. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  696. package/cjs/ui/UserListItem.js +13 -13
  697. package/cjs/ui/UserProfile.js +10 -11
  698. package/cjs/ui/UserProfile.js.map +1 -1
  699. package/cjs/ui/VoiceMessageInput.js +9 -9
  700. package/cjs/ui/VoiceMessageItemBody.js +10 -10
  701. package/cjs/ui/Word.js +13 -13
  702. package/cjs/useSendbirdStateContext.js +1 -1
  703. package/cjs/utils/message/isVoiceMessage.js +3 -3
  704. package/cjs/withSendbird.js +1 -1
  705. package/dist/index.css +2973 -2899
  706. package/dist/index.css.map +1 -1
  707. package/hooks/useModal.js +10 -10
  708. package/index.js +136 -126
  709. package/index.js.map +1 -1
  710. package/package.json +11 -11
  711. package/pubSub/topics.js +1 -1
  712. package/sendbirdSelectors.js +2 -2
  713. package/types/hooks/VoicePlayer/dux/actionTypes.d.ts +2 -0
  714. package/types/hooks/VoicePlayer/dux/reducer.d.ts +2 -0
  715. package/types/hooks/useOnScrollReachedEndDetector/index.d.ts +10 -5
  716. package/types/hooks/useThrottleCallback.d.ts +11 -1
  717. package/types/lib/UserProfileContext.d.ts +1 -1
  718. package/types/lib/emojiManager.d.ts +29 -0
  719. package/types/lib/pubSub/topics.d.ts +5 -5
  720. package/types/lib/selectors.d.ts +2 -2
  721. package/types/lib/types.d.ts +7 -1
  722. package/types/modules/App/index.d.ts +5 -0
  723. package/types/modules/App/types.d.ts +1 -0
  724. package/types/modules/Channel/components/ChannelHeader/index.d.ts +2 -3
  725. package/types/modules/Channel/components/ChannelUI/index.d.ts +5 -4
  726. package/types/modules/Channel/components/FileViewer/index.d.ts +3 -16
  727. package/types/modules/Channel/components/FrozenNotification/index.d.ts +1 -6
  728. package/types/modules/Channel/components/Message/index.d.ts +2 -14
  729. package/types/modules/Channel/components/MessageInputWrapper/index.d.ts +11 -0
  730. package/types/modules/Channel/components/MessageList/index.d.ts +2 -2
  731. package/types/modules/Channel/components/RemoveMessageModal/index.d.ts +4 -0
  732. package/types/modules/Channel/components/SuggestedMentionList/index.d.ts +3 -18
  733. package/types/modules/Channel/components/TypingIndicator.d.ts +1 -7
  734. package/types/modules/Channel/components/UnreadCount/index.d.ts +1 -11
  735. package/types/modules/Channel/context/ChannelProvider.d.ts +9 -9
  736. package/types/modules/Channel/context/hooks/useDeleteMessageCallback.d.ts +2 -2
  737. package/types/modules/Channel/context/hooks/useFileInfoListWithUploaded.d.ts +3 -0
  738. package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +23 -0
  739. package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +3 -3
  740. package/types/modules/Channel/context/utils.d.ts +0 -1
  741. package/types/modules/Channel/index.d.ts +1 -1
  742. package/types/modules/ChannelList/components/AddChannel/index.d.ts +1 -1
  743. package/types/modules/ChannelList/components/ChannelListHeader/index.d.ts +1 -10
  744. package/types/modules/ChannelList/components/ChannelListUI/index.d.ts +1 -3
  745. package/types/modules/ChannelList/components/ChannelPreview/utils.d.ts +1 -10
  746. package/types/modules/ChannelList/components/LeaveChannel/index.d.ts +1 -8
  747. package/types/modules/ChannelList/context/ChannelListProvider.d.ts +9 -8
  748. package/types/modules/ChannelList/dux/actionTypes.d.ts +5 -0
  749. package/types/modules/ChannelList/utils.d.ts +6 -1
  750. package/types/modules/ChannelSettings/components/ModerationPanel/InviteUsersModal.d.ts +4 -3
  751. package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +45 -7
  752. package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +22 -0
  753. package/types/modules/GroupChannel/components/FileViewer/index.d.ts +8 -0
  754. package/types/modules/GroupChannel/components/FrozenNotification/index.d.ts +7 -0
  755. package/types/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.d.ts +13 -0
  756. package/types/modules/GroupChannel/components/GroupChannelHeader/index.d.ts +6 -0
  757. package/types/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.d.ts +10 -0
  758. package/types/modules/GroupChannel/components/GroupChannelUI/index.d.ts +24 -0
  759. package/types/modules/GroupChannel/components/Message/MessageView.d.ts +64 -0
  760. package/types/modules/GroupChannel/components/Message/index.d.ts +4 -0
  761. package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +30 -0
  762. package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/index.d.ts +4 -6
  763. package/types/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.d.ts +18 -0
  764. package/types/modules/GroupChannel/components/MessageList/hooks/useScrollBehavior.d.ts +1 -0
  765. package/types/modules/GroupChannel/components/MessageList/index.d.ts +15 -0
  766. package/types/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.d.ts +13 -0
  767. package/types/modules/GroupChannel/components/RemoveMessageModal/index.d.ts +4 -0
  768. package/types/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.d.ts +22 -0
  769. package/types/modules/GroupChannel/components/SuggestedMentionList/index.d.ts +5 -0
  770. package/types/modules/GroupChannel/components/TypingIndicator.d.ts +11 -0
  771. package/types/modules/GroupChannel/components/UnreadCount/index.d.ts +12 -0
  772. package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +74 -0
  773. package/types/modules/GroupChannel/context/const.d.ts +7 -0
  774. package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +23 -0
  775. package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +26 -0
  776. package/types/modules/GroupChannel/context/hooks/usePreventDuplicateRequest.d.ts +9 -0
  777. package/types/modules/GroupChannel/context/hooks/useToggleReactionCallback.d.ts +4 -0
  778. package/types/modules/GroupChannel/context/utils.d.ts +8 -0
  779. package/types/modules/GroupChannel/index.d.ts +7 -0
  780. package/types/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.d.ts +11 -0
  781. package/types/modules/GroupChannelList/components/AddGroupChannel/index.d.ts +3 -0
  782. package/types/modules/GroupChannelList/components/GroupChannelListHeader/index.d.ts +10 -0
  783. package/types/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.d.ts +16 -0
  784. package/types/modules/GroupChannelList/components/GroupChannelListItem/index.d.ts +16 -0
  785. package/types/modules/GroupChannelList/components/GroupChannelListItem/utils.d.ts +10 -0
  786. package/types/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.d.ts +21 -0
  787. package/types/modules/GroupChannelList/components/GroupChannelListUI/index.d.ts +16 -0
  788. package/types/modules/GroupChannelList/components/GroupChannelPreviewAction.d.ts +9 -0
  789. package/types/modules/GroupChannelList/components/LeaveGroupChannel/index.d.ts +9 -0
  790. package/types/modules/GroupChannelList/context/GroupChannelListProvider.d.ts +40 -0
  791. package/types/modules/GroupChannelList/index.d.ts +7 -0
  792. package/types/modules/OpenChannel/context/utils.d.ts +1 -3
  793. package/types/modules/Thread/components/SuggestedMentionList.d.ts +5 -0
  794. package/types/modules/Thread/components/ThreadList/index.d.ts +1 -1
  795. package/types/modules/Thread/context/ThreadProvider.d.ts +2 -2
  796. package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +1 -1
  797. package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +21 -0
  798. package/types/modules/Thread/context/utils.d.ts +0 -2
  799. package/types/modules/Thread/index.d.ts +1 -1
  800. package/types/types.d.ts +11 -3
  801. package/types/ui/FileViewer/index.d.ts +2 -2
  802. package/types/ui/ImageRenderer/index.d.ts +1 -3
  803. package/types/ui/MessageContent/index.d.ts +1 -1
  804. package/types/ui/MessageItemMenu/index.d.ts +2 -1
  805. package/types/ui/MobileMenu/types.d.ts +1 -1
  806. package/types/ui/MultipleFilesMessageItemBody/index.d.ts +2 -2
  807. package/types/utils/index.d.ts +9 -2
  808. package/types/utils/messages.d.ts +17 -0
  809. package/types/utils/typeHelpers/partialRequired.d.ts +1 -0
  810. package/ui/Accordion.js +3 -3
  811. package/ui/AccordionGroup.js +2 -2
  812. package/ui/AdminMessage.js +3 -3
  813. package/ui/Avatar.js +4 -5
  814. package/ui/Avatar.js.map +1 -1
  815. package/ui/Badge.js +5 -5
  816. package/ui/BottomSheet.js +9 -9
  817. package/ui/Button.js +3 -3
  818. package/ui/ChannelAvatar.js +6 -7
  819. package/ui/ChannelAvatar.js.map +1 -1
  820. package/ui/ConnectionStatus.js +6 -6
  821. package/ui/ContextMenu.js +6 -6
  822. package/ui/DateSeparator.js +4 -4
  823. package/ui/EmojiReactions.js +31 -22
  824. package/ui/EmojiReactions.js.map +1 -1
  825. package/ui/FileMessageItemBody.js +8 -8
  826. package/ui/FileViewer.js +15 -16
  827. package/ui/FileViewer.js.map +1 -1
  828. package/ui/Icon.js +2 -2
  829. package/ui/IconButton.js +1 -1
  830. package/ui/ImageRenderer.js +97 -70
  831. package/ui/ImageRenderer.js.map +1 -1
  832. package/ui/Input.js +3 -3
  833. package/ui/Label.js +3 -3
  834. package/ui/LinkLabel.js +3 -3
  835. package/ui/Loader.js +2 -2
  836. package/ui/MentionLabel.js +13 -13
  837. package/ui/MentionUserLabel.js +1 -1
  838. package/ui/MessageContent.js +39 -44
  839. package/ui/MessageContent.js.map +1 -1
  840. package/ui/MessageInput/hooks/usePaste.js +5 -5
  841. package/ui/MessageInput.js +19 -19
  842. package/ui/MessageItemMenu.js +12 -29
  843. package/ui/MessageItemMenu.js.map +1 -1
  844. package/ui/MessageItemReactionMenu.js +15 -12
  845. package/ui/MessageItemReactionMenu.js.map +1 -1
  846. package/ui/MessageSearchFileItem.js +14 -15
  847. package/ui/MessageSearchFileItem.js.map +1 -1
  848. package/ui/MessageSearchItem.js +11 -12
  849. package/ui/MessageSearchItem.js.map +1 -1
  850. package/ui/MessageStatus.js +12 -12
  851. package/ui/MobileFeedbackMenu.js +9 -9
  852. package/ui/Modal.js +8 -8
  853. package/ui/MutedAvatarOverlay.js +2 -2
  854. package/ui/OGMessageItemBody.js +16 -16
  855. package/ui/OpenChannelAdminMessage.js +3 -3
  856. package/ui/OpenChannelAvatar.js +8 -9
  857. package/ui/OpenChannelAvatar.js.map +1 -1
  858. package/ui/OpenchannelConversationHeader.js +8 -9
  859. package/ui/OpenchannelConversationHeader.js.map +1 -1
  860. package/ui/OpenchannelFileMessage.js +18 -18
  861. package/ui/OpenchannelOGMessage.js +20 -20
  862. package/ui/OpenchannelThumbnailMessage.js +17 -17
  863. package/ui/OpenchannelUserMessage.js +18 -18
  864. package/ui/PlaceHolder.js +6 -6
  865. package/ui/PlaybackTime.js +3 -3
  866. package/ui/QuoteMessage.js +9 -9
  867. package/ui/QuoteMessageInput.js +9 -9
  868. package/ui/ReactionBadge.js +3 -3
  869. package/ui/ReactionButton.js +4 -4
  870. package/ui/SortByRow.js +2 -2
  871. package/ui/TextButton.js +2 -2
  872. package/ui/TextMessageItemBody.js +16 -16
  873. package/ui/ThreadReplies.js +9 -10
  874. package/ui/ThreadReplies.js.map +1 -1
  875. package/ui/ThumbnailMessageItemBody.js +11 -8
  876. package/ui/ThumbnailMessageItemBody.js.map +1 -1
  877. package/ui/Toggle.js +1 -1
  878. package/ui/Tooltip.js +3 -3
  879. package/ui/TooltipWrapper.js +1 -1
  880. package/ui/TypingIndicatorBubble.js +4 -5
  881. package/ui/TypingIndicatorBubble.js.map +1 -1
  882. package/ui/UnknownMessageItemBody.js +7 -7
  883. package/ui/UserListItem.js +13 -13
  884. package/ui/UserProfile.js +10 -11
  885. package/ui/UserProfile.js.map +1 -1
  886. package/ui/VoiceMessageInput.js +9 -9
  887. package/ui/VoiceMessageItemBody.js +10 -10
  888. package/ui/Word.js +13 -13
  889. package/useSendbirdStateContext.js +1 -1
  890. package/utils/message/isVoiceMessage.js +3 -3
  891. package/withSendbird.js +1 -1
  892. package/chunks/bundle-1WAo3loP.js.map +0 -1
  893. package/chunks/bundle-GbC4a59M.js.map +0 -1
  894. package/chunks/bundle-H2Il__gY.js.map +0 -1
  895. package/chunks/bundle-HkbweK1K.js.map +0 -1
  896. package/chunks/bundle-J79McRkg.js +0 -1551
  897. package/chunks/bundle-J79McRkg.js.map +0 -1
  898. package/chunks/bundle-JbVZ1Tsw.js.map +0 -1
  899. package/chunks/bundle-Jp5g4YZl.js.map +0 -1
  900. package/chunks/bundle-KSjFhl4l.js.map +0 -1
  901. package/chunks/bundle-KmauOTrg.js.map +0 -1
  902. package/chunks/bundle-Kv4GXRTs.js.map +0 -1
  903. package/chunks/bundle-Lt8mReNU.js.map +0 -1
  904. package/chunks/bundle-MyYphU00.js.map +0 -1
  905. package/chunks/bundle-OZZH5fXZ.js.map +0 -1
  906. package/chunks/bundle-VPanFdbf.js.map +0 -1
  907. package/chunks/bundle-W8t7rR3H.js.map +0 -1
  908. package/chunks/bundle-WpHDilD_.js.map +0 -1
  909. package/chunks/bundle-X3h4GiLa.js.map +0 -1
  910. package/chunks/bundle-ZKM9Qk_j.js.map +0 -1
  911. package/chunks/bundle-ZcE3JzW_.js.map +0 -1
  912. package/chunks/bundle-_-2NCsYr.js.map +0 -1
  913. package/chunks/bundle-aVVX2zHR.js.map +0 -1
  914. package/chunks/bundle-aeQZ5WsP.js.map +0 -1
  915. package/chunks/bundle-cXqs96Pt.js.map +0 -1
  916. package/chunks/bundle-d6R6m9-9.js.map +0 -1
  917. package/chunks/bundle-dWJnfDPH.js.map +0 -1
  918. package/chunks/bundle-f9mkey82.js.map +0 -1
  919. package/chunks/bundle-gEwUSFTG.js +0 -134
  920. package/chunks/bundle-gEwUSFTG.js.map +0 -1
  921. package/chunks/bundle-iYCB6XN2.js.map +0 -1
  922. package/chunks/bundle-ku6CEjGk.js.map +0 -1
  923. package/chunks/bundle-lmXvuxOb.js.map +0 -1
  924. package/chunks/bundle-mTQPBbmZ.js.map +0 -1
  925. package/chunks/bundle-niN5G0Bo.js.map +0 -1
  926. package/chunks/bundle-pWIkt9Ng.js.map +0 -1
  927. package/chunks/bundle-tca5p7Pl.js.map +0 -1
  928. package/chunks/bundle-ucXG1Py7.js +0 -174
  929. package/chunks/bundle-xgiw36M5.js.map +0 -1
  930. package/chunks/bundle-xsV7pD8p.js.map +0 -1
  931. package/chunks/bundle-y_LgB6DS.js.map +0 -1
  932. package/chunks/bundle-yur9nm4N.js.map +0 -1
  933. package/cjs/chunks/bundle--MJd6Gw1.js.map +0 -1
  934. package/cjs/chunks/bundle--d5w7FVF.js.map +0 -1
  935. package/cjs/chunks/bundle-135pRm7i.js.map +0 -1
  936. package/cjs/chunks/bundle-1dUHK2qC.js.map +0 -1
  937. package/cjs/chunks/bundle-5Nd6zn0d.js.map +0 -1
  938. package/cjs/chunks/bundle-68NdNRjR.js.map +0 -1
  939. package/cjs/chunks/bundle-7AS0Rcch.js.map +0 -1
  940. package/cjs/chunks/bundle-7J-qpEzM.js.map +0 -1
  941. package/cjs/chunks/bundle-7J3nX_hP.js.map +0 -1
  942. package/cjs/chunks/bundle-7QMU-JU1.js.map +0 -1
  943. package/cjs/chunks/bundle-7VJjqIPJ.js.map +0 -1
  944. package/cjs/chunks/bundle-9iE0HY96.js.map +0 -1
  945. package/cjs/chunks/bundle-AbGazomk.js.map +0 -1
  946. package/cjs/chunks/bundle-B5gH_etT.js.map +0 -1
  947. package/cjs/chunks/bundle-BH9aeaqG.js.map +0 -1
  948. package/cjs/chunks/bundle-CUa6Hz7c.js.map +0 -1
  949. package/cjs/chunks/bundle-Dax6YIIr.js.map +0 -1
  950. package/cjs/chunks/bundle-Dz3ncvS3.js.map +0 -1
  951. package/cjs/chunks/bundle-GDX6wyym.js.map +0 -1
  952. package/cjs/chunks/bundle-GsUulypb.js.map +0 -1
  953. package/cjs/chunks/bundle-INJtS58R.js.map +0 -1
  954. package/cjs/chunks/bundle-JOBLCwk9.js.map +0 -1
  955. package/cjs/chunks/bundle-JVe1J2FX.js +0 -179
  956. package/cjs/chunks/bundle-JbxviE94.js.map +0 -1
  957. package/cjs/chunks/bundle-LRCFL23q.js.map +0 -1
  958. package/cjs/chunks/bundle-OVfymd1y.js.map +0 -1
  959. package/cjs/chunks/bundle-Oc2T5_VP.js.map +0 -1
  960. package/cjs/chunks/bundle-TFo3Eb8z.js.map +0 -1
  961. package/cjs/chunks/bundle-TxdziCwH.js.map +0 -1
  962. package/cjs/chunks/bundle-UaSM_xZY.js.map +0 -1
  963. package/cjs/chunks/bundle-Ue5GkT2H.js +0 -1555
  964. package/cjs/chunks/bundle-Ue5GkT2H.js.map +0 -1
  965. package/cjs/chunks/bundle-VB_a0u7i.js.map +0 -1
  966. package/cjs/chunks/bundle-WzrocC57.js.map +0 -1
  967. package/cjs/chunks/bundle-aoIToceJ.js.map +0 -1
  968. package/cjs/chunks/bundle-bXLZZTmP.js.map +0 -1
  969. package/cjs/chunks/bundle-dny_TiUT.js.map +0 -1
  970. package/cjs/chunks/bundle-hEYmMlZe.js.map +0 -1
  971. package/cjs/chunks/bundle-hXzxY0NJ.js.map +0 -1
  972. package/cjs/chunks/bundle-kSScygqj.js.map +0 -1
  973. package/cjs/chunks/bundle-n6iwTZAo.js.map +0 -1
  974. package/cjs/chunks/bundle-ptZslG_m.js.map +0 -1
  975. package/cjs/chunks/bundle-qtXdbPNE.js.map +0 -1
  976. package/cjs/chunks/bundle-r8Z3GYqh.js.map +0 -1
  977. package/cjs/chunks/bundle-rgxTgHrK.js.map +0 -1
  978. package/cjs/chunks/bundle-tad4_cNF.js.map +0 -1
  979. package/cjs/chunks/bundle-v02q7K8T.js.map +0 -1
  980. package/cjs/chunks/bundle-vphYV1gz.js.map +0 -1
  981. package/cjs/chunks/bundle-y8EiLlDT.js.map +0 -1
  982. package/cjs/chunks/bundle-y_gkwZqM.js +0 -136
  983. package/cjs/chunks/bundle-y_gkwZqM.js.map +0 -1
  984. package/cjs/chunks/bundle-zgoic8x9.js.map +0 -1
  985. package/cjs/chunks/bundle-zrsbDQGp.js.map +0 -1
  986. package/types/modules/Channel/components/RemoveMessageModal.d.ts +0 -9
  987. package/types/modules/Channel/context/compareMessagesForGrouping.d.ts +0 -10
  988. package/types/modules/Channel/context/hooks/useStatefulFileInfoList.d.ts +0 -3
  989. package/types/modules/Thread/context/hooks/useGetNextThreadsCallback.d.ts +0 -17
  990. package/types/modules/Thread/context/hooks/useGetPrevThreadsCallback.d.ts +0 -17
  991. package/types/modules/Thread/context/hooks/useGetThreadList.d.ts +0 -14
  992. package/types/utils/createStatefulFileInfoList.d.ts +0 -11
  993. package/types/utils/omitObjectProperty.d.ts +0 -1
  994. package/types/modules/{Channel/components/ChannelHeader → GroupChannel/components/GroupChannelHeader}/utils.d.ts +0 -0
  995. package/types/modules/{Channel/components/MessageInput → GroupChannel/components/MessageInputWrapper}/VoiceMessageInputWrapper.d.ts +1 -1
  996. /package/types/modules/{Channel → GroupChannel}/components/MessageList/getMessagePartsInfo.d.ts +0 -0
  997. /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/SuggestedUserMentionItem.d.ts +0 -0
  998. /package/types/modules/{Channel → GroupChannel}/components/SuggestedMentionList/utils.d.ts +0 -0
  999. /package/types/modules/{Channel → GroupChannel}/components/SuggestedReplies/index.d.ts +0 -0
@@ -0,0 +1,550 @@
1
+ import { _ as __assign, b as __awaiter, c as __generator } from './bundle-fgwje9pW.js';
2
+ import React__default, { useRef, useState, useLayoutEffect, useCallback, useMemo, useEffect, useContext } from 'react';
3
+ import { MessageMetaArray, ReplyType } from '@sendbird/chat/message';
4
+ import { MessageFilter } from '@sendbird/chat/groupChannel';
5
+ import { useIIFE, useGroupChannelMessages, useAsyncEffect, useAsyncLayoutEffect, usePreservedCallback } from '@sendbird/uikit-tools';
6
+ import { U as UserProfileProvider } from './bundle-NQlEMhhs.js';
7
+ import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
8
+ import { u as useToggleReactionCallback } from './bundle-NeB2uoNn.js';
9
+ import { g as getCaseResolvedReplyType, a as getCaseResolvedThreadReplySelectType } from './bundle-WK57RaQR.js';
10
+ import { b as isContextMenuClosed, g as getMessageTopOffset } from './bundle-2mo18Chz.js';
11
+ import { a as useOnScrollPositionChangeDetectorWithRef } from './bundle-143lYf48.js';
12
+ import { p as pubSubFactory } from './bundle-byix4-_Z.js';
13
+ import { p as pubSubTopics } from './bundle-pfcIdF14.js';
14
+ import { a as VOICE_MESSAGE_FILE_NAME, b as VOICE_MESSAGE_MIME_TYPE, M as META_ARRAY_VOICE_DURATION_KEY, h as META_ARRAY_MESSAGE_TYPE_KEY, i as META_ARRAY_MESSAGE_TYPE_VALUE__VOICE } from './bundle-zpdae5WH.js';
15
+
16
+ function runCallback(callback, lazy) {
17
+ if (lazy === void 0) { lazy = true; }
18
+ if (lazy) {
19
+ setTimeout(function () {
20
+ callback();
21
+ });
22
+ }
23
+ else {
24
+ callback();
25
+ }
26
+ }
27
+ function useMessageListScroll() {
28
+ var scrollRef = useRef(null);
29
+ var scrollDistanceFromBottomRef = useRef(0);
30
+ var scrollPubSub = useState(function () { return pubSubFactory(); })[0];
31
+ var _a = useState(false), isScrollBottomReached = _a[0], setIsScrollBottomReached = _a[1];
32
+ useLayoutEffect(function () {
33
+ var unsubscribes = [];
34
+ unsubscribes.push(scrollPubSub.subscribe('scrollToBottom', function (resolve) {
35
+ runCallback(function () {
36
+ if (!scrollRef.current)
37
+ return;
38
+ scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
39
+ // Update data by manual update
40
+ scrollDistanceFromBottomRef.current = 0;
41
+ setIsScrollBottomReached(true);
42
+ if (resolve)
43
+ resolve();
44
+ });
45
+ }));
46
+ unsubscribes.push(scrollPubSub.subscribe('scroll', function (_a) {
47
+ var top = _a.top, _b = _a.animated, animated = _b === void 0 ? false : _b, lazy = _a.lazy, resolve = _a.resolve;
48
+ runCallback(function () {
49
+ if (!scrollRef.current)
50
+ return;
51
+ var _a = scrollRef.current, scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
52
+ scrollRef.current.scroll({ top: top, behavior: animated ? 'smooth' : 'auto' });
53
+ // Update data by manual update
54
+ scrollDistanceFromBottomRef.current = Math.max(0, scrollHeight - scrollTop - clientHeight);
55
+ setIsScrollBottomReached(scrollDistanceFromBottomRef.current === 0);
56
+ if (resolve)
57
+ resolve();
58
+ }, lazy);
59
+ }));
60
+ return function () {
61
+ unsubscribes.forEach(function (_a) {
62
+ var remove = _a.remove;
63
+ return remove();
64
+ });
65
+ };
66
+ }, []);
67
+ // Update data by scroll events
68
+ useOnScrollPositionChangeDetectorWithRef(scrollRef, {
69
+ onReachedTop: function (_a) {
70
+ var distanceFromBottom = _a.distanceFromBottom;
71
+ setIsScrollBottomReached(false);
72
+ scrollDistanceFromBottomRef.current = distanceFromBottom;
73
+ },
74
+ onInBetween: function (_a) {
75
+ var distanceFromBottom = _a.distanceFromBottom;
76
+ setIsScrollBottomReached(false);
77
+ scrollDistanceFromBottomRef.current = distanceFromBottom;
78
+ },
79
+ onReachedBottom: function (_a) {
80
+ var distanceFromBottom = _a.distanceFromBottom;
81
+ setIsScrollBottomReached(true);
82
+ scrollDistanceFromBottomRef.current = distanceFromBottom;
83
+ },
84
+ });
85
+ return {
86
+ scrollRef: scrollRef,
87
+ scrollPubSub: scrollPubSub,
88
+ isScrollBottomReached: isScrollBottomReached,
89
+ setIsScrollBottomReached: setIsScrollBottomReached,
90
+ scrollDistanceFromBottomRef: scrollDistanceFromBottomRef,
91
+ };
92
+ }
93
+
94
+ var pass = function (value) { return value; };
95
+ /**
96
+ * @description This hook controls common processes related to message sending, updating.
97
+ * */
98
+ function useMessageActions(params) {
99
+ var _this = this;
100
+ var _a = params.onBeforeSendUserMessage, onBeforeSendUserMessage = _a === void 0 ? pass : _a, _b = params.onBeforeSendFileMessage, onBeforeSendFileMessage = _b === void 0 ? pass : _b, _c = params.onBeforeUpdateUserMessage, onBeforeUpdateUserMessage = _c === void 0 ? pass : _c, _d = params.onBeforeSendVoiceMessage, onBeforeSendVoiceMessage = _d === void 0 ? pass : _d, _e = params.onBeforeSendMultipleFilesMessage, onBeforeSendMultipleFilesMessage = _e === void 0 ? pass : _e, sendFileMessage = params.sendFileMessage, sendMultipleFilesMessage = params.sendMultipleFilesMessage, sendUserMessage = params.sendUserMessage, updateUserMessage = params.updateUserMessage, scrollToBottom = params.scrollToBottom, quoteMessage = params.quoteMessage, replyType = params.replyType;
101
+ var buildInternalMessageParams = useCallback(function (basicParams) {
102
+ var messageParams = __assign({}, basicParams);
103
+ if (params.quoteMessage && replyType !== 'NONE') {
104
+ messageParams.isReplyToChannel = true;
105
+ messageParams.parentMessageId = quoteMessage.messageId;
106
+ }
107
+ return messageParams;
108
+ }, [replyType, quoteMessage]);
109
+ return {
110
+ sendUserMessage: useCallback(function (params) { return __awaiter(_this, void 0, void 0, function () {
111
+ var internalParams, processedParams;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ internalParams = buildInternalMessageParams(params);
116
+ return [4 /*yield*/, onBeforeSendUserMessage(internalParams)];
117
+ case 1:
118
+ processedParams = _a.sent();
119
+ return [2 /*return*/, sendUserMessage(processedParams, function () { return scrollToBottom(); })];
120
+ }
121
+ });
122
+ }); }, [buildInternalMessageParams, sendUserMessage, scrollToBottom]),
123
+ sendFileMessage: useCallback(function (params) { return __awaiter(_this, void 0, void 0, function () {
124
+ var internalParams, processedParams;
125
+ return __generator(this, function (_a) {
126
+ switch (_a.label) {
127
+ case 0:
128
+ internalParams = buildInternalMessageParams(params);
129
+ return [4 /*yield*/, onBeforeSendFileMessage(internalParams)];
130
+ case 1:
131
+ processedParams = _a.sent();
132
+ return [2 /*return*/, sendFileMessage(processedParams, function () { return scrollToBottom(); })];
133
+ }
134
+ });
135
+ }); }, [buildInternalMessageParams, sendFileMessage, scrollToBottom]),
136
+ sendMultipleFilesMessage: useCallback(function (params) { return __awaiter(_this, void 0, void 0, function () {
137
+ var internalParams, processedParams;
138
+ return __generator(this, function (_a) {
139
+ switch (_a.label) {
140
+ case 0:
141
+ internalParams = buildInternalMessageParams(params);
142
+ return [4 /*yield*/, onBeforeSendMultipleFilesMessage(internalParams)];
143
+ case 1:
144
+ processedParams = _a.sent();
145
+ return [2 /*return*/, sendMultipleFilesMessage(processedParams, function () { return scrollToBottom(); })];
146
+ }
147
+ });
148
+ }); }, [buildInternalMessageParams, sendMultipleFilesMessage, scrollToBottom]),
149
+ sendVoiceMessage: useCallback(function (params, duration) { return __awaiter(_this, void 0, void 0, function () {
150
+ var internalParams, processedParams;
151
+ return __generator(this, function (_a) {
152
+ switch (_a.label) {
153
+ case 0:
154
+ internalParams = buildInternalMessageParams(__assign(__assign({}, params), { fileName: VOICE_MESSAGE_FILE_NAME, mimeType: VOICE_MESSAGE_MIME_TYPE, metaArrays: [
155
+ new MessageMetaArray({
156
+ key: META_ARRAY_VOICE_DURATION_KEY,
157
+ value: ["".concat(duration)],
158
+ }),
159
+ new MessageMetaArray({
160
+ key: META_ARRAY_MESSAGE_TYPE_KEY,
161
+ value: [META_ARRAY_MESSAGE_TYPE_VALUE__VOICE],
162
+ }),
163
+ ] }));
164
+ return [4 /*yield*/, onBeforeSendVoiceMessage(internalParams)];
165
+ case 1:
166
+ processedParams = _a.sent();
167
+ return [2 /*return*/, sendFileMessage(processedParams, function () { return scrollToBottom(); })];
168
+ }
169
+ });
170
+ }); }, [buildInternalMessageParams, sendFileMessage, scrollToBottom]),
171
+ updateUserMessage: useCallback(function (messageId, params) { return __awaiter(_this, void 0, void 0, function () {
172
+ var internalParams, processedParams;
173
+ return __generator(this, function (_a) {
174
+ switch (_a.label) {
175
+ case 0:
176
+ internalParams = buildInternalMessageParams(params);
177
+ return [4 /*yield*/, onBeforeUpdateUserMessage(internalParams)];
178
+ case 1:
179
+ processedParams = _a.sent();
180
+ return [2 /*return*/, updateUserMessage(messageId, processedParams)];
181
+ }
182
+ });
183
+ }); }, [buildInternalMessageParams, updateUserMessage]),
184
+ };
185
+ }
186
+
187
+ /**
188
+ * @description This hook is designed to prevent scroll flickering caused by duplicate calls of onEndReached and onTopReached.
189
+ * It controls the loading of messages to ensure a single request for message retrieval.
190
+ * */
191
+ var usePreventDuplicateRequest = function () {
192
+ var context = useRef({ locked: false, count: 0 }).current;
193
+ return {
194
+ lock: function () {
195
+ context.locked = true;
196
+ },
197
+ run: function (callback) {
198
+ return __awaiter(this, void 0, void 0, function () {
199
+ return __generator(this, function (_b) {
200
+ switch (_b.label) {
201
+ case 0:
202
+ if (context.locked && context.count > 0)
203
+ return [2 /*return*/];
204
+ _b.label = 1;
205
+ case 1:
206
+ _b.trys.push([1, 3, , 4]);
207
+ context.count++;
208
+ return [4 /*yield*/, callback()];
209
+ case 2:
210
+ _b.sent();
211
+ return [3 /*break*/, 4];
212
+ case 3:
213
+ _b.sent();
214
+ return [3 /*break*/, 4];
215
+ case 4: return [2 /*return*/];
216
+ }
217
+ });
218
+ });
219
+ },
220
+ release: function () {
221
+ context.locked = false;
222
+ context.count = 0;
223
+ },
224
+ };
225
+ };
226
+
227
+ var GroupChannelContext = React__default.createContext(null);
228
+ var GroupChannelProvider = function (props) {
229
+ var _a, _b, _c;
230
+ var channelUrl = props.channelUrl, children = props.children, moduleReactionEnabled = props.isReactionEnabled, moduleReplyType = props.replyType, moduleThreadReplySelectType = props.threadReplySelectType, _d = props.isMessageGroupingEnabled, isMessageGroupingEnabled = _d === void 0 ? true : _d, isMultipleFilesMessageEnabled = props.isMultipleFilesMessageEnabled, showSearchIcon = props.showSearchIcon, _e = props.disableMarkAsRead, disableMarkAsRead = _e === void 0 ? false : _e, _f = props.scrollBehavior, scrollBehavior = _f === void 0 ? 'auto' : _f, startingPoint = props.startingPoint, _animatedMessageId = props.animatedMessageId, messageListQueryParams = props.messageListQueryParams, onBeforeSendUserMessage = props.onBeforeSendUserMessage, onBeforeSendFileMessage = props.onBeforeSendFileMessage, onBeforeSendVoiceMessage = props.onBeforeSendVoiceMessage, onBeforeSendMultipleFilesMessage = props.onBeforeSendMultipleFilesMessage, onBeforeUpdateUserMessage = props.onBeforeUpdateUserMessage, onMessageAnimated = props.onMessageAnimated, onBackClick = props.onBackClick, onChatHeaderActionClick = props.onChatHeaderActionClick, onReplyInThreadClick = props.onReplyInThreadClick, onSearchClick = props.onSearchClick, onQuoteMessageClick = props.onQuoteMessageClick, renderUserMentionItem = props.renderUserMentionItem;
231
+ // Global context
232
+ var _g = useSendbirdStateContext(), config = _g.config, stores = _g.stores;
233
+ var sdkStore = stores.sdkStore;
234
+ var markAsReadScheduler = config.markAsReadScheduler;
235
+ // State
236
+ var _h = useState(null), quoteMessage = _h[0], setQuoteMessage = _h[1];
237
+ var _j = useState(0), animatedMessageId = _j[0], setAnimatedMessageId = _j[1];
238
+ var _k = useState(null), currentChannel = _k[0], setCurrentChannel = _k[1];
239
+ // Ref
240
+ var _l = useMessageListScroll(), scrollRef = _l.scrollRef, scrollPubSub = _l.scrollPubSub, scrollDistanceFromBottomRef = _l.scrollDistanceFromBottomRef, isScrollBottomReached = _l.isScrollBottomReached, setIsScrollBottomReached = _l.setIsScrollBottomReached;
241
+ var messageInputRef = useRef(null);
242
+ var toggleReaction = useToggleReactionCallback(currentChannel, config.logger);
243
+ var replyType = getCaseResolvedReplyType(moduleReplyType !== null && moduleReplyType !== void 0 ? moduleReplyType : config.groupChannel.replyType).upperCase;
244
+ var threadReplySelectType = getCaseResolvedThreadReplySelectType(moduleThreadReplySelectType !== null && moduleThreadReplySelectType !== void 0 ? moduleThreadReplySelectType : config.groupChannel.threadReplySelectType).upperCase;
245
+ var chatReplyType = useIIFE(function () {
246
+ if (replyType === 'NONE')
247
+ return ReplyType.NONE;
248
+ return ReplyType.ONLY_REPLY_TO_CHANNEL;
249
+ });
250
+ var isReactionEnabled = useIIFE(function () {
251
+ if (!currentChannel || currentChannel.isSuper || currentChannel.isBroadcast || currentChannel.isEphemeral)
252
+ return false;
253
+ return moduleReactionEnabled !== null && moduleReactionEnabled !== void 0 ? moduleReactionEnabled : config.groupChannel.enableReactions;
254
+ });
255
+ var nicknamesMap = useMemo(function () { var _a; return new Map(((_a = currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.members) !== null && _a !== void 0 ? _a : []).map(function (_a) {
256
+ var userId = _a.userId, nickname = _a.nickname;
257
+ return [userId, nickname];
258
+ })); }, [currentChannel === null || currentChannel === void 0 ? void 0 : currentChannel.members]);
259
+ var preventDuplicateRequest = usePreventDuplicateRequest();
260
+ var messageDataSource = useGroupChannelMessages(sdkStore.sdk, currentChannel, {
261
+ startingPoint: startingPoint,
262
+ replyType: chatReplyType,
263
+ collectionCreator: getCollectionCreator(currentChannel, messageListQueryParams),
264
+ shouldCountNewMessages: function () { return !isScrollBottomReached; },
265
+ markAsRead: function (channels) {
266
+ if (!disableMarkAsRead && isScrollBottomReached) {
267
+ channels.forEach(function (it) { return markAsReadScheduler.push(it); });
268
+ }
269
+ },
270
+ onMessagesReceived: function () {
271
+ if (isScrollBottomReached && isContextMenuClosed()) {
272
+ scrollPubSub.publish('scrollToBottom', null);
273
+ }
274
+ },
275
+ onChannelDeleted: function () { return setCurrentChannel(null); },
276
+ onCurrentUserBanned: function () { return setCurrentChannel(null); },
277
+ onChannelUpdated: function (channel) { return setCurrentChannel(channel); },
278
+ logger: config.logger,
279
+ });
280
+ useOnScrollPositionChangeDetectorWithRef(scrollRef, {
281
+ onReachedTop: function () {
282
+ return __awaiter(this, void 0, void 0, function () {
283
+ var _this = this;
284
+ return __generator(this, function (_a) {
285
+ switch (_a.label) {
286
+ case 0:
287
+ preventDuplicateRequest.lock();
288
+ return [4 /*yield*/, preventDuplicateRequest.run(function () { return __awaiter(_this, void 0, void 0, function () {
289
+ var prevViewInfo;
290
+ return __generator(this, function (_a) {
291
+ switch (_a.label) {
292
+ case 0:
293
+ if (!messageDataSource.hasPrevious())
294
+ return [2 /*return*/];
295
+ prevViewInfo = { scrollTop: scrollRef.current.scrollTop, scrollHeight: scrollRef.current.scrollHeight };
296
+ return [4 /*yield*/, messageDataSource.loadPrevious()];
297
+ case 1:
298
+ _a.sent();
299
+ // FIXME: We need a good way to detect right after the rendering of the screen instead of using setTimeout.
300
+ setTimeout(function () {
301
+ var nextViewInfo = { scrollHeight: scrollRef.current.scrollHeight };
302
+ var viewUpdated = prevViewInfo.scrollHeight < nextViewInfo.scrollHeight;
303
+ if (viewUpdated) {
304
+ var bottomOffset = prevViewInfo.scrollHeight - prevViewInfo.scrollTop;
305
+ scrollPubSub.publish('scroll', { top: nextViewInfo.scrollHeight - bottomOffset, lazy: false });
306
+ }
307
+ });
308
+ return [2 /*return*/];
309
+ }
310
+ });
311
+ }); })];
312
+ case 1:
313
+ _a.sent();
314
+ preventDuplicateRequest.release();
315
+ return [2 /*return*/];
316
+ }
317
+ });
318
+ });
319
+ },
320
+ onReachedBottom: function () {
321
+ return __awaiter(this, void 0, void 0, function () {
322
+ var _this = this;
323
+ return __generator(this, function (_a) {
324
+ switch (_a.label) {
325
+ case 0:
326
+ preventDuplicateRequest.lock();
327
+ return [4 /*yield*/, preventDuplicateRequest.run(function () { return __awaiter(_this, void 0, void 0, function () {
328
+ var prevViewInfo;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0:
332
+ if (!messageDataSource.hasNext())
333
+ return [2 /*return*/];
334
+ prevViewInfo = { scrollTop: scrollRef.current.scrollTop, scrollHeight: scrollRef.current.scrollHeight };
335
+ return [4 /*yield*/, messageDataSource.loadNext()];
336
+ case 1:
337
+ _a.sent();
338
+ setTimeout(function () {
339
+ var nextViewInfo = { scrollHeight: scrollRef.current.scrollHeight };
340
+ var viewUpdated = prevViewInfo.scrollHeight < nextViewInfo.scrollHeight;
341
+ if (viewUpdated) {
342
+ scrollPubSub.publish('scroll', { top: prevViewInfo.scrollTop, lazy: false });
343
+ }
344
+ });
345
+ return [2 /*return*/];
346
+ }
347
+ });
348
+ }); })];
349
+ case 1:
350
+ _a.sent();
351
+ preventDuplicateRequest.release();
352
+ if (currentChannel && !messageDataSource.hasNext()) {
353
+ messageDataSource.resetNewMessages();
354
+ if (!disableMarkAsRead)
355
+ markAsReadScheduler.push(currentChannel);
356
+ }
357
+ return [2 /*return*/];
358
+ }
359
+ });
360
+ });
361
+ },
362
+ });
363
+ // SideEffect: Fetch and set to current channel by channelUrl prop.
364
+ useAsyncEffect(function () { return __awaiter(void 0, void 0, void 0, function () {
365
+ var channel;
366
+ return __generator(this, function (_b) {
367
+ switch (_b.label) {
368
+ case 0:
369
+ if (!(sdkStore.initialized && channelUrl)) return [3 /*break*/, 5];
370
+ _b.label = 1;
371
+ case 1:
372
+ _b.trys.push([1, 3, 4, 5]);
373
+ return [4 /*yield*/, sdkStore.sdk.groupChannel.getChannel(channelUrl)];
374
+ case 2:
375
+ channel = _b.sent();
376
+ setCurrentChannel(channel);
377
+ return [3 /*break*/, 5];
378
+ case 3:
379
+ _b.sent();
380
+ setCurrentChannel(null);
381
+ return [3 /*break*/, 5];
382
+ case 4:
383
+ // Reset states when channel changes
384
+ setQuoteMessage(null);
385
+ setAnimatedMessageId(0);
386
+ return [7 /*endfinally*/];
387
+ case 5: return [2 /*return*/];
388
+ }
389
+ });
390
+ }); }, [sdkStore.initialized, sdkStore.sdk, channelUrl]);
391
+ // SideEffect: Scroll to the bottom
392
+ // - On the initialized message list
393
+ // - On messages sent from the thread
394
+ useAsyncLayoutEffect(function () { return __awaiter(void 0, void 0, void 0, function () {
395
+ var onSentMessageFromOtherModule, subscribes;
396
+ return __generator(this, function (_a) {
397
+ switch (_a.label) {
398
+ case 0:
399
+ if (!messageDataSource.initialized) return [3 /*break*/, 2];
400
+ // it prevents message load from previous/next before scroll to bottom finished.
401
+ preventDuplicateRequest.lock();
402
+ return [4 /*yield*/, preventDuplicateRequest.run(function () {
403
+ return new Promise(function (resolve) {
404
+ scrollPubSub.publish('scrollToBottom', resolve);
405
+ });
406
+ })];
407
+ case 1:
408
+ _a.sent();
409
+ preventDuplicateRequest.release();
410
+ _a.label = 2;
411
+ case 2:
412
+ onSentMessageFromOtherModule = function (data) {
413
+ if (data.channel.url === channelUrl)
414
+ scrollPubSub.publish('scrollToBottom', null);
415
+ };
416
+ subscribes = [
417
+ config.pubSub.subscribe(pubSubTopics.SEND_USER_MESSAGE, onSentMessageFromOtherModule),
418
+ config.pubSub.subscribe(pubSubTopics.SEND_FILE_MESSAGE, onSentMessageFromOtherModule),
419
+ ];
420
+ return [2 /*return*/, function () {
421
+ subscribes.forEach(function (subscribe) { return subscribe.remove(); });
422
+ scrollPubSub.publish('scrollToBottom', null);
423
+ }];
424
+ }
425
+ });
426
+ }); }, [messageDataSource.initialized, channelUrl]);
427
+ // SideEffect: Reset MessageCollection with startingPoint prop.
428
+ useEffect(function () {
429
+ if (typeof startingPoint === 'number') {
430
+ // We do not handle animation for message search here.
431
+ // Please update the animatedMessageId prop to trigger the animation.
432
+ scrollToMessage(startingPoint, 0, false);
433
+ }
434
+ }, [startingPoint]);
435
+ // SideEffect: Update animatedMessageId prop to state.
436
+ useEffect(function () {
437
+ if (_animatedMessageId)
438
+ setAnimatedMessageId(_animatedMessageId);
439
+ }, [_animatedMessageId]);
440
+ var scrollToBottom = usePreservedCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
441
+ return __generator(this, function (_a) {
442
+ switch (_a.label) {
443
+ case 0:
444
+ if (!scrollRef.current)
445
+ return [2 /*return*/];
446
+ setAnimatedMessageId(0);
447
+ setIsScrollBottomReached(true);
448
+ if (!(config.isOnline && messageDataSource.hasNext())) return [3 /*break*/, 2];
449
+ return [4 /*yield*/, messageDataSource.resetWithStartingPoint(Number.MAX_SAFE_INTEGER)];
450
+ case 1:
451
+ _a.sent();
452
+ scrollPubSub.publish('scrollToBottom', null);
453
+ return [3 /*break*/, 3];
454
+ case 2:
455
+ scrollPubSub.publish('scrollToBottom', null);
456
+ _a.label = 3;
457
+ case 3:
458
+ if (currentChannel && !messageDataSource.hasNext()) {
459
+ messageDataSource.resetNewMessages();
460
+ if (!disableMarkAsRead)
461
+ markAsReadScheduler.push(currentChannel);
462
+ }
463
+ return [2 /*return*/];
464
+ }
465
+ });
466
+ }); });
467
+ var scrollToMessage = usePreservedCallback(function (createdAt, messageId, animated) {
468
+ if (animated === void 0) { animated = true; }
469
+ return __awaiter(void 0, void 0, void 0, function () {
470
+ var element, parentNode, clickHandler, message, topOffset;
471
+ return __generator(this, function (_a) {
472
+ switch (_a.label) {
473
+ case 0:
474
+ element = scrollRef.current;
475
+ parentNode = element === null || element === void 0 ? void 0 : element.parentNode;
476
+ clickHandler = {
477
+ activate: function () {
478
+ if (!element || !parentNode)
479
+ return;
480
+ element.style.pointerEvents = 'auto';
481
+ parentNode.style.cursor = 'auto';
482
+ },
483
+ deactivate: function () {
484
+ if (!element || !parentNode)
485
+ return;
486
+ element.style.pointerEvents = 'none';
487
+ parentNode.style.cursor = 'wait';
488
+ },
489
+ };
490
+ clickHandler.deactivate();
491
+ setAnimatedMessageId(0);
492
+ message = messageDataSource.messages.find(function (it) { return it.messageId === messageId || it.createdAt === createdAt; });
493
+ if (!message) return [3 /*break*/, 1];
494
+ topOffset = getMessageTopOffset(message.createdAt);
495
+ if (topOffset)
496
+ scrollPubSub.publish('scroll', { top: topOffset });
497
+ if (animated)
498
+ setAnimatedMessageId(messageId);
499
+ return [3 /*break*/, 3];
500
+ case 1: return [4 /*yield*/, messageDataSource.resetWithStartingPoint(createdAt)];
501
+ case 2:
502
+ _a.sent();
503
+ setTimeout(function () {
504
+ var topOffset = getMessageTopOffset(createdAt);
505
+ if (topOffset)
506
+ scrollPubSub.publish('scroll', { top: topOffset, lazy: false });
507
+ if (animated)
508
+ setAnimatedMessageId(messageId);
509
+ });
510
+ _a.label = 3;
511
+ case 3:
512
+ clickHandler.activate();
513
+ return [2 /*return*/];
514
+ }
515
+ });
516
+ });
517
+ });
518
+ var messageActions = useMessageActions(__assign(__assign(__assign({}, props), messageDataSource), { scrollToBottom: scrollToBottom, quoteMessage: quoteMessage, replyType: replyType }));
519
+ return (React__default.createElement(GroupChannelContext.Provider, { value: __assign(__assign({
520
+ // # Props
521
+ channelUrl: channelUrl, isReactionEnabled: isReactionEnabled, isMessageGroupingEnabled: isMessageGroupingEnabled, isMultipleFilesMessageEnabled: isMultipleFilesMessageEnabled, showSearchIcon: showSearchIcon !== null && showSearchIcon !== void 0 ? showSearchIcon : config.showSearchIcon, replyType: replyType, threadReplySelectType: threadReplySelectType, disableMarkAsRead: disableMarkAsRead, scrollBehavior: scrollBehavior,
522
+ // # Custom Props
523
+ messageListQueryParams: messageListQueryParams,
524
+ // ## Message
525
+ onBeforeSendUserMessage: onBeforeSendUserMessage, onBeforeSendFileMessage: onBeforeSendFileMessage, onBeforeSendVoiceMessage: onBeforeSendVoiceMessage, onBeforeSendMultipleFilesMessage: onBeforeSendMultipleFilesMessage, onBeforeUpdateUserMessage: onBeforeUpdateUserMessage,
526
+ // ## Focusing
527
+ onMessageAnimated: onMessageAnimated,
528
+ // ## Click
529
+ onBackClick: onBackClick, onChatHeaderActionClick: onChatHeaderActionClick, onReplyInThreadClick: onReplyInThreadClick, onSearchClick: onSearchClick, onQuoteMessageClick: onQuoteMessageClick,
530
+ // ## Custom render
531
+ renderUserMentionItem: renderUserMentionItem,
532
+ // Internal Interface
533
+ currentChannel: currentChannel, nicknamesMap: nicknamesMap, scrollRef: scrollRef, scrollDistanceFromBottomRef: scrollDistanceFromBottomRef, scrollPubSub: scrollPubSub, messageInputRef: messageInputRef, quoteMessage: quoteMessage, setQuoteMessage: setQuoteMessage, animatedMessageId: animatedMessageId, setAnimatedMessageId: setAnimatedMessageId, isScrollBottomReached: isScrollBottomReached, setIsScrollBottomReached: setIsScrollBottomReached, scrollToBottom: scrollToBottom, scrollToMessage: scrollToMessage, toggleReaction: toggleReaction }, messageDataSource), messageActions) },
534
+ React__default.createElement(UserProfileProvider, { disableUserProfile: (_a = props === null || props === void 0 ? void 0 : props.disableUserProfile) !== null && _a !== void 0 ? _a : config === null || config === void 0 ? void 0 : config.disableUserProfile, renderUserProfile: (_b = props === null || props === void 0 ? void 0 : props.renderUserProfile) !== null && _b !== void 0 ? _b : config === null || config === void 0 ? void 0 : config.renderUserProfile, onUserProfileMessage: (_c = props === null || props === void 0 ? void 0 : props.onUserProfileMessage) !== null && _c !== void 0 ? _c : config === null || config === void 0 ? void 0 : config.onUserProfileMessage }, children)));
535
+ };
536
+ var useGroupChannelContext = function () {
537
+ var context = useContext(GroupChannelContext);
538
+ if (!context)
539
+ throw new Error('GroupChannelContext not found. Use within the GroupChannel module.');
540
+ return context;
541
+ };
542
+ function getCollectionCreator(groupChannel, messageListQueryParams) {
543
+ return function (defaultParams) {
544
+ var params = __assign(__assign(__assign({}, defaultParams), { prevResultLimit: 30, nextResultLimit: 30 }), messageListQueryParams);
545
+ return groupChannel.createMessageCollection(__assign(__assign({}, params), { filter: new MessageFilter(params) }));
546
+ };
547
+ }
548
+
549
+ export { GroupChannelProvider as G, useGroupChannelContext as u };
550
+ //# sourceMappingURL=bundle-7jAH-Rav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-7jAH-Rav.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}