@sendbird/uikit-react 3.0.1 → 3.0.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/App.js +32 -32
  2. package/CHANGELOG.md +16 -0
  3. package/Channel/components/ChannelHeader.js +17 -17
  4. package/Channel/components/ChannelUI.js +29 -25
  5. package/Channel/components/ChannelUI.js.map +1 -1
  6. package/Channel/components/FileViewer.js +16 -16
  7. package/Channel/components/FrozenNotification.js +5 -5
  8. package/Channel/components/Message.js +21 -21
  9. package/Channel/components/MessageInput.js +18 -18
  10. package/Channel/components/MessageList.js +28 -24
  11. package/Channel/components/MessageList.js.map +1 -1
  12. package/Channel/components/RemoveMessageModal.js +19 -19
  13. package/Channel/components/SuggestedMentionList.js +17 -17
  14. package/Channel/components/TypingIndicator.js +16 -16
  15. package/Channel/components/UnreadCount.js +5 -5
  16. package/Channel/context.js +15 -15
  17. package/Channel.js +24 -24
  18. package/ChannelList/components/AddChannel.js +14 -14
  19. package/ChannelList/components/ChannelListHeader.js +7 -7
  20. package/ChannelList/components/ChannelListUI.js +54 -35
  21. package/ChannelList/components/ChannelListUI.js.map +1 -1
  22. package/ChannelList/components/ChannelPreview.js +21 -21
  23. package/ChannelList/components/ChannelPreviewAction.js +16 -16
  24. package/ChannelList/context.js +10 -10
  25. package/ChannelList.js +28 -28
  26. package/{ChannelListProvider-471abb8f.js → ChannelListProvider-945445c9.js} +43 -29
  27. package/ChannelListProvider-945445c9.js.map +1 -0
  28. package/{ChannelProvider-01a680e0.js → ChannelProvider-21d4378a.js} +21 -15
  29. package/ChannelProvider-21d4378a.js.map +1 -0
  30. package/ChannelSettings/components/ChannelProfile.js +13 -13
  31. package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
  32. package/ChannelSettings/components/EditDetailsModal.js +13 -13
  33. package/ChannelSettings/components/LeaveChannel.js +10 -10
  34. package/ChannelSettings/components/ModerationPanel.js +15 -15
  35. package/ChannelSettings/components/UserListItem.js +12 -12
  36. package/ChannelSettings/components/UserPanel.js +14 -14
  37. package/ChannelSettings/context.js +3 -3
  38. package/ChannelSettings.js +18 -18
  39. package/CreateChannel/components/CreateChannelUI.js +14 -14
  40. package/CreateChannel/components/InviteUsers.js +24 -21
  41. package/CreateChannel/components/InviteUsers.js.map +1 -1
  42. package/CreateChannel/components/SelectChannelType.js +10 -10
  43. package/CreateChannel/context.js +4 -4
  44. package/CreateChannel.js +14 -14
  45. package/{CreateChannelProvider-efa959ed.js → CreateChannelProvider-53259d87.js} +1 -1
  46. package/{CreateChannelProvider-efa959ed.js.map → CreateChannelProvider-53259d87.js.map} +1 -1
  47. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  48. package/EditUserProfile.js +13 -13
  49. package/{LocalizationContext-7f115178.js → LocalizationContext-08cebf79.js} +3 -3
  50. package/{LocalizationContext-7f115178.js.map → LocalizationContext-08cebf79.js.map} +1 -1
  51. package/{MemberList-9863866e.js → MemberList-29cf5f98.js} +12 -9
  52. package/MemberList-29cf5f98.js.map +1 -0
  53. package/MessageSearch/components/MessageSearchUI.js +11 -11
  54. package/MessageSearch/context.js +2 -2
  55. package/MessageSearch.js +11 -11
  56. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  57. package/OpenChannel/components/OpenChannelHeader.js +14 -14
  58. package/OpenChannel/components/OpenChannelInput.js +18 -18
  59. package/OpenChannel/components/OpenChannelMessage.js +23 -23
  60. package/OpenChannel/components/OpenChannelMessageList.js +25 -25
  61. package/OpenChannel/components/OpenChannelUI.js +25 -25
  62. package/OpenChannel/context.js +11 -11
  63. package/OpenChannel.js +25 -25
  64. package/{OpenChannelProvider-d11382d9.js → OpenChannelProvider-404556c2.js} +9 -9
  65. package/{OpenChannelProvider-d11382d9.js.map → OpenChannelProvider-404556c2.js.map} +1 -1
  66. package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
  67. package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
  68. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  69. package/OpenChannelSettings/components/OperatorUI.js +16 -16
  70. package/OpenChannelSettings/components/ParticipantUI.js +14 -14
  71. package/OpenChannelSettings/context.js +2 -2
  72. package/OpenChannelSettings.js +17 -17
  73. package/SendbirdProvider.js +58 -40
  74. package/SendbirdProvider.js.map +1 -1
  75. package/{UserProfileContext-eccdbd50.js → UserProfileContext-97bec8f7.js} +1 -1
  76. package/{UserProfileContext-eccdbd50.js.map → UserProfileContext-97bec8f7.js.map} +1 -1
  77. package/__bundle-7dfccc8c-ff995ba0.js +4396 -0
  78. package/__bundle-7dfccc8c-ff995ba0.js.map +1 -0
  79. package/{_rollupPluginBabelHelpers-2a8797d8.js → _rollupPluginBabelHelpers-9a08c8bf.js} +1 -1
  80. package/{_rollupPluginBabelHelpers-2a8797d8.js.map → _rollupPluginBabelHelpers-9a08c8bf.js.map} +1 -1
  81. package/{actionTypes-a992088f.js → actionTypes-eea40cdf.js} +1 -1
  82. package/{actionTypes-a992088f.js.map → actionTypes-eea40cdf.js.map} +1 -1
  83. package/cjs/App.js +32 -32
  84. package/cjs/Channel/components/ChannelHeader.js +17 -17
  85. package/cjs/Channel/components/ChannelUI.js +29 -25
  86. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  87. package/cjs/Channel/components/FileViewer.js +16 -16
  88. package/cjs/Channel/components/FrozenNotification.js +5 -5
  89. package/cjs/Channel/components/Message.js +21 -21
  90. package/cjs/Channel/components/MessageInput.js +18 -18
  91. package/cjs/Channel/components/MessageList.js +28 -24
  92. package/cjs/Channel/components/MessageList.js.map +1 -1
  93. package/cjs/Channel/components/RemoveMessageModal.js +19 -19
  94. package/cjs/Channel/components/SuggestedMentionList.js +17 -17
  95. package/cjs/Channel/components/TypingIndicator.js +16 -16
  96. package/cjs/Channel/components/UnreadCount.js +5 -5
  97. package/cjs/Channel/context.js +15 -15
  98. package/cjs/Channel.js +24 -24
  99. package/cjs/ChannelList/components/AddChannel.js +14 -14
  100. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  101. package/cjs/ChannelList/components/ChannelListUI.js +53 -34
  102. package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
  103. package/cjs/ChannelList/components/ChannelPreview.js +21 -21
  104. package/cjs/ChannelList/components/ChannelPreviewAction.js +16 -16
  105. package/cjs/ChannelList/context.js +10 -10
  106. package/cjs/ChannelList.js +28 -28
  107. package/cjs/{ChannelListProvider-8632f526.js → ChannelListProvider-0639f230.js} +43 -29
  108. package/cjs/ChannelListProvider-0639f230.js.map +1 -0
  109. package/cjs/{ChannelProvider-5e683eb1.js → ChannelProvider-33719788.js} +21 -15
  110. package/cjs/ChannelProvider-33719788.js.map +1 -0
  111. package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
  112. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
  113. package/cjs/ChannelSettings/components/EditDetailsModal.js +13 -13
  114. package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
  115. package/cjs/ChannelSettings/components/ModerationPanel.js +15 -15
  116. package/cjs/ChannelSettings/components/UserListItem.js +12 -12
  117. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  118. package/cjs/ChannelSettings/context.js +3 -3
  119. package/cjs/ChannelSettings.js +18 -18
  120. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  121. package/cjs/CreateChannel/components/InviteUsers.js +24 -21
  122. package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
  123. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  124. package/cjs/CreateChannel/context.js +4 -4
  125. package/cjs/CreateChannel.js +14 -14
  126. package/cjs/{CreateChannelProvider-7f6cf793.js → CreateChannelProvider-87272710.js} +1 -1
  127. package/cjs/{CreateChannelProvider-7f6cf793.js.map → CreateChannelProvider-87272710.js.map} +1 -1
  128. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  129. package/cjs/EditUserProfile.js +13 -13
  130. package/cjs/{LocalizationContext-0537da22.js → LocalizationContext-6465626c.js} +3 -3
  131. package/cjs/{LocalizationContext-0537da22.js.map → LocalizationContext-6465626c.js.map} +1 -1
  132. package/cjs/{MemberList-4efb8994.js → MemberList-ee6eb19f.js} +12 -9
  133. package/cjs/MemberList-ee6eb19f.js.map +1 -0
  134. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  135. package/cjs/MessageSearch/context.js +2 -2
  136. package/cjs/MessageSearch.js +11 -11
  137. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  138. package/cjs/OpenChannel/components/OpenChannelHeader.js +14 -14
  139. package/cjs/OpenChannel/components/OpenChannelInput.js +18 -18
  140. package/cjs/OpenChannel/components/OpenChannelMessage.js +23 -23
  141. package/cjs/OpenChannel/components/OpenChannelMessageList.js +25 -25
  142. package/cjs/OpenChannel/components/OpenChannelUI.js +25 -25
  143. package/cjs/OpenChannel/context.js +11 -11
  144. package/cjs/OpenChannel.js +25 -25
  145. package/cjs/{OpenChannelProvider-7969a8c0.js → OpenChannelProvider-3683d099.js} +9 -9
  146. package/cjs/{OpenChannelProvider-7969a8c0.js.map → OpenChannelProvider-3683d099.js.map} +1 -1
  147. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
  148. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
  149. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
  150. package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
  151. package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
  152. package/cjs/OpenChannelSettings/context.js +2 -2
  153. package/cjs/OpenChannelSettings.js +17 -17
  154. package/cjs/SendbirdProvider.js +58 -40
  155. package/cjs/SendbirdProvider.js.map +1 -1
  156. package/cjs/{UserProfileContext-e13859c2.js → UserProfileContext-df8199ec.js} +1 -1
  157. package/cjs/{UserProfileContext-e13859c2.js.map → UserProfileContext-df8199ec.js.map} +1 -1
  158. package/cjs/__bundle-7dfccc8c-5e21874b.js +4523 -0
  159. package/cjs/__bundle-7dfccc8c-5e21874b.js.map +1 -0
  160. package/cjs/{_rollupPluginBabelHelpers-116d792d.js → _rollupPluginBabelHelpers-720b1baf.js} +1 -1
  161. package/cjs/{_rollupPluginBabelHelpers-116d792d.js.map → _rollupPluginBabelHelpers-720b1baf.js.map} +1 -1
  162. package/cjs/{actionTypes-ce9861e1.js → actionTypes-ed5cc34a.js} +1 -1
  163. package/cjs/{actionTypes-ce9861e1.js.map → actionTypes-ed5cc34a.js.map} +1 -1
  164. package/cjs/{color-76e3ed0d.js → color-63291cc4.js} +1 -1
  165. package/cjs/{color-76e3ed0d.js.map → color-63291cc4.js.map} +1 -1
  166. package/cjs/{compareIds-d11fdea7.js → compareIds-b63abf00.js} +1 -1
  167. package/cjs/{compareIds-d11fdea7.js.map → compareIds-b63abf00.js.map} +1 -1
  168. package/cjs/{const-a6cfa3dc.js → const-766cd123.js} +1 -1
  169. package/cjs/{const-a6cfa3dc.js.map → const-766cd123.js.map} +1 -1
  170. package/cjs/{const-2da24989.js → const-ff74be91.js} +1 -1
  171. package/cjs/{const-2da24989.js.map → const-ff74be91.js.map} +1 -1
  172. package/cjs/{context-7d13e92d.js → context-f090cc51.js} +2 -2
  173. package/cjs/{context-7d13e92d.js.map → context-f090cc51.js.map} +1 -1
  174. package/cjs/{groupChannel-3f4aaa32.js → groupChannel-c1f53052.js} +2 -2
  175. package/cjs/{groupChannel-3f4aaa32.js.map → groupChannel-c1f53052.js.map} +1 -1
  176. package/cjs/{index-2596c9f9.js → index-0b461031.js} +2 -2
  177. package/cjs/{index-2596c9f9.js.map → index-0b461031.js.map} +1 -1
  178. package/cjs/{index-8e975b91.js → index-11031c1a.js} +3 -3
  179. package/cjs/{index-8e975b91.js.map → index-11031c1a.js.map} +1 -1
  180. package/cjs/{index-62b2f3b4.js → index-6d39a929.js} +2 -2
  181. package/cjs/{index-62b2f3b4.js.map → index-6d39a929.js.map} +1 -1
  182. package/cjs/{index-0207af7d.js → index-7ca86e7a.js} +4 -4
  183. package/cjs/{index-0207af7d.js.map → index-7ca86e7a.js.map} +1 -1
  184. package/cjs/{index-691debed.js → index-8cd26508.js} +1 -1
  185. package/cjs/{index-691debed.js.map → index-8cd26508.js.map} +1 -1
  186. package/cjs/{index-86f7e77d.js → index-b28dfe02.js} +3 -3
  187. package/cjs/{index-86f7e77d.js.map → index-b28dfe02.js.map} +1 -1
  188. package/cjs/{index-41b5e18c.js → index-c142357a.js} +1 -1
  189. package/cjs/{index-41b5e18c.js.map → index-c142357a.js.map} +1 -1
  190. package/cjs/{index-2be8b3df.js → index-cb538ec6.js} +2 -2
  191. package/cjs/{index-2be8b3df.js.map → index-cb538ec6.js.map} +1 -1
  192. package/cjs/{index-eb6344e9.js → index-dd1efb51.js} +6 -6
  193. package/cjs/{index-eb6344e9.js.map → index-dd1efb51.js.map} +1 -1
  194. package/cjs/{index-a6cd696f.js → index-f2004893.js} +4 -4
  195. package/cjs/{index-a6cd696f.js.map → index-f2004893.js.map} +1 -1
  196. package/cjs/index.js +35 -35
  197. package/cjs/openChannel-44cc2f8f.js +5251 -0
  198. package/cjs/openChannel-44cc2f8f.js.map +1 -0
  199. package/cjs/{openChannelUtils-cede8a88.js → openChannelUtils-6101651d.js} +1 -1
  200. package/cjs/{openChannelUtils-cede8a88.js.map → openChannelUtils-6101651d.js.map} +1 -1
  201. package/cjs/sendbirdSelectors.js +2 -2
  202. package/cjs/{stringSet-2b4edf07.js → stringSet-8cf3905e.js} +1 -1
  203. package/cjs/{stringSet-2b4edf07.js.map → stringSet-8cf3905e.js.map} +1 -1
  204. package/cjs/{topics-b910c620.js → topics-db086d13.js} +1 -1
  205. package/cjs/{topics-b910c620.js.map → topics-db086d13.js.map} +1 -1
  206. package/cjs/{tslib.es6-9a5d5697.js → tslib.es6-22430723.js} +1 -1
  207. package/cjs/{tslib.es6-9a5d5697.js.map → tslib.es6-22430723.js.map} +1 -1
  208. package/cjs/ui/Accordion.js +4 -4
  209. package/cjs/ui/AccordionGroup.js +2 -2
  210. package/cjs/ui/AdminMessage.js +3 -3
  211. package/cjs/ui/Avatar.js +3 -3
  212. package/cjs/ui/Badge.js +5 -5
  213. package/cjs/ui/Button.js +4 -4
  214. package/cjs/ui/ChannelAvatar.js +4 -4
  215. package/cjs/ui/ChannelPreview.js +12 -12
  216. package/cjs/ui/ChatHeader.js +8 -8
  217. package/cjs/ui/Checkbox.js +1 -1
  218. package/cjs/ui/ConnectionStatus.js +5 -5
  219. package/cjs/ui/ContextMenu.js +5 -5
  220. package/cjs/ui/DateSeparator.js +4 -4
  221. package/cjs/ui/Dropdown.js +3 -3
  222. package/cjs/ui/EmojiReactions.js +7 -7
  223. package/cjs/ui/FileMessageItemBody.js +6 -6
  224. package/cjs/ui/FileViewer.js +7 -7
  225. package/cjs/ui/Icon.js +1 -1
  226. package/cjs/ui/IconButton.js +1 -1
  227. package/cjs/ui/ImageRenderer.js +1 -1
  228. package/cjs/ui/Input.js +3 -3
  229. package/cjs/ui/Label.js +3 -3
  230. package/cjs/ui/LinkLabel.js +3 -3
  231. package/cjs/ui/Loader.js +1 -1
  232. package/cjs/ui/MentionLabel.js +14 -13
  233. package/cjs/ui/MentionLabel.js.map +1 -1
  234. package/cjs/ui/MessageContent.js +14 -14
  235. package/cjs/ui/MessageInput.js +10 -10
  236. package/cjs/ui/MessageItemMenu.js +7 -7
  237. package/cjs/ui/MessageItemReactionMenu.js +5 -5
  238. package/cjs/ui/MessageSearchFileItem.js +10 -10
  239. package/cjs/ui/MessageSearchItem.js +10 -10
  240. package/cjs/ui/MessageStatus.js +8 -8
  241. package/cjs/ui/Modal.js +8 -8
  242. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  243. package/cjs/ui/OGMessageItemBody.js +11 -11
  244. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  245. package/cjs/ui/OpenChannelAvatar.js +7 -7
  246. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  247. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  248. package/cjs/ui/OpenchannelOGMessage.js +15 -15
  249. package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
  250. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  251. package/cjs/ui/PlaceHolder.js +6 -6
  252. package/cjs/ui/QuoteMessage.js +7 -7
  253. package/cjs/ui/QuoteMessageInput.js +7 -7
  254. package/cjs/ui/ReactionBadge.js +3 -3
  255. package/cjs/ui/ReactionButton.js +1 -1
  256. package/cjs/ui/SortByRow.js +1 -1
  257. package/cjs/ui/TextButton.js +2 -2
  258. package/cjs/ui/TextMessageItemBody.js +11 -11
  259. package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
  260. package/cjs/ui/Tooltip.js +3 -3
  261. package/cjs/ui/TooltipWrapper.js +1 -1
  262. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  263. package/cjs/ui/UserListItem.js +12 -12
  264. package/cjs/ui/UserProfile.js +10 -10
  265. package/cjs/ui/Word.js +11 -11
  266. package/cjs/useSendbirdStateContext.js +1 -1
  267. package/cjs/{utils-15274d9b.js → utils-65925965.js} +1 -1
  268. package/cjs/{utils-15274d9b.js.map → utils-65925965.js.map} +1 -1
  269. package/cjs/{utils-4fadd220.js → utils-bbccbba3.js} +1 -1
  270. package/cjs/{utils-4fadd220.js.map → utils-bbccbba3.js.map} +1 -1
  271. package/cjs/{utils-b6bcd345.js → utils-f5e0083d.js} +1 -1
  272. package/cjs/{utils-b6bcd345.js.map → utils-f5e0083d.js.map} +1 -1
  273. package/cjs/{uuid-de92c01b.js → uuid-88159451.js} +1 -1
  274. package/cjs/{uuid-de92c01b.js.map → uuid-88159451.js.map} +1 -1
  275. package/cjs/withSendbird.js +1 -1
  276. package/{color-1727a3fb.js → color-aef1bef8.js} +1 -1
  277. package/{color-1727a3fb.js.map → color-aef1bef8.js.map} +1 -1
  278. package/{compareIds-ccf594a3.js → compareIds-3f1a5a5a.js} +1 -1
  279. package/{compareIds-ccf594a3.js.map → compareIds-3f1a5a5a.js.map} +1 -1
  280. package/{const-4674ec61.js → const-a6734af7.js} +1 -1
  281. package/{const-4674ec61.js.map → const-a6734af7.js.map} +1 -1
  282. package/{const-d3d5e7fc.js → const-b1f038b0.js} +1 -1
  283. package/{const-d3d5e7fc.js.map → const-b1f038b0.js.map} +1 -1
  284. package/{context-5db053f0.js → context-d04e2502.js} +2 -2
  285. package/{context-5db053f0.js.map → context-d04e2502.js.map} +1 -1
  286. package/{groupChannel-9bc7ca19.js → groupChannel-10e918af.js} +2 -2
  287. package/{groupChannel-9bc7ca19.js.map → groupChannel-10e918af.js.map} +1 -1
  288. package/{index-eeac3879.js → index-0d4dcc94.js} +3 -3
  289. package/{index-eeac3879.js.map → index-0d4dcc94.js.map} +1 -1
  290. package/{index-4e2ac873.js → index-13e3837f.js} +2 -2
  291. package/{index-4e2ac873.js.map → index-13e3837f.js.map} +1 -1
  292. package/{index-04458193.js → index-41a3e405.js} +4 -4
  293. package/{index-04458193.js.map → index-41a3e405.js.map} +1 -1
  294. package/{index-9570e69e.js → index-623fd405.js} +1 -1
  295. package/{index-9570e69e.js.map → index-623fd405.js.map} +1 -1
  296. package/{index-b188a276.js → index-73193bfa.js} +6 -6
  297. package/{index-b188a276.js.map → index-73193bfa.js.map} +1 -1
  298. package/{index-201c73a9.js → index-8528dcd1.js} +1 -1
  299. package/{index-201c73a9.js.map → index-8528dcd1.js.map} +1 -1
  300. package/{index-a355e1d8.js → index-afd61eff.js} +2 -2
  301. package/{index-a355e1d8.js.map → index-afd61eff.js.map} +1 -1
  302. package/{index-64b4e22e.js → index-cc9419b6.js} +4 -4
  303. package/{index-64b4e22e.js.map → index-cc9419b6.js.map} +1 -1
  304. package/{index-33a103e9.js → index-cdd2789a.js} +3 -3
  305. package/{index-33a103e9.js.map → index-cdd2789a.js.map} +1 -1
  306. package/{index-e15303b6.js → index-f222d022.js} +2 -2
  307. package/{index-e15303b6.js.map → index-f222d022.js.map} +1 -1
  308. package/index.js +35 -35
  309. package/openChannel-b0ad7380.js +5246 -0
  310. package/openChannel-b0ad7380.js.map +1 -0
  311. package/{openChannelUtils-0ffa52be.js → openChannelUtils-3ababdd1.js} +1 -1
  312. package/{openChannelUtils-0ffa52be.js.map → openChannelUtils-3ababdd1.js.map} +1 -1
  313. package/package-lock.json +1 -1
  314. package/package.json +2 -1
  315. package/sendbirdSelectors.js +2 -2
  316. package/{stringSet-a6858154.js → stringSet-efeb1ad3.js} +1 -1
  317. package/{stringSet-a6858154.js.map → stringSet-efeb1ad3.js.map} +1 -1
  318. package/{topics-58103dff.js → topics-7181983e.js} +1 -1
  319. package/{topics-58103dff.js.map → topics-7181983e.js.map} +1 -1
  320. package/{tslib.es6-28c0bd97.js → tslib.es6-91aa0158.js} +1 -1
  321. package/{tslib.es6-28c0bd97.js.map → tslib.es6-91aa0158.js.map} +1 -1
  322. package/ui/Accordion.js +4 -4
  323. package/ui/AccordionGroup.js +2 -2
  324. package/ui/AdminMessage.js +3 -3
  325. package/ui/Avatar.js +3 -3
  326. package/ui/Badge.js +5 -5
  327. package/ui/Button.js +4 -4
  328. package/ui/ChannelAvatar.js +4 -4
  329. package/ui/ChannelPreview.js +12 -12
  330. package/ui/ChatHeader.js +8 -8
  331. package/ui/Checkbox.js +1 -1
  332. package/ui/ConnectionStatus.js +5 -5
  333. package/ui/ContextMenu.js +5 -5
  334. package/ui/DateSeparator.js +4 -4
  335. package/ui/Dropdown.js +3 -3
  336. package/ui/EmojiReactions.js +7 -7
  337. package/ui/FileMessageItemBody.js +6 -6
  338. package/ui/FileViewer.js +7 -7
  339. package/ui/Icon.js +1 -1
  340. package/ui/IconButton.js +1 -1
  341. package/ui/ImageRenderer.js +1 -1
  342. package/ui/Input.js +3 -3
  343. package/ui/Label.js +3 -3
  344. package/ui/LinkLabel.js +3 -3
  345. package/ui/Loader.js +1 -1
  346. package/ui/MentionLabel.js +14 -13
  347. package/ui/MentionLabel.js.map +1 -1
  348. package/ui/MessageContent.js +14 -14
  349. package/ui/MessageInput.js +10 -10
  350. package/ui/MessageItemMenu.js +7 -7
  351. package/ui/MessageItemReactionMenu.js +5 -5
  352. package/ui/MessageSearchFileItem.js +10 -10
  353. package/ui/MessageSearchItem.js +10 -10
  354. package/ui/MessageStatus.js +8 -8
  355. package/ui/Modal.js +8 -8
  356. package/ui/MutedAvatarOverlay.js +1 -1
  357. package/ui/OGMessageItemBody.js +11 -11
  358. package/ui/OpenChannelAdminMessage.js +4 -4
  359. package/ui/OpenChannelAvatar.js +7 -7
  360. package/ui/OpenchannelConversationHeader.js +7 -7
  361. package/ui/OpenchannelFileMessage.js +15 -15
  362. package/ui/OpenchannelOGMessage.js +15 -15
  363. package/ui/OpenchannelThumbnailMessage.js +14 -14
  364. package/ui/OpenchannelUserMessage.js +15 -15
  365. package/ui/PlaceHolder.js +6 -6
  366. package/ui/QuoteMessage.js +7 -7
  367. package/ui/QuoteMessageInput.js +7 -7
  368. package/ui/ReactionBadge.js +3 -3
  369. package/ui/ReactionButton.js +1 -1
  370. package/ui/SortByRow.js +1 -1
  371. package/ui/TextButton.js +2 -2
  372. package/ui/TextMessageItemBody.js +11 -11
  373. package/ui/ThumbnailMessageItemBody.js +3 -3
  374. package/ui/Tooltip.js +3 -3
  375. package/ui/TooltipWrapper.js +1 -1
  376. package/ui/UnknownMessageItemBody.js +7 -7
  377. package/ui/UserListItem.js +12 -12
  378. package/ui/UserProfile.js +10 -10
  379. package/ui/Word.js +11 -11
  380. package/useSendbirdStateContext.js +1 -1
  381. package/{utils-5477ddbc.js → utils-0db9b91e.js} +1 -1
  382. package/{utils-5477ddbc.js.map → utils-0db9b91e.js.map} +1 -1
  383. package/{utils-e2f16b69.js → utils-6ed4fbb8.js} +1 -1
  384. package/{utils-e2f16b69.js.map → utils-6ed4fbb8.js.map} +1 -1
  385. package/{utils-5fe76946.js → utils-7b9c4aab.js} +1 -1
  386. package/{utils-5fe76946.js.map → utils-7b9c4aab.js.map} +1 -1
  387. package/{uuid-38ace415.js → uuid-902e6498.js} +1 -1
  388. package/{uuid-38ace415.js.map → uuid-902e6498.js.map} +1 -1
  389. package/withSendbird.js +1 -1
  390. package/ChannelListProvider-471abb8f.js.map +0 -1
  391. package/ChannelProvider-01a680e0.js.map +0 -1
  392. package/MemberList-9863866e.js.map +0 -1
  393. package/__bundle-7dfccc8c-62bd23b5.js +0 -24
  394. package/__bundle-7dfccc8c-62bd23b5.js.map +0 -1
  395. package/cjs/ChannelListProvider-8632f526.js.map +0 -1
  396. package/cjs/ChannelProvider-5e683eb1.js.map +0 -1
  397. package/cjs/MemberList-4efb8994.js.map +0 -1
  398. package/cjs/__bundle-7dfccc8c-d812ccd2.js +0 -151
  399. package/cjs/__bundle-7dfccc8c-d812ccd2.js.map +0 -1
  400. package/cjs/openChannel-7272b85b.js +0 -13
  401. package/cjs/openChannel-7272b85b.js.map +0 -1
  402. package/openChannel-a5d4b5d4.js +0 -8
  403. package/openChannel-a5d4b5d4.js.map +0 -1
