@sendbird/uikit-react 3.1.2 → 3.1.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/App.js +37 -36
  2. package/App.js.map +1 -1
  3. package/CHANGELOG.md +20 -0
  4. package/Channel/components/ChannelHeader.js +19 -19
  5. package/Channel/components/ChannelUI.js +26 -26
  6. package/Channel/components/ChannelUI.js.map +1 -1
  7. package/Channel/components/FileViewer.js +18 -18
  8. package/Channel/components/FrozenNotification.js +5 -5
  9. package/Channel/components/Message.js +26 -24
  10. package/Channel/components/Message.js.map +1 -1
  11. package/Channel/components/MessageInput.js +20 -20
  12. package/Channel/components/MessageList.js +25 -25
  13. package/Channel/components/MessageList.js.map +1 -1
  14. package/Channel/components/RemoveMessageModal.js +20 -20
  15. package/Channel/components/SuggestedMentionList.js +19 -19
  16. package/Channel/components/TypingIndicator.js +18 -18
  17. package/Channel/components/UnreadCount.js +5 -5
  18. package/Channel/context.js +17 -17
  19. package/Channel.js +26 -26
  20. package/ChannelList/components/AddChannel.js +14 -14
  21. package/ChannelList/components/ChannelListHeader.js +7 -7
  22. package/ChannelList/components/ChannelListUI.js +30 -30
  23. package/ChannelList/components/ChannelPreview.js +23 -23
  24. package/ChannelList/components/ChannelPreviewAction.js +22 -20
  25. package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  26. package/ChannelList/context.js +12 -12
  27. package/ChannelList.js +30 -30
  28. package/{ChannelListProvider-9c82d370.js → ChannelListProvider-6bf1e9c7.js} +9 -9
  29. package/{ChannelListProvider-9c82d370.js.map → ChannelListProvider-6bf1e9c7.js.map} +1 -1
  30. package/{ChannelProvider-d891cf5f.js → ChannelProvider-b68db5fd.js} +12 -12
  31. package/{ChannelProvider-d891cf5f.js.map → ChannelProvider-b68db5fd.js.map} +1 -1
  32. package/ChannelSettings/components/ChannelProfile.js +12 -12
  33. package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  34. package/ChannelSettings/components/EditDetailsModal.js +12 -12
  35. package/ChannelSettings/components/LeaveChannel.js +11 -11
  36. package/ChannelSettings/components/ModerationPanel.js +19 -19
  37. package/ChannelSettings/components/UserListItem.js +12 -12
  38. package/ChannelSettings/components/UserPanel.js +14 -14
  39. package/ChannelSettings/context.js +3 -3
  40. package/ChannelSettings.js +22 -22
  41. package/CreateChannel/components/CreateChannelUI.js +14 -14
  42. package/CreateChannel/components/InviteUsers.js +14 -14
  43. package/CreateChannel/components/SelectChannelType.js +11 -11
  44. package/CreateChannel/context.js +4 -4
  45. package/CreateChannel.js +14 -14
  46. package/{CreateChannelProvider-0af2a424.js → CreateChannelProvider-9a497a91.js} +1 -1
  47. package/{CreateChannelProvider-0af2a424.js.map → CreateChannelProvider-9a497a91.js.map} +1 -1
  48. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  49. package/EditUserProfile.js +13 -13
  50. package/{LocalizationContext-2a073ef0.js → LocalizationContext-397e33d0.js} +3 -3
  51. package/{LocalizationContext-2a073ef0.js.map → LocalizationContext-397e33d0.js.map} +1 -1
  52. package/{MemberList-0acc36c3.js → MemberList-464926f8.js} +6 -6
  53. package/{MemberList-0acc36c3.js.map → MemberList-464926f8.js.map} +1 -1
  54. package/MessageSearch/components/MessageSearchUI.js +11 -11
  55. package/MessageSearch/context.js +2 -2
  56. package/MessageSearch.js +11 -11
  57. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  58. package/OpenChannel/components/OpenChannelHeader.js +17 -17
  59. package/OpenChannel/components/OpenChannelInput.js +21 -21
  60. package/OpenChannel/components/OpenChannelMessage.js +26 -26
  61. package/OpenChannel/components/OpenChannelMessageList.js +28 -28
  62. package/OpenChannel/components/OpenChannelUI.js +28 -28
  63. package/OpenChannel/context.js +14 -14
  64. package/OpenChannel.js +28 -28
  65. package/{OpenChannelProvider-2e3fa2dd.js → OpenChannelProvider-b936f710.js} +55 -39
  66. package/OpenChannelProvider-b936f710.js.map +1 -0
  67. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  68. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  69. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  70. package/OpenChannelSettings/components/OperatorUI.js +20 -20
  71. package/OpenChannelSettings/components/ParticipantUI.js +18 -18
  72. package/OpenChannelSettings/context.js +17 -16
  73. package/OpenChannelSettings/context.js.map +1 -1
  74. package/OpenChannelSettings.js +21 -21
  75. package/SendbirdProvider.js +30 -22
  76. package/SendbirdProvider.js.map +1 -1
  77. package/{UserProfileContext-143a6a42.js → UserProfileContext-70f3b69e.js} +1 -1
  78. package/{UserProfileContext-143a6a42.js.map → UserProfileContext-70f3b69e.js.map} +1 -1
  79. package/{__bundle-6316ce22-cd546820.js → __bundle-6316ce22-a7fd8d16.js} +1 -1
  80. package/{__bundle-6316ce22-cd546820.js.map → __bundle-6316ce22-a7fd8d16.js.map} +1 -1
  81. package/{__bundle-7dfccc8c-6c6e7ab4.js → __bundle-7dfccc8c-85123da0.js} +2 -2
  82. package/{__bundle-7dfccc8c-6c6e7ab4.js.map → __bundle-7dfccc8c-85123da0.js.map} +1 -1
  83. package/{__bundle-fbda47dd-9dbeee1d.js → __bundle-fbda47dd-0157c82e.js} +2 -2
  84. package/{__bundle-fbda47dd-9dbeee1d.js.map → __bundle-fbda47dd-0157c82e.js.map} +1 -1
  85. package/{_rollupPluginBabelHelpers-3043541a.js → _rollupPluginBabelHelpers-67f295c6.js} +1 -1
  86. package/{_rollupPluginBabelHelpers-3043541a.js.map → _rollupPluginBabelHelpers-67f295c6.js.map} +1 -1
  87. package/{actionTypes-2873dec9.js → actionTypes-6723ddd6.js} +1 -1
  88. package/{actionTypes-2873dec9.js.map → actionTypes-6723ddd6.js.map} +1 -1
  89. package/cjs/App.js +37 -36
  90. package/cjs/App.js.map +1 -1
  91. package/cjs/Channel/components/ChannelHeader.js +19 -19
  92. package/cjs/Channel/components/ChannelUI.js +26 -26
  93. package/cjs/Channel/components/ChannelUI.js.map +1 -1
  94. package/cjs/Channel/components/FileViewer.js +18 -18
  95. package/cjs/Channel/components/FrozenNotification.js +5 -5
  96. package/cjs/Channel/components/Message.js +26 -24
  97. package/cjs/Channel/components/Message.js.map +1 -1
  98. package/cjs/Channel/components/MessageInput.js +20 -20
  99. package/cjs/Channel/components/MessageList.js +25 -25
  100. package/cjs/Channel/components/MessageList.js.map +1 -1
  101. package/cjs/Channel/components/RemoveMessageModal.js +20 -20
  102. package/cjs/Channel/components/SuggestedMentionList.js +19 -19
  103. package/cjs/Channel/components/TypingIndicator.js +18 -18
  104. package/cjs/Channel/components/UnreadCount.js +5 -5
  105. package/cjs/Channel/context.js +17 -17
  106. package/cjs/Channel.js +26 -26
  107. package/cjs/ChannelList/components/AddChannel.js +14 -14
  108. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  109. package/cjs/ChannelList/components/ChannelListUI.js +30 -30
  110. package/cjs/ChannelList/components/ChannelPreview.js +23 -23
  111. package/cjs/ChannelList/components/ChannelPreviewAction.js +22 -20
  112. package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
  113. package/cjs/ChannelList/context.js +12 -12
  114. package/cjs/ChannelList.js +30 -30
  115. package/cjs/{ChannelListProvider-b60fe6ed.js → ChannelListProvider-64262fd2.js} +9 -9
  116. package/cjs/{ChannelListProvider-b60fe6ed.js.map → ChannelListProvider-64262fd2.js.map} +1 -1
  117. package/cjs/{ChannelProvider-b21b3c2a.js → ChannelProvider-c20e9dc3.js} +12 -12
  118. package/cjs/{ChannelProvider-b21b3c2a.js.map → ChannelProvider-c20e9dc3.js.map} +1 -1
  119. package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
  120. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  121. package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
  122. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  123. package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
  124. package/cjs/ChannelSettings/components/UserListItem.js +12 -12
  125. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  126. package/cjs/ChannelSettings/context.js +3 -3
  127. package/cjs/ChannelSettings.js +22 -22
  128. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  129. package/cjs/CreateChannel/components/InviteUsers.js +14 -14
  130. package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
  131. package/cjs/CreateChannel/context.js +4 -4
  132. package/cjs/CreateChannel.js +14 -14
  133. package/cjs/{CreateChannelProvider-71e1e6d6.js → CreateChannelProvider-49506a99.js} +1 -1
  134. package/cjs/{CreateChannelProvider-71e1e6d6.js.map → CreateChannelProvider-49506a99.js.map} +1 -1
  135. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  136. package/cjs/EditUserProfile.js +13 -13
  137. package/cjs/{LocalizationContext-da62a103.js → LocalizationContext-35942797.js} +3 -3
  138. package/cjs/{LocalizationContext-da62a103.js.map → LocalizationContext-35942797.js.map} +1 -1
  139. package/cjs/{MemberList-442ade8c.js → MemberList-c79c660f.js} +6 -6
  140. package/cjs/{MemberList-442ade8c.js.map → MemberList-c79c660f.js.map} +1 -1
  141. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  142. package/cjs/MessageSearch/context.js +2 -2
  143. package/cjs/MessageSearch.js +11 -11
  144. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  145. package/cjs/OpenChannel/components/OpenChannelHeader.js +17 -17
  146. package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
  147. package/cjs/OpenChannel/components/OpenChannelMessage.js +26 -26
  148. package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
  149. package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
  150. package/cjs/OpenChannel/context.js +14 -14
  151. package/cjs/OpenChannel.js +28 -28
  152. package/cjs/{OpenChannelProvider-bc8d7f0d.js → OpenChannelProvider-174daa25.js} +55 -39
  153. package/cjs/OpenChannelProvider-174daa25.js.map +1 -0
  154. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  155. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  156. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  157. package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
  158. package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
  159. package/cjs/OpenChannelSettings/context.js +17 -16
  160. package/cjs/OpenChannelSettings/context.js.map +1 -1
  161. package/cjs/OpenChannelSettings.js +21 -21
  162. package/cjs/SendbirdProvider.js +30 -22
  163. package/cjs/SendbirdProvider.js.map +1 -1
  164. package/cjs/{UserProfileContext-891590a7.js → UserProfileContext-7fab3049.js} +1 -1
  165. package/cjs/{UserProfileContext-891590a7.js.map → UserProfileContext-7fab3049.js.map} +1 -1
  166. package/cjs/{__bundle-6316ce22-c06e03fc.js → __bundle-6316ce22-bdf33468.js} +1 -1
  167. package/cjs/{__bundle-6316ce22-c06e03fc.js.map → __bundle-6316ce22-bdf33468.js.map} +1 -1
  168. package/cjs/{__bundle-7dfccc8c-dcc1c854.js → __bundle-7dfccc8c-8ada5946.js} +2 -2
  169. package/cjs/{__bundle-7dfccc8c-dcc1c854.js.map → __bundle-7dfccc8c-8ada5946.js.map} +1 -1
  170. package/cjs/{__bundle-fbda47dd-1a2c2d97.js → __bundle-fbda47dd-d736220d.js} +2 -2
  171. package/cjs/{__bundle-fbda47dd-1a2c2d97.js.map → __bundle-fbda47dd-d736220d.js.map} +1 -1
  172. package/cjs/{_rollupPluginBabelHelpers-4265e501.js → _rollupPluginBabelHelpers-082ff33d.js} +1 -1
  173. package/cjs/{_rollupPluginBabelHelpers-4265e501.js.map → _rollupPluginBabelHelpers-082ff33d.js.map} +1 -1
  174. package/cjs/{actionTypes-7c5a0f8b.js → actionTypes-54af9c52.js} +1 -1
  175. package/cjs/{actionTypes-7c5a0f8b.js.map → actionTypes-54af9c52.js.map} +1 -1
  176. package/cjs/{color-42e34a43.js → color-ec571f01.js} +1 -1
  177. package/cjs/{color-42e34a43.js.map → color-ec571f01.js.map} +1 -1
  178. package/cjs/{compareIds-26079db4.js → compareIds-1b11164b.js} +1 -1
  179. package/cjs/{compareIds-26079db4.js.map → compareIds-1b11164b.js.map} +1 -1
  180. package/cjs/{const-c1a4604d.js → const-baaf7275.js} +1 -1
  181. package/cjs/{const-c1a4604d.js.map → const-baaf7275.js.map} +1 -1
  182. package/cjs/{const-8a9ec74c.js → const-c6530407.js} +1 -1
  183. package/cjs/{const-8a9ec74c.js.map → const-c6530407.js.map} +1 -1
  184. package/cjs/{context-82ac7edc.js → context-360ca291.js} +2 -2
  185. package/cjs/{context-82ac7edc.js.map → context-360ca291.js.map} +1 -1
  186. package/cjs/dist/index.css +81 -17
  187. package/cjs/dist/index.css.map +1 -1
  188. package/cjs/{groupChannel-11ed3837.js → groupChannel-150632d7.js} +4 -4
  189. package/cjs/{groupChannel-11ed3837.js.map → groupChannel-150632d7.js.map} +1 -1
  190. package/cjs/handlers/ConnectionHandler.js +3 -3
  191. package/cjs/handlers/GroupChannelHandler.js +4 -4
  192. package/cjs/handlers/OpenChannelHandler.js +3 -3
  193. package/cjs/handlers/SessionHandler.js +12 -0
  194. package/cjs/handlers/SessionHandler.js.map +1 -0
  195. package/cjs/handlers/UserEventHandler.js +3 -3
  196. package/cjs/{index-05692021.js → index-2f57e1c8.js} +3 -3
  197. package/cjs/{index-05692021.js.map → index-2f57e1c8.js.map} +1 -1
  198. package/cjs/{index-fb127b1f.js → index-43c0e19f.js} +2 -2
  199. package/cjs/{index-fb127b1f.js.map → index-43c0e19f.js.map} +1 -1
  200. package/cjs/{index-82646d4d.js → index-6a2cc1bb.js} +6 -6
  201. package/cjs/{index-82646d4d.js.map → index-6a2cc1bb.js.map} +1 -1
  202. package/cjs/{index-25336220.js → index-6fc7a50a.js} +1 -1
  203. package/cjs/{index-25336220.js.map → index-6fc7a50a.js.map} +1 -1
  204. package/cjs/{index-f5cb5c7f.js → index-8a5ade0f.js} +2 -2
  205. package/cjs/{index-f5cb5c7f.js.map → index-8a5ade0f.js.map} +1 -1
  206. package/cjs/{index-06c3dca9.js → index-8bd2c4bb.js} +2 -2
  207. package/cjs/{index-06c3dca9.js.map → index-8bd2c4bb.js.map} +1 -1
  208. package/cjs/{index-b440f8c6.js → index-a4141b26.js} +4 -4
  209. package/cjs/{index-b440f8c6.js.map → index-a4141b26.js.map} +1 -1
  210. package/cjs/{index-c79f62fd.js → index-b099330e.js} +4 -4
  211. package/cjs/{index-c79f62fd.js.map → index-b099330e.js.map} +1 -1
  212. package/cjs/{index-089e0fba.js → index-d5a50567.js} +3 -3
  213. package/cjs/{index-089e0fba.js.map → index-d5a50567.js.map} +1 -1
  214. package/cjs/{index-32562627.js → index-df12b2be.js} +1 -1
  215. package/cjs/{index-32562627.js.map → index-df12b2be.js.map} +1 -1
  216. package/cjs/{index-81e2234a.js → index-ead714db.js} +9 -9
  217. package/cjs/{index-81e2234a.js.map → index-ead714db.js.map} +1 -1
  218. package/cjs/index.js +39 -39
  219. package/cjs/{openChannel-76345cfa.js → openChannel-e2adcd8a.js} +3 -3
  220. package/cjs/{openChannel-76345cfa.js.map → openChannel-e2adcd8a.js.map} +1 -1
  221. package/cjs/{openChannelUtils-56d57483.js → openChannelUtils-e9df94b8.js} +1 -1
  222. package/cjs/{openChannelUtils-56d57483.js.map → openChannelUtils-e9df94b8.js.map} +1 -1
  223. package/cjs/{sendbird-dfd051c8.js → sendbird-211e4dae.js} +4 -3
  224. package/cjs/{sendbird-dfd051c8.js.map → sendbird-211e4dae.js.map} +1 -1
  225. package/cjs/sendbirdSelectors.js +2 -2
  226. package/cjs/{stringSet-857a128c.js → stringSet-59d50a66.js} +1 -1
  227. package/cjs/{stringSet-857a128c.js.map → stringSet-59d50a66.js.map} +1 -1
  228. package/cjs/{topics-a755c9c6.js → topics-8094440d.js} +1 -1
  229. package/cjs/{topics-a755c9c6.js.map → topics-8094440d.js.map} +1 -1
  230. package/cjs/{tslib.es6-ba69891c.js → tslib.es6-f1d73fc3.js} +18 -1
  231. package/cjs/{tslib.es6-ba69891c.js.map → tslib.es6-f1d73fc3.js.map} +1 -1
  232. package/cjs/ui/Accordion.js +4 -4
  233. package/cjs/ui/AccordionGroup.js +2 -2
  234. package/cjs/ui/AdminMessage.js +4 -4
  235. package/cjs/ui/Avatar.js +3 -3
  236. package/cjs/ui/Badge.js +6 -6
  237. package/cjs/ui/Button.js +5 -5
  238. package/cjs/ui/ChannelAvatar.js +4 -4
  239. package/cjs/ui/ChannelPreview.js +12 -12
  240. package/cjs/ui/ChatHeader.js +8 -8
  241. package/cjs/ui/ConnectionStatus.js +5 -5
  242. package/cjs/ui/ContextMenu.js +99 -85
  243. package/cjs/ui/ContextMenu.js.map +1 -1
  244. package/cjs/ui/DateSeparator.js +5 -5
  245. package/cjs/ui/EmojiReactions.js +8 -8
  246. package/cjs/ui/FileMessageItemBody.js +6 -6
  247. package/cjs/ui/FileViewer.js +9 -9
  248. package/cjs/ui/Icon.js +1 -1
  249. package/cjs/ui/IconButton.js +1 -1
  250. package/cjs/ui/ImageRenderer.js +1 -1
  251. package/cjs/ui/Input.js +3 -3
  252. package/cjs/ui/Label.js +3 -3
  253. package/cjs/ui/LinkLabel.js +3 -3
  254. package/cjs/ui/Loader.js +2 -2
  255. package/cjs/ui/MentionLabel.js +11 -11
  256. package/cjs/ui/MessageContent.js +14 -14
  257. package/cjs/ui/MessageInput.js +10 -10
  258. package/cjs/ui/MessageInput.js.map +1 -1
  259. package/cjs/ui/MessageItemMenu.js +8 -8
  260. package/cjs/ui/MessageItemReactionMenu.js +6 -6
  261. package/cjs/ui/MessageSearchFileItem.js +10 -10
  262. package/cjs/ui/MessageSearchItem.js +10 -10
  263. package/cjs/ui/MessageStatus.js +8 -8
  264. package/cjs/ui/Modal.js +8 -8
  265. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  266. package/cjs/ui/OGMessageItemBody.js +11 -11
  267. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  268. package/cjs/ui/OpenChannelAvatar.js +7 -7
  269. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  270. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  271. package/cjs/ui/OpenchannelOGMessage.js +15 -15
  272. package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
  273. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  274. package/cjs/ui/PlaceHolder.js +7 -7
  275. package/cjs/ui/QuoteMessage.js +7 -7
  276. package/cjs/ui/QuoteMessageInput.js +7 -7
  277. package/cjs/ui/ReactionBadge.js +4 -4
  278. package/cjs/ui/ReactionButton.js +1 -1
  279. package/cjs/ui/SortByRow.js +2 -2
  280. package/cjs/ui/TextButton.js +2 -2
  281. package/cjs/ui/TextMessageItemBody.js +11 -11
  282. package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
  283. package/cjs/ui/Tooltip.js +4 -4
  284. package/cjs/ui/TooltipWrapper.js +1 -1
  285. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  286. package/cjs/ui/UserListItem.js +12 -12
  287. package/cjs/ui/UserProfile.js +10 -10
  288. package/cjs/ui/Word.js +11 -11
  289. package/cjs/useSendbirdStateContext.js +1 -1
  290. package/cjs/{utils-c39eb349.js → utils-09755f32.js} +1 -1
  291. package/cjs/{utils-c39eb349.js.map → utils-09755f32.js.map} +1 -1
  292. package/cjs/{utils-bf57a41a.js → utils-c5ed90dc.js} +1 -1
  293. package/cjs/{utils-bf57a41a.js.map → utils-c5ed90dc.js.map} +1 -1
  294. package/cjs/{utils-bfbac88e.js → utils-ef8fd6ba.js} +1 -1
  295. package/cjs/{utils-bfbac88e.js.map → utils-ef8fd6ba.js.map} +1 -1
  296. package/cjs/{uuid-49679ac2.js → uuid-abe82759.js} +1 -1
  297. package/cjs/{uuid-49679ac2.js.map → uuid-abe82759.js.map} +1 -1
  298. package/cjs/withSendbird.js +1 -1
  299. package/{color-798488ed.js → color-c5e2ab33.js} +1 -1
  300. package/{color-798488ed.js.map → color-c5e2ab33.js.map} +1 -1
  301. package/{compareIds-2e073780.js → compareIds-7233a846.js} +1 -1
  302. package/{compareIds-2e073780.js.map → compareIds-7233a846.js.map} +1 -1
  303. package/{const-b88f8299.js → const-849d720a.js} +1 -1
  304. package/{const-b88f8299.js.map → const-849d720a.js.map} +1 -1
  305. package/{const-51fc1a68.js → const-87ede7b1.js} +1 -1
  306. package/{const-51fc1a68.js.map → const-87ede7b1.js.map} +1 -1
  307. package/{context-406bf9f1.js → context-57c4ac55.js} +2 -2
  308. package/{context-406bf9f1.js.map → context-57c4ac55.js.map} +1 -1
  309. package/dist/index.css +81 -17
  310. package/dist/index.css.map +1 -1
  311. package/{groupChannel-17ffbb7f.js → groupChannel-333bdda8.js} +4 -4
  312. package/{groupChannel-17ffbb7f.js.map → groupChannel-333bdda8.js.map} +1 -1
  313. package/handlers/ConnectionHandler.js +4 -4
  314. package/handlers/GroupChannelHandler.js +5 -5
  315. package/handlers/OpenChannelHandler.js +4 -4
  316. package/handlers/SessionHandler.js +9 -0
  317. package/handlers/SessionHandler.js.map +1 -0
  318. package/handlers/UserEventHandler.js +4 -4
  319. package/{index-4e56f382.js → index-30d6338a.js} +4 -4
  320. package/{index-4e56f382.js.map → index-30d6338a.js.map} +1 -1
  321. package/{index-7f2be3d7.js → index-33e14ef9.js} +2 -2
  322. package/{index-7f2be3d7.js.map → index-33e14ef9.js.map} +1 -1
  323. package/{index-ced613ea.js → index-55ffa40a.js} +4 -4
  324. package/{index-ced613ea.js.map → index-55ffa40a.js.map} +1 -1
  325. package/{index-c9cda9f6.js → index-6bf196c4.js} +1 -1
  326. package/{index-c9cda9f6.js.map → index-6bf196c4.js.map} +1 -1
  327. package/{index-03ccaf35.js → index-7e7eecb5.js} +2 -2
  328. package/{index-03ccaf35.js.map → index-7e7eecb5.js.map} +1 -1
  329. package/{index-b4944539.js → index-9564359d.js} +2 -2
  330. package/{index-b4944539.js.map → index-9564359d.js.map} +1 -1
  331. package/{index-702d2072.js → index-c6372f71.js} +9 -9
  332. package/{index-702d2072.js.map → index-c6372f71.js.map} +1 -1
  333. package/{index-ed39099a.js → index-cc420cce.js} +3 -3
  334. package/{index-ed39099a.js.map → index-cc420cce.js.map} +1 -1
  335. package/{index-5ec69689.js → index-cd8f3035.js} +1 -1
  336. package/{index-5ec69689.js.map → index-cd8f3035.js.map} +1 -1
  337. package/{index-fa8ac00a.js → index-ce26872b.js} +6 -6
  338. package/{index-fa8ac00a.js.map → index-ce26872b.js.map} +1 -1
  339. package/{index-6a47d16f.js → index-fcc0e6dc.js} +3 -3
  340. package/{index-6a47d16f.js.map → index-fcc0e6dc.js.map} +1 -1
  341. package/index.d.ts +16 -8
  342. package/index.js +39 -39
  343. package/{openChannel-1548376e.js → openChannel-ea516c45.js} +3 -3
  344. package/{openChannel-1548376e.js.map → openChannel-ea516c45.js.map} +1 -1
  345. package/{openChannelUtils-09e4bac8.js → openChannelUtils-5cc6b7cb.js} +1 -1
  346. package/{openChannelUtils-09e4bac8.js.map → openChannelUtils-5cc6b7cb.js.map} +1 -1
  347. package/package-lock.json +2 -2
  348. package/package.json +1 -1
  349. package/{sendbird-597583ed.js → sendbird-961b20e3.js} +4 -4
  350. package/{sendbird-597583ed.js.map → sendbird-961b20e3.js.map} +1 -1
  351. package/sendbirdSelectors.js +2 -2
  352. package/{stringSet-647493ce.js → stringSet-232e2ec0.js} +1 -1
  353. package/{stringSet-647493ce.js.map → stringSet-232e2ec0.js.map} +1 -1
  354. package/{topics-18836011.js → topics-84946297.js} +1 -1
  355. package/{topics-18836011.js.map → topics-84946297.js.map} +1 -1
  356. package/{tslib.es6-710c6267.js → tslib.es6-ea4b7876.js} +18 -2
  357. package/{tslib.es6-710c6267.js.map → tslib.es6-ea4b7876.js.map} +1 -1
  358. package/ui/Accordion.js +4 -4
  359. package/ui/AccordionGroup.js +2 -2
  360. package/ui/AdminMessage.js +4 -4
  361. package/ui/Avatar.js +3 -3
  362. package/ui/Badge.js +6 -6
  363. package/ui/Button.js +5 -5
  364. package/ui/ChannelAvatar.js +4 -4
  365. package/ui/ChannelPreview.js +12 -12
  366. package/ui/ChatHeader.js +8 -8
  367. package/ui/ConnectionStatus.js +5 -5
  368. package/ui/ContextMenu.js +100 -86
  369. package/ui/ContextMenu.js.map +1 -1
  370. package/ui/DateSeparator.js +5 -5
  371. package/ui/EmojiReactions.js +8 -8
  372. package/ui/FileMessageItemBody.js +6 -6
  373. package/ui/FileViewer.js +9 -9
  374. package/ui/Icon.js +1 -1
  375. package/ui/IconButton.js +1 -1
  376. package/ui/ImageRenderer.js +1 -1
  377. package/ui/Input.js +3 -3
  378. package/ui/Label.js +3 -3
  379. package/ui/LinkLabel.js +3 -3
  380. package/ui/Loader.js +2 -2
  381. package/ui/MentionLabel.js +11 -11
  382. package/ui/MessageContent.js +14 -14
  383. package/ui/MessageInput.js +10 -10
  384. package/ui/MessageInput.js.map +1 -1
  385. package/ui/MessageItemMenu.js +8 -8
  386. package/ui/MessageItemReactionMenu.js +6 -6
  387. package/ui/MessageSearchFileItem.js +10 -10
  388. package/ui/MessageSearchItem.js +10 -10
  389. package/ui/MessageStatus.js +8 -8
  390. package/ui/Modal.js +8 -8
  391. package/ui/MutedAvatarOverlay.js +1 -1
  392. package/ui/OGMessageItemBody.js +11 -11
  393. package/ui/OpenChannelAdminMessage.js +4 -4
  394. package/ui/OpenChannelAvatar.js +7 -7
  395. package/ui/OpenchannelConversationHeader.js +7 -7
  396. package/ui/OpenchannelFileMessage.js +15 -15
  397. package/ui/OpenchannelOGMessage.js +15 -15
  398. package/ui/OpenchannelThumbnailMessage.js +14 -14
  399. package/ui/OpenchannelUserMessage.js +15 -15
  400. package/ui/PlaceHolder.js +7 -7
  401. package/ui/QuoteMessage.js +7 -7
  402. package/ui/QuoteMessageInput.js +7 -7
  403. package/ui/ReactionBadge.js +4 -4
  404. package/ui/ReactionButton.js +1 -1
  405. package/ui/SortByRow.js +2 -2
  406. package/ui/TextButton.js +2 -2
  407. package/ui/TextMessageItemBody.js +11 -11
  408. package/ui/ThumbnailMessageItemBody.js +3 -3
  409. package/ui/Tooltip.js +4 -4
  410. package/ui/TooltipWrapper.js +1 -1
  411. package/ui/UnknownMessageItemBody.js +7 -7
  412. package/ui/UserListItem.js +12 -12
  413. package/ui/UserProfile.js +10 -10
  414. package/ui/Word.js +11 -11
  415. package/useSendbirdStateContext.js +1 -1
  416. package/{utils-301322ba.js → utils-0cadb616.js} +1 -1
  417. package/{utils-301322ba.js.map → utils-0cadb616.js.map} +1 -1
  418. package/{utils-2666bdfb.js → utils-6195b8b0.js} +1 -1
  419. package/{utils-2666bdfb.js.map → utils-6195b8b0.js.map} +1 -1
  420. package/{utils-19e84a08.js → utils-b6f36534.js} +1 -1
  421. package/{utils-19e84a08.js.map → utils-b6f36534.js.map} +1 -1
  422. package/{uuid-60ae25c1.js → uuid-e8af582d.js} +1 -1
  423. package/{uuid-60ae25c1.js.map → uuid-e8af582d.js.map} +1 -1
  424. package/withSendbird.js +1 -1
  425. package/OpenChannelProvider-2e3fa2dd.js.map +0 -1
  426. package/cjs/OpenChannelProvider-bc8d7f0d.js.map +0 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type Definitions for @sendbird/uikit-react@3.1.2
