@sendbird/uikit-react 3.1.2-rc.1 → 3.1.2

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 (399) hide show
  1. package/App.js +35 -35
  2. package/Channel/components/ChannelHeader.js +19 -19
  3. package/Channel/components/ChannelUI.js +26 -26
  4. package/Channel/components/FileViewer.js +18 -18
  5. package/Channel/components/FrozenNotification.js +5 -5
  6. package/Channel/components/Message.js +23 -23
  7. package/Channel/components/MessageInput.js +20 -20
  8. package/Channel/components/MessageList.js +25 -25
  9. package/Channel/components/RemoveMessageModal.js +20 -20
  10. package/Channel/components/SuggestedMentionList.js +19 -19
  11. package/Channel/components/TypingIndicator.js +18 -18
  12. package/Channel/components/UnreadCount.js +5 -5
  13. package/Channel/context.js +17 -17
  14. package/Channel.js +26 -26
  15. package/ChannelList/components/AddChannel.js +14 -14
  16. package/ChannelList/components/ChannelListHeader.js +7 -7
  17. package/ChannelList/components/ChannelListUI.js +30 -30
  18. package/ChannelList/components/ChannelPreview.js +23 -23
  19. package/ChannelList/components/ChannelPreviewAction.js +18 -18
  20. package/ChannelList/context.js +12 -12
  21. package/ChannelList.js +30 -30
  22. package/{ChannelListProvider-c996f1ea.js → ChannelListProvider-9c82d370.js} +9 -9
  23. package/{ChannelListProvider-c996f1ea.js.map → ChannelListProvider-9c82d370.js.map} +1 -1
  24. package/{ChannelProvider-a061c377.js → ChannelProvider-d891cf5f.js} +11 -11
  25. package/{ChannelProvider-a061c377.js.map → ChannelProvider-d891cf5f.js.map} +1 -1
  26. package/ChannelSettings/components/ChannelProfile.js +12 -12
  27. package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  28. package/ChannelSettings/components/EditDetailsModal.js +12 -12
  29. package/ChannelSettings/components/LeaveChannel.js +11 -11
  30. package/ChannelSettings/components/ModerationPanel.js +19 -19
  31. package/ChannelSettings/components/UserListItem.js +12 -12
  32. package/ChannelSettings/components/UserPanel.js +14 -14
  33. package/ChannelSettings/context.js +3 -3
  34. package/ChannelSettings.js +22 -22
  35. package/CreateChannel/components/CreateChannelUI.js +14 -14
  36. package/CreateChannel/components/InviteUsers.js +14 -14
  37. package/CreateChannel/components/SelectChannelType.js +11 -11
  38. package/CreateChannel/context.js +4 -4
  39. package/CreateChannel.js +14 -14
  40. package/{CreateChannelProvider-7adde24e.js → CreateChannelProvider-0af2a424.js} +1 -1
  41. package/{CreateChannelProvider-7adde24e.js.map → CreateChannelProvider-0af2a424.js.map} +1 -1
  42. package/EditUserProfile/components/EditUserProfileUI.js +13 -13
  43. package/EditUserProfile.js +13 -13
  44. package/{LocalizationContext-a8de2fdc.js → LocalizationContext-2a073ef0.js} +3 -3
  45. package/{LocalizationContext-a8de2fdc.js.map → LocalizationContext-2a073ef0.js.map} +1 -1
  46. package/{MemberList-e5e5d810.js → MemberList-0acc36c3.js} +6 -6
  47. package/{MemberList-e5e5d810.js.map → MemberList-0acc36c3.js.map} +1 -1
  48. package/MessageSearch/components/MessageSearchUI.js +11 -11
  49. package/MessageSearch/context.js +2 -2
  50. package/MessageSearch.js +11 -11
  51. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  52. package/OpenChannel/components/OpenChannelHeader.js +17 -17
  53. package/OpenChannel/components/OpenChannelInput.js +21 -21
  54. package/OpenChannel/components/OpenChannelMessage.js +26 -26
  55. package/OpenChannel/components/OpenChannelMessageList.js +28 -28
  56. package/OpenChannel/components/OpenChannelUI.js +28 -28
  57. package/OpenChannel/context.js +14 -14
  58. package/OpenChannel.js +28 -28
  59. package/{OpenChannelProvider-24673613.js → OpenChannelProvider-2e3fa2dd.js} +10 -10
  60. package/{OpenChannelProvider-24673613.js.map → OpenChannelProvider-2e3fa2dd.js.map} +1 -1
  61. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  62. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  63. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  64. package/OpenChannelSettings/components/OperatorUI.js +20 -20
  65. package/OpenChannelSettings/components/ParticipantUI.js +18 -18
  66. package/OpenChannelSettings/context.js +6 -6
  67. package/OpenChannelSettings.js +21 -21
  68. package/SendbirdProvider.js +15 -15
  69. package/SendbirdProvider.js.map +1 -1
  70. package/{UserProfileContext-929b77e4.js → UserProfileContext-143a6a42.js} +1 -1
  71. package/{UserProfileContext-929b77e4.js.map → UserProfileContext-143a6a42.js.map} +1 -1
  72. package/{__bundle-6316ce22-b9197055.js → __bundle-6316ce22-cd546820.js} +1 -1
  73. package/{__bundle-6316ce22-b9197055.js.map → __bundle-6316ce22-cd546820.js.map} +1 -1
  74. package/{__bundle-7dfccc8c-c3a44ee7.js → __bundle-7dfccc8c-6c6e7ab4.js} +2 -2
  75. package/{__bundle-7dfccc8c-c3a44ee7.js.map → __bundle-7dfccc8c-6c6e7ab4.js.map} +1 -1
  76. package/{__bundle-fbda47dd-e0e8f270.js → __bundle-fbda47dd-9dbeee1d.js} +2 -2
  77. package/{__bundle-fbda47dd-e0e8f270.js.map → __bundle-fbda47dd-9dbeee1d.js.map} +1 -1
  78. package/{_rollupPluginBabelHelpers-c664d679.js → _rollupPluginBabelHelpers-3043541a.js} +1 -1
  79. package/{_rollupPluginBabelHelpers-c664d679.js.map → _rollupPluginBabelHelpers-3043541a.js.map} +1 -1
  80. package/{actionTypes-0bb405f7.js → actionTypes-2873dec9.js} +1 -1
  81. package/{actionTypes-0bb405f7.js.map → actionTypes-2873dec9.js.map} +1 -1
  82. package/cjs/App.js +35 -35
  83. package/cjs/Channel/components/ChannelHeader.js +19 -19
  84. package/cjs/Channel/components/ChannelUI.js +26 -26
  85. package/cjs/Channel/components/FileViewer.js +18 -18
  86. package/cjs/Channel/components/FrozenNotification.js +5 -5
  87. package/cjs/Channel/components/Message.js +23 -23
  88. package/cjs/Channel/components/MessageInput.js +20 -20
  89. package/cjs/Channel/components/MessageList.js +25 -25
  90. package/cjs/Channel/components/RemoveMessageModal.js +20 -20
  91. package/cjs/Channel/components/SuggestedMentionList.js +19 -19
  92. package/cjs/Channel/components/TypingIndicator.js +18 -18
  93. package/cjs/Channel/components/UnreadCount.js +5 -5
  94. package/cjs/Channel/context.js +17 -17
  95. package/cjs/Channel.js +26 -26
  96. package/cjs/ChannelList/components/AddChannel.js +14 -14
  97. package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
  98. package/cjs/ChannelList/components/ChannelListUI.js +30 -30
  99. package/cjs/ChannelList/components/ChannelPreview.js +23 -23
  100. package/cjs/ChannelList/components/ChannelPreviewAction.js +18 -18
  101. package/cjs/ChannelList/context.js +12 -12
  102. package/cjs/ChannelList.js +30 -30
  103. package/cjs/{ChannelListProvider-332647b5.js → ChannelListProvider-b60fe6ed.js} +9 -9
  104. package/cjs/{ChannelListProvider-332647b5.js.map → ChannelListProvider-b60fe6ed.js.map} +1 -1
  105. package/cjs/{ChannelProvider-faced097.js → ChannelProvider-b21b3c2a.js} +11 -11
  106. package/cjs/{ChannelProvider-faced097.js.map → ChannelProvider-b21b3c2a.js.map} +1 -1
  107. package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
  108. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
  109. package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
  110. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  111. package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
  112. package/cjs/ChannelSettings/components/UserListItem.js +12 -12
  113. package/cjs/ChannelSettings/components/UserPanel.js +14 -14
  114. package/cjs/ChannelSettings/context.js +3 -3
  115. package/cjs/ChannelSettings.js +22 -22
  116. package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
  117. package/cjs/CreateChannel/components/InviteUsers.js +14 -14
  118. package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
  119. package/cjs/CreateChannel/context.js +4 -4
  120. package/cjs/CreateChannel.js +14 -14
  121. package/cjs/{CreateChannelProvider-5984b10e.js → CreateChannelProvider-71e1e6d6.js} +1 -1
  122. package/cjs/{CreateChannelProvider-5984b10e.js.map → CreateChannelProvider-71e1e6d6.js.map} +1 -1
  123. package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
  124. package/cjs/EditUserProfile.js +13 -13
  125. package/cjs/{LocalizationContext-84d3ac9f.js → LocalizationContext-da62a103.js} +3 -3
  126. package/cjs/{LocalizationContext-84d3ac9f.js.map → LocalizationContext-da62a103.js.map} +1 -1
  127. package/cjs/{MemberList-4000c963.js → MemberList-442ade8c.js} +6 -6
  128. package/cjs/{MemberList-4000c963.js.map → MemberList-442ade8c.js.map} +1 -1
  129. package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
  130. package/cjs/MessageSearch/context.js +2 -2
  131. package/cjs/MessageSearch.js +11 -11
  132. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  133. package/cjs/OpenChannel/components/OpenChannelHeader.js +17 -17
  134. package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
  135. package/cjs/OpenChannel/components/OpenChannelMessage.js +26 -26
  136. package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
  137. package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
  138. package/cjs/OpenChannel/context.js +14 -14
  139. package/cjs/OpenChannel.js +28 -28
  140. package/cjs/{OpenChannelProvider-042867f0.js → OpenChannelProvider-bc8d7f0d.js} +10 -10
  141. package/cjs/{OpenChannelProvider-042867f0.js.map → OpenChannelProvider-bc8d7f0d.js.map} +1 -1
  142. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  143. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  144. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
  145. package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
  146. package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
  147. package/cjs/OpenChannelSettings/context.js +6 -6
  148. package/cjs/OpenChannelSettings.js +21 -21
  149. package/cjs/SendbirdProvider.js +15 -15
  150. package/cjs/SendbirdProvider.js.map +1 -1
  151. package/cjs/{UserProfileContext-910971fc.js → UserProfileContext-891590a7.js} +1 -1
  152. package/cjs/{UserProfileContext-910971fc.js.map → UserProfileContext-891590a7.js.map} +1 -1
  153. package/cjs/{__bundle-6316ce22-acb43d8b.js → __bundle-6316ce22-c06e03fc.js} +1 -1
  154. package/cjs/{__bundle-6316ce22-acb43d8b.js.map → __bundle-6316ce22-c06e03fc.js.map} +1 -1
  155. package/cjs/{__bundle-7dfccc8c-c3051ee3.js → __bundle-7dfccc8c-dcc1c854.js} +2 -2
  156. package/cjs/{__bundle-7dfccc8c-c3051ee3.js.map → __bundle-7dfccc8c-dcc1c854.js.map} +1 -1
  157. package/cjs/{__bundle-fbda47dd-313c7e5d.js → __bundle-fbda47dd-1a2c2d97.js} +2 -2
  158. package/cjs/{__bundle-fbda47dd-313c7e5d.js.map → __bundle-fbda47dd-1a2c2d97.js.map} +1 -1
  159. package/cjs/{_rollupPluginBabelHelpers-a016af9b.js → _rollupPluginBabelHelpers-4265e501.js} +1 -1
  160. package/cjs/{_rollupPluginBabelHelpers-a016af9b.js.map → _rollupPluginBabelHelpers-4265e501.js.map} +1 -1
  161. package/cjs/{actionTypes-dcb6f12d.js → actionTypes-7c5a0f8b.js} +1 -1
  162. package/cjs/{actionTypes-dcb6f12d.js.map → actionTypes-7c5a0f8b.js.map} +1 -1
  163. package/cjs/{color-dacce310.js → color-42e34a43.js} +1 -1
  164. package/cjs/{color-dacce310.js.map → color-42e34a43.js.map} +1 -1
  165. package/cjs/{compareIds-30f8055b.js → compareIds-26079db4.js} +1 -1
  166. package/cjs/{compareIds-30f8055b.js.map → compareIds-26079db4.js.map} +1 -1
  167. package/cjs/{const-896e3a63.js → const-8a9ec74c.js} +1 -1
  168. package/cjs/{const-896e3a63.js.map → const-8a9ec74c.js.map} +1 -1
  169. package/cjs/{const-d144af7c.js → const-c1a4604d.js} +1 -1
  170. package/cjs/{const-d144af7c.js.map → const-c1a4604d.js.map} +1 -1
  171. package/cjs/{context-01845539.js → context-82ac7edc.js} +2 -2
  172. package/cjs/{context-01845539.js.map → context-82ac7edc.js.map} +1 -1
  173. package/cjs/{groupChannel-6d96e7e4.js → groupChannel-11ed3837.js} +4 -4
  174. package/cjs/{groupChannel-6d96e7e4.js.map → groupChannel-11ed3837.js.map} +1 -1
  175. package/cjs/handlers/ConnectionHandler.js +3 -3
  176. package/cjs/handlers/GroupChannelHandler.js +4 -4
  177. package/cjs/handlers/OpenChannelHandler.js +3 -3
  178. package/cjs/handlers/UserEventHandler.js +3 -3
  179. package/cjs/{index-5350f579.js → index-05692021.js} +3 -3
  180. package/cjs/{index-5350f579.js.map → index-05692021.js.map} +1 -1
  181. package/cjs/{index-704081e2.js → index-06c3dca9.js} +2 -2
  182. package/cjs/{index-704081e2.js.map → index-06c3dca9.js.map} +1 -1
  183. package/cjs/{index-6db26f9d.js → index-089e0fba.js} +3 -3
  184. package/cjs/{index-6db26f9d.js.map → index-089e0fba.js.map} +1 -1
  185. package/cjs/{index-bec2f801.js → index-25336220.js} +1 -1
  186. package/cjs/{index-bec2f801.js.map → index-25336220.js.map} +1 -1
  187. package/cjs/{index-bfbb5bcd.js → index-32562627.js} +1 -1
  188. package/cjs/{index-bfbb5bcd.js.map → index-32562627.js.map} +1 -1
  189. package/cjs/{index-5a5cbb28.js → index-81e2234a.js} +9 -9
  190. package/cjs/{index-5a5cbb28.js.map → index-81e2234a.js.map} +1 -1
  191. package/cjs/{index-234e186e.js → index-82646d4d.js} +6 -6
  192. package/cjs/{index-234e186e.js.map → index-82646d4d.js.map} +1 -1
  193. package/cjs/{index-ee2fd0cf.js → index-b440f8c6.js} +4 -4
  194. package/cjs/{index-ee2fd0cf.js.map → index-b440f8c6.js.map} +1 -1
  195. package/cjs/{index-d6966c0d.js → index-c79f62fd.js} +4 -4
  196. package/cjs/{index-d6966c0d.js.map → index-c79f62fd.js.map} +1 -1
  197. package/cjs/{index-b5b5772d.js → index-f5cb5c7f.js} +2 -2
  198. package/cjs/{index-b5b5772d.js.map → index-f5cb5c7f.js.map} +1 -1
  199. package/cjs/{index-5ee0b6e5.js → index-fb127b1f.js} +2 -2
  200. package/cjs/{index-5ee0b6e5.js.map → index-fb127b1f.js.map} +1 -1
  201. package/cjs/index.js +39 -39
  202. package/cjs/{openChannel-2891d860.js → openChannel-76345cfa.js} +3 -3
  203. package/cjs/{openChannel-2891d860.js.map → openChannel-76345cfa.js.map} +1 -1
  204. package/cjs/{openChannelUtils-fd36e419.js → openChannelUtils-56d57483.js} +1 -1
  205. package/cjs/{openChannelUtils-fd36e419.js.map → openChannelUtils-56d57483.js.map} +1 -1
  206. package/cjs/{sendbird-9dd8f715.js → sendbird-dfd051c8.js} +3 -3
  207. package/cjs/{sendbird-9dd8f715.js.map → sendbird-dfd051c8.js.map} +1 -1
  208. package/cjs/sendbirdSelectors.js +2 -2
  209. package/cjs/{stringSet-558f83b3.js → stringSet-857a128c.js} +1 -1
  210. package/cjs/{stringSet-558f83b3.js.map → stringSet-857a128c.js.map} +1 -1
  211. package/cjs/{topics-1ee2d4c4.js → topics-a755c9c6.js} +1 -1
  212. package/cjs/{topics-1ee2d4c4.js.map → topics-a755c9c6.js.map} +1 -1
  213. package/cjs/{tslib.es6-e27033df.js → tslib.es6-ba69891c.js} +1 -1
  214. package/cjs/{tslib.es6-e27033df.js.map → tslib.es6-ba69891c.js.map} +1 -1
  215. package/cjs/ui/Accordion.js +4 -4
  216. package/cjs/ui/AccordionGroup.js +2 -2
  217. package/cjs/ui/AdminMessage.js +4 -4
  218. package/cjs/ui/Avatar.js +3 -3
  219. package/cjs/ui/Badge.js +6 -6
  220. package/cjs/ui/Button.js +5 -5
  221. package/cjs/ui/ChannelAvatar.js +4 -4
  222. package/cjs/ui/ChannelPreview.js +12 -12
  223. package/cjs/ui/ChatHeader.js +8 -8
  224. package/cjs/ui/ConnectionStatus.js +5 -5
  225. package/cjs/ui/ContextMenu.js +6 -6
  226. package/cjs/ui/DateSeparator.js +5 -5
  227. package/cjs/ui/EmojiReactions.js +8 -8
  228. package/cjs/ui/FileMessageItemBody.js +6 -6
  229. package/cjs/ui/FileViewer.js +9 -9
  230. package/cjs/ui/Icon.js +1 -1
  231. package/cjs/ui/IconButton.js +1 -1
  232. package/cjs/ui/ImageRenderer.js +1 -1
  233. package/cjs/ui/Input.js +3 -3
  234. package/cjs/ui/Label.js +3 -3
  235. package/cjs/ui/LinkLabel.js +3 -3
  236. package/cjs/ui/Loader.js +2 -2
  237. package/cjs/ui/MentionLabel.js +11 -11
  238. package/cjs/ui/MessageContent.js +14 -14
  239. package/cjs/ui/MessageInput.js +10 -10
  240. package/cjs/ui/MessageItemMenu.js +8 -8
  241. package/cjs/ui/MessageItemReactionMenu.js +6 -6
  242. package/cjs/ui/MessageSearchFileItem.js +10 -10
  243. package/cjs/ui/MessageSearchItem.js +10 -10
  244. package/cjs/ui/MessageStatus.js +8 -8
  245. package/cjs/ui/Modal.js +8 -8
  246. package/cjs/ui/MutedAvatarOverlay.js +1 -1
  247. package/cjs/ui/OGMessageItemBody.js +11 -11
  248. package/cjs/ui/OpenChannelAdminMessage.js +4 -4
  249. package/cjs/ui/OpenChannelAvatar.js +7 -7
  250. package/cjs/ui/OpenchannelConversationHeader.js +7 -7
  251. package/cjs/ui/OpenchannelFileMessage.js +15 -15
  252. package/cjs/ui/OpenchannelOGMessage.js +15 -15
  253. package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
  254. package/cjs/ui/OpenchannelUserMessage.js +15 -15
  255. package/cjs/ui/PlaceHolder.js +7 -7
  256. package/cjs/ui/QuoteMessage.js +7 -7
  257. package/cjs/ui/QuoteMessageInput.js +7 -7
  258. package/cjs/ui/ReactionBadge.js +4 -4
  259. package/cjs/ui/ReactionButton.js +1 -1
  260. package/cjs/ui/SortByRow.js +2 -2
  261. package/cjs/ui/TextButton.js +2 -2
  262. package/cjs/ui/TextMessageItemBody.js +11 -11
  263. package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
  264. package/cjs/ui/Tooltip.js +4 -4
  265. package/cjs/ui/TooltipWrapper.js +1 -1
  266. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  267. package/cjs/ui/UserListItem.js +12 -12
  268. package/cjs/ui/UserProfile.js +10 -10
  269. package/cjs/ui/Word.js +11 -11
  270. package/cjs/useSendbirdStateContext.js +1 -1
  271. package/cjs/{utils-9b806a3e.js → utils-bf57a41a.js} +1 -1
  272. package/cjs/{utils-9b806a3e.js.map → utils-bf57a41a.js.map} +1 -1
  273. package/cjs/{utils-c47d1e8e.js → utils-bfbac88e.js} +1 -1
  274. package/cjs/{utils-c47d1e8e.js.map → utils-bfbac88e.js.map} +1 -1
  275. package/cjs/{utils-007dcdba.js → utils-c39eb349.js} +1 -1
  276. package/cjs/{utils-007dcdba.js.map → utils-c39eb349.js.map} +1 -1
  277. package/cjs/{uuid-72d43c80.js → uuid-49679ac2.js} +1 -1
  278. package/cjs/{uuid-72d43c80.js.map → uuid-49679ac2.js.map} +1 -1
  279. package/cjs/withSendbird.js +1 -1
  280. package/{color-cb1ed76e.js → color-798488ed.js} +1 -1
  281. package/{color-cb1ed76e.js.map → color-798488ed.js.map} +1 -1
  282. package/{compareIds-1099f54e.js → compareIds-2e073780.js} +1 -1
  283. package/{compareIds-1099f54e.js.map → compareIds-2e073780.js.map} +1 -1
  284. package/{const-2ceebd19.js → const-51fc1a68.js} +1 -1
  285. package/{const-2ceebd19.js.map → const-51fc1a68.js.map} +1 -1
  286. package/{const-4f478366.js → const-b88f8299.js} +1 -1
  287. package/{const-4f478366.js.map → const-b88f8299.js.map} +1 -1
  288. package/{context-d34f14e9.js → context-406bf9f1.js} +2 -2
  289. package/{context-d34f14e9.js.map → context-406bf9f1.js.map} +1 -1
  290. package/{groupChannel-df63e5f2.js → groupChannel-17ffbb7f.js} +4 -4
  291. package/{groupChannel-df63e5f2.js.map → groupChannel-17ffbb7f.js.map} +1 -1
  292. package/handlers/ConnectionHandler.js +4 -4
  293. package/handlers/GroupChannelHandler.js +5 -5
  294. package/handlers/OpenChannelHandler.js +4 -4
  295. package/handlers/UserEventHandler.js +4 -4
  296. package/{index-639db833.js → index-03ccaf35.js} +2 -2
  297. package/{index-639db833.js.map → index-03ccaf35.js.map} +1 -1
  298. package/{index-9f7bc963.js → index-4e56f382.js} +4 -4
  299. package/{index-9f7bc963.js.map → index-4e56f382.js.map} +1 -1
  300. package/{index-f392bd44.js → index-5ec69689.js} +1 -1
  301. package/{index-f392bd44.js.map → index-5ec69689.js.map} +1 -1
  302. package/{index-8b26f4f3.js → index-6a47d16f.js} +3 -3
  303. package/{index-8b26f4f3.js.map → index-6a47d16f.js.map} +1 -1
  304. package/{index-36f78aed.js → index-702d2072.js} +9 -9
  305. package/{index-36f78aed.js.map → index-702d2072.js.map} +1 -1
  306. package/{index-c6093226.js → index-7f2be3d7.js} +2 -2
  307. package/{index-c6093226.js.map → index-7f2be3d7.js.map} +1 -1
  308. package/{index-04a36bb6.js → index-b4944539.js} +2 -2
  309. package/{index-04a36bb6.js.map → index-b4944539.js.map} +1 -1
  310. package/{index-726762e7.js → index-c9cda9f6.js} +1 -1
  311. package/{index-726762e7.js.map → index-c9cda9f6.js.map} +1 -1
  312. package/{index-da4fcb79.js → index-ced613ea.js} +4 -4
  313. package/{index-da4fcb79.js.map → index-ced613ea.js.map} +1 -1
  314. package/{index-ed66e9b7.js → index-ed39099a.js} +3 -3
  315. package/{index-ed66e9b7.js.map → index-ed39099a.js.map} +1 -1
  316. package/{index-5131dac7.js → index-fa8ac00a.js} +6 -6
  317. package/{index-5131dac7.js.map → index-fa8ac00a.js.map} +1 -1
  318. package/index.d.ts +1 -1
  319. package/index.js +39 -39
  320. package/{openChannel-7bf250d9.js → openChannel-1548376e.js} +3 -3
  321. package/{openChannel-7bf250d9.js.map → openChannel-1548376e.js.map} +1 -1
  322. package/{openChannelUtils-4c2890ef.js → openChannelUtils-09e4bac8.js} +1 -1
  323. package/{openChannelUtils-4c2890ef.js.map → openChannelUtils-09e4bac8.js.map} +1 -1
  324. package/package-lock.json +2 -2
  325. package/package.json +1 -1
  326. package/{sendbird-7b09e4b2.js → sendbird-597583ed.js} +3 -3
  327. package/{sendbird-7b09e4b2.js.map → sendbird-597583ed.js.map} +1 -1
  328. package/sendbirdSelectors.js +2 -2
  329. package/{stringSet-a761f45e.js → stringSet-647493ce.js} +1 -1
  330. package/{stringSet-a761f45e.js.map → stringSet-647493ce.js.map} +1 -1
  331. package/{topics-6f5089f9.js → topics-18836011.js} +1 -1
  332. package/{topics-6f5089f9.js.map → topics-18836011.js.map} +1 -1
  333. package/{tslib.es6-b4d5e936.js → tslib.es6-710c6267.js} +1 -1
  334. package/{tslib.es6-b4d5e936.js.map → tslib.es6-710c6267.js.map} +1 -1
  335. package/ui/Accordion.js +4 -4
  336. package/ui/AccordionGroup.js +2 -2
  337. package/ui/AdminMessage.js +4 -4
  338. package/ui/Avatar.js +3 -3
  339. package/ui/Badge.js +6 -6
  340. package/ui/Button.js +5 -5
  341. package/ui/ChannelAvatar.js +4 -4
  342. package/ui/ChannelPreview.js +12 -12
  343. package/ui/ChatHeader.js +8 -8
  344. package/ui/ConnectionStatus.js +5 -5
  345. package/ui/ContextMenu.js +6 -6
  346. package/ui/DateSeparator.js +5 -5
  347. package/ui/EmojiReactions.js +8 -8
  348. package/ui/FileMessageItemBody.js +6 -6
  349. package/ui/FileViewer.js +9 -9
  350. package/ui/Icon.js +1 -1
  351. package/ui/IconButton.js +1 -1
  352. package/ui/ImageRenderer.js +1 -1
  353. package/ui/Input.js +3 -3
  354. package/ui/Label.js +3 -3
  355. package/ui/LinkLabel.js +3 -3
  356. package/ui/Loader.js +2 -2
  357. package/ui/MentionLabel.js +11 -11
  358. package/ui/MessageContent.js +14 -14
  359. package/ui/MessageInput.js +10 -10
  360. package/ui/MessageItemMenu.js +8 -8
  361. package/ui/MessageItemReactionMenu.js +6 -6
  362. package/ui/MessageSearchFileItem.js +10 -10
  363. package/ui/MessageSearchItem.js +10 -10
  364. package/ui/MessageStatus.js +8 -8
  365. package/ui/Modal.js +8 -8
  366. package/ui/MutedAvatarOverlay.js +1 -1
  367. package/ui/OGMessageItemBody.js +11 -11
  368. package/ui/OpenChannelAdminMessage.js +4 -4
  369. package/ui/OpenChannelAvatar.js +7 -7
  370. package/ui/OpenchannelConversationHeader.js +7 -7
  371. package/ui/OpenchannelFileMessage.js +15 -15
  372. package/ui/OpenchannelOGMessage.js +15 -15
  373. package/ui/OpenchannelThumbnailMessage.js +14 -14
  374. package/ui/OpenchannelUserMessage.js +15 -15
  375. package/ui/PlaceHolder.js +7 -7
  376. package/ui/QuoteMessage.js +7 -7
  377. package/ui/QuoteMessageInput.js +7 -7
  378. package/ui/ReactionBadge.js +4 -4
  379. package/ui/ReactionButton.js +1 -1
  380. package/ui/SortByRow.js +2 -2
  381. package/ui/TextButton.js +2 -2
  382. package/ui/TextMessageItemBody.js +11 -11
  383. package/ui/ThumbnailMessageItemBody.js +3 -3
  384. package/ui/Tooltip.js +4 -4
  385. package/ui/TooltipWrapper.js +1 -1
  386. package/ui/UnknownMessageItemBody.js +7 -7
  387. package/ui/UserListItem.js +12 -12
  388. package/ui/UserProfile.js +10 -10
  389. package/ui/Word.js +11 -11
  390. package/useSendbirdStateContext.js +1 -1
  391. package/{utils-b0fa8ce9.js → utils-19e84a08.js} +1 -1
  392. package/{utils-b0fa8ce9.js.map → utils-19e84a08.js.map} +1 -1
  393. package/{utils-e2f7dc6d.js → utils-2666bdfb.js} +1 -1
  394. package/{utils-e2f7dc6d.js.map → utils-2666bdfb.js.map} +1 -1
  395. package/{utils-4a93fe15.js → utils-301322ba.js} +1 -1
  396. package/{utils-4a93fe15.js.map → utils-301322ba.js.map} +1 -1
  397. package/{uuid-bf4fe830.js → uuid-60ae25c1.js} +1 -1
  398. package/{uuid-bf4fe830.js.map → uuid-60ae25c1.js.map} +1 -1
  399. package/withSendbird.js +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-b5b5772d.js');
