@sendbird/uikit-react 3.2.2 → 3.2.3-rc.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 (387) hide show
  1. package/App.js +28 -28
  2. package/CHANGELOG.md +5 -0
  3. package/Channel/components/ChannelHeader.js +15 -15
  4. package/Channel/components/ChannelUI.js +35 -31
  5. package/Channel/components/ChannelUI.js.map +1 -1
  6. package/Channel/components/FileViewer.js +14 -14
  7. package/Channel/components/FrozenNotification.js +4 -4
  8. package/Channel/components/Message.js +18 -18
  9. package/Channel/components/MessageInput.js +15 -15
  10. package/Channel/components/MessageList.js +23 -22
  11. package/Channel/components/MessageList.js.map +1 -1
  12. package/Channel/components/RemoveMessageModal.js +15 -15
  13. package/Channel/components/SuggestedMentionList.js +15 -15
  14. package/Channel/components/TypingIndicator.js +14 -14
  15. package/Channel/components/UnreadCount.js +4 -4
  16. package/Channel/context.js +13 -13
  17. package/Channel.js +23 -22
  18. package/Channel.js.map +1 -1
  19. package/ChannelList/components/AddChannel.js +13 -13
  20. package/ChannelList/components/ChannelListHeader.js +7 -7
  21. package/ChannelList/components/ChannelListUI.js +25 -25
  22. package/ChannelList/components/ChannelPreview.js +19 -19
  23. package/ChannelList/components/ChannelPreviewAction.js +13 -13
  24. package/ChannelList/context.js +8 -8
  25. package/ChannelList.js +25 -25
  26. package/{ChannelListProvider-ac91b9ac.js → ChannelListProvider-000aaa30.js} +8 -8
  27. package/{ChannelListProvider-ac91b9ac.js.map → ChannelListProvider-000aaa30.js.map} +1 -1
  28. package/{ChannelProvider-7924e137.js → ChannelProvider-507ec95c.js} +58 -41
  29. package/ChannelProvider-507ec95c.js.map +1 -0
  30. package/ChannelSettings/components/ChannelProfile.js +11 -11
  31. package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
  32. package/ChannelSettings/components/EditDetailsModal.js +11 -11
  33. package/ChannelSettings/components/LeaveChannel.js +10 -10
  34. package/ChannelSettings/components/ModerationPanel.js +14 -14
  35. package/ChannelSettings/components/UserListItem.js +11 -11
  36. package/ChannelSettings/components/UserPanel.js +13 -13
  37. package/ChannelSettings/context.js +3 -3
  38. package/ChannelSettings.js +17 -17
  39. package/CreateChannel/components/CreateChannelUI.js +13 -13
  40. package/CreateChannel/components/InviteUsers.js +13 -13
  41. package/CreateChannel/components/SelectChannelType.js +10 -10
  42. package/CreateChannel/context.js +4 -4
  43. package/CreateChannel.js +13 -13
  44. package/{CreateChannelProvider-11543306.js → CreateChannelProvider-7c49ffa6.js} +1 -1
  45. package/{CreateChannelProvider-11543306.js.map → CreateChannelProvider-7c49ffa6.js.map} +1 -1
  46. package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
  47. package/CreateOpenChannel/context.js +1 -1
  48. package/CreateOpenChannel.js +9 -9
  49. package/EditUserProfile/components/EditUserProfileUI.js +12 -12
  50. package/EditUserProfile.js +12 -12
  51. package/{LocalizationContext-83cab487.js → LocalizationContext-8bec1997.js} +3 -3
  52. package/{LocalizationContext-83cab487.js.map → LocalizationContext-8bec1997.js.map} +1 -1
  53. package/{MemberList-9605f473.js → MemberList-603ab567.js} +5 -5
  54. package/{MemberList-9605f473.js.map → MemberList-603ab567.js.map} +1 -1
  55. package/MessageSearch/components/MessageSearchUI.js +11 -11
  56. package/MessageSearch/context.js +2 -2
  57. package/MessageSearch.js +11 -11
  58. package/OpenChannel/components/FrozenChannelNotification.js +4 -4
  59. package/OpenChannel/components/OpenChannelHeader.js +12 -12
  60. package/OpenChannel/components/OpenChannelInput.js +15 -15
  61. package/OpenChannel/components/OpenChannelMessage.js +20 -20
  62. package/OpenChannel/components/OpenChannelMessageList.js +22 -22
  63. package/OpenChannel/components/OpenChannelUI.js +22 -22
  64. package/OpenChannel/context.js +9 -9
  65. package/OpenChannel.js +22 -22
  66. package/OpenChannelList/components/OpenChannelListUI.js +12 -12
  67. package/OpenChannelList/components/OpenChannelPreview.js +4 -4
  68. package/OpenChannelList/context.js +4 -4
  69. package/OpenChannelList.js +12 -12
  70. package/{OpenChannelListProvider-b1734de3.js → OpenChannelListProvider-a600b965.js} +3 -3
  71. package/{OpenChannelListProvider-b1734de3.js.map → OpenChannelListProvider-a600b965.js.map} +1 -1
  72. package/{OpenChannelProvider-ccdfc3d7.js → OpenChannelProvider-09d9d35b.js} +7 -7
  73. package/{OpenChannelProvider-ccdfc3d7.js.map → OpenChannelProvider-09d9d35b.js.map} +1 -1
  74. package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
  75. package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
  76. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  77. package/OpenChannelSettings/components/OperatorUI.js +16 -16
  78. package/OpenChannelSettings/components/ParticipantUI.js +14 -14
  79. package/OpenChannelSettings/context.js +3 -3
  80. package/OpenChannelSettings.js +17 -17
  81. package/SendbirdProvider.js +9 -9
  82. package/SendbirdProvider.js.map +1 -1
  83. package/{UserProfileContext-c2fcaa62.js → UserProfileContext-ce0aa8c5.js} +1 -1
  84. package/{UserProfileContext-c2fcaa62.js.map → UserProfileContext-ce0aa8c5.js.map} +1 -1
  85. package/{_rollupPluginBabelHelpers-008a1844.js → _rollupPluginBabelHelpers-9a43324e.js} +1 -1
  86. package/_rollupPluginBabelHelpers-9a43324e.js.map +1 -0
  87. package/{actionTypes-e2247efe.js → actionTypes-162b5a41.js} +1 -1
  88. package/{actionTypes-e2247efe.js.map → actionTypes-162b5a41.js.map} +1 -1
  89. package/cjs/App.js +28 -28
  90. package/cjs/Channel/components/ChannelHeader.js +15 -15
  91. package/cjs/Channel/components/ChannelUI.js +35 -31
  92. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  93. package/cjs/Channel/components/FileViewer.js +14 -14
  94. package/cjs/Channel/components/FrozenNotification.js +4 -4
  95. package/cjs/Channel/components/Message.js +18 -18
  96. package/cjs/Channel/components/MessageInput.js +15 -15
  97. package/cjs/Channel/components/MessageList.js +23 -22
  98. package/cjs/Channel/components/MessageList.js.map +1 -1
  99. package/cjs/Channel/components/RemoveMessageModal.js +15 -15
  100. package/cjs/Channel/components/SuggestedMentionList.js +15 -15
  101. package/cjs/Channel/components/TypingIndicator.js +14 -14
  102. package/cjs/Channel/components/UnreadCount.js +4 -4
  103. package/cjs/Channel/context.js +13 -13
  104. package/cjs/Channel.js +23 -22
  105. package/cjs/Channel.js.map +1 -1
  106. package/cjs/ChannelList/components/AddChannel.js +13 -13
  107. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  108. package/cjs/ChannelList/components/ChannelListUI.js +25 -25
  109. package/cjs/ChannelList/components/ChannelPreview.js +19 -19
  110. package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
  111. package/cjs/ChannelList/context.js +8 -8
  112. package/cjs/ChannelList.js +25 -25
  113. package/cjs/{ChannelListProvider-21708c39.js → ChannelListProvider-a8455246.js} +8 -8
  114. package/cjs/{ChannelListProvider-21708c39.js.map → ChannelListProvider-a8455246.js.map} +1 -1
  115. package/cjs/{ChannelProvider-dc38544c.js → ChannelProvider-0bc23fa9.js} +58 -41
  116. package/cjs/ChannelProvider-0bc23fa9.js.map +1 -0
  117. package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
  118. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
  119. package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
  120. package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
  121. package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
  122. package/cjs/ChannelSettings/components/UserListItem.js +11 -11
  123. package/cjs/ChannelSettings/components/UserPanel.js +13 -13
  124. package/cjs/ChannelSettings/context.js +3 -3
  125. package/cjs/ChannelSettings.js +17 -17
  126. package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
  127. package/cjs/CreateChannel/components/InviteUsers.js +13 -13
  128. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  129. package/cjs/CreateChannel/context.js +4 -4
  130. package/cjs/CreateChannel.js +13 -13
  131. package/cjs/{CreateChannelProvider-266d45a0.js → CreateChannelProvider-6ba22b77.js} +1 -1
  132. package/cjs/{CreateChannelProvider-266d45a0.js.map → CreateChannelProvider-6ba22b77.js.map} +1 -1
  133. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
  134. package/cjs/CreateOpenChannel/context.js +1 -1
  135. package/cjs/CreateOpenChannel.js +9 -9
  136. package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
  137. package/cjs/EditUserProfile.js +12 -12
  138. package/cjs/{LocalizationContext-f761ec27.js → LocalizationContext-99a25fec.js} +3 -3
  139. package/cjs/{LocalizationContext-f761ec27.js.map → LocalizationContext-99a25fec.js.map} +1 -1
  140. package/cjs/{MemberList-3d1f10ce.js → MemberList-116d04c0.js} +5 -5
  141. package/cjs/{MemberList-3d1f10ce.js.map → MemberList-116d04c0.js.map} +1 -1
  142. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  143. package/cjs/MessageSearch/context.js +2 -2
  144. package/cjs/MessageSearch.js +11 -11
  145. package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
  146. package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
  147. package/cjs/OpenChannel/components/OpenChannelInput.js +15 -15
  148. package/cjs/OpenChannel/components/OpenChannelMessage.js +20 -20
  149. package/cjs/OpenChannel/components/OpenChannelMessageList.js +22 -22
  150. package/cjs/OpenChannel/components/OpenChannelUI.js +22 -22
  151. package/cjs/OpenChannel/context.js +9 -9
  152. package/cjs/OpenChannel.js +22 -22
  153. package/cjs/OpenChannelList/components/OpenChannelListUI.js +12 -12
  154. package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
  155. package/cjs/OpenChannelList/context.js +4 -4
  156. package/cjs/OpenChannelList.js +12 -12
  157. package/cjs/{OpenChannelListProvider-422c413e.js → OpenChannelListProvider-b9d6e142.js} +3 -3
  158. package/cjs/{OpenChannelListProvider-422c413e.js.map → OpenChannelListProvider-b9d6e142.js.map} +1 -1
  159. package/cjs/{OpenChannelProvider-3a28c320.js → OpenChannelProvider-9bf330a5.js} +7 -7
  160. package/cjs/{OpenChannelProvider-3a28c320.js.map → OpenChannelProvider-9bf330a5.js.map} +1 -1
  161. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
  162. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
  163. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  164. package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
  165. package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
  166. package/cjs/OpenChannelSettings/context.js +3 -3
  167. package/cjs/OpenChannelSettings.js +17 -17
  168. package/cjs/SendbirdProvider.js +9 -9
  169. package/cjs/SendbirdProvider.js.map +1 -1
  170. package/cjs/{UserProfileContext-e6c4c6cd.js → UserProfileContext-ab654d73.js} +1 -1
  171. package/cjs/{UserProfileContext-e6c4c6cd.js.map → UserProfileContext-ab654d73.js.map} +1 -1
  172. package/cjs/{_rollupPluginBabelHelpers-b0ecb658.js → _rollupPluginBabelHelpers-13e59c5b.js} +1 -1
  173. package/cjs/_rollupPluginBabelHelpers-13e59c5b.js.map +1 -0
  174. package/cjs/{actionTypes-a284f20e.js → actionTypes-d0060faf.js} +1 -1
  175. package/cjs/{actionTypes-a284f20e.js.map → actionTypes-d0060faf.js.map} +1 -1
  176. package/cjs/{color-9957dbf5.js → color-fdafbb55.js} +1 -1
  177. package/cjs/{color-9957dbf5.js.map → color-fdafbb55.js.map} +1 -1
  178. package/cjs/{compareIds-1d542fb6.js → compareIds-ef0f85a4.js} +1 -1
  179. package/cjs/{compareIds-1d542fb6.js.map → compareIds-ef0f85a4.js.map} +1 -1
  180. package/cjs/{const-e8d6d2ca.js → const-cb5708ef.js} +1 -1
  181. package/cjs/{const-e8d6d2ca.js.map → const-cb5708ef.js.map} +1 -1
  182. package/cjs/{const-cecc5538.js → const-d76d8b35.js} +1 -1
  183. package/cjs/{const-cecc5538.js.map → const-d76d8b35.js.map} +1 -1
  184. package/cjs/{context-c49da3e7.js → context-dc21b087.js} +2 -2
  185. package/cjs/{context-c49da3e7.js.map → context-dc21b087.js.map} +1 -1
  186. package/cjs/dist/index.css +55 -55
  187. package/cjs/dist/index.css.map +1 -1
  188. package/cjs/{index-3a7cc4f3.js → index-05baf89d.js} +2 -2
  189. package/cjs/{index-3a7cc4f3.js.map → index-05baf89d.js.map} +1 -1
  190. package/cjs/{index-b02c7fda.js → index-0cac9cfc.js} +2 -2
  191. package/cjs/{index-b02c7fda.js.map → index-0cac9cfc.js.map} +1 -1
  192. package/cjs/{index-b4e3b6d9.js → index-33c26c63.js} +2 -2
  193. package/cjs/{index-b4e3b6d9.js.map → index-33c26c63.js.map} +1 -1
  194. package/cjs/{index-722557fc.js → index-3eda11db.js} +1 -1
  195. package/cjs/{index-722557fc.js.map → index-3eda11db.js.map} +1 -1
  196. package/cjs/{index-a332c97a.js → index-6a2465cd.js} +1 -1
  197. package/cjs/{index-a332c97a.js.map → index-6a2465cd.js.map} +1 -1
  198. package/cjs/{index-7515c3b7.js → index-9621db78.js} +2 -2
  199. package/cjs/{index-7515c3b7.js.map → index-9621db78.js.map} +1 -1
  200. package/cjs/{index-efef37ff.js → index-9b2a6094.js} +4 -4
  201. package/cjs/{index-efef37ff.js.map → index-9b2a6094.js.map} +1 -1
  202. package/cjs/{index-fea8438a.js → index-a93c13df.js} +4 -4
  203. package/cjs/{index-fea8438a.js.map → index-a93c13df.js.map} +1 -1
  204. package/cjs/{index-57dc486a.js → index-acf156b9.js} +7 -7
  205. package/cjs/{index-57dc486a.js.map → index-acf156b9.js.map} +1 -1
  206. package/cjs/{index-d1dd6aac.js → index-ce03610e.js} +5 -5
  207. package/cjs/{index-d1dd6aac.js.map → index-ce03610e.js.map} +1 -1
  208. package/cjs/index.js +32 -32
  209. package/cjs/{openChannelUtils-f9cce808.js → openChannelUtils-9be729dd.js} +1 -1
  210. package/cjs/{openChannelUtils-f9cce808.js.map → openChannelUtils-9be729dd.js.map} +1 -1
  211. package/cjs/sendbirdSelectors.js +2 -2
  212. package/cjs/{stringSet-5a829a29.js → stringSet-6a80b57a.js} +1 -1
  213. package/cjs/{stringSet-5a829a29.js.map → stringSet-6a80b57a.js.map} +1 -1
  214. package/cjs/{topics-3bfeb62f.js → topics-18cc4bcb.js} +1 -1
  215. package/cjs/{topics-3bfeb62f.js.map → topics-18cc4bcb.js.map} +1 -1
  216. package/cjs/{tslib.es6-ca15b7cc.js → tslib.es6-21cc1c96.js} +1 -1
  217. package/cjs/{tslib.es6-ca15b7cc.js.map → tslib.es6-21cc1c96.js.map} +1 -1
  218. package/cjs/ui/Accordion.js +3 -3
  219. package/cjs/ui/AccordionGroup.js +2 -2
  220. package/cjs/ui/AdminMessage.js +3 -3
  221. package/cjs/ui/Avatar.js +2 -2
  222. package/cjs/ui/Badge.js +5 -5
  223. package/cjs/ui/Button.js +3 -3
  224. package/cjs/ui/ChannelAvatar.js +3 -3
  225. package/cjs/ui/ConnectionStatus.js +4 -4
  226. package/cjs/ui/ContextMenu.js +5 -5
  227. package/cjs/ui/DateSeparator.js +4 -4
  228. package/cjs/ui/EmojiReactions.js +7 -7
  229. package/cjs/ui/FileMessageItemBody.js +5 -5
  230. package/cjs/ui/FileViewer.js +8 -8
  231. package/cjs/ui/IconButton.js +1 -1
  232. package/cjs/ui/ImageRenderer.js +1 -1
  233. package/cjs/ui/Input.js +2 -2
  234. package/cjs/ui/Label.js +2 -2
  235. package/cjs/ui/LinkLabel.js +2 -2
  236. package/cjs/ui/Loader.js +1 -1
  237. package/cjs/ui/MentionLabel.js +10 -10
  238. package/cjs/ui/MessageContent.js +13 -13
  239. package/cjs/ui/MessageInput.js +9 -9
  240. package/cjs/ui/MessageItemMenu.js +7 -7
  241. package/cjs/ui/MessageItemReactionMenu.js +5 -5
  242. package/cjs/ui/MessageSearchFileItem.js +9 -9
  243. package/cjs/ui/MessageSearchItem.js +9 -9
  244. package/cjs/ui/MessageStatus.js +7 -7
  245. package/cjs/ui/Modal.js +6 -6
  246. package/cjs/ui/OGMessageItemBody.js +10 -10
  247. package/cjs/ui/OpenChannelAdminMessage.js +3 -3
  248. package/cjs/ui/OpenChannelAvatar.js +6 -6
  249. package/cjs/ui/OpenchannelConversationHeader.js +6 -6
  250. package/cjs/ui/OpenchannelFileMessage.js +14 -14
  251. package/cjs/ui/OpenchannelOGMessage.js +14 -14
  252. package/cjs/ui/OpenchannelThumbnailMessage.js +13 -13
  253. package/cjs/ui/OpenchannelUserMessage.js +14 -14
  254. package/cjs/ui/PlaceHolder.js +6 -6
  255. package/cjs/ui/QuoteMessage.js +6 -6
  256. package/cjs/ui/QuoteMessageInput.js +6 -6
  257. package/cjs/ui/ReactionBadge.js +3 -3
  258. package/cjs/ui/ReactionButton.js +1 -1
  259. package/cjs/ui/SortByRow.js +2 -2
  260. package/cjs/ui/TextButton.js +2 -2
  261. package/cjs/ui/TextMessageItemBody.js +10 -10
  262. package/cjs/ui/ThumbnailMessageItemBody.js +2 -2
  263. package/cjs/ui/Tooltip.js +3 -3
  264. package/cjs/ui/TooltipWrapper.js +1 -1
  265. package/cjs/ui/UnknownMessageItemBody.js +6 -6
  266. package/cjs/ui/UserListItem.js +11 -11
  267. package/cjs/ui/UserProfile.js +9 -9
  268. package/cjs/ui/Word.js +10 -10
  269. package/cjs/useSendbirdStateContext.js +1 -1
  270. package/cjs/{utils-4754b3c2.js → utils-26b0a793.js} +1 -1
  271. package/cjs/{utils-4754b3c2.js.map → utils-26b0a793.js.map} +1 -1
  272. package/cjs/{utils-56c62b34.js → utils-69e53987.js} +1 -1
  273. package/cjs/{utils-56c62b34.js.map → utils-69e53987.js.map} +1 -1
  274. package/cjs/{utils-47ccaecc.js → utils-7415db7d.js} +1 -1
  275. package/cjs/{utils-47ccaecc.js.map → utils-7415db7d.js.map} +1 -1
  276. package/cjs/{uuid-279278c6.js → uuid-92333873.js} +1 -1
  277. package/cjs/{uuid-279278c6.js.map → uuid-92333873.js.map} +1 -1
  278. package/cjs/withSendbird.js +1 -1
  279. package/{color-b8fbee14.js → color-fdffa928.js} +1 -1
  280. package/{color-b8fbee14.js.map → color-fdffa928.js.map} +1 -1
  281. package/{compareIds-eb89e686.js → compareIds-1f802ce2.js} +1 -1
  282. package/{compareIds-eb89e686.js.map → compareIds-1f802ce2.js.map} +1 -1
  283. package/{const-21c50fc9.js → const-03bf58be.js} +1 -1
  284. package/{const-21c50fc9.js.map → const-03bf58be.js.map} +1 -1
  285. package/{const-e3a99496.js → const-04252643.js} +1 -1
  286. package/{const-e3a99496.js.map → const-04252643.js.map} +1 -1
  287. package/{context-26bcf69f.js → context-578d3b09.js} +2 -2
  288. package/{context-26bcf69f.js.map → context-578d3b09.js.map} +1 -1
  289. package/dist/index.css +55 -55
  290. package/dist/index.css.map +1 -1
  291. package/{index-b84202de.js → index-0fa2c54a.js} +2 -2
  292. package/{index-b84202de.js.map → index-0fa2c54a.js.map} +1 -1
  293. package/{index-02b9dcb6.js → index-1d61d4d0.js} +4 -4
  294. package/{index-02b9dcb6.js.map → index-1d61d4d0.js.map} +1 -1
  295. package/{index-480fdda4.js → index-40e8f483.js} +2 -2
  296. package/{index-480fdda4.js.map → index-40e8f483.js.map} +1 -1
  297. package/{index-a6620ba4.js → index-416bd4e9.js} +2 -2
  298. package/{index-a6620ba4.js.map → index-416bd4e9.js.map} +1 -1
  299. package/{index-d7a65767.js → index-4a97d671.js} +1 -1
  300. package/{index-d7a65767.js.map → index-4a97d671.js.map} +1 -1
  301. package/{index-f608979d.js → index-876a278e.js} +1 -1
  302. package/{index-f608979d.js.map → index-876a278e.js.map} +1 -1
  303. package/{index-4cfa849d.js → index-c36a7b47.js} +7 -7
  304. package/{index-4cfa849d.js.map → index-c36a7b47.js.map} +1 -1
  305. package/{index-4230994b.js → index-ea167da5.js} +2 -2
  306. package/{index-4230994b.js.map → index-ea167da5.js.map} +1 -1
  307. package/{index-f5829dca.js → index-f4df58ee.js} +5 -5
  308. package/{index-f5829dca.js.map → index-f4df58ee.js.map} +1 -1
  309. package/{index-f266664f.js → index-fc81a39d.js} +4 -4
  310. package/{index-f266664f.js.map → index-fc81a39d.js.map} +1 -1
  311. package/index.d.ts +2 -1
  312. package/index.js +32 -32
  313. package/{openChannelUtils-f8bde567.js → openChannelUtils-898ccded.js} +1 -1
  314. package/{openChannelUtils-f8bde567.js.map → openChannelUtils-898ccded.js.map} +1 -1
  315. package/package.json +1 -1
  316. package/sendbirdSelectors.js +2 -2
  317. package/{stringSet-4cfbe7bc.js → stringSet-8e444561.js} +1 -1
  318. package/{stringSet-4cfbe7bc.js.map → stringSet-8e444561.js.map} +1 -1
  319. package/{topics-58d21996.js → topics-48ad3f74.js} +1 -1
  320. package/{topics-58d21996.js.map → topics-48ad3f74.js.map} +1 -1
  321. package/{tslib.es6-9a4d0074.js → tslib.es6-ca5fed0d.js} +1 -1
  322. package/{tslib.es6-9a4d0074.js.map → tslib.es6-ca5fed0d.js.map} +1 -1
  323. package/ui/Accordion.js +3 -3
  324. package/ui/AccordionGroup.js +2 -2
  325. package/ui/AdminMessage.js +3 -3
  326. package/ui/Avatar.js +2 -2
  327. package/ui/Badge.js +5 -5
  328. package/ui/Button.js +3 -3
  329. package/ui/ChannelAvatar.js +3 -3
  330. package/ui/ConnectionStatus.js +4 -4
  331. package/ui/ContextMenu.js +5 -5
  332. package/ui/DateSeparator.js +4 -4
  333. package/ui/EmojiReactions.js +7 -7
  334. package/ui/FileMessageItemBody.js +5 -5
  335. package/ui/FileViewer.js +8 -8
  336. package/ui/IconButton.js +1 -1
  337. package/ui/ImageRenderer.js +1 -1
  338. package/ui/Input.js +2 -2
  339. package/ui/Label.js +2 -2
  340. package/ui/LinkLabel.js +2 -2
  341. package/ui/Loader.js +1 -1
  342. package/ui/MentionLabel.js +10 -10
  343. package/ui/MessageContent.js +13 -13
  344. package/ui/MessageInput.js +9 -9
  345. package/ui/MessageItemMenu.js +7 -7
  346. package/ui/MessageItemReactionMenu.js +5 -5
  347. package/ui/MessageSearchFileItem.js +9 -9
  348. package/ui/MessageSearchItem.js +9 -9
  349. package/ui/MessageStatus.js +7 -7
  350. package/ui/Modal.js +6 -6
  351. package/ui/OGMessageItemBody.js +10 -10
  352. package/ui/OpenChannelAdminMessage.js +3 -3
  353. package/ui/OpenChannelAvatar.js +6 -6
  354. package/ui/OpenchannelConversationHeader.js +6 -6
  355. package/ui/OpenchannelFileMessage.js +14 -14
  356. package/ui/OpenchannelOGMessage.js +14 -14
  357. package/ui/OpenchannelThumbnailMessage.js +13 -13
  358. package/ui/OpenchannelUserMessage.js +14 -14
  359. package/ui/PlaceHolder.js +6 -6
  360. package/ui/QuoteMessage.js +6 -6
  361. package/ui/QuoteMessageInput.js +6 -6
  362. package/ui/ReactionBadge.js +3 -3
  363. package/ui/ReactionButton.js +1 -1
  364. package/ui/SortByRow.js +2 -2
  365. package/ui/TextButton.js +2 -2
  366. package/ui/TextMessageItemBody.js +10 -10
  367. package/ui/ThumbnailMessageItemBody.js +2 -2
  368. package/ui/Tooltip.js +3 -3
  369. package/ui/TooltipWrapper.js +1 -1
  370. package/ui/UnknownMessageItemBody.js +6 -6
  371. package/ui/UserListItem.js +11 -11
  372. package/ui/UserProfile.js +9 -9
  373. package/ui/Word.js +10 -10
  374. package/useSendbirdStateContext.js +1 -1
  375. package/{utils-59146385.js → utils-986f9975.js} +1 -1
  376. package/{utils-59146385.js.map → utils-986f9975.js.map} +1 -1
  377. package/{utils-23048a3f.js → utils-df07d074.js} +1 -1
  378. package/{utils-23048a3f.js.map → utils-df07d074.js.map} +1 -1
  379. package/{utils-9300425e.js → utils-eee41d99.js} +1 -1
  380. package/{utils-9300425e.js.map → utils-eee41d99.js.map} +1 -1
  381. package/{uuid-04e2d5ae.js → uuid-d9677664.js} +1 -1
  382. package/{uuid-04e2d5ae.js.map → uuid-d9677664.js.map} +1 -1
  383. package/withSendbird.js +1 -1
  384. package/ChannelProvider-7924e137.js.map +0 -1
  385. package/_rollupPluginBabelHelpers-008a1844.js.map +0 -1
  386. package/cjs/ChannelProvider-dc38544c.js.map +0 -1
  387. package/cjs/_rollupPluginBabelHelpers-b0ecb658.js.map +0 -1
