@sendbird/uikit-react 3.0.0-beta.3 → 3.0.0-beta.6

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 (416) hide show
  1. package/App.js +31 -30
  2. package/App.js.map +1 -1
  3. package/Channel/components/ChannelHeader.js +15 -15
  4. package/Channel/components/ChannelUI.js +24 -23
  5. package/Channel/components/ChannelUI.js.map +1 -1
  6. package/Channel/components/FileViewer.js +14 -14
  7. package/Channel/components/FrozenNotification.js +5 -5
  8. package/Channel/components/Message.js +25 -20
  9. package/Channel/components/Message.js.map +1 -1
  10. package/Channel/components/MessageInput.js +27 -17
  11. package/Channel/components/MessageInput.js.map +1 -1
  12. package/Channel/components/MessageList.js +23 -22
  13. package/Channel/components/MessageList.js.map +1 -1
  14. package/Channel/components/RemoveMessageModal.js +17 -17
  15. package/Channel/components/SuggestedMentionList.js +94 -43
  16. package/Channel/components/SuggestedMentionList.js.map +1 -1
  17. package/Channel/components/TypingIndicator.js +14 -14
  18. package/Channel/components/UnreadCount.js +5 -5
  19. package/Channel/context.js +13 -13
  20. package/Channel.js +24 -23
  21. package/Channel.js.map +1 -1
  22. package/ChannelList/components/AddChannel.js +14 -14
  23. package/ChannelList/components/ChannelListHeader.js +7 -7
  24. package/ChannelList/components/ChannelListUI.js +26 -26
  25. package/ChannelList/components/ChannelPreview.js +21 -20
  26. package/ChannelList/components/ChannelPreview.js.map +1 -1
  27. package/ChannelList/components/ChannelPreviewAction.js +14 -14
  28. package/ChannelList/context.js +8 -8
  29. package/ChannelList.js +26 -26
  30. package/{ChannelListProvider-d602a166.js → ChannelListProvider-737ee36f.js} +30 -33
  31. package/ChannelListProvider-737ee36f.js.map +1 -0
  32. package/{ChannelProvider-cf8fc05a.js → ChannelProvider-34834493.js} +13 -13
  33. package/ChannelProvider-34834493.js.map +1 -0
  34. package/ChannelSettings/components/AdminPanel.js +15 -15
  35. package/ChannelSettings/components/ChannelProfile.js +13 -13
  36. package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
  37. package/ChannelSettings/components/EditDetailsModal.js +13 -13
  38. package/ChannelSettings/components/LeaveChannel.js +10 -10
  39. package/ChannelSettings/components/UserListItem.js +11 -11
  40. package/ChannelSettings/components/UserPanel.js +14 -14
  41. package/ChannelSettings/context.js +3 -3
  42. package/ChannelSettings.js +18 -18
  43. package/CreateChannel/components/CreateChannelUI.js +14 -14
  44. package/CreateChannel/components/CreateChannelUI.js.map +1 -1
  45. package/CreateChannel/components/InviteMembers.js +14 -14
  46. package/CreateChannel/components/SelectChannelType.js +10 -10
  47. package/CreateChannel/context.js +3 -3
  48. package/CreateChannel.js +14 -14
  49. package/{CreateChannelProvider-3f3dafed.js → CreateChannelProvider-3d3e4a7c.js} +1 -1
  50. package/{CreateChannelProvider-3f3dafed.js.map → CreateChannelProvider-3d3e4a7c.js.map} +1 -1
  51. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  52. package/EditUserProfile.js +13 -13
  53. package/{LocalizationContext-b970a73c.js → LocalizationContext-5b0a9339.js} +3 -3
  54. package/{LocalizationContext-b970a73c.js.map → LocalizationContext-5b0a9339.js.map} +1 -1
  55. package/{MemberList-9d29bee4.js → MemberList-6e33a562.js} +5 -5
  56. package/{MemberList-9d29bee4.js.map → MemberList-6e33a562.js.map} +1 -1
  57. package/MessageSearch/components/MessageSearchUI.js +11 -11
  58. package/MessageSearch/context.js +2 -2
  59. package/MessageSearch.js +11 -11
  60. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  61. package/OpenChannel/components/OpenChannelHeader.js +12 -12
  62. package/OpenChannel/components/OpenChannelInput.js +16 -16
  63. package/OpenChannel/components/OpenChannelInput.js.map +1 -1
  64. package/OpenChannel/components/OpenChannelMessage.js +21 -21
  65. package/OpenChannel/components/OpenChannelMessageList.js +23 -23
  66. package/OpenChannel/components/OpenChannelUI.js +23 -23
  67. package/OpenChannel/context.js +9 -9
  68. package/OpenChannel.js +23 -23
  69. package/{OpenChannelProvider-821fb008.js → OpenChannelProvider-9ef0d52a.js} +7 -7
  70. package/{OpenChannelProvider-821fb008.js.map → OpenChannelProvider-9ef0d52a.js.map} +1 -1
  71. package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
  72. package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
  73. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  74. package/OpenChannelSettings/components/OperatorUI.js +16 -16
  75. package/OpenChannelSettings/components/ParticipantUI.js +14 -14
  76. package/OpenChannelSettings/context.js +2 -2
  77. package/OpenChannelSettings.js +17 -17
  78. package/SendbirdProvider.js +25 -10
  79. package/SendbirdProvider.js.map +1 -1
  80. package/{UserProfileContext-f4ff4291.js → UserProfileContext-b6d89d0d.js} +1 -1
  81. package/{UserProfileContext-f4ff4291.js.map → UserProfileContext-b6d89d0d.js.map} +1 -1
  82. package/{_rollupPluginBabelHelpers-6bf18550.js → _rollupPluginBabelHelpers-d10f91b9.js} +1 -1
  83. package/{_rollupPluginBabelHelpers-6bf18550.js.map → _rollupPluginBabelHelpers-d10f91b9.js.map} +1 -1
  84. package/{actionTypes-8e320ded.js → actionTypes-17920f59.js} +1 -1
  85. package/{actionTypes-8e320ded.js.map → actionTypes-17920f59.js.map} +1 -1
  86. package/cjs/App.js +31 -30
  87. package/cjs/App.js.map +1 -1
  88. package/cjs/Channel/components/ChannelHeader.js +15 -15
  89. package/cjs/Channel/components/ChannelUI.js +24 -23
  90. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  91. package/cjs/Channel/components/FileViewer.js +14 -14
  92. package/cjs/Channel/components/FrozenNotification.js +5 -5
  93. package/cjs/Channel/components/Message.js +25 -20
  94. package/cjs/Channel/components/Message.js.map +1 -1
  95. package/cjs/Channel/components/MessageInput.js +27 -17
  96. package/cjs/Channel/components/MessageInput.js.map +1 -1
  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 +17 -17
  100. package/cjs/Channel/components/SuggestedMentionList.js +94 -43
  101. package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
  102. package/cjs/Channel/components/TypingIndicator.js +14 -14
  103. package/cjs/Channel/components/UnreadCount.js +5 -5
  104. package/cjs/Channel/context.js +13 -13
  105. package/cjs/Channel.js +24 -23
  106. package/cjs/Channel.js.map +1 -1
  107. package/cjs/ChannelList/components/AddChannel.js +14 -14
  108. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  109. package/cjs/ChannelList/components/ChannelListUI.js +26 -26
  110. package/cjs/ChannelList/components/ChannelPreview.js +21 -20
  111. package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
  112. package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -14
  113. package/cjs/ChannelList/context.js +9 -8
  114. package/cjs/ChannelList/context.js.map +1 -1
  115. package/cjs/ChannelList.js +26 -26
  116. package/cjs/{ChannelListProvider-64db9f70.js → ChannelListProvider-f910e236.js} +30 -32
  117. package/cjs/ChannelListProvider-f910e236.js.map +1 -0
  118. package/cjs/{ChannelProvider-5e8e33b1.js → ChannelProvider-86e2e68c.js} +13 -13
  119. package/cjs/ChannelProvider-86e2e68c.js.map +1 -0
  120. package/cjs/ChannelSettings/components/AdminPanel.js +15 -15
  121. package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
  122. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
  123. package/cjs/ChannelSettings/components/EditDetailsModal.js +13 -13
  124. package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
  125. package/cjs/ChannelSettings/components/UserListItem.js +11 -11
  126. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  127. package/cjs/ChannelSettings/context.js +3 -3
  128. package/cjs/ChannelSettings.js +18 -18
  129. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  130. package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
  131. package/cjs/CreateChannel/components/InviteMembers.js +14 -14
  132. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  133. package/cjs/CreateChannel/context.js +3 -3
  134. package/cjs/CreateChannel.js +14 -14
  135. package/cjs/{CreateChannelProvider-dcf7f906.js → CreateChannelProvider-07992a6d.js} +1 -1
  136. package/cjs/{CreateChannelProvider-dcf7f906.js.map → CreateChannelProvider-07992a6d.js.map} +1 -1
  137. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  138. package/cjs/EditUserProfile.js +13 -13
  139. package/cjs/{LocalizationContext-382a9ef1.js → LocalizationContext-79514649.js} +3 -3
  140. package/cjs/{LocalizationContext-382a9ef1.js.map → LocalizationContext-79514649.js.map} +1 -1
  141. package/cjs/{MemberList-03a241cd.js → MemberList-015c1075.js} +5 -5
  142. package/cjs/{MemberList-03a241cd.js.map → MemberList-015c1075.js.map} +1 -1
  143. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  144. package/cjs/MessageSearch/context.js +2 -2
  145. package/cjs/MessageSearch.js +11 -11
  146. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  147. package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
  148. package/cjs/OpenChannel/components/OpenChannelInput.js +16 -16
  149. package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
  150. package/cjs/OpenChannel/components/OpenChannelMessage.js +21 -21
  151. package/cjs/OpenChannel/components/OpenChannelMessageList.js +23 -23
  152. package/cjs/OpenChannel/components/OpenChannelUI.js +23 -23
  153. package/cjs/OpenChannel/context.js +9 -9
  154. package/cjs/OpenChannel.js +23 -23
  155. package/cjs/{OpenChannelProvider-9000ccb9.js → OpenChannelProvider-445f214c.js} +7 -7
  156. package/cjs/{OpenChannelProvider-9000ccb9.js.map → OpenChannelProvider-445f214c.js.map} +1 -1
  157. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
  158. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
  159. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  160. package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
  161. package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
  162. package/cjs/OpenChannelSettings/context.js +2 -2
  163. package/cjs/OpenChannelSettings.js +17 -17
  164. package/cjs/SendbirdProvider.js +25 -10
  165. package/cjs/SendbirdProvider.js.map +1 -1
  166. package/cjs/{UserProfileContext-0b7ef11a.js → UserProfileContext-12cfee31.js} +1 -1
  167. package/cjs/{UserProfileContext-0b7ef11a.js.map → UserProfileContext-12cfee31.js.map} +1 -1
  168. package/cjs/{_rollupPluginBabelHelpers-6193d45d.js → _rollupPluginBabelHelpers-f802e0e8.js} +1 -1
  169. package/cjs/{_rollupPluginBabelHelpers-6193d45d.js.map → _rollupPluginBabelHelpers-f802e0e8.js.map} +1 -1
  170. package/cjs/{actionTypes-092bc172.js → actionTypes-93161807.js} +1 -1
  171. package/cjs/{actionTypes-092bc172.js.map → actionTypes-93161807.js.map} +1 -1
  172. package/cjs/{color-1816dacf.js → color-c53ac792.js} +1 -1
  173. package/cjs/{color-1816dacf.js.map → color-c53ac792.js.map} +1 -1
  174. package/cjs/{compareIds-e9bca8c4.js → compareIds-37e8380c.js} +1 -1
  175. package/cjs/{compareIds-e9bca8c4.js.map → compareIds-37e8380c.js.map} +1 -1
  176. package/cjs/{const-c65837c1.js → const-3024c719.js} +1 -1
  177. package/cjs/{const-c65837c1.js.map → const-3024c719.js.map} +1 -1
  178. package/cjs/{const-d9f4d880.js → const-489c46b6.js} +1 -1
  179. package/cjs/{const-d9f4d880.js.map → const-489c46b6.js.map} +1 -1
  180. package/cjs/{context-6ebf3379.js → context-961d5b11.js} +2 -2
  181. package/cjs/{context-6ebf3379.js.map → context-961d5b11.js.map} +1 -1
  182. package/cjs/{index.css → dist/index.css} +74 -58
  183. package/cjs/dist/index.css.map +1 -0
  184. package/cjs/{index-4f40f311.js → index-07623c8b.js} +2 -2
  185. package/cjs/{index-4f40f311.js.map → index-07623c8b.js.map} +1 -1
  186. package/cjs/{index-20a06ed6.js → index-0b2e2c2a.js} +1 -1
  187. package/cjs/{index-20a06ed6.js.map → index-0b2e2c2a.js.map} +1 -1
  188. package/cjs/{index-01072ac9.js → index-2180f74f.js} +3 -3
  189. package/cjs/{index-01072ac9.js.map → index-2180f74f.js.map} +1 -1
  190. package/cjs/{index-75453415.js → index-4e8b61f7.js} +10 -9
  191. package/cjs/index-4e8b61f7.js.map +1 -0
  192. package/cjs/{index-948426a8.js → index-5615eab4.js} +4 -4
  193. package/cjs/{index-948426a8.js.map → index-5615eab4.js.map} +1 -1
  194. package/cjs/{index-d57081d1.js → index-5eaebc66.js} +6 -6
  195. package/cjs/{index-d57081d1.js.map → index-5eaebc66.js.map} +1 -1
  196. package/cjs/{index-f1971e28.js → index-a20b40c4.js} +3 -3
  197. package/cjs/{index-f1971e28.js.map → index-a20b40c4.js.map} +1 -1
  198. package/cjs/{index-212a11f2.js → index-bc563d47.js} +6 -2
  199. package/cjs/index-bc563d47.js.map +1 -0
  200. package/cjs/{index-a2ce047a.js → index-cb53adf5.js} +2 -2
  201. package/cjs/{index-a2ce047a.js.map → index-cb53adf5.js.map} +1 -1
  202. package/cjs/{index-e63da805.js → index-d25a7cbf.js} +4 -4
  203. package/cjs/{index-e63da805.js.map → index-d25a7cbf.js.map} +1 -1
  204. package/cjs/{index-2faa2f93.js → index-d70ac86e.js} +1 -1
  205. package/cjs/{index-2faa2f93.js.map → index-d70ac86e.js.map} +1 -1
  206. package/cjs/index.js +34 -33
  207. package/cjs/index.js.map +1 -1
  208. package/cjs/{openChannelUtils-16f29ba2.js → openChannelUtils-7fb1abc6.js} +1 -1
  209. package/cjs/{openChannelUtils-16f29ba2.js.map → openChannelUtils-7fb1abc6.js.map} +1 -1
  210. package/cjs/sendBirdSelectors.js +1 -1
  211. package/cjs/{stringSet-b9ea6eef.js → stringSet-ae448472.js} +1 -1
  212. package/cjs/{stringSet-b9ea6eef.js.map → stringSet-ae448472.js.map} +1 -1
  213. package/cjs/{topics-11048db8.js → topics-bdbff23e.js} +1 -1
  214. package/cjs/{topics-11048db8.js.map → topics-bdbff23e.js.map} +1 -1
  215. package/cjs/{tslib.es6-07dd6257.js → tslib.es6-a7af7bb8.js} +1 -1
  216. package/cjs/{tslib.es6-07dd6257.js.map → tslib.es6-a7af7bb8.js.map} +1 -1
  217. package/cjs/ui/Accordion.js +4 -4
  218. package/cjs/ui/AccordionGroup.js +2 -2
  219. package/cjs/ui/AdminMessage.js +3 -3
  220. package/cjs/ui/Avatar.js +3 -3
  221. package/cjs/ui/Badge.js +5 -5
  222. package/cjs/ui/Button.js +4 -4
  223. package/cjs/ui/ChannelAvatar.js +4 -4
  224. package/cjs/ui/ChannelPreview.js +12 -12
  225. package/cjs/ui/ChatHeader.js +8 -8
  226. package/cjs/ui/Checkbox.js +1 -1
  227. package/cjs/ui/ConnectionStatus.js +5 -5
  228. package/cjs/ui/ContextMenu.js +5 -5
  229. package/cjs/ui/DateSeparator.js +4 -4
  230. package/cjs/ui/Dropdown.js +3 -3
  231. package/cjs/ui/EmojiReactions.js +7 -7
  232. package/cjs/ui/FileMessageItemBody.js +6 -6
  233. package/cjs/ui/FileViewer.js +7 -7
  234. package/cjs/ui/Icon.js +1 -1
  235. package/cjs/ui/IconButton.js +1 -1
  236. package/cjs/ui/ImageRenderer.js +1 -1
  237. package/cjs/ui/Input.js +3 -3
  238. package/cjs/ui/Label.js +3 -3
  239. package/cjs/ui/LinkLabel.js +3 -3
  240. package/cjs/ui/Loader.js +1 -1
  241. package/cjs/ui/MentionLabel.js +98 -0
  242. package/cjs/ui/MentionLabel.js.map +1 -0
  243. package/cjs/ui/MessageContent.js +15 -14
  244. package/cjs/ui/MessageContent.js.map +1 -1
  245. package/cjs/ui/MessageInput.js +18 -14
  246. package/cjs/ui/MessageInput.js.map +1 -1
  247. package/cjs/ui/MessageItemMenu.js +7 -7
  248. package/cjs/ui/MessageItemReactionMenu.js +5 -5
  249. package/cjs/ui/MessageSearchFileItem.js +10 -10
  250. package/cjs/ui/MessageSearchItem.js +10 -10
  251. package/cjs/ui/MessageStatus.js +8 -8
  252. package/cjs/ui/Modal.js +8 -8
  253. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  254. package/cjs/ui/OGMessageItemBody.js +20 -9
  255. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  256. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  257. package/cjs/ui/OpenChannelAvatar.js +7 -7
  258. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  259. package/cjs/ui/OpenchannelFileMessage.js +14 -14
  260. package/cjs/ui/OpenchannelOGMessage.js +14 -14
  261. package/cjs/ui/OpenchannelThumbnailMessage.js +13 -13
  262. package/cjs/ui/OpenchannelUserMessage.js +14 -14
  263. package/cjs/ui/PlaceHolder.js +6 -6
  264. package/cjs/ui/QuoteMessage.js +7 -7
  265. package/cjs/ui/QuoteMessageInput.js +7 -7
  266. package/cjs/ui/ReactionBadge.js +3 -3
  267. package/cjs/ui/ReactionButton.js +1 -1
  268. package/cjs/ui/SortByRow.js +1 -1
  269. package/cjs/ui/TextButton.js +2 -2
  270. package/cjs/ui/TextMessageItemBody.js +22 -9
  271. package/cjs/ui/TextMessageItemBody.js.map +1 -1
  272. package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
  273. package/cjs/ui/Tooltip.js +3 -3
  274. package/cjs/ui/TooltipWrapper.js +1 -1
  275. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  276. package/cjs/ui/UserListItem.js +11 -11
  277. package/cjs/ui/UserProfile.js +13 -13
  278. package/cjs/ui/UserProfile.js.map +1 -1
  279. package/cjs/useSendbirdStateContext.js +1 -1
  280. package/cjs/{utils-53d332a6.js → utils-03155980.js} +1 -1
  281. package/cjs/{utils-53d332a6.js.map → utils-03155980.js.map} +1 -1
  282. package/cjs/{utils-94ae6cec.js → utils-0d5ecf05.js} +1 -1
  283. package/cjs/{utils-94ae6cec.js.map → utils-0d5ecf05.js.map} +1 -1
  284. package/cjs/{utils-3240365f.js → utils-139469a5.js} +1 -1
  285. package/cjs/{utils-3240365f.js.map → utils-139469a5.js.map} +1 -1
  286. package/cjs/{uuid-172844fb.js → uuid-03009a31.js} +1 -1
  287. package/cjs/{uuid-172844fb.js.map → uuid-03009a31.js.map} +1 -1
  288. package/cjs/withSendBird.js +1 -1
  289. package/{color-38dc84d3.js → color-6b259e40.js} +1 -1
  290. package/{color-38dc84d3.js.map → color-6b259e40.js.map} +1 -1
  291. package/{compareIds-f01e0c3c.js → compareIds-982972e8.js} +1 -1
  292. package/{compareIds-f01e0c3c.js.map → compareIds-982972e8.js.map} +1 -1
  293. package/{const-d46f09a1.js → const-da3968a5.js} +1 -1
  294. package/{const-d46f09a1.js.map → const-da3968a5.js.map} +1 -1
  295. package/{const-b6685801.js → const-e3d1e0ec.js} +1 -1
  296. package/{const-b6685801.js.map → const-e3d1e0ec.js.map} +1 -1
  297. package/{context-b5168bd0.js → context-3d5505d0.js} +2 -2
  298. package/{context-b5168bd0.js.map → context-3d5505d0.js.map} +1 -1
  299. package/dist/index.css +74 -58
  300. package/dist/index.css.map +1 -1
  301. package/{index-3bd4a058.js → index-065ef420.js} +6 -6
  302. package/{index-3bd4a058.js.map → index-065ef420.js.map} +1 -1
  303. package/{index-d0b30cd5.js → index-17cf7808.js} +3 -3
  304. package/{index-d0b30cd5.js.map → index-17cf7808.js.map} +1 -1
  305. package/{index-b12b270e.js → index-691dc8da.js} +4 -4
  306. package/{index-b12b270e.js.map → index-691dc8da.js.map} +1 -1
  307. package/{index-62fd2db7.js → index-81a93b05.js} +10 -9
  308. package/index-81a93b05.js.map +1 -0
  309. package/{index-e6d0889d.js → index-902c2068.js} +6 -3
  310. package/index-902c2068.js.map +1 -0
  311. package/{index-1c2588aa.js → index-92160328.js} +2 -2
  312. package/{index-1c2588aa.js.map → index-92160328.js.map} +1 -1
  313. package/{index-6381b534.js → index-94489c17.js} +1 -1
  314. package/{index-6381b534.js.map → index-94489c17.js.map} +1 -1
  315. package/{index-9afb4d01.js → index-95677caf.js} +2 -2
  316. package/{index-9afb4d01.js.map → index-95677caf.js.map} +1 -1
  317. package/{index-2dce3a04.js → index-9deb1389.js} +3 -3
  318. package/{index-2dce3a04.js.map → index-9deb1389.js.map} +1 -1
  319. package/{index-a6675155.js → index-a755675d.js} +4 -4
  320. package/{index-a6675155.js.map → index-a755675d.js.map} +1 -1
  321. package/{index-d0fe8fe1.js → index-db6a4860.js} +1 -1
  322. package/{index-d0fe8fe1.js.map → index-db6a4860.js.map} +1 -1
  323. package/index.d.ts +15 -3
  324. package/index.js +34 -33
  325. package/index.js.map +1 -1
  326. package/{openChannelUtils-22ed0258.js → openChannelUtils-2cd370a7.js} +1 -1
  327. package/{openChannelUtils-22ed0258.js.map → openChannelUtils-2cd370a7.js.map} +1 -1
  328. package/package.json +1 -1
  329. package/sendBirdSelectors.js +1 -1
  330. package/{stringSet-2e6c1d2c.js → stringSet-5a85ff4b.js} +1 -1
  331. package/{stringSet-2e6c1d2c.js.map → stringSet-5a85ff4b.js.map} +1 -1
  332. package/{topics-67738aac.js → topics-24a660ee.js} +1 -1
  333. package/{topics-67738aac.js.map → topics-24a660ee.js.map} +1 -1
  334. package/{tslib.es6-b6e567bd.js → tslib.es6-2c4d01e9.js} +1 -1
  335. package/{tslib.es6-b6e567bd.js.map → tslib.es6-2c4d01e9.js.map} +1 -1
  336. package/ui/Accordion.js +4 -4
  337. package/ui/AccordionGroup.js +2 -2
  338. package/ui/AdminMessage.js +3 -3
  339. package/ui/Avatar.js +3 -3
  340. package/ui/Badge.js +5 -5
  341. package/ui/Button.js +4 -4
  342. package/ui/ChannelAvatar.js +4 -4
  343. package/ui/ChannelPreview.js +12 -12
  344. package/ui/ChatHeader.js +8 -8
  345. package/ui/Checkbox.js +1 -1
  346. package/ui/ConnectionStatus.js +5 -5
  347. package/ui/ContextMenu.js +5 -5
  348. package/ui/DateSeparator.js +4 -4
  349. package/ui/Dropdown.js +3 -3
  350. package/ui/EmojiReactions.js +7 -7
  351. package/ui/FileMessageItemBody.js +6 -6
  352. package/ui/FileViewer.js +7 -7
  353. package/ui/Icon.js +1 -1
  354. package/ui/IconButton.js +1 -1
  355. package/ui/ImageRenderer.js +1 -1
  356. package/ui/Input.js +3 -3
  357. package/ui/Label.js +3 -3
  358. package/ui/LinkLabel.js +3 -3
  359. package/ui/Loader.js +1 -1
  360. package/ui/MentionLabel.js +92 -0
  361. package/ui/MentionLabel.js.map +1 -0
  362. package/ui/MessageContent.js +15 -14
  363. package/ui/MessageContent.js.map +1 -1
  364. package/ui/MessageInput.js +18 -14
  365. package/ui/MessageInput.js.map +1 -1
  366. package/ui/MessageItemMenu.js +7 -7
  367. package/ui/MessageItemReactionMenu.js +5 -5
  368. package/ui/MessageSearchFileItem.js +10 -10
  369. package/ui/MessageSearchItem.js +10 -10
  370. package/ui/MessageStatus.js +8 -8
  371. package/ui/Modal.js +8 -8
  372. package/ui/MutedAvatarOverlay.js +1 -1
  373. package/ui/OGMessageItemBody.js +20 -9
  374. package/ui/OGMessageItemBody.js.map +1 -1
  375. package/ui/OpenChannelAdminMessage.js +4 -4
  376. package/ui/OpenChannelAvatar.js +7 -7
  377. package/ui/OpenchannelConversationHeader.js +7 -7
  378. package/ui/OpenchannelFileMessage.js +14 -14
  379. package/ui/OpenchannelOGMessage.js +14 -14
  380. package/ui/OpenchannelThumbnailMessage.js +13 -13
  381. package/ui/OpenchannelUserMessage.js +14 -14
  382. package/ui/PlaceHolder.js +6 -6
  383. package/ui/QuoteMessage.js +7 -7
  384. package/ui/QuoteMessageInput.js +7 -7
  385. package/ui/ReactionBadge.js +3 -3
  386. package/ui/ReactionButton.js +1 -1
  387. package/ui/SortByRow.js +1 -1
  388. package/ui/TextButton.js +2 -2
  389. package/ui/TextMessageItemBody.js +22 -9
  390. package/ui/TextMessageItemBody.js.map +1 -1
  391. package/ui/ThumbnailMessageItemBody.js +3 -3
  392. package/ui/Tooltip.js +3 -3
  393. package/ui/TooltipWrapper.js +1 -1
  394. package/ui/UnknownMessageItemBody.js +7 -7
  395. package/ui/UserListItem.js +11 -11
  396. package/ui/UserProfile.js +13 -13
  397. package/ui/UserProfile.js.map +1 -1
  398. package/useSendbirdStateContext.js +1 -1
  399. package/{utils-28de36e9.js → utils-57c79308.js} +1 -1
  400. package/{utils-28de36e9.js.map → utils-57c79308.js.map} +1 -1
  401. package/{utils-f5c9ef64.js → utils-85d3d94c.js} +1 -1
  402. package/{utils-f5c9ef64.js.map → utils-85d3d94c.js.map} +1 -1
  403. package/{utils-04c291d8.js → utils-b3b6f503.js} +1 -1
  404. package/{utils-04c291d8.js.map → utils-b3b6f503.js.map} +1 -1
  405. package/{uuid-0139dc21.js → uuid-0ab81e67.js} +1 -1
  406. package/{uuid-0139dc21.js.map → uuid-0ab81e67.js.map} +1 -1
  407. package/withSendBird.js +1 -1
  408. package/ChannelListProvider-d602a166.js.map +0 -1
  409. package/ChannelProvider-cf8fc05a.js.map +0 -1
  410. package/cjs/ChannelListProvider-64db9f70.js.map +0 -1
  411. package/cjs/ChannelProvider-5e8e33b1.js.map +0 -1
  412. package/cjs/index-212a11f2.js.map +0 -1
  413. package/cjs/index-75453415.js.map +0 -1
  414. package/cjs/index.css.map +0 -1
  415. package/index-62fd2db7.js.map +0 -1
  416. package/index-e6d0889d.js.map +0 -1