3
+ var index = require('./index-f5cb5c7f.js');
4
4
 
5
5
  /**
6
6
  * @name startOfDay
@@ -64,4 +64,4 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
64
64
 
65
65
  exports.isSameDay = isSameDay;
66
66
  exports.startOfDay = startOfDay;
67
- //# sourceMappingURL=index-5ee0b6e5.js.map
67
+ //# sourceMappingURL=index-fb127b1f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-5ee0b6e5.js","sources":["../../node_modules/date-fns/esm/startOfDay/index.js","../../node_modules/date-fns/esm/isSameDay/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\n\nexport default function startOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(0, 0, 0, 0);\n return date;\n}","import startOfDay from \"../startOfDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day?\n *\n * @description\n * Are the given dates in the same day?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n */\n\nexport default function isSameDay(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeftStartOfDay = startOfDay(dirtyDateLeft);\n var dateRightStartOfDay = startOfDay(dirtyDateRight);\n return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();\n}"],"names":["requiredArgs","toDate"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,SAAS,EAAE;AAC9C,EAAEA,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,IAAI,GAAGC,YAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5B,EAAE,OAAO,IAAI,CAAC;AACd;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE;AACjE,EAAED,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,kBAAkB,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;AACrD,EAAE,IAAI,mBAAmB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AACvD,EAAE,OAAO,kBAAkB,CAAC,OAAO,EAAE,KAAK,mBAAmB,CAAC,OAAO,EAAE,CAAC;AACxE;;;;;"}
1
+ {"version":3,"file":"index-fb127b1f.js","sources":["../../node_modules/date-fns/esm/startOfDay/index.js","../../node_modules/date-fns/esm/isSameDay/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\n\nexport default function startOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(0, 0, 0, 0);\n return date;\n}","import startOfDay from \"../startOfDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day?\n *\n * @description\n * Are the given dates in the same day?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n */\n\nexport default function isSameDay(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeftStartOfDay = startOfDay(dirtyDateLeft);\n var dateRightStartOfDay = startOfDay(dirtyDateRight);\n return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();\n}"],"names":["requiredArgs","toDate"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,SAAS,EAAE;AAC9C,EAAEA,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,IAAI,GAAGC,YAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5B,EAAE,OAAO,IAAI,CAAC;AACd;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE;AACjE,EAAED,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,kBAAkB,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;AACrD,EAAE,IAAI,mBAAmB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AACvD,EAAE,OAAO,kBAAkB,CAAC,OAAO,EAAE,KAAK,mBAAmB,CAAC,OAAO,EAAE,CAAC;AACxE;;;;;"}
package/cjs/index.js CHANGED
@@ -7,55 +7,55 @@ var App = require('./App.js');
7
7
  var ChannelSettings = require('./ChannelSettings.js');
8
8
  var ChannelList = require('./ChannelList.js');
9
9
  var Channel = require('./Channel.js');
10
- var stringSet = require('./stringSet-558f83b3.js');
10
+ var stringSet = require('./stringSet-857a128c.js');
11
11
  var OpenChannel = require('./OpenChannel.js');
12
12
  var OpenChannelSettings = require('./OpenChannelSettings.js');
13
13
  var MessageSearch = require('./MessageSearch.js');
14
14
  var withSendbird = require('./withSendbird.js');
15
15
  var sendbirdSelectors = require('./sendbirdSelectors.js');
16
16
  var useSendbirdStateContext = require('./useSendbirdStateContext.js');
17
- require('./_rollupPluginBabelHelpers-a016af9b.js');
17
+ require('./_rollupPluginBabelHelpers-4265e501.js');
18
18
  require('react');
19
19
  require('prop-types');
20
- require('./sendbird-9dd8f715.js');
21
- require('./__bundle-6316ce22-acb43d8b.js');
22
- require('./__bundle-fbda47dd-313c7e5d.js');
23
- require('./openChannel-2891d860.js');
24
- require('./__bundle-7dfccc8c-c3051ee3.js');
25
- require('./groupChannel-6d96e7e4.js');
26
- require('./actionTypes-dcb6f12d.js');
27
- require('./index-704081e2.js');
28
- require('./tslib.es6-e27033df.js');
20
+ require('./sendbird-dfd051c8.js');
21
+ require('./__bundle-6316ce22-c06e03fc.js');
22
+ require('./__bundle-fbda47dd-1a2c2d97.js');
23
+ require('./openChannel-76345cfa.js');
24
+ require('./__bundle-7dfccc8c-dcc1c854.js');
25
+ require('./groupChannel-11ed3837.js');
26
+ require('./actionTypes-7c5a0f8b.js');
27
+ require('./index-06c3dca9.js');
28
+ require('./tslib.es6-ba69891c.js');
29
29
  require('css-vars-ponyfill');
30
- require('./uuid-72d43c80.js');
31
- require('./LocalizationContext-84d3ac9f.js');
32
- require('./index-bec2f801.js');
30
+ require('./uuid-49679ac2.js');
31
+ require('./LocalizationContext-da62a103.js');
32
+ require('./index-25336220.js');
33
33
  require('./ChannelSettings/components/ChannelSettingsUI.js');
34
34
  require('./ChannelSettings/context.js');
35
- require('./UserProfileContext-910971fc.js');
36
- require('./index-ee2fd0cf.js');
35
+ require('./UserProfileContext-891590a7.js');
36
+ require('./index-b440f8c6.js');
37
37
  require('./ui/Icon.js');
38
- require('./index-6db26f9d.js');
38
+ require('./index-089e0fba.js');
39
39
  require('./ui/Loader.js');
40
40
  require('./ui/IconButton.js');
41
41
  require('./ChannelSettings/components/ChannelProfile.js');
42
42
  require('./ui/ChannelAvatar.js');
43
43
  require('./ui/Avatar.js');
44
44
  require('./ui/ImageRenderer.js');
45
- require('./utils-007dcdba.js');
45
+ require('./utils-c39eb349.js');
46
46
  require('./ui/TextButton.js');
47
- require('./color-dacce310.js');
47
+ require('./color-42e34a43.js');
48
48
  require('./ChannelSettings/components/EditDetailsModal.js');
49
49
  require('./ui/Modal.js');
50
50
  require('react-dom');
51
- require('./index-bfbb5bcd.js');
52
- require('./index-5350f579.js');
51
+ require('./index-32562627.js');
52
+ require('./index-05692021.js');
53
53
  require('./ui/Input.js');
54
54
  require('./ChannelSettings/components/ModerationPanel.js');
55
55
  require('./ui/Accordion.js');
56
56
  require('./ui/AccordionGroup.js');
57
- require('./context-01845539.js');
58
- require('./utils-9b806a3e.js');
57
+ require('./context-82ac7edc.js');
58
+ require('./utils-bf57a41a.js');
59
59
  require('./ui/Badge.js');
60
60
  require('./ui/ContextMenu.js');
61
61
  require('./ui/SortByRow.js');
@@ -64,40 +64,40 @@ require('./ui/MutedAvatarOverlay.js');
64
64
  require('./ui/UserProfile.js');
65
65
  require('./ui/UserListItem.js');
66
66
  require('./ui/Checkbox.js');
67
- require('./MemberList-4000c963.js');
67
+ require('./MemberList-442ade8c.js');
68
68
  require('./ChannelSettings/components/LeaveChannel.js');
69
69
  require('./ChannelSettings/components/UserPanel.js');
70
- require('./ChannelListProvider-332647b5.js');
71
- require('./topics-1ee2d4c4.js');
70
+ require('./ChannelListProvider-b60fe6ed.js');
71
+ require('./topics-a755c9c6.js');
72
72
  require('./ChannelList/components/ChannelListUI.js');
73
73
  require('./ChannelList/components/ChannelListHeader.js');
74
74
  require('./ChannelList/components/AddChannel.js');
75
75
  require('./CreateChannel.js');
76
76
  require('./CreateChannel/components/CreateChannelUI.js');
77
- require('./CreateChannelProvider-5984b10e.js');
77
+ require('./CreateChannelProvider-71e1e6d6.js');
78
78
  require('./CreateChannel/components/InviteUsers.js');
79
79
  require('./CreateChannel/components/SelectChannelType.js');
80
80
  require('./ChannelList/components/ChannelPreview.js');
81
- require('./index-d6966c0d.js');
82
- require('./index-5ee0b6e5.js');
83
- require('./index-b5b5772d.js');
81
+ require('./index-c79f62fd.js');
82
+ require('./index-fb127b1f.js');
83
+ require('./index-f5cb5c7f.js');
84
84
  require('./ui/MentionUserLabel.js');
85
85
  require('./Channel/components/TypingIndicator.js');
86
- require('./ChannelProvider-faced097.js');
87
- require('./compareIds-30f8055b.js');
88
- require('./const-d144af7c.js');
86
+ require('./ChannelProvider-b21b3c2a.js');
87
+ require('./compareIds-26079db4.js');
88
+ require('./const-c1a4604d.js');
89
89
  require('./ui/ReactionButton.js');
90
90
  require('./ui/MessageStatus.js');
91
91
  require('./ChannelList/components/ChannelPreviewAction.js');
92
92
  require('./EditUserProfile.js');
93
- require('./index-234e186e.js');
93
+ require('./index-82646d4d.js');
94
94
  require('./Channel/components/ChannelUI.js');
95
95
  require('./ui/ConnectionStatus.js');
96
96
  require('./Channel/components/ChannelHeader.js');
97
97
  require('./Channel/components/MessageList.js');
98
98
  require('./Channel/components/Message.js');
99
99
  require('./Channel/components/SuggestedMentionList.js');
100
- require('./const-896e3a63.js');
100
+ require('./const-8a9ec74c.js');
101
101
  require('./ui/DateSeparator.js');
102
102
  require('./ui/MessageInput.js');
103
103
  require('./ui/MessageContent.js');
@@ -124,15 +124,15 @@ require('./Channel/components/UnreadCount.js');
124
124
  require('./Channel/components/MessageInput.js');
125
125
  require('./ui/QuoteMessageInput.js');
126
126
  require('./OpenChannel/components/OpenChannelUI.js');
127
- require('./OpenChannelProvider-042867f0.js');
127
+ require('./OpenChannelProvider-bc8d7f0d.js');
128
128
  require('./OpenChannel/components/OpenChannelInput.js');
129
129
  require('./OpenChannel/components/FrozenChannelNotification.js');
130
130
  require('./OpenChannel/components/OpenChannelHeader.js');
131
131
  require('./OpenChannel/components/OpenChannelMessageList.js');
132
132
  require('./OpenChannel/components/OpenChannelMessage.js');
133
133
  require('./ui/OpenchannelUserMessage.js');
134
- require('./utils-c47d1e8e.js');
135
- require('./openChannelUtils-fd36e419.js');
134
+ require('./utils-bfbac88e.js');
135
+ require('./openChannelUtils-56d57483.js');
136
136
  require('./ui/OpenChannelAdminMessage.js');
137
137
  require('./ui/OpenchannelOGMessage.js');
138
138
  require('./ui/OpenchannelThumbnailMessage.js');
@@ -144,7 +144,7 @@ require('./OpenChannelSettings/components/OperatorUI.js');
144
144
  require('./OpenChannelSettings/components/OpenChannelProfile.js');
145
145
  require('./ui/OpenChannelAvatar.js');
146
146
  require('./OpenChannelSettings/components/EditDetailsModal.js');
147
- require('./index-5a5cbb28.js');
147
+ require('./index-81e2234a.js');
148
148
  require('./MessageSearch/components/MessageSearchUI.js');
149
149
  require('./MessageSearch/context.js');
150
150
  require('./ui/MessageSearchItem.js');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var __bundle6316ce22 = require('./__bundle-6316ce22-acb43d8b.js');
4
- var __bundle7dfccc8c = require('./__bundle-7dfccc8c-c3051ee3.js');
3
+ var __bundle6316ce22 = require('./__bundle-6316ce22-c06e03fc.js');
4
+ var __bundle7dfccc8c = require('./__bundle-7dfccc8c-dcc1c854.js');
5
5
 
6
6
  var en=function(r){function a(){var n=null!==r&&r.apply(this,arguments)||this;return n._channels=new Map,n._enteredChannelUrls=[],n}return __bundle6316ce22.t(a,r),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;return __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){return [2,null!==(r=this._channels.get(n))&&void 0!==r?r:null]}))}))},a.prototype.upsert=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e=this;return __bundle6316ce22.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 __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){return this._channels.delete(n),this.exit(n),[2]}))}))},a.prototype.clear=function(){return __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(n){return this._channels.clear(),this._enteredChannelUrls=[],[2]}))}))},a}(__bundle6316ce22.Le),tn={channelUrl:null,name:null,coverUrlOrImage:null,data:null,customType:null,operatorUserIds:null},rn=function(e){function t(n){var t=n.channelUrl,r=n.isInternalCall,a=e.call(this)||this;return a.method=__bundle6316ce22.d.GET,a.path="".concat(r?__bundle6316ce22.Ge:__bundle6316ce22.xe,"/").concat(encodeURIComponent(t)),a}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q),an=function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.channel=null,r.channel=new gn(n,t),r}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.F),sn=function(e){function t(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=__bundle6316ce22.d.POST,t.path=__bundle6316ce22.xe,t.params=__bundle6316ce22.U({channel_url:r,cover_url:__bundle6316ce22.y("string",a)?a:null,cover_file:__bundle6316ce22.S(a)?a:null,name:u,data:l,custom_type:h,operators:p}),t}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q);!function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.channel=new gn(n,t),r}__bundle6316ce22.t(t,e);}(__bundle6316ce22.F);var on=function(e){function t(n){var t=n.channelUrl;return e.call(this,{code:"ENTR",payload:{channel_url:t},ackRequired:!0})||this}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.H),un=function(e){function t(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 __bundle6316ce22.ct(n,r.data),s.ts=null!==(i=r.data.edge_ts)&&void 0!==i?i:0),s}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.B),cn=function(e){function t(n){var t=n.channelUrl;return e.call(this,{code:"EXIT",payload:{channel_url:t},ackRequired:!0})||this}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.H),ln=function(e){function t(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 __bundle6316ce22.ct(n,r.data),s.ts=null!==(i=r.data.edge_ts)&&void 0!==i?i:0),s}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.B),hn={},dn=function(){function n(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 __bundle6316ce22.B)i._handleEvent(n);else if(n instanceof __bundle6316ce22.de&&n.stateType===__bundle6316ce22.J.CONNECTED){var r=i._openChannelCache.enteredChannels;try{for(var a=__bundle6316ce22.s(r),s=a.next();!s.done;s=a.next()){s.value.enter();}}catch(n){e={error:n};}finally{try{s&&!s.done&&(t=a.return)&&t.call(a);}finally{if(e)throw e.error}}}})),hn[n]=this;}return n.of=function(n){return hn[n]},n.prototype.buildOpenChannelFromSerializedData=function(n){var e=__bundle6316ce22.ot(n);return new gn(e._iid,gn.payloadify(e))},n.prototype.getChannelFromCache=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){switch(e.label){case 0:return [4,this._openChannelCache.get(n)];case 1:return [2,e.sent()]}}))}))},n.prototype.upsertChannelsToCache=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){switch(e.label){case 0:return [4,this._openChannelCache.upsert(n)];case 1:return e.sent(),[2]}}))}))},n.prototype.removeChannelsFromCache=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e,r,a,i,s,o;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:t.trys.push([0,5,6,7]),e=__bundle6316ce22.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=t.sent(),s={error:i},[3,7];case 6:try{r&&!r.done&&(o=e.return)&&o.call(e);}finally{if(s)throw s.error}return [7];case 7:return [2]}}))}))},n.prototype.setEnteredToCache=function(n){this._openChannelCache.enter(n.url);},n.prototype.setExitedToCache=function(n){this._openChannelCache.exit(n.url);},n.prototype._handleEvent=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){var r,a,i,s,o,u,c,l,h,d,p,f,C,v,_,m,T,N,H,I,M,b,O,D,x,A,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 __bundle6316ce22.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=null,"MESG"===n.code?s=n.as(__bundle6316ce22.gt):"FILE"===n.code?s=n.as(__bundle6316ce22.Jt):"ADMM"!==n.code&&"BRDM"!=n.code||(s=n.as(__bundle7dfccc8c.A)),s?(r=s.message,a=s.isMentioned,r.channelType!==__bundle6316ce22.ne.OPEN?[3,3]:[4,this.getChannel(r.channelUrl,!0)]):[3,3];case 2:i=Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,s,o,u;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())s=e.value,this._openChannelCache.isEnteredChannel(i.url)&&s.onMessageReceived(i,r),a&&s.onMentionReceived(i,r);}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=null,"MEDI"===n.code?s=n.as(__bundle6316ce22.Tt$1):"FEDI"===n.code?s=n.as(__bundle6316ce22.It):"AEDI"===n.code&&(s=n.as(__bundle7dfccc8c.c)),s?(o=s.message).channelType!==__bundle6316ce22.ne.OPEN?[3,6]:[4,this.getChannel(o.channelUrl,!0)]:[3,6];case 5:u=Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,r,a,i;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.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=n.return)&&i.call(n);}finally{if(a)throw a.error}}return [2]}))}))})),Rn.label=6;case 6:return [3,50];case 7:return c=n.as(__bundle6316ce22.wt),M=c.channelUrl,p=c.channelType,l=c.messageId,p!==__bundle6316ce22.ne.OPEN?[3,9]:[4,this.getChannel(M,!0)];case 8:h=Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,r,a,i;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())r=e.value,this._openChannelCache.isEnteredChannel(h.url)&&r.onMessageDeleted(h,l);}catch(n){a={error:n};}finally{try{e&&!e.done&&(i=n.return)&&i.call(n);}finally{if(a)throw a.error}}return [2]}))}))})),Rn.label=9;case 9:return [3,50];case 10:return d=n.as(__bundle7dfccc8c.H),M=d.channelUrl,p=d.channelType,f=d.event,p!==__bundle6316ce22.ne.OPEN?[3,12]:[4,this.getChannel(M,!0)];case 11:C=Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,r,a;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onReactionUpdated(C,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(__bundle7dfccc8c.T).event).channelType!==__bundle6316ce22.ne.OPEN?[3,15]:[4,this.getChannel(v.channelUrl,!0)];case 14:_=Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,r,a;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onThreadInfoUpdated(_,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(__bundle7dfccc8c.h).openChannelMemberCounts,T=[],Rn.label=17;case 17:Rn.trys.push([17,22,23,24]),N=__bundle6316ce22.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.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.length>0?[4,this.upsertChannelsToCache(T)]:[3,26];case 25:Rn.sent(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){var n,e,r,a;return __bundle6316ce22.i(this,(function(t){try{for(n=__bundle6316ce22.s(this._openChannelHandlers.values()),e=n.next();!e.done;e=n.next())e.value.onChannelMemberCountChanged(T);}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(__bundle7dfccc8c.C).event).isOpenChannelEvent)return [3,49];switch(x.category){case __bundle7dfccc8c._.CHANNEL_ENTER:return [3,28];case __bundle7dfccc8c._.CHANNEL_EXIT:return [3,30];case __bundle7dfccc8c._.CHANNEL_OPERATOR_UPDATE:return [3,32];case __bundle7dfccc8c._.USER_CHANNEL_MUTE:case __bundle7dfccc8c._.USER_CHANNEL_UNMUTE:return [3,34];case __bundle7dfccc8c._.USER_CHANNEL_BAN:case __bundle7dfccc8c._.USER_CHANNEL_UNBAN:return [3,36];case __bundle7dfccc8c._.CHANNEL_FREEZE:case __bundle7dfccc8c._.CHANNEL_UNFREEZE:return [3,38];case __bundle7dfccc8c._.CHANNEL_DELETED:return [3,40];case __bundle7dfccc8c._.CHANNEL_PROP_CHANGED:return [3,43];case __bundle7dfccc8c._.CHANNEL_META_DATA_CHANGED:return [3,45];case __bundle7dfccc8c._.CHANNEL_META_COUNTERS_CHANGED:return [3,47]}return [3,49];case 28:return [4,this.getChannel(x.channelUrl,!0)];case 29:return A=Rn.sent(),B=n.as(un),an=B.participantCount,nn=B.user,en=A._updateParticipantCount(an,x.ts),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(n){return this._openChannelHandlers.forEach((function(n){n.onUserEntered(A,nn),en&&n.onChannelParticipantCountChanged(A);})),[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),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(__bundle7dfccc8c.d).operators,cn.operators=hn,this.upsertChannelsToCache([cn]),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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===__bundle7dfccc8c._.USER_CHANNEL_MUTE,fn=n.as(pn?__bundle6316ce22.at$1:__bundle6316ce22.ot$1).user,__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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===__bundle7dfccc8c._.USER_CHANNEL_BAN,_n=n.as(vn?__bundle6316ce22.ct$1:__bundle6316ce22.dt$1).user,__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(__bundle6316ce22.pt).freeze,yn.isFrozen=mn,this.upsertChannelsToCache([yn]),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(__bundle6316ce22.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),__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(__bundle6316ce22.tt),bn=Mn.created,On=Mn.updated,Dn=Mn.deleted,__bundle6316ce22.Ie((function(){return __bundle6316ce22.r(Ln,void 0,void 0,(function(){return __bundle6316ce22.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(),__bundle6316ce22.h(xn))throw xn;return [3,52];case 52:return [2]}}))}))},n.prototype.addHandler=function(n,e){this._openChannelHandlers.set(n,e);},n.prototype.removeHandler=function(n){this._openChannelHandlers.delete(n);},n.prototype.clearHandler=function(){this._openChannelHandlers.clear();},n.prototype.getChannel=function(n,r){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:__bundle6316ce22.at(__bundle6316ce22.y("string",n)).throw(__bundle6316ce22.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.prototype.getChannelWithoutCache=function(n,r){return void 0===r&&(r=!1),__bundle6316ce22.r(this,void 0,void 0,(function(){var e,a,s;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return __bundle6316ce22.at(__bundle6316ce22.y("string",n)).throw(__bundle6316ce22.p.invalidParameters),e=new rn({channelUrl:n,isInternalCall:r}),[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.prototype.createChannel=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e,r,o;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return n=__bundle6316ce22.n(__bundle6316ce22.n({},tn),n),__bundle6316ce22.at(function(n){return __bundle6316ce22.E("string",n.operatorUserIds,!0)&&(__bundle6316ce22.y("string",n.coverUrlOrImage)||__bundle6316ce22.S(n.coverUrlOrImage)||null===n.coverUrlOrImage)&&__bundle6316ce22.y("string",n.name,!0)&&__bundle6316ce22.y("string",n.data,!0)&&__bundle6316ce22.y("string",n.customType,!0)&&(__bundle6316ce22.y("string",n.channelUrl)&&/^\w+$/.test(n.channelUrl)||null===n.channelUrl)}(n)).throw(__bundle6316ce22.p.invalidParameters),e=new sn(n),[4,this._requestQueue.send(e)];case 1:return r=t.sent(),o=r.as(an).channel,this.upsertChannelsToCache([o]),[2,o]}}))}))},n}(),pn={name:null,coverUrlOrImage:null,data:null,customType:null,operatorUserIds:null},fn=function(e){function t(n){var t=this,r=n.channelUrl,a=n.token,i=n.limit;return (t=e.call(this)||this).method=__bundle6316ce22.d.GET,t.path="".concat(__bundle6316ce22.xe,"/").concat(encodeURIComponent(r),"/participants"),t.params={token:a,limit:i},t}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q),Cn=function(e){function t(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 __bundle6316ce22.ct(n,e)})),r}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.F),vn=function(r){function a(n,e,t){return r.call(this,n,e,__bundle6316ce22.ne.OPEN,t)||this}return __bundle6316ce22.t(a,r),a.prototype._validate=function(){return r.prototype._validate.call(this)},a.prototype.next=function(){return __bundle6316ce22.r(this,void 0,void 0,(function(){var n,e,r,a,i,s;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,n=__bundle6316ce22.St.of(this._iid).requestQueue,e=new fn(__bundle6316ce22.n(__bundle6316ce22.n({},this),{token:this._token})),[4,n.send(e)]):[3,2]:[3,5];case 1:return r=t.sent(),a=r.as(Cn),i=a.participants,s=a.token,this._token=s,this._hasNext=!!s,this._isLoading=!1,[2,i];case 2:return [2,[]];case 3:throw __bundle6316ce22.p.queryInProgress;case 4:return [3,6];case 5:throw __bundle6316ce22.p.invalidParameters;case 6:return [2]}}))}))},a}(__bundle6316ce22.On),_n=function(e){function t(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=__bundle6316ce22.d.PUT,t.path="".concat(__bundle6316ce22.xe,"/").concat(encodeURIComponent(r)),t.params=__bundle6316ce22.U({cover_url:__bundle6316ce22.y("string",a)?a:null,cover_file:__bundle6316ce22.S(a)?a:null,name:u,data:l,custom_type:h,operators:p}),t}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q),yn=function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.channel=new gn(n,t),r}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.F),mn=function(e){function t(n){var t=this,r=n.channelUrl;return (t=e.call(this)||this).method=__bundle6316ce22.d.DELETE,t.path="".concat(__bundle6316ce22.xe,"/").concat(encodeURIComponent(r)),t}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q);!function(e){function t(n,t){return e.call(this,n,t)||this}__bundle6316ce22.t(t,e);}(__bundle6316ce22.F);var gn=function(r){function o(n,e){var t,a=this;return (a=r.call(this,n,e)||this)._lastParticipantCountUpdated=0,a.participantCount=0,a.operators=[],a.channelType=__bundle6316ce22.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 __bundle6316ce22.ct(n,e)})):[],a}return __bundle6316ce22.t(o,r),o.payloadify=function(n){return n?__bundle6316ce22.U(__bundle6316ce22.n(__bundle6316ce22.n({},__bundle6316ce22.kt.payloadify(n)),{participant_count:n.participantCount,operators:n.operators.map((function(n){return __bundle6316ce22.ct.payloadify(n)}))})):null},o.prototype.serialize=function(){return __bundle6316ce22.st(this)},o.prototype.isOperator=function(n){return n instanceof __bundle6316ce22.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 __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.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 __bundle6316ce22.r(this,void 0,void 0,(function(){var n,e,r,a,i,s;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return n=__bundle6316ce22.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=a.participantCount,s=a.ts,this._updateParticipantCount(i,s),dn.of(this._iid).setEnteredToCache(this),[2]}}))}))},o.prototype.exit=function(){return __bundle6316ce22.r(this,void 0,void 0,(function(){var n,e,r,a,i,s;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return n=__bundle6316ce22.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=a.participantCount,s=a.ts,this._updateParticipantCount(i,s),dn.of(this._iid).setExitedToCache(this),__bundle6316ce22.En.of(this._iid).fileMessageQueue.cancel(this),[2]}}))}))},o.prototype.updateChannel=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e,r,o,u;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return n=__bundle6316ce22.n(__bundle6316ce22.n({},pn),n),__bundle6316ce22.at(function(n){return __bundle6316ce22.E("string",n.operatorUserIds,!0)&&(__bundle6316ce22.y("string",n.coverUrlOrImage)||__bundle6316ce22.S(n.coverUrlOrImage)||null===n.coverUrlOrImage)&&__bundle6316ce22.y("string",n.name,!0)&&__bundle6316ce22.y("string",n.data,!0)&&__bundle6316ce22.y("string",n.customType,!0)}(n)).throw(__bundle6316ce22.p.invalidParameters),e=__bundle6316ce22.St.of(this._iid).requestQueue,r=new _n(__bundle6316ce22.n({channelUrl:this.url},n)),[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,r,a,i,s){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e;return __bundle6316ce22.i(this,(function(t){return e=__bundle6316ce22.n(__bundle6316ce22.n({},pn),{name:n,coverUrlOrImage:r,data:a,operatorUserIds:i,customType:s}),[2,this.updateChannel(e)]}))}))},o.prototype.delete=function(){return __bundle6316ce22.r(this,void 0,void 0,(function(){var n,e;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return n=__bundle6316ce22.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}(__bundle6316ce22.kt),Un=function(e){function t(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 __bundle6316ce22.t(t,e),t}(function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.onUserEntered=__bundle6316ce22.Y,n.onUserExited=__bundle6316ce22.Y,n.onChannelParticipantCountChanged=__bundle6316ce22.Y,n}return __bundle6316ce22.t(t,e),t}(__bundle7dfccc8c.U)),En=function(e){function t(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=__bundle6316ce22.d.GET,t.path=__bundle6316ce22.xe,t.params=__bundle6316ce22.U({token:r,limit:a,name_contains:i,url_contains:s,custom_types:u,show_frozen:l,show_metadata:h}),t}return __bundle6316ce22.t(t,e),t}(__bundle6316ce22.q),wn=function(e){function t(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 __bundle6316ce22.t(t,e),t}(__bundle6316ce22.F),Tn=function(r){function s(n,e){var t,a,i,s,o,u=this;return (u=r.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 __bundle6316ce22.t(s,r),s.prototype._validate=function(){return r.prototype._validate.call(this)&&__bundle6316ce22.y("boolean",this.includeFrozen)&&__bundle6316ce22.y("boolean",this.includeMetaData)&&__bundle6316ce22.y("string",this.nameKeyword,!0)&&__bundle6316ce22.y("string",this.urlKeyword,!0)&&__bundle6316ce22.E("string",this.customTypes,!0)},s.prototype.next=function(){return __bundle6316ce22.r(this,void 0,void 0,(function(){var n,e,r,a,i,s;return __bundle6316ce22.i(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,4]:this._hasNext?(this._isLoading=!0,n=__bundle6316ce22.St.of(this._iid).requestQueue,e=new En(__bundle6316ce22.n(__bundle6316ce22.n({},this),{token:this._token})),[4,n.send(e)]):[3,3]:[3,6];case 1:return r=t.sent(),a=r.as(wn),i=a.channels,s=a.token,this._token=s,this._hasNext=!!s,[4,dn.of(this._iid).upsertChannelsToCache(i)];case 2:return t.sent(),this._isLoading=!1,[2,i];case 3:return [2,[]];case 4:throw __bundle6316ce22.p.queryInProgress;case 5:return [3,7];case 6:throw __bundle6316ce22.p.invalidParameters;case 7:return [2]}}))}))},s}(__bundle6316ce22.bn),Nn=function(r){function a(){var n=null!==r&&r.apply(this,arguments)||this;return n.name="openChannel",n}return __bundle6316ce22.t(a,r),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.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 __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){return [2,this._manager.getChannel(n)]}))}))},a.prototype.getChannelWithoutCache=function(n){return __bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){return [2,this._manager.getChannelWithoutCache(n)]}))}))},a.prototype.createChannel=function(n){return void 0===n&&(n={}),__bundle6316ce22.r(this,void 0,void 0,(function(){return __bundle6316ce22.i(this,(function(e){return [2,this._manager.createChannel(n)]}))}))},a.prototype.createChannelWithOperatorUserIds=function(n,r,a,i,s){return __bundle6316ce22.r(this,void 0,void 0,(function(){var e;return __bundle6316ce22.i(this,(function(t){return (e=__bundle6316ce22.n({},tn)).name=n,e.coverUrlOrImage=r,e.data=a,e.operatorUserIds=i,e.customType=s,[2,this._manager.createChannel(e)]}))}))},a}(__bundle6316ce22.Tt);
7
7
 
8
8
  exports.Nn = Nn;
9
9
  exports.Un = Un;
10
- //# sourceMappingURL=openChannel-2891d860.js.map
10
+ //# sourceMappingURL=openChannel-76345cfa.js.map