package/App.js CHANGED
@@ -5,28 +5,28 @@ import ChannelList from './ChannelList.js';
5
5
  import Channel from './Channel.js';
6
6
  import ChannelSettings from './ChannelSettings.js';
7
7
  import MessageSearchPannel from './MessageSearch.js';
8
- import './_rollupPluginBabelHelpers-008a1844.js';
8
+ import './_rollupPluginBabelHelpers-9a43324e.js';
9
9
  import './withSendbird.js';
10
10
  import '@sendbird/chat';
11
11
  import '@sendbird/chat/openChannel';
12
12
  import '@sendbird/chat/groupChannel';
13
- import './actionTypes-e2247efe.js';
14
- import './index-480fdda4.js';
15
- import './tslib.es6-9a4d0074.js';
13
+ import './actionTypes-162b5a41.js';
14
+ import './index-40e8f483.js';
15
+ import './tslib.es6-ca5fed0d.js';
16
16
  import './utils/message/getOutgoingMessageState.js';
17
17
  import 'css-vars-ponyfill';
18
- import './uuid-04e2d5ae.js';
19
- import './LocalizationContext-83cab487.js';
20
- import './stringSet-4cfbe7bc.js';
21
- import './index-d7a65767.js';
22
- import './ChannelListProvider-ac91b9ac.js';
23
- import './topics-58d21996.js';
24
- import './utils-23048a3f.js';
25
- import './UserProfileContext-c2fcaa62.js';
18
+ import './uuid-d9677664.js';
19
+ import './LocalizationContext-8bec1997.js';
20
+ import './stringSet-8e444561.js';
21
+ import './index-4a97d671.js';
22
+ import './ChannelListProvider-000aaa30.js';
23
+ import './topics-48ad3f74.js';
24
+ import './utils-df07d074.js';
25
+ import './UserProfileContext-ce0aa8c5.js';
26
26
  import './useSendbirdStateContext.js';
