@sendbird/uikit-react 3.1.2 → 3.1.3

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 (442) hide show
  1. package/App.js +37 -36
  2. package/App.js.map +1 -1
  3. package/CHANGELOG.md +28 -0
  4. package/Channel/components/ChannelHeader.js +19 -19
  5. package/Channel/components/ChannelUI.js +26 -26
  6. package/Channel/components/ChannelUI.js.map +1 -1
  7. package/Channel/components/FileViewer.js +18 -18
  8. package/Channel/components/FrozenNotification.js +5 -5
  9. package/Channel/components/Message.js +26 -24
  10. package/Channel/components/Message.js.map +1 -1
  11. package/Channel/components/MessageInput.js +20 -20
  12. package/Channel/components/MessageList.js +25 -25
  13. package/Channel/components/MessageList.js.map +1 -1
  14. package/Channel/components/RemoveMessageModal.js +20 -20
  15. package/Channel/components/SuggestedMentionList.js +19 -19
  16. package/Channel/components/TypingIndicator.js +18 -18
  17. package/Channel/components/UnreadCount.js +5 -5
  18. package/Channel/context.js +17 -17
  19. package/Channel.js +26 -26
  20. package/ChannelList/components/AddChannel.js +14 -14
  21. package/ChannelList/components/ChannelListHeader.js +7 -7
  22. package/ChannelList/components/ChannelListUI.js +30 -30
  23. package/ChannelList/components/ChannelPreview.js +23 -23
  24. package/ChannelList/components/ChannelPreviewAction.js +22 -20
  25. package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  26. package/ChannelList/context.js +12 -12
  27. package/ChannelList.js +30 -30
  28. package/{ChannelListProvider-9c82d370.js → ChannelListProvider-0157b613.js} +9 -9
  29. package/{ChannelListProvider-9c82d370.js.map → ChannelListProvider-0157b613.js.map} +1 -1
  30. package/{ChannelProvider-d891cf5f.js → ChannelProvider-57689107.js} +12 -13
  31. package/{ChannelProvider-d891cf5f.js.map → ChannelProvider-57689107.js.map} +1 -1
  32. package/ChannelSettings/components/ChannelProfile.js +12 -12
  33. package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  34. package/ChannelSettings/components/EditDetailsModal.js +12 -12
  35. package/ChannelSettings/components/LeaveChannel.js +11 -11
  36. package/ChannelSettings/components/ModerationPanel.js +19 -19
  37. package/ChannelSettings/components/UserListItem.js +14 -14
  38. package/ChannelSettings/components/UserListItem.js.map +1 -1
  39. package/ChannelSettings/components/UserPanel.js +14 -14
  40. package/ChannelSettings/context.js +3 -3
  41. package/ChannelSettings.js +22 -22
  42. package/CreateChannel/components/CreateChannelUI.js +14 -14
  43. package/CreateChannel/components/InviteUsers.js +14 -14
  44. package/CreateChannel/components/SelectChannelType.js +11 -11
  45. package/CreateChannel/context.js +4 -4
  46. package/CreateChannel.js +14 -14
  47. package/{CreateChannelProvider-0af2a424.js → CreateChannelProvider-f84fd7e5.js} +1 -1
  48. package/{CreateChannelProvider-0af2a424.js.map → CreateChannelProvider-f84fd7e5.js.map} +1 -1
  49. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  50. package/EditUserProfile.js +13 -13
  51. package/{LocalizationContext-2a073ef0.js → LocalizationContext-5b475a64.js} +3 -3
  52. package/{LocalizationContext-2a073ef0.js.map → LocalizationContext-5b475a64.js.map} +1 -1
  53. package/{MemberList-0acc36c3.js → MemberList-004dd3e6.js} +7 -7
  54. package/MemberList-004dd3e6.js.map +1 -0
  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 +5 -5
  59. package/OpenChannel/components/OpenChannelHeader.js +17 -17
  60. package/OpenChannel/components/OpenChannelInput.js +21 -21
  61. package/OpenChannel/components/OpenChannelMessage.js +26 -26
  62. package/OpenChannel/components/OpenChannelMessageList.js +28 -28
  63. package/OpenChannel/components/OpenChannelUI.js +28 -28
  64. package/OpenChannel/context.js +14 -14
  65. package/OpenChannel.js +28 -28
  66. package/{OpenChannelProvider-2e3fa2dd.js → OpenChannelProvider-f5d504ec.js} +55 -39
  67. package/OpenChannelProvider-f5d504ec.js.map +1 -0
  68. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  69. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  70. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  71. package/OpenChannelSettings/components/OperatorUI.js +20 -20
  72. package/OpenChannelSettings/components/ParticipantUI.js +18 -18
  73. package/OpenChannelSettings/context.js +17 -16
  74. package/OpenChannelSettings/context.js.map +1 -1
  75. package/OpenChannelSettings.js +21 -21
  76. package/SendbirdProvider.js +30 -22
  77. package/SendbirdProvider.js.map +1 -1
  78. package/{UserProfileContext-143a6a42.js → UserProfileContext-a2483e23.js} +1 -1
  79. package/{UserProfileContext-143a6a42.js.map → UserProfileContext-a2483e23.js.map} +1 -1
  80. package/{__bundle-6316ce22-cd546820.js → __bundle-6316ce22-63d15802.js} +1 -1
  81. package/{__bundle-6316ce22-cd546820.js.map → __bundle-6316ce22-63d15802.js.map} +1 -1
  82. package/{__bundle-7dfccc8c-6c6e7ab4.js → __bundle-7dfccc8c-d5c3938c.js} +2 -2
  83. package/{__bundle-7dfccc8c-6c6e7ab4.js.map → __bundle-7dfccc8c-d5c3938c.js.map} +1 -1
  84. package/{__bundle-fbda47dd-9dbeee1d.js → __bundle-fbda47dd-b1c87af3.js} +2 -2
  85. package/{__bundle-fbda47dd-9dbeee1d.js.map → __bundle-fbda47dd-b1c87af3.js.map} +1 -1
  86. package/{_rollupPluginBabelHelpers-3043541a.js → _rollupPluginBabelHelpers-b2b008c2.js} +1 -1
  87. package/{_rollupPluginBabelHelpers-3043541a.js.map → _rollupPluginBabelHelpers-b2b008c2.js.map} +1 -1
  88. package/{actionTypes-2873dec9.js → actionTypes-3a618022.js} +1 -1
  89. package/{actionTypes-2873dec9.js.map → actionTypes-3a618022.js.map} +1 -1
  90. package/cjs/App.js +37 -36
  91. package/cjs/App.js.map +1 -1
  92. package/cjs/Channel/components/ChannelHeader.js +19 -19
  93. package/cjs/Channel/components/ChannelUI.js +26 -26
  94. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  95. package/cjs/Channel/components/FileViewer.js +18 -18
  96. package/cjs/Channel/components/FrozenNotification.js +5 -5
  97. package/cjs/Channel/components/Message.js +26 -24
  98. package/cjs/Channel/components/Message.js.map +1 -1
  99. package/cjs/Channel/components/MessageInput.js +20 -20
  100. package/cjs/Channel/components/MessageList.js +25 -25
  101. package/cjs/Channel/components/MessageList.js.map +1 -1
  102. package/cjs/Channel/components/RemoveMessageModal.js +20 -20
  103. package/cjs/Channel/components/SuggestedMentionList.js +19 -19
  104. package/cjs/Channel/components/TypingIndicator.js +18 -18
  105. package/cjs/Channel/components/UnreadCount.js +5 -5
  106. package/cjs/Channel/context.js +17 -17
  107. package/cjs/Channel.js +26 -26
  108. package/cjs/ChannelList/components/AddChannel.js +14 -14
  109. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  110. package/cjs/ChannelList/components/ChannelListUI.js +30 -30
  111. package/cjs/ChannelList/components/ChannelPreview.js +23 -23
  112. package/cjs/ChannelList/components/ChannelPreviewAction.js +22 -20
  113. package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  114. package/cjs/ChannelList/context.js +12 -12
  115. package/cjs/ChannelList.js +30 -30
  116. package/cjs/{ChannelListProvider-b60fe6ed.js → ChannelListProvider-3e882076.js} +9 -9
  117. package/cjs/{ChannelListProvider-b60fe6ed.js.map → ChannelListProvider-3e882076.js.map} +1 -1
  118. package/cjs/{ChannelProvider-b21b3c2a.js → ChannelProvider-b7e7f2ff.js} +12 -13
  119. package/cjs/{ChannelProvider-b21b3c2a.js.map → ChannelProvider-b7e7f2ff.js.map} +1 -1
  120. package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
  121. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  122. package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
  123. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  124. package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
  125. package/cjs/ChannelSettings/components/UserListItem.js +14 -14
  126. package/cjs/ChannelSettings/components/UserListItem.js.map +1 -1
  127. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  128. package/cjs/ChannelSettings/context.js +3 -3
  129. package/cjs/ChannelSettings.js +22 -22
  130. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  131. package/cjs/CreateChannel/components/InviteUsers.js +14 -14
  132. package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
  133. package/cjs/CreateChannel/context.js +4 -4
  134. package/cjs/CreateChannel.js +14 -14
  135. package/cjs/{CreateChannelProvider-71e1e6d6.js → CreateChannelProvider-cea018b0.js} +1 -1
  136. package/cjs/{CreateChannelProvider-71e1e6d6.js.map → CreateChannelProvider-cea018b0.js.map} +1 -1
  137. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  138. package/cjs/EditUserProfile.js +13 -13
  139. package/cjs/{LocalizationContext-da62a103.js → LocalizationContext-c13ae9d5.js} +3 -3
  140. package/cjs/{LocalizationContext-da62a103.js.map → LocalizationContext-c13ae9d5.js.map} +1 -1
  141. package/cjs/{MemberList-442ade8c.js → MemberList-e062045b.js} +7 -7
  142. package/cjs/MemberList-e062045b.js.map +1 -0
  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 +17 -17
  148. package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
  149. package/cjs/OpenChannel/components/OpenChannelMessage.js +26 -26
  150. package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
  151. package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
  152. package/cjs/OpenChannel/context.js +14 -14
  153. package/cjs/OpenChannel.js +28 -28
  154. package/cjs/{OpenChannelProvider-bc8d7f0d.js → OpenChannelProvider-341f9a01.js} +55 -39
  155. package/cjs/OpenChannelProvider-341f9a01.js.map +1 -0
  156. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  157. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  158. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  159. package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
  160. package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
  161. package/cjs/OpenChannelSettings/context.js +17 -16
  162. package/cjs/OpenChannelSettings/context.js.map +1 -1
  163. package/cjs/OpenChannelSettings.js +21 -21
  164. package/cjs/SendbirdProvider.js +30 -22
  165. package/cjs/SendbirdProvider.js.map +1 -1
  166. package/cjs/{UserProfileContext-891590a7.js → UserProfileContext-f7c125ca.js} +1 -1
  167. package/cjs/{UserProfileContext-891590a7.js.map → UserProfileContext-f7c125ca.js.map} +1 -1
  168. package/cjs/{__bundle-6316ce22-c06e03fc.js → __bundle-6316ce22-054c7ff6.js} +1 -1
  169. package/cjs/{__bundle-6316ce22-c06e03fc.js.map → __bundle-6316ce22-054c7ff6.js.map} +1 -1
  170. package/cjs/{__bundle-7dfccc8c-dcc1c854.js → __bundle-7dfccc8c-826eb0ef.js} +2 -2
  171. package/cjs/{__bundle-7dfccc8c-dcc1c854.js.map → __bundle-7dfccc8c-826eb0ef.js.map} +1 -1
  172. package/cjs/{__bundle-fbda47dd-1a2c2d97.js → __bundle-fbda47dd-4cb7267d.js} +2 -2
  173. package/cjs/{__bundle-fbda47dd-1a2c2d97.js.map → __bundle-fbda47dd-4cb7267d.js.map} +1 -1
  174. package/cjs/{_rollupPluginBabelHelpers-4265e501.js → _rollupPluginBabelHelpers-09706ebf.js} +1 -1
  175. package/cjs/{_rollupPluginBabelHelpers-4265e501.js.map → _rollupPluginBabelHelpers-09706ebf.js.map} +1 -1
  176. package/cjs/{actionTypes-7c5a0f8b.js → actionTypes-b3af2b15.js} +1 -1
  177. package/cjs/{actionTypes-7c5a0f8b.js.map → actionTypes-b3af2b15.js.map} +1 -1
  178. package/cjs/{color-42e34a43.js → color-f0ffb253.js} +1 -1
  179. package/cjs/{color-42e34a43.js.map → color-f0ffb253.js.map} +1 -1
  180. package/cjs/{compareIds-26079db4.js → compareIds-10371145.js} +1 -1
  181. package/cjs/{compareIds-26079db4.js.map → compareIds-10371145.js.map} +1 -1
  182. package/cjs/{const-c1a4604d.js → const-459420a0.js} +1 -1
  183. package/cjs/{const-c1a4604d.js.map → const-459420a0.js.map} +1 -1
  184. package/cjs/{const-8a9ec74c.js → const-84c58686.js} +1 -1
  185. package/cjs/{const-8a9ec74c.js.map → const-84c58686.js.map} +1 -1
  186. package/cjs/{context-82ac7edc.js → context-01248097.js} +2 -2
  187. package/cjs/{context-82ac7edc.js.map → context-01248097.js.map} +1 -1
  188. package/cjs/dist/index.css +81 -19
  189. package/cjs/dist/index.css.map +1 -1
  190. package/cjs/{groupChannel-11ed3837.js → groupChannel-4934c435.js} +4 -4
  191. package/cjs/{groupChannel-11ed3837.js.map → groupChannel-4934c435.js.map} +1 -1
  192. package/cjs/handlers/ConnectionHandler.js +3 -3
  193. package/cjs/handlers/GroupChannelHandler.js +4 -4
  194. package/cjs/handlers/OpenChannelHandler.js +3 -3
  195. package/cjs/handlers/SessionHandler.js +12 -0
  196. package/cjs/handlers/SessionHandler.js.map +1 -0
  197. package/cjs/handlers/UserEventHandler.js +3 -3
  198. package/cjs/{index-82646d4d.js → index-0add0c83.js} +6 -6
  199. package/cjs/{index-82646d4d.js.map → index-0add0c83.js.map} +1 -1
  200. package/cjs/{index-fb127b1f.js → index-243538a2.js} +2 -2
  201. package/cjs/{index-fb127b1f.js.map → index-243538a2.js.map} +1 -1
  202. package/cjs/{index-b440f8c6.js → index-2d53c0e6.js} +4 -4
  203. package/cjs/{index-b440f8c6.js.map → index-2d53c0e6.js.map} +1 -1
  204. package/cjs/{index-c79f62fd.js → index-2f58ecfc.js} +4 -4
  205. package/cjs/{index-c79f62fd.js.map → index-2f58ecfc.js.map} +1 -1
  206. package/cjs/{index-25336220.js → index-63b56a0e.js} +1 -1
  207. package/cjs/{index-25336220.js.map → index-63b56a0e.js.map} +1 -1
  208. package/cjs/{index-f5cb5c7f.js → index-701d44c1.js} +2 -2
  209. package/cjs/{index-f5cb5c7f.js.map → index-701d44c1.js.map} +1 -1
  210. package/cjs/{index-32562627.js → index-98e4f7b2.js} +1 -1
  211. package/cjs/{index-32562627.js.map → index-98e4f7b2.js.map} +1 -1
  212. package/cjs/{index-81e2234a.js → index-a00a0f18.js} +9 -9
  213. package/cjs/{index-81e2234a.js.map → index-a00a0f18.js.map} +1 -1
  214. package/cjs/{index-06c3dca9.js → index-c8f7702f.js} +2 -2
  215. package/cjs/{index-06c3dca9.js.map → index-c8f7702f.js.map} +1 -1
  216. package/cjs/{index-05692021.js → index-d889bc81.js} +3 -3
  217. package/cjs/{index-05692021.js.map → index-d889bc81.js.map} +1 -1
  218. package/cjs/{index-089e0fba.js → index-dad73aff.js} +3 -3
  219. package/cjs/{index-089e0fba.js.map → index-dad73aff.js.map} +1 -1
  220. package/cjs/index.js +39 -39
  221. package/cjs/{openChannel-76345cfa.js → openChannel-e95532d8.js} +3 -3
  222. package/cjs/{openChannel-76345cfa.js.map → openChannel-e95532d8.js.map} +1 -1
  223. package/cjs/{openChannelUtils-56d57483.js → openChannelUtils-7a336d09.js} +1 -1
  224. package/cjs/{openChannelUtils-56d57483.js.map → openChannelUtils-7a336d09.js.map} +1 -1
  225. package/cjs/{sendbird-dfd051c8.js → sendbird-e3e5c8ae.js} +4 -3
  226. package/cjs/{sendbird-dfd051c8.js.map → sendbird-e3e5c8ae.js.map} +1 -1
  227. package/cjs/sendbirdSelectors.js +2 -2
  228. package/cjs/{stringSet-857a128c.js → stringSet-bd0c293d.js} +1 -1
  229. package/cjs/{stringSet-857a128c.js.map → stringSet-bd0c293d.js.map} +1 -1
  230. package/cjs/{topics-a755c9c6.js → topics-f3fe3bf3.js} +1 -1
  231. package/cjs/{topics-a755c9c6.js.map → topics-f3fe3bf3.js.map} +1 -1
  232. package/cjs/{tslib.es6-ba69891c.js → tslib.es6-f57d0c81.js} +18 -1
  233. package/cjs/{tslib.es6-ba69891c.js.map → tslib.es6-f57d0c81.js.map} +1 -1
  234. package/cjs/ui/Accordion.js +4 -4
  235. package/cjs/ui/AccordionGroup.js +2 -2
  236. package/cjs/ui/AdminMessage.js +4 -4
  237. package/cjs/ui/Avatar.js +3 -3
  238. package/cjs/ui/Badge.js +6 -6
  239. package/cjs/ui/Button.js +5 -5
  240. package/cjs/ui/ChannelAvatar.js +4 -4
  241. package/cjs/ui/ChannelPreview.js +12 -12
  242. package/cjs/ui/ChatHeader.js +8 -8
  243. package/cjs/ui/ConnectionStatus.js +5 -5
  244. package/cjs/ui/ContextMenu.js +99 -85
  245. package/cjs/ui/ContextMenu.js.map +1 -1
  246. package/cjs/ui/DateSeparator.js +5 -5
  247. package/cjs/ui/EmojiReactions.js +8 -8
  248. package/cjs/ui/FileMessageItemBody.js +10 -8
  249. package/cjs/ui/FileMessageItemBody.js.map +1 -1
  250. package/cjs/ui/FileViewer.js +9 -9
  251. package/cjs/ui/Icon.js +1 -1
  252. package/cjs/ui/IconButton.js +1 -1
  253. package/cjs/ui/ImageRenderer.js +1 -1
  254. package/cjs/ui/Input.js +3 -3
  255. package/cjs/ui/Label.js +3 -3
  256. package/cjs/ui/LinkLabel.js +3 -3
  257. package/cjs/ui/Loader.js +2 -2
  258. package/cjs/ui/MentionLabel.js +11 -11
  259. package/cjs/ui/MessageContent.js +23 -18
  260. package/cjs/ui/MessageContent.js.map +1 -1
  261. package/cjs/ui/MessageInput.js +10 -10
  262. package/cjs/ui/MessageInput.js.map +1 -1
  263. package/cjs/ui/MessageItemMenu.js +8 -8
  264. package/cjs/ui/MessageItemReactionMenu.js +6 -6
  265. package/cjs/ui/MessageSearchFileItem.js +10 -10
  266. package/cjs/ui/MessageSearchItem.js +10 -10
  267. package/cjs/ui/MessageStatus.js +8 -8
  268. package/cjs/ui/Modal.js +8 -8
  269. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  270. package/cjs/ui/OGMessageItemBody.js +15 -13
  271. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  272. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  273. package/cjs/ui/OpenChannelAvatar.js +7 -7
  274. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  275. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  276. package/cjs/ui/OpenchannelOGMessage.js +15 -15
  277. package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
  278. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  279. package/cjs/ui/PlaceHolder.js +7 -7
  280. package/cjs/ui/QuoteMessage.js +7 -7
  281. package/cjs/ui/QuoteMessageInput.js +7 -7
  282. package/cjs/ui/ReactionBadge.js +4 -4
  283. package/cjs/ui/ReactionButton.js +1 -1
  284. package/cjs/ui/SortByRow.js +2 -2
  285. package/cjs/ui/TextButton.js +2 -2
  286. package/cjs/ui/TextMessageItemBody.js +15 -13
  287. package/cjs/ui/TextMessageItemBody.js.map +1 -1
  288. package/cjs/ui/ThumbnailMessageItemBody.js +11 -9
  289. package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
  290. package/cjs/ui/Tooltip.js +4 -4
  291. package/cjs/ui/TooltipWrapper.js +1 -1
  292. package/cjs/ui/UnknownMessageItemBody.js +11 -9
  293. package/cjs/ui/UnknownMessageItemBody.js.map +1 -1
  294. package/cjs/ui/UserListItem.js +12 -12
  295. package/cjs/ui/UserProfile.js +10 -10
  296. package/cjs/ui/Word.js +11 -11
  297. package/cjs/useSendbirdStateContext.js +1 -1
  298. package/cjs/{utils-c39eb349.js → utils-438c14b6.js} +1 -1
  299. package/cjs/{utils-c39eb349.js.map → utils-438c14b6.js.map} +1 -1
  300. package/cjs/{utils-bf57a41a.js → utils-760ac018.js} +1 -1
  301. package/cjs/{utils-bf57a41a.js.map → utils-760ac018.js.map} +1 -1
  302. package/cjs/{utils-bfbac88e.js → utils-959685f6.js} +1 -1
  303. package/cjs/{utils-bfbac88e.js.map → utils-959685f6.js.map} +1 -1
  304. package/cjs/{uuid-49679ac2.js → uuid-1942f440.js} +1 -1
  305. package/cjs/{uuid-49679ac2.js.map → uuid-1942f440.js.map} +1 -1
  306. package/cjs/withSendbird.js +1 -1
  307. package/{color-798488ed.js → color-83cfc07a.js} +1 -1
  308. package/{color-798488ed.js.map → color-83cfc07a.js.map} +1 -1
  309. package/{compareIds-2e073780.js → compareIds-9455ecb0.js} +1 -1
  310. package/{compareIds-2e073780.js.map → compareIds-9455ecb0.js.map} +1 -1
  311. package/{const-51fc1a68.js → const-71ceda85.js} +1 -1
  312. package/{const-51fc1a68.js.map → const-71ceda85.js.map} +1 -1
  313. package/{const-b88f8299.js → const-7867ac6a.js} +1 -1
  314. package/{const-b88f8299.js.map → const-7867ac6a.js.map} +1 -1
  315. package/{context-406bf9f1.js → context-2f6f1c17.js} +2 -2
  316. package/{context-406bf9f1.js.map → context-2f6f1c17.js.map} +1 -1
  317. package/dist/index.css +81 -19
  318. package/dist/index.css.map +1 -1
  319. package/{groupChannel-17ffbb7f.js → groupChannel-de6b26ee.js} +4 -4
  320. package/{groupChannel-17ffbb7f.js.map → groupChannel-de6b26ee.js.map} +1 -1
  321. package/handlers/ConnectionHandler.js +4 -4
  322. package/handlers/GroupChannelHandler.js +5 -5
  323. package/handlers/OpenChannelHandler.js +4 -4
  324. package/handlers/SessionHandler.js +9 -0
  325. package/handlers/SessionHandler.js.map +1 -0
  326. package/handlers/UserEventHandler.js +4 -4
  327. package/{index-c9cda9f6.js → index-1086dd43.js} +1 -1
  328. package/{index-c9cda9f6.js.map → index-1086dd43.js.map} +1 -1
  329. package/{index-6a47d16f.js → index-16e14c17.js} +3 -3
  330. package/{index-6a47d16f.js.map → index-16e14c17.js.map} +1 -1
  331. package/{index-03ccaf35.js → index-24a5ab49.js} +2 -2
  332. package/{index-03ccaf35.js.map → index-24a5ab49.js.map} +1 -1
  333. package/{index-5ec69689.js → index-25496c01.js} +1 -1
  334. package/{index-5ec69689.js.map → index-25496c01.js.map} +1 -1
  335. package/{index-b4944539.js → index-2f85a795.js} +2 -2
  336. package/{index-b4944539.js.map → index-2f85a795.js.map} +1 -1
  337. package/{index-7f2be3d7.js → index-4400a360.js} +2 -2
  338. package/{index-7f2be3d7.js.map → index-4400a360.js.map} +1 -1
  339. package/{index-ced613ea.js → index-7a790c96.js} +4 -4
  340. package/{index-ced613ea.js.map → index-7a790c96.js.map} +1 -1
  341. package/{index-4e56f382.js → index-952d5f9b.js} +4 -4
  342. package/{index-4e56f382.js.map → index-952d5f9b.js.map} +1 -1
  343. package/{index-fa8ac00a.js → index-c3a36db0.js} +6 -6
  344. package/{index-fa8ac00a.js.map → index-c3a36db0.js.map} +1 -1
  345. package/{index-702d2072.js → index-d545f604.js} +9 -9
  346. package/{index-702d2072.js.map → index-d545f604.js.map} +1 -1
  347. package/{index-ed39099a.js → index-e028fd23.js} +3 -3
  348. package/{index-ed39099a.js.map → index-e028fd23.js.map} +1 -1
  349. package/index.d.ts +24 -9
  350. package/index.js +39 -39
  351. package/{openChannel-1548376e.js → openChannel-825f8e93.js} +3 -3
  352. package/{openChannel-1548376e.js.map → openChannel-825f8e93.js.map} +1 -1
  353. package/{openChannelUtils-09e4bac8.js → openChannelUtils-f64223c9.js} +1 -1
  354. package/{openChannelUtils-09e4bac8.js.map → openChannelUtils-f64223c9.js.map} +1 -1
  355. package/package.json +1 -1
  356. package/{sendbird-597583ed.js → sendbird-21239b88.js} +4 -4
  357. package/{sendbird-597583ed.js.map → sendbird-21239b88.js.map} +1 -1
  358. package/sendbirdSelectors.js +2 -2
  359. package/{stringSet-647493ce.js → stringSet-c4a61372.js} +1 -1
  360. package/{stringSet-647493ce.js.map → stringSet-c4a61372.js.map} +1 -1
  361. package/{topics-18836011.js → topics-851d221c.js} +1 -1
  362. package/{topics-18836011.js.map → topics-851d221c.js.map} +1 -1
  363. package/{tslib.es6-710c6267.js → tslib.es6-72a2f141.js} +18 -2
  364. package/{tslib.es6-710c6267.js.map → tslib.es6-72a2f141.js.map} +1 -1
  365. package/ui/Accordion.js +4 -4
  366. package/ui/AccordionGroup.js +2 -2
  367. package/ui/AdminMessage.js +4 -4
  368. package/ui/Avatar.js +3 -3
  369. package/ui/Badge.js +6 -6
  370. package/ui/Button.js +5 -5
  371. package/ui/ChannelAvatar.js +4 -4
  372. package/ui/ChannelPreview.js +12 -12
  373. package/ui/ChatHeader.js +8 -8
  374. package/ui/ConnectionStatus.js +5 -5
  375. package/ui/ContextMenu.js +100 -86
  376. package/ui/ContextMenu.js.map +1 -1
  377. package/ui/DateSeparator.js +5 -5
  378. package/ui/EmojiReactions.js +8 -8
  379. package/ui/FileMessageItemBody.js +10 -8
  380. package/ui/FileMessageItemBody.js.map +1 -1
  381. package/ui/FileViewer.js +9 -9
  382. package/ui/Icon.js +1 -1
  383. package/ui/IconButton.js +1 -1
  384. package/ui/ImageRenderer.js +1 -1
  385. package/ui/Input.js +3 -3
  386. package/ui/Label.js +3 -3
  387. package/ui/LinkLabel.js +3 -3
  388. package/ui/Loader.js +2 -2
  389. package/ui/MentionLabel.js +11 -11
  390. package/ui/MessageContent.js +23 -18
  391. package/ui/MessageContent.js.map +1 -1
  392. package/ui/MessageInput.js +10 -10
  393. package/ui/MessageInput.js.map +1 -1
  394. package/ui/MessageItemMenu.js +8 -8
  395. package/ui/MessageItemReactionMenu.js +6 -6
  396. package/ui/MessageSearchFileItem.js +10 -10
  397. package/ui/MessageSearchItem.js +10 -10
  398. package/ui/MessageStatus.js +8 -8
  399. package/ui/Modal.js +8 -8
  400. package/ui/MutedAvatarOverlay.js +1 -1
  401. package/ui/OGMessageItemBody.js +15 -13
  402. package/ui/OGMessageItemBody.js.map +1 -1
  403. package/ui/OpenChannelAdminMessage.js +4 -4
  404. package/ui/OpenChannelAvatar.js +7 -7
  405. package/ui/OpenchannelConversationHeader.js +7 -7
  406. package/ui/OpenchannelFileMessage.js +15 -15
  407. package/ui/OpenchannelOGMessage.js +15 -15
  408. package/ui/OpenchannelThumbnailMessage.js +14 -14
  409. package/ui/OpenchannelUserMessage.js +15 -15
  410. package/ui/PlaceHolder.js +7 -7
  411. package/ui/QuoteMessage.js +7 -7
  412. package/ui/QuoteMessageInput.js +7 -7
  413. package/ui/ReactionBadge.js +4 -4
  414. package/ui/ReactionButton.js +1 -1
  415. package/ui/SortByRow.js +2 -2
  416. package/ui/TextButton.js +2 -2
  417. package/ui/TextMessageItemBody.js +15 -13
  418. package/ui/TextMessageItemBody.js.map +1 -1
  419. package/ui/ThumbnailMessageItemBody.js +11 -9
  420. package/ui/ThumbnailMessageItemBody.js.map +1 -1
  421. package/ui/Tooltip.js +4 -4
  422. package/ui/TooltipWrapper.js +1 -1
  423. package/ui/UnknownMessageItemBody.js +11 -9
  424. package/ui/UnknownMessageItemBody.js.map +1 -1
  425. package/ui/UserListItem.js +12 -12
  426. package/ui/UserProfile.js +10 -10
  427. package/ui/Word.js +11 -11
  428. package/useSendbirdStateContext.js +1 -1
  429. package/{utils-19e84a08.js → utils-12da1022.js} +1 -1
  430. package/{utils-19e84a08.js.map → utils-12da1022.js.map} +1 -1
  431. package/{utils-301322ba.js → utils-2c4d166e.js} +1 -1
  432. package/{utils-301322ba.js.map → utils-2c4d166e.js.map} +1 -1
  433. package/{utils-2666bdfb.js → utils-bc7d8f0c.js} +1 -1
  434. package/{utils-2666bdfb.js.map → utils-bc7d8f0c.js.map} +1 -1
  435. package/{uuid-60ae25c1.js → uuid-8a4db02f.js} +1 -1
  436. package/{uuid-60ae25c1.js.map → uuid-8a4db02f.js.map} +1 -1
  437. package/withSendbird.js +1 -1
  438. package/MemberList-0acc36c3.js.map +0 -1
  439. package/OpenChannelProvider-2e3fa2dd.js.map +0 -1
  440. package/cjs/MemberList-442ade8c.js.map +0 -1
  441. package/cjs/OpenChannelProvider-bc8d7f0d.js.map +0 -1
  442. package/package-lock.json +0 -60787
