@sendbird/uikit-react 3.6.6 → 3.6.7

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 (527) hide show
  1. package/App.js +48 -48
  2. package/CHANGELOG.md +61 -0
  3. package/Channel/components/ChannelHeader.js +19 -19
  4. package/Channel/components/ChannelUI.js +41 -41
  5. package/Channel/components/FileViewer.js +15 -15
  6. package/Channel/components/FrozenNotification.js +4 -4
  7. package/Channel/components/Message.js +36 -36
  8. package/Channel/components/MessageInput.js +29 -29
  9. package/Channel/components/MessageList.js +37 -37
  10. package/Channel/components/RemoveMessageModal.js +17 -17
  11. package/Channel/components/SuggestedMentionList.js +17 -17
  12. package/Channel/components/TypingIndicator.js +15 -15
  13. package/Channel/components/UnreadCount.js +4 -4
  14. package/Channel/context.js +12 -12
  15. package/Channel.js +41 -41
  16. package/ChannelList/components/AddChannel.js +15 -14
  17. package/ChannelList/components/AddChannel.js.map +1 -1
  18. package/ChannelList/components/ChannelListHeader.js +6 -6
  19. package/ChannelList/components/ChannelListUI.js +35 -68
  20. package/ChannelList/components/ChannelListUI.js.map +1 -1
  21. package/ChannelList/components/ChannelPreview.js +26 -26
  22. package/ChannelList/components/ChannelPreviewAction.js +14 -13
  23. package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  24. package/ChannelList/context.js +8 -7
  25. package/ChannelList/context.js.map +1 -1
  26. package/ChannelList.js +30 -30
  27. package/{ChannelListProvider-2e7026e9.js → ChannelListProvider-fc14f42d.js} +77 -11
  28. package/ChannelListProvider-fc14f42d.js.map +1 -0
  29. package/{ChannelProvider-31a344d3.js → ChannelProvider-78e85f32.js} +32 -21
  30. package/ChannelProvider-78e85f32.js.map +1 -0
  31. package/ChannelSettings/components/ChannelProfile.js +11 -11
  32. package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
  33. package/ChannelSettings/components/EditDetailsModal.js +11 -11
  34. package/ChannelSettings/components/LeaveChannel.js +11 -11
  35. package/ChannelSettings/components/ModerationPanel.js +14 -14
  36. package/ChannelSettings/components/UserListItem.js +10 -10
  37. package/ChannelSettings/components/UserPanel.js +13 -13
  38. package/ChannelSettings/context.js +3 -3
  39. package/ChannelSettings.js +17 -17
  40. package/CreateChannel/components/CreateChannelUI.js +13 -13
  41. package/CreateChannel/components/InviteUsers.js +13 -13
  42. package/CreateChannel/components/SelectChannelType.js +10 -10
  43. package/CreateChannel/context.js +4 -4
  44. package/CreateChannel.js +13 -13
  45. package/{CreateChannelProvider-eeaa1371.js → CreateChannelProvider-fe23c38f.js} +1 -1
  46. package/{CreateChannelProvider-eeaa1371.js.map → CreateChannelProvider-fe23c38f.js.map} +1 -1
  47. package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
  48. package/CreateOpenChannel/context.js +1 -1
  49. package/CreateOpenChannel.js +9 -9
  50. package/EditUserProfile/components/EditUserProfileUI.js +12 -12
  51. package/EditUserProfile.js +12 -12
  52. package/{LocalizationContext-2952e678.js → LocalizationContext-5fe9b59d.js} +3 -3
  53. package/{LocalizationContext-2952e678.js.map → LocalizationContext-5fe9b59d.js.map} +1 -1
  54. package/{MediaQueryContext-2173573f.js → MediaQueryContext-66b59195.js} +1 -1
  55. package/{MediaQueryContext-2173573f.js.map → MediaQueryContext-66b59195.js.map} +1 -1
  56. package/{MemberList-a51051e6.js → MemberList-c03817ad.js} +5 -5
  57. package/{MemberList-a51051e6.js.map → MemberList-c03817ad.js.map} +1 -1
  58. package/MessageSearch/components/MessageSearchUI.js +11 -11
  59. package/MessageSearch/context.js +1 -1
  60. package/MessageSearch.js +11 -11
  61. package/OpenChannel/components/FrozenChannelNotification.js +4 -4
  62. package/OpenChannel/components/OpenChannelHeader.js +12 -12
  63. package/OpenChannel/components/OpenChannelInput.js +19 -19
  64. package/OpenChannel/components/OpenChannelMessage.js +27 -27
  65. package/OpenChannel/components/OpenChannelMessageList.js +31 -31
  66. package/OpenChannel/components/OpenChannelUI.js +31 -31
  67. package/OpenChannel/context.js +8 -8
  68. package/OpenChannel.js +31 -31
  69. package/OpenChannelList/components/OpenChannelListUI.js +13 -13
  70. package/OpenChannelList/components/OpenChannelPreview.js +3 -3
  71. package/OpenChannelList/context.js +3 -3
  72. package/OpenChannelList.js +13 -13
  73. package/{OpenChannelListProvider-ce900f45.js → OpenChannelListProvider-5d21932a.js} +3 -3
  74. package/{OpenChannelListProvider-ce900f45.js.map → OpenChannelListProvider-5d21932a.js.map} +1 -1
  75. package/{OpenChannelProvider-bc20868c.js → OpenChannelProvider-a6f4f92a.js} +7 -7
  76. package/{OpenChannelProvider-bc20868c.js.map → OpenChannelProvider-a6f4f92a.js.map} +1 -1
  77. package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
  78. package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
  79. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  80. package/OpenChannelSettings/components/OperatorUI.js +16 -16
  81. package/OpenChannelSettings/components/ParticipantUI.js +14 -14
  82. package/OpenChannelSettings/context.js +3 -3
  83. package/OpenChannelSettings.js +17 -17
  84. package/README.md +6 -3
  85. package/{RemoveMessageModal-9c579f0f.js → RemoveMessageModal-0d438e31.js} +3 -3
  86. package/{RemoveMessageModal-9c579f0f.js.map → RemoveMessageModal-0d438e31.js.map} +1 -1
  87. package/SendbirdProvider.js +15 -15
  88. package/Thread/components/ParentMessageInfo.js +33 -33
  89. package/Thread/components/ParentMessageInfoItem.js +21 -21
  90. package/Thread/components/ThreadHeader.js +6 -6
  91. package/Thread/components/ThreadList.js +36 -36
  92. package/Thread/components/ThreadListItem.js +36 -36
  93. package/Thread/components/ThreadMessageInput.js +30 -30
  94. package/Thread/components/ThreadUI.js +40 -40
  95. package/Thread/context.js +8 -8
  96. package/Thread.js +40 -40
  97. package/{ThreadProvider-27c497dc.js → ThreadProvider-2a4356a2.js} +21 -7
  98. package/ThreadProvider-2a4356a2.js.map +1 -0
  99. package/{UserProfileContext-76aab169.js → UserProfileContext-8b8f3e3a.js} +1 -1
  100. package/{UserProfileContext-76aab169.js.map → UserProfileContext-8b8f3e3a.js.map} +1 -1
  101. package/{VoiceMessageInputWrapper-e45ec2f0.js → VoiceMessageInputWrapper-b8742ea1.js} +7 -7
  102. package/{VoiceMessageInputWrapper-e45ec2f0.js.map → VoiceMessageInputWrapper-b8742ea1.js.map} +1 -1
  103. package/VoicePlayer/context.js +3 -3
  104. package/VoicePlayer/useVoicePlayer.js +9 -9
  105. package/VoiceRecorder/context.js +9 -9
  106. package/VoiceRecorder/useVoiceRecorder.js +8 -8
  107. package/{WebAudioUtils-97e524fa.js → WebAudioUtils-63418113.js} +2 -2
  108. package/{WebAudioUtils-97e524fa.js.map → WebAudioUtils-63418113.js.map} +1 -1
  109. package/{_rollupPluginBabelHelpers-34f2bdc3.js → _rollupPluginBabelHelpers-90ff7fc4.js} +1 -1
  110. package/_rollupPluginBabelHelpers-90ff7fc4.js.map +1 -0
  111. package/{actionTypes-e67c8999.js → actionTypes-66bf934b.js} +1 -1
  112. package/{actionTypes-e67c8999.js.map → actionTypes-66bf934b.js.map} +1 -1
  113. package/cjs/App.js +48 -48
  114. package/cjs/Channel/components/ChannelHeader.js +19 -19
  115. package/cjs/Channel/components/ChannelUI.js +41 -41
  116. package/cjs/Channel/components/FileViewer.js +15 -15
  117. package/cjs/Channel/components/FrozenNotification.js +4 -4
  118. package/cjs/Channel/components/Message.js +36 -36
  119. package/cjs/Channel/components/MessageInput.js +29 -29
  120. package/cjs/Channel/components/MessageList.js +37 -37
  121. package/cjs/Channel/components/RemoveMessageModal.js +17 -17
  122. package/cjs/Channel/components/SuggestedMentionList.js +17 -17
  123. package/cjs/Channel/components/TypingIndicator.js +15 -15
  124. package/cjs/Channel/components/UnreadCount.js +4 -4
  125. package/cjs/Channel/context.js +12 -12
  126. package/cjs/Channel.js +41 -41
  127. package/cjs/ChannelList/components/AddChannel.js +15 -14
  128. package/cjs/ChannelList/components/AddChannel.js.map +1 -1
  129. package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
  130. package/cjs/ChannelList/components/ChannelListUI.js +35 -68
  131. package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
  132. package/cjs/ChannelList/components/ChannelPreview.js +26 -26
  133. package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -13
  134. package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  135. package/cjs/ChannelList/context.js +8 -7
  136. package/cjs/ChannelList/context.js.map +1 -1
  137. package/cjs/ChannelList.js +30 -30
  138. package/cjs/{ChannelListProvider-51837593.js → ChannelListProvider-c1f3cf4a.js} +75 -12
  139. package/cjs/ChannelListProvider-c1f3cf4a.js.map +1 -0
  140. package/cjs/{ChannelProvider-ab59275b.js → ChannelProvider-633edf61.js} +32 -21
  141. package/cjs/ChannelProvider-633edf61.js.map +1 -0
  142. package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
  143. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
  144. package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
  145. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  146. package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
  147. package/cjs/ChannelSettings/components/UserListItem.js +10 -10
  148. package/cjs/ChannelSettings/components/UserPanel.js +13 -13
  149. package/cjs/ChannelSettings/context.js +3 -3
  150. package/cjs/ChannelSettings.js +17 -17
  151. package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
  152. package/cjs/CreateChannel/components/InviteUsers.js +13 -13
  153. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  154. package/cjs/CreateChannel/context.js +4 -4
  155. package/cjs/CreateChannel.js +13 -13
  156. package/cjs/{CreateChannelProvider-e0ae2cf1.js → CreateChannelProvider-32102712.js} +1 -1
  157. package/cjs/{CreateChannelProvider-e0ae2cf1.js.map → CreateChannelProvider-32102712.js.map} +1 -1
  158. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
  159. package/cjs/CreateOpenChannel/context.js +1 -1
  160. package/cjs/CreateOpenChannel.js +9 -9
  161. package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
  162. package/cjs/EditUserProfile.js +12 -12
  163. package/cjs/{LocalizationContext-76831b0e.js → LocalizationContext-a15ec4eb.js} +3 -3
  164. package/cjs/{LocalizationContext-76831b0e.js.map → LocalizationContext-a15ec4eb.js.map} +1 -1
  165. package/cjs/{MediaQueryContext-792b58f7.js → MediaQueryContext-80d10d7b.js} +1 -1
  166. package/cjs/{MediaQueryContext-792b58f7.js.map → MediaQueryContext-80d10d7b.js.map} +1 -1
  167. package/cjs/{MemberList-6b630054.js → MemberList-5303bbbb.js} +5 -5
  168. package/cjs/{MemberList-6b630054.js.map → MemberList-5303bbbb.js.map} +1 -1
  169. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  170. package/cjs/MessageSearch/context.js +1 -1
  171. package/cjs/MessageSearch.js +11 -11
  172. package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
  173. package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
  174. package/cjs/OpenChannel/components/OpenChannelInput.js +19 -19
  175. package/cjs/OpenChannel/components/OpenChannelMessage.js +27 -27
  176. package/cjs/OpenChannel/components/OpenChannelMessageList.js +31 -31
  177. package/cjs/OpenChannel/components/OpenChannelUI.js +31 -31
  178. package/cjs/OpenChannel/context.js +8 -8
  179. package/cjs/OpenChannel.js +31 -31
  180. package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
  181. package/cjs/OpenChannelList/components/OpenChannelPreview.js +3 -3
  182. package/cjs/OpenChannelList/context.js +3 -3
  183. package/cjs/OpenChannelList.js +13 -13
  184. package/cjs/{OpenChannelListProvider-4d15730f.js → OpenChannelListProvider-49874b88.js} +3 -3
  185. package/cjs/{OpenChannelListProvider-4d15730f.js.map → OpenChannelListProvider-49874b88.js.map} +1 -1
  186. package/cjs/{OpenChannelProvider-2f59b53a.js → OpenChannelProvider-c2b3dc2c.js} +7 -7
  187. package/cjs/{OpenChannelProvider-2f59b53a.js.map → OpenChannelProvider-c2b3dc2c.js.map} +1 -1
  188. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
  189. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
  190. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  191. package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
  192. package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
  193. package/cjs/OpenChannelSettings/context.js +3 -3
  194. package/cjs/OpenChannelSettings.js +17 -17
  195. package/cjs/{RemoveMessageModal-47cae846.js → RemoveMessageModal-271f1251.js} +3 -3
  196. package/cjs/{RemoveMessageModal-47cae846.js.map → RemoveMessageModal-271f1251.js.map} +1 -1
  197. package/cjs/SendbirdProvider.js +15 -15
  198. package/cjs/Thread/components/ParentMessageInfo.js +33 -33
  199. package/cjs/Thread/components/ParentMessageInfoItem.js +22 -22
  200. package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
  201. package/cjs/Thread/components/ThreadHeader.js +6 -6
  202. package/cjs/Thread/components/ThreadList.js +36 -36
  203. package/cjs/Thread/components/ThreadListItem.js +36 -36
  204. package/cjs/Thread/components/ThreadMessageInput.js +30 -30
  205. package/cjs/Thread/components/ThreadUI.js +40 -40
  206. package/cjs/Thread/context.js +8 -8
  207. package/cjs/Thread.js +40 -40
  208. package/cjs/{ThreadProvider-5844bd6d.js → ThreadProvider-8d2ce923.js} +21 -7
  209. package/cjs/ThreadProvider-8d2ce923.js.map +1 -0
  210. package/cjs/{UserProfileContext-5fd27232.js → UserProfileContext-f8f1cee7.js} +1 -1
  211. package/cjs/{UserProfileContext-5fd27232.js.map → UserProfileContext-f8f1cee7.js.map} +1 -1
  212. package/cjs/{VoiceMessageInputWrapper-e10f305f.js → VoiceMessageInputWrapper-e8d7b9ba.js} +7 -7
  213. package/cjs/{VoiceMessageInputWrapper-e10f305f.js.map → VoiceMessageInputWrapper-e8d7b9ba.js.map} +1 -1
  214. package/cjs/VoicePlayer/context.js +3 -3
  215. package/cjs/VoicePlayer/useVoicePlayer.js +9 -9
  216. package/cjs/VoiceRecorder/context.js +9 -9
  217. package/cjs/VoiceRecorder/useVoiceRecorder.js +8 -8
  218. package/cjs/{WebAudioUtils-4227909a.js → WebAudioUtils-88dbfaed.js} +2 -2
  219. package/cjs/{WebAudioUtils-4227909a.js.map → WebAudioUtils-88dbfaed.js.map} +1 -1
  220. package/cjs/{_rollupPluginBabelHelpers-2c208df7.js → _rollupPluginBabelHelpers-0d9d52a5.js} +1 -1
  221. package/cjs/_rollupPluginBabelHelpers-0d9d52a5.js.map +1 -0
  222. package/cjs/{actionTypes-64cb54b1.js → actionTypes-974dfe33.js} +1 -1
  223. package/cjs/{actionTypes-64cb54b1.js.map → actionTypes-974dfe33.js.map} +1 -1
  224. package/cjs/{color-2a756176.js → color-1e9cc481.js} +1 -1
  225. package/cjs/{color-2a756176.js.map → color-1e9cc481.js.map} +1 -1
  226. package/cjs/{compareIds-d6d1cc62.js → compareIds-0344920c.js} +1 -1
  227. package/cjs/{compareIds-d6d1cc62.js.map → compareIds-0344920c.js.map} +1 -1
  228. package/cjs/{const-0f73f007.js → const-0d4d91cd.js} +1 -1
  229. package/cjs/{const-0f73f007.js.map → const-0d4d91cd.js.map} +1 -1
  230. package/cjs/{const-2d057dc1.js → const-182fe978.js} +1 -1
  231. package/cjs/{const-2d057dc1.js.map → const-182fe978.js.map} +1 -1
  232. package/cjs/{consts-0a4f487c.js → consts-0c9a38ef.js} +5 -1
  233. package/cjs/{consts-0a4f487c.js.map → consts-0c9a38ef.js.map} +1 -1
  234. package/cjs/{consts-c1c7f3b9.js → consts-10e5b075.js} +1 -1
  235. package/cjs/{consts-c1c7f3b9.js.map → consts-10e5b075.js.map} +1 -1
  236. package/cjs/{consts-c16c955d.js → consts-5bdc2c7f.js} +1 -1
  237. package/cjs/{consts-c16c955d.js.map → consts-5bdc2c7f.js.map} +1 -1
  238. package/cjs/{consts-5a40550e.js → consts-c336bb61.js} +1 -1
  239. package/cjs/{consts-5a40550e.js.map → consts-c336bb61.js.map} +1 -1
  240. package/cjs/{context-0bf4608e.js → context-0276d21e.js} +2 -2
  241. package/cjs/{context-0bf4608e.js.map → context-0276d21e.js.map} +1 -1
  242. package/cjs/{index-ea4739fe.js → index-08c5777e.js} +2 -2
  243. package/cjs/{index-ea4739fe.js.map → index-08c5777e.js.map} +1 -1
  244. package/cjs/{index-060711f6.js → index-092b22dd.js} +2 -2
  245. package/cjs/{index-060711f6.js.map → index-092b22dd.js.map} +1 -1
  246. package/cjs/{index-f3743012.js → index-1325e266.js} +3 -3
  247. package/cjs/{index-f3743012.js.map → index-1325e266.js.map} +1 -1
  248. package/cjs/{index-71863abf.js → index-17a6519d.js} +1 -1
  249. package/cjs/{index-71863abf.js.map → index-17a6519d.js.map} +1 -1
  250. package/cjs/{index-44985c08.js → index-2cb13008.js} +2 -2
  251. package/cjs/{index-44985c08.js.map → index-2cb13008.js.map} +1 -1
  252. package/cjs/{index-03a83f97.js → index-49fe0efb.js} +4 -4
  253. package/cjs/{index-03a83f97.js.map → index-49fe0efb.js.map} +1 -1
  254. package/cjs/{index-6a9e8bcb.js → index-54228aa8.js} +6 -6
  255. package/cjs/{index-6a9e8bcb.js.map → index-54228aa8.js.map} +1 -1
  256. package/cjs/{index-b5614bfa.js → index-5a651f3c.js} +2 -2
  257. package/cjs/{index-b5614bfa.js.map → index-5a651f3c.js.map} +1 -1
  258. package/cjs/{index-b1b515a7.js → index-6cb3365f.js} +2 -2
  259. package/cjs/{index-b1b515a7.js.map → index-6cb3365f.js.map} +1 -1
  260. package/cjs/{index-d69866c1.js → index-87e11d7e.js} +5 -5
  261. package/cjs/{index-d69866c1.js.map → index-87e11d7e.js.map} +1 -1
  262. package/cjs/{index-6b02cca4.js → index-9c8e297d.js} +3 -3
  263. package/cjs/{index-6b02cca4.js.map → index-9c8e297d.js.map} +1 -1
  264. package/cjs/{index-29f85f9b.js → index-b428366f.js} +2 -2
  265. package/cjs/{index-29f85f9b.js.map → index-b428366f.js.map} +1 -1
  266. package/cjs/{index-c00c028b.js → index-c2454b7e.js} +1 -1
  267. package/cjs/{index-c00c028b.js.map → index-c2454b7e.js.map} +1 -1
  268. package/cjs/{index-803f2ff2.js → index-cebd1362.js} +4 -4
  269. package/cjs/{index-803f2ff2.js.map → index-cebd1362.js.map} +1 -1
  270. package/cjs/{index-6977efce.js → index-dbccd7fb.js} +3 -3
  271. package/cjs/{index-6977efce.js.map → index-dbccd7fb.js.map} +1 -1
  272. package/cjs/{index-6c3bc4f9.js → index-e46cc828.js} +6 -6
  273. package/cjs/{index-6c3bc4f9.js.map → index-e46cc828.js.map} +1 -1
  274. package/cjs/{index-3aeb8bf9.js → index-ed1ee70b.js} +6 -6
  275. package/cjs/{index-3aeb8bf9.js.map → index-ed1ee70b.js.map} +1 -1
  276. package/cjs/index.js +52 -52
  277. package/cjs/{index.module-bee98cc5.js → index.module-8026e7d3.js} +1 -1
  278. package/cjs/{index.module-bee98cc5.js.map → index.module-8026e7d3.js.map} +1 -1
  279. package/cjs/package.json +1 -1
  280. package/cjs/{resolvedReplyType-9517a813.js → resolvedReplyType-8137e072.js} +1 -1
  281. package/cjs/{resolvedReplyType-9517a813.js.map → resolvedReplyType-8137e072.js.map} +1 -1
  282. package/cjs/sendbirdSelectors.js +19 -5
  283. package/cjs/sendbirdSelectors.js.map +1 -1
  284. package/cjs/{stringSet-39e8b84e.js → stringSet-769f181d.js} +1 -1
  285. package/cjs/{stringSet-39e8b84e.js.map → stringSet-769f181d.js.map} +1 -1
  286. package/cjs/{tokenize-3176b8f2.js → tokenize-586ed01a.js} +2 -2
  287. package/cjs/{tokenize-3176b8f2.js.map → tokenize-586ed01a.js.map} +1 -1
  288. package/cjs/{topics-e1897e48.js → topics-99121946.js} +2 -1
  289. package/cjs/topics-99121946.js.map +1 -0
  290. package/cjs/{types-be32f153.js → types-812b3bfd.js} +1 -1
  291. package/cjs/{types-be32f153.js.map → types-812b3bfd.js.map} +1 -1
  292. package/cjs/ui/Accordion.js +2 -2
  293. package/cjs/ui/AccordionGroup.js +2 -2
  294. package/cjs/ui/AdminMessage.js +2 -2
  295. package/cjs/ui/Avatar.js +10 -10
  296. package/cjs/ui/Avatar.js.map +1 -1
  297. package/cjs/ui/Badge.js +4 -4
  298. package/cjs/ui/BottomSheet.js +1 -1
  299. package/cjs/ui/Button.js +2 -2
  300. package/cjs/ui/ChannelAvatar.js +2 -2
  301. package/cjs/ui/ConnectionStatus.js +4 -4
  302. package/cjs/ui/ContextMenu.js +5 -5
  303. package/cjs/ui/DateSeparator.js +3 -3
  304. package/cjs/ui/EmojiReactions.js +17 -17
  305. package/cjs/ui/EmojiReactions.js.map +1 -1
  306. package/cjs/ui/FileMessageItemBody.js +6 -6
  307. package/cjs/ui/FileViewer.js +8 -8
  308. package/cjs/ui/IconButton.js +1 -1
  309. package/cjs/ui/ImageRenderer.js +26 -11
  310. package/cjs/ui/ImageRenderer.js.map +1 -1
  311. package/cjs/ui/Input.js +2 -2
  312. package/cjs/ui/Label.js +2 -2
  313. package/cjs/ui/LinkLabel.js +2 -2
  314. package/cjs/ui/MentionLabel.js +10 -10
  315. package/cjs/ui/MentionUserLabel.js +1 -1
  316. package/cjs/ui/MessageContent.js +28 -28
  317. package/cjs/ui/MessageInput.js +13 -13
  318. package/cjs/ui/MessageItemMenu.js +8 -8
  319. package/cjs/ui/MessageItemReactionMenu.js +9 -9
  320. package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
  321. package/cjs/ui/MessageSearchFileItem.js +10 -10
  322. package/cjs/ui/MessageSearchItem.js +8 -8
  323. package/cjs/ui/MessageStatus.js +10 -10
  324. package/cjs/ui/Modal.js +7 -7
  325. package/cjs/ui/OGMessageItemBody.js +15 -15
  326. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  327. package/cjs/ui/OpenChannelAdminMessage.js +2 -2
  328. package/cjs/ui/OpenChannelAvatar.js +5 -5
  329. package/cjs/ui/OpenchannelConversationHeader.js +6 -6
  330. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  331. package/cjs/ui/OpenchannelOGMessage.js +19 -19
  332. package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
  333. package/cjs/ui/OpenchannelThumbnailMessage.js +16 -16
  334. package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
  335. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  336. package/cjs/ui/PlaceHolder.js +5 -5
  337. package/cjs/ui/PlaybackTime.js +2 -2
  338. package/cjs/ui/QuoteMessage.js +7 -7
  339. package/cjs/ui/QuoteMessage.js.map +1 -1
  340. package/cjs/ui/QuoteMessageInput.js +7 -7
  341. package/cjs/ui/QuoteMessageInput.js.map +1 -1
  342. package/cjs/ui/ReactionBadge.js +2 -2
  343. package/cjs/ui/ReactionButton.js +4 -4
  344. package/cjs/ui/SortByRow.js +1 -1
  345. package/cjs/ui/TextButton.js +1 -1
  346. package/cjs/ui/TextMessageItemBody.js +14 -14
  347. package/cjs/ui/ThreadReplies.js +5 -5
  348. package/cjs/ui/ThumbnailMessageItemBody.js +6 -6
  349. package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
  350. package/cjs/ui/Toggle.js +1 -1
  351. package/cjs/ui/Tooltip.js +2 -2
  352. package/cjs/ui/UnknownMessageItemBody.js +6 -6
  353. package/cjs/ui/UserListItem.js +10 -10
  354. package/cjs/ui/UserProfile.js +9 -9
  355. package/cjs/ui/VoiceMessageItemBody.js +9 -9
  356. package/cjs/ui/VoiceMessgeInput.js +7 -7
  357. package/cjs/ui/Word.js +10 -10
  358. package/cjs/{useDirtyGetMentions-041acd2a.js → useDirtyGetMentions-a37639f1.js} +1 -1
  359. package/cjs/{useDirtyGetMentions-041acd2a.js.map → useDirtyGetMentions-a37639f1.js.map} +1 -1
  360. package/cjs/{useLongPress-5432edbf.js → useLongPress-a77054d5.js} +3 -3
  361. package/cjs/{useLongPress-5432edbf.js.map → useLongPress-a77054d5.js.map} +1 -1
  362. package/cjs/useSendbirdStateContext.js +1 -1
  363. package/cjs/utils/message/isVoiceMessage.js +2 -2
  364. package/cjs/{utils-bec85954.js → utils-18517a45.js} +2 -2
  365. package/cjs/{utils-bec85954.js.map → utils-18517a45.js.map} +1 -1
  366. package/cjs/{utils-24df69e2.js → utils-3fda8de7.js} +1 -1
  367. package/cjs/{utils-24df69e2.js.map → utils-3fda8de7.js.map} +1 -1
  368. package/cjs/{utils-b653226e.js → utils-c8ca7346.js} +1 -1
  369. package/cjs/{utils-b653226e.js.map → utils-c8ca7346.js.map} +1 -1
  370. package/cjs/{utils-e7fdfd61.js → utils-d6b081f0.js} +1 -1
  371. package/cjs/{utils-e7fdfd61.js.map → utils-d6b081f0.js.map} +1 -1
  372. package/cjs/{uuid-54dc5376.js → uuid-6c019e89.js} +1 -1
  373. package/cjs/{uuid-54dc5376.js.map → uuid-6c019e89.js.map} +1 -1
  374. package/cjs/withSendbird.js +1 -1
  375. package/{color-b73a158c.js → color-2315a258.js} +1 -1
  376. package/{color-b73a158c.js.map → color-2315a258.js.map} +1 -1
  377. package/{compareIds-eab12c15.js → compareIds-2464aab2.js} +1 -1
  378. package/{compareIds-eab12c15.js.map → compareIds-2464aab2.js.map} +1 -1
  379. package/{const-9ab08d0b.js → const-0cca8d38.js} +1 -1
  380. package/{const-9ab08d0b.js.map → const-0cca8d38.js.map} +1 -1
  381. package/{const-72965dcb.js → const-c6a266f4.js} +1 -1
  382. package/{const-72965dcb.js.map → const-c6a266f4.js.map} +1 -1
  383. package/{consts-2475c80c.js → consts-32a2c4a7.js} +1 -1
  384. package/{consts-2475c80c.js.map → consts-32a2c4a7.js.map} +1 -1
  385. package/{consts-8c9214ee.js → consts-3d956927.js} +1 -1
  386. package/{consts-8c9214ee.js.map → consts-3d956927.js.map} +1 -1
  387. package/{consts-0726d733.js → consts-991d3823.js} +1 -1
  388. package/{consts-0726d733.js.map → consts-991d3823.js.map} +1 -1
  389. package/{consts-55e36248.js → consts-b6f24cc7.js} +5 -2
  390. package/{consts-55e36248.js.map → consts-b6f24cc7.js.map} +1 -1
  391. package/{context-ebecf7b8.js → context-e46fff7b.js} +2 -2
  392. package/{context-ebecf7b8.js.map → context-e46fff7b.js.map} +1 -1
  393. package/{index-7727118e.js → index-07345a6e.js} +5 -5
  394. package/{index-7727118e.js.map → index-07345a6e.js.map} +1 -1
  395. package/{index-0dd2ee39.js → index-13d9d766.js} +2 -2
  396. package/{index-0dd2ee39.js.map → index-13d9d766.js.map} +1 -1
  397. package/{index-007ff82b.js → index-17b78bb0.js} +6 -6
  398. package/{index-007ff82b.js.map → index-17b78bb0.js.map} +1 -1
  399. package/{index-7b514167.js → index-2544bb0a.js} +4 -4
  400. package/{index-7b514167.js.map → index-2544bb0a.js.map} +1 -1
  401. package/{index-b74226dc.js → index-335e7557.js} +2 -2
  402. package/{index-b74226dc.js.map → index-335e7557.js.map} +1 -1
  403. package/{index-c2640752.js → index-499d9ef9.js} +2 -2
  404. package/{index-c2640752.js.map → index-499d9ef9.js.map} +1 -1
  405. package/{index-96fe32b3.js → index-56249831.js} +2 -2
  406. package/{index-96fe32b3.js.map → index-56249831.js.map} +1 -1
  407. package/{index-c2c52b45.js → index-63c995b8.js} +3 -3
  408. package/{index-c2c52b45.js.map → index-63c995b8.js.map} +1 -1
  409. package/{index-055e94b6.js → index-7b3790d3.js} +4 -4
  410. package/{index-055e94b6.js.map → index-7b3790d3.js.map} +1 -1
  411. package/{index-8dcf7652.js → index-879bcfab.js} +3 -3
  412. package/{index-8dcf7652.js.map → index-879bcfab.js.map} +1 -1
  413. package/{index-c191462d.js → index-a39b9075.js} +3 -3
  414. package/{index-c191462d.js.map → index-a39b9075.js.map} +1 -1
  415. package/{index-e43e7fa2.js → index-b9b184a4.js} +1 -1
  416. package/{index-e43e7fa2.js.map → index-b9b184a4.js.map} +1 -1
  417. package/{index-a5bf5a96.js → index-bafedab0.js} +1 -1
  418. package/{index-a5bf5a96.js.map → index-bafedab0.js.map} +1 -1
  419. package/{index-af1fb797.js → index-c4273470.js} +4 -4
  420. package/{index-af1fb797.js.map → index-c4273470.js.map} +1 -1
  421. package/{index-04e037ff.js → index-ebb8a7df.js} +2 -2
  422. package/{index-04e037ff.js.map → index-ebb8a7df.js.map} +1 -1
  423. package/{index-8485f009.js → index-f2e30f98.js} +2 -2
  424. package/{index-8485f009.js.map → index-f2e30f98.js.map} +1 -1
  425. package/{index-642e3f32.js → index-fe2c7493.js} +6 -6
  426. package/{index-642e3f32.js.map → index-fe2c7493.js.map} +1 -1
  427. package/index.d.ts +4 -2
  428. package/index.js +52 -52
  429. package/{index.module-0ccd37ce.js → index.module-41885c5b.js} +1 -1
  430. package/{index.module-0ccd37ce.js.map → index.module-41885c5b.js.map} +1 -1
  431. package/package.json +1 -1
  432. package/{resolvedReplyType-6785a18d.js → resolvedReplyType-d6e22593.js} +1 -1
  433. package/{resolvedReplyType-6785a18d.js.map → resolvedReplyType-d6e22593.js.map} +1 -1
  434. package/sendbirdSelectors.js +19 -5
  435. package/sendbirdSelectors.js.map +1 -1
  436. package/{stringSet-23a36018.js → stringSet-47601d79.js} +1 -1
  437. package/{stringSet-23a36018.js.map → stringSet-47601d79.js.map} +1 -1
  438. package/{tokenize-6f680d6a.js → tokenize-c0cf9574.js} +2 -2
  439. package/{tokenize-6f680d6a.js.map → tokenize-c0cf9574.js.map} +1 -1
  440. package/{topics-67f9a9f1.js → topics-e985567d.js} +2 -1
  441. package/topics-e985567d.js.map +1 -0
  442. package/{types-82eb7ae8.js → types-02054e6e.js} +1 -1
  443. package/{types-82eb7ae8.js.map → types-02054e6e.js.map} +1 -1
  444. package/ui/Accordion.js +2 -2
  445. package/ui/AccordionGroup.js +2 -2
  446. package/ui/AdminMessage.js +2 -2
  447. package/ui/Avatar.js +1 -1
  448. package/ui/Badge.js +4 -4
  449. package/ui/BottomSheet.js +1 -1
  450. package/ui/Button.js +2 -2
  451. package/ui/ChannelAvatar.js +2 -2
  452. package/ui/ConnectionStatus.js +4 -4
  453. package/ui/ContextMenu.js +5 -5
  454. package/ui/DateSeparator.js +3 -3
  455. package/ui/EmojiReactions.js +13 -13
  456. package/ui/FileMessageItemBody.js +6 -6
  457. package/ui/FileViewer.js +8 -8
  458. package/ui/IconButton.js +1 -1
  459. package/ui/ImageRenderer.js +23 -11
  460. package/ui/ImageRenderer.js.map +1 -1
  461. package/ui/Input.js +2 -2
  462. package/ui/Label.js +2 -2
  463. package/ui/LinkLabel.js +2 -2
  464. package/ui/MentionLabel.js +10 -10
  465. package/ui/MentionUserLabel.js +1 -1
  466. package/ui/MessageContent.js +28 -28
  467. package/ui/MessageInput.js +13 -13
  468. package/ui/MessageItemMenu.js +8 -8
  469. package/ui/MessageItemReactionMenu.js +8 -8
  470. package/ui/MessageSearchFileItem.js +10 -10
  471. package/ui/MessageSearchItem.js +8 -8
  472. package/ui/MessageStatus.js +10 -10
  473. package/ui/Modal.js +7 -7
  474. package/ui/OGMessageItemBody.js +14 -14
  475. package/ui/OpenChannelAdminMessage.js +2 -2
  476. package/ui/OpenChannelAvatar.js +5 -5
  477. package/ui/OpenchannelConversationHeader.js +6 -6
  478. package/ui/OpenchannelFileMessage.js +15 -15
  479. package/ui/OpenchannelOGMessage.js +18 -18
  480. package/ui/OpenchannelThumbnailMessage.js +14 -14
  481. package/ui/OpenchannelUserMessage.js +15 -15
  482. package/ui/PlaceHolder.js +5 -5
  483. package/ui/PlaybackTime.js +2 -2
  484. package/ui/QuoteMessage.js +6 -6
  485. package/ui/QuoteMessageInput.js +6 -6
  486. package/ui/ReactionBadge.js +2 -2
  487. package/ui/ReactionButton.js +4 -4
  488. package/ui/SortByRow.js +1 -1
  489. package/ui/TextButton.js +1 -1
  490. package/ui/TextMessageItemBody.js +14 -14
  491. package/ui/ThreadReplies.js +5 -5
  492. package/ui/ThumbnailMessageItemBody.js +5 -5
  493. package/ui/Toggle.js +1 -1
  494. package/ui/Tooltip.js +2 -2
  495. package/ui/UnknownMessageItemBody.js +6 -6
  496. package/ui/UserListItem.js +10 -10
  497. package/ui/UserProfile.js +9 -9
  498. package/ui/VoiceMessageItemBody.js +9 -9
  499. package/ui/VoiceMessgeInput.js +7 -7
  500. package/ui/Word.js +10 -10
  501. package/{useDirtyGetMentions-e4e855e3.js → useDirtyGetMentions-3f7692ab.js} +1 -1
  502. package/{useDirtyGetMentions-e4e855e3.js.map → useDirtyGetMentions-3f7692ab.js.map} +1 -1
  503. package/{useLongPress-0cf29ece.js → useLongPress-0a2a8916.js} +3 -3
  504. package/{useLongPress-0cf29ece.js.map → useLongPress-0a2a8916.js.map} +1 -1
  505. package/useSendbirdStateContext.js +1 -1
  506. package/utils/message/isVoiceMessage.js +2 -2
  507. package/{utils-e81640a7.js → utils-2f26afa0.js} +1 -1
  508. package/{utils-e81640a7.js.map → utils-2f26afa0.js.map} +1 -1
  509. package/{utils-a7468577.js → utils-70ea4cc9.js} +2 -2
  510. package/{utils-a7468577.js.map → utils-70ea4cc9.js.map} +1 -1
  511. package/{utils-8e781334.js → utils-93924431.js} +1 -1
  512. package/{utils-8e781334.js.map → utils-93924431.js.map} +1 -1
  513. package/{utils-cae251db.js → utils-d15f13cf.js} +1 -1
  514. package/{utils-cae251db.js.map → utils-d15f13cf.js.map} +1 -1
  515. package/{uuid-10fc0de7.js → uuid-ec51ac4d.js} +1 -1
  516. package/{uuid-10fc0de7.js.map → uuid-ec51ac4d.js.map} +1 -1
  517. package/withSendbird.js +1 -1
  518. package/ChannelListProvider-2e7026e9.js.map +0 -1
  519. package/ChannelProvider-31a344d3.js.map +0 -1
  520. package/ThreadProvider-27c497dc.js.map +0 -1
  521. package/_rollupPluginBabelHelpers-34f2bdc3.js.map +0 -1
  522. package/cjs/ChannelListProvider-51837593.js.map +0 -1
  523. package/cjs/ChannelProvider-ab59275b.js.map +0 -1
  524. package/cjs/ThreadProvider-5844bd6d.js.map +0 -1
  525. package/cjs/_rollupPluginBabelHelpers-2c208df7.js.map +0 -1
  526. package/cjs/topics-e1897e48.js.map +0 -1
  527. package/topics-67f9a9f1.js.map +0 -1