27
27
  import './ChannelList/components/ChannelListUI.js';
28
28
  import './ChannelList/components/ChannelListHeader.js';
29
- import './index-a6620ba4.js';
29
+ import './index-416bd4e9.js';
30
30
  import './ui/IconButton.js';
31
31
  import './ui/Avatar.js';
32
32
  import './ui/ImageRenderer.js';
@@ -34,12 +34,12 @@ import './ui/Icon.js';
34
34
  import './ChannelList/components/AddChannel.js';
35
35
  import './CreateChannel.js';
36
36
  import './CreateChannel/components/CreateChannelUI.js';
37
- import './CreateChannelProvider-11543306.js';
37
+ import './CreateChannelProvider-7c49ffa6.js';
38
38
  import './sendbirdSelectors.js';
39
39
  import './CreateChannel/components/InviteUsers.js';
40
40
  import './ui/Modal.js';
41
41
  import 'react-dom';
42
- import './index-f608979d.js';
42
+ import './index-876a278e.js';
43
43
  import './ui/Button.js';
44
44
  import './ui/UserListItem.js';
45
45
  import './ui/MutedAvatarOverlay.js';
@@ -50,34 +50,34 @@ import './ui/SortByRow.js';
50
50
  import './CreateChannel/components/SelectChannelType.js';