@@ -1,55 +1,55 @@
1
1
  import React__default, { useContext, useMemo, useState, useRef } from 'react';
2
- import { f as format } from '../../index-7f2be3d7.js';
2
+ import { f as format } from '../../index-4400a360.js';
3
3
  import OpenchannelUserMessage from '../../ui/OpenchannelUserMessage.js';
4
4
  import OpenChannelAdminMessage from '../../ui/OpenChannelAdminMessage.js';
5
5
  import OpenchannelOGMessage from '../../ui/OpenchannelOGMessage.js';
6
6
  import OpenchannelThumbnailMessage from '../../ui/OpenchannelThumbnailMessage.js';
7
7
  import OpenchannelFileMessage from '../../ui/OpenchannelFileMessage.js';
8
8
  import DateSeparator from '../../ui/DateSeparator.js';
9
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-ed39099a.js';
9
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-e028fd23.js';
10
10
  import MessageInput from '../../ui/MessageInput.js';
11
11
  import FileViewer from '../../ui/FileViewer.js';
12
12
  import Modal from '../../ui/Modal.js';
13
- import { a as LocalizationContext, u as useLocalization } from '../../LocalizationContext-2a073ef0.js';
14
- import { _ as __assign } from '../../tslib.es6-710c6267.js';
15
- import { u as useOpenChannelContext } from '../../OpenChannelProvider-2e3fa2dd.js';
13
+ import { a as LocalizationContext, u as useLocalization } from '../../LocalizationContext-5b475a64.js';
14
+ import { _ as __assign } from '../../tslib.es6-72a2f141.js';
15
+ import { u as useOpenChannelContext } from '../../OpenChannelProvider-f5d504ec.js';
16
16
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
17
- import '../../index-5ec69689.js';
17
+ import '../../index-25496c01.js';
18
18
  import '../../ui/Avatar.js';