package/App.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-6bf18550.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-d10f91b9.js';
2
2
  import React__default, { useState } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Sendbird from './SendbirdProvider.js';
@@ -8,22 +8,22 @@ import ChannelSettings from './ChannelSettings.js';
8
8
  import MessageSearchPannel from './MessageSearch.js';
9
9
  import './withSendBird.js';
10
10
  import 'sendbird';
11
- import './actionTypes-8e320ded.js';
12
- import './index-e6d0889d.js';
13
- import './tslib.es6-b6e567bd.js';
11
+ import './actionTypes-17920f59.js';
12
+ import './index-902c2068.js';
13
+ import './tslib.es6-2c4d01e9.js';
14
14
  import 'css-vars-ponyfill';
15
- import './uuid-0139dc21.js';
16
- import './LocalizationContext-b970a73c.js';
17
- import './stringSet-2e6c1d2c.js';
18
- import './index-6381b534.js';
19
- import './ChannelListProvider-d602a166.js';
20
- import './topics-67738aac.js';
21
- import './utils-f5c9ef64.js';
22
- import './UserProfileContext-f4ff4291.js';
15
+ import './uuid-0ab81e67.js';
16
+ import './LocalizationContext-5b0a9339.js';
17
+ import './stringSet-5a85ff4b.js';
18
+ import './index-94489c17.js';
19
+ import './ChannelListProvider-737ee36f.js';
20
+ import './topics-24a660ee.js';
21
+ import './utils-85d3d94c.js';
22
+ import './UserProfileContext-b6d89d0d.js';
23
23
  import './useSendbirdStateContext.js';