51
51
  import './ChannelList/components/ChannelPreview.js';
52
52
  import './ui/ChannelAvatar.js';
53
- import './utils-9300425e.js';
53
+ import './utils-eee41d99.js';
54
54
  import './ui/Badge.js';
55
- import './index-f266664f.js';
56
- import './index-4230994b.js';
57
- import './index-b84202de.js';
55
+ import './index-fc81a39d.js';
56
+ import './index-ea167da5.js';
57
+ import './index-0fa2c54a.js';
58
58
  import './ui/MentionUserLabel.js';
59
59
  import './Channel/components/TypingIndicator.js';
60
- import './ChannelProvider-7924e137.js';
61
- import './compareIds-eb89e686.js';
62
- import './const-e3a99496.js';
60
+ import './ChannelProvider-507ec95c.js';
61
+ import './compareIds-1f802ce2.js';
62
+ import './const-04252643.js';
63
63
  import '@sendbird/chat/message';
64
64
  import './ui/ReactionButton.js';
65
65
  import './ui/MessageStatus.js';
66
66
  import './ui/Loader.js';
67
67
  import './ChannelList/components/ChannelPreviewAction.js';
68
68
  import './EditUserProfile.js';
69
- import './index-f5829dca.js';
69
+ import './index-f4df58ee.js';
70
70
  import './ui/Input.js';