@@ -1,22 +1,22 @@
1
1
  import React__default from 'react';
2
2
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
3
3
  import { useChannelSettingsContext } from '../context.js';
4
- import { n as noop } from '../../utils-5477ddbc.js';
4
+ import { n as noop } from '../../utils-0db9b91e.js';
5
5
  import Modal from '../../ui/Modal.js';
6
6
  import '../../withSendbird.js';
7
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
8
- import '../../UserProfileContext-eccdbd50.js';
7
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
8
+ import '../../UserProfileContext-97bec8f7.js';
9
9
  import 'prop-types';
10
- import '../../uuid-38ace415.js';
10
+ import '../../uuid-902e6498.js';
11
11
  import 'react-dom';
12
- import '../../LocalizationContext-7f115178.js';
13
- import '../../stringSet-a6858154.js';
14
- import '../../index-9570e69e.js';
15
- import '../../index-201c73a9.js';
12
+ import '../../LocalizationContext-08cebf79.js';
13
+ import '../../stringSet-efeb1ad3.js';
14
+ import '../../index-623fd405.js';
15
+ import '../../index-8528dcd1.js';
16
16
  import '../../ui/IconButton.js';
17
17
  import '../../ui/Icon.js';
18
- import '../../index-33a103e9.js';
19
- import '../../index-eeac3879.js';
18
+ import '../../index-cdd2789a.js';
19
+ import '../../index-0d4dcc94.js';
20
20
 
