@sendbird/uikit-react 3.2.2 → 3.2.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +28 -28
- package/CHANGELOG.md +5 -0
- package/Channel/components/ChannelHeader.js +15 -15
- package/Channel/components/ChannelUI.js +35 -31
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +14 -14
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +18 -18
- package/Channel/components/MessageInput.js +15 -15
- package/Channel/components/MessageList.js +23 -22
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +15 -15
- package/Channel/components/SuggestedMentionList.js +15 -15
- package/Channel/components/TypingIndicator.js +14 -14
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +13 -13
- package/Channel.js +23 -22
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +13 -13
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListUI.js +25 -25
- package/ChannelList/components/ChannelPreview.js +19 -19
- package/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +25 -25
- package/{ChannelListProvider-ac91b9ac.js → ChannelListProvider-000aaa30.js} +8 -8
- package/{ChannelListProvider-ac91b9ac.js.map → ChannelListProvider-000aaa30.js.map} +1 -1
- package/{ChannelProvider-7924e137.js → ChannelProvider-507ec95c.js} +58 -41
- package/ChannelProvider-507ec95c.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +11 -11
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/ChannelSettings/components/LeaveChannel.js +10 -10
- package/ChannelSettings/components/ModerationPanel.js +14 -14
- package/ChannelSettings/components/UserListItem.js +11 -11
- package/ChannelSettings/components/UserPanel.js +13 -13
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +17 -17
- package/CreateChannel/components/CreateChannelUI.js +13 -13
- package/CreateChannel/components/InviteUsers.js +13 -13
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +13 -13
- package/{CreateChannelProvider-11543306.js → CreateChannelProvider-7c49ffa6.js} +1 -1
- package/{CreateChannelProvider-11543306.js.map → CreateChannelProvider-7c49ffa6.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +9 -9
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/{LocalizationContext-83cab487.js → LocalizationContext-8bec1997.js} +3 -3
- package/{LocalizationContext-83cab487.js.map → LocalizationContext-8bec1997.js.map} +1 -1
- package/{MemberList-9605f473.js → MemberList-603ab567.js} +5 -5
- package/{MemberList-9605f473.js.map → MemberList-603ab567.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +2 -2
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/OpenChannel/components/OpenChannelInput.js +15 -15
- package/OpenChannel/components/OpenChannelMessage.js +20 -20
- package/OpenChannel/components/OpenChannelMessageList.js +22 -22
- package/OpenChannel/components/OpenChannelUI.js +22 -22
- package/OpenChannel/context.js +9 -9
- package/OpenChannel.js +22 -22
- package/OpenChannelList/components/OpenChannelListUI.js +12 -12
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +4 -4
- package/OpenChannelList.js +12 -12
- package/{OpenChannelListProvider-b1734de3.js → OpenChannelListProvider-a600b965.js} +3 -3
- package/{OpenChannelListProvider-b1734de3.js.map → OpenChannelListProvider-a600b965.js.map} +1 -1
- package/{OpenChannelProvider-ccdfc3d7.js → OpenChannelProvider-09d9d35b.js} +7 -7
- package/{OpenChannelProvider-ccdfc3d7.js.map → OpenChannelProvider-09d9d35b.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- 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 +3 -3
- package/OpenChannelSettings.js +17 -17
- package/SendbirdProvider.js +9 -9
- package/SendbirdProvider.js.map +1 -1
- package/{UserProfileContext-c2fcaa62.js → UserProfileContext-ce0aa8c5.js} +1 -1
- package/{UserProfileContext-c2fcaa62.js.map → UserProfileContext-ce0aa8c5.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-008a1844.js → _rollupPluginBabelHelpers-9a43324e.js} +1 -1
- package/_rollupPluginBabelHelpers-9a43324e.js.map +1 -0
- package/{actionTypes-e2247efe.js → actionTypes-162b5a41.js} +1 -1
- package/{actionTypes-e2247efe.js.map → actionTypes-162b5a41.js.map} +1 -1
- package/cjs/App.js +28 -28
- package/cjs/Channel/components/ChannelHeader.js +15 -15
- package/cjs/Channel/components/ChannelUI.js +35 -31
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +14 -14
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +18 -18
- package/cjs/Channel/components/MessageInput.js +15 -15
- package/cjs/Channel/components/MessageList.js +23 -22
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +15 -15
- package/cjs/Channel/components/SuggestedMentionList.js +15 -15
- package/cjs/Channel/components/TypingIndicator.js +14 -14
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +13 -13
- package/cjs/Channel.js +23 -22
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +13 -13
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListUI.js +25 -25
- package/cjs/ChannelList/components/ChannelPreview.js +19 -19
- package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +25 -25
- package/cjs/{ChannelListProvider-21708c39.js → ChannelListProvider-a8455246.js} +8 -8
- package/cjs/{ChannelListProvider-21708c39.js.map → ChannelListProvider-a8455246.js.map} +1 -1
- package/cjs/{ChannelProvider-dc38544c.js → ChannelProvider-0bc23fa9.js} +58 -41
- package/cjs/ChannelProvider-0bc23fa9.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js +10 -10
- package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
- package/cjs/ChannelSettings/components/UserListItem.js +11 -11
- package/cjs/ChannelSettings/components/UserPanel.js +13 -13
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +17 -17
- package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
- package/cjs/CreateChannel/components/InviteUsers.js +13 -13
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +13 -13
- package/cjs/{CreateChannelProvider-266d45a0.js → CreateChannelProvider-6ba22b77.js} +1 -1
- package/cjs/{CreateChannelProvider-266d45a0.js.map → CreateChannelProvider-6ba22b77.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +9 -9
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/{LocalizationContext-f761ec27.js → LocalizationContext-99a25fec.js} +3 -3
- package/cjs/{LocalizationContext-f761ec27.js.map → LocalizationContext-99a25fec.js.map} +1 -1
- package/cjs/{MemberList-3d1f10ce.js → MemberList-116d04c0.js} +5 -5
- package/cjs/{MemberList-3d1f10ce.js.map → MemberList-116d04c0.js.map} +1 -1
- 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 +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/cjs/OpenChannel/components/OpenChannelInput.js +15 -15
- package/cjs/OpenChannel/components/OpenChannelMessage.js +20 -20
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +22 -22
- package/cjs/OpenChannel/components/OpenChannelUI.js +22 -22
- package/cjs/OpenChannel/context.js +9 -9
- package/cjs/OpenChannel.js +22 -22
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +12 -12
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +4 -4
- package/cjs/OpenChannelList.js +12 -12
- package/cjs/{OpenChannelListProvider-422c413e.js → OpenChannelListProvider-b9d6e142.js} +3 -3
- package/cjs/{OpenChannelListProvider-422c413e.js.map → OpenChannelListProvider-b9d6e142.js.map} +1 -1
- package/cjs/{OpenChannelProvider-3a28c320.js → OpenChannelProvider-9bf330a5.js} +7 -7
- package/cjs/{OpenChannelProvider-3a28c320.js.map → OpenChannelProvider-9bf330a5.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- 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 +3 -3
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/SendbirdProvider.js +9 -9
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/{UserProfileContext-e6c4c6cd.js → UserProfileContext-ab654d73.js} +1 -1
- package/cjs/{UserProfileContext-e6c4c6cd.js.map → UserProfileContext-ab654d73.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-b0ecb658.js → _rollupPluginBabelHelpers-13e59c5b.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-13e59c5b.js.map +1 -0
- package/cjs/{actionTypes-a284f20e.js → actionTypes-d0060faf.js} +1 -1
- package/cjs/{actionTypes-a284f20e.js.map → actionTypes-d0060faf.js.map} +1 -1
- package/cjs/{color-9957dbf5.js → color-fdafbb55.js} +1 -1
- package/cjs/{color-9957dbf5.js.map → color-fdafbb55.js.map} +1 -1
- package/cjs/{compareIds-1d542fb6.js → compareIds-ef0f85a4.js} +1 -1
- package/cjs/{compareIds-1d542fb6.js.map → compareIds-ef0f85a4.js.map} +1 -1
- package/cjs/{const-e8d6d2ca.js → const-cb5708ef.js} +1 -1
- package/cjs/{const-e8d6d2ca.js.map → const-cb5708ef.js.map} +1 -1
- package/cjs/{const-cecc5538.js → const-d76d8b35.js} +1 -1
- package/cjs/{const-cecc5538.js.map → const-d76d8b35.js.map} +1 -1
- package/cjs/{context-c49da3e7.js → context-dc21b087.js} +2 -2
- package/cjs/{context-c49da3e7.js.map → context-dc21b087.js.map} +1 -1
- package/cjs/dist/index.css +55 -55
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-3a7cc4f3.js → index-05baf89d.js} +2 -2
- package/cjs/{index-3a7cc4f3.js.map → index-05baf89d.js.map} +1 -1
- package/cjs/{index-b02c7fda.js → index-0cac9cfc.js} +2 -2
- package/cjs/{index-b02c7fda.js.map → index-0cac9cfc.js.map} +1 -1
- package/cjs/{index-b4e3b6d9.js → index-33c26c63.js} +2 -2
- package/cjs/{index-b4e3b6d9.js.map → index-33c26c63.js.map} +1 -1
- package/cjs/{index-722557fc.js → index-3eda11db.js} +1 -1
- package/cjs/{index-722557fc.js.map → index-3eda11db.js.map} +1 -1
- package/cjs/{index-a332c97a.js → index-6a2465cd.js} +1 -1
- package/cjs/{index-a332c97a.js.map → index-6a2465cd.js.map} +1 -1
- package/cjs/{index-7515c3b7.js → index-9621db78.js} +2 -2
- package/cjs/{index-7515c3b7.js.map → index-9621db78.js.map} +1 -1
- package/cjs/{index-efef37ff.js → index-9b2a6094.js} +4 -4
- package/cjs/{index-efef37ff.js.map → index-9b2a6094.js.map} +1 -1
- package/cjs/{index-fea8438a.js → index-a93c13df.js} +4 -4
- package/cjs/{index-fea8438a.js.map → index-a93c13df.js.map} +1 -1
- package/cjs/{index-57dc486a.js → index-acf156b9.js} +7 -7
- package/cjs/{index-57dc486a.js.map → index-acf156b9.js.map} +1 -1
- package/cjs/{index-d1dd6aac.js → index-ce03610e.js} +5 -5
- package/cjs/{index-d1dd6aac.js.map → index-ce03610e.js.map} +1 -1
- package/cjs/index.js +32 -32
- package/cjs/{openChannelUtils-f9cce808.js → openChannelUtils-9be729dd.js} +1 -1
- package/cjs/{openChannelUtils-f9cce808.js.map → openChannelUtils-9be729dd.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-5a829a29.js → stringSet-6a80b57a.js} +1 -1
- package/cjs/{stringSet-5a829a29.js.map → stringSet-6a80b57a.js.map} +1 -1
- package/cjs/{topics-3bfeb62f.js → topics-18cc4bcb.js} +1 -1
- package/cjs/{topics-3bfeb62f.js.map → topics-18cc4bcb.js.map} +1 -1
- package/cjs/{tslib.es6-ca15b7cc.js → tslib.es6-21cc1c96.js} +1 -1
- package/cjs/{tslib.es6-ca15b7cc.js.map → tslib.es6-21cc1c96.js.map} +1 -1
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +2 -2
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +5 -5
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +10 -10
- package/cjs/ui/MessageContent.js +13 -13
- package/cjs/ui/MessageInput.js +9 -9
- package/cjs/ui/MessageItemMenu.js +7 -7
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +9 -9
- package/cjs/ui/MessageSearchItem.js +9 -9
- package/cjs/ui/MessageStatus.js +7 -7
- package/cjs/ui/Modal.js +6 -6
- package/cjs/ui/OGMessageItemBody.js +10 -10
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +6 -6
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +14 -14
- package/cjs/ui/OpenchannelOGMessage.js +14 -14
- package/cjs/ui/OpenchannelThumbnailMessage.js +13 -13
- package/cjs/ui/OpenchannelUserMessage.js +14 -14
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +10 -10
- package/cjs/ui/ThumbnailMessageItemBody.js +2 -2
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +11 -11
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/Word.js +10 -10
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-4754b3c2.js → utils-26b0a793.js} +1 -1
- package/cjs/{utils-4754b3c2.js.map → utils-26b0a793.js.map} +1 -1
- package/cjs/{utils-56c62b34.js → utils-69e53987.js} +1 -1
- package/cjs/{utils-56c62b34.js.map → utils-69e53987.js.map} +1 -1
- package/cjs/{utils-47ccaecc.js → utils-7415db7d.js} +1 -1
- package/cjs/{utils-47ccaecc.js.map → utils-7415db7d.js.map} +1 -1
- package/cjs/{uuid-279278c6.js → uuid-92333873.js} +1 -1
- package/cjs/{uuid-279278c6.js.map → uuid-92333873.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-b8fbee14.js → color-fdffa928.js} +1 -1
- package/{color-b8fbee14.js.map → color-fdffa928.js.map} +1 -1
- package/{compareIds-eb89e686.js → compareIds-1f802ce2.js} +1 -1
- package/{compareIds-eb89e686.js.map → compareIds-1f802ce2.js.map} +1 -1
- package/{const-21c50fc9.js → const-03bf58be.js} +1 -1
- package/{const-21c50fc9.js.map → const-03bf58be.js.map} +1 -1
- package/{const-e3a99496.js → const-04252643.js} +1 -1
- package/{const-e3a99496.js.map → const-04252643.js.map} +1 -1
- package/{context-26bcf69f.js → context-578d3b09.js} +2 -2
- package/{context-26bcf69f.js.map → context-578d3b09.js.map} +1 -1
- package/dist/index.css +55 -55
- package/dist/index.css.map +1 -1
- package/{index-b84202de.js → index-0fa2c54a.js} +2 -2
- package/{index-b84202de.js.map → index-0fa2c54a.js.map} +1 -1
- package/{index-02b9dcb6.js → index-1d61d4d0.js} +4 -4
- package/{index-02b9dcb6.js.map → index-1d61d4d0.js.map} +1 -1
- package/{index-480fdda4.js → index-40e8f483.js} +2 -2
- package/{index-480fdda4.js.map → index-40e8f483.js.map} +1 -1
- package/{index-a6620ba4.js → index-416bd4e9.js} +2 -2
- package/{index-a6620ba4.js.map → index-416bd4e9.js.map} +1 -1
- package/{index-d7a65767.js → index-4a97d671.js} +1 -1
- package/{index-d7a65767.js.map → index-4a97d671.js.map} +1 -1
- package/{index-f608979d.js → index-876a278e.js} +1 -1
- package/{index-f608979d.js.map → index-876a278e.js.map} +1 -1
- package/{index-4cfa849d.js → index-c36a7b47.js} +7 -7
- package/{index-4cfa849d.js.map → index-c36a7b47.js.map} +1 -1
- package/{index-4230994b.js → index-ea167da5.js} +2 -2
- package/{index-4230994b.js.map → index-ea167da5.js.map} +1 -1
- package/{index-f5829dca.js → index-f4df58ee.js} +5 -5
- package/{index-f5829dca.js.map → index-f4df58ee.js.map} +1 -1
- package/{index-f266664f.js → index-fc81a39d.js} +4 -4
- package/{index-f266664f.js.map → index-fc81a39d.js.map} +1 -1
- package/index.d.ts +2 -1
- package/index.js +32 -32
- package/{openChannelUtils-f8bde567.js → openChannelUtils-898ccded.js} +1 -1
- package/{openChannelUtils-f8bde567.js.map → openChannelUtils-898ccded.js.map} +1 -1
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-4cfbe7bc.js → stringSet-8e444561.js} +1 -1
- package/{stringSet-4cfbe7bc.js.map → stringSet-8e444561.js.map} +1 -1
- package/{topics-58d21996.js → topics-48ad3f74.js} +1 -1
- package/{topics-58d21996.js.map → topics-48ad3f74.js.map} +1 -1
- package/{tslib.es6-9a4d0074.js → tslib.es6-ca5fed0d.js} +1 -1
- package/{tslib.es6-9a4d0074.js.map → tslib.es6-ca5fed0d.js.map} +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +2 -2
- package/ui/Badge.js +5 -5
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +5 -5
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +10 -10
- package/ui/MessageContent.js +13 -13
- package/ui/MessageInput.js +9 -9
- package/ui/MessageItemMenu.js +7 -7
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +9 -9
- package/ui/MessageSearchItem.js +9 -9
- package/ui/MessageStatus.js +7 -7
- package/ui/Modal.js +6 -6
- package/ui/OGMessageItemBody.js +10 -10
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +14 -14
- package/ui/OpenchannelOGMessage.js +14 -14
- package/ui/OpenchannelThumbnailMessage.js +13 -13
- package/ui/OpenchannelUserMessage.js +14 -14
- package/ui/PlaceHolder.js +6 -6
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +10 -10
- package/ui/ThumbnailMessageItemBody.js +2 -2
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +11 -11
- package/ui/UserProfile.js +9 -9
- package/ui/Word.js +10 -10
- package/useSendbirdStateContext.js +1 -1
- package/{utils-59146385.js → utils-986f9975.js} +1 -1
- package/{utils-59146385.js.map → utils-986f9975.js.map} +1 -1
- package/{utils-23048a3f.js → utils-df07d074.js} +1 -1
- package/{utils-23048a3f.js.map → utils-df07d074.js.map} +1 -1
- package/{utils-9300425e.js → utils-eee41d99.js} +1 -1
- package/{utils-9300425e.js.map → utils-eee41d99.js.map} +1 -1
- package/{uuid-04e2d5ae.js → uuid-d9677664.js} +1 -1
- package/{uuid-04e2d5ae.js.map → uuid-d9677664.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelProvider-7924e137.js.map +0 -1
- package/_rollupPluginBabelHelpers-008a1844.js.map +0 -1
- package/cjs/ChannelProvider-dc38544c.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-b0ecb658.js.map +0 -1
package/App.js
CHANGED
|
@@ -5,28 +5,28 @@ import ChannelList from './ChannelList.js';
|
|
|
5
5
|
import Channel from './Channel.js';
|
|
6
6
|
import ChannelSettings from './ChannelSettings.js';
|
|
7
7
|
import MessageSearchPannel from './MessageSearch.js';
|
|
8
|
-
import './_rollupPluginBabelHelpers-
|
|
8
|
+
import './_rollupPluginBabelHelpers-9a43324e.js';
|
|
9
9
|
import './withSendbird.js';
|
|
10
10
|
import '@sendbird/chat';
|
|
11
11
|
import '@sendbird/chat/openChannel';
|
|
12
12
|
import '@sendbird/chat/groupChannel';
|
|
13
|
-
import './actionTypes-
|
|
14
|
-
import './index-
|
|
15
|
-
import './tslib.es6-
|
|
13
|
+
import './actionTypes-162b5a41.js';
|
|
14
|
+
import './index-40e8f483.js';
|
|
15
|
+
import './tslib.es6-ca5fed0d.js';
|
|
16
16
|
import './utils/message/getOutgoingMessageState.js';
|
|
17
17
|
import 'css-vars-ponyfill';
|
|
18
|
-
import './uuid-
|
|
19
|
-
import './LocalizationContext-
|
|
20
|
-
import './stringSet-
|
|
21
|
-
import './index-
|
|
22
|
-
import './ChannelListProvider-
|
|
23
|
-
import './topics-
|
|
24
|
-
import './utils-
|
|
25
|
-
import './UserProfileContext-
|
|
18
|
+
import './uuid-d9677664.js';
|
|
19
|
+
import './LocalizationContext-8bec1997.js';
|
|
20
|
+
import './stringSet-8e444561.js';
|
|
21
|
+
import './index-4a97d671.js';
|
|
22
|
+
import './ChannelListProvider-000aaa30.js';
|
|
23
|
+
import './topics-48ad3f74.js';
|
|
24
|
+
import './utils-df07d074.js';
|
|
25
|
+
import './UserProfileContext-ce0aa8c5.js';
|
|
26
26
|
import './useSendbirdStateContext.js';
|
|
27
27
|
import './ChannelList/components/ChannelListUI.js';
|
|
28
28
|
import './ChannelList/components/ChannelListHeader.js';
|
|
29
|
-
import './index-
|
|
29
|
+
import './index-416bd4e9.js';
|
|
30
30
|
import './ui/IconButton.js';
|
|
31
31
|
import './ui/Avatar.js';
|
|
32
32
|
import './ui/ImageRenderer.js';
|
|
@@ -34,12 +34,12 @@ import './ui/Icon.js';
|
|
|
34
34
|
import './ChannelList/components/AddChannel.js';
|
|
35
35
|
import './CreateChannel.js';
|
|
36
36
|
import './CreateChannel/components/CreateChannelUI.js';
|
|
37
|
-
import './CreateChannelProvider-
|
|
37
|
+
import './CreateChannelProvider-7c49ffa6.js';
|
|
38
38
|
import './sendbirdSelectors.js';
|
|
39
39
|
import './CreateChannel/components/InviteUsers.js';
|
|
40
40
|
import './ui/Modal.js';
|
|
41
41
|
import 'react-dom';
|
|
42
|
-
import './index-
|
|
42
|
+
import './index-876a278e.js';
|
|
43
43
|
import './ui/Button.js';
|
|
44
44
|
import './ui/UserListItem.js';
|
|
45
45
|
import './ui/MutedAvatarOverlay.js';
|
|
@@ -50,34 +50,34 @@ import './ui/SortByRow.js';
|
|
|
50
50
|
import './CreateChannel/components/SelectChannelType.js';
|
|
51
51
|
import './ChannelList/components/ChannelPreview.js';
|
|
52
52
|
import './ui/ChannelAvatar.js';
|
|
53
|
-
import './utils-
|
|
53
|
+
import './utils-eee41d99.js';
|
|
54
54
|
import './ui/Badge.js';
|
|
55
|
-
import './index-
|
|
56
|
-
import './index-
|
|
57
|
-
import './index-
|
|
55
|
+
import './index-fc81a39d.js';
|
|
56
|
+
import './index-ea167da5.js';
|
|
57
|
+
import './index-0fa2c54a.js';
|
|
58
58
|
import './ui/MentionUserLabel.js';
|
|
59
59
|
import './Channel/components/TypingIndicator.js';
|
|
60
|
-
import './ChannelProvider-
|
|
61
|
-
import './compareIds-
|
|
62
|
-
import './const-
|
|
60
|
+
import './ChannelProvider-507ec95c.js';
|
|
61
|
+
import './compareIds-1f802ce2.js';
|
|
62
|
+
import './const-04252643.js';
|
|
63
63
|
import '@sendbird/chat/message';
|
|
64
64
|
import './ui/ReactionButton.js';
|
|
65
65
|
import './ui/MessageStatus.js';
|
|
66
66
|
import './ui/Loader.js';
|
|
67
67
|
import './ChannelList/components/ChannelPreviewAction.js';
|
|
68
68
|
import './EditUserProfile.js';
|
|
69
|
-
import './index-
|
|
69
|
+
import './index-f4df58ee.js';
|
|
70
70
|
import './ui/Input.js';
|
|
71
71
|
import './ui/TextButton.js';
|
|
72
|
-
import './color-
|
|
73
|
-
import './index-
|
|
72
|
+
import './color-fdffa928.js';
|
|
73
|
+
import './index-1d61d4d0.js';
|
|
74
74
|
import './Channel/components/ChannelUI.js';
|
|
75
75
|
import './ui/ConnectionStatus.js';
|
|
76
76
|
import './Channel/components/ChannelHeader.js';
|
|
77
77
|
import './Channel/components/MessageList.js';
|
|
78
78
|
import './Channel/components/Message.js';
|
|
79
79
|
import './Channel/components/SuggestedMentionList.js';
|
|
80
|
-
import './const-
|
|
80
|
+
import './const-03bf58be.js';
|
|
81
81
|
import './ui/DateSeparator.js';
|
|
82
82
|
import './ui/MessageInput.js';
|
|
83
83
|
import 'react-dom/server';
|
|
@@ -111,9 +111,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
|
|
|
111
111
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
112
112
|
import './ui/Accordion.js';
|
|
113
113
|
import './ui/AccordionGroup.js';
|
|
114
|
-
import './context-
|
|
114
|
+
import './context-578d3b09.js';
|
|
115
115
|
import './ChannelSettings/components/UserListItem.js';
|
|
116
|
-
import './MemberList-
|
|
116
|
+
import './MemberList-603ab567.js';
|
|
117
117
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
118
118
|
import './ChannelSettings/components/UserPanel.js';
|
|
119
119
|
import './MessageSearch/components/MessageSearchUI.js';
|
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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-416bd4e9.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-8bec1997.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
8
|
+
import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
|
|
9
9
|
import 'prop-types';
|
|
10
|
-
import '../../stringSet-
|
|
11
|
-
import '../../tslib.es6-
|
|
10
|
+
import '../../stringSet-8e444561.js';
|
|
11
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
12
12
|
import '../../ui/Avatar.js';
|
|
13
13
|
import '../../ui/ImageRenderer.js';
|
|
14
|
-
import '../../uuid-
|
|
15
|
-
import '../../utils-
|
|
16
|
-
import '../../index-
|
|
14
|
+
import '../../uuid-d9677664.js';
|
|
15
|
+
import '../../utils-eee41d99.js';
|
|
16
|
+
import '../../index-4a97d671.js';
|
|
17
17
|
import '../../withSendbird.js';
|
|
18
|
-
import '../../_rollupPluginBabelHelpers-
|
|
19
|
-
import '../../UserProfileContext-
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../topics-
|
|
22
|
-
import '../../index-
|
|
18
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
19
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
20
|
+
import '../../index-0fa2c54a.js';
|
|
21
|
+
import '../../topics-48ad3f74.js';
|
|
22
|
+
import '../../index-40e8f483.js';
|
|
23
23
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
24
|
-
import '../../compareIds-
|
|
25
|
-
import '../../const-
|
|
24
|
+
import '../../compareIds-1f802ce2.js';
|
|
25
|
+
import '../../const-04252643.js';
|
|
26
26
|
import '@sendbird/chat/groupChannel';
|
|
27
27
|
import '@sendbird/chat/message';
|
|
28
28
|
import '../../ui/ContextMenu.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-507ec95c.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-1d61d4d0.js';
|
|
5
5
|
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
6
|
import ChannelHeader from './ChannelHeader.js';
|
|
7
7
|
import MessageList from './MessageList.js';
|
|
@@ -10,40 +10,40 @@ 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-9a43324e.js';
|
|
14
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
15
15
|
import 'prop-types';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../topics-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../index-0fa2c54a.js';
|
|
17
|
+
import '../../index-4a97d671.js';
|
|
18
|
+
import '../../topics-48ad3f74.js';
|
|
19
|
+
import '../../index-40e8f483.js';
|
|
20
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
21
21
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
22
|
-
import '../../compareIds-
|
|
23
|
-
import '../../const-
|
|
22
|
+
import '../../compareIds-1f802ce2.js';
|
|
23
|
+
import '../../const-04252643.js';
|
|
24
24
|
import '@sendbird/chat/groupChannel';
|
|
25
|
-
import '../../uuid-
|
|
25
|
+
import '../../uuid-d9677664.js';
|
|
26
26
|
import '@sendbird/chat/message';
|
|
27
27
|
import '../../ui/ContextMenu.js';
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import '../../ui/SortByRow.js';
|
|
30
|
-
import '../../index-
|
|
31
|
-
import '../../stringSet-
|
|
30
|
+
import '../../index-416bd4e9.js';
|
|
31
|
+
import '../../stringSet-8e444561.js';
|
|
32
32
|
import '../../ui/ReactionButton.js';
|
|
33
33
|
import '../../ui/ImageRenderer.js';
|
|
34
34
|
import '../../ui/Icon.js';
|
|
35
|
-
import '../../LocalizationContext-
|
|
35
|
+
import '../../LocalizationContext-8bec1997.js';
|
|
36
36
|
import '../../ui/Loader.js';
|
|
37
37
|
import '../../ui/IconButton.js';
|
|
38
38
|
import '../../ui/ChannelAvatar.js';
|
|
39
39
|
import '../../ui/Avatar.js';
|
|
40
|
-
import '../../utils-
|
|
41
|
-
import '../../index-
|
|
40
|
+
import '../../utils-eee41d99.js';
|
|
41
|
+
import '../../index-ea167da5.js';
|
|
42
42
|
import './Message.js';
|
|
43
43
|
import './SuggestedMentionList.js';
|
|
44
|
-
import '../../const-
|
|
44
|
+
import '../../const-03bf58be.js';
|
|
45
45
|
import '../../ui/DateSeparator.js';
|
|
46
|
-
import '../../color-
|
|
46
|
+
import '../../color-fdffa928.js';
|
|
47
47
|
import '../../ui/MessageInput.js';
|
|
48
48
|
import 'react-dom/server';
|
|
49
49
|
import '../../ui/Button.js';
|
|
@@ -51,7 +51,7 @@ import '../../ui/MentionUserLabel.js';
|
|
|
51
51
|
import '../../ui/MessageContent.js';
|
|
52
52
|
import '../../ui/UserProfile.js';
|
|
53
53
|
import '../../sendbirdSelectors.js';
|
|
54
|
-
import '../../utils-
|
|
54
|
+
import '../../utils-df07d074.js';
|
|
55
55
|
import '../../ui/MessageStatus.js';
|
|
56
56
|
import '../../ui/MessageItemMenu.js';
|
|
57
57
|
import '../../ui/MessageItemReactionMenu.js';
|
|
@@ -71,7 +71,7 @@ import '../../ui/OGMessageItemBody.js';
|
|
|
71
71
|
import '../../ui/UnknownMessageItemBody.js';
|
|
72
72
|
import '../../ui/QuoteMessage.js';
|
|
73
73
|
import './FileViewer.js';
|
|
74
|
-
import '../../index-
|
|
74
|
+
import '../../index-876a278e.js';
|
|
75
75
|
import './RemoveMessageModal.js';
|
|
76
76
|
import '../../ui/Modal.js';
|
|
77
77
|
import '../../ui/QuoteMessageInput.js';
|
|
@@ -98,7 +98,8 @@ var ChannelUI = function (_a) {
|
|
|
98
98
|
setAnimatedMessageId = _f.setAnimatedMessageId,
|
|
99
99
|
setHighLightedMessageId = _f.setHighLightedMessageId,
|
|
100
100
|
scrollRef = _f.scrollRef,
|
|
101
|
-
messagesDispatcher = _f.messagesDispatcher
|
|
101
|
+
messagesDispatcher = _f.messagesDispatcher,
|
|
102
|
+
disableMarkAsRead = _f.disableMarkAsRead;
|
|
102
103
|
|
|
103
104
|
var _g = useState(0),
|
|
104
105
|
unreadCount = _g[0],
|
|
@@ -153,17 +154,20 @@ var ChannelUI = function (_a) {
|
|
|
153
154
|
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);
|
|
154
155
|
}
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
if (!disableMarkAsRead) {
|
|
158
|
+
try {
|
|
159
|
+
currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
|
|
160
|
+
} catch (_d) {//
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
messagesDispatcher({
|
|
164
|
+
type: MARK_AS_READ,
|
|
165
|
+
payload: {
|
|
166
|
+
channel: currentGroupChannel
|
|
167
|
+
}
|
|
168
|
+
});
|
|
159
169
|
}
|
|
160
170
|
|
|
161
|
-
messagesDispatcher({
|
|
162
|
-
type: MARK_AS_READ,
|
|
163
|
-
payload: {
|
|
164
|
-
channel: currentGroupChannel
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
171
|
setInitialTimeStamp(null);
|
|
168
172
|
setAnimatedMessageId(null);
|
|
169
173
|
setHighLightedMessageId(null);
|
|
@@ -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 { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\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","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"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AAD,EAAA,IAAA,CARN,CANF,CAvDF,CADF,CAAA;AA6ED;;;;"}
|
|
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 { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\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 disableMarkAsRead,\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 if (!disableMarkAsRead) {\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\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","disableMarkAsRead","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,IAAMA,SAAS,GAA6B,UAACC,EAAD,EAS3B;;;MARfC,uBAAuB,GAAAD,EAAA,CAAAC;MACvBC,wBAAwB,GAAAF,EAAA,CAAAE;MACxBC,sBAAsB,GAAAH,EAAA,CAAAG;MACtBC,mBAAmB,GAAAJ,EAAA,CAAAI;MACnBC,aAAa,GAAAL,EAAA,CAAAK;MACbC,kBAAkB,GAAAN,EAAA,CAAAM;MAClBC,qBAAqB,GAAAP,EAAA,CAAAO;MACrBC,qBAAqB,GAAAR,EAAA,CAAAQ;;EAEf,IAAAC,KAYFC,iBAAiB,EAZf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,GAAAH,E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BACEwC,6BAAC,WAAD,EAAA;IAAa,IAAI,EAAEC,gBAAgB,CAACc,OAAAA;GAH1C,CAAA,CAFG,gBAUHf,cAAA,CAAA,aAAA,CAAC,WAAD,EAAA;AACE,IAAA,aAAa,EAAEpC,aADjB;AAEE,IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK,qBAAAA;AAHzB,GAAA,CAlDR,eAyDEiC,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,+BAAA;AAAf,GAAA,EAEI,CAAAnC,kBAAkB,KAAlB,IAAA,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACEmC,cAAC,CAAA,aAAA,CAAA,mBAAD,OAHN,eAMEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,SAAS,EAAC,iDAAA;AAAf,GAAA,EAEI,CAAAlC,qBAAqB,KAArB,IAAA,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACEkC,cAAC,CAAA,aAAA,CAAA,eAAD,EAHN,IAAA,CAAA,EAOI,CAACF,QAAD,iBACEE,cAAA,CAAA,aAAA,CAAC,gBAAD,EAAA,IAAA,CARN,CANF,CAzDF,CADF,CAAA;AA+ED;;;;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
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-416bd4e9.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
|
-
import { M as MODAL_ROOT } from '../../index-
|
|
7
|
-
import { y as isSupportedFileView, z as isVideo, A as isImage } from '../../index-
|
|
6
|
+
import { M as MODAL_ROOT } from '../../index-876a278e.js';
|
|
7
|
+
import { y as isSupportedFileView, z as isVideo, A as isImage } from '../../index-40e8f483.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-507ec95c.js';
|
|
10
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
11
11
|
import '../../ui/ImageRenderer.js';
|
|
12
|
-
import '../../uuid-
|
|
12
|
+
import '../../uuid-d9677664.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../../stringSet-
|
|
14
|
+
import '../../stringSet-8e444561.js';
|
|
15
15
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
16
16
|
import '../../withSendbird.js';
|
|
17
|
-
import '../../_rollupPluginBabelHelpers-
|
|
18
|
-
import '../../UserProfileContext-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../topics-
|
|
22
|
-
import '../../compareIds-
|
|
23
|
-
import '../../const-
|
|
17
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
18
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
19
|
+
import '../../index-0fa2c54a.js';
|
|
20
|
+
import '../../index-4a97d671.js';
|
|
21
|
+
import '../../topics-48ad3f74.js';
|
|
22
|
+
import '../../compareIds-1f802ce2.js';
|
|
23
|
+
import '../../const-04252643.js';
|
|
24
24
|
import '@sendbird/chat/groupChannel';
|
|
25
25
|
import '@sendbird/chat/message';
|
|
26
26
|
import '../../ui/ContextMenu.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
3
|
+
import { L as Label, a as LabelTypography } from '../../index-416bd4e9.js';
|
|
4
|
+
import '../../stringSet-8e444561.js';
|
|
5
|
+
import '../../index-4a97d671.js';
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
|
|
8
8
|
var FrozenNotification = function () {
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-ca5fed0d.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-0fa2c54a.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 { h 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-507ec95c.js';
|
|
7
|
+
import { h as getClassName } from '../../index-40e8f483.js';
|
|
8
|
+
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-04252643.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-416bd4e9.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-03bf58be.js';
|
|
16
|
+
import { u as useLocalization } from '../../LocalizationContext-8bec1997.js';
|
|
17
|
+
import '../../index-4a97d671.js';
|
|
18
18
|
import '../../ui/Icon.js';
|
|
19
19
|
import 'prop-types';
|
|
20
20
|
import '../../ui/Avatar.js';
|
|
21
21
|
import '../../ui/ImageRenderer.js';
|
|
22
|
-
import '../../uuid-
|
|
22
|
+
import '../../uuid-d9677664.js';
|
|
23
23
|
import '../../withSendbird.js';
|
|
24
|
-
import '../../_rollupPluginBabelHelpers-
|
|
25
|
-
import '../../UserProfileContext-
|
|
26
|
-
import '../../topics-
|
|
24
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
25
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
26
|
+
import '../../topics-48ad3f74.js';
|
|
27
27
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
28
|
-
import '../../compareIds-
|
|
28
|
+
import '../../compareIds-1f802ce2.js';
|
|
29
29
|
import '@sendbird/chat/groupChannel';
|
|
30
30
|
import '@sendbird/chat/message';
|
|
31
31
|
import '../../ui/ContextMenu.js';
|
|
32
32
|
import 'react-dom';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
|
-
import '../../stringSet-
|
|
34
|
+
import '../../stringSet-8e444561.js';
|
|
35
35
|
import '../../ui/ReactionButton.js';
|
|
36
|
-
import '../../color-
|
|
36
|
+
import '../../color-fdffa928.js';
|
|
37
37
|
import 'react-dom/server';
|
|
38
38
|
import '../../ui/IconButton.js';
|
|
39
39
|
import '../../ui/Button.js';
|
|
40
40
|
import '../../ui/MentionUserLabel.js';
|
|
41
41
|
import '../../ui/UserProfile.js';
|
|
42
42
|
import '../../sendbirdSelectors.js';
|
|
43
|
-
import '../../utils-
|
|
43
|
+
import '../../utils-df07d074.js';
|
|
44
44
|
import '../../ui/MessageStatus.js';
|
|
45
45
|
import '../../ui/Loader.js';
|
|
46
46
|
import '../../ui/MessageItemMenu.js';
|
|
@@ -60,7 +60,7 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
60
60
|
import '../../ui/OGMessageItemBody.js';
|
|
61
61
|
import '../../ui/UnknownMessageItemBody.js';
|
|
62
62
|
import '../../ui/QuoteMessage.js';
|
|
63
|
-
import '../../index-
|
|
63
|
+
import '../../index-876a278e.js';
|
|
64
64
|
import '../../ui/Modal.js';
|
|
65
65
|
|
|
66
66
|
var Message = function (props) {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-ca5fed0d.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-507ec95c.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-8bec1997.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-03bf58be.js';
|
|
10
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../index-
|
|
14
|
-
import '../../topics-
|
|
15
|
-
import '../../index-
|
|
12
|
+
import '../../index-0fa2c54a.js';
|
|
13
|
+
import '../../index-4a97d671.js';
|
|
14
|
+
import '../../topics-48ad3f74.js';
|
|
15
|
+
import '../../index-40e8f483.js';
|
|
16
16
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
17
|
-
import '../../_rollupPluginBabelHelpers-
|
|
18
|
-
import '../../compareIds-
|
|
19
|
-
import '../../const-
|
|
17
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
18
|
+
import '../../compareIds-1f802ce2.js';
|
|
19
|
+
import '../../const-04252643.js';
|
|
20
20
|
import '@sendbird/chat/groupChannel';
|
|
21
|
-
import '../../uuid-
|
|
21
|
+
import '../../uuid-d9677664.js';
|
|
22
22
|
import '@sendbird/chat/message';
|
|
23
23
|
import '../../ui/ContextMenu.js';
|
|
24
24
|
import 'react-dom';
|
|
25
25
|
import '../../ui/SortByRow.js';
|
|
26
|
-
import '../../index-
|
|
27
|
-
import '../../stringSet-
|
|
26
|
+
import '../../index-416bd4e9.js';
|
|
27
|
+
import '../../stringSet-8e444561.js';
|
|
28
28
|
import '../../ui/ReactionButton.js';
|
|
29
29
|
import '../../ui/ImageRenderer.js';
|
|
30
30
|
import '../../ui/Icon.js';
|
|
@@ -1,39 +1,39 @@
|
|
|
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-ea167da5.js';
|
|
3
|
+
import { u as useChannelContext, c as compareMessagesForGrouping, i as isAboutSame } from '../../ChannelProvider-507ec95c.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-1d61d4d0.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-d9677664.js';
|
|
8
|
+
import '../../index-0fa2c54a.js';
|
|
9
|
+
import '../../index-4a97d671.js';
|
|
10
|
+
import '../../UserProfileContext-ce0aa8c5.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-
|
|
14
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
15
|
+
import '../../topics-48ad3f74.js';
|
|
16
|
+
import '../../index-40e8f483.js';
|
|
17
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
18
18
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
19
|
-
import '../../compareIds-
|
|
20
|
-
import '../../const-
|
|
19
|
+
import '../../compareIds-1f802ce2.js';
|
|
20
|
+
import '../../const-04252643.js';
|
|
21
21
|
import '@sendbird/chat/groupChannel';
|
|
22
22
|
import '@sendbird/chat/message';
|
|
23
23
|
import '../../ui/ContextMenu.js';
|
|
24
24
|
import 'react-dom';
|
|
25
25
|
import '../../ui/SortByRow.js';
|
|
26
|
-
import '../../index-
|
|
27
|
-
import '../../stringSet-
|
|
26
|
+
import '../../index-416bd4e9.js';
|
|
27
|
+
import '../../stringSet-8e444561.js';
|
|
28
28
|
import '../../ui/ReactionButton.js';
|
|
29
29
|
import '../../ui/ImageRenderer.js';
|
|
30
|
-
import '../../LocalizationContext-
|
|
30
|
+
import '../../LocalizationContext-8bec1997.js';
|
|
31
31
|
import '../../ui/Loader.js';
|
|
32
32
|
import './SuggestedMentionList.js';
|
|
33
33
|
import '../../ui/Avatar.js';
|
|
34
|
-
import '../../const-
|
|
34
|
+
import '../../const-03bf58be.js';
|
|
35
35
|
import '../../ui/DateSeparator.js';
|
|
36
|
-
import '../../color-
|
|
36
|
+
import '../../color-fdffa928.js';
|
|
37
37
|
import '../../ui/MessageInput.js';
|
|
38
38
|
import 'react-dom/server';
|
|
39
39
|
import '../../ui/IconButton.js';
|
|
@@ -42,7 +42,7 @@ import '../../ui/MentionUserLabel.js';
|
|
|
42
42
|
import '../../ui/MessageContent.js';
|
|
43
43
|
import '../../ui/UserProfile.js';
|
|
44
44
|
import '../../sendbirdSelectors.js';
|
|
45
|
-
import '../../utils-
|
|
45
|
+
import '../../utils-df07d074.js';
|
|
46
46
|
import '../../ui/MessageStatus.js';
|
|
47
47
|
import '../../ui/MessageItemMenu.js';
|
|
48
48
|
import '../../ui/MessageItemReactionMenu.js';
|
|
@@ -62,7 +62,7 @@ import '../../ui/OGMessageItemBody.js';
|
|
|
62
62
|
import '../../ui/UnknownMessageItemBody.js';
|
|
63
63
|
import '../../ui/QuoteMessage.js';
|
|
64
64
|
import './FileViewer.js';
|
|
65
|
-
import '../../index-
|
|
65
|
+
import '../../index-876a278e.js';
|
|
66
66
|
import './RemoveMessageModal.js';
|
|
67
67
|
import '../../ui/Modal.js';
|
|
68
68
|
|
|
@@ -85,7 +85,8 @@ var MessageList = function (props) {
|
|
|
85
85
|
onScrollDownCallback = _a.onScrollDownCallback,
|
|
86
86
|
messagesDispatcher = _a.messagesDispatcher,
|
|
87
87
|
messageActionTypes = _a.messageActionTypes,
|
|
88
|
-
currentGroupChannel = _a.currentGroupChannel
|
|
88
|
+
currentGroupChannel = _a.currentGroupChannel,
|
|
89
|
+
disableMarkAsRead = _a.disableMarkAsRead;
|
|
89
90
|
|
|
90
91
|
var _b = useState(0),
|
|
91
92
|
scrollBottom = _b[0],
|
|
@@ -143,7 +144,7 @@ var MessageList = function (props) {
|
|
|
143
144
|
|
|
144
145
|
setTimeout(function () {
|
|
145
146
|
// mark as read if scroll is at end
|
|
146
|
-
if (clientHeight + scrollTop === scrollHeight) {
|
|
147
|
+
if (!disableMarkAsRead && clientHeight + scrollTop === scrollHeight) {
|
|
147
148
|
messagesDispatcher({
|
|
148
149
|
type: messageActionTypes.MARK_AS_READ,
|
|
149
150
|
payload: {
|