71
71
  import './ui/TextButton.js';
72
- import './color-b8fbee14.js';
73
- import './index-02b9dcb6.js';
72
+ import './color-fdffa928.js';
73
+ import './index-1d61d4d0.js';
74
74
  import './Channel/components/ChannelUI.js';
75
75
  import './ui/ConnectionStatus.js';
76
76
  import './Channel/components/ChannelHeader.js';
77
77
  import './Channel/components/MessageList.js';
78
78
  import './Channel/components/Message.js';
79
79
  import './Channel/components/SuggestedMentionList.js';
80
- import './const-21c50fc9.js';
80
+ import './const-03bf58be.js';
81
81
  import './ui/DateSeparator.js';
82
82
  import './ui/MessageInput.js';
83
83
  import 'react-dom/server';
@@ -111,9 +111,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
111
111
  import './ChannelSettings/components/ModerationPanel.js';
112
112
  import './ui/Accordion.js';
113
113
  import './ui/AccordionGroup.js';
114
- import './context-26bcf69f.js';
114
+ import './context-578d3b09.js';
115
115
  import './ChannelSettings/components/UserListItem.js';
116
- import './MemberList-9605f473.js';
116
+ import './MemberList-603ab567.js';
117
117
  import './ChannelSettings/components/LeaveChannel.js';
118
118
  import './ChannelSettings/components/UserPanel.js';
119
119
  import './MessageSearch/components/MessageSearchUI.js';
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog - v3
2
2
 
3
+ ## [v3.2.3] (Oct 14 2022)
4
+ Feature:
5
+ * Add a prop `disableMarkAsRead` into the <Channel />
6
+ This prop disables calling markAsRead in the Channel component
7
+
3
8
  ## [v3.2.2] (Oct 13 2022)
4
9
 
5
10
  Feature:
@@ -1,28 +1,28 @@
1
1
  import React__default, { useContext } from 'react';
2
- import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-a6620ba4.js';
2
+ import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-416bd4e9.js';
3
3
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
4
4
  import IconButton from '../../ui/IconButton.js';
5
5
  import ChannelAvatar from '../../ui/ChannelAvatar.js';
6
- import { a as LocalizationContext } from '../../LocalizationContext-83cab487.js';
6
+ import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
7
7
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
8
- import { u as useChannelContext } from '../../ChannelProvider-7924e137.js';
8
+ import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
9
9
  import 'prop-types';
10
- import '../../stringSet-4cfbe7bc.js';
11
- import '../../tslib.es6-9a4d0074.js';
10
+ import '../../stringSet-8e444561.js';
11
+ import '../../tslib.es6-ca5fed0d.js';
12
12
  import '../../ui/Avatar.js';
13
13
  import '../../ui/ImageRenderer.js';
14
- import '../../uuid-04e2d5ae.js';
15
- import '../../utils-9300425e.js';
16
- import '../../index-d7a65767.js';
14
+ import '../../uuid-d9677664.js';
15
+ import '../../utils-eee41d99.js';
16
+ import '../../index-4a97d671.js';
17
17
  import '../../withSendbird.js';
18
- import '../../_rollupPluginBabelHelpers-008a1844.js';
19
- import '../../UserProfileContext-c2fcaa62.js';
20
- import '../../index-b84202de.js';
21
- import '../../topics-58d21996.js';
22
- import '../../index-480fdda4.js';
18
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
19
+ import '../../UserProfileContext-ce0aa8c5.js';
20
+ import '../../index-0fa2c54a.js';
21
+ import '../../topics-48ad3f74.js';
22
+ import '../../index-40e8f483.js';
23
23
  import '../../utils/message/getOutgoingMessageState.js';
24
- import '../../compareIds-eb89e686.js';
25
- import '../../const-e3a99496.js';
24
+ import '../../compareIds-1f802ce2.js';
25
+ import '../../const-04252643.js';
26
26
  import '@sendbird/chat/groupChannel';
27
27
  import '@sendbird/chat/message';
28
28
  import '../../ui/ContextMenu.js';
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
3
- import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-7924e137.js';
4
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-02b9dcb6.js';
3
+ import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-507ec95c.js';
4
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-1d61d4d0.js';
5
5
  import ConnectionStatus from '../../ui/ConnectionStatus.js';
6
6
  import ChannelHeader from './ChannelHeader.js';
7
7
  import MessageList from './MessageList.js';
@@ -10,40 +10,40 @@ import FrozenNotification from './FrozenNotification.js';
10
10
  import UnreadCount from './UnreadCount.js';
11
11
  import MessageInputWrapper from './MessageInput.js';
12
12
  import '../../withSendbird.js';
13
- import '../../_rollupPluginBabelHelpers-008a1844.js';
14
- import '../../UserProfileContext-c2fcaa62.js';
13
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
14
+ import '../../UserProfileContext-ce0aa8c5.js';
15
15
  import 'prop-types';
16
- import '../../index-b84202de.js';
17
- import '../../index-d7a65767.js';
18
- import '../../topics-58d21996.js';
19
- import '../../index-480fdda4.js';
20
- import '../../tslib.es6-9a4d0074.js';
16
+ import '../../index-0fa2c54a.js';
17
+ import '../../index-4a97d671.js';
18
+ import '../../topics-48ad3f74.js';
19
+ import '../../index-40e8f483.js';
20
+ import '../../tslib.es6-ca5fed0d.js';
21
21
  import '../../utils/message/getOutgoingMessageState.js';