2
+ * Type Definitions for @sendbird/uikit-react@3.1.3-rc.0
3
3
  * homepage: https://sendbird.com/
4
4
  * git: https://github.com/sendbird/sendbird-uikit-react
5
5
  */
@@ -77,6 +77,7 @@ declare module "SendbirdUIKitGlobal" {
77
77
  maxMentionCount?: number,
78
78
  maxSuggestionCount?: number,
79
79
  };
80
+ isREMUnitEnabled?: boolean;
80
81
  }
81
82
 
82
83
  export interface ClientMessage {
@@ -91,6 +92,9 @@ declare module "SendbirdUIKitGlobal" {
91
92
  chainTop: boolean;
92
93
  chainBottom: boolean;
93
94
  }
95
+ export interface RenderCustomSeparatorProps {
96
+ message: AdminMessage | UserMessage | FileMessage;
97
+ }
94
98
 
95
99
  export interface ClientUserMessage extends UserMessage, ClientMessage { }
96
100
  export interface ClientFileMessage extends FileMessage, ClientMessage { }
@@ -210,6 +214,7 @@ declare module "SendbirdUIKitGlobal" {
210
214
  renderUserProfile?: (props: RenderUserProfileProps) => React.ReactNode | React.ReactElement;
211
215
  allowProfileEdit: boolean;
212
216
  isOnline: boolean;
217
+ isReactionEnabled: boolean;
213
218
  isMentionEnabled: boolean;
214
219
  userMention: {
215
220
  maxMentionCount: number;
@@ -448,10 +453,10 @@ declare module "SendbirdUIKitGlobal" {
448
453
  };
449
454
 
450
455
  export type ChannelContextProps = {
451
- channelUrl: string;
452
456
  children?: React.ReactElement;
453
- useMessageGrouping?: boolean;
454
- useReaction?: boolean;
457
+ channelUrl: string;
458
+ isReactionEnabled?: boolean;
459
+ isMessageGroupingEnabled?: boolean;
455
460
  showSearchIcon?: boolean;
456
461
  highlightedMessage?: number;
457
462
  startingPoint?: number;
@@ -464,7 +469,6 @@ declare module "SendbirdUIKitGlobal" {
464
469
  queries?: ChannelQueries;
465
470
  renderUserProfile?: (props: RenderUserProfileProps) => React.ReactNode | React.ReactElement;
466
471
  disableUserProfile?: boolean;
467
- renderUserMentionItem?: (props: { user: User }) => JSX.Element;
468
472
  };
469
473
 
470
474
  export interface ChannelUIProps {
@@ -475,7 +479,7 @@ declare module "SendbirdUIKitGlobal" {
475
479
  renderMessage?: (props: RenderMessageProps) => React.ReactNode | React.ReactElement;
476
480
  renderMessageInput?: () => React.ReactNode | React.ReactElement;
477
481
  renderTypingIndicator?: () => React.ReactNode | React.ReactElement;
478
- renderCustomSeperator?: () => React.ReactNode | React.ReactElement;
482
+ renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactNode | React.ReactElement;
479
483
  }
480
484
 
481
485
  export type CoreMessageType = AdminMessage | UserMessage | FileMessage;
@@ -525,7 +529,7 @@ declare module "SendbirdUIKitGlobal" {
525
529
  handleScroll: () => void;
526
530
  // for extending
527
531
  renderMessage?: (props: RenderMessageProps) => React.ReactNode | React.ReactElement;
528
- renderCustomSeperator?: () => React.ReactNode | React.ReactElement;
532
+ renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactNode | React.ReactElement;
529
533
  renderEditInput?: () => React.ReactNode | React.ReactElement;
530
534
  renderMessageContent?: () => React.ReactNode | React.ReactElement;
531
535
  };
@@ -533,7 +537,7 @@ declare module "SendbirdUIKitGlobal" {
533
537
  export type MessageListProps = {
534
538
  renderMessage?: (props: RenderMessageProps) => React.ReactNode | React.ReactElement;
535
539
  renderPlaceholderEmpty?: () => React.ReactNode | React.ReactElement;
536
- renderCustomSeperator?: () => React.ReactNode | React.ReactElement;
540
+ renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactNode | React.ReactElement;
537
541
  };
538
542
 
539
543
  export type SuggestedMentionListProps = {
@@ -870,6 +874,10 @@ declare module '@sendbird/uikit-react/handlers/ConnectionHandler' {
870
874
  import { ConnectionHandler } from '@sendbird/chat';
871
875
  export default ConnectionHandler;
872
876
  }
877
+ declare module '@sendbird/uikit-react/handlers/SessionHandler' {
878
+ import { SessionHandler } from '@sendbird/chat';
879
+ export default SessionHandler;
880
+ }
873
881
  declare module '@sendbird/uikit-react/handlers/GroupChannelHandler' {
874
882
  import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
875
883
  export default GroupChannelHandler;
package/index.js CHANGED
@@ -3,55 +3,55 @@ export { default as App } from './App.js';
3
3
  export { default as ChannelSettings } from './ChannelSettings.js';
4
4
  export { default as ChannelList } from './ChannelList.js';
5
5
  export { default as Channel } from './Channel.js';
6
- export { g as getStringSet } from './stringSet-647493ce.js';
6
+ export { g as getStringSet } from './stringSet-232e2ec0.js';
7
7
  export { default as OpenChannel } from './OpenChannel.js';
8
8
  export { default as OpenChannelSettings } from './OpenChannelSettings.js';
9
9
  export { default as MessageSearch } from './MessageSearch.js';
10
10
  export { default as withSendBird } from './withSendbird.js';
11
11
  export { default as sendBirdSelectors, default as sendbirdSelectors } from './sendbirdSelectors.js';
12
12
  export { default as useSendbirdStateContext } from './useSendbirdStateContext.js';
13
- import './_rollupPluginBabelHelpers-3043541a.js';
13
+ import './_rollupPluginBabelHelpers-67f295c6.js';
14
14
  import 'react';
15
15
  import 'prop-types';
16
- import './sendbird-597583ed.js';
17
- import './__bundle-6316ce22-cd546820.js';
18
- import './__bundle-fbda47dd-9dbeee1d.js';
19
- import './openChannel-1548376e.js';
20
- import './__bundle-7dfccc8c-6c6e7ab4.js';
21
- import './groupChannel-17ffbb7f.js';
22
- import './actionTypes-2873dec9.js';
23
- import './index-03ccaf35.js';
24
- import './tslib.es6-710c6267.js';
16
+ import './sendbird-961b20e3.js';
17
+ import './__bundle-6316ce22-a7fd8d16.js';
18
+ import './__bundle-fbda47dd-0157c82e.js';
19
+ import './openChannel-ea516c45.js';
20
+ import './__bundle-7dfccc8c-85123da0.js';
21
+ import './groupChannel-333bdda8.js';
22
+ import './actionTypes-6723ddd6.js';
23
+ import './index-7e7eecb5.js';
24
+ import './tslib.es6-ea4b7876.js';
25
25
  import 'css-vars-ponyfill';
26
- import './uuid-60ae25c1.js';
27
- import './LocalizationContext-2a073ef0.js';
28
- import './index-5ec69689.js';
26
+ import './uuid-e8af582d.js';
27
+ import './LocalizationContext-397e33d0.js';
28
+ import './index-cd8f3035.js';
29
29
  import './ChannelSettings/components/ChannelSettingsUI.js';
30
30
  import './ChannelSettings/context.js';
31
- import './UserProfileContext-143a6a42.js';
32
- import './index-ced613ea.js';
31
+ import './UserProfileContext-70f3b69e.js';
32
+ import './index-55ffa40a.js';
33
33
  import './ui/Icon.js';
34
- import './index-ed39099a.js';
34
+ import './index-cc420cce.js';
35
35
  import './ui/Loader.js';
36
36
  import './ui/IconButton.js';
37
37
  import './ChannelSettings/components/ChannelProfile.js';
38
38
  import './ui/ChannelAvatar.js';
39
39
  import './ui/Avatar.js';
40
40
  import './ui/ImageRenderer.js';
41
- import './utils-2666bdfb.js';
41
+ import './utils-6195b8b0.js';
42
42
  import './ui/TextButton.js';
43
- import './color-798488ed.js';
43
+ import './color-c5e2ab33.js';
44
44
  import './ChannelSettings/components/EditDetailsModal.js';
45
45
  import './ui/Modal.js';
46
46
  import 'react-dom';
47
- import './index-c9cda9f6.js';
48
- import './index-6a47d16f.js';
47
+ import './index-6bf196c4.js';
48
+ import './index-fcc0e6dc.js';
49
49
  import './ui/Input.js';
50
50
  import './ChannelSettings/components/ModerationPanel.js';
51
51
  import './ui/Accordion.js';
52
52
  import './ui/AccordionGroup.js';
53
- import './context-406bf9f1.js';
54
- import './utils-301322ba.js';
53
+ import './context-57c4ac55.js';
54
+ import './utils-0cadb616.js';
55
55
  import './ui/Badge.js';
56
56
  import './ui/ContextMenu.js';
57
57
  import './ui/SortByRow.js';
@@ -60,40 +60,40 @@ import './ui/MutedAvatarOverlay.js';
60
60
  import './ui/UserProfile.js';
61
61
  import './ui/UserListItem.js';
62
62
  import './ui/Checkbox.js';
63
- import './MemberList-0acc36c3.js';
63
+ import './MemberList-464926f8.js';
64
64
  import './ChannelSettings/components/LeaveChannel.js';
65
65
  import './ChannelSettings/components/UserPanel.js';
66
- import './ChannelListProvider-9c82d370.js';
67
- import './topics-18836011.js';
66
+ import './ChannelListProvider-6bf1e9c7.js';
67
+ import './topics-84946297.js';
68
68
  import './ChannelList/components/ChannelListUI.js';
69
69
  import './ChannelList/components/ChannelListHeader.js';
70
70
  import './ChannelList/components/AddChannel.js';
71
71
  import './CreateChannel.js';
72
72
  import './CreateChannel/components/CreateChannelUI.js';
73
- import './CreateChannelProvider-0af2a424.js';
73
+ import './CreateChannelProvider-9a497a91.js';
74
74
  import './CreateChannel/components/InviteUsers.js';
75
75
  import './CreateChannel/components/SelectChannelType.js';
76
76
  import './ChannelList/components/ChannelPreview.js';
77
- import './index-4e56f382.js';
78
- import './index-b4944539.js';
79
- import './index-7f2be3d7.js';
77
+ import './index-30d6338a.js';
78
+ import './index-9564359d.js';
79
+ import './index-33e14ef9.js';
80
80
  import './ui/MentionUserLabel.js';
81
81
  import './Channel/components/TypingIndicator.js';
82
- import './ChannelProvider-d891cf5f.js';
83
- import './compareIds-2e073780.js';
84
- import './const-b88f8299.js';
82
+ import './ChannelProvider-b68db5fd.js';
83
+ import './compareIds-7233a846.js';
84
+ import './const-849d720a.js';
85
85
  import './ui/ReactionButton.js';
86
86
  import './ui/MessageStatus.js';
87
87
  import './ChannelList/components/ChannelPreviewAction.js';
88
88
  import './EditUserProfile.js';
89
- import './index-fa8ac00a.js';
89
+ import './index-ce26872b.js';
90
90
  import './Channel/components/ChannelUI.js';
91
91
  import './ui/ConnectionStatus.js';
92
92
  import './Channel/components/ChannelHeader.js';
93
93
  import './Channel/components/MessageList.js';
94
94
  import './Channel/components/Message.js';
95
95
  import './Channel/components/SuggestedMentionList.js';
96
- import './const-51fc1a68.js';
96
+ import './const-87ede7b1.js';
97
97
  import './ui/DateSeparator.js';
98
98
  import './ui/MessageInput.js';
99
99
  import './ui/MessageContent.js';
@@ -120,15 +120,15 @@ import './Channel/components/UnreadCount.js';
120
120
  import './Channel/components/MessageInput.js';
121
121
  import './ui/QuoteMessageInput.js';
122
122
  import './OpenChannel/components/OpenChannelUI.js';
123
- import './OpenChannelProvider-2e3fa2dd.js';
123
+ import './OpenChannelProvider-b936f710.js';
124
124
  import './OpenChannel/components/OpenChannelInput.js';
125
125
  import './OpenChannel/components/FrozenChannelNotification.js';
126
126
  import './OpenChannel/components/OpenChannelHeader.js';
127
127
  import './OpenChannel/components/OpenChannelMessageList.js';
128
128
  import './OpenChannel/components/OpenChannelMessage.js';
129
129
  import './ui/OpenchannelUserMessage.js';
130
- import './utils-19e84a08.js';
131
- import './openChannelUtils-09e4bac8.js';
130
+ import './utils-b6f36534.js';
131
+ import './openChannelUtils-5cc6b7cb.js';
132
132
  import './ui/OpenChannelAdminMessage.js';
133
133
  import './ui/OpenchannelOGMessage.js';
134
134
  import './ui/OpenchannelThumbnailMessage.js';
@@ -140,7 +140,7 @@ import './OpenChannelSettings/components/OperatorUI.js';
140
140
  import './OpenChannelSettings/components/OpenChannelProfile.js';
141
141
  import './ui/OpenChannelAvatar.js';
142
142
  import './OpenChannelSettings/components/EditDetailsModal.js';
143
- import './index-702d2072.js';
143
+ import './index-c6372f71.js';
144
144
  import './MessageSearch/components/MessageSearchUI.js';
145
145
  import './MessageSearch/context.js';
146
146
  import './ui/MessageSearchItem.js';
@@ -1,7 +1,7 @@
1
- import { t, r, i, O as On, H as st, e as ct, y, E, b as bn, T as Tt, L as Le, g as d, J as Ge, P as xe, q, F, h as U, x as S, Q as H, B, n as ne, a as n, V as kt, Y, W as de, X as J, s, o as ot, Z as h, _ as tt, I as Ie, a0 as je, a1 as pt, a2 as ct$1, a3 as dt, a4 as at, a5 as ot$1, a6 as wt, a7 as Tt$1, a8 as It, a9 as gt, aa as Jt, d as at$1, p, S as St, ab as En$1 } from './__bundle-6316ce22-cd546820.js';
2
- import { U as U$1, _, d as d$1, C, h as h$1, T, H as H$1, c, A } from './__bundle-7dfccc8c-6c6e7ab4.js';
1
+ import { t, r, i, O as On, H as st, e as ct, y, E, b as bn, T as Tt, L as Le, g as d, J as Ge, P as xe, q, F, h as U, x as S, Q as H, B, n as ne, a as n, V as kt, Y, W as de, X as J, s, o as ot, Z as h, _ as tt, I as Ie, a0 as je, a1 as pt, a2 as ct$1, a3 as dt, a4 as at, a5 as ot$1, a6 as wt, a7 as Tt$1, a8 as It, a9 as gt, aa as Jt, d as at$1, p, S as St, ab as En$1 } from './__bundle-6316ce22-a7fd8d16.js';
2
+ import { U as U$1, _, d as d$1, C, h as h$1, T, H as H$1, c, A } from './__bundle-7dfccc8c-85123da0.js';
3
3
 
4
4
  var en=function(r$1){function a(){var n=null!==r$1&&r$1.apply(this,arguments)||this;return n._channels=new Map,n._enteredChannelUrls=[],n}return t(a,r$1),Object.defineProperty(a.prototype,"enteredChannels",{get:function(){var n=this;return this._enteredChannelUrls.map((function(e){return n._channels.get(e)})).filter((function(n){return null!==n}))},enumerable:!1,configurable:!0}),a.prototype.isEnteredChannel=function(n){return this._enteredChannelUrls.includes(n)},a.prototype.enter=function(n){this._enteredChannelUrls.indexOf(n)<0&&this._enteredChannelUrls.push(n);},a.prototype.exit=function(n){var e=this._enteredChannelUrls.indexOf(n);e>=0&&this._enteredChannelUrls.splice(e,1);},a.prototype.exitAll=function(){this._enteredChannelUrls=[];},a.prototype.get=function(n){var r$1;return r(this,void 0,void 0,(function(){return i(this,(function(e){return [2,null!==(r$1=this._channels.get(n))&&void 0!==r$1?r$1:null]}))}))},a.prototype.upsert=function(n){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){return n.forEach((function(n){if(e._channels.has(n.url)){var t=e._channels.get(n.url);Object.assign(t,n);}else e._channels.set(n.url,n);})),[2]}))}))},a.prototype.remove=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(e){return this._channels.delete(n),this.exit(n),[2]}))}))},a.prototype.clear=function(){return r(this,void 0,void 0,(function(){return i(this,(function(n){return this._channels.clear(),this._enteredChannelUrls=[],[2]}))}))},a}(Le),tn={channelUrl:null,name:null,coverUrlOrImage:null,data:null,customType:null,operatorUserIds:null},rn=function(e){function t$1(n){var t=n.channelUrl,r=n.isInternalCall,a=e.call(this)||this;return a.method=d.GET,a.path="".concat(r?Ge:xe,"/").concat(encodeURIComponent(t)),a}return t(t$1,e),t$1}(q),an=function(e){function t$1(n,t){var r=e.call(this,n,t)||this;return r.channel=null,r.channel=new gn(n,t),r}return t(t$1,e),t$1}(F),sn=function(e){function t$1(n){var t=this,r=n.channelUrl,a=n.coverUrlOrImage,u=n.name,l=n.data,h=n.customType,p=n.operatorUserIds;return (t=e.call(this)||this).method=d.POST,t.path=xe,t.params=U({channel_url:r,cover_url:y("string",a)?a:null,cover_file:S(a)?a:null,name:u,data:l,custom_type:h,operators:p}),t}return t(t$1,e),t$1}(q);!function(e){function t$1(n,t){var r=e.call(this,n,t)||this;return r.channel=new gn(n,t),r}t(t$1,e);}(F);var on=function(e){function t$1(n){var t=n.channelUrl;return e.call(this,{code:"ENTR",payload:{channel_url:t},ackRequired:!0})||this}return t(t$1,e),t$1}(H),un=function(e){function t$1(n,t,r){var a,i,s=this;return s=e.call(this,n,"ENTR",r)||this,r.data&&(s.participantCount=null!==(a=r.data.participant_count)&&void 0!==a?a:0,s.user=new ct(n,r.data),s.ts=null!==(i=r.data.edge_ts)&&void 0!==i?i:0),s}return t(t$1,e),t$1}(B),cn=function(e){function t$1(n){var t=n.channelUrl;return e.call(this,{code:"EXIT",payload:{channel_url:t},ackRequired:!0})||this}return t(t$1,e),t$1}(H),ln=function(e){function t$1(n,t,r){var a,i,s=this;return s=e.call(this,n,"EXIT",r)||this,r.data&&(s.participantCount=null!==(a=r.data.participant_count)&&void 0!==a?a:0,s.user=new ct(n,r.data),s.ts=null!==(i=r.data.edge_ts)&&void 0!==i?i:0),s}return t(t$1,e),t$1}(B),hn={},dn=function(){function n$1(n,e){var t=e.sdkState,r=e.dispatcher,a=e.requestQueue,i=this;this._sdkState=t,this._requestQueue=a,this._dispatcher=r,this._openChannelCache=new en(n),this._openChannelHandlers=new Map,this._dispatcher.on((function(n){var e,t;if(n instanceof B)i._handleEvent(n);else if(n instanceof de&&n.stateType===J.CONNECTED){var r=i._openChannelCache.enteredChannels;try{for(var a=s(r),s$1=a.next();!s$1.done;s$1=a.next()){s$1.value.enter();}}catch(n){e={error:n};}finally{try{s$1&&!s$1.done&&(t=a.return)&&t.call(a);}finally{if(e)throw e.error}}}})),hn[n]=this;}return n$1.of=function(n){return hn[n]},n$1.prototype.buildOpenChannelFromSerializedData=function(n){var e=ot(n);return new gn(e._iid,gn.payloadify(e))},n$1.prototype.getChannelFromCache=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return [4,this._openChannelCache.get(n)];case 1:return [2,e.sent()]}}))}))},n$1.prototype.upsertChannelsToCache=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return [4,this._openChannelCache.upsert(n)];case 1:return e.sent(),[2]}}))}))},n$1.prototype.removeChannelsFromCache=function(n){return r(this,void 0,void 0,(function(){var e,r,a,i$1,s$1,o;return i(this,(function(t){switch(t.label){case 0:t.trys.push([0,5,6,7]),e=s(n),r=e.next(),t.label=1;case 1:return r.done?[3,4]:(a=r.value,[4,this._openChannelCache.remove(a)]);case 2:t.sent(),t.label=3;case 3:return r=e.next(),[3,1];case 4:return [3,7];case 5:return i$1=t.sent(),s$1={error:i$1},[3,7];case 6:try{r&&!r.done&&(o=e.return)&&o.call(e);}finally{if(s$1)throw s$1.error}return [7];case 7:return [2]}}))}))},n$1.prototype.setEnteredToCache=function(n){this._openChannelCache.enter(n.url);},n$1.prototype.setExitedToCache=function(n){this._openChannelCache.exit(n.url);},n$1.prototype._handleEvent=function(n){return r(this,void 0,void 0,(function(){var r$1,a,i$1,s$1,o,u,c$1,l,h$2,d,p,f,C$1,v,_$1,m,T$1,N,H,I,M,b,O,D,x,A$1,B,nn,en,tn,rn,an,sn,on,cn,hn,dn,pn,fn,Cn,vn,_n,yn,mn,gn,Un,En,wn,Tn,Nn,Hn,In,Mn,bn,On,Dn,xn,An,Pn,Ln=this;return i(this,(function(Rn){switch(Rn.label){case 0:switch(Rn.trys.push([0,51,,52]),n.code){case"MESG":case"FILE":case"ADMM":case"BRDM":return [3,1];case"MEDI":case"FEDI":case"AEDI":return [3,4];case"DELM":return [3,7];case"MRCT":return [3,10];case"MTHD":return [3,13];case"MCNT":return [3,16];case"SYEV":return [3,27]}return [3,50];case 1:return s$1=null,"MESG"===n.code?s$1=n.as(gt):"FILE"===n.code?s$1=n.as(Jt):"ADMM"!==n.code&&"BRDM"!=n.code||(s$1=n.as(A)),s$1?(r$1=s$1.message,a=s$1.isMentioned,r$1.channelType!==ne.OPEN?[3,3]:[4,this.getChannel(r$1.channelUrl,!0)]):[3,3];case 2:i$1=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,s$1,o,u;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())s$1=e.value,this._openChannelCache.isEnteredChannel(i$1.url)&&s$1.onMessageReceived(i$1,r$1),a&&s$1.onMentionReceived(i$1,r$1);}catch(n){o={error:n};}finally{try{e&&!e.done&&(u=n.return)&&u.call(n);}finally{if(o)throw o.error}}return [2]}))}))})),Rn.label=3;case 3:return [3,50];case 4:return s$1=null,"MEDI"===n.code?s$1=n.as(Tt$1):"FEDI"===n.code?s$1=n.as(It):"AEDI"===n.code&&(s$1=n.as(c)),s$1?(o=s$1.message).channelType!==ne.OPEN?[3,6]:[4,this.getChannel(o.channelUrl,!0)]:[3,6];case 5:u=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,r,a,i$1;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())r=e.value,this._openChannelCache.isEnteredChannel(u.url)&&r.onMessageUpdated(u,o);}catch(n){a={error:n};}finally{try{e&&!e.done&&(i$1=n.return)&&i$1.call(n);}finally{if(a)throw a.error}}return [2]}))}))})),Rn.label=6;case 6:return [3,50];case 7:return c$1=n.as(wt),M=c$1.channelUrl,p=c$1.channelType,l=c$1.messageId,p!==ne.OPEN?[3,9]:[4,this.getChannel(M,!0)];case 8:h$2=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,r,a,i$1;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())r=e.value,this._openChannelCache.isEnteredChannel(h$2.url)&&r.onMessageDeleted(h$2,l);}catch(n){a={error:n};}finally{try{e&&!e.done&&(i$1=n.return)&&i$1.call(n);}finally{if(a)throw a.error}}return [2]}))}))})),Rn.label=9;case 9:return [3,50];case 10:return d=n.as(H$1),M=d.channelUrl,p=d.channelType,f=d.event,p!==ne.OPEN?[3,12]:[4,this.getChannel(M,!0)];case 11:C$1=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,r,a;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onReactionUpdated(C$1,f);}catch(n){r={error:n};}finally{try{e&&!e.done&&(a=n.return)&&a.call(n);}finally{if(r)throw r.error}}return [2]}))}))})),Rn.label=12;case 12:return [3,50];case 13:return (v=n.as(T).event).channelType!==ne.OPEN?[3,15]:[4,this.getChannel(v.channelUrl,!0)];case 14:_$1=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,r,a;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onThreadInfoUpdated(_$1,v);}catch(n){r={error:n};}finally{try{e&&!e.done&&(a=n.return)&&a.call(n);}finally{if(r)throw r.error}}return [2]}))}))})),Rn.label=15;case 15:return [3,50];case 16:m=n.as(h$1).openChannelMemberCounts,T$1=[],Rn.label=17;case 17:Rn.trys.push([17,22,23,24]),N=s(m),H=N.next(),Rn.label=18;case 18:return H.done?[3,21]:(I=H.value,M=I.channelUrl,an=I.participantCount,b=I.updatedAt,[4,this.getChannelFromCache(M)]);case 19:(O=Rn.sent())&&O._updateParticipantCount(an,b)&&T$1.push(O),Rn.label=20;case 20:return H=N.next(),[3,18];case 21:return [3,24];case 22:return D=Rn.sent(),An={error:D},[3,24];case 23:try{H&&!H.done&&(Pn=N.return)&&Pn.call(N);}finally{if(An)throw An.error}return [7];case 24:return T$1.length>0?[4,this.upsertChannelsToCache(T$1)]:[3,26];case 25:Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){var n,e,r,a;return i(this,(function(t){try{for(n=s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onChannelMemberCountChanged(T$1);}catch(n){r={error:n};}finally{try{e&&!e.done&&(a=n.return)&&a.call(n);}finally{if(r)throw r.error}}return [2]}))}))})),Rn.label=26;case 26:return [3,50];case 27:if(!(x=n.as(C).event).isOpenChannelEvent)return [3,49];switch(x.category){case _.CHANNEL_ENTER:return [3,28];case _.CHANNEL_EXIT:return [3,30];case _.CHANNEL_OPERATOR_UPDATE:return [3,32];case _.USER_CHANNEL_MUTE:case _.USER_CHANNEL_UNMUTE:return [3,34];case _.USER_CHANNEL_BAN:case _.USER_CHANNEL_UNBAN:return [3,36];case _.CHANNEL_FREEZE:case _.CHANNEL_UNFREEZE:return [3,38];case _.CHANNEL_DELETED:return [3,40];case _.CHANNEL_PROP_CHANGED:return [3,43];case _.CHANNEL_META_DATA_CHANGED:return [3,45];case _.CHANNEL_META_COUNTERS_CHANGED:return [3,47]}return [3,49];case 28:return [4,this.getChannel(x.channelUrl,!0)];case 29:return A$1=Rn.sent(),B=n.as(un),an=B.participantCount,nn=B.user,en=A$1._updateParticipantCount(an,x.ts),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onUserEntered(A$1,nn),en&&n.onChannelParticipantCountChanged(A$1);})),[2]}))}))})),[3,49];case 30:return [4,this.getChannel(x.channelUrl,!0)];case 31:return tn=Rn.sent(),rn=n.as(ln),an=rn.participantCount,sn=rn.user,on=tn._updateParticipantCount(an,x.ts),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onUserExited(tn,sn),on&&n.onChannelParticipantCountChanged(tn);})),[2]}))}))})),[3,49];case 32:return [4,this.getChannel(x.channelUrl,!0)];case 33:return cn=Rn.sent(),hn=n.as(d$1).operators,cn.operators=hn,this.upsertChannelsToCache([cn]),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onOperatorUpdated(cn,hn);})),[2]}))}))})),[3,49];case 34:return [4,this.getChannel(x.channelUrl,!0)];case 35:return dn=Rn.sent(),pn=x.category===_.USER_CHANNEL_MUTE,fn=n.as(pn?at:ot$1).user,Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){pn?n.onUserMuted(dn,fn):n.onUserUnmuted(dn,fn);})),[2]}))}))})),[3,49];case 36:return [4,this.getChannel(x.channelUrl,!0)];case 37:return Cn=Rn.sent(),vn=x.category===_.USER_CHANNEL_BAN,_n=n.as(vn?ct$1:dt).user,Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){vn?n.onUserBanned(Cn,_n):n.onUserUnbanned(Cn,_n);})),[2]}))}))})),[3,49];case 38:return [4,this.getChannel(x.channelUrl,!0)];case 39:return yn=Rn.sent(),mn=n.as(pt).freeze,yn.isFrozen=mn,this.upsertChannelsToCache([yn]),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){mn?n.onChannelFrozen(yn):n.onChannelUnfrozen(yn);})),[2]}))}))})),[3,49];case 40:return [4,this.getChannel(x.channelUrl,!0)];case 41:return gn=Rn.sent(),[4,this.removeChannelsFromCache([gn.url])];case 42:return Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onChannelDeleted(gn.url,gn.channelType);})),[2]}))}))})),[3,49];case 43:return [4,this.getChannelWithoutCache(x.channelUrl,!0)];case 44:return Un=Rn.sent(),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onChannelChanged(Un);})),[2]}))}))})),[3,49];case 45:return [4,this.getChannel(x.channelUrl,!0)];case 46:return En=Rn.sent(),wn=n.as(je),Tn=wn.created,Nn=wn.updated,Hn=wn.deleted,Tn&&En._upsertCachedMetaData(Tn,x.ts),Nn&&En._upsertCachedMetaData(Nn,x.ts),Hn&&En._removeFromCachedMetaData(Hn,x.ts),Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){Tn&&n.onMetaDataCreated(En,Tn),Nn&&n.onMetaDataUpdated(En,Nn),Hn&&n.onMetaDataDeleted(En,Hn);})),[2]}))}))})),[3,49];case 47:return [4,this.getChannel(x.channelUrl,!0)];case 48:return In=Rn.sent(),Mn=n.as(tt),bn=Mn.created,On=Mn.updated,Dn=Mn.deleted,Ie((function(){return r(Ln,void 0,void 0,(function(){return i(this,(function(n){return this._openChannelHandlers.forEach((function(n){bn&&n.onMetaCounterCreated(In,bn),On&&n.onMetaCounterUpdated(In,On),Dn&&n.onMetaCounterDeleted(In,Dn);})),[2]}))}))})),[3,49];case 49:return [3,50];case 50:return [3,52];case 51:if(xn=Rn.sent(),h(xn))throw xn;return [3,52];case 52:return [2]}}))}))},n$1.prototype.addHandler=function(n,e){this._openChannelHandlers.set(n,e);},n$1.prototype.removeHandler=function(n){this._openChannelHandlers.delete(n);},n$1.prototype.clearHandler=function(){this._openChannelHandlers.clear();},n$1.prototype.getChannel=function(n,r$1){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:at$1(y("string",n)).throw(p.invalidParameters),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.getChannelFromCache(n)];case 2:return (e=t.sent())?[2,e]:[3,4];case 3:return t.sent(),[3,4];case 4:return [4,this.getChannelWithoutCache(n)];case 5:return [2,t.sent()]}}))}))},n$1.prototype.getChannelWithoutCache=function(n,r$1){return void 0===r$1&&(r$1=!1),r(this,void 0,void 0,(function(){var e,a,s;return i(this,(function(t){switch(t.label){case 0:return at$1(y("string",n)).throw(p.invalidParameters),e=new rn({channelUrl:n,isInternalCall:r$1}),[4,this._requestQueue.send(e)];case 1:return a=t.sent(),s=a.as(an).channel,[4,this.upsertChannelsToCache([s])];case 2:return t.sent(),[2,s]}}))}))},n$1.prototype.createChannel=function(n$1){return r(this,void 0,void 0,(function(){var e,r,o;return i(this,(function(t){switch(t.label){case 0:return n$1=n(n({},tn),n$1),at$1(function(n){return E("string",n.operatorUserIds,!0)&&(y("string",n.coverUrlOrImage)||S(n.coverUrlOrImage)||null===n.coverUrlOrImage)&&y("string",n.name,!0)&&y("string",n.data,!0)&&y("string",n.customType,!0)&&(y("string",n.channelUrl)&&/^\w+$/.test(n.channelUrl)||null===n.channelUrl)}(n$1)).throw(p.invalidParameters),e=new sn(n$1),[4,this._requestQueue.send(e)];case 1:return r=t.sent(),o=r.as(an).channel,this.upsertChannelsToCache([o]),[2,o]}}))}))},n$1}(),pn={name:null,coverUrlOrImage:null,data:null,customType:null,operatorUserIds:null},fn=function(e){function t$1(n){var t=this,r=n.channelUrl,a=n.token,i=n.limit;return (t=e.call(this)||this).method=d.GET,t.path="".concat(xe,"/").concat(encodeURIComponent(r),"/participants"),t.params={token:a,limit:i},t}return t(t$1,e),t$1}(q),Cn=function(e){function t$1(n,t){var r=e.call(this,n,t)||this;r.token=null,r.participants=[];var a=t.next,i=t.participants;return r.token=a,r.participants=i.map((function(e){return new ct(n,e)})),r}return t(t$1,e),t$1}(F),vn=function(r$1){function a(n,e,t){return r$1.call(this,n,e,ne.OPEN,t)||this}return t(a,r$1),a.prototype._validate=function(){return r$1.prototype._validate.call(this)},a.prototype.next=function(){return r(this,void 0,void 0,(function(){var n$1,e,r,a,i$1,s;return i(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,n$1=St.of(this._iid).requestQueue,e=new fn(n(n({},this),{token:this._token})),[4,n$1.send(e)]):[3,2]:[3,5];case 1:return r=t.sent(),a=r.as(Cn),i$1=a.participants,s=a.token,this._token=s,this._hasNext=!!s,this._isLoading=!1,[2,i$1];case 2:return [2,[]];case 3:throw p.queryInProgress;case 4:return [3,6];case 5:throw p.invalidParameters;case 6:return [2]}}))}))},a}(On),_n=function(e){function t$1(n){var t=this,r=n.channelUrl,a=n.coverUrlOrImage,u=n.name,l=n.data,h=n.customType,p=n.operatorUserIds;return (t=e.call(this)||this).method=d.PUT,t.path="".concat(xe,"/").concat(encodeURIComponent(r)),t.params=U({cover_url:y("string",a)?a:null,cover_file:S(a)?a:null,name:u,data:l,custom_type:h,operators:p}),t}return t(t$1,e),t$1}(q),yn=function(e){function t$1(n,t){var r=e.call(this,n,t)||this;return r.channel=new gn(n,t),r}return t(t$1,e),t$1}(F),mn=function(e){function t$1(n){var t=this,r=n.channelUrl;return (t=e.call(this)||this).method=d.DELETE,t.path="".concat(xe,"/").concat(encodeURIComponent(r)),t}return t(t$1,e),t$1}(q);!function(e){function t$1(n,t){return e.call(this,n,t)||this}t(t$1,e);}(F);var gn=function(r$1){function o(n,e){var t,a=this;return (a=r$1.call(this,n,e)||this)._lastParticipantCountUpdated=0,a.participantCount=0,a.operators=[],a.channelType=ne.OPEN,a.participantCount=null!==(t=e.participant_count)&&void 0!==t?t:0,a.operators=Array.isArray(e.operators)?e.operators.map((function(e){return new ct(n,e)})):[],a}return t(o,r$1),o.payloadify=function(n$1){return n$1?U(n(n({},kt.payloadify(n$1)),{participant_count:n$1.participantCount,operators:n$1.operators.map((function(n){return ct.payloadify(n)}))})):null},o.prototype.serialize=function(){return st(this)},o.prototype.isOperator=function(n){return n instanceof ct?this.isOperator(n.userId):this.operators.some((function(e){return e.userId===n}))},o.prototype._updateParticipantCount=function(n,e){return e>this._lastParticipantCountUpdated&&(this.participantCount=n,this._lastParticipantCountUpdated=e,!0)},o.prototype.createParticipantListQuery=function(n){return new vn(this._iid,this.url,n)},o.prototype.refresh=function(){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return [4,dn.of(this._iid).getChannelWithoutCache(this.url)];case 1:return [2,n.sent()]}}))}))},o.prototype.enter=function(){return r(this,void 0,void 0,(function(){var n,e,r,a,i$1,s;return i(this,(function(t){switch(t.label){case 0:return n=St.of(this._iid).requestQueue,e=new on({channelUrl:this.url}),[4,n.send(e)];case 1:return r=t.sent(),a=r.as(un),i$1=a.participantCount,s=a.ts,this._updateParticipantCount(i$1,s),dn.of(this._iid).setEnteredToCache(this),[2]}}))}))},o.prototype.exit=function(){return r(this,void 0,void 0,(function(){var n,e,r,a,i$1,s;return i(this,(function(t){switch(t.label){case 0:return n=St.of(this._iid).requestQueue,e=new cn({channelUrl:this.url}),[4,n.send(e)];case 1:return r=t.sent(),a=r.as(ln),i$1=a.participantCount,s=a.ts,this._updateParticipantCount(i$1,s),dn.of(this._iid).setExitedToCache(this),En$1.of(this._iid).fileMessageQueue.cancel(this),[2]}}))}))},o.prototype.updateChannel=function(n$1){return r(this,void 0,void 0,(function(){var e,r,o,u;return i(this,(function(t){switch(t.label){case 0:return n$1=n(n({},pn),n$1),at$1(function(n){return E("string",n.operatorUserIds,!0)&&(y("string",n.coverUrlOrImage)||S(n.coverUrlOrImage)||null===n.coverUrlOrImage)&&y("string",n.name,!0)&&y("string",n.data,!0)&&y("string",n.customType,!0)}(n$1)).throw(p.invalidParameters),e=St.of(this._iid).requestQueue,r=new _n(n({channelUrl:this.url},n$1)),[4,e.send(r)];case 1:return o=t.sent(),u=o.as(yn).channel,[4,dn.of(this._iid).upsertChannelsToCache([u])];case 2:return t.sent(),[2,u]}}))}))},o.prototype.updateChannelWithOperatorUserIds=function(n$1,r$1,a,i$1,s){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){return e=n(n({},pn),{name:n$1,coverUrlOrImage:r$1,data:a,operatorUserIds:i$1,customType:s}),[2,this.updateChannel(e)]}))}))},o.prototype.delete=function(){return r(this,void 0,void 0,(function(){var n,e;return i(this,(function(t){switch(t.label){case 0:return n=St.of(this._iid).requestQueue,e=new mn({channelUrl:this.url}),[4,n.send(e)];case 1:return t.sent(),[4,dn.of(this._iid).removeChannelsFromCache([this.url])];case 2:return t.sent(),[2]}}))}))},o}(kt),Un=function(e){function t$1(n){void 0===n&&(n={});var t=e.call(this)||this;return Object.keys(n).forEach((function(e){t.hasOwnProperty(e)&&(t[e]=n[e]);})),t}return t(t$1,e),t$1}(function(e){function t$1(){var n=null!==e&&e.apply(this,arguments)||this;return n.onUserEntered=Y,n.onUserExited=Y,n.onChannelParticipantCountChanged=Y,n}return t(t$1,e),t$1}(U$1)),En=function(e){function t$1(n){var t=this,r=n.token,a=n.limit,i=n.nameKeyword,s=n.urlKeyword,u=n.customTypes,l=n.includeFrozen,h=n.includeMetaData;return (t=e.call(this)||this).method=d.GET,t.path=xe,t.params=U({token:r,limit:a,name_contains:i,url_contains:s,custom_types:u,show_frozen:l,show_metadata:h}),t}return t(t$1,e),t$1}(q),wn=function(e){function t$1(n,t){var r=e.call(this,n,t)||this;r.token=null,r.channels=[],r.ts=null;var a=t.next,i=t.channels,s=t.ts;return r.token=a,i&&i.length>0&&(r.channels=i.map((function(e){return new gn(n,e)}))),r.ts="number"==typeof s?s:null,r}return t(t$1,e),t$1}(F),Tn=function(r$1){function s(n,e){var t,a,i,s,o,u=this;return (u=r$1.call(this,n,e)||this).includeFrozen=!0,u.includeMetaData=!0,u.nameKeyword=null,u.urlKeyword=null,u.customTypes=null,u.includeFrozen=null===(t=e.includeFrozen)||void 0===t||t,u.includeMetaData=null===(a=e.includeMetaData)||void 0===a||a,u.nameKeyword=null!==(i=e.nameKeyword)&&void 0!==i?i:null,u.urlKeyword=null!==(s=e.urlKeyword)&&void 0!==s?s:null,u.customTypes=null!==(o=e.customTypes)&&void 0!==o?o:null,u}return t(s,r$1),s.prototype._validate=function(){return r$1.prototype._validate.call(this)&&y("boolean",this.includeFrozen)&&y("boolean",this.includeMetaData)&&y("string",this.nameKeyword,!0)&&y("string",this.urlKeyword,!0)&&E("string",this.customTypes,!0)},s.prototype.next=function(){return r(this,void 0,void 0,(function(){var n$1,e,r,a,i$1,s;return i(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,4]:this._hasNext?(this._isLoading=!0,n$1=St.of(this._iid).requestQueue,e=new En(n(n({},this),{token:this._token})),[4,n$1.send(e)]):[3,3]:[3,6];case 1:return r=t.sent(),a=r.as(wn),i$1=a.channels,s=a.token,this._token=s,this._hasNext=!!s,[4,dn.of(this._iid).upsertChannelsToCache(i$1)];case 2:return t.sent(),this._isLoading=!1,[2,i$1];case 3:return [2,[]];case 4:throw p.queryInProgress;case 5:return [3,7];case 6:throw p.invalidParameters;case 7:return [2]}}))}))},s}(bn),Nn=function(r$1){function a(){var n=null!==r$1&&r$1.apply(this,arguments)||this;return n.name="openChannel",n}return t(a,r$1),a.prototype.init=function(n,e){var t=e.sdkState,a=e.dispatcher,i=e.sessionManager,s=e.requestQueue,o=e.logger,u=e.onlineDetector,c=e.cacheContext;r$1.prototype.init.call(this,n,{sdkState:t,dispatcher:a,sessionManager:i,requestQueue:s,logger:o,onlineDetector:u,cacheContext:c}),this._manager=new dn(n,{sdkState:t,dispatcher:a,requestQueue:s});},a.prototype.createOpenChannelListQuery=function(n){return void 0===n&&(n={}),new Tn(this._iid,n)},a.prototype.addOpenChannelHandler=function(n,e){this._manager.addHandler(n,e);},a.prototype.removeOpenChannelHandler=function(n){this._manager.removeHandler(n);},a.prototype.removeAllOpenChannelHandlers=function(){this._manager.clearHandler();},a.prototype.buildOpenChannelFromSerializedData=function(n){return this._manager.buildOpenChannelFromSerializedData(n)},a.prototype.getChannel=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(e){return [2,this._manager.getChannel(n)]}))}))},a.prototype.getChannelWithoutCache=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(e){return [2,this._manager.getChannelWithoutCache(n)]}))}))},a.prototype.createChannel=function(n){return void 0===n&&(n={}),r(this,void 0,void 0,(function(){return i(this,(function(e){return [2,this._manager.createChannel(n)]}))}))},a.prototype.createChannelWithOperatorUserIds=function(n$1,r$1,a,i$1,s){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){return (e=n({},tn)).name=n$1,e.coverUrlOrImage=r$1,e.data=a,e.operatorUserIds=i$1,e.customType=s,[2,this._manager.createChannel(e)]}))}))},a}(Tt);
5
5
 
6
6
  export { Nn as N, Un as U };
7
- //# sourceMappingURL=openChannel-1548376e.js.map
7
+ //# sourceMappingURL=openChannel-ea516c45.js.map