19
19
  import '../../ui/ImageRenderer.js';
20
20
  import '../../ui/Icon.js';
21
- import '../../_rollupPluginBabelHelpers-3043541a.js';
21
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
22
22
  import 'prop-types';
23
- import '../../uuid-60ae25c1.js';
23
+ import '../../uuid-8a4db02f.js';
24
24
  import '../../ui/ContextMenu.js';
25
25
  import 'react-dom';
26
26
  import '../../ui/SortByRow.js';
27
- import '../../index-03ccaf35.js';
28
- import '../../stringSet-647493ce.js';
27
+ import '../../index-24a5ab49.js';
28
+ import '../../stringSet-c4a61372.js';
29
29
  import '../../ui/IconButton.js';
30
30
  import '../../ui/Loader.js';
31
31
  import '../../ui/UserProfile.js';
32
32
  import '../../withSendbird.js';
33
33
  import '../../sendbirdSelectors.js';
34
- import '../../topics-18836011.js';
35
- import '../../utils-301322ba.js';
36
- import '../../index-6a47d16f.js';
37
- import '../../UserProfileContext-143a6a42.js';
38
- import '../../utils-19e84a08.js';
39
- import '../../openChannelUtils-09e4bac8.js';
34
+ import '../../topics-851d221c.js';
35
+ import '../../utils-2c4d166e.js';
36
+ import '../../index-16e14c17.js';
37
+ import '../../UserProfileContext-a2483e23.js';
38
+ import '../../utils-12da1022.js';
39
+ import '../../openChannelUtils-f64223c9.js';
40
40
  import '../../ui/LinkLabel.js';