24
24
  import './ChannelList/components/ChannelListUI.js';
25
25
  import './ChannelList/components/ChannelListHeader.js';
26
- import './index-d0b30cd5.js';
26
+ import './index-17cf7808.js';
27
27
  import './ui/IconButton.js';
28
28
  import './ui/Avatar.js';
29
29
  import './ui/ImageRenderer.js';
@@ -31,13 +31,13 @@ import './ui/Icon.js';
31
31
  import './ChannelList/components/AddChannel.js';
32
32
  import './CreateChannel.js';
33
33
  import './CreateChannel/components/CreateChannelUI.js';
34
- import './CreateChannelProvider-3f3dafed.js';
34
+ import './CreateChannelProvider-3d3e4a7c.js';
35
35
  import './sendBirdSelectors.js';
36
36
  import './CreateChannel/components/InviteMembers.js';
37
37
  import './ui/Modal.js';
38
38
  import 'react-dom';
39
- import './index-d0fe8fe1.js';
40
- import './index-2dce3a04.js';
39
+ import './index-db6a4860.js';
40
+ import './index-9deb1389.js';
41
41
  import './ui/UserListItem.js';
42
42
  import './ui/MutedAvatarOverlay.js';
43
43
  import './ui/Checkbox.js';
@@ -47,33 +47,33 @@ import './ui/SortByRow.js';
47
47
  import './CreateChannel/components/SelectChannelType.js';
