@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.js","sources":["../../../src/smart-components/Channel/components/MessageList/index.tsx"],"sourcesContent":["import './message-list.scss';\n\nimport React, { useState, useMemo } from 'react';\nimport isSameDay from 'date-fns/isSameDay';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\nimport { compareMessagesForGrouping } from '../../context/utils';\nimport Message from '../Message';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport { isAboutSame } from '../../context/utils';\nimport uuidv4 from '../../../../utils/uuid';\n\nexport type MessageListProps = {\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n};\n\nconst SCROLL_REF_CLASS_NAME = '.sendbird-msg--scroll-ref';\n\nconst MessageList: React.FC<MessageListProps> = (props: MessageListProps) => {\n const {\n renderMessage,\n renderPlaceholderEmpty,\n renderCustomSeparator,\n } = props;\n const {\n allMessages,\n hasMorePrev,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n isMessageGroupingEnabled,\n scrollRef,\n onScrollCallback,\n onScrollDownCallback,\n messagesDispatcher,\n messageActionTypes,\n currentGroupChannel,\n } = useChannelContext();\n const [scrollBottom, setScrollBottom] = useState(0);\n\n const onScroll = (e) => {\n const element = e.target;\n const {\n scrollTop,\n clientHeight,\n scrollHeight,\n } = element;\n\n if (scrollTop === 0) {\n if (!hasMorePrev) {\n return;\n }\n const nodes = scrollRef.current.querySelectorAll(SCROLL_REF_CLASS_NAME);\n const first = nodes && nodes[0];\n onScrollCallback(([messages]) => {\n if (messages) {\n // https://github.com/scabbiaza/react-scroll-position-on-updating-dom\n // Set block to nearest to prevent unexpected scrolling from outer components\n try {\n first.scrollIntoView({ block: \"start\", inline: \"nearest\" });\n } catch (error) {\n //\n }\n }\n });\n }\n\n if (isAboutSame(clientHeight + scrollTop, scrollHeight, 10)) {\n onScrollDownCallback(([messages]) => {\n if (messages) {\n try {\n element.scrollTop = scrollHeight - clientHeight;\n } catch (error) {\n //\n }\n }\n });\n }\n\n // save the lastest scroll bottom value\n if (scrollRef?.current) {\n const current = scrollRef?.current;\n setScrollBottom(current.scrollHeight - current.scrollTop - current.offsetHeight)\n }\n\n // do this later\n setTimeout(() => {\n // mark as read if scroll is at end\n if (clientHeight + scrollTop === scrollHeight) {\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n }\n }, 500);\n };\n\n const onClickScrollBot = () => {\n setInitialTimeStamp?.(null);\n setAnimatedMessageId?.(null);\n setHighLightedMessageId?.(null);\n if (scrollRef?.current?.scrollTop > -1) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n };\n\n // Because every message components are re-rendered everytime by every scroll events\n const memoizedAllMessages = useMemo(() => {\n return (\n allMessages.map((m, idx) => {\n const previousMessage = allMessages[idx - 1];\n const nextMessage = allMessages[idx + 1];\n const [chainTop, chainBottom] = isMessageGroupingEnabled\n ? compareMessagesForGrouping(previousMessage, m, nextMessage)\n : [false, false];\n const previousMessageCreatedAt = previousMessage?.createdAt;\n const currentCreatedAt = m.createdAt;\n // https://stackoverflow.com/a/41855608\n const hasSeparator = !(previousMessageCreatedAt && (\n isSameDay(currentCreatedAt, previousMessageCreatedAt)\n ));\n\n const handleScroll = () => {\n const current = scrollRef?.current;\n if (current) {\n const bottom = current.scrollHeight - current.scrollTop - current.offsetHeight;\n if (scrollBottom < bottom) {\n current.scrollTop += bottom - scrollBottom;\n }\n }\n }\n\n return (\n <Message\n handleScroll={handleScroll}\n renderMessage={renderMessage}\n message={m}\n hasSeparator={hasSeparator}\n chainTop={chainTop}\n chainBottom={chainBottom}\n renderCustomSeparator={renderCustomSeparator}\n key={m.messageId + uuidv4()}\n />\n );\n })\n );\n }, [allMessages]);\n\n if (allMessages.length < 1) {\n return (\n <>\n {\n renderPlaceholderEmpty?.() || (\n <PlaceHolder\n className=\"sendbird-conversation__no-messages\"\n type={PlaceHolderTypes.NO_MESSAGES}\n />)\n }\n </>\n );\n }\n return (\n <div className=\"sendbird-conversation__messages\">\n <div className=\"sendbird-conversation__scroll-container\">\n <div className=\"sendbird-conversation__padding\" />\n <div\n className=\"sendbird-conversation__messages-padding\"\n ref={scrollRef}\n onScroll={onScroll}\n >\n {memoizedAllMessages}\n </div>\n </div>\n {\n // This flag is an unmatched variable\n (scrollBottom > 1) && (\n <div\n className=\"sendbird-conversation__scroll-bottom-button\"\n onClick={onClickScrollBot}\n onKeyDown={onClickScrollBot}\n tabIndex={0}\n role=\"button\"\n >\n <Icon\n width=\"24px\"\n height=\"24px\"\n type={IconTypes.CHEVRON_DOWN}\n fillColor={IconColors.PRIMARY}\n />\n </div>\n )\n }\n </div>\n );\n};\n\nexport default MessageList;\n"],"names":["SCROLL_REF_CLASS_NAME","MessageList","props","renderMessage","renderPlaceholderEmpty","renderCustomSeparator","_a","useChannelContext","allMessages","hasMorePrev","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","isMessageGroupingEnabled","scrollRef","onScrollCallback","onScrollDownCallback","messagesDispatcher","messageActionTypes","currentGroupChannel","_b","useState","scrollBottom","setScrollBottom","onScroll","e","element","target","scrollTop","clientHeight","scrollHeight","nodes","current","querySelectorAll","first_1","messages","scrollIntoView","block","inline","error","isAboutSame","offsetHeight","setTimeout","type","MARK_AS_READ","payload","channel","markAsRead","onClickScrollBot","_c","memoizedAllMessages","useMemo","map","m","idx","previousMessage","nextMessage","compareMessagesForGrouping","chainTop","chainBottom","previousMessageCreatedAt","createdAt","currentCreatedAt","hasSeparator","isSameDay","handleScroll","bottom","React","messageId","uuidv4","length","PlaceHolderTypes","NO_MESSAGES","IconTypes","CHEVRON_DOWN","IconColors","PRIMARY"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,qBAAqB,GAAG,2BAA9B,CAAA;;AAEA,IAAMC,WAAW,GAA+B,UAACC,KAAD,EAAwB;AAEpE,EAAA,IAAAC,aAAa,GAGXD,KAAK,CAAAC,aAHP;AAAA,MACAC,sBAAsB,GAEpBF,KAAK,CAAAE,sBAHP;AAAA,MAEAC,qBAAqB,GACnBH,KAAK,sBAHP,CAAA;;EAII,IAAAI,KAaFC,iBAAiB,EAbf;AAAA,MACJC,WAAW,iBADP;AAAA,MAEJC,WAAW,GAAAH,EAAA,CAAAG,WAFP;AAAA,MAGJC,mBAAmB,GAAAJ,EAAA,CAAAI,mBAHf;AAAA,MAIJC,oBAAoB,GAAAL,EAAA,CAAAK,oBAJhB;AAAA,MAKJC,uBAAuB,GAAAN,EAAA,CAAAM,uBALnB;AAAA,MAMJC,wBAAwB,GAAAP,EAAA,CAAAO,wBANpB;AAAA,MAOJC,SAAS,GAAAR,EAAA,CAAAQ,SAPL;AAAA,MAQJC,gBAAgB,GAAAT,EAAA,CAAAS,gBARZ;AAAA,MASJC,oBAAoB,GAAAV,EAAA,CAAAU,oBAThB;AAAA,MAUJC,kBAAkB,wBAVd;AAAA,MAWJC,kBA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6C,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACE,IAAA,SAAS,EAAC,6CADZ;AAEE,IAAA,OAAO,EAAEnB,gBAFX;AAGE,IAAA,SAAS,EAAEA,gBAHb;AAIE,IAAA,QAAQ,EAAE,CAJZ;AAKE,IAAA,IAAI,EAAC,QAAA;AALP,GAAA,eAOEmB,6BAAC,IAAD,EAAA;AACE,IAAA,KAAK,EAAC,MADR;AAEE,IAAA,MAAM,EAAC,MAFT;IAGE,IAAI,EAAEM,SAAS,CAACC,YAHlB;IAIE,SAAS,EAAEC,UAAU,CAACC,OAAAA;AAJxB,GAAA,CAPF,CAdN,CADF,CAAA;AAiCD;;;;"}
|
|
1
|
+
{"version":3,"file":"MessageList.js","sources":["../../../src/smart-components/Channel/components/MessageList/index.tsx"],"sourcesContent":["import './message-list.scss';\n\nimport React, { useState, useMemo } from 'react';\nimport isSameDay from 'date-fns/isSameDay';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\nimport { compareMessagesForGrouping } from '../../context/utils';\nimport Message from '../Message';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport { isAboutSame } from '../../context/utils';\nimport uuidv4 from '../../../../utils/uuid';\n\nexport type MessageListProps = {\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n};\n\nconst SCROLL_REF_CLASS_NAME = '.sendbird-msg--scroll-ref';\n\nconst MessageList: React.FC<MessageListProps> = (props: MessageListProps) => {\n const {\n renderMessage,\n renderPlaceholderEmpty,\n renderCustomSeparator,\n } = props;\n const {\n allMessages,\n hasMorePrev,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n isMessageGroupingEnabled,\n scrollRef,\n onScrollCallback,\n onScrollDownCallback,\n messagesDispatcher,\n messageActionTypes,\n currentGroupChannel,\n disableMarkAsRead,\n } = useChannelContext();\n const [scrollBottom, setScrollBottom] = useState(0);\n\n const onScroll = (e) => {\n const element = e.target;\n const {\n scrollTop,\n clientHeight,\n scrollHeight,\n } = element;\n\n if (scrollTop === 0) {\n if (!hasMorePrev) {\n return;\n }\n const nodes = scrollRef.current.querySelectorAll(SCROLL_REF_CLASS_NAME);\n const first = nodes && nodes[0];\n onScrollCallback(([messages]) => {\n if (messages) {\n // https://github.com/scabbiaza/react-scroll-position-on-updating-dom\n // Set block to nearest to prevent unexpected scrolling from outer components\n try {\n first.scrollIntoView({ block: \"start\", inline: \"nearest\" });\n } catch (error) {\n //\n }\n }\n });\n }\n\n if (isAboutSame(clientHeight + scrollTop, scrollHeight, 10)) {\n onScrollDownCallback(([messages]) => {\n if (messages) {\n try {\n element.scrollTop = scrollHeight - clientHeight;\n } catch (error) {\n //\n }\n }\n });\n }\n\n // save the lastest scroll bottom value\n if (scrollRef?.current) {\n const current = scrollRef?.current;\n setScrollBottom(current.scrollHeight - current.scrollTop - current.offsetHeight)\n }\n\n // do this later\n setTimeout(() => {\n // mark as read if scroll is at end\n if (!disableMarkAsRead && clientHeight + scrollTop === scrollHeight) {\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n }\n }, 500);\n };\n\n const onClickScrollBot = () => {\n setInitialTimeStamp?.(null);\n setAnimatedMessageId?.(null);\n setHighLightedMessageId?.(null);\n if (scrollRef?.current?.scrollTop > -1) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n };\n\n // Because every message components are re-rendered everytime by every scroll events\n const memoizedAllMessages = useMemo(() => {\n return (\n allMessages.map((m, idx) => {\n const previousMessage = allMessages[idx - 1];\n const nextMessage = allMessages[idx + 1];\n const [chainTop, chainBottom] = isMessageGroupingEnabled\n ? compareMessagesForGrouping(previousMessage, m, nextMessage)\n : [false, false];\n const previousMessageCreatedAt = previousMessage?.createdAt;\n const currentCreatedAt = m.createdAt;\n // https://stackoverflow.com/a/41855608\n const hasSeparator = !(previousMessageCreatedAt && (\n isSameDay(currentCreatedAt, previousMessageCreatedAt)\n ));\n\n const handleScroll = () => {\n const current = scrollRef?.current;\n if (current) {\n const bottom = current.scrollHeight - current.scrollTop - current.offsetHeight;\n if (scrollBottom < bottom) {\n current.scrollTop += bottom - scrollBottom;\n }\n }\n }\n\n return (\n <Message\n handleScroll={handleScroll}\n renderMessage={renderMessage}\n message={m}\n hasSeparator={hasSeparator}\n chainTop={chainTop}\n chainBottom={chainBottom}\n renderCustomSeparator={renderCustomSeparator}\n key={m.messageId + uuidv4()}\n />\n );\n })\n );\n }, [allMessages]);\n\n if (allMessages.length < 1) {\n return (\n <>\n {\n renderPlaceholderEmpty?.() || (\n <PlaceHolder\n className=\"sendbird-conversation__no-messages\"\n type={PlaceHolderTypes.NO_MESSAGES}\n />)\n }\n </>\n );\n }\n return (\n <div className=\"sendbird-conversation__messages\">\n <div className=\"sendbird-conversation__scroll-container\">\n <div className=\"sendbird-conversation__padding\" />\n <div\n className=\"sendbird-conversation__messages-padding\"\n ref={scrollRef}\n onScroll={onScroll}\n >\n {memoizedAllMessages}\n </div>\n </div>\n {\n // This flag is an unmatched variable\n (scrollBottom > 1) && (\n <div\n className=\"sendbird-conversation__scroll-bottom-button\"\n onClick={onClickScrollBot}\n onKeyDown={onClickScrollBot}\n tabIndex={0}\n role=\"button\"\n >\n <Icon\n width=\"24px\"\n height=\"24px\"\n type={IconTypes.CHEVRON_DOWN}\n fillColor={IconColors.PRIMARY}\n />\n </div>\n )\n }\n </div>\n );\n};\n\nexport default MessageList;\n"],"names":["SCROLL_REF_CLASS_NAME","MessageList","props","renderMessage","renderPlaceholderEmpty","renderCustomSeparator","_a","useChannelContext","allMessages","hasMorePrev","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","isMessageGroupingEnabled","scrollRef","onScrollCallback","onScrollDownCallback","messagesDispatcher","messageActionTypes","currentGroupChannel","disableMarkAsRead","_b","useState","scrollBottom","setScrollBottom","onScroll","e","element","target","scrollTop","clientHeight","scrollHeight","nodes","current","querySelectorAll","first_1","messages","scrollIntoView","block","inline","error","isAboutSame","offsetHeight","setTimeout","type","MARK_AS_READ","payload","channel","markAsRead","onClickScrollBot","_c","memoizedAllMessages","useMemo","map","m","idx","previousMessage","nextMessage","compareMessagesForGrouping","chainTop","chainBottom","previousMessageCreatedAt","createdAt","currentCreatedAt","hasSeparator","isSameDay","handleScroll","bottom","React","messageId","uuidv4","length","PlaceHolderTypes","NO_MESSAGES","IconTypes","CHEVRON_DOWN","IconColors","PRIMARY"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMA,qBAAqB,GAAG,2BAA9B,CAAA;;AAEA,IAAMC,WAAW,GAA+B,UAACC,KAAD,EAAwB;AAEpE,EAAA,IAAAC,aAAa,GAGXD,KAAK,CAAAC,aAHP;AAAA,MACAC,sBAAsB,GAEpBF,KAAK,CAAAE,sBAHP;AAAA,MAEAC,qBAAqB,GACnBH,KAAK,sBAHP,CAAA;;EAII,IAAAI,KAcFC,iBAAiB,EAdf;AAAA,MACJC,WAAW,GAAAF,EAAA,CAAAE,WADP;AAAA,MAEJC,WAAW,GAAAH,EAAA,CAAAG,WAFP;AAAA,MAGJC,mBAAmB,GAAAJ,EAAA,CAAAI,mBAHf;AAAA,MAIJC,oBAAoB,GAAAL,EAAA,CAAAK,oBAJhB;AAAA,MAKJC,uBAAuB,GAAAN,EAAA,CAAAM,uBALnB;AAAA,MAMJC,wBAAwB,GAAAP,EAAA,CAAAO,wBANpB;AAAA,MAOJC,SAAS,eAPL;AAAA,MAQJC,gBAAgB,sBARZ;AAAA,MASJC,oBAAoB,0BAThB;AAAA,MAUJC,kB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QAAAA;GAET0B,EAAAA,mBALH,CAFF,CADF;EAaK5B,YAAY,GAAG,CAAhB,iBACE6C,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACE,IAAA,SAAS,EAAC,6CADZ;AAEE,IAAA,OAAO,EAAEnB,gBAFX;AAGE,IAAA,SAAS,EAAEA,gBAHb;AAIE,IAAA,QAAQ,EAAE,CAJZ;AAKE,IAAA,IAAI,EAAC,QAAA;AALP,GAAA,eAOEmB,6BAAC,IAAD,EAAA;AACE,IAAA,KAAK,EAAC,MADR;AAEE,IAAA,MAAM,EAAC,MAFT;IAGE,IAAI,EAAEM,SAAS,CAACC,YAHlB;IAIE,SAAS,EAAEC,UAAU,CAACC,OAAAA;AAJxB,GAAA,CAPF,CAdN,CADF,CAAA;AAiCD;;;;"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
2
|
import Modal from '../../ui/Modal.js';
|
|
3
3
|
import { ButtonTypes } from '../../ui/Button.js';
|
|
4
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
5
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
4
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
5
|
+
import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
|
|
6
6
|
import 'react-dom';
|
|
7
|
-
import '../../index-
|
|
7
|
+
import '../../index-876a278e.js';
|
|
8
8
|
import '../../ui/Icon.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import '../../ui/IconButton.js';
|
|
11
|
-
import '../../tslib.es6-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../index-
|
|
15
|
-
import '../../UserProfileContext-
|
|
11
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
12
|
+
import '../../index-416bd4e9.js';
|
|
13
|
+
import '../../stringSet-8e444561.js';
|
|
14
|
+
import '../../index-4a97d671.js';
|
|
15
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
16
16
|
import '../../useSendbirdStateContext.js';
|
|
17
17
|
import '../../withSendbird.js';
|
|
18
|
-
import '../../_rollupPluginBabelHelpers-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../topics-
|
|
21
|
-
import '../../index-
|
|
18
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
19
|
+
import '../../index-0fa2c54a.js';
|
|
20
|
+
import '../../topics-48ad3f74.js';
|
|
21
|
+
import '../../index-40e8f483.js';
|
|
22
22
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
23
|
-
import '../../compareIds-
|
|
24
|
-
import '../../const-
|
|
23
|
+
import '../../compareIds-1f802ce2.js';
|
|
24
|
+
import '../../const-04252643.js';
|
|
25
25
|
import '@sendbird/chat/groupChannel';
|
|
26
|
-
import '../../uuid-
|
|
26
|
+
import '../../uuid-d9677664.js';
|
|
27
27
|
import '@sendbird/chat/message';
|
|
28
28
|
import '../../ui/ContextMenu.js';
|
|
29
29
|
import '../../ui/SortByRow.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useRef, useContext, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { 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 Avatar from '../../ui/Avatar.js';
|
|
5
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
-
import { u as uuidv4 } from '../../uuid-
|
|
7
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
5
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
6
|
+
import { u as uuidv4 } from '../../uuid-d9677664.js';
|
|
7
|
+
import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { U as USER_MENTION_TEMP_CHAR, M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-
|
|
10
|
-
import { M as MessageInputKeys } from '../../const-
|
|
9
|
+
import { U as USER_MENTION_TEMP_CHAR, M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-04252643.js';
|
|
10
|
+
import { M as MessageInputKeys } from '../../const-03bf58be.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../stringSet-
|
|
13
|
-
import '../../tslib.es6-
|
|
12
|
+
import '../../stringSet-8e444561.js';
|
|
13
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
14
14
|
import '../../ui/ImageRenderer.js';
|
|
15
|
-
import '../../index-
|
|
16
|
-
import '../../UserProfileContext-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../topics-
|
|
19
|
-
import '../../index-
|
|
15
|
+
import '../../index-4a97d671.js';
|
|
16
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
17
|
+
import '../../index-0fa2c54a.js';
|
|
18
|
+
import '../../topics-48ad3f74.js';
|
|
19
|
+
import '../../index-40e8f483.js';
|
|
20
20
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
21
|
-
import '../../_rollupPluginBabelHelpers-
|
|
22
|
-
import '../../compareIds-
|
|
21
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
22
|
+
import '../../compareIds-1f802ce2.js';
|
|
23
23
|
import '@sendbird/chat/groupChannel';
|
|
24
24
|
import '@sendbird/chat/message';
|
|
25
25
|
import '../../ui/ContextMenu.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React__default, { useContext, useState, useEffect } from 'react';
|
|
2
2
|
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
3
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
4
|
-
import { u as uuidv4 } from '../../uuid-
|
|
5
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
6
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
3
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
4
|
+
import { u as uuidv4 } from '../../uuid-d9677664.js';
|
|
5
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-416bd4e9.js';
|
|
6
|
+
import { u as useChannelContext } from '../../ChannelProvider-507ec95c.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import '../../stringSet-
|
|
9
|
-
import '../../index-
|
|
8
|
+
import '../../stringSet-8e444561.js';
|
|
9
|
+
import '../../index-4a97d671.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../../UserProfileContext-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../topics-
|
|
14
|
-
import '../../index-
|
|
15
|
-
import '../../tslib.es6-
|
|
11
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
12
|
+
import '../../index-0fa2c54a.js';
|
|
13
|
+
import '../../topics-48ad3f74.js';
|
|
14
|
+
import '../../index-40e8f483.js';
|
|
15
|
+
import '../../tslib.es6-ca5fed0d.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/message';
|
|
21
21
|
import '../../ui/ContextMenu.js';
|
|
22
22
|
import 'react-dom';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
3
|
+
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-416bd4e9.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
|
-
import '../../stringSet-
|
|
6
|
-
import '../../index-
|
|
5
|
+
import '../../stringSet-8e444561.js';
|
|
6
|
+
import '../../index-4a97d671.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
|
|
9
9
|
var UnreadCount = function (props) {
|
package/Channel/context.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../UserProfileContext-
|
|
2
|
+
import '../UserProfileContext-ce0aa8c5.js';
|
|
3
3
|
import '../useSendbirdStateContext.js';
|
|
4
|
-
export { C as ChannelProvider, u as useChannelContext } from '../ChannelProvider-
|
|
4
|
+
export { C as ChannelProvider, u as useChannelContext } from '../ChannelProvider-507ec95c.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import '../withSendbird.js';
|
|
7
|
-
import '../_rollupPluginBabelHelpers-
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../topics-
|
|
11
|
-
import '../index-
|
|
12
|
-
import '../tslib.es6-
|
|
7
|
+
import '../_rollupPluginBabelHelpers-9a43324e.js';
|
|
8
|
+
import '../index-0fa2c54a.js';
|
|
9
|
+
import '../index-4a97d671.js';
|
|
10
|
+
import '../topics-48ad3f74.js';
|
|
11
|
+
import '../index-40e8f483.js';
|
|
12
|
+
import '../tslib.es6-ca5fed0d.js';
|
|
13
13
|
import '../utils/message/getOutgoingMessageState.js';
|
|
14
|
-
import '../compareIds-
|
|
15
|
-
import '../const-
|
|
14
|
+
import '../compareIds-1f802ce2.js';
|
|
15
|
+
import '../const-04252643.js';
|
|
16
16
|
import '@sendbird/chat/groupChannel';
|
|
17
|
-
import '../uuid-
|
|
17
|
+
import '../uuid-d9677664.js';
|
|
18
18
|
import '@sendbird/chat/message';
|
|
19
19
|
import '../ui/ContextMenu.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import '../ui/SortByRow.js';
|
|
22
|
-
import '../index-
|
|
23
|
-
import '../stringSet-
|
|
22
|
+
import '../index-416bd4e9.js';
|
|
23
|
+
import '../stringSet-8e444561.js';
|
|
24
24
|
import '../ui/ReactionButton.js';
|
|
25
25
|
import '../ui/ImageRenderer.js';
|
|
26
26
|
import '../ui/Icon.js';
|
package/Channel.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { C as ChannelProvider } from './ChannelProvider-
|
|
2
|
+
import { C as ChannelProvider } from './ChannelProvider-507ec95c.js';
|
|
3
3
|
import ChannelUI from './Channel/components/ChannelUI.js';
|
|
4
|
-
import './UserProfileContext-
|
|
4
|
+
import './UserProfileContext-ce0aa8c5.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import './useSendbirdStateContext.js';
|
|
7
7
|
import './withSendbird.js';
|
|
8
|
-
import './_rollupPluginBabelHelpers-
|
|
9
|
-
import './index-
|
|
10
|
-
import './index-
|
|
11
|
-
import './topics-
|
|
12
|
-
import './index-
|
|
13
|
-
import './tslib.es6-
|
|
8
|
+
import './_rollupPluginBabelHelpers-9a43324e.js';
|
|
9
|
+
import './index-0fa2c54a.js';
|
|
10
|
+
import './index-4a97d671.js';
|
|
11
|
+
import './topics-48ad3f74.js';
|
|
12
|
+
import './index-40e8f483.js';
|
|
13
|
+
import './tslib.es6-ca5fed0d.js';
|
|
14
14
|
import './utils/message/getOutgoingMessageState.js';
|
|
15
|
-
import './compareIds-
|
|
16
|
-
import './const-
|
|
15
|
+
import './compareIds-1f802ce2.js';
|
|
16
|
+
import './const-04252643.js';
|
|
17
17
|
import '@sendbird/chat/groupChannel';
|
|
18
|
-
import './uuid-
|
|
18
|
+
import './uuid-d9677664.js';
|
|
19
19
|
import '@sendbird/chat/message';
|
|
20
20
|
import './ui/ContextMenu.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import './ui/SortByRow.js';
|
|
23
|
-
import './index-
|
|
24
|
-
import './stringSet-
|
|
23
|
+
import './index-416bd4e9.js';
|
|
24
|
+
import './stringSet-8e444561.js';
|
|
25
25
|
import './ui/ReactionButton.js';
|
|
26
26
|
import './ui/ImageRenderer.js';
|
|
27
27
|
import './ui/Icon.js';
|
|
28
|
-
import './index-
|
|
29
|
-
import './LocalizationContext-
|
|
28
|
+
import './index-1d61d4d0.js';
|
|
29
|
+
import './LocalizationContext-8bec1997.js';
|
|
30
30
|
import './ui/Loader.js';
|
|
31
31
|
import './ui/ConnectionStatus.js';
|
|
32
32
|
import './Channel/components/ChannelHeader.js';
|
|
33
33
|
import './ui/IconButton.js';
|
|
34
34
|
import './ui/ChannelAvatar.js';
|
|
35
35
|
import './ui/Avatar.js';
|
|
36
|
-
import './utils-
|
|
36
|
+
import './utils-eee41d99.js';
|
|
37
37
|
import './Channel/components/MessageList.js';
|
|
38
|
-
import './index-
|
|
38
|
+
import './index-ea167da5.js';
|
|
39
39
|
import './Channel/components/Message.js';
|
|
40
40
|
import './Channel/components/SuggestedMentionList.js';
|
|
41
|
-
import './const-
|
|
41
|
+
import './const-03bf58be.js';
|
|
42
42
|
import './ui/DateSeparator.js';
|
|
43
|
-
import './color-
|
|
43
|
+
import './color-fdffa928.js';
|
|
44
44
|
import './ui/MessageInput.js';
|
|
45
45
|
import 'react-dom/server';
|
|
46
46
|
import './ui/Button.js';
|
|
@@ -48,7 +48,7 @@ import './ui/MentionUserLabel.js';
|
|
|
48
48
|
import './ui/MessageContent.js';
|
|
49
49
|
import './ui/UserProfile.js';
|
|
50
50
|
import './sendbirdSelectors.js';
|
|
51
|
-
import './utils-
|
|
51
|
+
import './utils-df07d074.js';
|
|
52
52
|
import './ui/MessageStatus.js';
|
|
53
53
|
import './ui/MessageItemMenu.js';
|
|
54
54
|
import './ui/MessageItemReactionMenu.js';
|
|
@@ -68,7 +68,7 @@ import './ui/OGMessageItemBody.js';
|
|
|
68
68
|
import './ui/UnknownMessageItemBody.js';
|
|
69
69
|
import './ui/QuoteMessage.js';
|
|
70
70
|
import './Channel/components/FileViewer.js';
|
|
71
|
-
import './index-
|
|
71
|
+
import './index-876a278e.js';
|
|
72
72
|
import './Channel/components/RemoveMessageModal.js';
|
|
73
73
|
import './ui/Modal.js';
|
|
74
74
|
import './Channel/components/TypingIndicator.js';
|
|
@@ -93,7 +93,8 @@ var Channel = function (props) {
|
|
|
93
93
|
replyType: props === null || props === void 0 ? void 0 : props.replyType,
|
|
94
94
|
queries: props === null || props === void 0 ? void 0 : props.queries,
|
|
95
95
|
renderUserProfile: props === null || props === void 0 ? void 0 : props.renderUserProfile,
|
|
96
|
-
disableUserProfile: props === null || props === void 0 ? void 0 : props.disableUserProfile
|
|
96
|
+
disableUserProfile: props === null || props === void 0 ? void 0 : props.disableUserProfile,
|
|
97
|
+
disableMarkAsRead: props === null || props === void 0 ? void 0 : props.disableMarkAsRead
|
|
97
98
|
}, /*#__PURE__*/React__default.createElement(ChannelUI, {
|
|
98
99
|
renderPlaceholderLoader: props === null || props === void 0 ? void 0 : props.renderPlaceholderLoader,
|
|
99
100
|
renderPlaceholderInvalid: props === null || props === void 0 ? void 0 : props.renderPlaceholderInvalid,
|
package/Channel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.js","sources":["../src/smart-components/Channel/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport {\n ChannelProvider,\n ChannelContextProps,\n} from './context/ChannelProvider';\n\nimport ChannelUI, { ChannelUIProps } from './components/ChannelUI';\nexport interface ChannelProps extends ChannelContextProps, ChannelUIProps {\n}\n\nconst Channel: React.FC<ChannelProps> = (props: ChannelProps) => {\n return (\n <ChannelProvider\n channelUrl={props?.channelUrl}\n isReactionEnabled={props?.isReactionEnabled}\n isMessageGroupingEnabled={props?.isMessageGroupingEnabled}\n showSearchIcon={props?.showSearchIcon}\n highlightedMessage={props?.highlightedMessage}\n startingPoint={props?.startingPoint}\n onBeforeSendUserMessage={props?.onBeforeSendUserMessage}\n onBeforeSendFileMessage={props?.onBeforeSendFileMessage}\n onBeforeUpdateUserMessage={props?.onBeforeUpdateUserMessage}\n onChatHeaderActionClick={props?.onChatHeaderActionClick}\n onSearchClick={props?.onSearchClick}\n replyType={props?.replyType}\n queries={props?.queries}\n renderUserProfile={props?.renderUserProfile}\n disableUserProfile={props?.disableUserProfile}\n >\n <ChannelUI\n renderPlaceholderLoader={props?.renderPlaceholderLoader}\n renderPlaceholderInvalid={props?.renderPlaceholderInvalid}\n renderPlaceholderEmpty={props?.renderPlaceholderEmpty}\n renderChannelHeader={props?.renderChannelHeader}\n renderMessage={props?.renderMessage}\n renderMessageInput={props?.renderMessageInput}\n renderTypingIndicator={props?.renderTypingIndicator}\n renderCustomSeparator={props?.renderCustomSeparator}\n />\n </ChannelProvider>\n );\n};\n\nexport default Channel;\n"],"names":["Channel","props","React","channelUrl","isReactionEnabled","isMessageGroupingEnabled","showSearchIcon","highlightedMessage","startingPoint","onBeforeSendUserMessage","onBeforeSendFileMessage","onBeforeUpdateUserMessage","onChatHeaderActionClick","onSearchClick","replyType","queries","renderUserProfile","disableUserProfile","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,OAAO,GAA2B,UAACC,KAAD,EAAoB;AAC1D,EAAA,oBACEC,6BAAC,eAAD,EAAA;AACE,IAAA,UAAU,EAAED,KAAK,
|
|
1
|
+
{"version":3,"file":"Channel.js","sources":["../src/smart-components/Channel/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport {\n ChannelProvider,\n ChannelContextProps,\n} from './context/ChannelProvider';\n\nimport ChannelUI, { ChannelUIProps } from './components/ChannelUI';\nexport interface ChannelProps extends ChannelContextProps, ChannelUIProps {\n}\n\nconst Channel: React.FC<ChannelProps> = (props: ChannelProps) => {\n return (\n <ChannelProvider\n channelUrl={props?.channelUrl}\n isReactionEnabled={props?.isReactionEnabled}\n isMessageGroupingEnabled={props?.isMessageGroupingEnabled}\n showSearchIcon={props?.showSearchIcon}\n highlightedMessage={props?.highlightedMessage}\n startingPoint={props?.startingPoint}\n onBeforeSendUserMessage={props?.onBeforeSendUserMessage}\n onBeforeSendFileMessage={props?.onBeforeSendFileMessage}\n onBeforeUpdateUserMessage={props?.onBeforeUpdateUserMessage}\n onChatHeaderActionClick={props?.onChatHeaderActionClick}\n onSearchClick={props?.onSearchClick}\n replyType={props?.replyType}\n queries={props?.queries}\n renderUserProfile={props?.renderUserProfile}\n disableUserProfile={props?.disableUserProfile}\n disableMarkAsRead={props?.disableMarkAsRead}\n >\n <ChannelUI\n renderPlaceholderLoader={props?.renderPlaceholderLoader}\n renderPlaceholderInvalid={props?.renderPlaceholderInvalid}\n renderPlaceholderEmpty={props?.renderPlaceholderEmpty}\n renderChannelHeader={props?.renderChannelHeader}\n renderMessage={props?.renderMessage}\n renderMessageInput={props?.renderMessageInput}\n renderTypingIndicator={props?.renderTypingIndicator}\n renderCustomSeparator={props?.renderCustomSeparator}\n />\n </ChannelProvider>\n );\n};\n\nexport default Channel;\n"],"names":["Channel","props","React","channelUrl","isReactionEnabled","isMessageGroupingEnabled","showSearchIcon","highlightedMessage","startingPoint","onBeforeSendUserMessage","onBeforeSendFileMessage","onBeforeUpdateUserMessage","onChatHeaderActionClick","onSearchClick","replyType","queries","renderUserProfile","disableUserProfile","disableMarkAsRead","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,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K,KAAA,CAAL,GAAAA,KAAK,CAAEsB,aALxB;AAME,IAAA,kBAAkB,EAAEtB,KAAK,SAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEuB,kBAN7B;AAOE,IAAA,qBAAqB,EAAEvB,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEwB,qBAPhC;AAQE,IAAA,qBAAqB,EAAExB,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEyB,qBAAAA;AARhC,GAAA,CAlBF,CADF,CAAA;AA+BD;;;;"}
|
|
@@ -3,35 +3,35 @@ import IconButton from '../../ui/IconButton.js';
|
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import CreateChannel from '../../CreateChannel.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
|
-
import '../../tslib.es6-
|
|
6
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
9
|
-
import '../../CreateChannelProvider-
|
|
9
|
+
import '../../CreateChannelProvider-7c49ffa6.js';
|
|
10
10
|
import '../../sendbirdSelectors.js';
|
|
11
|
-
import '../../topics-
|
|
12
|
-
import '../../utils-
|
|
11
|
+
import '../../topics-48ad3f74.js';
|
|
12
|
+
import '../../utils-df07d074.js';
|
|
13
13
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
14
|
-
import '../../LocalizationContext-
|
|
15
|
-
import '../../stringSet-
|
|
16
|
-
import '../../index-
|
|
14
|
+
import '../../LocalizationContext-8bec1997.js';
|
|
15
|
+
import '../../stringSet-8e444561.js';
|
|
16
|
+
import '../../index-4a97d671.js';
|
|
17
17
|
import '../../ui/Modal.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import '../../index-
|
|
19
|
+
import '../../index-876a278e.js';
|
|
20
20
|
import '../../ui/Button.js';
|
|
21
|
-
import '../../index-
|
|
21
|
+
import '../../index-416bd4e9.js';
|
|
22
22
|
import '../../ui/UserListItem.js';
|
|
23
|
-
import '../../UserProfileContext-
|
|
23
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
24
24
|
import '../../ui/Avatar.js';
|
|
25
25
|
import '../../ui/ImageRenderer.js';
|
|
26
|
-
import '../../uuid-
|
|
26
|
+
import '../../uuid-d9677664.js';
|
|
27
27
|
import '../../ui/MutedAvatarOverlay.js';
|
|
28
28
|
import '../../ui/Checkbox.js';
|
|
29
29
|
import '../../ui/UserProfile.js';
|
|
30
30
|
import '../../withSendbird.js';
|
|
31
|
-
import '../../_rollupPluginBabelHelpers-
|
|
31
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
32
32
|
import '../../ui/ContextMenu.js';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
|
-
import '../../index-
|
|
34
|
+
import '../../index-40e8f483.js';
|
|
35
35
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
36
36
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
37
37
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8bec1997.js';
|
|
3
3
|
import useSendbirdStateContext from '../../useSendbirdStateContext.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 IconButton from '../../ui/IconButton.js';
|
|
6
6
|
import Avatar from '../../ui/Avatar.js';
|
|
7
|
-
import '../../stringSet-
|
|
8
|
-
import '../../index-
|
|
7
|
+
import '../../stringSet-8e444561.js';
|
|
8
|
+
import '../../index-4a97d671.js';
|
|
9
9
|
import '../../withSendbird.js';
|
|
10
|
-
import '../../_rollupPluginBabelHelpers-
|
|
10
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../tslib.es6-
|
|
12
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
13
13
|
import '../../ui/ImageRenderer.js';
|
|
14
14
|
import '../../ui/Icon.js';
|
|
15
|
-
import '../../uuid-
|
|
15
|
+
import '../../uuid-d9677664.js';
|
|
16
16
|
|
|
17
17
|
var ChannelListHeader = function (_a) {
|
|
18
18
|
var _b;
|
|
@@ -3,65 +3,65 @@ import ChannelListHeader from './ChannelListHeader.js';
|
|
|
3
3
|
import { AddChannel } from './AddChannel.js';
|
|
4
4
|
import ChannelPreview from './ChannelPreview.js';
|
|
5
5
|
import ChannelPreviewAction from './ChannelPreviewAction.js';
|
|
6
|
-
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-
|
|
6
|
+
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-000aaa30.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import EditProfile from '../../EditUserProfile.js';
|
|
9
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
10
|
-
import '../../LocalizationContext-
|
|
11
|
-
import '../../stringSet-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../index-
|
|
9
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-1d61d4d0.js';
|
|
10
|
+
import '../../LocalizationContext-8bec1997.js';
|
|
11
|
+
import '../../stringSet-8e444561.js';
|
|
12
|
+
import '../../index-4a97d671.js';
|
|
13
|
+
import '../../index-416bd4e9.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import '../../ui/IconButton.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
17
17
|
import '../../ui/Avatar.js';
|
|
18
18
|
import '../../ui/ImageRenderer.js';
|
|
19
19
|
import '../../ui/Icon.js';
|
|
20
|
-
import '../../uuid-
|
|
20
|
+
import '../../uuid-d9677664.js';
|
|
21
21
|
import '../../CreateChannel.js';
|
|
22
22
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
23
|
-
import '../../CreateChannelProvider-
|
|
23
|
+
import '../../CreateChannelProvider-7c49ffa6.js';
|
|
24
24
|
import '../../sendbirdSelectors.js';
|
|
25
|
-
import '../../topics-
|
|
26
|
-
import '../../utils-
|
|
25
|
+
import '../../topics-48ad3f74.js';
|
|
26
|
+
import '../../utils-df07d074.js';
|
|
27
27
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
28
28
|
import '../../ui/Modal.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
-
import '../../index-
|
|
30
|
+
import '../../index-876a278e.js';
|
|
31
31
|
import '../../ui/Button.js';
|
|
32
32
|
import '../../ui/UserListItem.js';
|
|
33
|
-
import '../../UserProfileContext-
|
|
33
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
34
34
|
import '../../ui/MutedAvatarOverlay.js';
|
|
35
35
|
import '../../ui/Checkbox.js';
|
|
36
36
|
import '../../ui/UserProfile.js';
|
|
37
37
|
import '../../withSendbird.js';
|
|
38
|
-
import '../../_rollupPluginBabelHelpers-
|
|
38
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
39
39
|
import '../../ui/ContextMenu.js';
|
|
40
40
|
import '../../ui/SortByRow.js';
|
|
41
|
-
import '../../index-
|
|
41
|
+
import '../../index-40e8f483.js';
|
|
42
42
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
43
43
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
44
44
|
import '../../ui/ChannelAvatar.js';
|
|
45
|
-
import '../../utils-
|
|
45
|
+
import '../../utils-eee41d99.js';
|
|
46
46
|
import '../../ui/Badge.js';
|
|
47
|
-
import '../../index-
|
|
48
|
-
import '../../index-
|
|
49
|
-
import '../../index-
|
|
47
|
+
import '../../index-fc81a39d.js';
|
|
48
|
+
import '../../index-ea167da5.js';
|
|
49
|
+
import '../../index-0fa2c54a.js';
|
|
50
50
|
import '../../ui/MentionUserLabel.js';
|
|
51
51
|
import '../../Channel/components/TypingIndicator.js';
|
|
52
52
|
import '@sendbird/chat/groupChannel';
|
|
53
|
-
import '../../ChannelProvider-
|
|
54
|
-
import '../../compareIds-
|
|
55
|
-
import '../../const-
|
|
53
|
+
import '../../ChannelProvider-507ec95c.js';
|
|
54
|
+
import '../../compareIds-1f802ce2.js';
|
|
55
|
+
import '../../const-04252643.js';
|
|
56
56
|
import '@sendbird/chat/message';
|
|
57
57
|
import '../../ui/ReactionButton.js';
|
|
58
58
|
import '../../ui/MessageStatus.js';
|
|
59
59
|
import '../../ui/Loader.js';
|
|
60
|
-
import '../../index-
|
|
60
|
+
import '../../index-f4df58ee.js';
|
|
61
61
|
import '../../ui/Input.js';
|
|
62
62
|
import '../../ui/TextButton.js';
|
|
63
|
-
import '../../color-
|
|
64
|
-
import '../../actionTypes-
|
|
63
|
+
import '../../color-fdffa928.js';
|
|
64
|
+
import '../../actionTypes-162b5a41.js';
|
|
65
65
|
|
|
66
66
|
var DELIVERY_RECIPT = 'delivery_receipt';
|
|
67
67
|
|
|
@@ -2,35 +2,35 @@ import React__default from 'react';
|
|
|
2
2
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
3
3
|
import Badge from '../../ui/Badge.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
|
-
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
6
|
-
import { i as isToday, a as isYesterday, f as formatRelative } from '../../index-
|
|
7
|
-
import { f as format } from '../../index-
|
|
8
|
-
import { t as truncateString, d as isEditedMessage } from '../../index-
|
|
5
|
+
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-416bd4e9.js';
|
|
6
|
+
import { i as isToday, a as isYesterday, f as formatRelative } from '../../index-fc81a39d.js';
|
|
7
|
+
import { f as format } from '../../index-0fa2c54a.js';
|
|
8
|
+
import { t as truncateString, d as isEditedMessage } from '../../index-40e8f483.js';
|
|
9
9
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
10
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
10
|
+
import { u as useLocalization } from '../../LocalizationContext-8bec1997.js';
|
|
11
11
|
import MentionUserLabel from '../../ui/MentionUserLabel.js';
|
|
12
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
12
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-000aaa30.js';
|
|
13
13
|
import { TypingIndicatorText } from '../../Channel/components/TypingIndicator.js';
|
|
14
14
|
import MessageStatus from '../../ui/MessageStatus.js';
|
|
15
15
|
import '../../ui/Avatar.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../tslib.es6-ca5fed0d.js';
|
|
17
17
|
import '../../ui/ImageRenderer.js';
|
|
18
|
-
import '../../uuid-
|
|
19
|
-
import '../../utils-
|
|
18
|
+
import '../../uuid-d9677664.js';
|
|
19
|
+
import '../../utils-eee41d99.js';
|
|
20
20
|
import 'prop-types';
|
|
21
|
-
import '../../stringSet-
|
|
22
|
-
import '../../index-
|
|
23
|
-
import '../../index-
|
|
21
|
+
import '../../stringSet-8e444561.js';
|
|
22
|
+
import '../../index-ea167da5.js';
|
|
23
|
+
import '../../index-4a97d671.js';
|
|
24
24
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
25
25
|
import '../../withSendbird.js';
|
|
26
|
-
import '../../_rollupPluginBabelHelpers-
|
|
26
|
+
import '../../_rollupPluginBabelHelpers-9a43324e.js';
|
|
27
27
|
import '@sendbird/chat/groupChannel';
|
|
28
|
-
import '../../topics-
|
|
29
|
-
import '../../utils-
|
|
30
|
-
import '../../UserProfileContext-
|
|
31
|
-
import '../../ChannelProvider-
|
|
32
|
-
import '../../compareIds-
|
|
33
|
-
import '../../const-
|
|
28
|
+
import '../../topics-48ad3f74.js';
|
|
29
|
+
import '../../utils-df07d074.js';
|
|
30
|
+
import '../../UserProfileContext-ce0aa8c5.js';
|
|
31
|
+
import '../../ChannelProvider-507ec95c.js';
|
|
32
|
+
import '../../compareIds-1f802ce2.js';
|
|
33
|
+
import '../../const-04252643.js';
|
|
34
34
|
import '@sendbird/chat/message';
|
|
35
35
|
import '../../ui/ContextMenu.js';
|
|
36
36
|
import 'react-dom';
|