package/Channel.js CHANGED
@@ -1,74 +1,74 @@
1
1
  import React__default from 'react';
2
- import { C as ChannelProvider } from './ChannelProvider-31a344d3.js';
2
+ import { C as ChannelProvider } from './ChannelProvider-78e85f32.js';
3
3
  import ChannelUI from './Channel/components/ChannelUI.js';
4
- import './UserProfileContext-76aab169.js';
4
+ import './UserProfileContext-8b8f3e3a.js';
5
5
  import 'prop-types';
6
6
  import './useSendbirdStateContext.js';
7
7
  import './withSendbird.js';
8
- import './_rollupPluginBabelHelpers-34f2bdc3.js';
9
- import './const-72965dcb.js';
10
- import './index-b74226dc.js';
11
- import './index-e43e7fa2.js';
12
- import './topics-67f9a9f1.js';
13
- import './index-96fe32b3.js';
8
+ import './_rollupPluginBabelHelpers-90ff7fc4.js';
9
+ import './const-c6a266f4.js';
10
+ import './index-335e7557.js';
11
+ import './index-b9b184a4.js';
12
+ import './topics-e985567d.js';
13
+ import './index-56249831.js';
14
14
  import './utils/message/getOutgoingMessageState.js';
15
- import './compareIds-eab12c15.js';
15
+ import './compareIds-2464aab2.js';
16
16
  import '@sendbird/chat/groupChannel';