21
21
  var LeaveChannel = function LeaveChannel(props) {
22
22
  var _a, _b, _c;
@@ -1,39 +1,39 @@
1
1
  import React__default, { useState, useEffect, useContext, useCallback } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-7f115178.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
3
3
  import Accordion, { AccordionGroup } from '../../ui/Accordion.js';
4
- import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-eeac3879.js';
4
+ import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-0d4dcc94.js';
5
5
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
6
6
  import Badge from '../../ui/Badge.js';
7
- import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-33a103e9.js';
7
+ import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-cdd2789a.js';
8
8
  import IconButton from '../../ui/IconButton.js';
9
9
  import ContextMenu, { MenuItems, MenuItem } from '../../ui/ContextMenu.js';
10
10
  import UserListItem$1 from './UserListItem.js';
11
- import { a as __spreadArray, _ as __assign } from '../../tslib.es6-28c0bd97.js';
11
+ import { a as __spreadArray, _ as __assign } from '../../tslib.es6-91aa0158.js';
12
12
  import Modal from '../../ui/Modal.js';
13
13
  import UserListItem from '../../ui/UserListItem.js';
14
14
  import { useChannelSettingsContext } from '../context.js';
15
15
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
16
- import { M as MemberList } from '../../MemberList-9863866e.js';
17
- import { n as noop } from '../../utils-5477ddbc.js';
18
- import '../../stringSet-a6858154.js';
19
- import '../../index-9570e69e.js';
16
+ import { M as MemberList } from '../../MemberList-29cf5f98.js';
17
+ import { n as noop } from '../../utils-0db9b91e.js';
18
+ import '../../stringSet-efeb1ad3.js';
19
+ import '../../index-623fd405.js';
20
20
  import '../../ui/AccordionGroup.js';
21
- import '../../context-5db053f0.js';
22
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
21
+ import '../../context-d04e2502.js';
22
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
23
23
  import 'prop-types';
24
- import '../../index-a355e1d8.js';
24
+ import '../../index-afd61eff.js';
25
25
  import 'react-dom';
26
26
  import '../../ui/SortByRow.js';
27
- import '../../UserProfileContext-eccdbd50.js';
27
+ import '../../UserProfileContext-97bec8f7.js';
28
28
  import '../../ui/Avatar.js';
29
29
  import '../../ui/ImageRenderer.js';
30
- import '../../uuid-38ace415.js';
30
+ import '../../uuid-902e6498.js';
31
31
  import '../../ui/MutedAvatarOverlay.js';
32
32
  import '../../ui/UserProfile.js';
33
33
  import '../../withSendbird.js';
34
34
  import '../../sendbirdSelectors.js';
35
- import '../../topics-58103dff.js';
36
- import '../../index-201c73a9.js';
35
+ import '../../topics-7181983e.js';
36
+ import '../../index-8528dcd1.js';
37
37
  import '../../ui/Checkbox.js';
38
38
 
39
39
  function OperatorsModal(_a) {
@@ -1,25 +1,25 @@
1
- import { a as __spreadArray } from '../../tslib.es6-28c0bd97.js';
1
+ import { a as __spreadArray } from '../../tslib.es6-91aa0158.js';
2
2
  import React__default, { useRef, useContext } from 'react';
3
- import { a as LocalizationContext } from '../../LocalizationContext-7f115178.js';
4
- import { a as UserProfileContext } from '../../UserProfileContext-eccdbd50.js';
3
+ import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
4
+ import { a as UserProfileContext } from '../../UserProfileContext-97bec8f7.js';
5
5
  import Avatar from '../../ui/Avatar.js';
6
6
  import MutedAvatarOverlay from '../../ui/MutedAvatarOverlay.js';
7
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-eeac3879.js';
7
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
8
8
  import ConnectedUserProfile from '../../ui/UserProfile.js';
9
9
  import ContextMenu, { MenuItems } from '../../ui/ContextMenu.js';
10
- import '../../stringSet-a6858154.js';
11
- import '../../index-9570e69e.js';
10
+ import '../../stringSet-efeb1ad3.js';
11
+ import '../../index-623fd405.js';
12
12
  import 'prop-types';
13
13
  import '../../ui/ImageRenderer.js';
14
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
14
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
15
15
  import '../../ui/Icon.js';
16
- import '../../uuid-38ace415.js';
16
+ import '../../uuid-902e6498.js';
17
17
  import '../../withSendbird.js';
18
18
  import '../../sendbirdSelectors.js';
19
- import '../../topics-58103dff.js';
20
- import '../../utils-5477ddbc.js';
21
- import '../../index-33a103e9.js';
22
- import '../../index-a355e1d8.js';
19
+ import '../../topics-7181983e.js';
20
+ import '../../utils-0db9b91e.js';
21
+ import '../../index-cdd2789a.js';
22
+ import '../../index-afd61eff.js';
23
23
  import 'react-dom';
24
24
  import '../../ui/SortByRow.js';
25
25
 
@@ -1,34 +1,34 @@
1
1
  import React__default, { useContext, useState } from 'react';
2
- import { a as LocalizationContext } from '../../LocalizationContext-7f115178.js';
3
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-eeac3879.js';
2
+ import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
3
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
4
4
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
5
5
  import Badge from '../../ui/Badge.js';
6
- import { M as MemberList } from '../../MemberList-9863866e.js';
6
+ import { M as MemberList } from '../../MemberList-29cf5f98.js';
7
7
  import { useChannelSettingsContext } from '../context.js';
8
- import '../../stringSet-a6858154.js';
9
- import '../../index-9570e69e.js';
10
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
8
+ import '../../stringSet-efeb1ad3.js';
9
+ import '../../index-623fd405.js';
10
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
11
11
  import 'prop-types';
12
- import '../../index-33a103e9.js';
12
+ import '../../index-cdd2789a.js';
13
13
  import '../../ui/IconButton.js';
14
14
  import '../../ui/ContextMenu.js';
15
- import '../../index-a355e1d8.js';
16
- import '../../tslib.es6-28c0bd97.js';
15
+ import '../../index-afd61eff.js';
16
+ import '../../tslib.es6-91aa0158.js';
17
17
  import 'react-dom';
18
18
  import '../../ui/SortByRow.js';
19
19
  import './UserListItem.js';
20
- import '../../UserProfileContext-eccdbd50.js';
20
+ import '../../UserProfileContext-97bec8f7.js';
21
21
  import '../../ui/Avatar.js';
22
22
  import '../../ui/ImageRenderer.js';
23
- import '../../uuid-38ace415.js';
23
+ import '../../uuid-902e6498.js';
24
24
  import '../../ui/MutedAvatarOverlay.js';
25
25
  import '../../ui/UserProfile.js';
26
26
  import '../../withSendbird.js';
27
27
  import '../../sendbirdSelectors.js';
28
- import '../../topics-58103dff.js';
29
- import '../../utils-5477ddbc.js';
28
+ import '../../topics-7181983e.js';
29
+ import '../../utils-0db9b91e.js';
30
30
  import '../../ui/Modal.js';
31
- import '../../index-201c73a9.js';
31
+ import '../../index-8528dcd1.js';
32
32
  import '../../ui/UserListItem.js';
33
33
  import '../../ui/Checkbox.js';
34
34
  import '../../useSendbirdStateContext.js';
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import useSendbirdStateContext from '../useSendbirdStateContext.js';
3
- import { U as UserProfileProvider } from '../UserProfileContext-eccdbd50.js';
4
- import { u as uuidv4 } from '../uuid-38ace415.js';
3
+ import { U as UserProfileProvider } from '../UserProfileContext-97bec8f7.js';
4
+ import { u as uuidv4 } from '../uuid-902e6498.js';
5
5
  import '../withSendbird.js';
6
- import '../_rollupPluginBabelHelpers-2a8797d8.js';
6
+ import '../_rollupPluginBabelHelpers-9a08c8bf.js';
7
7
  import 'prop-types';
8
8
 
9
9
  var ChannelSettingsContext = /*#__PURE__*/React__default.createContext(undefined);
@@ -3,49 +3,49 @@ import ChannelSettingsUI from './ChannelSettings/components/ChannelSettingsUI.js
3
3
  import { ChannelSettingsProvider } from './ChannelSettings/context.js';
4
4
  import './useSendbirdStateContext.js';
5
5
  import './withSendbird.js';
6
- import './_rollupPluginBabelHelpers-2a8797d8.js';
7
- import './index-04458193.js';
6
+ import './_rollupPluginBabelHelpers-9a08c8bf.js';
7
+ import './index-41a3e405.js';
8
8
  import 'prop-types';
9
9
  import './ui/Icon.js';
10
10
  import './ui/Loader.js';
11
- import './LocalizationContext-7f115178.js';
12
- import './stringSet-a6858154.js';
13
- import './index-9570e69e.js';
14
- import './index-eeac3879.js';
11
+ import './LocalizationContext-08cebf79.js';
12
+ import './stringSet-efeb1ad3.js';
13
+ import './index-623fd405.js';
14
+ import './index-0d4dcc94.js';
15
15
  import './ui/IconButton.js';
16
16
  import './ChannelSettings/components/ChannelProfile.js';
17
17
  import './ui/ChannelAvatar.js';
18
18
  import './ui/Avatar.js';
19
- import './tslib.es6-28c0bd97.js';
19
+ import './tslib.es6-91aa0158.js';
20
20
  import './ui/ImageRenderer.js';
21
- import './uuid-38ace415.js';
22
- import './utils-5fe76946.js';
21
+ import './uuid-902e6498.js';
22
+ import './utils-7b9c4aab.js';
23
23
  import './ui/TextButton.js';
24
- import './color-1727a3fb.js';
24
+ import './color-aef1bef8.js';
25
25
  import './ChannelSettings/components/EditDetailsModal.js';
26
26
  import './ui/Modal.js';
27
27
  import 'react-dom';
28
- import './index-201c73a9.js';
29
- import './index-33a103e9.js';
30
- import './utils-5477ddbc.js';
28
+ import './index-8528dcd1.js';
29
+ import './index-cdd2789a.js';
30
+ import './utils-0db9b91e.js';
31
31
  import './ui/Input.js';
32
32
  import './ChannelSettings/components/ModerationPanel.js';
33
33
  import './ui/Accordion.js';
34
34
  import './ui/AccordionGroup.js';
35
- import './context-5db053f0.js';
35
+ import './context-d04e2502.js';
36
36
  import './ui/Badge.js';
37
37
  import './ui/ContextMenu.js';
38
- import './index-a355e1d8.js';
38
+ import './index-afd61eff.js';
39
39
  import './ui/SortByRow.js';
40
40
  import './ChannelSettings/components/UserListItem.js';
41
- import './UserProfileContext-eccdbd50.js';
41
+ import './UserProfileContext-97bec8f7.js';
42
42
  import './ui/MutedAvatarOverlay.js';
43
43
  import './ui/UserProfile.js';
44
44
  import './sendbirdSelectors.js';
45
- import './topics-58103dff.js';
45
+ import './topics-7181983e.js';
46
46
  import './ui/UserListItem.js';
47
47
  import './ui/Checkbox.js';
48
- import './MemberList-9863866e.js';
48
+ import './MemberList-29cf5f98.js';
49
49
  import './ChannelSettings/components/LeaveChannel.js';
50
50
  import './ChannelSettings/components/UserPanel.js';
51
51
 
@@ -1,35 +1,35 @@
1
1
  import React__default from 'react';
2
- import { u as useCreateChannelContext } from '../../CreateChannelProvider-efa959ed.js';
2
+ import { u as useCreateChannelContext } from '../../CreateChannelProvider-53259d87.js';
3
3
  import InviteUsers from './InviteUsers.js';
4
4
  import SelectChannelType from './SelectChannelType.js';
5
5
  import '../../sendbirdSelectors.js';
6
- import '../../topics-58103dff.js';
7
- import '../../utils-5477ddbc.js';
6
+ import '../../topics-7181983e.js';
7
+ import '../../utils-0db9b91e.js';
8
8
  import '../../useSendbirdStateContext.js';
9
9
  import '../../withSendbird.js';
10
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
11
- import '../../tslib.es6-28c0bd97.js';
12
- import '../../LocalizationContext-7f115178.js';
13
- import '../../stringSet-a6858154.js';
14
- import '../../index-9570e69e.js';
10
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
11
+ import '../../tslib.es6-91aa0158.js';
12
+ import '../../LocalizationContext-08cebf79.js';
13
+ import '../../stringSet-efeb1ad3.js';
14
+ import '../../index-623fd405.js';
15
15
  import '../../ui/Modal.js';
16
16
  import 'prop-types';
17
17
  import 'react-dom';
18
- import '../../index-201c73a9.js';
18
+ import '../../index-8528dcd1.js';
19
19
  import '../../ui/IconButton.js';
20
20
  import '../../ui/Icon.js';
21
- import '../../index-33a103e9.js';
22
- import '../../index-eeac3879.js';
21
+ import '../../index-cdd2789a.js';
22
+ import '../../index-0d4dcc94.js';
23
23
  import '../../ui/UserListItem.js';
24
- import '../../UserProfileContext-eccdbd50.js';
24
+ import '../../UserProfileContext-97bec8f7.js';
25
25
  import '../../ui/Avatar.js';
26
26
  import '../../ui/ImageRenderer.js';
27
- import '../../uuid-38ace415.js';
27
+ import '../../uuid-902e6498.js';
28
28
  import '../../ui/MutedAvatarOverlay.js';
29
29
  import '../../ui/Checkbox.js';
30
30
  import '../../ui/UserProfile.js';
31
31
  import '../../ui/ContextMenu.js';
32
- import '../../index-a355e1d8.js';
32
+ import '../../index-afd61eff.js';
33
33
  import '../../ui/SortByRow.js';
34
34
 
35
35
  var CreateChannel = function CreateChannel(props) {
@@ -1,33 +1,33 @@
1
- import { a as __spreadArray, _ as __assign } from '../../tslib.es6-28c0bd97.js';
1
+ import { a as __spreadArray, _ as __assign } from '../../tslib.es6-91aa0158.js';
2
2
  import React__default, { useState, useContext, useEffect } from 'react';
3
- import { a as LocalizationContext } from '../../LocalizationContext-7f115178.js';
4
- import { u as useCreateChannelContext } from '../../CreateChannelProvider-efa959ed.js';
3
+ import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
4
+ import { u as useCreateChannelContext } from '../../CreateChannelProvider-53259d87.js';
5
5
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
6
6
  import Modal from '../../ui/Modal.js';
7
- import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-eeac3879.js';
8
- import { a as ButtonTypes } from '../../index-33a103e9.js';
7
+ import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-0d4dcc94.js';
8
+ import { a as ButtonTypes } from '../../index-cdd2789a.js';
9
9
  import UserListItem from '../../ui/UserListItem.js';
10
- import '../../stringSet-a6858154.js';
11
- import '../../index-9570e69e.js';
10
+ import '../../stringSet-efeb1ad3.js';
11
+ import '../../index-623fd405.js';
12
12
  import '../../sendbirdSelectors.js';
13
- import '../../topics-58103dff.js';
14
- import '../../utils-5477ddbc.js';
13
+ import '../../topics-7181983e.js';
14
+ import '../../utils-0db9b91e.js';
15
15
  import '../../withSendbird.js';
16
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
16
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
17
17
  import 'prop-types';
18
18
  import 'react-dom';
19
- import '../../index-201c73a9.js';
19
+ import '../../index-8528dcd1.js';
20
20
  import '../../ui/IconButton.js';
21
21
  import '../../ui/Icon.js';
22
- import '../../UserProfileContext-eccdbd50.js';
22
+ import '../../UserProfileContext-97bec8f7.js';
23
23
  import '../../ui/Avatar.js';
24
24
  import '../../ui/ImageRenderer.js';
25
- import '../../uuid-38ace415.js';
25
+ import '../../uuid-902e6498.js';
26
26
  import '../../ui/MutedAvatarOverlay.js';
27
27
  import '../../ui/Checkbox.js';
28
28
  import '../../ui/UserProfile.js';
29
29
  import '../../ui/ContextMenu.js';
30
- import '../../index-a355e1d8.js';
30
+ import '../../index-afd61eff.js';
31
31
  import '../../ui/SortByRow.js';
32
32
 
33
33
  var filterUser = function filterUser(idsToFilter) {
@@ -51,15 +51,18 @@ var setChannelType = function setChannelType(params, type) {
51
51
  var createDefaultUserListQuery = function createDefaultUserListQuery(_a) {
52
52
  var sdk = _a.sdk,
53
53
  userFilledApplicationUserListQuery = _a.userFilledApplicationUserListQuery;
54
- var params = sdk.createApplicationUserListQuery();
55
54
 
56
- if (userFilledApplicationUserListQuery) {
57
- Object.keys(userFilledApplicationUserListQuery).forEach(function (key) {
58
- params[key] = userFilledApplicationUserListQuery[key];
59
- });
60
- }
55
+ if (sdk === null || sdk === void 0 ? void 0 : sdk.createApplicationUserListQuery) {
56
+ var params_1 = sdk === null || sdk === void 0 ? void 0 : sdk.createApplicationUserListQuery();
61
57
 
62
- return params;
58
+ if (userFilledApplicationUserListQuery) {
59
+ Object.keys(userFilledApplicationUserListQuery).forEach(function (key) {
60
+ params_1[key] = userFilledApplicationUserListQuery[key];
61
+ });
62
+ }
63
+
64
+ return params_1;
65
+ }
63
66
  };
64
67
 
65
68
  var InviteUsers = function InviteUsers(_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"InviteUsers.js","sources":["../../../src/smart-components/CreateChannel/components/InviteUsers/utils.ts","../../../src/smart-components/CreateChannel/components/InviteUsers/index.tsx"],"sourcesContent":["import type { ApplicationUserListQuery } from \"@sendbird/chat\";\nimport type { GroupChannelCreateParams, SendbirdGroupChat } from \"@sendbird/chat/groupChannel\";\nimport { CHANNEL_TYPE } from \"../../types\";\n\nexport const filterUser = (idsToFilter: string[]) => (currentId: string): boolean => idsToFilter?.includes(currentId);\n\nexport const setChannelType = (\n params: GroupChannelCreateParams,\n type: CHANNEL_TYPE,\n): GroupChannelCreateParams => {\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\ntype CreateDefaultUserListQueryType = {\n sdk: SendbirdGroupChat;\n userFilledApplicationUserListQuery?: ApplicationUserListQuery;\n}\n\nexport const createDefaultUserListQuery = (\n { sdk, userFilledApplicationUserListQuery }: CreateDefaultUserListQueryType\n): ApplicationUserListQuery => {\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","import React, { useState, useEffect, useContext } from 'react';\nimport type { ApplicationUserListQuery } from '@sendbird/chat';\n\nimport './invite-users.scss';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport { useCreateChannelContext } from '../../context/CreateChannelProvider';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport type { GroupChannelCreateParams, SendbirdGroupChat } from '@sendbird/chat/groupChannel';\n\nimport Modal from '../../../../ui/Modal';\nimport Label, {\n LabelColors,\n LabelTypography,\n} from '../../../../ui/Label';\nimport { ButtonTypes } from '../../../../ui/Button';\nimport UserListItem from '../../../../ui/UserListItem';\nimport { UserListQuery } from '../../context/CreateChannelProvider';\n\nimport {\n filterUser,\n setChannelType,\n createDefaultUserListQuery,\n} from './utils';\n\nexport interface InviteUsersProps {\n onCancel?: () => void;\n userListQuery?(): UserListQuery;\n}\n\nconst InviteUsers: React.FC<InviteUsersProps> = ({\n onCancel,\n userListQuery,\n}: InviteUsersProps) => {\n const {\n onBeforeCreateChannel,\n onCreateChannel,\n createChannel,\n type,\n } = useCreateChannelContext();\n\n const globalStore = useSendbirdStateContext();\n const userId = globalStore?.config?.userId;\n const sdk = globalStore?.stores?.sdkStore?.sdk as SendbirdGroupChat;\n const idsToFilter = [userId];\n const [users, setUsers] = useState([]);\n const [selectedUsers, setSelectedUsers] = useState({});\n const { stringSet } = useContext(LocalizationContext);\n const [usersDataSource, setUsersDataSource] = useState<ApplicationUserListQuery | UserListQuery>(null);\n const selectedCount = Object.keys(selectedUsers).length;\n const titleText = stringSet.MODAL__CREATE_CHANNEL__TITLE;\n const submitText = stringSet.BUTTON__CREATE;\n\n const userQueryCreator = userListQuery ? userListQuery() : createDefaultUserListQuery({ sdk });\n\n useEffect(() => {\n const applicationUserListQuery = userQueryCreator;\n setUsersDataSource(applicationUserListQuery);\n applicationUserListQuery.next().then((users_) => {\n setUsers(users_);\n });\n }, []);\n\n return (\n <Modal\n titleText={titleText}\n submitText={submitText}\n type={ButtonTypes.PRIMARY}\n onCancel={onCancel}\n onSubmit={() => {\n const selectedUserList = Object.keys(selectedUsers);\n if (selectedUserList.length > 0) {\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUserList);\n setChannelType(params, type);\n createChannel(params).then((channel) => {\n onCreateChannel(channel);\n });\n } else {\n const params: GroupChannelCreateParams = {};\n params.invitedUserIds = selectedUserList;\n params.isDistinct = false;\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n createChannel(params).then((channel) => {\n onCreateChannel(channel);\n });\n }\n onCancel();\n }\n }}\n >\n <div>\n <Label\n color={(selectedCount > 0) ? LabelColors.PRIMARY : LabelColors.ONBACKGROUND_3}\n type={LabelTypography.CAPTION_1}\n >\n {`${selectedCount} ${stringSet.MODAL__INVITE_MEMBER__SELECTEC}`}\n </Label>\n <div\n className=\"sendbird-create-channel--scroll\"\n onScroll={(e) => {\n const eventTarget = e.target as HTMLDivElement;\n const { hasNext } = usersDataSource;\n const fetchMore = (\n eventTarget.clientHeight + eventTarget.scrollTop === eventTarget.scrollHeight\n );\n\n if (hasNext && fetchMore) {\n usersDataSource.next().then((usersBatch) => {\n setUsers([\n ...users,\n ...usersBatch,\n ]);\n });\n }\n }}\n >\n {\n users.map((user) => (!filterUser(idsToFilter)(user.userId)) && (\n <UserListItem\n key={user.userId}\n user={user}\n checkBox\n checked={selectedUsers[user.userId]}\n onChange={\n (event) => {\n const modifiedSelectedUsers = {\n ...selectedUsers,\n [event.target.id]: event.target.checked,\n };\n if (!event.target.checked) {\n delete modifiedSelectedUsers[event.target.id];\n }\n setSelectedUsers(modifiedSelectedUsers);\n }\n }\n />\n ))\n }\n </div>\n </div>\n </Modal>\n );\n};\n\nexport default InviteUsers;\n"],"names":["filterUser","idsToFilter","currentId","includes","setChannelType","params","type","isBroadcast","isSuper","createDefaultUserListQuery","_a","sdk","userFilledApplicationUserListQuery","createApplicationUserListQuery","Object","keys","forEach","key","InviteUsers","onCancel","userListQuery","_e","useCreateChannelContext","onBeforeCreateChannel","onCreateChannel","createChannel","globalStore","useSendbirdStateContext","userId","config","stores","sdkStore","_f","useState","users","setUsers","_g","selectedUsers","setSelectedUsers","stringSet","useContext","LocalizationContext","_h","usersDataSource","setUsersDataSource","selectedCount","length","titleText","MODAL__CREATE_CHANNEL__TITLE","submitText","BUTTON__CREATE","userQueryCreator","useEffect","applicationUserListQuery","next","then","users_","React","ButtonTypes","PRIMARY","selectedUserList","channel","invitedUserIds","isDistinct","operatorUserIds","LabelColors","ONBACKGROUND_3","LabelTypography","CAPTION_1","MODAL__INVITE_MEMBER__SELECTEC","e","eventTarget","target","hasNext","fetchMore","clientHe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BD,CApBJ,CAPF,CA/BF,CADF;AAoFD;;;;"}
1
+ {"version":3,"file":"InviteUsers.js","sources":["../../../src/smart-components/CreateChannel/components/InviteUsers/utils.ts","../../../src/smart-components/CreateChannel/components/InviteUsers/index.tsx"],"sourcesContent":["import type { ApplicationUserListQuery } from \"@sendbird/chat\";\nimport type { GroupChannelCreateParams, SendbirdGroupChat } from \"@sendbird/chat/groupChannel\";\nimport { CHANNEL_TYPE } from \"../../types\";\n\nexport const filterUser = (idsToFilter: string[]) => (currentId: string): boolean => idsToFilter?.includes(currentId);\n\nexport const setChannelType = (\n params: GroupChannelCreateParams,\n type: CHANNEL_TYPE,\n): GroupChannelCreateParams => {\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\ntype CreateDefaultUserListQueryType = {\n sdk: SendbirdGroupChat;\n userFilledApplicationUserListQuery?: ApplicationUserListQuery;\n}\n\nexport const createDefaultUserListQuery = (\n { sdk, userFilledApplicationUserListQuery }: CreateDefaultUserListQueryType\n): ApplicationUserListQuery => {\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};\n","import React, { useState, useEffect, useContext } from 'react';\nimport type { ApplicationUserListQuery } from '@sendbird/chat';\n\nimport './invite-users.scss';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport { useCreateChannelContext } from '../../context/CreateChannelProvider';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport type { GroupChannelCreateParams, SendbirdGroupChat } from '@sendbird/chat/groupChannel';\n\nimport Modal from '../../../../ui/Modal';\nimport Label, {\n LabelColors,\n LabelTypography,\n} from '../../../../ui/Label';\nimport { ButtonTypes } from '../../../../ui/Button';\nimport UserListItem from '../../../../ui/UserListItem';\nimport { UserListQuery } from '../../context/CreateChannelProvider';\n\nimport {\n filterUser,\n setChannelType,\n createDefaultUserListQuery,\n} from './utils';\n\nexport interface InviteUsersProps {\n onCancel?: () => void;\n userListQuery?(): UserListQuery;\n}\n\nconst InviteUsers: React.FC<InviteUsersProps> = ({\n onCancel,\n userListQuery,\n}: InviteUsersProps) => {\n const {\n onBeforeCreateChannel,\n onCreateChannel,\n createChannel,\n type,\n } = useCreateChannelContext();\n\n const globalStore = useSendbirdStateContext();\n const userId = globalStore?.config?.userId;\n const sdk = globalStore?.stores?.sdkStore?.sdk as SendbirdGroupChat;\n const idsToFilter = [userId];\n const [users, setUsers] = useState([]);\n const [selectedUsers, setSelectedUsers] = useState({});\n const { stringSet } = useContext(LocalizationContext);\n const [usersDataSource, setUsersDataSource] = useState<ApplicationUserListQuery | UserListQuery>(null);\n const selectedCount = Object.keys(selectedUsers).length;\n const titleText = stringSet.MODAL__CREATE_CHANNEL__TITLE;\n const submitText = stringSet.BUTTON__CREATE;\n\n const userQueryCreator = userListQuery ? userListQuery() : createDefaultUserListQuery({ sdk });\n\n useEffect(() => {\n const applicationUserListQuery = userQueryCreator;\n setUsersDataSource(applicationUserListQuery);\n applicationUserListQuery.next().then((users_) => {\n setUsers(users_);\n });\n }, []);\n\n return (\n <Modal\n titleText={titleText}\n submitText={submitText}\n type={ButtonTypes.PRIMARY}\n onCancel={onCancel}\n onSubmit={() => {\n const selectedUserList = Object.keys(selectedUsers);\n if (selectedUserList.length > 0) {\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUserList);\n setChannelType(params, type);\n createChannel(params).then((channel) => {\n onCreateChannel(channel);\n });\n } else {\n const params: GroupChannelCreateParams = {};\n params.invitedUserIds = selectedUserList;\n params.isDistinct = false;\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n createChannel(params).then((channel) => {\n onCreateChannel(channel);\n });\n }\n onCancel();\n }\n }}\n >\n <div>\n <Label\n color={(selectedCount > 0) ? LabelColors.PRIMARY : LabelColors.ONBACKGROUND_3}\n type={LabelTypography.CAPTION_1}\n >\n {`${selectedCount} ${stringSet.MODAL__INVITE_MEMBER__SELECTEC}`}\n </Label>\n <div\n className=\"sendbird-create-channel--scroll\"\n onScroll={(e) => {\n const eventTarget = e.target as HTMLDivElement;\n const { hasNext } = usersDataSource;\n const fetchMore = (\n eventTarget.clientHeight + eventTarget.scrollTop === eventTarget.scrollHeight\n );\n\n if (hasNext && fetchMore) {\n usersDataSource.next().then((usersBatch) => {\n setUsers([\n ...users,\n ...usersBatch,\n ]);\n });\n }\n }}\n >\n {\n users.map((user) => (!filterUser(idsToFilter)(user.userId)) && (\n <UserListItem\n key={user.userId}\n user={user}\n checkBox\n checked={selectedUsers[user.userId]}\n onChange={\n (event) => {\n const modifiedSelectedUsers = {\n ...selectedUsers,\n [event.target.id]: event.target.checked,\n };\n if (!event.target.checked) {\n delete modifiedSelectedUsers[event.target.id];\n }\n setSelectedUsers(modifiedSelectedUsers);\n }\n }\n />\n ))\n }\n </div>\n </div>\n </Modal>\n );\n};\n\nexport default InviteUsers;\n"],"names":["filterUser","idsToFilter","currentId","includes","setChannelType","params","type","isBroadcast","isSuper","createDefaultUserListQuery","_a","sdk","userFilledApplicationUserListQuery","createApplicationUserListQuery","params_1","Object","keys","forEach","key","InviteUsers","onCancel","userListQuery","_e","useCreateChannelContext","onBeforeCreateChannel","onCreateChannel","createChannel","globalStore","useSendbirdStateContext","userId","config","stores","sdkStore","_f","useState","users","setUsers","_g","selectedUsers","setSelectedUsers","stringSet","useContext","LocalizationContext","_h","usersDataSource","setUsersDataSource","selectedCount","length","titleText","MODAL__CREATE_CHANNEL__TITLE","submitText","BUTTON__CREATE","userQueryCreator","useEffect","applicationUserListQuery","next","then","users_","React","ButtonTypes","PRIMARY","selectedUserList","channel","invitedUserIds","isDistinct","operatorUserIds","LabelColors","ONBACKGROUND_3","LabelTypography","CAPTION_1","MODAL__INVITE_MEMBER__SELECTEC","e","eventTarget","target","hasNext","fetchMore","clientHeight","scrollTop","scrollHeight","usersBatch","map","user","event","modifiedSelectedUsers","id","checked"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,WAAD;AAA2B,SAAA,UAACC,SAAD;AAAgC,WAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,SAAA,GAAAA,WAAW,CAAEE,QAAb,CAAsBD,SAAtB,CAAA;AAAgC,GAAhE;AAAgE,CAA9G;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAC5BC,MAD4B,EAE5BC,IAF4B;AAI5B,MAAIA,IAAI,KAAK,WAAb,EAA0B;AACxB;AACAD,IAAAA,MAAM,CAACE,WAAP,GAAqB,IAArB;AACD;;AACD,MAAID,IAAI,KAAK,YAAb,EAA2B;AACzB;AACAD,IAAAA,MAAM,CAACG,OAAP,GAAiB,IAAjB;AACD;;AACD,SAAOH,MAAP;AACD,CAbM;AAoBA,IAAMI,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,EADwC;MACtCC,GAAG;MAAEC,kCAAkC;;AAEzC,MAAID,GAAG,SAAH,IAAAA,GAAG,WAAH,SAAA,GAAAA,GAAG,CAAEE,8BAAT,EAAyC;AACvC,QAAMC,QAAM,GAAGH,GAAG,SAAH,IAAAA,GAAG,WAAH,SAAA,GAAAA,GAAG,CAAEE,8BAAL,EAAf;;AACA,QAAID,kCAAJ,EAAwC;AACtCG,MAAAA,MAAM,CAACC,IAAP,CAAYJ,kCAAZ,EAAgDK,OAAhD,CAAwD,UAACC,GAAD;AACtDJ,QAAAA,QAAM,CAACI,GAAD,CAAN,GAAcN,kCAAkC,CAACM,GAAD,CAAhD;AACD,OAFD;AAGD;;AACD,WAAOJ,QAAP;AACD;AACF,CAZM;;ICGDK,WAAW,GAA+B,SAA1CA,WAA0C,CAACT,EAAD;;;MA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AFlC;;AAIA,YAAI,CAACH,KAAK,CAACT,MAAN,CAAaY,OAAlB,EAA2B;AACzB,iBAAOF,qBAAqB,CAACD,KAAK,CAACT,MAAN,CAAaW,EAAd,CAA5B;AACD;;AACD7C,QAAAA,gBAAgB,CAAC4C,qBAAD,CAAhB;AACD;AAfL,MADkB;AAmBnB,GAnBD,CApBJ,CAPF,CA/BF,CADF;AAoFD;;;;"}
@@ -1,22 +1,22 @@
1
1
  import React__default, { useContext } from 'react';
2
2
  import { getSdk } from '../../sendbirdSelectors.js';
3
3
  import useSendbirdStateContext from '../../useSendbirdStateContext.js';
4
- import { u as useCreateChannelContext, a as CHANNEL_TYPE } from '../../CreateChannelProvider-efa959ed.js';
5
- import { a as LocalizationContext } from '../../LocalizationContext-7f115178.js';
6
- import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-eeac3879.js';
4
+ import { u as useCreateChannelContext, a as CHANNEL_TYPE } from '../../CreateChannelProvider-53259d87.js';
5
+ import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
6
+ import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
7
7
  import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
8
8
  import Modal from '../../ui/Modal.js';
9
- import '../../topics-58103dff.js';
10
- import '../../utils-5477ddbc.js';
9
+ import '../../topics-7181983e.js';
10
+ import '../../utils-0db9b91e.js';
11
11
  import '../../withSendbird.js';
12
- import '../../_rollupPluginBabelHelpers-2a8797d8.js';
13
- import '../../stringSet-a6858154.js';
14
- import '../../index-9570e69e.js';
12
+ import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
13
+ import '../../stringSet-efeb1ad3.js';
14
+ import '../../index-623fd405.js';
15
15
  import 'prop-types';
16
16
  import 'react-dom';
17
- import '../../index-201c73a9.js';
17
+ import '../../index-8528dcd1.js';
18
18
  import '../../ui/IconButton.js';
19
- import '../../index-33a103e9.js';
19
+ import '../../index-cdd2789a.js';
20
20
 
21
21
  var isBroadcastChannelEnabled = function isBroadcastChannelEnabled(sdk) {
22
22
  var _a;
@@ -1,9 +1,9 @@
1
1
  import 'react';
2
2
  import '../sendbirdSelectors.js';
3
3
  import '../useSendbirdStateContext.js';
4
- export { C as CreateChannelProvider, u as useCreateChannelContext } from '../CreateChannelProvider-efa959ed.js';
5
- import '../topics-58103dff.js';
6
- import '../utils-5477ddbc.js';
4
+ export { C as CreateChannelProvider, u as useCreateChannelContext } from '../CreateChannelProvider-53259d87.js';
5
+ import '../topics-7181983e.js';
6
+ import '../utils-0db9b91e.js';
7
7
  import '../withSendbird.js';
8
- import '../_rollupPluginBabelHelpers-2a8797d8.js';
8
+ import '../_rollupPluginBabelHelpers-9a08c8bf.js';
9
9
  //# sourceMappingURL=context.js.map
package/CreateChannel.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import React__default from 'react';
2
2
  import CreateChannel$1 from './CreateChannel/components/CreateChannelUI.js';
3
- import { C as CreateChannelProvider } from './CreateChannelProvider-efa959ed.js';
3
+ import { C as CreateChannelProvider } from './CreateChannelProvider-53259d87.js';
4
4
  import './CreateChannel/components/InviteUsers.js';
5
- import './tslib.es6-28c0bd97.js';
6
- import './LocalizationContext-7f115178.js';
7
- import './stringSet-a6858154.js';
8
- import './index-9570e69e.js';
5
+ import './tslib.es6-91aa0158.js';
6
+ import './LocalizationContext-08cebf79.js';
7
+ import './stringSet-efeb1ad3.js';
8
+ import './index-623fd405.js';
9
9
  import './useSendbirdStateContext.js';
10
10
  import './withSendbird.js';
11
- import './_rollupPluginBabelHelpers-2a8797d8.js';
11
+ import './_rollupPluginBabelHelpers-9a08c8bf.js';
12
12
  import './ui/Modal.js';
13
13
  import 'prop-types';
14
14
  import 'react-dom';
15
- import './index-201c73a9.js';
15
+ import './index-8528dcd1.js';
16
16
  import './ui/IconButton.js';
17
17
  import './ui/Icon.js';
18
- import './index-33a103e9.js';
19
- import './index-eeac3879.js';
20
- import './utils-5477ddbc.js';
18
+ import './index-cdd2789a.js';
19
+ import './index-0d4dcc94.js';
20
+ import './utils-0db9b91e.js';
21
21
  import './ui/UserListItem.js';
22
- import './UserProfileContext-eccdbd50.js';
22
+ import './UserProfileContext-97bec8f7.js';
23
23
  import './ui/Avatar.js';
24
24
  import './ui/ImageRenderer.js';
25
- import './uuid-38ace415.js';
25
+ import './uuid-902e6498.js';
26
26
  import './ui/MutedAvatarOverlay.js';
27
27
  import './ui/Checkbox.js';
28
28
  import './ui/UserProfile.js';
29
29
  import './sendbirdSelectors.js';
30
- import './topics-58103dff.js';
30
+ import './topics-7181983e.js';
31
31
  import './ui/ContextMenu.js';
32
- import './index-a355e1d8.js';
32
+ import './index-afd61eff.js';
33
33
  import './ui/SortByRow.js';
34
34
  import './CreateChannel/components/SelectChannelType.js';
35
35
 
@@ -50,4 +50,4 @@ var useCreateChannelContext = function useCreateChannelContext() {
50
50
  };
51
51
 
52
52
  export { CreateChannelProvider as C, CHANNEL_TYPE as a, useCreateChannelContext as u };
53
- //# sourceMappingURL=CreateChannelProvider-efa959ed.js.map
53
+ //# sourceMappingURL=CreateChannelProvider-53259d87.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateChannelProvider-efa959ed.js","sources":["../src/smart-components/CreateChannel/types.ts","../src/smart-components/CreateChannel/context/CreateChannelProvider.tsx"],"sourcesContent":["export enum CHANNEL_TYPE {\n GROUP = 'group',\n SUPERGROUP = 'supergroup',\n BROADCAST = 'broadcast',\n}\n","import React, { useState } from 'react';\nimport { User } from '@sendbird/chat';\nimport type {\n GroupChannel,\n GroupChannelCreateParams,\n SendbirdGroupChat,\n} from '@sendbird/chat/groupChannel';\n\nimport { getCreateGroupChannel } from '../../../lib/selectors';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\nimport { CHANNEL_TYPE } from '../types';\n\nconst CreateChannelContext = React.createContext(undefined);\n\nexport interface UserListQuery {\n hasNext?: boolean;\n next(): Promise<Array<User>>;\n}\n\nexport interface CreateChannelProviderProps {\n children?: React.ReactNode;\n onCreateChannel(channel: GroupChannel): void;\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n userListQuery?(): UserListQuery;\n}\n\ntype CreateChannel = (channelParams: GroupChannelCreateParams) => Promise<GroupChannel>;\n\nexport interface CreateChannelContextInterface {\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n createChannel: CreateChannel;\n sdk: SendbirdGroupChat;\n userListQuery?(): UserListQuery;\n onCreateChannel?(channel: GroupChannel): void;\n step: number,\n setStep: React.Dispatch<React.SetStateAction<number>>,\n type: CHANNEL_TYPE,\n setType: React.Dispatch<React.SetStateAction<CHANNEL_TYPE>>,\n}\n\nconst CreateChannelProvider: React.FC<CreateChannelProviderProps> = (props: CreateChannelProviderProps) => {\n const {\n children,\n onCreateChannel,\n onBeforeCreateChannel,\n userListQuery,\n } = props;\n\n const store = useSendbirdStateContext();\n const userListQuery_ = store?.config?.userListQuery;\n const createChannel: (channelParams: GroupChannelCreateParams)\n => Promise<GroupChannel> = getCreateGroupChannel(store);\n\n const [step, setStep] = useState(0);\n const [type, setType] = useState(CHANNEL_TYPE.GROUP);\n\n return (\n <CreateChannelContext.Provider value={{\n onBeforeCreateChannel,\n createChannel,\n onCreateChannel,\n userListQuery: userListQuery || userListQuery_,\n step,\n setStep,\n type,\n setType,\n }}>\n {children}\n </CreateChannelContext.Provider>\n );\n}\n\nconst useCreateChannelContext = (): CreateChannelContextInterface => (\n React.useContext(CreateChannelContext)\n);\n\nexport {\n CreateChannelProvider,\n useCreateChannelContext,\n};\n"],"names":["CHANNEL_TYPE","CreateChannelContext","React","createContext","undefined","CreateChannelProvider","props","children","onCreateChannel","onBeforeCreateChannel","userListQuery","store","useSendbirdStateContext","userListQuery_","config","createChannel","getCreateGroupChannel","_b","useState","step","setStep","_c","GROUP","type","setType","useCreateChannelContext","useContext"],"mappings":";;;;IAAYA;;AAAZ,WAAYA;AACVA,EAAAA,qBAAA,UAAA;AACAA,EAAAA,0BAAA,eAAA;AACAA,EAAAA,yBAAA,c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E;;;;"}
1
+ {"version":3,"file":"CreateChannelProvider-53259d87.js","sources":["../src/smart-components/CreateChannel/types.ts","../src/smart-components/CreateChannel/context/CreateChannelProvider.tsx"],"sourcesContent":["export enum CHANNEL_TYPE {\n GROUP = 'group',\n SUPERGROUP = 'supergroup',\n BROADCAST = 'broadcast',\n}\n","import React, { useState } from 'react';\nimport { User } from '@sendbird/chat';\nimport type {\n GroupChannel,\n GroupChannelCreateParams,\n SendbirdGroupChat,\n} from '@sendbird/chat/groupChannel';\n\nimport { getCreateGroupChannel } from '../../../lib/selectors';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\nimport { CHANNEL_TYPE } from '../types';\n\nconst CreateChannelContext = React.createContext(undefined);\n\nexport interface UserListQuery {\n hasNext?: boolean;\n next(): Promise<Array<User>>;\n}\n\nexport interface CreateChannelProviderProps {\n children?: React.ReactNode;\n onCreateChannel(channel: GroupChannel): void;\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n userListQuery?(): UserListQuery;\n}\n\ntype CreateChannel = (channelParams: GroupChannelCreateParams) => Promise<GroupChannel>;\n\nexport interface CreateChannelContextInterface {\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n createChannel: CreateChannel;\n sdk: SendbirdGroupChat;\n userListQuery?(): UserListQuery;\n onCreateChannel?(channel: GroupChannel): void;\n step: number,\n setStep: React.Dispatch<React.SetStateAction<number>>,\n type: CHANNEL_TYPE,\n setType: React.Dispatch<React.SetStateAction<CHANNEL_TYPE>>,\n}\n\nconst CreateChannelProvider: React.FC<CreateChannelProviderProps> = (props: CreateChannelProviderProps) => {\n const {\n children,\n onCreateChannel,\n onBeforeCreateChannel,\n userListQuery,\n } = props;\n\n const store = useSendbirdStateContext();\n const userListQuery_ = store?.config?.userListQuery;\n const createChannel: (channelParams: GroupChannelCreateParams)\n => Promise<GroupChannel> = getCreateGroupChannel(store);\n\n const [step, setStep] = useState(0);\n const [type, setType] = useState(CHANNEL_TYPE.GROUP);\n\n return (\n <CreateChannelContext.Provider value={{\n onBeforeCreateChannel,\n createChannel,\n onCreateChannel,\n userListQuery: userListQuery || userListQuery_,\n step,\n setStep,\n type,\n setType,\n }}>\n {children}\n </CreateChannelContext.Provider>\n );\n}\n\nconst useCreateChannelContext = (): CreateChannelContextInterface => (\n React.useContext(CreateChannelContext)\n);\n\nexport {\n CreateChannelProvider,\n useCreateChannelContext,\n};\n"],"names":["CHANNEL_TYPE","CreateChannelContext","React","createContext","undefined","CreateChannelProvider","props","children","onCreateChannel","onBeforeCreateChannel","userListQuery","store","useSendbirdStateContext","userListQuery_","config","createChannel","getCreateGroupChannel","_b","useState","step","setStep","_c","GROUP","type","setType","useCreateChannelContext","useContext"],"mappings":";;;;IAAYA;;AAAZ,WAAYA;AACVA,EAAAA,qBAAA,UAAA;AACAA,EAAAA,0BAAA,eAAA;AACAA,EAAAA,yBAAA,cAAA;AACD,CAJD,EAAYA,YAAY,KAAZA,YAAY,KAAA,CAAxB;;ACYA,IAAMC,oBAAoB,gBAAGC,cAAK,CAACC,aAAN,CAAoBC,SAApB,CAA7B;;IA4BMC,qBAAqB,GAAyC,SAA9DA,qBAA8D,CAACC,KAAD;;;AAEhE,MAAAC,QAAQ,GAIND,KAAK,SAJP;AAAA,MACAE,eAAe,GAGbF,KAAK,gBAJP;AAAA,MAEAG,qBAAqB,GAEnBH,KAAK,sBAJP;AAAA,MAGAI,aAAa,GACXJ,KAAK,cAJP;AAMF,MAAMK,KAAK,GAAGC,uBAAuB,EAArC;AACA,MAAMC,cAAc,GAAG,MAAAF,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEG,MAAP,UAAA,iBAAA,SAAA,MAAeJ,aAAtC;AACA,MAAMK,aAAa,GACUC,qBAAqB,CAACL,KAAD,CADlD;;AAGM,MAAAM,KAAkBC,QAAQ,CAAC,CAAD,CAA1B;AAAA,MAACC,IAAI,QAAL;AAAA,MAAOC,OAAO,QAAd;;AACA,MAAAC,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