@sendbird/uikit-react 3.0.1 → 3.0.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +32 -32
- package/CHANGELOG.md +16 -0
- package/Channel/components/ChannelHeader.js +17 -17
- package/Channel/components/ChannelUI.js +29 -25
- package/Channel/components/ChannelUI.js.map +1 -1
- 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 +28 -24
- package/Channel/components/MessageList.js.map +1 -1
- 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 +54 -35
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- 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-471abb8f.js → ChannelListProvider-945445c9.js} +43 -29
- package/ChannelListProvider-945445c9.js.map +1 -0
- package/{ChannelProvider-01a680e0.js → ChannelProvider-21d4378a.js} +21 -15
- package/ChannelProvider-21d4378a.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +13 -13
- package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/ChannelSettings/components/LeaveChannel.js +10 -10
- package/ChannelSettings/components/ModerationPanel.js +15 -15
- package/ChannelSettings/components/UserListItem.js +12 -12
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +18 -18
- package/CreateChannel/components/CreateChannelUI.js +14 -14
- package/CreateChannel/components/InviteUsers.js +24 -21
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +14 -14
- package/{CreateChannelProvider-efa959ed.js → CreateChannelProvider-53259d87.js} +1 -1
- package/{CreateChannelProvider-efa959ed.js.map → CreateChannelProvider-53259d87.js.map} +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/EditUserProfile.js +13 -13
- package/{LocalizationContext-7f115178.js → LocalizationContext-08cebf79.js} +3 -3
- package/{LocalizationContext-7f115178.js.map → LocalizationContext-08cebf79.js.map} +1 -1
- package/{MemberList-9863866e.js → MemberList-29cf5f98.js} +12 -9
- package/MemberList-29cf5f98.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 +23 -23
- package/OpenChannel/components/OpenChannelMessageList.js +25 -25
- package/OpenChannel/components/OpenChannelUI.js +25 -25
- package/OpenChannel/context.js +11 -11
- package/OpenChannel.js +25 -25
- package/{OpenChannelProvider-d11382d9.js → OpenChannelProvider-404556c2.js} +9 -9
- package/{OpenChannelProvider-d11382d9.js.map → OpenChannelProvider-404556c2.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/OpenChannelSettings/context.js +2 -2
- package/OpenChannelSettings.js +17 -17
- package/SendbirdProvider.js +58 -40
- package/SendbirdProvider.js.map +1 -1
- package/{UserProfileContext-eccdbd50.js → UserProfileContext-97bec8f7.js} +1 -1
- package/{UserProfileContext-eccdbd50.js.map → UserProfileContext-97bec8f7.js.map} +1 -1
- package/__bundle-7dfccc8c-ff995ba0.js +4396 -0
- package/__bundle-7dfccc8c-ff995ba0.js.map +1 -0
- package/{_rollupPluginBabelHelpers-2a8797d8.js → _rollupPluginBabelHelpers-9a08c8bf.js} +1 -1
- package/{_rollupPluginBabelHelpers-2a8797d8.js.map → _rollupPluginBabelHelpers-9a08c8bf.js.map} +1 -1
- package/{actionTypes-a992088f.js → actionTypes-eea40cdf.js} +1 -1
- package/{actionTypes-a992088f.js.map → actionTypes-eea40cdf.js.map} +1 -1
- package/cjs/App.js +32 -32
- package/cjs/Channel/components/ChannelHeader.js +17 -17
- package/cjs/Channel/components/ChannelUI.js +29 -25
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- 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 +28 -24
- package/cjs/Channel/components/MessageList.js.map +1 -1
- 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 +53 -34
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- 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-8632f526.js → ChannelListProvider-0639f230.js} +43 -29
- package/cjs/ChannelListProvider-0639f230.js.map +1 -0
- package/cjs/{ChannelProvider-5e683eb1.js → ChannelProvider-33719788.js} +21 -15
- package/cjs/ChannelProvider-33719788.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/cjs/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
- package/cjs/ChannelSettings/components/ModerationPanel.js +15 -15
- package/cjs/ChannelSettings/components/UserListItem.js +12 -12
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +18 -18
- package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
- package/cjs/CreateChannel/components/InviteUsers.js +24 -21
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +14 -14
- package/cjs/{CreateChannelProvider-7f6cf793.js → CreateChannelProvider-87272710.js} +1 -1
- package/cjs/{CreateChannelProvider-7f6cf793.js.map → CreateChannelProvider-87272710.js.map} +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +13 -13
- package/cjs/{LocalizationContext-0537da22.js → LocalizationContext-6465626c.js} +3 -3
- package/cjs/{LocalizationContext-0537da22.js.map → LocalizationContext-6465626c.js.map} +1 -1
- package/cjs/{MemberList-4efb8994.js → MemberList-ee6eb19f.js} +12 -9
- package/cjs/MemberList-ee6eb19f.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 +23 -23
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +25 -25
- package/cjs/OpenChannel/components/OpenChannelUI.js +25 -25
- package/cjs/OpenChannel/context.js +11 -11
- package/cjs/OpenChannel.js +25 -25
- package/cjs/{OpenChannelProvider-7969a8c0.js → OpenChannelProvider-3683d099.js} +9 -9
- package/cjs/{OpenChannelProvider-7969a8c0.js.map → OpenChannelProvider-3683d099.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/cjs/OpenChannelSettings/context.js +2 -2
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/SendbirdProvider.js +58 -40
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/{UserProfileContext-e13859c2.js → UserProfileContext-df8199ec.js} +1 -1
- package/cjs/{UserProfileContext-e13859c2.js.map → UserProfileContext-df8199ec.js.map} +1 -1
- package/cjs/__bundle-7dfccc8c-5e21874b.js +4523 -0
- package/cjs/__bundle-7dfccc8c-5e21874b.js.map +1 -0
- package/cjs/{_rollupPluginBabelHelpers-116d792d.js → _rollupPluginBabelHelpers-720b1baf.js} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-116d792d.js.map → _rollupPluginBabelHelpers-720b1baf.js.map} +1 -1
- package/cjs/{actionTypes-ce9861e1.js → actionTypes-ed5cc34a.js} +1 -1
- package/cjs/{actionTypes-ce9861e1.js.map → actionTypes-ed5cc34a.js.map} +1 -1
- package/cjs/{color-76e3ed0d.js → color-63291cc4.js} +1 -1
- package/cjs/{color-76e3ed0d.js.map → color-63291cc4.js.map} +1 -1
- package/cjs/{compareIds-d11fdea7.js → compareIds-b63abf00.js} +1 -1
- package/cjs/{compareIds-d11fdea7.js.map → compareIds-b63abf00.js.map} +1 -1
- package/cjs/{const-a6cfa3dc.js → const-766cd123.js} +1 -1
- package/cjs/{const-a6cfa3dc.js.map → const-766cd123.js.map} +1 -1
- package/cjs/{const-2da24989.js → const-ff74be91.js} +1 -1
- package/cjs/{const-2da24989.js.map → const-ff74be91.js.map} +1 -1
- package/cjs/{context-7d13e92d.js → context-f090cc51.js} +2 -2
- package/cjs/{context-7d13e92d.js.map → context-f090cc51.js.map} +1 -1
- package/cjs/{groupChannel-3f4aaa32.js → groupChannel-c1f53052.js} +2 -2
- package/cjs/{groupChannel-3f4aaa32.js.map → groupChannel-c1f53052.js.map} +1 -1
- package/cjs/{index-2596c9f9.js → index-0b461031.js} +2 -2
- package/cjs/{index-2596c9f9.js.map → index-0b461031.js.map} +1 -1
- package/cjs/{index-8e975b91.js → index-11031c1a.js} +3 -3
- package/cjs/{index-8e975b91.js.map → index-11031c1a.js.map} +1 -1
- package/cjs/{index-62b2f3b4.js → index-6d39a929.js} +2 -2
- package/cjs/{index-62b2f3b4.js.map → index-6d39a929.js.map} +1 -1
- package/cjs/{index-0207af7d.js → index-7ca86e7a.js} +4 -4
- package/cjs/{index-0207af7d.js.map → index-7ca86e7a.js.map} +1 -1
- package/cjs/{index-691debed.js → index-8cd26508.js} +1 -1
- package/cjs/{index-691debed.js.map → index-8cd26508.js.map} +1 -1
- package/cjs/{index-86f7e77d.js → index-b28dfe02.js} +3 -3
- package/cjs/{index-86f7e77d.js.map → index-b28dfe02.js.map} +1 -1
- package/cjs/{index-41b5e18c.js → index-c142357a.js} +1 -1
- package/cjs/{index-41b5e18c.js.map → index-c142357a.js.map} +1 -1
- package/cjs/{index-2be8b3df.js → index-cb538ec6.js} +2 -2
- package/cjs/{index-2be8b3df.js.map → index-cb538ec6.js.map} +1 -1
- package/cjs/{index-eb6344e9.js → index-dd1efb51.js} +6 -6
- package/cjs/{index-eb6344e9.js.map → index-dd1efb51.js.map} +1 -1
- package/cjs/{index-a6cd696f.js → index-f2004893.js} +4 -4
- package/cjs/{index-a6cd696f.js.map → index-f2004893.js.map} +1 -1
- package/cjs/index.js +35 -35
- package/cjs/openChannel-44cc2f8f.js +5251 -0
- package/cjs/openChannel-44cc2f8f.js.map +1 -0
- package/cjs/{openChannelUtils-cede8a88.js → openChannelUtils-6101651d.js} +1 -1
- package/cjs/{openChannelUtils-cede8a88.js.map → openChannelUtils-6101651d.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-2b4edf07.js → stringSet-8cf3905e.js} +1 -1
- package/cjs/{stringSet-2b4edf07.js.map → stringSet-8cf3905e.js.map} +1 -1
- package/cjs/{topics-b910c620.js → topics-db086d13.js} +1 -1
- package/cjs/{topics-b910c620.js.map → topics-db086d13.js.map} +1 -1
- package/cjs/{tslib.es6-9a5d5697.js → tslib.es6-22430723.js} +1 -1
- package/cjs/{tslib.es6-9a5d5697.js.map → tslib.es6-22430723.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 +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 +14 -13
- package/cjs/ui/MentionLabel.js.map +1 -1
- 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 +8 -8
- 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 +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +15 -15
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- 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 +12 -12
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/Word.js +11 -11
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-15274d9b.js → utils-65925965.js} +1 -1
- package/cjs/{utils-15274d9b.js.map → utils-65925965.js.map} +1 -1
- package/cjs/{utils-4fadd220.js → utils-bbccbba3.js} +1 -1
- package/cjs/{utils-4fadd220.js.map → utils-bbccbba3.js.map} +1 -1
- package/cjs/{utils-b6bcd345.js → utils-f5e0083d.js} +1 -1
- package/cjs/{utils-b6bcd345.js.map → utils-f5e0083d.js.map} +1 -1
- package/cjs/{uuid-de92c01b.js → uuid-88159451.js} +1 -1
- package/cjs/{uuid-de92c01b.js.map → uuid-88159451.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-1727a3fb.js → color-aef1bef8.js} +1 -1
- package/{color-1727a3fb.js.map → color-aef1bef8.js.map} +1 -1
- package/{compareIds-ccf594a3.js → compareIds-3f1a5a5a.js} +1 -1
- package/{compareIds-ccf594a3.js.map → compareIds-3f1a5a5a.js.map} +1 -1
- package/{const-4674ec61.js → const-a6734af7.js} +1 -1
- package/{const-4674ec61.js.map → const-a6734af7.js.map} +1 -1
- package/{const-d3d5e7fc.js → const-b1f038b0.js} +1 -1
- package/{const-d3d5e7fc.js.map → const-b1f038b0.js.map} +1 -1
- package/{context-5db053f0.js → context-d04e2502.js} +2 -2
- package/{context-5db053f0.js.map → context-d04e2502.js.map} +1 -1
- package/{groupChannel-9bc7ca19.js → groupChannel-10e918af.js} +2 -2
- package/{groupChannel-9bc7ca19.js.map → groupChannel-10e918af.js.map} +1 -1
- package/{index-eeac3879.js → index-0d4dcc94.js} +3 -3
- package/{index-eeac3879.js.map → index-0d4dcc94.js.map} +1 -1
- package/{index-4e2ac873.js → index-13e3837f.js} +2 -2
- package/{index-4e2ac873.js.map → index-13e3837f.js.map} +1 -1
- package/{index-04458193.js → index-41a3e405.js} +4 -4
- package/{index-04458193.js.map → index-41a3e405.js.map} +1 -1
- package/{index-9570e69e.js → index-623fd405.js} +1 -1
- package/{index-9570e69e.js.map → index-623fd405.js.map} +1 -1
- package/{index-b188a276.js → index-73193bfa.js} +6 -6
- package/{index-b188a276.js.map → index-73193bfa.js.map} +1 -1
- package/{index-201c73a9.js → index-8528dcd1.js} +1 -1
- package/{index-201c73a9.js.map → index-8528dcd1.js.map} +1 -1
- package/{index-a355e1d8.js → index-afd61eff.js} +2 -2
- package/{index-a355e1d8.js.map → index-afd61eff.js.map} +1 -1
- package/{index-64b4e22e.js → index-cc9419b6.js} +4 -4
- package/{index-64b4e22e.js.map → index-cc9419b6.js.map} +1 -1
- package/{index-33a103e9.js → index-cdd2789a.js} +3 -3
- package/{index-33a103e9.js.map → index-cdd2789a.js.map} +1 -1
- package/{index-e15303b6.js → index-f222d022.js} +2 -2
- package/{index-e15303b6.js.map → index-f222d022.js.map} +1 -1
- package/index.js +35 -35
- package/openChannel-b0ad7380.js +5246 -0
- package/openChannel-b0ad7380.js.map +1 -0
- package/{openChannelUtils-0ffa52be.js → openChannelUtils-3ababdd1.js} +1 -1
- package/{openChannelUtils-0ffa52be.js.map → openChannelUtils-3ababdd1.js.map} +1 -1
- package/package-lock.json +1 -1
- package/package.json +2 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-a6858154.js → stringSet-efeb1ad3.js} +1 -1
- package/{stringSet-a6858154.js.map → stringSet-efeb1ad3.js.map} +1 -1
- package/{topics-58103dff.js → topics-7181983e.js} +1 -1
- package/{topics-58103dff.js.map → topics-7181983e.js.map} +1 -1
- package/{tslib.es6-28c0bd97.js → tslib.es6-91aa0158.js} +1 -1
- package/{tslib.es6-28c0bd97.js.map → tslib.es6-91aa0158.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 +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 +14 -13
- package/ui/MentionLabel.js.map +1 -1
- 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 +8 -8
- 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 +15 -15
- package/ui/OpenchannelOGMessage.js +15 -15
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- 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 +12 -12
- package/ui/UserProfile.js +10 -10
- package/ui/Word.js +11 -11
- package/useSendbirdStateContext.js +1 -1
- package/{utils-5477ddbc.js → utils-0db9b91e.js} +1 -1
- package/{utils-5477ddbc.js.map → utils-0db9b91e.js.map} +1 -1
- package/{utils-e2f16b69.js → utils-6ed4fbb8.js} +1 -1
- package/{utils-e2f16b69.js.map → utils-6ed4fbb8.js.map} +1 -1
- package/{utils-5fe76946.js → utils-7b9c4aab.js} +1 -1
- package/{utils-5fe76946.js.map → utils-7b9c4aab.js.map} +1 -1
- package/{uuid-38ace415.js → uuid-902e6498.js} +1 -1
- package/{uuid-38ace415.js.map → uuid-902e6498.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-471abb8f.js.map +0 -1
- package/ChannelProvider-01a680e0.js.map +0 -1
- package/MemberList-9863866e.js.map +0 -1
- package/__bundle-7dfccc8c-62bd23b5.js +0 -24
- package/__bundle-7dfccc8c-62bd23b5.js.map +0 -1
- package/cjs/ChannelListProvider-8632f526.js.map +0 -1
- package/cjs/ChannelProvider-5e683eb1.js.map +0 -1
- package/cjs/MemberList-4efb8994.js.map +0 -1
- package/cjs/__bundle-7dfccc8c-d812ccd2.js +0 -151
- package/cjs/__bundle-7dfccc8c-d812ccd2.js.map +0 -1
- package/cjs/openChannel-7272b85b.js +0 -13
- package/cjs/openChannel-7272b85b.js.map +0 -1
- package/openChannel-a5d4b5d4.js +0 -8
- package/openChannel-a5d4b5d4.js.map +0 -1
package/App.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Sendbird from './SendbirdProvider.js';
|
|
@@ -7,25 +7,25 @@ import Channel from './Channel.js';
|
|
|
7
7
|
import ChannelSettings from './ChannelSettings.js';
|
|
8
8
|
import MessageSearchPannel from './MessageSearch.js';
|
|
9
9
|
import './withSendbird.js';
|
|
10
|
-
import './openChannel-
|
|
11
|
-
import './__bundle-7dfccc8c-
|
|
12
|
-
import './groupChannel-
|
|
13
|
-
import './actionTypes-
|
|
14
|
-
import './index-
|
|
15
|
-
import './tslib.es6-
|
|
10
|
+
import './openChannel-b0ad7380.js';
|
|
11
|
+
import './__bundle-7dfccc8c-ff995ba0.js';
|
|
12
|
+
import './groupChannel-10e918af.js';
|
|
13
|
+
import './actionTypes-eea40cdf.js';
|
|
14
|
+
import './index-afd61eff.js';
|
|
15
|
+
import './tslib.es6-91aa0158.js';
|
|
16
16
|
import 'css-vars-ponyfill';
|
|
17
|
-
import './uuid-
|
|
18
|
-
import './LocalizationContext-
|
|
19
|
-
import './stringSet-
|
|
20
|
-
import './index-
|
|
21
|
-
import './ChannelListProvider-
|
|
22
|
-
import './topics-
|
|
23
|
-
import './utils-
|
|
24
|
-
import './UserProfileContext-
|
|
17
|
+
import './uuid-902e6498.js';
|
|
18
|
+
import './LocalizationContext-08cebf79.js';
|
|
19
|
+
import './stringSet-efeb1ad3.js';
|
|
20
|
+
import './index-623fd405.js';
|
|
21
|
+
import './ChannelListProvider-945445c9.js';
|
|
22
|
+
import './topics-7181983e.js';
|
|
23
|
+
import './utils-0db9b91e.js';
|
|
24
|
+
import './UserProfileContext-97bec8f7.js';
|
|
25
25
|
import './useSendbirdStateContext.js';
|
|
26
26
|
import './ChannelList/components/ChannelListUI.js';
|
|
27
27
|
import './ChannelList/components/ChannelListHeader.js';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-0d4dcc94.js';
|
|
29
29
|
import './ui/IconButton.js';
|
|
30
30
|
import './ui/Avatar.js';
|
|
31
31
|
import './ui/ImageRenderer.js';
|
|
@@ -33,13 +33,13 @@ import './ui/Icon.js';
|
|
|
33
33
|
import './ChannelList/components/AddChannel.js';
|
|
34
34
|
import './CreateChannel.js';
|
|
35
35
|
import './CreateChannel/components/CreateChannelUI.js';
|
|
36
|
-
import './CreateChannelProvider-
|
|
36
|
+
import './CreateChannelProvider-53259d87.js';
|
|
37
37
|
import './sendbirdSelectors.js';
|
|
38
38
|
import './CreateChannel/components/InviteUsers.js';
|
|
39
39
|
import './ui/Modal.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
-
import './index-
|
|
42
|
-
import './index-
|
|
41
|
+
import './index-8528dcd1.js';
|
|
42
|
+
import './index-cdd2789a.js';
|
|
43
43
|
import './ui/UserListItem.js';
|
|
44
44
|
import './ui/MutedAvatarOverlay.js';
|
|
45
45
|
import './ui/Checkbox.js';
|
|
@@ -49,33 +49,33 @@ import './ui/SortByRow.js';
|
|
|
49
49
|
import './CreateChannel/components/SelectChannelType.js';
|
|
50
50
|
import './ChannelList/components/ChannelPreview.js';
|
|
51
51
|
import './ui/ChannelAvatar.js';
|
|
52
|
-
import './utils-
|
|
52
|
+
import './utils-7b9c4aab.js';
|
|
53
53
|
import './ui/Badge.js';
|
|
54
|
-
import './index-
|
|
55
|
-
import './index-
|
|
56
|
-
import './index-
|
|
54
|
+
import './index-cc9419b6.js';
|
|
55
|
+
import './index-13e3837f.js';
|
|
56
|
+
import './index-f222d022.js';
|
|
57
57
|
import './ui/MentionUserLabel.js';
|
|
58
58
|
import './Channel/components/TypingIndicator.js';
|
|
59
|
-
import './ChannelProvider-
|
|
60
|
-
import './compareIds-
|
|
61
|
-
import './const-
|
|
59
|
+
import './ChannelProvider-21d4378a.js';
|
|
60
|
+
import './compareIds-3f1a5a5a.js';
|
|
61
|
+
import './const-a6734af7.js';
|
|
62
62
|
import './ui/ReactionButton.js';
|
|
63
63
|
import './ui/MessageStatus.js';
|
|
64
64
|
import './ui/Loader.js';
|
|
65
65
|
import './ChannelList/components/ChannelPreviewAction.js';
|
|
66
66
|
import './EditUserProfile.js';
|
|
67
|
-
import './index-
|
|
67
|
+
import './index-73193bfa.js';
|
|
68
68
|
import './ui/Input.js';
|
|
69
69
|
import './ui/TextButton.js';
|
|
70
|
-
import './color-
|
|
71
|
-
import './index-
|
|
70
|
+
import './color-aef1bef8.js';
|
|
71
|
+
import './index-41a3e405.js';
|
|
72
72
|
import './Channel/components/ChannelUI.js';
|
|
73
73
|
import './ui/ConnectionStatus.js';
|
|
74
74
|
import './Channel/components/ChannelHeader.js';
|
|
75
75
|
import './Channel/components/MessageList.js';
|
|
76
76
|
import './Channel/components/Message.js';
|
|
77
77
|
import './Channel/components/SuggestedMentionList.js';
|
|
78
|
-
import './const-
|
|
78
|
+
import './const-b1f038b0.js';
|
|
79
79
|
import './ui/DateSeparator.js';
|
|
80
80
|
import './ui/MessageInput.js';
|
|
81
81
|
import './ui/MessageContent.js';
|
|
@@ -108,9 +108,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
|
|
|
108
108
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
109
109
|
import './ui/Accordion.js';
|
|
110
110
|
import './ui/AccordionGroup.js';
|
|
111
|
-
import './context-
|
|
111
|
+
import './context-d04e2502.js';
|
|
112
112
|
import './ChannelSettings/components/UserListItem.js';
|
|
113
|
-
import './MemberList-
|
|
113
|
+
import './MemberList-29cf5f98.js';
|
|
114
114
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
115
115
|
import './ChannelSettings/components/UserPanel.js';
|
|
116
116
|
import './MessageSearch/components/MessageSearchUI.js';
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
# Changelog - v3
|
|
2
|
+
|
|
3
|
+
## [v3.0.2-beta.0] (July 31 2022)
|
|
4
|
+
|
|
5
|
+
Fixes:
|
|
6
|
+
* Explicitly export library as esm-module
|
|
7
|
+
ESM library should have "type": "module" (package.json file that is going to /dist)
|
|
8
|
+
This fixes Cannot use import outside module issue in next.js
|
|
9
|
+
* Add optional chaining for createApplicationUserList
|
|
10
|
+
* Cannot connect sometimes when customApiHost is empty
|
|
11
|
+
Connection couldnt be established with no error message when customApiHost and customWebSocketHost
|
|
12
|
+
were passed as empty string
|
|
13
|
+
* Handle all chances of command not received error
|
|
14
|
+
Handle chances of command not recieved error in markAsRead
|
|
15
|
+
Experimental markasread handling -> longer times, no more call after unmount
|
|
16
|
+
* Move typing handler in channellist into local variable
|
|
17
|
+
|
|
2
18
|
## [v3.0.1] (July 28 2022)
|
|
3
19
|
|
|
4
20
|
Features:
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import IconButton from '../../ui/IconButton.js';
|
|
5
5
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
6
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
+
import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
9
|
-
import '../../_rollupPluginBabelHelpers-
|
|
8
|
+
import { u as useChannelContext } from '../../ChannelProvider-21d4378a.js';
|
|
9
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../../stringSet-
|
|
11
|
+
import '../../stringSet-efeb1ad3.js';
|
|
12
12
|
import '../../ui/Avatar.js';
|
|
13
|
-
import '../../tslib.es6-
|
|
13
|
+
import '../../tslib.es6-91aa0158.js';
|
|
14
14
|
import '../../ui/ImageRenderer.js';
|
|
15
|
-
import '../../uuid-
|
|
16
|
-
import '../../utils-
|
|
17
|
-
import '../../index-
|
|
15
|
+
import '../../uuid-902e6498.js';
|
|
16
|
+
import '../../utils-7b9c4aab.js';
|
|
17
|
+
import '../../index-623fd405.js';
|
|
18
18
|
import '../../withSendbird.js';
|
|
19
|
-
import '../../UserProfileContext-
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../topics-
|
|
22
|
-
import '../../index-
|
|
23
|
-
import '../../compareIds-
|
|
24
|
-
import '../../const-
|
|
25
|
-
import '../../groupChannel-
|
|
26
|
-
import '../../__bundle-7dfccc8c-
|
|
19
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
20
|
+
import '../../index-f222d022.js';
|
|
21
|
+
import '../../topics-7181983e.js';
|
|
22
|
+
import '../../index-afd61eff.js';
|
|
23
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
24
|
+
import '../../const-a6734af7.js';
|
|
25
|
+
import '../../groupChannel-10e918af.js';
|
|
26
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
27
27
|
import '../../ui/ContextMenu.js';
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import '../../ui/SortByRow.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
3
|
+
import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-21d4378a.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-41a3e405.js';
|
|
5
5
|
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
6
|
import ChatHeader from './ChannelHeader.js';
|
|
7
7
|
import MessageList from './MessageList.js';
|
|
@@ -10,46 +10,46 @@ import FrozenNotification from './FrozenNotification.js';
|
|
|
10
10
|
import UnreadCount from './UnreadCount.js';
|
|
11
11
|
import MessageInputWrapper from './MessageInput.js';
|
|
12
12
|
import '../../withSendbird.js';
|
|
13
|
-
import '../../_rollupPluginBabelHelpers-
|
|
14
|
-
import '../../UserProfileContext-
|
|
13
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
14
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
15
15
|
import 'prop-types';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../topics-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../tslib.es6-
|
|
21
|
-
import '../../compareIds-
|
|
22
|
-
import '../../const-
|
|
23
|
-
import '../../groupChannel-
|
|
24
|
-
import '../../__bundle-7dfccc8c-
|
|
25
|
-
import '../../uuid-
|
|
16
|
+
import '../../index-f222d022.js';
|
|
17
|
+
import '../../index-623fd405.js';
|
|
18
|
+
import '../../topics-7181983e.js';
|
|
19
|
+
import '../../index-afd61eff.js';
|
|
20
|
+
import '../../tslib.es6-91aa0158.js';
|
|
21
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
22
|
+
import '../../const-a6734af7.js';
|
|
23
|
+
import '../../groupChannel-10e918af.js';
|
|
24
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
25
|
+
import '../../uuid-902e6498.js';
|
|
26
26
|
import '../../ui/ContextMenu.js';
|
|
27
|
-
import '../../index-
|
|
28
|
-
import '../../stringSet-
|
|
27
|
+
import '../../index-0d4dcc94.js';
|
|
28
|
+
import '../../stringSet-efeb1ad3.js';
|
|
29
29
|
import 'react-dom';
|
|
30
30
|
import '../../ui/SortByRow.js';
|
|
31
31
|
import '../../ui/ReactionButton.js';
|
|
32
32
|
import '../../ui/ImageRenderer.js';
|
|
33
33
|
import '../../ui/Icon.js';
|
|
34
34
|
import '../../ui/Loader.js';
|
|
35
|
-
import '../../LocalizationContext-
|
|
35
|
+
import '../../LocalizationContext-08cebf79.js';
|
|
36
36
|
import '../../ui/IconButton.js';
|
|
37
37
|
import '../../ui/ChannelAvatar.js';
|
|
38
38
|
import '../../ui/Avatar.js';
|
|
39
|
-
import '../../utils-
|
|
40
|
-
import '../../index-
|
|
39
|
+
import '../../utils-7b9c4aab.js';
|
|
40
|
+
import '../../index-13e3837f.js';
|
|
41
41
|
import './Message.js';
|
|
42
42
|
import './SuggestedMentionList.js';
|
|
43
|
-
import '../../const-
|
|
43
|
+
import '../../const-b1f038b0.js';
|
|
44
44
|
import '../../ui/DateSeparator.js';
|
|
45
|
-
import '../../color-
|
|
45
|
+
import '../../color-aef1bef8.js';
|
|
46
46
|
import '../../ui/MessageInput.js';
|
|
47
|
-
import '../../index-
|
|
47
|
+
import '../../index-cdd2789a.js';
|
|
48
48
|
import '../../ui/MentionUserLabel.js';
|
|
49
49
|
import '../../ui/MessageContent.js';
|
|
50
50
|
import '../../ui/UserProfile.js';
|
|
51
51
|
import '../../sendbirdSelectors.js';
|
|
52
|
-
import '../../utils-
|
|
52
|
+
import '../../utils-0db9b91e.js';
|
|
53
53
|
import '../../ui/MessageStatus.js';
|
|
54
54
|
import '../../ui/MessageItemMenu.js';
|
|
55
55
|
import '../../ui/MessageItemReactionMenu.js';
|
|
@@ -69,7 +69,7 @@ import '../../ui/OGMessageItemBody.js';
|
|
|
69
69
|
import '../../ui/UnknownMessageItemBody.js';
|
|
70
70
|
import '../../ui/QuoteMessage.js';
|
|
71
71
|
import './FileViewer.js';
|
|
72
|
-
import '../../index-
|
|
72
|
+
import '../../index-8528dcd1.js';
|
|
73
73
|
import './RemoveMessageModal.js';
|
|
74
74
|
import '../../ui/Modal.js';
|
|
75
75
|
import '../../ui/QuoteMessageInput.js';
|
|
@@ -151,7 +151,11 @@ var ChannelUI = function ChannelUI(_a) {
|
|
|
151
151
|
scrollRef.current.scrollTop = ((_b = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _b === void 0 ? void 0 : _b.scrollHeight) - ((_c = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
try {
|
|
155
|
+
currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
|
|
156
|
+
} catch (_d) {//
|
|
157
|
+
}
|
|
158
|
+
|
|
155
159
|
messagesDispatcher({
|
|
156
160
|
type: MARK_AS_READ,
|
|
157
161
|
payload: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n currentGroupChannel?.markAsRead();\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BMA,SAAS,GAA6B,SAAtCA,SAAsC,CAACC,EAAD;;;MAC1CC,uBAAuB;MACvBC,wBAAwB;MACxBC,sBAAsB;MACtBC,mBAAmB;MACnBC,aAAa;MACbC,kBAAkB;MAClBC,qBAAqB;MACrBC,qBAAqB;;AAEf,MAAAC,KAWFC,iBAAiB,EAXf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,gBAFN;AAAA,MAGJC,SAAS,eAHL;AAAA,MAIJC,WAAW,iBAJP;AAAA,MAKJC,OAAO,aALH;AAAA,MAMJC,mBAAmB,yBANf;AAAA,MAOJC,oBAAoB,0BAPhB;AAAA,MAQJC,uBAAuB,6BARnB;AAAA,MASJC,SAAS,eATL;AAAA,MAUJC,kBAAkB,wBAVd;;AAYA,MAAAC,KAAgCC,QAAQ,CAAC,CAAD,CAAxC;AAAA,MAACC,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smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BMA,SAAS,GAA6B,SAAtCA,SAAsC,CAACC,EAAD;;;MAC1CC,uBAAuB;MACvBC,wBAAwB;MACxBC,sBAAsB;MACtBC,mBAAmB;MACnBC,aAAa;MACbC,kBAAkB;MAClBC,qBAAqB;MACrBC,qBAAqB;;AAEf,MAAAC,KAWFC,iBAAiB,EAXf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,gBAFN;AAAA,MAGJC,SAAS,eAHL;AAAA,MAIJC,WAAW,iBAJP;AAAA,MAKJC,OAAO,aALH;AAAA,MAMJC,mBAAmB,yBANf;AAAA,MAOJC,oBAAoB,0BAPhB;AAAA,MAQJC,uBAAuB,6BARnB;AAAA,MASJC,SAAS,eATL;AAAA,MAUJC,kBAAkB,wBAVd;;AAYA,MAAAC,KAAgCC,QAAQ,CAAC,CAAD,CAAxC;AAAA,MAACC,WAAW,QAAZ;AAAA,MAAcC,cAAc,QAA5B;;AACNC,EAAAA,SAAS,CAAC;AACRD,IAAAA,cAAc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AM;AAEP;;AACD3B,MAAAA,kBAAkB,CAAC;AACjB4B,QAAAA,IAAI,EAAEC,YADW;AAEjBC,QAAAA,OAAO,EAAE;AAAEC,UAAAA,OAAO,EAAExC;AAAX;AAFQ,OAAD,CAAlB;AAIAK,MAAAA,mBAAmB,CAAC,IAAD,CAAnB;AACAC,MAAAA,oBAAoB,CAAC,IAAD,CAApB;AACAC,MAAAA,uBAAuB,CAAC,IAAD,CAAvB;AACD;AApBH,IAbN,EAsCIH,OAAO,gBAEHqB;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAAnC,uBAAuB,SAAvB,IAAAA,uBAAuB,WAAvB,SAAA,GAAAA,uBAAuB,EAAvB,kBACEmC,6BAAC,WAAD;AAAa,IAAA,IAAI,EAAEC,gBAAgB,CAACe;AAApC,IAHN,CAFG,gBAUHhB,6BAAC,WAAD;AACE,IAAA,aAAa,EAAE/B,aADjB;AAEE,IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK;AAHzB,IAhDR,eAuDE4B;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA9B,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACE8B,6BAAC,mBAAD,OAHN,eAMEA;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA7B,qBAAqB,SAArB,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACE6B,6BAAC,eAAD,OAHN,EAOI,CAACD,QAAD,iBACEC,6BAAC,gBAAD,OARN,CANF,CAvDF,CADF;AA6ED;;;;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import Avatar from '../../ui/Avatar.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
|
-
import { M as MODAL_ROOT } from '../../index-
|
|
7
|
-
import { A as isSupportedFileView, B as isVideo, C as isImage } from '../../index-
|
|
6
|
+
import { M as MODAL_ROOT } from '../../index-8528dcd1.js';
|
|
7
|
+
import { A as isSupportedFileView, B as isVideo, C as isImage } from '../../index-afd61eff.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
10
|
-
import '../../tslib.es6-
|
|
9
|
+
import { u as useChannelContext } from '../../ChannelProvider-21d4378a.js';
|
|
10
|
+
import '../../tslib.es6-91aa0158.js';
|
|
11
11
|
import '../../ui/ImageRenderer.js';
|
|
12
|
-
import '../../_rollupPluginBabelHelpers-
|
|
12
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../../uuid-
|
|
15
|
-
import '../../stringSet-
|
|
14
|
+
import '../../uuid-902e6498.js';
|
|
15
|
+
import '../../stringSet-efeb1ad3.js';
|
|
16
16
|
import '../../withSendbird.js';
|
|
17
|
-
import '../../UserProfileContext-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../topics-
|
|
21
|
-
import '../../compareIds-
|
|
22
|
-
import '../../const-
|
|
23
|
-
import '../../groupChannel-
|
|
24
|
-
import '../../__bundle-7dfccc8c-
|
|
17
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
18
|
+
import '../../index-f222d022.js';
|
|
19
|
+
import '../../index-623fd405.js';
|
|
20
|
+
import '../../topics-7181983e.js';
|
|
21
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
22
|
+
import '../../const-a6734af7.js';
|
|
23
|
+
import '../../groupChannel-10e918af.js';
|
|
24
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
25
25
|
import '../../ui/ContextMenu.js';
|
|
26
26
|
import '../../ui/SortByRow.js';
|
|
27
27
|
import '../../ui/ReactionButton.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography } from '../../index-
|
|
4
|
-
import '../../stringSet-
|
|
5
|
-
import '../../index-
|
|
6
|
-
import '../../_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
|
|
3
|
+
import { L as Label, a as LabelTypography } from '../../index-0d4dcc94.js';
|
|
4
|
+
import '../../stringSet-efeb1ad3.js';
|
|
5
|
+
import '../../index-623fd405.js';
|
|
6
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
|
|
9
9
|
var FrozenNotification = function FrozenNotification() {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-91aa0158.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useLayoutEffect, useMemo } from 'react';
|
|
3
|
-
import { f as format } from '../../index-
|
|
3
|
+
import { f as format } from '../../index-f222d022.js';
|
|
4
4
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
|
-
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-
|
|
7
|
-
import { k as getClassName } from '../../index-
|
|
8
|
-
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-
|
|
6
|
+
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-21d4378a.js';
|
|
7
|
+
import { k as getClassName } from '../../index-afd61eff.js';
|
|
8
|
+
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-a6734af7.js';
|
|
9
9
|
import DateSeparator from '../../ui/DateSeparator.js';
|
|
10
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
10
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-0d4dcc94.js';
|
|
11
11
|
import MessageInput from '../../ui/MessageInput.js';
|
|
12
12
|
import MessageContent from '../../ui/MessageContent.js';
|
|
13
13
|
import FileViewer from './FileViewer.js';
|
|
14
14
|
import RemoveMessage from './RemoveMessageModal.js';
|
|
15
|
-
import { M as MessageInputKeys } from '../../const-
|
|
16
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
17
|
-
import '../../index-
|
|
15
|
+
import { M as MessageInputKeys } from '../../const-b1f038b0.js';
|
|
16
|
+
import { u as useLocalization } from '../../LocalizationContext-08cebf79.js';
|
|
17
|
+
import '../../index-623fd405.js';
|
|
18
18
|
import '../../ui/Icon.js';
|
|
19
|
-
import '../../_rollupPluginBabelHelpers-
|
|
19
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
20
20
|
import 'prop-types';
|
|
21
21
|
import '../../ui/Avatar.js';
|
|
22
22
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
23
|
+
import '../../uuid-902e6498.js';
|
|
24
24
|
import '../../withSendbird.js';
|
|
25
|
-
import '../../UserProfileContext-
|
|
26
|
-
import '../../topics-
|
|
27
|
-
import '../../compareIds-
|
|
28
|
-
import '../../groupChannel-
|
|
29
|
-
import '../../__bundle-7dfccc8c-
|
|
25
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
26
|
+
import '../../topics-7181983e.js';
|
|
27
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
28
|
+
import '../../groupChannel-10e918af.js';
|
|
29
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
30
30
|
import '../../ui/ContextMenu.js';
|
|
31
31
|
import 'react-dom';
|
|
32
32
|
import '../../ui/SortByRow.js';
|
|
33
|
-
import '../../stringSet-
|
|
33
|
+
import '../../stringSet-efeb1ad3.js';
|
|
34
34
|
import '../../ui/ReactionButton.js';
|
|
35
|
-
import '../../color-
|
|
35
|
+
import '../../color-aef1bef8.js';
|
|
36
36
|
import '../../ui/IconButton.js';
|
|
37
|
-
import '../../index-
|
|
37
|
+
import '../../index-cdd2789a.js';
|
|
38
38
|
import '../../ui/MentionUserLabel.js';
|
|
39
39
|
import '../../ui/UserProfile.js';
|
|
40
40
|
import '../../sendbirdSelectors.js';
|
|
41
|
-
import '../../utils-
|
|
41
|
+
import '../../utils-0db9b91e.js';
|
|
42
42
|
import '../../ui/MessageStatus.js';
|
|
43
43
|
import '../../ui/Loader.js';
|
|
44
44
|
import '../../ui/MessageItemMenu.js';
|
|
@@ -58,7 +58,7 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
58
58
|
import '../../ui/OGMessageItemBody.js';
|
|
59
59
|
import '../../ui/UnknownMessageItemBody.js';
|
|
60
60
|
import '../../ui/QuoteMessage.js';
|
|
61
|
-
import '../../index-
|
|
61
|
+
import '../../index-8528dcd1.js';
|
|
62
62
|
import '../../ui/Modal.js';
|
|
63
63
|
|
|
64
64
|
var Message = function Message(props) {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-91aa0158.js';
|
|
2
2
|
import React__default, { useContext, useState, useEffect } from 'react';
|
|
3
|
-
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-
|
|
3
|
+
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-21d4378a.js';
|
|
4
4
|
import MessageInput from '../../ui/MessageInput.js';
|
|
5
5
|
import QuoteMessageInput from '../../ui/QuoteMessageInput.js';
|
|
6
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
+
import { a as LocalizationContext } from '../../LocalizationContext-08cebf79.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
9
|
-
import { M as MessageInputKeys } from '../../const-
|
|
10
|
-
import '../../UserProfileContext-
|
|
9
|
+
import { M as MessageInputKeys } from '../../const-b1f038b0.js';
|
|
10
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../_rollupPluginBabelHelpers-
|
|
13
|
-
import '../../index-
|
|
14
|
-
import '../../index-
|
|
15
|
-
import '../../topics-
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../compareIds-
|
|
18
|
-
import '../../const-
|
|
19
|
-
import '../../groupChannel-
|
|
20
|
-
import '../../__bundle-7dfccc8c-
|
|
21
|
-
import '../../uuid-
|
|
12
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
13
|
+
import '../../index-f222d022.js';
|
|
14
|
+
import '../../index-623fd405.js';
|
|
15
|
+
import '../../topics-7181983e.js';
|
|
16
|
+
import '../../index-afd61eff.js';
|
|
17
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
18
|
+
import '../../const-a6734af7.js';
|
|
19
|
+
import '../../groupChannel-10e918af.js';
|
|
20
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
21
|
+
import '../../uuid-902e6498.js';
|
|
22
22
|
import '../../ui/ContextMenu.js';
|
|
23
|
-
import '../../index-
|
|
24
|
-
import '../../stringSet-
|
|
23
|
+
import '../../index-0d4dcc94.js';
|
|
24
|
+
import '../../stringSet-efeb1ad3.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import '../../ui/SortByRow.js';
|
|
27
27
|
import '../../ui/ReactionButton.js';
|
|
28
28
|
import '../../ui/ImageRenderer.js';
|
|
29
29
|
import '../../ui/Icon.js';
|
|
30
30
|
import '../../ui/IconButton.js';
|
|
31
|
-
import '../../index-
|
|
31
|
+
import '../../index-cdd2789a.js';
|
|
32
32
|
import '../../ui/MentionUserLabel.js';
|
|
33
33
|
import '../../withSendbird.js';
|
|
34
34
|
import '../../ui/Avatar.js';
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import React__default, { useState, useMemo } from 'react';
|
|
2
|
-
import { i as isSameDay } from '../../index-
|
|
3
|
-
import { u as useChannelContext, c as compareMessagesForGrouping, i as isAboutSame } from '../../ChannelProvider-
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
2
|
+
import { i as isSameDay } from '../../index-13e3837f.js';
|
|
3
|
+
import { u as useChannelContext, c as compareMessagesForGrouping, i as isAboutSame } from '../../ChannelProvider-21d4378a.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-41a3e405.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
6
|
import Message from './Message.js';
|
|
7
|
-
import { u as uuidv4 } from '../../uuid-
|
|
8
|
-
import '../../index-
|
|
9
|
-
import '../../index-
|
|
10
|
-
import '../../UserProfileContext-
|
|
7
|
+
import { u as uuidv4 } from '../../uuid-902e6498.js';
|
|
8
|
+
import '../../index-f222d022.js';
|
|
9
|
+
import '../../index-623fd405.js';
|
|
10
|
+
import '../../UserProfileContext-97bec8f7.js';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import '../../useSendbirdStateContext.js';
|
|
13
13
|
import '../../withSendbird.js';
|
|
14
|
-
import '../../_rollupPluginBabelHelpers-
|
|
15
|
-
import '../../topics-
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../tslib.es6-
|
|
18
|
-
import '../../compareIds-
|
|
19
|
-
import '../../const-
|
|
20
|
-
import '../../groupChannel-
|
|
21
|
-
import '../../__bundle-7dfccc8c-
|
|
14
|
+
import '../../_rollupPluginBabelHelpers-9a08c8bf.js';
|
|
15
|
+
import '../../topics-7181983e.js';
|
|
16
|
+
import '../../index-afd61eff.js';
|
|
17
|
+
import '../../tslib.es6-91aa0158.js';
|
|
18
|
+
import '../../compareIds-3f1a5a5a.js';
|
|
19
|
+
import '../../const-a6734af7.js';
|
|
20
|
+
import '../../groupChannel-10e918af.js';
|
|
21
|
+
import '../../__bundle-7dfccc8c-ff995ba0.js';
|
|
22
22
|
import '../../ui/ContextMenu.js';
|
|
23
|
-
import '../../index-
|
|
24
|
-
import '../../stringSet-
|
|
23
|
+
import '../../index-0d4dcc94.js';
|
|
24
|
+
import '../../stringSet-efeb1ad3.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import '../../ui/SortByRow.js';
|
|
27
27
|
import '../../ui/ReactionButton.js';
|
|
28
28
|
import '../../ui/ImageRenderer.js';
|
|
29
29
|
import '../../ui/Loader.js';
|
|
30
|
-
import '../../LocalizationContext-
|
|
30
|
+
import '../../LocalizationContext-08cebf79.js';
|
|
31
31
|
import './SuggestedMentionList.js';
|
|
32
32
|
import '../../ui/Avatar.js';
|
|
33
|
-
import '../../const-
|
|
33
|
+
import '../../const-b1f038b0.js';
|
|
34
34
|
import '../../ui/DateSeparator.js';
|
|
35
|
-
import '../../color-
|
|
35
|
+
import '../../color-aef1bef8.js';
|
|
36
36
|
import '../../ui/MessageInput.js';
|
|
37
37
|
import '../../ui/IconButton.js';
|
|
38
|
-
import '../../index-
|
|
38
|
+
import '../../index-cdd2789a.js';
|
|
39
39
|
import '../../ui/MentionUserLabel.js';
|
|
40
40
|
import '../../ui/MessageContent.js';
|
|
41
41
|
import '../../ui/UserProfile.js';
|
|
42
42
|
import '../../sendbirdSelectors.js';
|
|
43
|
-
import '../../utils-
|
|
43
|
+
import '../../utils-0db9b91e.js';
|
|
44
44
|
import '../../ui/MessageStatus.js';
|
|
45
45
|
import '../../ui/MessageItemMenu.js';
|
|
46
46
|
import '../../ui/MessageItemReactionMenu.js';
|
|
@@ -60,7 +60,7 @@ import '../../ui/OGMessageItemBody.js';
|
|
|
60
60
|
import '../../ui/UnknownMessageItemBody.js';
|
|
61
61
|
import '../../ui/QuoteMessage.js';
|
|
62
62
|
import './FileViewer.js';
|
|
63
|
-
import '../../index-
|
|
63
|
+
import '../../index-8528dcd1.js';
|
|
64
64
|
import './RemoveMessageModal.js';
|
|
65
65
|
import '../../ui/Modal.js';
|
|
66
66
|
|
|
@@ -148,7 +148,11 @@ var MessageList = function MessageList(props) {
|
|
|
148
148
|
channel: currentGroupChannel
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
-
|
|
151
|
+
|
|
152
|
+
try {
|
|
153
|
+
currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
|
|
154
|
+
} catch (_a) {//
|
|
155
|
+
}
|
|
152
156
|
}
|
|
153
157
|
}, 500);
|
|
154
158
|
};
|