17
- import './uuid-10fc0de7.js';
17
+ import './uuid-ec51ac4d.js';
18
18
  import '@sendbird/chat/message';
19
- import './consts-55e36248.js';
20
- import './resolvedReplyType-6785a18d.js';
21
- import './index-c2c52b45.js';
22
- import './LocalizationContext-2952e678.js';
23
- import './stringSet-23a36018.js';
19
+ import './consts-b6f24cc7.js';
20
+ import './resolvedReplyType-d6e22593.js';
21
+ import './index-63c995b8.js';
22
+ import './LocalizationContext-5fe9b59d.js';
23
+ import './stringSet-47601d79.js';
24
24
  import './ui/Icon.js';
25
- import './index-0dd2ee39.js';
25
+ import './index-13d9d766.js';
26
26
  import './ui/Loader.js';
27
27
  import './ui/ConnectionStatus.js';
28
28
  import './Channel/components/ChannelHeader.js';
29
- import './utils-a7468577.js';
29
+ import './utils-70ea4cc9.js';
30
30
  import './ui/IconButton.js';
31
31
  import './ui/ChannelAvatar.js';
32
32
  import './ui/Avatar.js';
33
33
  import './ui/ImageRenderer.js';
34
- import './utils-8e781334.js';
35
- import './MediaQueryContext-2173573f.js';
36
- import './utils-cae251db.js';
34
+ import './utils-93924431.js';
35
+ import './MediaQueryContext-66b59195.js';
36
+ import './utils-d15f13cf.js';
37
37
  import './Channel/components/MessageList.js';