22
- import '../../compareIds-eb89e686.js';
23
- import '../../const-e3a99496.js';
22
+ import '../../compareIds-1f802ce2.js';
23
+ import '../../const-04252643.js';
24
24
  import '@sendbird/chat/groupChannel';
25
- import '../../uuid-04e2d5ae.js';
25
+ import '../../uuid-d9677664.js';
26
26
  import '@sendbird/chat/message';
27
27
  import '../../ui/ContextMenu.js';
28
28
  import 'react-dom';
29
29
  import '../../ui/SortByRow.js';
30
- import '../../index-a6620ba4.js';
31
- import '../../stringSet-4cfbe7bc.js';
30
+ import '../../index-416bd4e9.js';
31
+ import '../../stringSet-8e444561.js';
32
32
  import '../../ui/ReactionButton.js';
33
33
  import '../../ui/ImageRenderer.js';
34
34
  import '../../ui/Icon.js';
35
- import '../../LocalizationContext-83cab487.js';
35
+ import '../../LocalizationContext-8bec1997.js';
36
36
  import '../../ui/Loader.js';
37
37
  import '../../ui/IconButton.js';
38
38
  import '../../ui/ChannelAvatar.js';
39
39
  import '../../ui/Avatar.js';
40
- import '../../utils-9300425e.js';
41
- import '../../index-4230994b.js';
40
+ import '../../utils-eee41d99.js';
41
+ import '../../index-ea167da5.js';
42
42
  import './Message.js';
43
43
  import './SuggestedMentionList.js';
44
- import '../../const-21c50fc9.js';
44
+ import '../../const-03bf58be.js';
45
45
  import '../../ui/DateSeparator.js';
46
- import '../../color-b8fbee14.js';
46
+ import '../../color-fdffa928.js';
47
47
  import '../../ui/MessageInput.js';
48
48
  import 'react-dom/server';
49
49
  import '../../ui/Button.js';
@@ -51,7 +51,7 @@ import '../../ui/MentionUserLabel.js';
51
51
  import '../../ui/MessageContent.js';
52
52
  import '../../ui/UserProfile.js';
53
53
  import '../../sendbirdSelectors.js';
54
- import '../../utils-23048a3f.js';
54
+ import '../../utils-df07d074.js';
55
55
  import '../../ui/MessageStatus.js';
56
56
  import '../../ui/MessageItemMenu.js';
57
57
  import '../../ui/MessageItemReactionMenu.js';
@@ -71,7 +71,7 @@ import '../../ui/OGMessageItemBody.js';
71
71
  import '../../ui/UnknownMessageItemBody.js';
72
72
  import '../../ui/QuoteMessage.js';
73
73
  import './FileViewer.js';
74
- import '../../index-f608979d.js';
74
+ import '../../index-876a278e.js';
75
75
  import './RemoveMessageModal.js';
76
76
  import '../../ui/Modal.js';
77
77
  import '../../ui/QuoteMessageInput.js';
