@sendbird/uikit-react 3.0.2 → 3.1.0-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.
- package/App.js +32 -32
- package/CHANGELOG.md +10 -0
- package/Channel/components/ChannelHeader.js +17 -17
- package/Channel/components/ChannelUI.js +24 -24
- package/Channel/components/FileViewer.js +16 -16
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +21 -21
- package/Channel/components/MessageInput.js +18 -18
- package/Channel/components/MessageList.js +23 -23
- package/Channel/components/RemoveMessageModal.js +19 -19
- package/Channel/components/SuggestedMentionList.js +17 -17
- package/Channel/components/TypingIndicator.js +16 -16
- package/Channel/components/UnreadCount.js +5 -5
- package/Channel/context.js +15 -15
- package/Channel.js +24 -24
- package/ChannelList/components/AddChannel.js +14 -14
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListUI.js +28 -28
- package/ChannelList/components/ChannelPreview.js +21 -21
- package/ChannelList/components/ChannelPreviewAction.js +16 -16
- package/ChannelList/context.js +10 -10
- package/ChannelList.js +28 -28
- package/{ChannelListProvider-98ce41d2.js → ChannelListProvider-98290ccf.js} +9 -9
- package/{ChannelListProvider-98ce41d2.js.map → ChannelListProvider-98290ccf.js.map} +1 -1
- package/{ChannelProvider-6ea29e4a.js → ChannelProvider-38147c7b.js} +11 -11
- package/{ChannelProvider-6ea29e4a.js.map → ChannelProvider-38147c7b.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +13 -13
- package/ChannelSettings/components/ChannelSettingsUI.js +20 -18
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/ChannelSettings/components/LeaveChannel.js +10 -10
- package/ChannelSettings/components/ModerationPanel.js +29 -26
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +14 -14
- package/ChannelSettings/components/UserListItem.js.map +1 -1
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +20 -18
- package/ChannelSettings.js.map +1 -1
- package/CreateChannel/components/CreateChannelUI.js +14 -14
- package/CreateChannel/components/InviteUsers.js +14 -14
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +14 -14
- package/{CreateChannelProvider-71012e62.js → CreateChannelProvider-c929328e.js} +1 -1
- package/{CreateChannelProvider-71012e62.js.map → CreateChannelProvider-c929328e.js.map} +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/EditUserProfile.js +13 -13
- package/{LocalizationContext-1417e9d3.js → LocalizationContext-bed38f81.js} +3 -3
- package/{LocalizationContext-1417e9d3.js.map → LocalizationContext-bed38f81.js.map} +1 -1
- package/{MemberList-351c6fcc.js → MemberList-db090735.js} +25 -22
- package/MemberList-db090735.js.map +1 -0
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +2 -2
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +14 -14
- package/OpenChannel/components/OpenChannelInput.js +18 -18
- package/OpenChannel/components/OpenChannelMessage.js +40 -28
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +26 -26
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +25 -25
- package/OpenChannel/context.js +11 -11
- package/OpenChannel.js +25 -25
- package/{OpenChannelProvider-5d02b219.js → OpenChannelProvider-5b45f840.js} +42 -15
- package/OpenChannelProvider-5b45f840.js.map +1 -0
- package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +776 -27
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +28 -139
- package/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/OpenChannelSettings/context.js +48 -4
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +22 -22
- package/SendbirdProvider.js +12 -12
- package/SendbirdProvider.js.map +1 -1
- package/{UserProfileContext-c72e5006.js → UserProfileContext-5bc5ff98.js} +1 -1
- package/{UserProfileContext-c72e5006.js.map → UserProfileContext-5bc5ff98.js.map} +1 -1
- package/__bundle-7dfccc8c-dc566919.js +24 -0
- package/__bundle-7dfccc8c-dc566919.js.map +1 -0
- package/{_rollupPluginBabelHelpers-87a4819d.js → _rollupPluginBabelHelpers-51451000.js} +1 -1
- package/{_rollupPluginBabelHelpers-87a4819d.js.map → _rollupPluginBabelHelpers-51451000.js.map} +1 -1
- package/{actionTypes-52ff0372.js → actionTypes-03571cf1.js} +1 -1
- package/{actionTypes-52ff0372.js.map → actionTypes-03571cf1.js.map} +1 -1
- package/cjs/App.js +32 -32
- package/cjs/Channel/components/ChannelHeader.js +17 -17
- package/cjs/Channel/components/ChannelUI.js +24 -24
- package/cjs/Channel/components/FileViewer.js +16 -16
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +21 -21
- package/cjs/Channel/components/MessageInput.js +18 -18
- package/cjs/Channel/components/MessageList.js +23 -23
- package/cjs/Channel/components/RemoveMessageModal.js +19 -19
- package/cjs/Channel/components/SuggestedMentionList.js +17 -17
- package/cjs/Channel/components/TypingIndicator.js +16 -16
- package/cjs/Channel/components/UnreadCount.js +5 -5
- package/cjs/Channel/context.js +15 -15
- package/cjs/Channel.js +24 -24
- package/cjs/ChannelList/components/AddChannel.js +14 -14
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListUI.js +28 -28
- package/cjs/ChannelList/components/ChannelPreview.js +21 -21
- package/cjs/ChannelList/components/ChannelPreviewAction.js +16 -16
- package/cjs/ChannelList/context.js +10 -10
- package/cjs/ChannelList.js +28 -28
- package/cjs/{ChannelListProvider-aa33f9fb.js → ChannelListProvider-50cf9211.js} +9 -9
- package/cjs/{ChannelListProvider-aa33f9fb.js.map → ChannelListProvider-50cf9211.js.map} +1 -1
- package/cjs/{ChannelProvider-0dbd1be6.js → ChannelProvider-669b5e88.js} +11 -11
- package/cjs/{ChannelProvider-0dbd1be6.js.map → ChannelProvider-669b5e88.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +20 -18
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
- package/cjs/ChannelSettings/components/ModerationPanel.js +28 -25
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +14 -14
- package/cjs/ChannelSettings/components/UserListItem.js.map +1 -1
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +20 -18
- package/cjs/ChannelSettings.js.map +1 -1
- package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
- package/cjs/CreateChannel/components/InviteUsers.js +14 -14
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +14 -14
- package/cjs/{CreateChannelProvider-08837dcb.js → CreateChannelProvider-3ee8c3d8.js} +1 -1
- package/cjs/{CreateChannelProvider-08837dcb.js.map → CreateChannelProvider-3ee8c3d8.js.map} +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +13 -13
- package/cjs/{LocalizationContext-c0dc9e2f.js → LocalizationContext-458c4425.js} +3 -3
- package/cjs/{LocalizationContext-c0dc9e2f.js.map → LocalizationContext-458c4425.js.map} +1 -1
- package/cjs/{MemberList-17f30c30.js → MemberList-3c0d7503.js} +24 -21
- package/cjs/MemberList-3c0d7503.js.map +1 -0
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +2 -2
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +14 -14
- package/cjs/OpenChannel/components/OpenChannelInput.js +18 -18
- package/cjs/OpenChannel/components/OpenChannelMessage.js +40 -28
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +26 -26
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +25 -25
- package/cjs/OpenChannel/context.js +11 -11
- package/cjs/OpenChannel.js +25 -25
- package/cjs/{OpenChannelProvider-2d921cf0.js → OpenChannelProvider-0f1ece78.js} +42 -15
- package/cjs/OpenChannelProvider-0f1ece78.js.map +1 -0
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +775 -26
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +29 -140
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/cjs/OpenChannelSettings/context.js +48 -4
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +22 -22
- package/cjs/SendbirdProvider.js +12 -12
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/{UserProfileContext-2bd8a987.js → UserProfileContext-f582734c.js} +1 -1
- package/cjs/{UserProfileContext-2bd8a987.js.map → UserProfileContext-f582734c.js.map} +1 -1
- package/cjs/__bundle-7dfccc8c-1748a942.js +151 -0
- package/cjs/__bundle-7dfccc8c-1748a942.js.map +1 -0
- package/cjs/{_rollupPluginBabelHelpers-59502943.js → _rollupPluginBabelHelpers-7a2f7ed5.js} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-59502943.js.map → _rollupPluginBabelHelpers-7a2f7ed5.js.map} +1 -1
- package/cjs/{actionTypes-d637dc1d.js → actionTypes-344731c5.js} +1 -1
- package/cjs/{actionTypes-d637dc1d.js.map → actionTypes-344731c5.js.map} +1 -1
- package/cjs/{color-57d2d881.js → color-7ac0d13b.js} +1 -1
- package/cjs/{color-57d2d881.js.map → color-7ac0d13b.js.map} +1 -1
- package/cjs/{compareIds-70f7ec01.js → compareIds-8bbbef9c.js} +1 -1
- package/cjs/{compareIds-70f7ec01.js.map → compareIds-8bbbef9c.js.map} +1 -1
- package/cjs/{const-cddf6176.js → const-290e012b.js} +1 -1
- package/cjs/{const-cddf6176.js.map → const-290e012b.js.map} +1 -1
- package/cjs/{const-79c19d9a.js → const-496c4e96.js} +1 -1
- package/cjs/{const-79c19d9a.js.map → const-496c4e96.js.map} +1 -1
- package/cjs/{context-277763cc.js → context-16c8fda9.js} +2 -2
- package/cjs/{context-277763cc.js.map → context-16c8fda9.js.map} +1 -1
- package/cjs/dist/index.css +154 -105
- package/cjs/dist/index.css.map +1 -1
- package/cjs/groupChannel-fab057aa.js +9 -0
- package/cjs/groupChannel-fab057aa.js.map +1 -0
- package/cjs/{index-5755be7f.js → index-0913b626.js} +3 -3
- package/cjs/{index-5755be7f.js.map → index-0913b626.js.map} +1 -1
- package/cjs/{index-897ebaf9.js → index-0d759d2f.js} +1 -1
- package/cjs/{index-897ebaf9.js.map → index-0d759d2f.js.map} +1 -1
- package/cjs/{index-54177640.js → index-1e767390.js} +2 -2
- package/cjs/{index-54177640.js.map → index-1e767390.js.map} +1 -1
- package/cjs/{index-7970f43b.js → index-74826500.js} +2 -2
- package/cjs/{index-7970f43b.js.map → index-74826500.js.map} +1 -1
- package/cjs/{index-f73b522b.js → index-7efec35e.js} +2 -2
- package/cjs/{index-f73b522b.js.map → index-7efec35e.js.map} +1 -1
- package/cjs/{index-0e3ec349.js → index-911094d4.js} +1 -1
- package/cjs/{index-0e3ec349.js.map → index-911094d4.js.map} +1 -1
- package/cjs/{index-f3df6bb6.js → index-a29feec3.js} +6 -6
- package/cjs/{index-f3df6bb6.js.map → index-a29feec3.js.map} +1 -1
- package/cjs/{index-cb29dc31.js → index-c1aa0d36.js} +4 -4
- package/cjs/{index-cb29dc31.js.map → index-c1aa0d36.js.map} +1 -1
- package/cjs/index-dac29bc6.js +357 -0
- package/cjs/index-dac29bc6.js.map +1 -0
- package/cjs/{index-f10a973e.js → index-e61b5129.js} +3 -3
- package/cjs/{index-f10a973e.js.map → index-e61b5129.js.map} +1 -1
- package/cjs/{index-8c6ece9e.js → index-fcee945f.js} +4 -4
- package/cjs/{index-8c6ece9e.js.map → index-fcee945f.js.map} +1 -1
- package/cjs/index.js +36 -36
- package/cjs/openChannel-e4e021c5.js +13 -0
- package/cjs/openChannel-e4e021c5.js.map +1 -0
- package/cjs/{openChannelUtils-250d464a.js → openChannelUtils-c190487b.js} +1 -2
- package/cjs/{openChannelUtils-250d464a.js.map → openChannelUtils-c190487b.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-8a5752c1.js → stringSet-1e20a383.js} +28 -3
- package/cjs/stringSet-1e20a383.js.map +1 -0
- package/cjs/{topics-5541d80a.js → topics-fae1bf42.js} +1 -1
- package/cjs/{topics-5541d80a.js.map → topics-fae1bf42.js.map} +1 -1
- package/cjs/{tslib.es6-999b9d2f.js → tslib.es6-94adc177.js} +1 -1
- package/cjs/{tslib.es6-999b9d2f.js.map → tslib.es6-94adc177.js.map} +1 -1
- package/cjs/ui/Accordion.js +4 -4
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +3 -3
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/Button.js +4 -4
- package/cjs/ui/ChannelAvatar.js +4 -4
- package/cjs/ui/ChannelPreview.js +12 -12
- package/cjs/ui/ChatHeader.js +8 -8
- package/cjs/ui/Checkbox.js +12 -24
- package/cjs/ui/Checkbox.js.map +1 -1
- package/cjs/ui/ConnectionStatus.js +5 -5
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/Dropdown.js +3 -3
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +7 -7
- package/cjs/ui/Icon.js +1 -1
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +11 -11
- package/cjs/ui/MessageContent.js +14 -14
- package/cjs/ui/MessageInput.js +10 -10
- package/cjs/ui/MessageItemMenu.js +7 -7
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +10 -10
- package/cjs/ui/MessageStatus.js +8 -8
- package/cjs/ui/Modal.js +12 -9
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +1 -1
- package/cjs/ui/OGMessageItemBody.js +11 -11
- package/cjs/ui/OpenChannelAdminMessage.js +4 -4
- package/cjs/ui/OpenChannelAvatar.js +7 -7
- package/cjs/ui/OpenchannelConversationHeader.js +7 -7
- package/cjs/ui/OpenchannelFileMessage.js +17 -17
- package/cjs/ui/OpenchannelFileMessage.js.map +1 -1
- package/cjs/ui/OpenchannelOGMessage.js +17 -17
- package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +16 -16
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/cjs/ui/OpenchannelUserMessage.js +17 -17
- package/cjs/ui/OpenchannelUserMessage.js.map +1 -1
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/QuoteMessage.js +7 -7
- package/cjs/ui/QuoteMessageInput.js +7 -7
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +11 -11
- package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +34 -62
- package/cjs/ui/UserListItem.js.map +1 -1
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/Word.js +11 -11
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-fdc85251.js → utils-50f39987.js} +1 -1
- package/cjs/{utils-fdc85251.js.map → utils-50f39987.js.map} +1 -1
- package/cjs/{utils-0b87e6c8.js → utils-985f99f7.js} +1 -1
- package/cjs/{utils-0b87e6c8.js.map → utils-985f99f7.js.map} +1 -1
- package/cjs/{utils-2e571594.js → utils-a765f200.js} +1 -1
- package/cjs/{utils-2e571594.js.map → utils-a765f200.js.map} +1 -1
- package/cjs/{uuid-c1af9ac6.js → uuid-54ad2cc3.js} +1 -1
- package/cjs/{uuid-c1af9ac6.js.map → uuid-54ad2cc3.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-32ee546e.js → color-04ed392d.js} +1 -1
- package/{color-32ee546e.js.map → color-04ed392d.js.map} +1 -1
- package/{compareIds-9b3202b9.js → compareIds-7eaf62a5.js} +1 -1
- package/{compareIds-9b3202b9.js.map → compareIds-7eaf62a5.js.map} +1 -1
- package/{const-7b1f25aa.js → const-5ab9bb9f.js} +1 -1
- package/{const-7b1f25aa.js.map → const-5ab9bb9f.js.map} +1 -1
- package/{const-c2efe3b4.js → const-db8ec16d.js} +1 -1
- package/{const-c2efe3b4.js.map → const-db8ec16d.js.map} +1 -1
- package/{context-4a3c0658.js → context-4ca94848.js} +2 -2
- package/{context-4a3c0658.js.map → context-4ca94848.js.map} +1 -1
- package/dist/index.css +154 -105
- package/dist/index.css.map +1 -1
- package/{groupChannel-7e48e30f.js → groupChannel-5c43b7c1.js} +3 -3
- package/groupChannel-5c43b7c1.js.map +1 -0
- package/{index-89c172fc.js → index-1984c852.js} +2 -2
- package/{index-89c172fc.js.map → index-1984c852.js.map} +1 -1
- package/{index-f457e0cd.js → index-2a999130.js} +4 -4
- package/{index-f457e0cd.js.map → index-2a999130.js.map} +1 -1
- package/{index-fdcc4a92.js → index-33456100.js} +3 -3
- package/{index-fdcc4a92.js.map → index-33456100.js.map} +1 -1
- package/{index-f9e25c08.js → index-49108fb4.js} +2 -2
- package/{index-f9e25c08.js.map → index-49108fb4.js.map} +1 -1
- package/index-525b68d4.js +350 -0
- package/index-525b68d4.js.map +1 -0
- package/{index-097f4b78.js → index-6e02fc15.js} +1 -1
- package/{index-097f4b78.js.map → index-6e02fc15.js.map} +1 -1
- package/{index-b9a5ff91.js → index-7ed67f3f.js} +1 -1
- package/{index-b9a5ff91.js.map → index-7ed67f3f.js.map} +1 -1
- package/{index-ff084076.js → index-a3d218da.js} +3 -3
- package/{index-ff084076.js.map → index-a3d218da.js.map} +1 -1
- package/{index-e647d770.js → index-c67f2f3b.js} +2 -2
- package/{index-e647d770.js.map → index-c67f2f3b.js.map} +1 -1
- package/{index-12f6f771.js → index-dfc65ccf.js} +4 -4
- package/{index-12f6f771.js.map → index-dfc65ccf.js.map} +1 -1
- package/{index-f86f98c3.js → index-edc23b4f.js} +6 -6
- package/{index-f86f98c3.js.map → index-edc23b4f.js.map} +1 -1
- package/index.d.ts +2 -2
- package/index.js +36 -36
- package/openChannel-92ffb0b5.js +8 -0
- package/openChannel-92ffb0b5.js.map +1 -0
- package/{openChannelUtils-588d2978.js → openChannelUtils-e69f8484.js} +2 -2
- package/{openChannelUtils-588d2978.js.map → openChannelUtils-e69f8484.js.map} +1 -1
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-adf0eb59.js → stringSet-07d51930.js} +28 -3
- package/stringSet-07d51930.js.map +1 -0
- package/{topics-29b13da4.js → topics-a5f3f0e9.js} +1 -1
- package/{topics-29b13da4.js.map → topics-a5f3f0e9.js.map} +1 -1
- package/{tslib.es6-5a2250f9.js → tslib.es6-7a52c497.js} +1 -1
- package/{tslib.es6-5a2250f9.js.map → tslib.es6-7a52c497.js.map} +1 -1
- package/ui/Accordion.js +4 -4
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +3 -3
- package/ui/Badge.js +5 -5
- package/ui/Button.js +4 -4
- package/ui/ChannelAvatar.js +4 -4
- package/ui/ChannelPreview.js +12 -12
- package/ui/ChatHeader.js +8 -8
- package/ui/Checkbox.js +12 -23
- package/ui/Checkbox.js.map +1 -1
- package/ui/ConnectionStatus.js +5 -5
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +4 -4
- package/ui/Dropdown.js +3 -3
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +7 -7
- package/ui/Icon.js +1 -1
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +11 -11
- package/ui/MessageContent.js +14 -14
- package/ui/MessageInput.js +10 -10
- package/ui/MessageItemMenu.js +7 -7
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +10 -10
- package/ui/MessageStatus.js +8 -8
- package/ui/Modal.js +12 -9
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +1 -1
- package/ui/OGMessageItemBody.js +11 -11
- package/ui/OpenChannelAdminMessage.js +4 -4
- package/ui/OpenChannelAvatar.js +7 -7
- package/ui/OpenchannelConversationHeader.js +7 -7
- package/ui/OpenchannelFileMessage.js +17 -17
- package/ui/OpenchannelFileMessage.js.map +1 -1
- package/ui/OpenchannelOGMessage.js +17 -17
- package/ui/OpenchannelOGMessage.js.map +1 -1
- package/ui/OpenchannelThumbnailMessage.js +16 -16
- package/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/ui/OpenchannelUserMessage.js +17 -17
- package/ui/OpenchannelUserMessage.js.map +1 -1
- package/ui/PlaceHolder.js +6 -6
- package/ui/QuoteMessage.js +7 -7
- package/ui/QuoteMessageInput.js +7 -7
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +11 -11
- package/ui/ThumbnailMessageItemBody.js +3 -3
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +34 -61
- package/ui/UserListItem.js.map +1 -1
- package/ui/UserProfile.js +10 -10
- package/ui/Word.js +11 -11
- package/useSendbirdStateContext.js +1 -1
- package/{utils-ad16f26f.js → utils-43a00393.js} +1 -1
- package/{utils-ad16f26f.js.map → utils-43a00393.js.map} +1 -1
- package/{utils-e6f6eb1b.js → utils-af217adb.js} +1 -1
- package/{utils-e6f6eb1b.js.map → utils-af217adb.js.map} +1 -1
- package/{utils-3702c3d4.js → utils-cf75b861.js} +1 -1
- package/{utils-3702c3d4.js.map → utils-cf75b861.js.map} +1 -1
- package/{uuid-9ac267fb.js → uuid-b7da2ddf.js} +1 -1
- package/{uuid-9ac267fb.js.map → uuid-b7da2ddf.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/MemberList-351c6fcc.js.map +0 -1
- package/OpenChannelProvider-5d02b219.js.map +0 -1
- package/__bundle-7dfccc8c-be772b9c.js +0 -4396
- package/__bundle-7dfccc8c-be772b9c.js.map +0 -1
- package/cjs/MemberList-17f30c30.js.map +0 -1
- package/cjs/OpenChannelProvider-2d921cf0.js.map +0 -1
- package/cjs/__bundle-7dfccc8c-92c0a42c.js +0 -4523
- package/cjs/__bundle-7dfccc8c-92c0a42c.js.map +0 -1
- package/cjs/groupChannel-65c54bfa.js +0 -9
- package/cjs/groupChannel-65c54bfa.js.map +0 -1
- package/cjs/openChannel-0e621900.js +0 -5251
- package/cjs/openChannel-0e621900.js.map +0 -1
- package/cjs/stringSet-8a5752c1.js.map +0 -1
- package/groupChannel-7e48e30f.js.map +0 -1
- package/openChannel-4de8ae5b.js +0 -5246
- package/openChannel-4de8ae5b.js.map +0 -1
- package/package-lock.json +0 -26318
- package/stringSet-adf0eb59.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { u as useOpenChannelContext } from '../../OpenChannelProvider-
|
|
2
|
+
import { u as useOpenChannelContext } from '../../OpenChannelProvider-5b45f840.js';
|
|
3
3
|
import OpenChannelInput from './OpenChannelInput.js';
|
|
4
4
|
import FrozenNotification from './FrozenChannelNotification.js';
|
|
5
5
|
import OpenchannelConversationHeader from './OpenChannelHeader.js';
|
|
6
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
6
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-dfc65ccf.js';
|
|
7
7
|
import OpenChannelMessageList from './OpenChannelMessageList.js';
|
|
8
|
-
import '../../index-
|
|
9
|
-
import '../../index-
|
|
10
|
-
import '../../UserProfileContext-
|
|
8
|
+
import '../../index-1984c852.js';
|
|
9
|
+
import '../../index-6e02fc15.js';
|
|
10
|
+
import '../../UserProfileContext-5bc5ff98.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../tslib.es6-
|
|
13
|
-
import '../../compareIds-
|
|
14
|
-
import '../../topics-
|
|
15
|
-
import '../../openChannel-
|
|
16
|
-
import '../../__bundle-7dfccc8c-
|
|
17
|
-
import '../../uuid-
|
|
12
|
+
import '../../tslib.es6-7a52c497.js';
|
|
13
|
+
import '../../compareIds-7eaf62a5.js';
|
|
14
|
+
import '../../topics-a5f3f0e9.js';
|
|
15
|
+
import '../../openChannel-92ffb0b5.js';
|
|
16
|
+
import '../../__bundle-7dfccc8c-dc566919.js';
|
|
17
|
+
import '../../uuid-b7da2ddf.js';
|
|
18
18
|
import '../../useSendbirdStateContext.js';
|
|
19
19
|
import '../../withSendbird.js';
|
|
20
|
-
import '../../_rollupPluginBabelHelpers-
|
|
21
|
-
import '../../LocalizationContext-
|
|
22
|
-
import '../../stringSet-
|
|
20
|
+
import '../../_rollupPluginBabelHelpers-51451000.js';
|
|
21
|
+
import '../../LocalizationContext-bed38f81.js';
|
|
22
|
+
import '../../stringSet-07d51930.js';
|
|
23
23
|
import '../../ui/MessageInput.js';
|
|
24
|
-
import '../../const-
|
|
25
|
-
import '../../const-
|
|
24
|
+
import '../../const-5ab9bb9f.js';
|
|
25
|
+
import '../../const-db8ec16d.js';
|
|
26
26
|
import '../../ui/IconButton.js';
|
|
27
|
-
import '../../index-
|
|
28
|
-
import '../../index-
|
|
27
|
+
import '../../index-a3d218da.js';
|
|
28
|
+
import '../../index-33456100.js';
|
|
29
29
|
import '../../ui/MentionUserLabel.js';
|
|
30
30
|
import '../../ui/Icon.js';
|
|
31
|
-
import '../../index-
|
|
31
|
+
import '../../index-c67f2f3b.js';
|
|
32
32
|
import '../../ui/Avatar.js';
|
|
33
33
|
import '../../ui/ImageRenderer.js';
|
|
34
34
|
import '../../ui/Loader.js';
|
|
35
|
-
import '../../index-
|
|
35
|
+
import '../../index-49108fb4.js';
|
|
36
36
|
import './OpenChannelMessage.js';
|
|
37
37
|
import '../../ui/OpenchannelUserMessage.js';
|
|
38
38
|
import '../../ui/ContextMenu.js';
|
|
@@ -40,19 +40,19 @@ import 'react-dom';
|
|
|
40
40
|
import '../../ui/SortByRow.js';
|
|
41
41
|
import '../../ui/UserProfile.js';
|
|
42
42
|
import '../../sendbirdSelectors.js';
|
|
43
|
-
import '../../utils-
|
|
44
|
-
import '../../utils-
|
|
45
|
-
import '../../openChannelUtils-
|
|
43
|
+
import '../../utils-af217adb.js';
|
|
44
|
+
import '../../utils-43a00393.js';
|
|
45
|
+
import '../../openChannelUtils-e69f8484.js';
|
|
46
46
|
import '../../ui/OpenChannelAdminMessage.js';
|
|
47
47
|
import '../../ui/OpenchannelOGMessage.js';
|
|
48
48
|
import '../../ui/LinkLabel.js';
|
|
49
49
|
import '../../ui/OpenchannelThumbnailMessage.js';
|
|
50
50
|
import '../../ui/OpenchannelFileMessage.js';
|
|
51
51
|
import '../../ui/TextButton.js';
|
|
52
|
-
import '../../color-
|
|
52
|
+
import '../../color-04ed392d.js';
|
|
53
53
|
import '../../ui/DateSeparator.js';
|
|
54
54
|
import '../../ui/FileViewer.js';
|
|
55
|
-
import '../../index-
|
|
55
|
+
import '../../index-7ed67f3f.js';
|
|
56
56
|
import '../../ui/Modal.js';
|
|
57
57
|
|
|
58
58
|
var COMPONENT_CLASS_NAME = 'sendbird-openchannel-conversation';
|
package/OpenChannel/context.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { O as OpenChannelProvider, u as useOpenChannelContext } from '../OpenChannelProvider-
|
|
3
|
-
import '../UserProfileContext-
|
|
4
|
-
import '../topics-
|
|
2
|
+
export { O as OpenChannelProvider, u as useOpenChannelContext } from '../OpenChannelProvider-5b45f840.js';
|
|
3
|
+
import '../UserProfileContext-5bc5ff98.js';
|
|
4
|
+
import '../topics-a5f3f0e9.js';
|
|
5
5
|
import '../useSendbirdStateContext.js';
|
|
6
|
-
import '../index-
|
|
7
|
-
import '../index-
|
|
8
|
-
import '../tslib.es6-
|
|
9
|
-
import '../compareIds-
|
|
10
|
-
import '../openChannel-
|
|
11
|
-
import '../__bundle-7dfccc8c-
|
|
12
|
-
import '../uuid-
|
|
6
|
+
import '../index-1984c852.js';
|
|
7
|
+
import '../index-6e02fc15.js';
|
|
8
|
+
import '../tslib.es6-7a52c497.js';
|
|
9
|
+
import '../compareIds-7eaf62a5.js';
|
|
10
|
+
import '../openChannel-92ffb0b5.js';
|
|
11
|
+
import '../__bundle-7dfccc8c-dc566919.js';
|
|
12
|
+
import '../uuid-b7da2ddf.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import '../withSendbird.js';
|
|
15
|
-
import '../_rollupPluginBabelHelpers-
|
|
15
|
+
import '../_rollupPluginBabelHelpers-51451000.js';
|
|
16
16
|
//# sourceMappingURL=context.js.map
|
package/OpenChannel.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import OpenChannelUI from './OpenChannel/components/OpenChannelUI.js';
|
|
3
|
-
import { O as OpenChannelProvider } from './OpenChannelProvider-
|
|
3
|
+
import { O as OpenChannelProvider } from './OpenChannelProvider-5b45f840.js';
|
|
4
4
|
import './OpenChannel/components/OpenChannelInput.js';
|
|
5
|
-
import './LocalizationContext-
|
|
6
|
-
import './stringSet-
|
|
7
|
-
import './index-
|
|
5
|
+
import './LocalizationContext-bed38f81.js';
|
|
6
|
+
import './stringSet-07d51930.js';
|
|
7
|
+
import './index-6e02fc15.js';
|
|
8
8
|
import './ui/MessageInput.js';
|
|
9
|
-
import './_rollupPluginBabelHelpers-
|
|
9
|
+
import './_rollupPluginBabelHelpers-51451000.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import './const-
|
|
12
|
-
import './const-
|
|
11
|
+
import './const-5ab9bb9f.js';
|
|
12
|
+
import './const-db8ec16d.js';
|
|
13
13
|
import './ui/IconButton.js';
|
|
14
|
-
import './index-
|
|
15
|
-
import './index-
|
|
14
|
+
import './index-a3d218da.js';
|
|
15
|
+
import './index-33456100.js';
|
|
16
16
|
import './ui/MentionUserLabel.js';
|
|
17
17
|
import './ui/Icon.js';
|
|
18
|
-
import './index-
|
|
19
|
-
import './tslib.es6-
|
|
18
|
+
import './index-c67f2f3b.js';
|
|
19
|
+
import './tslib.es6-7a52c497.js';
|
|
20
20
|
import './OpenChannel/components/FrozenChannelNotification.js';
|
|
21
21
|
import './OpenChannel/components/OpenChannelHeader.js';
|
|
22
22
|
import './ui/Avatar.js';
|
|
23
23
|
import './ui/ImageRenderer.js';
|
|
24
|
-
import './uuid-
|
|
25
|
-
import './index-
|
|
24
|
+
import './uuid-b7da2ddf.js';
|
|
25
|
+
import './index-dfc65ccf.js';
|
|
26
26
|
import './ui/Loader.js';
|
|
27
27
|
import './OpenChannel/components/OpenChannelMessageList.js';
|
|
28
|
-
import './index-
|
|
29
|
-
import './index-
|
|
28
|
+
import './index-49108fb4.js';
|
|
29
|
+
import './index-1984c852.js';
|
|
30
30
|
import './OpenChannel/components/OpenChannelMessage.js';
|
|
31
31
|
import './ui/OpenchannelUserMessage.js';
|
|
32
32
|
import './ui/ContextMenu.js';
|
|
@@ -35,26 +35,26 @@ import './ui/SortByRow.js';
|
|
|
35
35
|
import './ui/UserProfile.js';
|
|
36
36
|
import './withSendbird.js';
|
|
37
37
|
import './sendbirdSelectors.js';
|
|
38
|
-
import './topics-
|
|
39
|
-
import './utils-
|
|
40
|
-
import './UserProfileContext-
|
|
41
|
-
import './utils-
|
|
42
|
-
import './openChannelUtils-
|
|
38
|
+
import './topics-a5f3f0e9.js';
|
|
39
|
+
import './utils-af217adb.js';
|
|
40
|
+
import './UserProfileContext-5bc5ff98.js';
|
|
41
|
+
import './utils-43a00393.js';
|
|
42
|
+
import './openChannelUtils-e69f8484.js';
|
|
43
43
|
import './ui/OpenChannelAdminMessage.js';
|
|
44
44
|
import './ui/OpenchannelOGMessage.js';
|
|
45
45
|
import './ui/LinkLabel.js';
|
|
46
46
|
import './ui/OpenchannelThumbnailMessage.js';
|
|
47
47
|
import './ui/OpenchannelFileMessage.js';
|
|
48
48
|
import './ui/TextButton.js';
|
|
49
|
-
import './color-
|
|
49
|
+
import './color-04ed392d.js';
|
|
50
50
|
import './ui/DateSeparator.js';
|
|
51
51
|
import './ui/FileViewer.js';
|
|
52
|
-
import './index-
|
|
52
|
+
import './index-7ed67f3f.js';
|
|
53
53
|
import './ui/Modal.js';
|
|
54
54
|
import './useSendbirdStateContext.js';
|
|
55
|
-
import './compareIds-
|
|
56
|
-
import './openChannel-
|
|
57
|
-
import './__bundle-7dfccc8c-
|
|
55
|
+
import './compareIds-7eaf62a5.js';
|
|
56
|
+
import './openChannel-92ffb0b5.js';
|
|
57
|
+
import './__bundle-7dfccc8c-dc566919.js';
|
|
58
58
|
|
|
59
59
|
var OpenChannel = function OpenChannel(props) {
|
|
60
60
|
return /*#__PURE__*/React__default.createElement(OpenChannelProvider, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useEffect, useCallback, useState, useReducer, useRef, useMemo } from 'react';
|
|
2
|
-
import { f as format } from './index-
|
|
3
|
-
import { U as UserProfileProvider } from './UserProfileContext-
|
|
4
|
-
import { _ as __assign, a as __spreadArray } from './tslib.es6-
|
|
5
|
-
import { c as compareIds } from './compareIds-
|
|
6
|
-
import { a as SEND_USER_MESSAGE, S as SEND_MESSAGE_START, b as SEND_FILE_MESSAGE, U as UPDATE_USER_MESSAGE, D as DELETE_MESSAGE } from './topics-
|
|
7
|
-
import { U as Un } from './openChannel-
|
|
8
|
-
import { u as uuidv4 } from './uuid-
|
|
9
|
-
import { n as ne } from './__bundle-7dfccc8c-
|
|
2
|
+
import { f as format } from './index-1984c852.js';
|
|
3
|
+
import { U as UserProfileProvider } from './UserProfileContext-5bc5ff98.js';
|
|
4
|
+
import { _ as __assign, a as __spreadArray } from './tslib.es6-7a52c497.js';
|
|
5
|
+
import { c as compareIds } from './compareIds-7eaf62a5.js';
|
|
6
|
+
import { a as SEND_USER_MESSAGE, S as SEND_MESSAGE_START, b as SEND_FILE_MESSAGE, U as UPDATE_USER_MESSAGE, D as DELETE_MESSAGE } from './topics-a5f3f0e9.js';
|
|
7
|
+
import { U as Un } from './openChannel-92ffb0b5.js';
|
|
8
|
+
import { u as uuidv4 } from './uuid-b7da2ddf.js';
|
|
9
|
+
import { n as ne } from './__bundle-7dfccc8c-dc566919.js';
|
|
10
10
|
import useSendbirdStateContext from './useSendbirdStateContext.js';
|
|
11
11
|
|
|
12
12
|
var getMessageCreatedAt = function getMessageCreatedAt(message) {
|
|
@@ -278,9 +278,10 @@ function reducer(state, action) {
|
|
|
278
278
|
case SENDING_MESSAGE_FAILED:
|
|
279
279
|
{
|
|
280
280
|
var sentMessage_2 = action.payload;
|
|
281
|
+
sentMessage_2.sendingStatus = 'failed';
|
|
281
282
|
|
|
282
283
|
if (!state.allMessages.some(function (m) {
|
|
283
|
-
return m.reqId === sentMessage_2.reqId;
|
|
284
|
+
return (m === null || m === void 0 ? void 0 : m.reqId) === (sentMessage_2 === null || sentMessage_2 === void 0 ? void 0 : sentMessage_2.reqId);
|
|
284
285
|
})) {
|
|
285
286
|
// Handling failed first than sending start issue
|
|
286
287
|
return __assign(__assign({}, state), {
|
|
@@ -742,11 +743,25 @@ function useSetChannel(_a, _b) {
|
|
|
742
743
|
}
|
|
743
744
|
});
|
|
744
745
|
});
|
|
746
|
+
} else {
|
|
747
|
+
openChannel.getMyMutedInfo().then(function (mutedInfo) {
|
|
748
|
+
if (mutedInfo === null || mutedInfo === void 0 ? void 0 : mutedInfo.isMuted) {
|
|
749
|
+
messagesDispatcher({
|
|
750
|
+
type: FETCH_MUTED_USER_LIST,
|
|
751
|
+
payload: {
|
|
752
|
+
channel: openChannel,
|
|
753
|
+
users: [sdk === null || sdk === void 0 ? void 0 : sdk.currentUser]
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
});
|
|
745
758
|
}
|
|
746
759
|
|
|
747
760
|
if (fetchingParticipants) {
|
|
748
761
|
// fetch participants list
|
|
749
|
-
var participantListQuery = openChannel.createParticipantListQuery({
|
|
762
|
+
var participantListQuery = openChannel.createParticipantListQuery({
|
|
763
|
+
limit: openChannel.participantCount
|
|
764
|
+
});
|
|
750
765
|
fetchWithListQuery(participantListQuery, logger, function (users) {
|
|
751
766
|
messagesDispatcher({
|
|
752
767
|
type: FETCH_PARTICIPANT_LIST,
|
|
@@ -767,7 +782,7 @@ function useSetChannel(_a, _b) {
|
|
|
767
782
|
payload: null
|
|
768
783
|
});
|
|
769
784
|
});
|
|
770
|
-
}).catch(function () {
|
|
785
|
+
}).catch(function (error) {
|
|
771
786
|
logger.warning('OpenChannel | useSetChannel fetching channel failed', {
|
|
772
787
|
channelUrl: channelUrl,
|
|
773
788
|
error: error
|
|
@@ -1266,6 +1281,7 @@ function useSendMessageCallback(_a, _b) {
|
|
|
1266
1281
|
var params = onBeforeSendUserMessage ? onBeforeSendUserMessage(text) : createParamsDefault(text);
|
|
1267
1282
|
logger.info('OpenChannel | useSendMessageCallback: Sending message has started', params);
|
|
1268
1283
|
var isBottom_1 = checkScrollBottom();
|
|
1284
|
+
var pendingMsg_1 = null;
|
|
1269
1285
|
currentOpenChannel.sendUserMessage(params).onPending(function (pendingMessage) {
|
|
1270
1286
|
messagesDispatcher({
|
|
1271
1287
|
type: SENDING_MESSAGE_START,
|
|
@@ -1274,6 +1290,7 @@ function useSendMessageCallback(_a, _b) {
|
|
|
1274
1290
|
channel: currentOpenChannel
|
|
1275
1291
|
}
|
|
1276
1292
|
});
|
|
1293
|
+
pendingMsg_1 = pendingMessage;
|
|
1277
1294
|
}).onSucceeded(function (message) {
|
|
1278
1295
|
logger.info('OpenChannel | useSendMessageCallback: Sending message succeeded', message);
|
|
1279
1296
|
messagesDispatcher({
|
|
@@ -1286,11 +1303,11 @@ function useSendMessageCallback(_a, _b) {
|
|
|
1286
1303
|
scrollIntoLast();
|
|
1287
1304
|
});
|
|
1288
1305
|
}
|
|
1289
|
-
}).onFailed(function (error
|
|
1306
|
+
}).onFailed(function (error) {
|
|
1290
1307
|
logger.warning('OpenChannel | useSendMessageCallback: Sending message failed', error);
|
|
1291
1308
|
messagesDispatcher({
|
|
1292
1309
|
type: SENDING_MESSAGE_FAILED,
|
|
1293
|
-
payload:
|
|
1310
|
+
payload: pendingMsg_1
|
|
1294
1311
|
}); // https://sendbird.com/docs/chat/v3/javascript/guides/error-codes#2-server-error-codes
|
|
1295
1312
|
// TODO: Do we need to handle the error cases?
|
|
1296
1313
|
// @ts-ignore
|
|
@@ -1892,7 +1909,17 @@ var OpenChannelProvider = function OpenChannelProvider(props) {
|
|
|
1892
1909
|
});
|
|
1893
1910
|
}
|
|
1894
1911
|
};
|
|
1895
|
-
}, [channelUrl, sdkInit]);
|
|
1912
|
+
}, [channelUrl, sdkInit]); // Exit channel when unmount
|
|
1913
|
+
|
|
1914
|
+
useEffect(function () {
|
|
1915
|
+
return function () {
|
|
1916
|
+
if (currentOpenChannel && currentOpenChannel.exit) {
|
|
1917
|
+
currentOpenChannel.exit().then(function () {
|
|
1918
|
+
logger.info('OpenChannel | useSetChannel: Succeeded to exit channel');
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
}, [currentOpenChannel]);
|
|
1896
1923
|
return /*#__PURE__*/React__default.createElement(OpenChannelContext.Provider, {
|
|
1897
1924
|
value: {
|
|
1898
1925
|
// props
|
|
@@ -1943,4 +1970,4 @@ var useOpenChannelContext = function useOpenChannelContext() {
|
|
|
1943
1970
|
};
|
|
1944
1971
|
|
|
1945
1972
|
export { OpenChannelProvider as O, compareMessagesForGrouping as c, kFormatter as k, useOpenChannelContext as u };
|
|
1946
|
-
//# sourceMappingURL=OpenChannelProvider-
|
|
1973
|
+
//# sourceMappingURL=OpenChannelProvider-5b45f840.js.map
|