38
38
  import './Channel/components/Message.js';
39
39
  import './Channel/components/SuggestedMentionList.js';
40
- import './const-9ab08d0b.js';
41
- import './ThreadProvider-27c497dc.js';
40
+ import './const-0cca8d38.js';
41
+ import './ThreadProvider-2a4356a2.js';
42
42
  import './Thread/context/types.js';
43
43
  import '@sendbird/chat';
44
44
  import './ui/DateSeparator.js';
45
- import './color-b73a158c.js';
45
+ import './color-2315a258.js';
46
46
  import './ui/MessageInput.js';
47
47
  import './ui/Button.js';
48
48
  import 'dompurify';
49
- import './consts-2475c80c.js';
50
- import './consts-0726d733.js';
51
- import './consts-8c9214ee.js';
52
- import './tokenize-6f680d6a.js';
53
- import './index.module-0ccd37ce.js';
49
+ import './consts-32a2c4a7.js';
50
+ import './consts-991d3823.js';
51
+ import './consts-3d956927.js';
52
+ import './tokenize-c0cf9574.js';
53
+ import './index.module-41885c5b.js';
54
54
  import './ui/MessageContent.js';
55
55
  import './ui/UserProfile.js';
56
56
  import './sendbirdSelectors.js';
57
- import './index-007ff82b.js';
58
- import './index-c191462d.js';
59
- import './index-c2640752.js';
57
+ import './index-17b78bb0.js';
58
+ import './index-a39b9075.js';
59
+ import './index-499d9ef9.js';
60
60
  import './ui/MessageItemMenu.js';
61
61
  import './ui/ContextMenu.js';
62
62
  import 'react-dom';
63
63
  import './ui/SortByRow.js';
64
- import './types-82eb7ae8.js';
64
+ import './types-02054e6e.js';
65
65
  import './ui/MessageItemReactionMenu.js';
66
66
  import './ui/ReactionButton.js';
67
- import './useLongPress-0cf29ece.js';
67
+ import './useLongPress-0a2a8916.js';
68
68
  import './ui/EmojiReactions.js';
69
69
  import './ui/ReactionBadge.js';
70
70
  import './ui/BottomSheet.js';
71
- import './index-a5bf5a96.js';
71
+ import './index-bafedab0.js';
72
72
  import './ui/UserListItem.js';
73
73
  import './ui/MutedAvatarOverlay.js';
74
74
  import './ui/Checkbox.js';
@@ -77,7 +77,7 @@ import './ui/TooltipWrapper.js';
77
77
  import './Message/context.js';
78
78
  import './ui/AdminMessage.js';
79
79
  import './ui/TextMessageItemBody.js';
80
- import './index-7b514167.js';
80
+ import './index-2544bb0a.js';
81
81
  import './ui/MentionLabel.js';
82
82
  import './ui/LinkLabel.js';
83
83
  import './ui/FileMessageItemBody.js';
@@ -86,27 +86,27 @@ import './ui/ThumbnailMessageItemBody.js';
86
86
  import './ui/OGMessageItemBody.js';
87
87
  import './ui/UnknownMessageItemBody.js';
88
88
  import './ui/QuoteMessage.js';
89
- import './index-af1fb797.js';
89
+ import './index-c4273470.js';
90
90
  import './ui/ThreadReplies.js';
91
91
  import './ui/VoiceMessageItemBody.js';
92
92
  import './ui/ProgressBar.js';
93
93
  import './VoicePlayer/useVoicePlayer.js';
94
- import './index-8dcf7652.js';
94
+ import './index-879bcfab.js';
95
95
  import './VoiceRecorder/context.js';
96
96
  import './ui/Modal.js';
97
97
  import './ui/PlaybackTime.js';
98
98
  import './Channel/components/FileViewer.js';
99
99
  import './Channel/components/RemoveMessageModal.js';
100
- import './index-8485f009.js';
101
- import './useDirtyGetMentions-e4e855e3.js';
100
+ import './index-f2e30f98.js';
101
+ import './useDirtyGetMentions-3f7692ab.js';
102
102
  import './Channel/components/UnreadCount.js';