41
41
  import '../../ui/TextButton.js';
42
- import '../../color-798488ed.js';
43
- import '../../const-51fc1a68.js';
44
- import '../../const-b88f8299.js';
42
+ import '../../color-83cfc07a.js';
43
+ import '../../const-71ceda85.js';
44
+ import '../../const-7867ac6a.js';
45
45
  import '../../ui/MentionUserLabel.js';
46
- import '../../index-c9cda9f6.js';
47
- import '../../compareIds-2e073780.js';
48
- import '../../sendbird-597583ed.js';
49
- import '../../__bundle-6316ce22-cd546820.js';
50
- import '../../__bundle-fbda47dd-9dbeee1d.js';
51
- import '../../openChannel-1548376e.js';
52
- import '../../__bundle-7dfccc8c-6c6e7ab4.js';
46
+ import '../../index-1086dd43.js';
47
+ import '../../compareIds-9455ecb0.js';
48
+ import '../../sendbird-21239b88.js';
49
+ import '../../__bundle-6316ce22-63d15802.js';
50
+ import '../../__bundle-fbda47dd-b1c87af3.js';
51
+ import '../../openChannel-825f8e93.js';
52
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
53
53
 
54
54
  function RemoveMessageModal(_a) {
55
55
  var onCloseModal = _a.onCloseModal,
@@ -1,27 +1,27 @@
1
1
  import React__default, { useRef, useState, useMemo } from 'react';
2
- import { i as isSameDay } from '../../index-b4944539.js';
2
+ import { i as isSameDay } from '../../index-2f85a795.js';
3
3
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
4
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-ced613ea.js';
5
- import { u as useOpenChannelContext, c as compareMessagesForGrouping } from '../../OpenChannelProvider-2e3fa2dd.js';
4
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-7a790c96.js';
5
+ import { u as useOpenChannelContext, c as compareMessagesForGrouping } from '../../OpenChannelProvider-f5d504ec.js';
6
6
  import MessagOpenChannelMessageeHoc from './OpenChannelMessage.js';
7
- import '../../index-7f2be3d7.js';
8
- import '../../index-5ec69689.js';
9
- import '../../_rollupPluginBabelHelpers-3043541a.js';
7
+ import '../../index-4400a360.js';
8
+ import '../../index-25496c01.js';
9
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
10
10
  import 'prop-types';
11
- import '../../tslib.es6-710c6267.js';
12
- import '../../LocalizationContext-2a073ef0.js';
13
- import '../../stringSet-647493ce.js';
14
- import '../../index-ed39099a.js';
11
+ import '../../tslib.es6-72a2f141.js';
12
+ import '../../LocalizationContext-5b475a64.js';
13
+ import '../../stringSet-c4a61372.js';
14
+ import '../../index-e028fd23.js';
15
15
  import '../../ui/Loader.js';
16
- import '../../UserProfileContext-143a6a42.js';
17
- import '../../compareIds-2e073780.js';
18
- import '../../topics-18836011.js';
19
- import '../../sendbird-597583ed.js';
20
- import '../../__bundle-6316ce22-cd546820.js';
21
- import '../../__bundle-fbda47dd-9dbeee1d.js';
22
- import '../../openChannel-1548376e.js';
23
- import '../../__bundle-7dfccc8c-6c6e7ab4.js';
24
- import '../../uuid-60ae25c1.js';
16
+ import '../../UserProfileContext-a2483e23.js';
17
+ import '../../compareIds-9455ecb0.js';
18
+ import '../../topics-851d221c.js';
19
+ import '../../sendbird-21239b88.js';
20
+ import '../../__bundle-6316ce22-63d15802.js';
21
+ import '../../__bundle-fbda47dd-b1c87af3.js';
22
+ import '../../openChannel-825f8e93.js';
23
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
24
+ import '../../uuid-8a4db02f.js';
25
25
  import '../../useSendbirdStateContext.js';
26
26
  import '../../withSendbird.js';
27
27
  import '../../ui/OpenchannelUserMessage.js';
@@ -30,28 +30,28 @@ import '../../ui/ImageRenderer.js';
30
30
  import '../../ui/ContextMenu.js';
31
31
  import 'react-dom';
32
32
  import '../../ui/SortByRow.js';
33
- import '../../index-03ccaf35.js';
33
+ import '../../index-24a5ab49.js';
34
34
  import '../../ui/IconButton.js';
35
35
  import '../../ui/UserProfile.js';
36
36
  import '../../sendbirdSelectors.js';
37
- import '../../utils-301322ba.js';
38
- import '../../index-6a47d16f.js';
39
- import '../../utils-19e84a08.js';
40
- import '../../openChannelUtils-09e4bac8.js';
37
+ import '../../utils-2c4d166e.js';
38
+ import '../../index-16e14c17.js';
39
+ import '../../utils-12da1022.js';
40
+ import '../../openChannelUtils-f64223c9.js';
41
41
  import '../../ui/OpenChannelAdminMessage.js';
42
42
  import '../../ui/OpenchannelOGMessage.js';
43
43
  import '../../ui/LinkLabel.js';
44
44
  import '../../ui/OpenchannelThumbnailMessage.js';
45
45
  import '../../ui/OpenchannelFileMessage.js';
46
46
  import '../../ui/TextButton.js';
47
- import '../../color-798488ed.js';
47
+ import '../../color-83cfc07a.js';
48
48
  import '../../ui/DateSeparator.js';
49
49
  import '../../ui/MessageInput.js';
50
- import '../../const-51fc1a68.js';
51
- import '../../const-b88f8299.js';
50
+ import '../../const-71ceda85.js';
51
+ import '../../const-7867ac6a.js';
52
52
  import '../../ui/MentionUserLabel.js';
53
53
  import '../../ui/FileViewer.js';
54
- import '../../index-c9cda9f6.js';
54
+ import '../../index-1086dd43.js';
55
55
  import '../../ui/Modal.js';
56
56
 
57
57
  function OpenchannelMessageList(props, ref) {
@@ -1,41 +1,41 @@
1
1
  import React__default from 'react';
2
- import { u as useOpenChannelContext } from '../../OpenChannelProvider-2e3fa2dd.js';
2
+ import { u as useOpenChannelContext } from '../../OpenChannelProvider-f5d504ec.js';
3
3
  import OpenChannelInput from './OpenChannelInput.js';
4
4
  import FrozenNotification from './FrozenChannelNotification.js';
5
5
  import OpenchannelConversationHeader from './OpenChannelHeader.js';
6
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-ced613ea.js';
6
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-7a790c96.js';
7
7
  import OpenChannelMessageList from './OpenChannelMessageList.js';
8
- import '../../index-7f2be3d7.js';
9
- import '../../index-5ec69689.js';
10
- import '../../UserProfileContext-143a6a42.js';
8
+ import '../../index-4400a360.js';
9
+ import '../../index-25496c01.js';
10
+ import '../../UserProfileContext-a2483e23.js';
11
11
  import 'prop-types';
12
- import '../../tslib.es6-710c6267.js';
13
- import '../../compareIds-2e073780.js';
14
- import '../../topics-18836011.js';
15
- import '../../sendbird-597583ed.js';
16
- import '../../__bundle-6316ce22-cd546820.js';
17
- import '../../__bundle-fbda47dd-9dbeee1d.js';
18
- import '../../openChannel-1548376e.js';
19
- import '../../__bundle-7dfccc8c-6c6e7ab4.js';
20
- import '../../uuid-60ae25c1.js';
12
+ import '../../tslib.es6-72a2f141.js';
13
+ import '../../compareIds-9455ecb0.js';
14
+ import '../../topics-851d221c.js';
15
+ import '../../sendbird-21239b88.js';
16
+ import '../../__bundle-6316ce22-63d15802.js';
17
+ import '../../__bundle-fbda47dd-b1c87af3.js';
18
+ import '../../openChannel-825f8e93.js';
19
+ import '../../__bundle-7dfccc8c-d5c3938c.js';
20
+ import '../../uuid-8a4db02f.js';
21
21
  import '../../useSendbirdStateContext.js';
22
22
  import '../../withSendbird.js';
23
- import '../../_rollupPluginBabelHelpers-3043541a.js';
24
- import '../../LocalizationContext-2a073ef0.js';
25
- import '../../stringSet-647493ce.js';
23
+ import '../../_rollupPluginBabelHelpers-b2b008c2.js';
24
+ import '../../LocalizationContext-5b475a64.js';
25
+ import '../../stringSet-c4a61372.js';
26
26
  import '../../ui/MessageInput.js';
27
- import '../../const-51fc1a68.js';
28
- import '../../const-b88f8299.js';
27
+ import '../../const-71ceda85.js';
28
+ import '../../const-7867ac6a.js';
29
29
  import '../../ui/IconButton.js';
30
- import '../../index-6a47d16f.js';
31
- import '../../index-ed39099a.js';
30
+ import '../../index-16e14c17.js';
31
+ import '../../index-e028fd23.js';
32
32
  import '../../ui/MentionUserLabel.js';
33
33
  import '../../ui/Icon.js';
34
- import '../../index-03ccaf35.js';
34
+ import '../../index-24a5ab49.js';
35
35
  import '../../ui/Avatar.js';
36
36
  import '../../ui/ImageRenderer.js';
37
37
  import '../../ui/Loader.js';
38
- import '../../index-b4944539.js';
38
+ import '../../index-2f85a795.js';
39
39
  import './OpenChannelMessage.js';
40
40
  import '../../ui/OpenchannelUserMessage.js';
41
41
  import '../../ui/ContextMenu.js';
@@ -43,19 +43,19 @@ import 'react-dom';
43
43
  import '../../ui/SortByRow.js';
44
44
  import '../../ui/UserProfile.js';
45
45
  import '../../sendbirdSelectors.js';
46
- import '../../utils-301322ba.js';
47
- import '../../utils-19e84a08.js';
48
- import '../../openChannelUtils-09e4bac8.js';
46
+ import '../../utils-2c4d166e.js';
47
+ import '../../utils-12da1022.js';
48
+ import '../../openChannelUtils-f64223c9.js';
49
49
  import '../../ui/OpenChannelAdminMessage.js';
50
50
  import '../../ui/OpenchannelOGMessage.js';
51
51
  import '../../ui/LinkLabel.js';
52
52
  import '../../ui/OpenchannelThumbnailMessage.js';
53
53
  import '../../ui/OpenchannelFileMessage.js';
54
54
  import '../../ui/TextButton.js';
55
- import '../../color-798488ed.js';
55
+ import '../../color-83cfc07a.js';
56
56
  import '../../ui/DateSeparator.js';
57
57
  import '../../ui/FileViewer.js';
58
- import '../../index-c9cda9f6.js';
58
+ import '../../index-1086dd43.js';
59
59
  import '../../ui/Modal.js';
60
60
 
61
61
  var COMPONENT_CLASS_NAME = 'sendbird-openchannel-conversation';
@@ -1,19 +1,19 @@
1
1
  import 'react';
2
- export { O as OpenChannelProvider, u as useOpenChannelContext } from '../OpenChannelProvider-2e3fa2dd.js';
3
- import '../UserProfileContext-143a6a42.js';
4
- import '../topics-18836011.js';
2
+ export { O as OpenChannelProvider, u as useOpenChannelContext } from '../OpenChannelProvider-f5d504ec.js';
3
+ import '../UserProfileContext-a2483e23.js';
4
+ import '../topics-851d221c.js';
5
5
  import '../useSendbirdStateContext.js';
6
- import '../index-7f2be3d7.js';
7
- import '../index-5ec69689.js';
8
- import '../tslib.es6-710c6267.js';
9
- import '../compareIds-2e073780.js';
10
- import '../sendbird-597583ed.js';
11
- import '../__bundle-6316ce22-cd546820.js';
12
- import '../__bundle-fbda47dd-9dbeee1d.js';
13
- import '../openChannel-1548376e.js';
14
- import '../__bundle-7dfccc8c-6c6e7ab4.js';
15
- import '../uuid-60ae25c1.js';
6
+ import '../index-4400a360.js';
7
+ import '../index-25496c01.js';
8
+ import '../tslib.es6-72a2f141.js';
9
+ import '../compareIds-9455ecb0.js';
10
+ import '../sendbird-21239b88.js';
11
+ import '../__bundle-6316ce22-63d15802.js';
12
+ import '../__bundle-fbda47dd-b1c87af3.js';
13
+ import '../openChannel-825f8e93.js';
14
+ import '../__bundle-7dfccc8c-d5c3938c.js';
15
+ import '../uuid-8a4db02f.js';
16
16
  import 'prop-types';
17
17
  import '../withSendbird.js';
18
- import '../_rollupPluginBabelHelpers-3043541a.js';
18
+ import '../_rollupPluginBabelHelpers-b2b008c2.js';
19
19
  //# sourceMappingURL=context.js.map
package/OpenChannel.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import React__default from 'react';
2
2
  import OpenChannelUI from './OpenChannel/components/OpenChannelUI.js';
3
- import { O as OpenChannelProvider } from './OpenChannelProvider-2e3fa2dd.js';
3
+ import { O as OpenChannelProvider } from './OpenChannelProvider-f5d504ec.js';
4
4
  import './OpenChannel/components/OpenChannelInput.js';
5
- import './LocalizationContext-2a073ef0.js';
6
- import './stringSet-647493ce.js';
7
- import './index-5ec69689.js';
5
+ import './LocalizationContext-5b475a64.js';
6
+ import './stringSet-c4a61372.js';
7
+ import './index-25496c01.js';
8
8
  import './ui/MessageInput.js';
9
- import './_rollupPluginBabelHelpers-3043541a.js';
9
+ import './_rollupPluginBabelHelpers-b2b008c2.js';
10
10
  import 'prop-types';
11
- import './const-51fc1a68.js';
12
- import './const-b88f8299.js';
11
+ import './const-71ceda85.js';
12
+ import './const-7867ac6a.js';
13
13
  import './ui/IconButton.js';
14
- import './tslib.es6-710c6267.js';
15
- import './index-6a47d16f.js';
16
- import './index-ed39099a.js';
14
+ import './tslib.es6-72a2f141.js';
15
+ import './index-16e14c17.js';
16
+ import './index-e028fd23.js';
17
17
  import './ui/MentionUserLabel.js';
18
18
  import './ui/Icon.js';
19
- import './index-03ccaf35.js';
19
+ import './index-24a5ab49.js';
20
20
  import './OpenChannel/components/FrozenChannelNotification.js';
21
21
  import './OpenChannel/components/OpenChannelHeader.js';
22
22
  import './ui/Avatar.js';
23
23
  import './ui/ImageRenderer.js';
24
- import './uuid-60ae25c1.js';
25
- import './index-ced613ea.js';
24
+ import './uuid-8a4db02f.js';
25
+ import './index-7a790c96.js';
26
26
  import './ui/Loader.js';
27
27
  import './OpenChannel/components/OpenChannelMessageList.js';
28
- import './index-b4944539.js';
29
- import './index-7f2be3d7.js';
28
+ import './index-2f85a795.js';
29
+ import './index-4400a360.js';
30
30
  import './OpenChannel/components/OpenChannelMessage.js';
31
31
  import './ui/OpenchannelUserMessage.js';
32
32
  import './ui/ContextMenu.js';
@@ -35,29 +35,29 @@ import './ui/SortByRow.js';
35
35
  import './ui/UserProfile.js';
36
36
  import './withSendbird.js';
37
37
  import './sendbirdSelectors.js';
38
- import './topics-18836011.js';
39
- import './utils-301322ba.js';
40
- import './UserProfileContext-143a6a42.js';
41
- import './utils-19e84a08.js';
42
- import './openChannelUtils-09e4bac8.js';
38
+ import './topics-851d221c.js';
39
+ import './utils-2c4d166e.js';
40
+ import './UserProfileContext-a2483e23.js';
41
+ import './utils-12da1022.js';
42
+ import './openChannelUtils-f64223c9.js';
43
43
  import './ui/OpenChannelAdminMessage.js';
44
44
  import './ui/OpenchannelOGMessage.js';
45
45
  import './ui/LinkLabel.js';
46
46
  import './ui/OpenchannelThumbnailMessage.js';
47
47
  import './ui/OpenchannelFileMessage.js';
48
48
  import './ui/TextButton.js';
49
- import './color-798488ed.js';
49
+ import './color-83cfc07a.js';
50
50
  import './ui/DateSeparator.js';
51
51
  import './ui/FileViewer.js';
52
- import './index-c9cda9f6.js';
52
+ import './index-1086dd43.js';
53
53
  import './ui/Modal.js';
54
54
  import './useSendbirdStateContext.js';
55
- import './compareIds-2e073780.js';
56
- import './sendbird-597583ed.js';
57
- import './__bundle-6316ce22-cd546820.js';
58
- import './__bundle-fbda47dd-9dbeee1d.js';
59
- import './openChannel-1548376e.js';
60
- import './__bundle-7dfccc8c-6c6e7ab4.js';
55
+ import './compareIds-9455ecb0.js';
56
+ import './sendbird-21239b88.js';
57
+ import './__bundle-6316ce22-63d15802.js';
58
+ import './__bundle-fbda47dd-b1c87af3.js';
59
+ import './openChannel-825f8e93.js';
60
+ import './__bundle-7dfccc8c-d5c3938c.js';
61
61
 
62
62
  var OpenChannel = function OpenChannel(props) {
63
63
  return /*#__PURE__*/React__default.createElement(OpenChannelProvider, {
@@ -1,13 +1,13 @@
1
1
  import React__default, { useEffect, useCallback, useState, useReducer, useRef, useMemo } from 'react';
2
- import { f as format } from './index-7f2be3d7.js';
3
- import { U as UserProfileProvider } from './UserProfileContext-143a6a42.js';
4
- import { _ as __assign, a as __spreadArray } from './tslib.es6-710c6267.js';
5
- import { c as compareIds } from './compareIds-2e073780.js';
6
- import { a as SEND_USER_MESSAGE, S as SEND_MESSAGE_START, b as SEND_FILE_MESSAGE, U as UPDATE_USER_MESSAGE, D as DELETE_MESSAGE } from './topics-18836011.js';
7
- import './sendbird-597583ed.js';
8
- import { U as Un } from './openChannel-1548376e.js';
9
- import { u as uuidv4 } from './uuid-60ae25c1.js';
10
- import { n as ne } from './__bundle-6316ce22-cd546820.js';
2
+ import { f as format } from './index-4400a360.js';
3
+ import { U as UserProfileProvider } from './UserProfileContext-a2483e23.js';
4
+ import { _ as __assign, a as __spreadArray } from './tslib.es6-72a2f141.js';
5
+ import { c as compareIds } from './compareIds-9455ecb0.js';
6
+ import { a as SEND_USER_MESSAGE, S as SEND_MESSAGE_START, b as SEND_FILE_MESSAGE, U as UPDATE_USER_MESSAGE, D as DELETE_MESSAGE } from './topics-851d221c.js';
7
+ import './sendbird-21239b88.js';
8
+ import { U as Un } from './openChannel-825f8e93.js';
9
+ import { u as uuidv4 } from './uuid-8a4db02f.js';
10
+ import { n as ne } from './__bundle-6316ce22-63d15802.js';
11
11
  import useSendbirdStateContext from './useSendbirdStateContext.js';
12
12
 
13
13
  var getMessageCreatedAt = function getMessageCreatedAt(message) {
@@ -128,6 +128,7 @@ var pxToNumber = function pxToNumber(px) {
128
128
  var SET_CURRENT_CHANNEL = 'SET_CURRENT_CHANNEL';
129
129
  var SET_CHANNEL_INVALID = 'SET_CHANNEL_INVALID';
130
130
  var RESET_MESSAGES = 'RESET_MESSAGES';
131
+ var EXIT_CURRENT_CHANNEL = 'EXIT_CURRENT_CHANNEL';
131
132
  var GET_PREV_MESSAGES_START = 'GET_PREV_MESSAGES_START';
132
133
  var GET_PREV_MESSAGES_SUCESS = 'GET_PREV_MESSAGES_SUCESS';
133
134
  var GET_PREV_MESSAGES_FAIL = 'GET_PREV_MESSAGES_FAIL';
@@ -164,7 +165,7 @@ var ON_META_COUNTERS_DELETED = 'ON_META_COUNTERS_DELETED';
164
165
  var ON_MENTION_RECEIVED = 'ON_MENTION_RECEIVED';
165
166
 
166
167
  function reducer(state, action) {
167
- var _a;
168
+ var _a, _b, _c;
168
169
 
169
170
  switch (action.type) {
170
171
  case RESET_MESSAGES:
@@ -174,6 +175,17 @@ function reducer(state, action) {
174
175
  });
175
176
  }
176
177
 
178
+ case EXIT_CURRENT_CHANNEL:
179
+ {
180
+ if (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.url) === ((_b = state.currentOpenChannel) === null || _b === void 0 ? void 0 : _b.url)) {
181
+ return __assign(__assign({}, state), {
182
+ currentOpenChannel: null
183
+ });
184
+ }
185
+
186
+ return state;
187
+ }
188
+
177
189
  case SET_CURRENT_CHANNEL:
178
190
  {
179
191
  var gottenChannel = action.payload;
@@ -211,13 +223,13 @@ function reducer(state, action) {
211
223
  case GET_PREV_MESSAGES_FAIL:
212
224
  {
213
225
  var isFailed = action.type === GET_PREV_MESSAGES_FAIL;
214
- var _b = action.payload,
215
- _c = _b.currentOpenChannel,
216
- currentOpenChannel = _c === void 0 ? {} : _c,
217
- _d = _b.messages,
218
- messages = _d === void 0 ? [] : _d,
219
- hasMore = _b.hasMore,
220
- lastMessageTimestamp = _b.lastMessageTimestamp;
226
+ var _d = action.payload,
227
+ _e = _d.currentOpenChannel,
228
+ currentOpenChannel = _e === void 0 ? {} : _e,
229
+ _f = _d.messages,
230
+ messages = _f === void 0 ? [] : _f,
231
+ hasMore = _d.hasMore,
232
+ lastMessageTimestamp = _d.lastMessageTimestamp;
221
233
  var actionChannelUrl = currentOpenChannel.url;
222
234
  var receivedMessages_1 = isFailed ? [] : messages;
223
235
 
@@ -249,9 +261,9 @@ function reducer(state, action) {
249
261
 
250
262
  case SENDING_MESSAGE_START:
251
263
  {
252
- var _e = action.payload,
253
- message_1 = _e.message,
254
- channel = _e.channel;
264
+ var _g = action.payload,
265
+ message_1 = _g.message,
266
+ channel = _g.channel;
255
267
 
256
268
  if ((channel === null || channel === void 0 ? void 0 : channel.url) !== state.currentOpenChannel.url || state.allMessages.some(function (m) {
257
269
  return m.reqId === message_1.reqId;
@@ -302,7 +314,7 @@ function reducer(state, action) {
302
314
  case TRIM_MESSAGE_LIST:
303
315
  {
304
316
  var allMessages = state.allMessages;
305
- var messageLimit = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.messageLimit;
317
+ var messageLimit = (_c = action.payload) === null || _c === void 0 ? void 0 : _c.messageLimit;
306
318
 
307
319
  if (messageLimit && messageLimit > 0 && (allMessages === null || allMessages === void 0 ? void 0 : allMessages.length) > messageLimit) {
308
320
  var sliceAt = allMessages.length - messageLimit;
@@ -708,15 +720,28 @@ function useSetChannel(_a, _b) {
708
720
  var channelUrl = _a.channelUrl,
709
721
  sdkInit = _a.sdkInit,
710
722
  fetchingParticipants = _a.fetchingParticipants,
711
- userId = _a.userId;
723
+ userId = _a.userId,
724
+ currentOpenChannel = _a.currentOpenChannel;
712
725
  var sdk = _b.sdk,
713
726
  logger = _b.logger,
714
727
  messagesDispatcher = _b.messagesDispatcher;
715
728
  useEffect(function () {
729
+ var _a;
730
+
716
731
  if (channelUrl && sdkInit && (sdk === null || sdk === void 0 ? void 0 : sdk.openChannel)) {
717
- logger.info('OpenChannel | useSetChannel fetching channel', channelUrl);
732
+ if (currentOpenChannel && (currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.exit)) {
733
+ (_a = currentOpenChannel.exit) === null || _a === void 0 ? void 0 : _a.call(currentOpenChannel).then(function () {
734
+ logger.info('OpenChannel | useSetChannel: Exit from the previous open channel', currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.url);
735
+ messagesDispatcher({
736
+ type: EXIT_CURRENT_CHANNEL,
737
+ payload: currentOpenChannel
738
+ });
739
+ });
740
+ }
741
+
742
+ logger.info('OpenChannel | useSetChannel: Fetching channel', channelUrl);
718
743
  sdk.openChannel.getChannel(channelUrl).then(function (openChannel) {
719
- logger.info('OpenChannel | useSetChannel fetched channel', openChannel);
744
+ logger.info('OpenChannel | useSetChannel: Succeeded to fetch channel', openChannel);
720
745
  messagesDispatcher({
721
746
  type: SET_CURRENT_CHANNEL,
722
747
  payload: openChannel
@@ -774,7 +799,7 @@ function useSetChannel(_a, _b) {
774
799
  });
775
800
  }
776
801
  }).catch(function (error) {
777
- logger.warning('OpenChannel | useSetChannel enter channel failed', {
802
+ logger.warning('OpenChannel | useSetChannel: Failed to enter channel', {
778
803
  channelUrl: channelUrl,
779
804
  error: error
780
805
  });
@@ -784,7 +809,7 @@ function useSetChannel(_a, _b) {
784
809
  });
785
810
  });
786
811
  }).catch(function (error) {
787
- logger.warning('OpenChannel | useSetChannel fetching channel failed', {
812
+ logger.warning('OpenChannel | useSetChannel: Failed to fetch channel', {
788
813
  channelUrl: channelUrl,
789
814
  error: error
790
815
  });
@@ -1741,7 +1766,8 @@ var OpenChannelProvider = function OpenChannelProvider(props) {
1741
1766
  channelUrl: channelUrl,
1742
1767
  sdkInit: sdkInit,
1743
1768
  fetchingParticipants: fetchingParticipants,
1744
- userId: userId
1769
+ userId: userId,
1770
+ currentOpenChannel: currentOpenChannel
1745
1771
  }, {
1746
1772
  sdk: sdk,
1747
1773
  logger: logger,
@@ -1911,17 +1937,7 @@ var OpenChannelProvider = function OpenChannelProvider(props) {
1911
1937
  });
1912
1938
  }
1913
1939
  };
1914
- }, [channelUrl, sdkInit]); // Exit channel when unmount
1915
-
1916
- useEffect(function () {
1917
- return function () {
1918
- if (currentOpenChannel && currentOpenChannel.exit) {
1919
- currentOpenChannel.exit().then(function () {
1920
- logger.info('OpenChannel | useSetChannel: Succeeded to exit channel');
1921
- });
1922
- }
1923
- };
1924
- }, [currentOpenChannel]);
1940
+ }, [channelUrl, sdkInit]);
1925
1941
  return /*#__PURE__*/React__default.createElement(OpenChannelContext.Provider, {
1926
1942
  value: {
1927
1943
  // props
@@ -1972,4 +1988,4 @@ var useOpenChannelContext = function useOpenChannelContext() {
1972
1988
  };
1973
1989
 
1974
1990
  export { OpenChannelProvider as O, compareMessagesForGrouping as c, kFormatter as k, useOpenChannelContext as u };
1975
- //# sourceMappingURL=OpenChannelProvider-2e3fa2dd.js.map
1991
+ //# sourceMappingURL=OpenChannelProvider-f5d504ec.js.map