48
48
  import './ChannelList/components/ChannelPreview.js';
49
49
  import './ui/ChannelAvatar.js';
50
- import './utils-04c291d8.js';
50
+ import './utils-b3b6f503.js';
51
51
  import './ui/Badge.js';
52
- import './index-a6675155.js';
53
- import './index-9afb4d01.js';
54
- import './index-1c2588aa.js';
52
+ import './index-a755675d.js';
53
+ import './index-95677caf.js';
54
+ import './index-92160328.js';
55
55
  import './ui/MentionUserLabel.js';
56
56
  import './Channel/components/TypingIndicator.js';
57
- import './ChannelProvider-cf8fc05a.js';
58
- import './compareIds-f01e0c3c.js';
59
- import './const-b6685801.js';
57
+ import './ChannelProvider-34834493.js';
58
+ import './compareIds-982972e8.js';
59
+ import './const-e3d1e0ec.js';
60
60
  import './ui/ReactionButton.js';
61
61
  import './ui/MessageStatus.js';
62
62
  import './ui/Loader.js';
63
63
  import './ChannelList/components/ChannelPreviewAction.js';
64
64
  import './EditUserProfile.js';
65
- import './index-3bd4a058.js';
65
+ import './index-065ef420.js';
66
66
  import './ui/Input.js';
67
67
  import './ui/TextButton.js';
68
- import './color-38dc84d3.js';
69
- import './index-b12b270e.js';
68
+ import './color-6b259e40.js';
69
+ import './index-691dc8da.js';
70
70
  import './Channel/components/ChannelUI.js';
71
71
  import './ui/ConnectionStatus.js';
72
72
  import './Channel/components/ChannelHeader.js';
73
73
  import './Channel/components/MessageList.js';
74
74
  import './Channel/components/Message.js';
75
75
  import './Channel/components/SuggestedMentionList.js';
76
- import './const-d46f09a1.js';
76
+ import './const-da3968a5.js';
77
77
  import './ui/DateSeparator.js';
78
78
  import './ui/MessageInput.js';
79
79
  import 'stream';
@@ -86,8 +86,9 @@ import './ui/TooltipWrapper.js';
86
86
  import './ui/ReactionBadge.js';
87
87
  import './ui/AdminMessage.js';
88
88
  import './ui/TextMessageItemBody.js';
89
- import './index-62fd2db7.js';
89
+ import './index-81a93b05.js';
90
90
  import './ui/LinkLabel.js';
91
+ import './ui/MentionLabel.js';
91
92
  import './ui/FileMessageItemBody.js';
92
93
  import './ui/ThumbnailMessageItemBody.js';
93
94
  import './ui/OGMessageItemBody.js';
@@ -106,9 +107,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
106
107
  import './ChannelSettings/components/AdminPanel.js';
107
108
  import './ui/Accordion.js';
108
109
  import './ui/AccordionGroup.js';
109
- import './context-b5168bd0.js';
110
+ import './context-3d5505d0.js';
110
111
  import './ChannelSettings/components/UserListItem.js';
111
- import './MemberList-9d29bee4.js';
112
+ import './MemberList-6e33a562.js';
112
113
  import './ChannelSettings/components/LeaveChannel.js';
113
114
  import './ChannelSettings/components/UserPanel.js';
114
115
  import './MessageSearch/components/MessageSearchUI.js';