103
103
  import './Channel/components/FrozenNotification.js';
104
104
  import './Channel/components/TypingIndicator.js';
105
105
  import './Channel/components/MessageInput.js';
106
106
  import './ui/QuoteMessageInput.js';
107
- import './VoiceMessageInputWrapper-e45ec2f0.js';
107
+ import './VoiceMessageInputWrapper-b8742ea1.js';
108
108
  import './VoiceRecorder/useVoiceRecorder.js';
109
- import './index-055e94b6.js';
109
+ import './index-7b3790d3.js';
110
110
 
111
111
  const Channel = props => {
112
112
  return /*#__PURE__*/React__default.createElement(ChannelProvider, {
@@ -3,39 +3,40 @@ import IconButton from '../../ui/IconButton.js';
3
3
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
4
4
  import CreateChannel from '../../CreateChannel.js';
5
5
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
6
- import { u as useChannelListContext } from '../../ChannelListProvider-2e7026e9.js';
7
- import '../../_rollupPluginBabelHelpers-34f2bdc3.js';
6
+ import { u as useChannelListContext } from '../../ChannelListProvider-fc14f42d.js';
7
+ import '../../_rollupPluginBabelHelpers-90ff7fc4.js';
8
8
  import 'prop-types';
9
9
  import '../../CreateChannel/components/CreateChannelUI.js';
10
- import '../../CreateChannelProvider-eeaa1371.js';
10
+ import '../../CreateChannelProvider-fe23c38f.js';
11
11
  import '../../sendbirdSelectors.js';
12
- import '../../topics-67f9a9f1.js';
13
- import '../../utils-cae251db.js';
12
+ import '../../topics-e985567d.js';
13
+ import '../../utils-d15f13cf.js';
14
14
  import '../../CreateChannel/components/InviteUsers.js';
15
- import '../../LocalizationContext-2952e678.js';
16
- import '../../stringSet-23a36018.js';
17
- import '../../index-e43e7fa2.js';
15
+ import '../../LocalizationContext-5fe9b59d.js';
16
+ import '../../stringSet-47601d79.js';
17
+ import '../../index-b9b184a4.js';
18
18
  import '../../ui/Modal.js';
19
19
  import 'react-dom';
20
- import '../../index-a5bf5a96.js';
20
+ import '../../index-bafedab0.js';
21
21
  import '../../ui/Button.js';
22
- import '../../index-0dd2ee39.js';
23
- import '../../MediaQueryContext-2173573f.js';
22
+ import '../../index-13d9d766.js';
23
+ import '../../MediaQueryContext-66b59195.js';
24
24
  import '../../ui/UserListItem.js';
25
- import '../../UserProfileContext-76aab169.js';
25
+ import '../../UserProfileContext-8b8f3e3a.js';
26
26
  import '../../ui/Avatar.js';
27
27
  import '../../ui/ImageRenderer.js';
28
- import '../../uuid-10fc0de7.js';
28
+ import '../../uuid-ec51ac4d.js';
29
29
  import '../../ui/MutedAvatarOverlay.js';
30
30
  import '../../ui/Checkbox.js';
31
31
  import '../../ui/UserProfile.js';
32
32
  import '../../ui/ContextMenu.js';
33
33
  import '../../ui/SortByRow.js';
34
- import '../../index-96fe32b3.js';
34
+ import '../../index-56249831.js';
35
35
  import '../../utils/message/getOutgoingMessageState.js';
36
36
  import '../../CreateChannel/components/SelectChannelType.js';
37
37
  import '../../withSendbird.js';
38
38
  import '@sendbird/chat/groupChannel';
39
+ import '../../consts-b6f24cc7.js';
39
40
 
40
41
  const AddChannel = () => {
41
42
  var _state$config;
@@ -1 +1 @@
1
- {"version":3,"file":"AddChannel.js","sources":["../../../src/modules/ChannelList/components/AddChannel/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport IconButton from '../../../../ui/IconButton';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\n\nimport CreateChannel from '../../../CreateChannel';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\n\nexport const AddChannel: React.VoidFunctionComponent = () => {\n const [showModal, setShowModal] = useState(false);\n const state = useSendbirdStateContext();\n const isOnline = state?.config?.isOnline;\n const disabled = !isOnline;\n const {\n overrideInviteUser,\n onBeforeCreateChannel,\n } = useChannelListContext();\n\n return (\n <>\n <IconButton\n height=\"32px\"\n width=\"32px\"\n onClick={() => {\n setShowModal(true);\n }}\n disabled={disabled}\n >\n <Icon\n type={IconTypes.CREATE}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n {\n showModal && (\n <CreateChannel\n onCancel={() => {\n setShowModal(false);\n }}\n overrideInviteUser={overrideInviteUser}\n onCreateChannel={() => {\n setShowModal(false);\n }}\n onBeforeCreateChannel={onBeforeCreateChannel}\n />\n )\n }\n </>\n );\n};\n\nexport default AddChannel;\n"],"names":["AddChannel","_state$config","showModal","setShowModal","useState","state","useSendbirdStateContext","isOnline","config","disabled","overrideInviteUser","onBeforeCreateChannel","useChannelListContext","React","createElement","Fragment","IconButton","height","width","onClick","Icon","type","IconTypes","CREATE","fillColor","IconColors","PRIMARY","CreateChannel","onCancel","onCreateChannel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASaA,MAAAA,UAAuC,GAAGA,MAAM;AAAA,EAAA,IAAAC,aAAA,CAAA;EAC3D,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;EACjD,MAAMC,KAAK,GAAGC,uBAAuB,EAAE,CAAA;AACvC,EAAA,MAAMC,QAAQ,GAAGF,KAAK,KAALA,IAAAA,IAAAA,KAAK,wBAAAJ,aAAA,GAALI,KAAK,CAAEG,MAAM,MAAAP,IAAAA,IAAAA,aAAA,KAAbA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,aAAA,CAAeM,QAAQ,CAAA;EACxC,MAAME,QAAQ,GAAG,CAACF,QAAQ,CAAA;EAC1B,MAAM;IACJG,kBAAkB;AAClBC,IAAAA,qBAAAA;GACD,GAAGC,qBAAqB,EAAE,CAAA;AAE3B,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAAE,QAAA,EAAA,IAAA,eACEF,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTC,IAAAA,MAAM,EAAC,MAAM;AACbC,IAAAA,KAAK,EAAC,MAAM;IACZC,OAAO,EAAEA,MAAM;MACbhB,YAAY,CAAC,IAAI,CAAC,CAAA;KAClB;AACFM,IAAAA,QAAQ,EAAEA,QAAAA;AAAS,GAAA,eAEnBI,cAAA,CAAAC,aAAA,CAACM,IAAI,EAAA;IACHC,IAAI,EAAEC,SAAS,CAACC,MAAO;IACvBC,SAAS,EAAEC,UAAU,CAACC,OAAQ;AAC9BR,IAAAA,KAAK,EAAC,MAAM;AACZD,IAAAA,MAAM,EAAC,MAAA;GACP,CAAA,CACS,EAEXf,SAAS,iBACPW,cAAA,CAAAC,aAAA,CAACa,aAAa,EAAA;IACZC,QAAQ,EAAEA,MAAM;MACdzB,YAAY,CAAC,KAAK,CAAC,CAAA;KACnB;AACFO,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCmB,eAAe,EAAEA,MAAM;MACrB1B,YAAY,CAAC,KAAK,CAAC,CAAA;KACnB;AACFQ,IAAAA,qBAAqB,EAAEA,qBAAAA;AAAsB,GAAA,CAEhD,CAEF,CAAA;AAEP;;;;"}
1
+ {"version":3,"file":"AddChannel.js","sources":["../../../src/modules/ChannelList/components/AddChannel/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport IconButton from '../../../../ui/IconButton';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\n\nimport CreateChannel from '../../../CreateChannel';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\n\nexport const AddChannel: React.VoidFunctionComponent = () => {\n const [showModal, setShowModal] = useState(false);\n const state = useSendbirdStateContext();\n const isOnline = state?.config?.isOnline;\n const disabled = !isOnline;\n const {\n overrideInviteUser,\n onBeforeCreateChannel,\n } = useChannelListContext();\n\n return (\n <>\n <IconButton\n height=\"32px\"\n width=\"32px\"\n onClick={() => {\n setShowModal(true);\n }}\n disabled={disabled}\n >\n <Icon\n type={IconTypes.CREATE}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n {\n showModal && (\n <CreateChannel\n onCancel={() => {\n setShowModal(false);\n }}\n overrideInviteUser={overrideInviteUser}\n onCreateChannel={() => {\n setShowModal(false);\n }}\n onBeforeCreateChannel={onBeforeCreateChannel}\n />\n )\n }\n </>\n );\n};\n\nexport default AddChannel;\n"],"names":["AddChannel","_state$config","showModal","setShowModal","useState","state","useSendbirdStateContext","isOnline","config","disabled","overrideInviteUser","onBeforeCreateChannel","useChannelListContext","React","createElement","Fragment","IconButton","height","width","onClick","Icon","type","IconTypes","CREATE","fillColor","IconColors","PRIMARY","CreateChann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KACnB;AACFO,IAAAA,kBAAkB,EAAEA,kBAAmB;IACvCmB,eAAe,EAAEA,MAAM;MACrB1B,YAAY,CAAC,KAAK,CAAC,CAAA;KACnB;AACFQ,IAAAA,qBAAqB,EAAEA,qBAAAA;AAAsB,GAAA,CAEhD,CAEF,CAAA;AAEP;;;;"}
@@ -1,16 +1,16 @@
1
1
  import React__default, { useContext } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-2952e678.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-5fe9b59d.js';
3
3
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
4
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0dd2ee39.js';
4
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-13d9d766.js';
5
5
  import Avatar from '../../ui/Avatar.js';
6
- import '../../stringSet-23a36018.js';
7
- import '../../index-e43e7fa2.js';
6
+ import '../../stringSet-47601d79.js';
7
+ import '../../index-b9b184a4.js';
8
8
  import '../../withSendbird.js';
9
- import '../../_rollupPluginBabelHelpers-34f2bdc3.js';
9
+ import '../../_rollupPluginBabelHelpers-90ff7fc4.js';
10
10
  import 'prop-types';
11
11
  import '../../ui/ImageRenderer.js';
12
12
  import '../../ui/Icon.js';
13
- import '../../uuid-10fc0de7.js';
13
+ import '../../uuid-ec51ac4d.js';
14
14
 
15
15
  const ChannelListHeader = _ref => {
16
16
  let {
@@ -3,72 +3,71 @@ import ChannelListHeader from './ChannelListHeader.js';
3
3
  import { AddChannel } from './AddChannel.js';
4
4
  import ChannelPreview from './ChannelPreview.js';
5
5
  import ChannelPreviewAction from './ChannelPreviewAction.js';
6
- import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-2e7026e9.js';
6
+ import { u as useChannelListContext, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-fc14f42d.js';
7
7
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
8
8
  import EditProfile from '../../EditUserProfile.js';
9
- import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-c2c52b45.js';
10
- import '../../LocalizationContext-2952e678.js';
11
- import '../../stringSet-23a36018.js';
12
- import '../../index-e43e7fa2.js';
13
- import '../../index-0dd2ee39.js';
9
+ import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-63c995b8.js';
10
+ import '../../LocalizationContext-5fe9b59d.js';
11
+ import '../../stringSet-47601d79.js';
12
+ import '../../index-b9b184a4.js';
13
+ import '../../index-13d9d766.js';
14
14
  import 'prop-types';
15
15
  import '../../ui/Avatar.js';
16
16
  import '../../ui/ImageRenderer.js';
17
17
  import '../../ui/Icon.js';
18
- import '../../uuid-10fc0de7.js';
18
+ import '../../uuid-ec51ac4d.js';
19
19
  import '../../ui/IconButton.js';
20
- import '../../_rollupPluginBabelHelpers-34f2bdc3.js';
20
+ import '../../_rollupPluginBabelHelpers-90ff7fc4.js';
21
21
  import '../../CreateChannel.js';
22
22
  import '../../CreateChannel/components/CreateChannelUI.js';
23
- import '../../CreateChannelProvider-eeaa1371.js';
23
+ import '../../CreateChannelProvider-fe23c38f.js';
24
24
  import '../../sendbirdSelectors.js';
25
- import '../../topics-67f9a9f1.js';
26
- import '../../utils-cae251db.js';
25
+ import '../../topics-e985567d.js';
26
+ import '../../utils-d15f13cf.js';
27
27
  import '../../CreateChannel/components/InviteUsers.js';
28
28
  import '../../ui/Modal.js';
29
29
  import 'react-dom';
30
- import '../../index-a5bf5a96.js';
30
+ import '../../index-bafedab0.js';
31
31
  import '../../ui/Button.js';
32
- import '../../MediaQueryContext-2173573f.js';
32
+ import '../../MediaQueryContext-66b59195.js';
33
33
  import '../../ui/UserListItem.js';
34
- import '../../UserProfileContext-76aab169.js';
34
+ import '../../UserProfileContext-8b8f3e3a.js';
35
35
  import '../../ui/MutedAvatarOverlay.js';
36
36
  import '../../ui/Checkbox.js';
37
37
  import '../../ui/UserProfile.js';
38
38
  import '../../ui/ContextMenu.js';
39
39
  import '../../ui/SortByRow.js';
40
- import '../../index-96fe32b3.js';
40
+ import '../../index-56249831.js';
41
41
  import '../../utils/message/getOutgoingMessageState.js';
42
42
  import '../../CreateChannel/components/SelectChannelType.js';
43
43
  import '../../ui/ChannelAvatar.js';
44
- import '../../utils-8e781334.js';
44
+ import '../../utils-93924431.js';
45
45
  import '../../ui/Badge.js';
46
- import '../../index-007ff82b.js';
47
- import '../../index-b74226dc.js';
46
+ import '../../index-17b78bb0.js';
47
+ import '../../index-335e7557.js';
48
48
  import '../../ui/Loader.js';
49
- import '../../index-c191462d.js';
50
- import '../../index-c2640752.js';
49
+ import '../../index-a39b9075.js';
50
+ import '../../index-499d9ef9.js';
51
51
  import '../../ui/MentionUserLabel.js';
52
- import '../../consts-2475c80c.js';
52
+ import '../../consts-32a2c4a7.js';
53
53
  import '../../ui/TextButton.js';
54
- import '../../color-b73a158c.js';
54
+ import '../../color-2315a258.js';
55
55
  import '../../Channel/components/TypingIndicator.js';
56
56
  import '@sendbird/chat/groupChannel';
57
- import '../../ChannelProvider-31a344d3.js';
58
- import '../../const-72965dcb.js';
59
- import '../../compareIds-eab12c15.js';
57
+ import '../../ChannelProvider-78e85f32.js';
58
+ import '../../const-c6a266f4.js';
59
+ import '../../compareIds-2464aab2.js';
60
60
  import '@sendbird/chat/message';
61
- import '../../consts-55e36248.js';
62
- import '../../resolvedReplyType-6785a18d.js';
63
- import '../../useLongPress-0cf29ece.js';
61
+ import '../../consts-b6f24cc7.js';
62
+ import '../../resolvedReplyType-d6e22593.js';
63
+ import '../../useLongPress-0a2a8916.js';
64
64
  import '../../withSendbird.js';
65
- import '../../index-7727118e.js';
65
+ import '../../index-07345a6e.js';
66
66
  import '../../ui/Input.js';
67
- import '../../actionTypes-e67c8999.js';
67
+ import '../../actionTypes-66bf934b.js';
68
68
 
69
69
  const isAboutSame = (a, b, px) => Math.abs(a - b) <= px;
70
70
 
71
- const DELIVERY_RECIPT = 'delivery_receipt';
72
71
  const ChannelListUI = props => {
73
72
  var _state$stores;
74
73
  const {
@@ -86,20 +85,17 @@ const ChannelListUI = props => {
86
85
  loading,
87
86
  currentChannel,
88
87
  channelListDispatcher,
89
- channelSource,
90
88
  typingChannels,
91
- initialized
89
+ initialized,
90
+ fetchChannelList
92
91
  } = useChannelListContext();
93
92
  const state = useSendbirdStateContext();
94
93
  const sdkStore = state === null || state === void 0 ? void 0 : (_state$stores = state.stores) === null || _state$stores === void 0 ? void 0 : _state$stores.sdkStore;
95
94
  const config = state === null || state === void 0 ? void 0 : state.config;
96
95
  const {
97
96
  logger,
98
- isOnline = false,
99
- markAsDeliveredScheduler,
100
- disableMarkAsDelivered
97
+ isOnline = false
101
98
  } = config;
102
- const sdk = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.sdk;
103
99
  const sdkError = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.error;
104
100
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
105
101
  className: "sendbird-channel-list__header"
@@ -123,37 +119,8 @@ const ChannelListUI = props => {
123
119
  className: "sendbird-channel-list__body",
124
120
  onScroll: e => {
125
121
  const target = e === null || e === void 0 ? void 0 : e.target;
126
- const fetchMore = isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10);
127
- if (fetchMore && channelSource !== null && channelSource !== void 0 && channelSource.hasNext) {
128
- logger.info('ChannelList: Fetching more channels');
129
- channelListDispatcher({
130
- type: FETCH_CHANNELS_START,
131
- payload: null
132
- });
133
- channelSource.next().then(channelList => {
134
- var _sdk$appInfo, _sdk$appInfo$premiumF;
135
- logger.info('ChannelList: Fetching channels successful', channelList);
136
- channelListDispatcher({
137
- type: FETCH_CHANNELS_SUCCESS,
138
- payload: channelList
139
- });
140
- const canSetMarkAsDelivered = sdk === null || sdk === void 0 ? void 0 : (_sdk$appInfo = sdk.appInfo) === null || _sdk$appInfo === void 0 ? void 0 : (_sdk$appInfo$premiumF = _sdk$appInfo.premiumFeatureList) === null || _sdk$appInfo$premiumF === void 0 ? void 0 : _sdk$appInfo$premiumF.find(feature => feature === DELIVERY_RECIPT);
141
- if (canSetMarkAsDelivered && !disableMarkAsDelivered) {
142
- logger.info('ChannelList: Marking all channels as read');
143
- // eslint-disable-next-line no-unused-expressions
144
- channelList === null || channelList === void 0 ? void 0 : channelList.forEach(channel => {
145
- if ((channel === null || channel === void 0 ? void 0 : channel.unreadMessageCount) > 0) {
146
- markAsDeliveredScheduler.push(channel);
147
- }
148
- });
149
- }
150
- }).catch(err => {
151
- logger.info('ChannelList: Fetching channels failed', err);
152
- channelListDispatcher({
153
- type: FETCH_CHANNELS_FAILURE,
154
- payload: err
155
- });
156
- });
122
+ if (isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10)) {
123
+ fetchChannelList();
157
124
  }
158
125
  }
159
126
  }, sdkError && !loading && (renderPlaceHolderError && typeof renderPlaceHolderError === 'function' ? renderPlaceHolderError === null || renderPlaceHolderError === void 0 ? void 0 : renderPlaceHolderError() : /*#__PURE__*/React__default.createElement(PlaceHolder, {
@@ -1 +1 @@
1
- {"version":3,"file":"ChannelListUI.js","sources":["../../../src/modules/ChannelList/components/utils.js","../../../src/modules/ChannelList/components/ChannelListUI/index.tsx"],"sourcesContent":["export const createDefaultUserListQuery = ({ sdk, userFilledApplicationUserListQuery = {} }) => {\n if (sdk?.createApplicationUserListQuery) {\n const params = sdk?.createApplicationUserListQuery();\n if (userFilledApplicationUserListQuery) {\n Object.keys(userFilledApplicationUserListQuery).forEach((key) => {\n params[key] = userFilledApplicationUserListQuery[key];\n });\n }\n return params;\n }\n return null;\n};\n\nconst getApplicationAttributes = (sdk = {}) => {\n const { appInfo = {} } = sdk;\n const { applicationAttributes = [] } = appInfo;\n return applicationAttributes;\n};\n\nexport const isBroadcastChannelEnabled = (sdk = {}) => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\nexport const isSuperGroupChannelEnabled = (sdk = {}) => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n\nexport const isAboutSame = (a, b, px) => (Math.abs(a - b) <= px);\n\nexport const setChannelType = (params, type) => {\n if (type === 'broadcast') {\n // eslint-disable-next-line no-param-reassign\n params.isBroadcast = true;\n }\n if (type === 'supergroup') {\n // eslint-disable-next-line no-param-reassign\n params.isSuper = true;\n }\n return params;\n};\n\nexport const createChannel = (\n sdk,\n selectedUsers,\n onBeforeCreateChannel,\n userId,\n type = 'group',\n) => new Promise((resolve, reject) => {\n // have custom params\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUsers);\n setChannelType(params, type);\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { reject(err); });\n return;\n }\n\n const params = new sdk.GroupChannelParams();\n params.addUserIds(selectedUsers);\n params.isDistinct = false;\n\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { resolve(err); });\n});\n\nexport default createChannel;\n","import './channel-list-ui.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel, Member, SendbirdGroupChat } from '@sendbird/chat/groupChannel';\nimport type { User } from '@sendbird/chat';\n\nimport ChannelListHeader from '../ChannelListHeader';\nimport AddChannel from '../AddChannel';\nimport ChannelPreview from '../ChannelPreview';\nimport ChannelPreviewAction from '../ChannelPreviewAction';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport * as channelListActions from '../../dux/actionTypes';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport EditUserProfile from '../../../EditUserProfile';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport { isAboutSame } from '../utils';\n\nconst DELIVERY_RECIPT = 'delivery_receipt';\n\ninterface RenderChannelPreviewProps {\n channel: GroupChannel;\n onLeaveChannel(\n channel: GroupChannel,\n onLeaveChannelCb?: (c: GroupChannel) => void,\n );\n}\n\ninterface RenderUserProfileProps {\n user: Member | User;\n currentUserId: string;\n close(): void;\n}\n\nexport interface ChannelListUIProps {\n renderChannelPreview?: (props: RenderChannelPreviewProps) => React.ReactElement;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n renderHeader?: (props: void) => React.ReactElement;\n renderPlaceHolderError?: (props: void) => React.ReactElement;\n renderPlaceHolderLoading?: (props: void) => React.ReactElement;\n renderPlaceHolderEmptyList?: (props: void) => React.ReactElement;\n}\n\nconst ChannelListUI: React.FC<ChannelListUIProps> = (props: ChannelListUIProps) => {\n const {\n renderHeader,\n renderChannelPreview,\n renderPlaceHolderError,\n renderPlaceHolderLoading,\n renderPlaceHolderEmptyList,\n } = props;\n\n const [showProfileEdit, setShowProfileEdit] = useState(false);\n\n const {\n onThemeChange,\n allowProfileEdit,\n allChannels,\n loading,\n currentChannel,\n channelListDispatcher,\n channelSource,\n typingChannels,\n initialized,\n } = useChannelListContext();\n\n const state = useSendbirdStateContext();\n\n const sdkStore = state?.stores?.sdkStore;\n const config = state?.config;\n const {\n logger,\n isOnline = false,\n markAsDeliveredScheduler,\n disableMarkAsDelivered,\n } = config;\n\n const sdk = sdkStore?.sdk as SendbirdGroupChat;\n const sdkError = sdkStore?.error;\n\n return (\n <>\n <div className=\"sendbird-channel-list__header\">\n {\n renderHeader?.() || (\n <ChannelListHeader\n onEdit={() => {\n if (allowProfileEdit) {\n setShowProfileEdit(true);\n }\n }}\n allowProfileEdit={allowProfileEdit}\n renderIconButton={() => (\n <AddChannel />\n )}\n />\n )\n }\n </div>\n {\n showProfileEdit && (\n <EditUserProfile\n onThemeChange={onThemeChange}\n onCancel={() => { setShowProfileEdit(false); }}\n onEditProfile={() => {\n setShowProfileEdit(false);\n }}\n />\n )\n }\n <div\n className=\"sendbird-channel-list__body\"\n onScroll={(e) => {\n const target = e?.target as HTMLDivElement;\n const fetchMore = isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10);\n if (fetchMore && channelSource?.hasNext) {\n logger.info('ChannelList: Fetching more channels');\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_START,\n payload: null,\n });\n channelSource.next().then((channelList) => {\n logger.info('ChannelList: Fetching channels successful', channelList);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_SUCCESS,\n payload: channelList,\n });\n const canSetMarkAsDelivered = sdk?.appInfo?.premiumFeatureList\n ?.find((feature) => (feature === DELIVERY_RECIPT));\n\n if (canSetMarkAsDelivered && !disableMarkAsDelivered) {\n logger.info('ChannelList: Marking all channels as read');\n // eslint-disable-next-line no-unused-expressions\n channelList?.forEach((channel) => {\n if (channel?.unreadMessageCount > 0) {\n markAsDeliveredScheduler.push(channel);\n }\n });\n }\n }).catch((err) => {\n logger.info('ChannelList: Fetching channels failed', err);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_FAILURE,\n payload: err,\n });\n });\n }\n }}\n >\n {\n (sdkError && !loading) && (\n (renderPlaceHolderError && typeof renderPlaceHolderError === 'function') ? (\n renderPlaceHolderError?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n )\n }\n {/*\n To do: Implement windowing\n Implement windowing if you are dealing with large number of messages/channels\n https://github.com/bvaughn/react-window -> recommendation\n We hesitate to bring one more dependency to our library,\n we are planning to implement it inside the library\n */}\n <div>\n {\n allChannels && allChannels.map((channel, idx) => {\n // todo: Refactor and move this inside channel - preview\n const onLeaveChannel = (c, cb) => {\n logger.info('ChannelList: Leaving channel', c);\n c.leave()\n .then((res) => {\n logger.info('ChannelList: Leaving channel success', res);\n if (cb && typeof cb === 'function') {\n cb(res, null);\n }\n channelListDispatcher({\n type: channelListActions.LEAVE_CHANNEL_SUCCESS,\n payload: channel?.url,\n });\n })\n .catch((err) => {\n logger.error('ChannelList: Leaving channel failed', err);\n if (cb && typeof cb === 'function') {\n cb(null, err);\n }\n });\n };\n\n const onClick = () => {\n if (!isOnline) { return; }\n logger.info('ChannelList: Clicked on channel:', channel);\n channelListDispatcher({\n type: channelListActions.SET_CURRENT_CHANNEL,\n payload: channel,\n });\n };\n\n return (\n (renderChannelPreview)\n ? (\n // eslint-disable-next-line\n <div key={channel?.url} onClick={onClick}>\n {renderChannelPreview({ channel, onLeaveChannel })}\n </div>\n )\n : (\n <ChannelPreview\n key={channel?.url}\n tabIndex={idx}\n onClick={onClick}\n channel={channel}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n isActive={channel?.url === currentChannel?.url}\n isTyping={typingChannels?.some(({ url }) => url === channel?.url)}\n renderChannelAction={(() => (\n <ChannelPreviewAction\n channel={channel}\n disabled={!isOnline}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n />\n ))}\n />\n )\n );\n })\n }\n </div>\n {\n (!initialized && loading) && (\n (renderPlaceHolderLoading && typeof renderPlaceHolderLoading === 'function') ? (\n renderPlaceHolderLoading?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n )\n }\n {\n (initialized && allChannels?.length === 0) && (\n (renderPlaceHolderEmptyList && typeof renderPlaceHolderEmptyList === 'function') ? (\n renderPlaceHolderEmptyList?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n )\n }\n </div>\n </>\n );\n};\n\nexport default ChannelListUI;\n"],"names":["isAboutSame","a","b","px","Math","abs","DELIVERY_RECIPT","ChannelListUI","props","_state$stores","renderHeader","renderChannelPreview","renderPlaceHolderError","renderPlaceHolderLoading","renderPlaceHolderEmptyList","showProfileEdit","setShowProfileEdit","useState","onThemeChange","allowProfileEdit","allChannels","loading","currentChannel","channelListDispatcher","channelSource","typingChannels","initialized","useChannelListContext","state","useSendbirdStateContext","sdkStore","stores","config","logger","isOnline","markAsDeliveredScheduler","disableMarkAsDelivered","sdk","sdkError","error","React","createElement","Fragment","className","ChannelListHeader","onEdit","renderIconButton","AddChannel","EditUserProfile","onCancel","onEditProfile","onScroll","e","target","fetchMore","clientHeight","scrollTop","scrollHeight","hasNext","info","type","channelListActions","payload","next","then","channelList","_sdk$appInfo","_sdk$appInfo$premiumF","canSetMarkAsDelivered","appInfo","premiumFeatureList","find","feature","forEach","channel","unreadMessageCount","push","catch","err","PlaceHolder","PlaceHolderTypes","WRONG","map","idx","onLeaveChannel","c","cb","leave","res","url","onClick","key","ChannelPreview","tabIndex","isActive","isTyping","some","_ref","renderChannelAction","ChannelPreviewAction","disabled","LOADING","length","NO_CHANNELS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCO,MAAMA,WAAW,GAAGA,CAACC,CAAC,EAAEC,CAAC,EAAEC,EAAE,KAAMC,IAAI,CAACC,GAAG,CAACJ,CAAC,GAAGC,CAAC,CAAC,IAAIC,EAAG;;ACtBhE,MAAMG,eAAe,GAAG,kBAAkB,CAAA;AAyBpCC,MAAAA,aAA2C,GAAIC,KAAyB,IAAK;AAAA,EAAA,IAAAC,aAAA,CAAA;EACjF,MAAM;IACJC,YAAY;IACZC,oBAAoB;IACpBC,sBAAsB;IACtBC,wBAAwB;AACxBC,IAAAA,0BAAAA;AACF,GAAC,GAAGN,KAAK,CAAA;EAET,MAAM,CAACO,eAAe,EAAEC,kBAAkB,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;EAE7D,MAAM;IACJC,aAAa;IACbC,gBAAgB;IAChBC,WAAW;IACXC,OAAO;IACPC,cAAc;IACdC,qBAAqB;IAC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AAA,CAAA,GAAXA,WAAW,CAAEkF,MAAM,MAAK,CAAC,KACtCxF,0BAA0B,IAAI,OAAOA,0BAA0B,KAAK,UAAU,GAC7EA,0BAA0B,KAA1BA,IAAAA,IAAAA,0BAA0B,KAA1BA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,0BAA0B,EAAI,gBAE9B0B,cAAA,CAAAC,aAAA,CAACsC,WAAW,EAAA;IAACnB,IAAI,EAAEoB,gBAAgB,CAACuB,WAAAA;GACrC,CAAA,CACF,CAEC,CACL,CAAA;AAEP;;;;"}
1
+ {"version":3,"file":"ChannelListUI.js","sources":["../../../src/modules/ChannelList/components/utils.js","../../../src/modules/ChannelList/components/ChannelListUI/index.tsx"],"sourcesContent":["export const createDefaultUserListQuery = ({ sdk, userFilledApplicationUserListQuery = {} }) => {\n if (sdk?.createApplicationUserListQuery) {\n const params = sdk?.createApplicationUserListQuery();\n if (userFilledApplicationUserListQuery) {\n Object.keys(userFilledApplicationUserListQuery).forEach((key) => {\n params[key] = userFilledApplicationUserListQuery[key];\n });\n }\n return params;\n }\n return null;\n};\n\nconst getApplicationAttributes = (sdk = {}) => {\n const { appInfo = {} } = sdk;\n const { applicationAttributes = [] } = appInfo;\n return applicationAttributes;\n};\n\nexport const isBroadcastChannelEnabled = (sdk = {}) => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\nexport const isSuperGroupChannelEnabled = (sdk = {}) => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n\nexport const isAboutSame = (a, b, px) => (Math.abs(a - b) <= px);\n\nexport const setChannelType = (params, type) => {\n if (type === 'broadcast') {\n // eslint-disable-next-line no-param-reassign\n params.isBroadcast = true;\n }\n if (type === 'supergroup') {\n // eslint-disable-next-line no-param-reassign\n params.isSuper = true;\n }\n return params;\n};\n\nexport const createChannel = (\n sdk,\n selectedUsers,\n onBeforeCreateChannel,\n userId,\n type = 'group',\n) => new Promise((resolve, reject) => {\n // have custom params\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUsers);\n setChannelType(params, type);\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { reject(err); });\n return;\n }\n\n const params = new sdk.GroupChannelParams();\n params.addUserIds(selectedUsers);\n params.isDistinct = false;\n\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { resolve(err); });\n});\n\nexport default createChannel;\n","import './channel-list-ui.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel, Member } from '@sendbird/chat/groupChannel';\nimport type { User } from '@sendbird/chat';\n\nimport ChannelListHeader from '../ChannelListHeader';\nimport AddChannel from '../AddChannel';\nimport ChannelPreview from '../ChannelPreview';\nimport ChannelPreviewAction from '../ChannelPreviewAction';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport * as channelListActions from '../../dux/actionTypes';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport EditUserProfile from '../../../EditUserProfile';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport { isAboutSame } from '../utils';\n\ninterface RenderChannelPreviewProps {\n channel: GroupChannel;\n onLeaveChannel(\n channel: GroupChannel,\n onLeaveChannelCb?: (c: GroupChannel) => void,\n );\n}\n\ninterface RenderUserProfileProps {\n user: Member | User;\n currentUserId: string;\n close(): void;\n}\n\nexport interface ChannelListUIProps {\n renderChannelPreview?: (props: RenderChannelPreviewProps) => React.ReactElement;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n renderHeader?: (props: void) => React.ReactElement;\n renderPlaceHolderError?: (props: void) => React.ReactElement;\n renderPlaceHolderLoading?: (props: void) => React.ReactElement;\n renderPlaceHolderEmptyList?: (props: void) => React.ReactElement;\n}\n\nconst ChannelListUI: React.FC<ChannelListUIProps> = (props: ChannelListUIProps) => {\n const {\n renderHeader,\n renderChannelPreview,\n renderPlaceHolderError,\n renderPlaceHolderLoading,\n renderPlaceHolderEmptyList,\n } = props;\n\n const [showProfileEdit, setShowProfileEdit] = useState(false);\n\n const {\n onThemeChange,\n allowProfileEdit,\n allChannels,\n loading,\n currentChannel,\n channelListDispatcher,\n typingChannels,\n initialized,\n fetchChannelList,\n } = useChannelListContext();\n\n const state = useSendbirdStateContext();\n const sdkStore = state?.stores?.sdkStore;\n const config = state?.config;\n const {\n logger,\n isOnline = false,\n } = config;\n const sdkError = sdkStore?.error;\n\n return (\n <>\n <div className=\"sendbird-channel-list__header\">\n {\n renderHeader?.() || (\n <ChannelListHeader\n onEdit={() => {\n if (allowProfileEdit) {\n setShowProfileEdit(true);\n }\n }}\n allowProfileEdit={allowProfileEdit}\n renderIconButton={() => (\n <AddChannel />\n )}\n />\n )\n }\n </div>\n {\n showProfileEdit && (\n <EditUserProfile\n onThemeChange={onThemeChange}\n onCancel={() => { setShowProfileEdit(false); }}\n onEditProfile={() => {\n setShowProfileEdit(false);\n }}\n />\n )\n }\n <div\n className=\"sendbird-channel-list__body\"\n onScroll={(e) => {\n const target = e?.target as HTMLDivElement;\n if (isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10)) {\n fetchChannelList();\n }\n }}\n >\n {\n (sdkError && !loading) && (\n (renderPlaceHolderError && typeof renderPlaceHolderError === 'function') ? (\n renderPlaceHolderError?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n )\n }\n {/*\n To do: Implement windowing\n Implement windowing if you are dealing with large number of messages/channels\n https://github.com/bvaughn/react-window -> recommendation\n We hesitate to bring one more dependency to our library,\n we are planning to implement it inside the library\n */}\n <div>\n {\n allChannels && allChannels.map((channel, idx) => {\n // todo: Refactor and move this inside channel - preview\n const onLeaveChannel = (c, cb) => {\n logger.info('ChannelList: Leaving channel', c);\n c.leave()\n .then((res) => {\n logger.info('ChannelList: Leaving channel success', res);\n if (cb && typeof cb === 'function') {\n cb(res, null);\n }\n channelListDispatcher({\n type: channelListActions.LEAVE_CHANNEL_SUCCESS,\n payload: channel?.url,\n });\n })\n .catch((err) => {\n logger.error('ChannelList: Leaving channel failed', err);\n if (cb && typeof cb === 'function') {\n cb(null, err);\n }\n });\n };\n\n const onClick = () => {\n if (!isOnline) { return; }\n logger.info('ChannelList: Clicked on channel:', channel);\n channelListDispatcher({\n type: channelListActions.SET_CURRENT_CHANNEL,\n payload: channel,\n });\n };\n\n return (\n (renderChannelPreview)\n ? (\n // eslint-disable-next-line\n <div key={channel?.url} onClick={onClick}>\n {renderChannelPreview({ channel, onLeaveChannel })}\n </div>\n )\n : (\n <ChannelPreview\n key={channel?.url}\n tabIndex={idx}\n onClick={onClick}\n channel={channel}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n isActive={channel?.url === currentChannel?.url}\n isTyping={typingChannels?.some(({ url }) => url === channel?.url)}\n renderChannelAction={(() => (\n <ChannelPreviewAction\n channel={channel}\n disabled={!isOnline}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n />\n ))}\n />\n )\n );\n })\n }\n </div>\n {\n (!initialized && loading) && (\n (renderPlaceHolderLoading && typeof renderPlaceHolderLoading === 'function') ? (\n renderPlaceHolderLoading?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n )\n }\n {\n (initialized && allChannels?.length === 0) && (\n (renderPlaceHolderEmptyList && typeof renderPlaceHolderEmptyList === 'function') ? (\n renderPlaceHolderEmptyList?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n )\n }\n </div>\n </>\n );\n};\n\nexport default ChannelListUI;\n"],"names":["isAboutSame","a","b","px","Math","abs","ChannelListUI","props","_state$stores","renderHeader","renderChannelPreview","renderPlaceHolderError","renderPlaceHolderLoading","renderPlaceHolderEmptyList","showProfileEdit","setShowProfileEdit","useState","onThemeChange","allowProfileEdit","allChannels","loading","currentChannel","channelListDispatcher","typingChannels","initialized","fetchChannelList","useChannelListContext","state","useSendbirdStateContext","sdkStore","stores","config","logger","isOnline","sdkError","error","React","createElement","Fragment","className","ChannelListHeader","onEdit","renderIconButton","AddChannel","EditUserProfile","onCancel","onEditProfile","onScroll","e","target","clientHeight","scrollTop","scrollHeight","PlaceHolder","type","PlaceHolderTypes","WRONG","map","channel","idx","onLeaveChannel","c","cb","info","leave","then","res","channelListActions","payload","url","catch","err","onClick","key","ChannelPreview","tabIndex","isActive","isTyping","some","_ref","renderChannelAction","ChannelPreviewAction","disabled","LOADING","length","NO_CHANNELS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCO,MAAMA,WAAW,GAAGA,CAACC,CAAC,EAAEC,CAAC,EAAEC,EAAE,KAAMC,IAAI,CAACC,GAAG,CAACJ,CAAC,GAAGC,CAAC,CAAC,IAAIC,EAAG;;ACC1DG,MAAAA,aAA2C,GAAIC,KAAyB,IAAK;AAAA,EAAA,IAAAC,aAAA,CAAA;EACjF,MAAM;IACJC,YAAY;IACZC,oBAAoB;IACpBC,sBAAsB;IACtBC,wBAAwB;AACxBC,IAAAA,0BAAAA;AACF,GAAC,GAAGN,KAAK,CAAA;EAET,MAAM,CAACO,eAAe,EAAEC,kBAAkB,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC,CAAA;EAE7D,MAAM;IACJC,aAAa;IACbC,gBAAgB;IAChBC,WAAW;IACXC,OAAO;IACPC,cAAc;IACdC,qBAAqB;IACrBC,cAAc;IACdC,WAAW;AACXC,IAAAA,gBAAAA;GACD,G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A,MAAMA,cAAc,CAACF,OAAO,EAAE,IAAI,CAAA;AAAE,OAAA,CAAA;KAI3D,CAAA,CAAA;GAEN,CAAC,CAEA,EAEH,CAAClC,WAAW,IAAIJ,OAAO,KACrBR,wBAAwB,IAAI,OAAOA,wBAAwB,KAAK,UAAU,GACzEA,wBAAwB,KAAxBA,IAAAA,IAAAA,wBAAwB,KAAxBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,wBAAwB,EAAI,gBAE5BwB,cAAA,CAAAC,aAAA,CAACgB,WAAW,EAAA;IAACC,IAAI,EAAEC,gBAAgB,CAAC4B,OAAAA;AAAQ,GAAA,CAC7C,CACF,EAGA3D,WAAW,IAAI,CAAAL,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAXA,WAAW,CAAEiE,MAAM,MAAK,CAAC,KACtCvE,0BAA0B,IAAI,OAAOA,0BAA0B,KAAK,UAAU,GAC7EA,0BAA0B,KAA1BA,IAAAA,IAAAA,0BAA0B,KAA1BA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,0BAA0B,EAAI,gBAE9BuB,cAAA,CAAAC,aAAA,CAACgB,WAAW,EAAA;IAACC,IAAI,EAAEC,gBAAgB,CAAC8B,WAAAA;GACrC,CAAA,CACF,CAEC,CACL,CAAA;AAEP;;;;"}
@@ -1,49 +1,49 @@
1
- import { b as _extends, _ as _objectSpread2 } from '../../_rollupPluginBabelHelpers-34f2bdc3.js';
1
+ import { b as _extends, _ as _objectSpread2 } from '../../_rollupPluginBabelHelpers-90ff7fc4.js';
2
2
  import React__default, { useState } from 'react';
3
3
  import ChannelAvatar from '../../ui/ChannelAvatar.js';
4
4
  import Badge from '../../ui/Badge.js';
5
5
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
6
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0dd2ee39.js';
7
- import { g as getChannelTitle, a as getTotalMembers, M as MessageStatus, b as getLastMessageCreatedAt, c as getLastMessage, d as getChannelUnreadMessageCount } from '../../index-007ff82b.js';
6
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-13d9d766.js';
7
+ import { g as getChannelTitle, a as getTotalMembers, M as MessageStatus, b as getLastMessageCreatedAt, c as getLastMessage, d as getChannelUnreadMessageCount } from '../../index-17b78bb0.js';
8
8
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
9
- import { u as useLocalization } from '../../LocalizationContext-2952e678.js';
9
+ import { u as useLocalization } from '../../LocalizationContext-5fe9b59d.js';
10
10
  import MentionUserLabel from '../../ui/MentionUserLabel.js';
11
11
  import Modal from '../../ui/Modal.js';
12
12
  import TextButton from '../../ui/TextButton.js';
13
- import { u as useChannelListContext } from '../../ChannelListProvider-2e7026e9.js';
13
+ import { u as useChannelListContext } from '../../ChannelListProvider-fc14f42d.js';
14
14
  import { TypingIndicatorText } from '../../Channel/components/TypingIndicator.js';
15
- import { d as isVoiceMessage } from '../../index-96fe32b3.js';
16
- import { u as useMediaQueryContext } from '../../MediaQueryContext-2173573f.js';
17
- import { u as useLongPress } from '../../useLongPress-0cf29ece.js';
15
+ import { d as isVoiceMessage } from '../../index-56249831.js';
16
+ import { u as useMediaQueryContext } from '../../MediaQueryContext-66b59195.js';
17
+ import { u as useLongPress } from '../../useLongPress-0a2a8916.js';
18
18
  import '../../ui/Avatar.js';
19
19
  import '../../ui/ImageRenderer.js';
20
- import '../../uuid-10fc0de7.js';
21
- import '../../utils-8e781334.js';
20
+ import '../../uuid-ec51ac4d.js';
21
+ import '../../utils-93924431.js';
22
22
  import 'prop-types';
23
- import '../../stringSet-23a36018.js';
24
- import '../../index-b74226dc.js';
25
- import '../../index-e43e7fa2.js';
23
+ import '../../stringSet-47601d79.js';
24
+ import '../../index-335e7557.js';
25
+ import '../../index-b9b184a4.js';
26
26
  import '../../ui/Loader.js';
27
27
  import '../../utils/message/getOutgoingMessageState.js';
28
- import '../../index-c191462d.js';
29
- import '../../index-c2640752.js';
28
+ import '../../index-a39b9075.js';
29
+ import '../../index-499d9ef9.js';
30
30
  import '../../withSendbird.js';
31
- import '../../consts-2475c80c.js';
31
+ import '../../consts-32a2c4a7.js';
32
32
  import 'react-dom';
33
- import '../../index-a5bf5a96.js';
33
+ import '../../index-bafedab0.js';
34
34
  import '../../ui/Button.js';
35
35
  import '../../ui/IconButton.js';
36
- import '../../color-b73a158c.js';
36
+ import '../../color-2315a258.js';
37
37
  import '@sendbird/chat/groupChannel';
38
- import '../../topics-67f9a9f1.js';
39
- import '../../utils-cae251db.js';
40
- import '../../UserProfileContext-76aab169.js';
41
- import '../../ChannelProvider-31a344d3.js';
42
- import '../../const-72965dcb.js';
43
- import '../../compareIds-eab12c15.js';
38
+ import '../../topics-e985567d.js';
39
+ import '../../utils-d15f13cf.js';
40
+ import '../../UserProfileContext-8b8f3e3a.js';
41
+ import '../../consts-b6f24cc7.js';
42
+ import '../../ChannelProvider-78e85f32.js';
43
+ import '../../const-c6a266f4.js';
44
+ import '../../compareIds-2464aab2.js';
44
45
  import '@sendbird/chat/message';
45
- import '../../consts-55e36248.js';
46
- import '../../resolvedReplyType-6785a18d.js';
46
+ import '../../resolvedReplyType-d6e22593.js';
47
47
 
48
48
  const ChannelPreview = _ref => {
49
49
  var _sbState$stores, _sbState$stores$userS, _sbState$stores$userS2, _sbState$config, _sbState$config2, _channel$lastMessage, _channel$lastMessage2, _channel$lastMessage3, _channel$lastMessage4;