@@ -98,7 +98,8 @@ var ChannelUI = function (_a) {
98
98
  setAnimatedMessageId = _f.setAnimatedMessageId,
99
99
  setHighLightedMessageId = _f.setHighLightedMessageId,
100
100
  scrollRef = _f.scrollRef,
101
- messagesDispatcher = _f.messagesDispatcher;
101
+ messagesDispatcher = _f.messagesDispatcher,
102
+ disableMarkAsRead = _f.disableMarkAsRead;
102
103
 
103
104
  var _g = useState(0),
104
105
  unreadCount = _g[0],
@@ -153,17 +154,20 @@ var ChannelUI = function (_a) {
153
154
  scrollRef.current.scrollTop = ((_b = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _b === void 0 ? void 0 : _b.scrollHeight) - ((_c = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight);
154
155
  }
155
156
 
156
- try {
157
- currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
158
- } catch (_d) {//
157
+ if (!disableMarkAsRead) {
158
+ try {
159
+ currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
160
+ } catch (_d) {//
161
+ }
162
+
163
+ messagesDispatcher({
164
+ type: MARK_AS_READ,
165
+ payload: {
166
+ channel: currentGroupChannel
167
+ }
168
+ });
159
169
  }
160
170
 
161
- messagesDispatcher({
162
- type: MARK_AS_READ,
163
- payload: {
164
- channel: currentGroupChannel
165
- }
166
- });
167
171
  setInitialTimeStamp(null);
168
172
  setAnimatedMessageId(null);
169
173
  setHighLightedMessageId(null);
@@ -1 +1 @@
1
- {"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,IAAMA,SAAS,GAA6B,UAACC,EAAD,EAS3B;;;MARfC,uBAA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IAAD,CAAnB,CAAA;MACAC,oBAAoB,CAAC,IAAD,CAApB,CAAA;MACAC,uBAAuB,CAAC,IAAD,CAAvB,CAAA;AACD,KAAA;GAjCT,CAAA,EAsCIH,OAAO,gBAEHyB,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,uBAAA;AAAf,GAAA,EAEI,CAAAvC,uBAAuB,KAAvB,IAAA,IAAAA,uBAAuB,WAAvB,SAAA,GAAAA,uBAAuB,EAAvB,kBACEuC,6BAAC,WAAD,EAAA;IAAa,IAAI,EAAEC,gBAAgB,CAACc,OAAAA;GAH1C,CAAA,CAFG,gBAUHf,cAAA,CAAA,aAAA,CAAC,WAAD,EAAA;AACE,IAAA,aAAa,EAAEnC,aADjB;AAEE,IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK,qBAAAA;AAHzB,GAAA,CAhDR,eAuDEgC,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,+BAAA;AAAf,GAAA,EAEI,CAAAlC,kBAAkB,KAAlB,IAAA,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACEkC,cAAC,CAAA,aAAA,CAAA,mBAAD,OAHN,eAMEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,iDAAA;AAAf,GAAA,EAEI,CAAAjC,qBAAqB,KAArB,IAAA,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACEiC,cAAC,CAAA,aAAA,CAAA,eAAD,EAHN,IAAA,CAAA,EAOI,CAACF,QAAD,iBACEE,cAAA,CAAA,aAAA,CAAC,gBAAD,EAAA,IAAA,CARN,CANF,CAvDF,CADF,CAAA;AA6ED;;;;"}
1
+ {"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n disableMarkAsRead,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n if (!disableMarkAsRead) {\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n }\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","disableMarkAsRead","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,IAAMA,SAAS,GAA6B,UAACC,EAAD,EAS3B;;;MARfC,uBAAuB,GAAAD,EAAA,CAAAC;MACvBC,wBAAwB,GAAAF,EAAA,CAAAE;MACxBC,sBAAsB,GAAAH,EAAA,CAAAG;MACtBC,mBAAmB,GAAAJ,EAAA,CAAAI;MACnBC,aAAa,GAAAL,EAAA,CAAAK;MACbC,kBAAkB,GAAAN,EAAA,CAAAM;MAClBC,qBAAqB,GAAAP,EAAA,CAAAO;MACrBC,qBAAqB,GAAAR,EAAA,CAAAQ;;EAEf,IAAAC,KAYFC,iBAAiB,EAZf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,GAAAH,EAAA,CAAAG,UAFN;AAAA,MAGJC,SAAS,GAAAJ,EAAA,CAAAI,SAHL;AAAA,MAIJC,WAAW,GAAAL,EAAA,CAAAK,WAJP;AAAA,MAKJC,OAAO,GAAAN,EAAA,CAAAM,OALH;AAAA,MAMJC,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IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK,qBAAAA;AAHzB,GAAA,CAlDR,eAyDEiC,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,+BAAA;AAAf,GAAA,EAEI,CAAAnC,kBAAkB,KAAlB,IAAA,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACEmC,cAAC,CAAA,aAAA,CAAA,mBAAD,OAHN,eAMEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,iDAAA;AAAf,GAAA,EAEI,CAAAlC,qBAAqB,KAArB,IAAA,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACEkC,cAAC,CAAA,aAAA,CAAA,eAAD,EAHN,IAAA,CAAA,EAOI,CAACF,QAAD,iBACEE,cAAA,CAAA,aAAA,CAAC,gBAAD,EAAA,IAAA,CARN,CANF,CAzDF,CADF,CAAA;AA+ED;;;;"}
@@ -1,26 +1,26 @@
1
1
  import React__default from 'react';
2
2
  import { createPortal } from 'react-dom';
3
3
  import Avatar from '../../ui/Avatar.js';
4
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-a6620ba4.js';
4
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-416bd4e9.js';
5
5
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
6
- import { M as MODAL_ROOT } from '../../index-f608979d.js';
7
- import { y as isSupportedFileView, z as isVideo, A as isImage } from '../../index-480fdda4.js';
6
+ import { M as MODAL_ROOT } from '../../index-876a278e.js';
7
+ import { y as isSupportedFileView, z as isVideo, A as isImage } from '../../index-40e8f483.js';
8
8
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
9
- import { u as useChannelContext } from '../../ChannelProvider-7924e137.js';
10
- import '../../tslib.es6-9a4d0074.js';
9
+ import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
10
+ import '../../tslib.es6-ca5fed0d.js';
11
11
  import '../../ui/ImageRenderer.js';
12
- import '../../uuid-04e2d5ae.js';
12
+ import '../../uuid-d9677664.js';
13
13
  import 'prop-types';
14
- import '../../stringSet-4cfbe7bc.js';
14
+ import '../../stringSet-8e444561.js';
15
15
  import '../../utils/message/getOutgoingMessageState.js';
16
16
  import '../../withSendbird.js';
17
- import '../../_rollupPluginBabelHelpers-008a1844.js';
18
- import '../../UserProfileContext-c2fcaa62.js';
19
- import '../../index-b84202de.js';
20
- import '../../index-d7a65767.js';
21
- import '../../topics-58d21996.js';
22
- import '../../compareIds-eb89e686.js';
23
- import '../../const-e3a99496.js';
17
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
18
+ import '../../UserProfileContext-ce0aa8c5.js';
19
+ import '../../index-0fa2c54a.js';
20
+ import '../../index-4a97d671.js';
21
+ import '../../topics-48ad3f74.js';
22
+ import '../../compareIds-1f802ce2.js';
23
+ import '../../const-04252643.js';
24
24
  import '@sendbird/chat/groupChannel';
25
25
  import '@sendbird/chat/message';
26
26
  import '../../ui/ContextMenu.js';
@@ -1,8 +1,8 @@
1
1
  import React__default, { useContext } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-83cab487.js';
3
- import { L as Label, a as LabelTypography } from '../../index-a6620ba4.js';
4
- import '../../stringSet-4cfbe7bc.js';
5
- import '../../index-d7a65767.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
3
+ import { L as Label, a as LabelTypography } from '../../index-416bd4e9.js';
4
+ import '../../stringSet-8e444561.js';
5
+ import '../../index-4a97d671.js';
6
6
  import 'prop-types';
7
7
 
8
8
  var FrozenNotification = function () {
@@ -1,46 +1,46 @@
1
- import { a as __spreadArray } from '../../tslib.es6-9a4d0074.js';
1
+ import { a as __spreadArray } from '../../tslib.es6-ca5fed0d.js';
2
2
  import React__default, { useState, useRef, useEffect, useLayoutEffect, useMemo } from 'react';
3
- import { f as format } from '../../index-b84202de.js';
3
+ import { f as format } from '../../index-0fa2c54a.js';
4
4
  import SuggestedMentionList from './SuggestedMentionList.js';
5
5
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
6
- import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-7924e137.js';
7
- import { h as getClassName } from '../../index-480fdda4.js';
8
- import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-e3a99496.js';
6
+ import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-507ec95c.js';
7
+ import { h as getClassName } from '../../index-40e8f483.js';
8
+ import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-04252643.js';
9
9
  import DateSeparator from '../../ui/DateSeparator.js';
10
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-a6620ba4.js';
10
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-416bd4e9.js';
11
11
  import MessageInput from '../../ui/MessageInput.js';
12
12
  import MessageContent from '../../ui/MessageContent.js';
13
13
  import FileViewer from './FileViewer.js';
14
14
  import RemoveMessage from './RemoveMessageModal.js';
15
- import { M as MessageInputKeys } from '../../const-21c50fc9.js';
16
- import { u as useLocalization } from '../../LocalizationContext-83cab487.js';
17
- import '../../index-d7a65767.js';
15
+ import { M as MessageInputKeys } from '../../const-03bf58be.js';
16
+ import { u as useLocalization } from '../../LocalizationContext-8bec1997.js';
17
+ import '../../index-4a97d671.js';
18
18
  import '../../ui/Icon.js';
19
19
  import 'prop-types';
20
20
  import '../../ui/Avatar.js';
21
21
  import '../../ui/ImageRenderer.js';
22
- import '../../uuid-04e2d5ae.js';
22
+ import '../../uuid-d9677664.js';
23
23
  import '../../withSendbird.js';
24
- import '../../_rollupPluginBabelHelpers-008a1844.js';
25
- import '../../UserProfileContext-c2fcaa62.js';
26
- import '../../topics-58d21996.js';
24
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
25
+ import '../../UserProfileContext-ce0aa8c5.js';
26
+ import '../../topics-48ad3f74.js';
27
27
  import '../../utils/message/getOutgoingMessageState.js';
28
- import '../../compareIds-eb89e686.js';
28
+ import '../../compareIds-1f802ce2.js';
29
29
  import '@sendbird/chat/groupChannel';
30
30
  import '@sendbird/chat/message';
31
31
  import '../../ui/ContextMenu.js';
32
32
  import 'react-dom';
33
33
  import '../../ui/SortByRow.js';
34
- import '../../stringSet-4cfbe7bc.js';
34
+ import '../../stringSet-8e444561.js';
35
35
  import '../../ui/ReactionButton.js';
36
- import '../../color-b8fbee14.js';
36
+ import '../../color-fdffa928.js';
37
37
  import 'react-dom/server';
38
38
  import '../../ui/IconButton.js';
39
39
  import '../../ui/Button.js';
40
40
  import '../../ui/MentionUserLabel.js';
41
41
  import '../../ui/UserProfile.js';
42
42
  import '../../sendbirdSelectors.js';
43
- import '../../utils-23048a3f.js';
43
+ import '../../utils-df07d074.js';
44
44
  import '../../ui/MessageStatus.js';
45
45
  import '../../ui/Loader.js';
46
46
  import '../../ui/MessageItemMenu.js';
@@ -60,7 +60,7 @@ import '../../ui/ThumbnailMessageItemBody.js';
60
60
  import '../../ui/OGMessageItemBody.js';
61
61
  import '../../ui/UnknownMessageItemBody.js';
62
62
  import '../../ui/QuoteMessage.js';
63
- import '../../index-f608979d.js';
63
+ import '../../index-876a278e.js';
64
64
  import '../../ui/Modal.js';
65
65
 
66
66
  var Message = function (props) {
@@ -1,30 +1,30 @@
1
- import { a as __spreadArray } from '../../tslib.es6-9a4d0074.js';
1
+ import { a as __spreadArray } from '../../tslib.es6-ca5fed0d.js';
2
2
  import React__default, { useContext, useState, useEffect } from 'react';
3
- import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-7924e137.js';
3
+ import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-507ec95c.js';
4
4
  import MessageInput from '../../ui/MessageInput.js';
5
5
  import QuoteMessageInput from '../../ui/QuoteMessageInput.js';
6
- import { a as LocalizationContext } from '../../LocalizationContext-83cab487.js';
6
+ import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
7
7
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
8
8
  import SuggestedMentionList from './SuggestedMentionList.js';
9
- import { M as MessageInputKeys } from '../../const-21c50fc9.js';
10
- import '../../UserProfileContext-c2fcaa62.js';
9
+ import { M as MessageInputKeys } from '../../const-03bf58be.js';
10
+ import '../../UserProfileContext-ce0aa8c5.js';
11
11
  import 'prop-types';
12
- import '../../index-b84202de.js';
13
- import '../../index-d7a65767.js';
14
- import '../../topics-58d21996.js';
15
- import '../../index-480fdda4.js';
12
+ import '../../index-0fa2c54a.js';
13
+ import '../../index-4a97d671.js';
14
+ import '../../topics-48ad3f74.js';
15
+ import '../../index-40e8f483.js';
16
16
  import '../../utils/message/getOutgoingMessageState.js';
17
- import '../../_rollupPluginBabelHelpers-008a1844.js';
18
- import '../../compareIds-eb89e686.js';
19
- import '../../const-e3a99496.js';
17
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
18
+ import '../../compareIds-1f802ce2.js';
19
+ import '../../const-04252643.js';
20
20
  import '@sendbird/chat/groupChannel';
21
- import '../../uuid-04e2d5ae.js';
21
+ import '../../uuid-d9677664.js';
22
22
  import '@sendbird/chat/message';
23
23
  import '../../ui/ContextMenu.js';
24
24
  import 'react-dom';
25
25
  import '../../ui/SortByRow.js';
26
- import '../../index-a6620ba4.js';
27
- import '../../stringSet-4cfbe7bc.js';
26
+ import '../../index-416bd4e9.js';
27
+ import '../../stringSet-8e444561.js';
28
28
  import '../../ui/ReactionButton.js';
29
29
  import '../../ui/ImageRenderer.js';
30
30
  import '../../ui/Icon.js';
@@ -1,39 +1,39 @@
1
1
  import React__default, { useState, useMemo } from 'react';
2
- import { i as isSameDay } from '../../index-4230994b.js';
3
- import { u as useChannelContext, c as compareMessagesForGrouping, i as isAboutSame } from '../../ChannelProvider-7924e137.js';
4
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-02b9dcb6.js';
2
+ import { i as isSameDay } from '../../index-ea167da5.js';
3
+ import { u as useChannelContext, c as compareMessagesForGrouping, i as isAboutSame } from '../../ChannelProvider-507ec95c.js';
4
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-1d61d4d0.js';
5
5
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
6
6
  import Message from './Message.js';
7
- import { u as uuidv4 } from '../../uuid-04e2d5ae.js';
8
- import '../../index-b84202de.js';
9
- import '../../index-d7a65767.js';
10
- import '../../UserProfileContext-c2fcaa62.js';
7
+ import { u as uuidv4 } from '../../uuid-d9677664.js';
8
+ import '../../index-0fa2c54a.js';
9
+ import '../../index-4a97d671.js';
10
+ import '../../UserProfileContext-ce0aa8c5.js';
11
11
  import 'prop-types';
12
12
  import '../../useSendbirdStateContext.js';
13
13
  import '../../withSendbird.js';
14
- import '../../_rollupPluginBabelHelpers-008a1844.js';
15
- import '../../topics-58d21996.js';
16
- import '../../index-480fdda4.js';
17
- import '../../tslib.es6-9a4d0074.js';
14
+ import '../../_rollupPluginBabelHelpers-9a43324e.js';
15
+ import '../../topics-48ad3f74.js';
16
+ import '../../index-40e8f483.js';
17
+ import '../../tslib.es6-ca5fed0d.js';
18
18
  import '../../utils/message/getOutgoingMessageState.js';
19
- import '../../compareIds-eb89e686.js';
20
- import '../../const-e3a99496.js';
19
+ import '../../compareIds-1f802ce2.js';
20
+ import '../../const-04252643.js';
21
21
  import '@sendbird/chat/groupChannel';
22
22
  import '@sendbird/chat/message';
23
23
  import '../../ui/ContextMenu.js';
24
24
  import 'react-dom';
25
25
  import '../../ui/SortByRow.js';
26
- import '../../index-a6620ba4.js';
27
- import '../../stringSet-4cfbe7bc.js';
26
+ import '../../index-416bd4e9.js';
27
+ import '../../stringSet-8e444561.js';
28
28
  import '../../ui/ReactionButton.js';
29
29
  import '../../ui/ImageRenderer.js';
30
- import '../../LocalizationContext-83cab487.js';
30
+ import '../../LocalizationContext-8bec1997.js';
31
31
  import '../../ui/Loader.js';
32
32
  import './SuggestedMentionList.js';
33
33
  import '../../ui/Avatar.js';
34
- import '../../const-21c50fc9.js';
34
+ import '../../const-03bf58be.js';
35
35
  import '../../ui/DateSeparator.js';
36
- import '../../color-b8fbee14.js';
36
+ import '../../color-fdffa928.js';
37
37
  import '../../ui/MessageInput.js';
38
38
  import 'react-dom/server';
39
39
  import '../../ui/IconButton.js';
@@ -42,7 +42,7 @@ import '../../ui/MentionUserLabel.js';
42
42
  import '../../ui/MessageContent.js';
43
43
  import '../../ui/UserProfile.js';
44
44
  import '../../sendbirdSelectors.js';
45
- import '../../utils-23048a3f.js';
45
+ import '../../utils-df07d074.js';
46
46
  import '../../ui/MessageStatus.js';
47
47
  import '../../ui/MessageItemMenu.js';
48
48
  import '../../ui/MessageItemReactionMenu.js';
@@ -62,7 +62,7 @@ import '../../ui/OGMessageItemBody.js';
62
62
  import '../../ui/UnknownMessageItemBody.js';
63
63
  import '../../ui/QuoteMessage.js';
64
64
  import './FileViewer.js';
65
- import '../../index-f608979d.js';
65
+ import '../../index-876a278e.js';
66
66
  import './RemoveMessageModal.js';
67
67
  import '../../ui/Modal.js';
68
68
 
@@ -85,7 +85,8 @@ var MessageList = function (props) {
85
85
  onScrollDownCallback = _a.onScrollDownCallback,
86
86
  messagesDispatcher = _a.messagesDispatcher,
87
87
  messageActionTypes = _a.messageActionTypes,
88
- currentGroupChannel = _a.currentGroupChannel;
88
+ currentGroupChannel = _a.currentGroupChannel,
89
+ disableMarkAsRead = _a.disableMarkAsRead;
89
90
 
90
91
  var _b = useState(0),
91
92
  scrollBottom = _b[0],
@@ -143,7 +144,7 @@ var MessageList = function (props) {
143
144
 
144
145
  setTimeout(function () {
145
146
  // mark as read if scroll is at end
146
- if (clientHeight + scrollTop === scrollHeight) {
147
+ if (!disableMarkAsRead && clientHeight + scrollTop === scrollHeight) {
147
148
  messagesDispatcher({
148
149
  type: messageActionTypes.MARK_AS_READ,
149
150
  payload: {