package/App.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.js","sources":["../src/smart-components/App/index.jsx"],"sourcesContent":["/**\n * This is a drop in Chat solution\n * Can also be used as an example for creating\n * default chat apps\n */\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Sendbird from '../../lib/Sendbird';\n\nimport ChannelList from '../ChannelList';\nimport Channel from '../Channel';\nimport ChannelSettings from '../ChannelSettings';\nimport MessageSearchPannel from '../MessageSearch';\n\nimport './index.scss';\n\nexport default function App(props) {\n const {\n appId,\n userId,\n accessToken,\n theme,\n userListQuery,\n nickname,\n profileUrl,\n dateLocale,\n config = {},\n useReaction,\n isMentionEnabled,\n replyType,\n useMessageGrouping,\n colorSet,\n stringSet,\n allowProfileEdit,\n disableUserProfile,\n renderUserProfile,\n showSearchIcon,\n onProfileEditSuccess,\n imageCompression,\n disableAutoSelect,\n isTypingIndicatorEnabledOnChannelList,\n isMessageReceiptStatusEnabledOnChannelList,\n } = props;\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n const [showSettings, setShowSettings] = useState(false);\n const [showSearch, setShowSearch] = useState(false);\n const [highlightedMessage, setHighlightedMessage] = useState(null);\n const [startingPoint, setStartingPoint] = useState(null);\n\n return (\n <Sendbird\n stringSet={stringSet}\n appId={appId}\n userId={userId}\n accessToken={accessToken}\n theme={theme}\n nickname={nickname}\n profileUrl={profileUrl}\n dateLocale={dateLocale}\n userListQuery={userListQuery}\n config={config}\n colorSet={colorSet}\n disableUserProfile={disableUserProfile}\n renderUserProfile={renderUserProfile}\n imageCompression={imageCompression}\n useReaction={useReaction}\n isMentionEnabled={isMentionEnabled}\n isTypingIndicatorEnabledOnChannelList={isTypingIndicatorEnabledOnChannelList}\n isMessageReceiptStatusEnabledOnChannelList={isMessageReceiptStatusEnabledOnChannelList}\n >\n <div className=\"sendbird-app__wrap\">\n <div className=\"sendbird-app__channellist-wrap\">\n <ChannelList\n allowProfileEdit={allowProfileEdit}\n onProfileEditSuccess={onProfileEditSuccess}\n disableAutoSelect={disableAutoSelect}\n onChannelSelect={(channel) => {\n setStartingPoint(null);\n setHighlightedMessage(null);\n if (channel && channel.url) {\n setCurrentChannelUrl(channel.url);\n } else {\n setCurrentChannelUrl('');\n }\n }}\n />\n </div>\n <div\n className={`\n ${showSettings ? 'sendbird-app__conversation--settings-open' : ''}\n ${showSearch ? 'sendbird-app__conversation--search-open' : ''}\n sendbird-app__conversation-wrap\n `}\n >\n <Channel\n channelUrl={currentChannelUrl}\n onChatHeaderActionClick={() => {\n setShowSearch(false);\n setShowSettings(!showSettings);\n }}\n onSearchClick={() => {\n setShowSettings(false);\n setShowSearch(!showSearch);\n }}\n showSearchIcon={showSearchIcon}\n startingPoint={startingPoint}\n highlightedMessage={highlightedMessage}\n useReaction={useReaction}\n replyType={replyType}\n useMessageGrouping={useMessageGrouping}\n />\n </div>\n {showSettings && (\n <div className=\"sendbird-app__settingspanel-wrap\">\n <ChannelSettings\n className=\"sendbird-channel-settings\"\n channelUrl={currentChannelUrl}\n onCloseClick={() => {\n setShowSettings(false);\n }}\n />\n </div>\n )}\n {showSearch && (\n <div className=\"sendbird-app__searchpanel-wrap\">\n <MessageSearchPannel\n channelUrl={currentChannelUrl}\n onResultClick={(message) => {\n if (message.messageId === highlightedMessage) {\n setHighlightedMessage(null);\n setTimeout(() => {\n setHighlightedMessage(message.messageId);\n });\n } else {\n setStartingPoint(message.createdAt);\n setHighlightedMessage(message.messageId);\n }\n }}\n onCloseClick={() => {\n setShowSearch(false);\n }}\n />\n </div>\n )}\n </div>\n </Sendbird>\n );\n}\n\nApp.propTypes = {\n appId: PropTypes.string.isRequired,\n userId: PropTypes.string.isRequired,\n accessToken: PropTypes.string,\n theme: PropTypes.string,\n userListQuery: PropTypes.func,\n nickname: PropTypes.string,\n profileUrl: PropTypes.string,\n allowProfileEdit: PropTypes.bool,\n disableUserProfile: PropTypes.bool,\n renderUserProfile: PropTypes.func,\n onProfileEditSuccess: PropTypes.func,\n dateLocale: PropTypes.shape({}),\n config: PropTypes.shape({\n // None Error Warning Info 'All/Debug'\n logLevel: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n }),\n useReaction: PropTypes.bool,\n replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),\n showSearchIcon: PropTypes.bool,\n useMessageGrouping: PropTypes.bool,\n stringSet: PropTypes.objectOf(PropTypes.string),\n colorSet: PropTypes.objectOf(PropTypes.string),\n imageCompression: PropTypes.shape({\n compressionRate: PropTypes.number,\n resizingWidth: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n resizingHeight: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n }),\n disableAutoSelect: PropTypes.bool,\n isMentionEnabled: PropTypes.bool,\n isTypingIndicatorEnabledOnChannelList: PropTypes.bool,\n isMessageReceiptStatusEnabledOnChannelList: PropTypes.bool,\n};\n\nApp.defaultProps = {\n accessToken: '',\n theme: 'light',\n nickname: '',\n profileUrl: '',\n userListQuery: null,\n dateLocale: null,\n allowProfileEdit: false,\n onProfileEditSuccess: null,\n disableUserProfile: false,\n showSearchIcon: false,\n renderUserProfile: null,\n config: {},\n useReaction: true,\n isMentionEnabled: false,\n replyType: 'NONE',\n useMessageGrouping: true,\n stringSet: null,\n colorSet: null,\n imageCompression: {},\n disableAutoSelect: false,\n isTypingIndicatorEnabledOnChannelList: false,\n isMessageReceiptStatusEnabledOnChannelList: false,\n};\n"],"names":["App","props","appId","userId","accessToken","theme","userListQuery","nickname","profileUrl","dateLocale","config","useReaction","isMentionEnabled","replyType","useMessageGrouping","colorSet","stringSet","allowProfileEdit","disableUserProfile","renderUserProfile","showSearchIcon","onProfileEditSuccess","imageCompression","disableAutoSelect","isTypingIndicatorEnabledOnChannelList","isMessageReceiptStatusEnabledOnChannelList","useState","currentChannelUrl","setCurrentChannelUrl","showSettings","setShowSettings","showSearch","setShowSearch","highlightedMessage","setHighlightedMessage","startingPoint","setStartingPoint","React","channel","url","message","messageId","setTimeout","createdAt","propTypes","PropTypes","string","isRequired","func","bool","shape","logLevel","oneOfType","arrayOf","oneOf","objectOf","compressionRate","number","resizingWidth","resizingHeight","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBe,SAASA,GAAT,CAAaC,KAAb,EAAoB;AACjC,MACEC,KADF,GAyBID,KAzBJ,CACEC,KADF;AAAA,MAEEC,MAFF,GAyBIF,KAzBJ,CAEEE,MAFF;AAAA,MAGEC,WAHF,GAyBIH,KAzBJ,CAGEG,WAHF;AAAA,MAIEC,KAJF,GAyBIJ,KAzBJ,CAIEI,KAJF;AAAA,MAKEC,aALF,GAyBIL,KAzBJ,CAKEK,aALF;AAAA,MAMEC,QANF,GAyBIN,KAzBJ,CAMEM,QANF;AAAA,MAOEC,UAPF,GAyBIP,KAzBJ,CAOEO,UAPF;AAAA,MAQEC,UARF,GAyBIR,KAzBJ,CAQEQ,UARF;AAAA,sBAyBIR,KAzBJ,CASES,MATF;AAAA,MASEA,MATF,8BASW,EATX;AAAA,MAUEC,WAVF,GAyBIV,KAzBJ,CAUEU,WAVF;AAAA,MAWEC,gBAXF,GAyBIX,KAzBJ,CAWEW,gBAXF;AAAA,MAYEC,SAZF,GAyBIZ,KAzB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AAA,SAAS,EAAE,MAfM;AAgBjBC,EAAAA,kBAAkB,EAAE,IAhBH;AAiBjBE,EAAAA,SAAS,EAAE,IAjBM;AAkBjBD,EAAAA,QAAQ,EAAE,IAlBO;AAmBjBO,EAAAA,gBAAgB,EAAE,EAnBD;AAoBjBC,EAAAA,iBAAiB,EAAE,KApBF;AAqBjBC,EAAAA,qCAAqC,EAAE,KArBtB;AAsBjBC,EAAAA,0CAA0C,EAAE;AAtB3B,CAAnB;;;;"}
1
+ {"version":3,"file":"App.js","sources":["../src/smart-components/App/index.jsx"],"sourcesContent":["/**\n * This is a drop in Chat solution\n * Can also be used as an example for creating\n * default chat apps\n */\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Sendbird from '../../lib/Sendbird';\n\nimport ChannelList from '../ChannelList';\nimport Channel from '../Channel';\nimport ChannelSettings from '../ChannelSettings';\nimport MessageSearchPannel from '../MessageSearch';\n\nimport './index.scss';\n\nexport default function App(props) {\n const {\n appId,\n userId,\n accessToken,\n theme,\n userListQuery,\n nickname,\n profileUrl,\n dateLocale,\n config = {},\n useReaction,\n isMentionEnabled,\n replyType,\n useMessageGrouping,\n colorSet,\n stringSet,\n allowProfileEdit,\n disableUserProfile,\n renderUserProfile,\n showSearchIcon,\n onProfileEditSuccess,\n imageCompression,\n disableAutoSelect,\n isTypingIndicatorEnabledOnChannelList,\n isMessageReceiptStatusEnabledOnChannelList,\n } = props;\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n const [showSettings, setShowSettings] = useState(false);\n const [showSearch, setShowSearch] = useState(false);\n const [highlightedMessage, setHighlightedMessage] = useState(null);\n const [startingPoint, setStartingPoint] = useState(null);\n\n return (\n <Sendbird\n stringSet={stringSet}\n appId={appId}\n userId={userId}\n accessToken={accessToken}\n theme={theme}\n nickname={nickname}\n profileUrl={profileUrl}\n dateLocale={dateLocale}\n userListQuery={userListQuery}\n config={config}\n colorSet={colorSet}\n disableUserProfile={disableUserProfile}\n renderUserProfile={renderUserProfile}\n imageCompression={imageCompression}\n useReaction={useReaction}\n isMentionEnabled={isMentionEnabled}\n isTypingIndicatorEnabledOnChannelList={isTypingIndicatorEnabledOnChannelList}\n isMessageReceiptStatusEnabledOnChannelList={isMessageReceiptStatusEnabledOnChannelList}\n >\n <div className=\"sendbird-app__wrap\">\n <div className=\"sendbird-app__channellist-wrap\">\n <ChannelList\n allowProfileEdit={allowProfileEdit}\n onProfileEditSuccess={onProfileEditSuccess}\n disableAutoSelect={disableAutoSelect}\n onChannelSelect={(channel) => {\n setStartingPoint(null);\n setHighlightedMessage(null);\n if (channel && channel.url) {\n setCurrentChannelUrl(channel.url);\n } else {\n setCurrentChannelUrl('');\n }\n }}\n />\n </div>\n <div\n className={`\n ${showSettings ? 'sendbird-app__conversation--settings-open' : ''}\n ${showSearch ? 'sendbird-app__conversation--search-open' : ''}\n sendbird-app__conversation-wrap\n `}\n >\n <Channel\n channelUrl={currentChannelUrl}\n onChatHeaderActionClick={() => {\n setShowSearch(false);\n setShowSettings(!showSettings);\n }}\n onSearchClick={() => {\n setShowSettings(false);\n setShowSearch(!showSearch);\n }}\n showSearchIcon={showSearchIcon}\n startingPoint={startingPoint}\n highlightedMessage={highlightedMessage}\n useReaction={useReaction}\n replyType={replyType}\n useMessageGrouping={useMessageGrouping}\n />\n </div>\n {showSettings && (\n <div className=\"sendbird-app__settingspanel-wrap\">\n <ChannelSettings\n className=\"sendbird-channel-settings\"\n channelUrl={currentChannelUrl}\n onCloseClick={() => {\n setShowSettings(false);\n }}\n />\n </div>\n )}\n {showSearch && (\n <div className=\"sendbird-app__searchpanel-wrap\">\n <MessageSearchPannel\n channelUrl={currentChannelUrl}\n onResultClick={(message) => {\n if (message.messageId === highlightedMessage) {\n setHighlightedMessage(null);\n setTimeout(() => {\n setHighlightedMessage(message.messageId);\n });\n } else {\n setStartingPoint(message.createdAt);\n setHighlightedMessage(message.messageId);\n }\n }}\n onCloseClick={() => {\n setShowSearch(false);\n }}\n />\n </div>\n )}\n </div>\n </Sendbird>\n );\n}\n\nApp.propTypes = {\n appId: PropTypes.string.isRequired,\n userId: PropTypes.string.isRequired,\n accessToken: PropTypes.string,\n theme: PropTypes.string,\n userListQuery: PropTypes.func,\n nickname: PropTypes.string,\n profileUrl: PropTypes.string,\n allowProfileEdit: PropTypes.bool,\n disableUserProfile: PropTypes.bool,\n renderUserProfile: PropTypes.func,\n onProfileEditSuccess: PropTypes.func,\n dateLocale: PropTypes.shape({}),\n config: PropTypes.shape({\n // None Error Warning Info 'All/Debug'\n logLevel: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n }),\n useReaction: PropTypes.bool,\n replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),\n showSearchIcon: PropTypes.bool,\n useMessageGrouping: PropTypes.bool,\n stringSet: PropTypes.objectOf(PropTypes.string),\n colorSet: PropTypes.objectOf(PropTypes.string),\n imageCompression: PropTypes.shape({\n compressionRate: PropTypes.number,\n resizingWidth: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n resizingHeight: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n }),\n disableAutoSelect: PropTypes.bool,\n isMentionEnabled: PropTypes.bool,\n isTypingIndicatorEnabledOnChannelList: PropTypes.bool,\n isMessageReceiptStatusEnabledOnChannelList: PropTypes.bool,\n};\n\nApp.defaultProps = {\n accessToken: '',\n theme: 'light',\n nickname: '',\n profileUrl: '',\n userListQuery: null,\n dateLocale: null,\n allowProfileEdit: false,\n onProfileEditSuccess: null,\n disableUserProfile: false,\n showSearchIcon: false,\n renderUserProfile: null,\n config: {},\n useReaction: true,\n isMentionEnabled: false,\n replyType: 'NONE',\n useMessageGrouping: true,\n stringSet: null,\n colorSet: null,\n imageCompression: {},\n disableAutoSelect: false,\n isTypingIndicatorEnabledOnChannelList: false,\n isMessageReceiptStatusEnabledOnChannelList: false,\n};\n"],"names":["App","props","appId","userId","accessToken","theme","userListQuery","nickname","profileUrl","dateLocale","config","useReaction","isMentionEnabled","replyType","useMessageGrouping","colorSet","stringSet","allowProfileEdit","disableUserProfile","renderUserProfile","showSearchIcon","onProfileEditSuccess","imageCompression","disableAutoSelect","isTypingIndicatorEnabledOnChannelList","isMessageReceiptStatusEnabledOnChannelList","useState","currentChannelUrl","setCurrentChannelUrl","showSettings","setShowSettings","showSearch","setShowSearch","highlightedMessage","setHighlightedMessage","startingPoint","setStartingPoint","React","channel","url","message","messageId","setTimeout","createdAt","propTypes","PropTypes","string","isRequired","func","bool","shape","logLevel","oneOfType","arrayOf","oneOf","objectOf","compressionRate","number","resizingWidth","resizingHeight","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBe,SAASA,GAAT,CAAaC,KAAb,EAAoB;AACjC,MACEC,KADF,GAyBID,KAzBJ,CACEC,KADF;AAAA,MAEEC,MAFF,GAyBIF,KAzBJ,CAEEE,MAFF;AAAA,MAGEC,WAHF,GAyBIH,KAzBJ,CAGEG,WAHF;AAAA,MAIEC,KAJF,GAyBIJ,KAzBJ,CAIEI,KAJF;AAAA,MAKEC,aALF,GAyBIL,KAzBJ,CAKEK,aALF;AAAA,MAMEC,QANF,GAyBIN,KAzBJ,CAMEM,QANF;AAAA,MAOEC,UAPF,GAyBIP,KAzBJ,CAOEO,UAPF;AAAA,MAQEC,UARF,GAyBIR,KAzBJ,CAQEQ,UARF;AAAA,sBAyBIR,KAzBJ,CASES,MATF;AAAA,MASEA,MATF,8BASW,EATX;AAAA,MAUEC,WAVF,GAyBIV,KAzBJ,CAUEU,WAVF;AAAA,MAWEC,gBAXF,GAyBIX,KAzBJ,CAWEW,gBAXF;AAAA,MAYEC,SAZF,GAyBIZ,KAzBJ,CAYEY,SAZF;AAAA,MAaEC,kBAbF,GAyBI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AkB,EAAE,IAhBH;AAiBjBE,EAAAA,SAAS,EAAE,IAjBM;AAkBjBD,EAAAA,QAAQ,EAAE,IAlBO;AAmBjBO,EAAAA,gBAAgB,EAAE,EAnBD;AAoBjBC,EAAAA,iBAAiB,EAAE,KApBF;AAqBjBC,EAAAA,qCAAqC,EAAE,KArBtB;AAsBjBC,EAAAA,0CAA0C,EAAE;AAtB3B,CAAnB;;;;"}
@@ -1,27 +1,27 @@
1
1
  import React__default, { useContext } from 'react';
2
- import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-d0b30cd5.js';
2
+ import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-17cf7808.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-b970a73c.js';
6
+ import { a as LocalizationContext } from '../../LocalizationContext-5b0a9339.js';
7
7
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
8
- import { u as useChannel } from '../../ChannelProvider-cf8fc05a.js';
9
- import '../../_rollupPluginBabelHelpers-6bf18550.js';
8
+ import { u as useChannel } from '../../ChannelProvider-34834493.js';
9
+ import '../../_rollupPluginBabelHelpers-d10f91b9.js';
10
10
  import 'prop-types';
11
- import '../../stringSet-2e6c1d2c.js';
11
+ import '../../stringSet-5a85ff4b.js';
12
12
  import '../../ui/Avatar.js';
13
- import '../../tslib.es6-b6e567bd.js';
13
+ import '../../tslib.es6-2c4d01e9.js';
14
14
  import '../../ui/ImageRenderer.js';
15
- import '../../uuid-0139dc21.js';
16
- import '../../utils-04c291d8.js';
17
- import '../../index-6381b534.js';
15
+ import '../../uuid-0ab81e67.js';
16
+ import '../../utils-b3b6f503.js';
17
+ import '../../index-94489c17.js';
18
18
  import '../../withSendBird.js';
19
- import '../../UserProfileContext-f4ff4291.js';
20
- import '../../index-1c2588aa.js';
21
- import '../../topics-67738aac.js';
22
- import '../../index-e6d0889d.js';
23
- import '../../compareIds-f01e0c3c.js';
24
- import '../../const-b6685801.js';
19
+ import '../../UserProfileContext-b6d89d0d.js';
20
+ import '../../index-92160328.js';
21
+ import '../../topics-24a660ee.js';
22
+ import '../../index-902c2068.js';
23
+ import '../../compareIds-982972e8.js';
24
+ import '../../const-e3d1e0ec.js';
25
25
  import '../../ui/ContextMenu.js';
26
26
  import 'react-dom';
27
27
  import '../../ui/SortByRow.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 useChannel, M as MARK_AS_READ } from '../../ChannelProvider-cf8fc05a.js';
4
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-b12b270e.js';
3
+ import { u as useChannel, M as MARK_AS_READ } from '../../ChannelProvider-34834493.js';
4
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-691dc8da.js';
5
5
  import ConnectionStatus from '../../ui/ConnectionStatus.js';
6
6
  import ChatHeader 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-6bf18550.js';
14
- import '../../UserProfileContext-f4ff4291.js';
13
+ import '../../_rollupPluginBabelHelpers-d10f91b9.js';
14
+ import '../../UserProfileContext-b6d89d0d.js';
15
15
  import 'prop-types';
16
- import '../../index-1c2588aa.js';
17
- import '../../index-6381b534.js';
18
- import '../../topics-67738aac.js';
19
- import '../../index-e6d0889d.js';
20
- import '../../tslib.es6-b6e567bd.js';
21
- import '../../compareIds-f01e0c3c.js';
22
- import '../../const-b6685801.js';
23
- import '../../uuid-0139dc21.js';
16
+ import '../../index-92160328.js';
17
+ import '../../index-94489c17.js';
18
+ import '../../topics-24a660ee.js';
19
+ import '../../index-902c2068.js';
20
+ import '../../tslib.es6-2c4d01e9.js';
21
+ import '../../compareIds-982972e8.js';
22
+ import '../../const-e3d1e0ec.js';
23
+ import '../../uuid-0ab81e67.js';
24
24
  import '../../ui/ContextMenu.js';
25
- import '../../index-d0b30cd5.js';
26
- import '../../stringSet-2e6c1d2c.js';
25
+ import '../../index-17cf7808.js';
26
+ import '../../stringSet-5a85ff4b.js';
27
27
  import 'react-dom';
28
28
  import '../../ui/SortByRow.js';
29
29
  import '../../ui/ReactionButton.js';
30
30
  import '../../ui/ImageRenderer.js';
31
31
  import '../../ui/Icon.js';
32
32
  import '../../ui/Loader.js';
33
- import '../../LocalizationContext-b970a73c.js';
33
+ import '../../LocalizationContext-5b0a9339.js';
34
34
  import '../../ui/IconButton.js';
35
35
  import '../../ui/ChannelAvatar.js';
36
36
  import '../../ui/Avatar.js';
37
- import '../../utils-04c291d8.js';
38
- import '../../index-9afb4d01.js';
37
+ import '../../utils-b3b6f503.js';
38
+ import '../../index-95677caf.js';
39
39
  import './Message.js';
40
40
  import './SuggestedMentionList.js';
41
- import '../../const-d46f09a1.js';
41
+ import '../../const-da3968a5.js';
42
42
  import '../../ui/DateSeparator.js';
43
- import '../../color-38dc84d3.js';
43
+ import '../../color-6b259e40.js';
44
44
  import '../../ui/MessageInput.js';
45
45
  import 'stream';
46
- import '../../index-2dce3a04.js';
46
+ import '../../index-9deb1389.js';
47
47
  import '../../ui/MentionUserLabel.js';
48
48
  import '../../ui/MessageContent.js';
49
49
  import '../../ui/UserProfile.js';
@@ -57,8 +57,9 @@ import '../../ui/TooltipWrapper.js';
57
57
  import '../../ui/ReactionBadge.js';
58
58
  import '../../ui/AdminMessage.js';
59
59
  import '../../ui/TextMessageItemBody.js';
60
- import '../../index-62fd2db7.js';
60
+ import '../../index-81a93b05.js';
61
61
  import '../../ui/LinkLabel.js';
62
+ import '../../ui/MentionLabel.js';
62
63
  import '../../ui/FileMessageItemBody.js';
63
64
  import '../../ui/TextButton.js';
64
65
  import '../../ui/ThumbnailMessageItemBody.js';
@@ -66,10 +67,10 @@ import '../../ui/OGMessageItemBody.js';
66
67
  import '../../ui/UnknownMessageItemBody.js';
67
68
  import '../../ui/QuoteMessage.js';
68
69
  import './FileViewer.js';
69
- import '../../index-d0fe8fe1.js';
70
+ import '../../index-db6a4860.js';
70
71
  import './RemoveMessageModal.js';
71
72
  import '../../ui/Modal.js';
72
- import '../../utils-f5c9ef64.js';
73
+ import '../../utils-85d3d94c.js';
73
74
  import '../../ui/QuoteMessageInput.js';
74
75
 
75
76
  var ChannelUI = function ChannelUI(_a) {
@@ -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 { useChannel } 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 { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\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 } = useChannel();\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 currentGroupChannel?.markAsRead();\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","useChannel","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BMA,SAAS,GAA6B,SAAtCA,SAAsC,CAACC,EAAD;;;MAC1CC,uBAAuB;MACvBC,wBAAwB;MACxBC,sBAAsB;MACtBC,mBAAmB;MACnBC,aAAa;MACbC,kBAAkB;MAClBC,qBAAqB;MACrBC,qBAAqB;;AAEf,MAAAC,KAWFC,UAAU,EAXR;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AAC,eAAD,OAHN,EAOI,CAACD,QAAD,iBACEC,6BAAC,gBAAD,OARN,CANF,CAnDF,CADF;AAyED;;;;"}
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 { useChannel } 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 { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\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 } = useChannel();\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 currentGroupChannel?.markAsRead();\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","useChannel","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BMA,SAAS,GAA6B,SAAtCA,SAAsC,CAACC,EAAD;;;MAC1CC,uBAAuB;MACvBC,wBAAwB;MACxBC,sBAAsB;MACtBC,mBAAmB;MACnBC,aAAa;MACbC,kBAAkB;MAClBC,qBAAqB;MACrBC,qBAAqB;;AAEf,MAAAC,KAWFC,UAAU,EAXR;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,gBAFN;AAAA,MAGJC,SAAS,eAHL;AAAA,MAIJC,WAAW,iBAJP;AAAA,MAKJC,OAAO,aALH;AAAA,MAMJC,mBAAmB,yBANf;AAAA,MAOJC,oBAAoB,0BAPhB;AAAA,MAQJC,uBAAuB,6BARnB;AAAA,MASJC,SAAS,eATL;AAAA,MAUJC,kBAAkB,wBAVd;;AAYA,MAAAC,KAAgCC,QAAQ,CAAC,CAAD,CAAx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B,EAAA;AACA3B,MAAAA,kBAAkB,CAAC;AACjB4B,QAAAA,IAAI,EAAEC,YADW;AAEjBC,QAAAA,OAAO,EAAE;AAAEC,UAAAA,OAAO,EAAExC;AAAX;AAFQ,OAAD,CAAlB;AAIAK,MAAAA,mBAAmB,CAAC,IAAD,CAAnB;AACAC,MAAAA,oBAAoB,CAAC,IAAD,CAApB;AACAC,MAAAA,uBAAuB,CAAC,IAAD,CAAvB;AACD;AAhBH,IAbN,EAkCIH,OAAO,gBAEHqB;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAAnC,uBAAuB,SAAvB,IAAAA,uBAAuB,WAAvB,SAAA,GAAAA,uBAAuB,EAAvB,kBACEmC,6BAAC,WAAD;AAAa,IAAA,IAAI,EAAEC,gBAAgB,CAACe;AAApC,IAHN,CAFG,gBAUHhB,6BAAC,WAAD;AACE,IAAA,aAAa,EAAE/B,aADjB;AAEE,IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK;AAHzB,IA5CR,eAmDE4B;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA9B,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACE8B,6BAAC,mBAAD,OAHN,eAMEA;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA7B,qBAAqB,SAArB,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACE6B,6BAAC,eAAD,OAHN,EAOI,CAACD,QAAD,iBACEC,6BAAC,gBAAD,OARN,CANF,CAnDF,CADF;AAyED;;;;"}
@@ -1,25 +1,25 @@
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-d0b30cd5.js';
4
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-17cf7808.js';
5
5
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
6
- import { M as MODAL_ROOT } from '../../index-d0fe8fe1.js';
7
- import { y as isSupportedFileView, z as isVideo, A as isImage } from '../../index-e6d0889d.js';
6
+ import { M as MODAL_ROOT } from '../../index-db6a4860.js';
7
+ import { z as isSupportedFileView, A as isVideo, B as isImage } from '../../index-902c2068.js';
8
8
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
9
- import { u as useChannel } from '../../ChannelProvider-cf8fc05a.js';
10
- import '../../tslib.es6-b6e567bd.js';
9
+ import { u as useChannel } from '../../ChannelProvider-34834493.js';
10
+ import '../../tslib.es6-2c4d01e9.js';
11
11
  import '../../ui/ImageRenderer.js';
12
- import '../../_rollupPluginBabelHelpers-6bf18550.js';
12
+ import '../../_rollupPluginBabelHelpers-d10f91b9.js';
13
13
  import 'prop-types';
14
- import '../../uuid-0139dc21.js';
15
- import '../../stringSet-2e6c1d2c.js';
14
+ import '../../uuid-0ab81e67.js';
15
+ import '../../stringSet-5a85ff4b.js';
16
16
  import '../../withSendBird.js';
17
- import '../../UserProfileContext-f4ff4291.js';
18
- import '../../index-1c2588aa.js';
19
- import '../../index-6381b534.js';
20
- import '../../topics-67738aac.js';
21
- import '../../compareIds-f01e0c3c.js';
22
- import '../../const-b6685801.js';
17
+ import '../../UserProfileContext-b6d89d0d.js';
18
+ import '../../index-92160328.js';
19
+ import '../../index-94489c17.js';
20
+ import '../../topics-24a660ee.js';
21
+ import '../../compareIds-982972e8.js';
22
+ import '../../const-e3d1e0ec.js';
23
23
  import '../../ui/ContextMenu.js';
24
24
  import '../../ui/SortByRow.js';
25
25
  import '../../ui/ReactionButton.js';
@@ -1,9 +1,9 @@
1
1
  import React__default, { useContext } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-b970a73c.js';
3
- import { L as Label, a as LabelTypography } from '../../index-d0b30cd5.js';
4
- import '../../stringSet-2e6c1d2c.js';
5
- import '../../index-6381b534.js';
6
- import '../../_rollupPluginBabelHelpers-6bf18550.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-5b0a9339.js';
3
+ import { L as Label, a as LabelTypography } from '../../index-17cf7808.js';
4
+ import '../../stringSet-5a85ff4b.js';
5
+ import '../../index-94489c17.js';
6
+ import '../../_rollupPluginBabelHelpers-d10f91b9.js';
7
7
  import 'prop-types';
8
8
 
9
9
  var FrozenNotification = function FrozenNotification() {
@@ -1,39 +1,39 @@
1
- import { a as __spreadArray } from '../../tslib.es6-b6e567bd.js';
1
+ import { a as __spreadArray } from '../../tslib.es6-2c4d01e9.js';
2
2
  import React__default, { useState, useRef, useEffect, useLayoutEffect, useMemo } from 'react';
3
- import { f as format } from '../../index-1c2588aa.js';
3
+ import { f as format } from '../../index-92160328.js';
4
4
  import SuggestedMentionList from './SuggestedMentionList.js';
5
5
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
6
- import { u as useChannel, a as isDisabledBecauseFrozen } from '../../ChannelProvider-cf8fc05a.js';
7
- import { h as getClassName } from '../../index-e6d0889d.js';
8
- import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-b6685801.js';
6
+ import { u as useChannel, a as isDisabledBecauseFrozen } from '../../ChannelProvider-34834493.js';
7
+ import { j as getClassName } from '../../index-902c2068.js';
8
+ import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-e3d1e0ec.js';
9
9
  import DateSeparator from '../../ui/DateSeparator.js';
10
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-d0b30cd5.js';
10
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-17cf7808.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-d46f09a1.js';
16
- import { u as useLocalization } from '../../LocalizationContext-b970a73c.js';
17
- import '../../index-6381b534.js';
15
+ import { M as MessageInputKeys } from '../../const-da3968a5.js';
16
+ import { u as useLocalization } from '../../LocalizationContext-5b0a9339.js';
17
+ import '../../index-94489c17.js';
18
18
  import '../../ui/Icon.js';
19
- import '../../_rollupPluginBabelHelpers-6bf18550.js';
19
+ import '../../_rollupPluginBabelHelpers-d10f91b9.js';
20
20
  import 'prop-types';
21
21
  import '../../ui/Avatar.js';
22
22
  import '../../ui/ImageRenderer.js';
23
- import '../../uuid-0139dc21.js';
23
+ import '../../uuid-0ab81e67.js';
24
24
  import '../../withSendBird.js';
25
- import '../../UserProfileContext-f4ff4291.js';
26
- import '../../topics-67738aac.js';
27
- import '../../compareIds-f01e0c3c.js';
25
+ import '../../UserProfileContext-b6d89d0d.js';
26
+ import '../../topics-24a660ee.js';
27
+ import '../../compareIds-982972e8.js';
28
28
  import '../../ui/ContextMenu.js';
29
29
  import 'react-dom';
30
30
  import '../../ui/SortByRow.js';
31
- import '../../stringSet-2e6c1d2c.js';
31
+ import '../../stringSet-5a85ff4b.js';
32
32
  import '../../ui/ReactionButton.js';
33
- import '../../color-38dc84d3.js';
33
+ import '../../color-6b259e40.js';
34
34
  import 'stream';
35
35
  import '../../ui/IconButton.js';
36
- import '../../index-2dce3a04.js';
36
+ import '../../index-9deb1389.js';
37
37
  import '../../ui/MentionUserLabel.js';
38
38
  import '../../ui/UserProfile.js';
39
39
  import '../../sendBirdSelectors.js';
@@ -47,17 +47,18 @@ import '../../ui/TooltipWrapper.js';
47
47
  import '../../ui/ReactionBadge.js';
48
48
  import '../../ui/AdminMessage.js';
49
49
  import '../../ui/TextMessageItemBody.js';
50
- import '../../index-62fd2db7.js';
50
+ import '../../index-81a93b05.js';
51
51
  import '../../ui/LinkLabel.js';
52
+ import '../../ui/MentionLabel.js';
52
53
  import '../../ui/FileMessageItemBody.js';
53
54
  import '../../ui/TextButton.js';
54
55
  import '../../ui/ThumbnailMessageItemBody.js';
55
56
  import '../../ui/OGMessageItemBody.js';
56
57
  import '../../ui/UnknownMessageItemBody.js';
57
58
  import '../../ui/QuoteMessage.js';
58
- import '../../index-d0fe8fe1.js';
59
+ import '../../index-db6a4860.js';
59
60
  import '../../ui/Modal.js';
60
- import '../../utils-f5c9ef64.js';
61
+ import '../../utils-85d3d94c.js';
61
62
 
62
63
  var Message = function Message(props) {
63
64
  var _a;
@@ -283,6 +284,10 @@ var Message = function Message(props) {
283
284
  setShowEdit(false);
284
285
  },
285
286
  onCancelEdit: function onCancelEdit() {
287
+ setMentionNickname('');
288
+ setMentionedUsers([]);
289
+ setMentionedUserIds([]);
290
+ setMentionSuggestedUsers([]);
286
291
  setShowEdit(false);
287
292
  },
288
293
  onUserMentioned: function onUserMentioned(user) {