@sendbird/uikit-react 3.2.3 → 3.2.4-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 +11 -0
- package/Channel/components/ChannelHeader.js +15 -15
- package/Channel/components/ChannelUI.js +31 -22
- 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 +20 -20
- 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 +22 -21
- 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 +33 -31
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- 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-ae931f27.js → ChannelListProvider-a75dbbac.js} +9 -9
- package/ChannelListProvider-a75dbbac.js.map +1 -0
- package/{ChannelProvider-06a52df4.js → ChannelProvider-163810e1.js} +10 -10
- package/ChannelProvider-163810e1.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-eb0e903a.js → CreateChannelProvider-0f16d456.js} +1 -1
- package/{CreateChannelProvider-eb0e903a.js.map → CreateChannelProvider-0f16d456.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-a21fd99c.js → LocalizationContext-7019cc93.js} +3 -3
- package/{LocalizationContext-a21fd99c.js.map → LocalizationContext-7019cc93.js.map} +1 -1
- package/{MemberList-2ad6bbe2.js → MemberList-ecab2f74.js} +5 -5
- package/{MemberList-2ad6bbe2.js.map → MemberList-ecab2f74.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-b4a40528.js → OpenChannelListProvider-f2a54f51.js} +3 -3
- package/{OpenChannelListProvider-b4a40528.js.map → OpenChannelListProvider-f2a54f51.js.map} +1 -1
- package/{OpenChannelProvider-41409e71.js → OpenChannelProvider-dd33e532.js} +7 -7
- package/{OpenChannelProvider-41409e71.js.map → OpenChannelProvider-dd33e532.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-804d6e7c.js → UserProfileContext-8a4983f9.js} +1 -1
- package/{UserProfileContext-804d6e7c.js.map → UserProfileContext-8a4983f9.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-3be2ec67.js → _rollupPluginBabelHelpers-e993e6d6.js} +1 -1
- package/_rollupPluginBabelHelpers-e993e6d6.js.map +1 -0
- package/{actionTypes-61259781.js → actionTypes-e5c40c47.js} +1 -1
- package/{actionTypes-61259781.js.map → actionTypes-e5c40c47.js.map} +1 -1
- package/cjs/App.js +28 -28
- package/cjs/Channel/components/ChannelHeader.js +15 -15
- package/cjs/Channel/components/ChannelUI.js +31 -22
- 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 +20 -20
- 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 +22 -21
- 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 +33 -31
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- 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-9fe89939.js → ChannelListProvider-e780ceda.js} +9 -9
- package/cjs/ChannelListProvider-e780ceda.js.map +1 -0
- package/cjs/{ChannelProvider-abb3b1ea.js → ChannelProvider-dfaab83f.js} +10 -10
- package/cjs/ChannelProvider-dfaab83f.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-e2d1cd27.js → CreateChannelProvider-cb6309db.js} +1 -1
- package/cjs/{CreateChannelProvider-e2d1cd27.js.map → CreateChannelProvider-cb6309db.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-af5d4a04.js → LocalizationContext-c3f7c1f5.js} +3 -3
- package/cjs/{LocalizationContext-af5d4a04.js.map → LocalizationContext-c3f7c1f5.js.map} +1 -1
- package/cjs/{MemberList-0f7ad86b.js → MemberList-b1d570b1.js} +5 -5
- package/cjs/{MemberList-0f7ad86b.js.map → MemberList-b1d570b1.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-bc4bc7c4.js → OpenChannelListProvider-9326f80c.js} +3 -3
- package/cjs/{OpenChannelListProvider-bc4bc7c4.js.map → OpenChannelListProvider-9326f80c.js.map} +1 -1
- package/cjs/{OpenChannelProvider-b82bca34.js → OpenChannelProvider-71dc8fa1.js} +7 -7
- package/cjs/{OpenChannelProvider-b82bca34.js.map → OpenChannelProvider-71dc8fa1.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-f47b4181.js → UserProfileContext-d0d2dec6.js} +1 -1
- package/cjs/{UserProfileContext-f47b4181.js.map → UserProfileContext-d0d2dec6.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-6e797acf.js → _rollupPluginBabelHelpers-9ecfa1a6.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-9ecfa1a6.js.map +1 -0
- package/cjs/{actionTypes-ce07931d.js → actionTypes-932bd404.js} +1 -1
- package/cjs/{actionTypes-ce07931d.js.map → actionTypes-932bd404.js.map} +1 -1
- package/cjs/{color-4125a5d0.js → color-d2f34e1f.js} +1 -1
- package/cjs/{color-4125a5d0.js.map → color-d2f34e1f.js.map} +1 -1
- package/cjs/{compareIds-630195c8.js → compareIds-b345156f.js} +1 -1
- package/cjs/{compareIds-630195c8.js.map → compareIds-b345156f.js.map} +1 -1
- package/cjs/{const-f9f64469.js → const-a1b2513f.js} +1 -1
- package/cjs/{const-f9f64469.js.map → const-a1b2513f.js.map} +1 -1
- package/cjs/{const-69e6f6f0.js → const-fc870194.js} +1 -1
- package/cjs/{const-69e6f6f0.js.map → const-fc870194.js.map} +1 -1
- package/cjs/{context-729998fc.js → context-30aa59dc.js} +2 -2
- package/cjs/{context-729998fc.js.map → context-30aa59dc.js.map} +1 -1
- package/cjs/{index-2ea00738.js → index-027eb960.js} +4 -4
- package/cjs/{index-2ea00738.js.map → index-027eb960.js.map} +1 -1
- package/cjs/{index-9343c720.js → index-08b90543.js} +2 -2
- package/cjs/{index-9343c720.js.map → index-08b90543.js.map} +1 -1
- package/cjs/{index-ac797cec.js → index-1a1a453d.js} +2 -2
- package/cjs/{index-ac797cec.js.map → index-1a1a453d.js.map} +1 -1
- package/cjs/{index-b0859463.js → index-24a87952.js} +5 -5
- package/cjs/{index-b0859463.js.map → index-24a87952.js.map} +1 -1
- package/cjs/{index-9c2ec644.js → index-285e8149.js} +4 -4
- package/cjs/{index-9c2ec644.js.map → index-285e8149.js.map} +1 -1
- package/cjs/{index-44c80e24.js → index-3aa6cdcb.js} +2 -2
- package/cjs/{index-44c80e24.js.map → index-3aa6cdcb.js.map} +1 -1
- package/cjs/{index-2deaee74.js → index-68c0a985.js} +2 -2
- package/cjs/{index-2deaee74.js.map → index-68c0a985.js.map} +1 -1
- package/cjs/{index-afac22db.js → index-b7f6bdff.js} +1 -1
- package/cjs/{index-afac22db.js.map → index-b7f6bdff.js.map} +1 -1
- package/cjs/{index-faf7050e.js → index-c59c005e.js} +1 -1
- package/cjs/{index-faf7050e.js.map → index-c59c005e.js.map} +1 -1
- package/cjs/{index-73b08dbd.js → index-f8de65ab.js} +7 -7
- package/cjs/{index-73b08dbd.js.map → index-f8de65ab.js.map} +1 -1
- package/cjs/index.js +32 -32
- package/cjs/{openChannelUtils-fd2a2d40.js → openChannelUtils-963df239.js} +1 -1
- package/cjs/{openChannelUtils-fd2a2d40.js.map → openChannelUtils-963df239.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-1cf0be09.js → stringSet-310a89c5.js} +1 -1
- package/cjs/{stringSet-1cf0be09.js.map → stringSet-310a89c5.js.map} +1 -1
- package/cjs/{topics-75ad844e.js → topics-2c7a2446.js} +1 -1
- package/cjs/{topics-75ad844e.js.map → topics-2c7a2446.js.map} +1 -1
- package/cjs/{tslib.es6-cbf53b9b.js → tslib.es6-9cc2c25f.js} +1 -1
- package/cjs/{tslib.es6-cbf53b9b.js.map → tslib.es6-9cc2c25f.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-cff8ef3c.js → utils-a8eef97b.js} +1 -1
- package/cjs/{utils-cff8ef3c.js.map → utils-a8eef97b.js.map} +1 -1
- package/cjs/{utils-e445a3a5.js → utils-ae9878f0.js} +1 -1
- package/cjs/{utils-e445a3a5.js.map → utils-ae9878f0.js.map} +1 -1
- package/cjs/{utils-ef4ada41.js → utils-b84751c0.js} +1 -1
- package/cjs/{utils-ef4ada41.js.map → utils-b84751c0.js.map} +1 -1
- package/cjs/{uuid-fd1ae281.js → uuid-09a36295.js} +1 -1
- package/cjs/{uuid-fd1ae281.js.map → uuid-09a36295.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-e92a1ce5.js → color-aae331b0.js} +1 -1
- package/{color-e92a1ce5.js.map → color-aae331b0.js.map} +1 -1
- package/{compareIds-0e39568a.js → compareIds-a42407da.js} +1 -1
- package/{compareIds-0e39568a.js.map → compareIds-a42407da.js.map} +1 -1
- package/{const-b50ee378.js → const-787f39b8.js} +1 -1
- package/{const-b50ee378.js.map → const-787f39b8.js.map} +1 -1
- package/{const-05b7e2ee.js → const-da82c96f.js} +1 -1
- package/{const-05b7e2ee.js.map → const-da82c96f.js.map} +1 -1
- package/{context-cac056b6.js → context-064f5915.js} +2 -2
- package/{context-cac056b6.js.map → context-064f5915.js.map} +1 -1
- package/{index-82f39d94.js → index-0821db0a.js} +5 -5
- package/{index-82f39d94.js.map → index-0821db0a.js.map} +1 -1
- package/{index-c35128dd.js → index-0b69b0be.js} +2 -2
- package/{index-c35128dd.js.map → index-0b69b0be.js.map} +1 -1
- package/{index-58580f28.js → index-189ad5aa.js} +2 -2
- package/{index-58580f28.js.map → index-189ad5aa.js.map} +1 -1
- package/{index-575e441e.js → index-4593163a.js} +4 -4
- package/{index-575e441e.js.map → index-4593163a.js.map} +1 -1
- package/{index-2f7dc394.js → index-69265f49.js} +1 -1
- package/{index-2f7dc394.js.map → index-69265f49.js.map} +1 -1
- package/{index-4572759d.js → index-723c677a.js} +2 -2
- package/{index-4572759d.js.map → index-723c677a.js.map} +1 -1
- package/{index-218499dd.js → index-8389cc18.js} +7 -7
- package/{index-218499dd.js.map → index-8389cc18.js.map} +1 -1
- package/{index-acdeddcd.js → index-83f73f08.js} +1 -1
- package/{index-acdeddcd.js.map → index-83f73f08.js.map} +1 -1
- package/{index-4544729b.js → index-8de3da53.js} +4 -4
- package/{index-4544729b.js.map → index-8de3da53.js.map} +1 -1
- package/{index-4e0f3666.js → index-b31e8da6.js} +2 -2
- package/{index-4e0f3666.js.map → index-b31e8da6.js.map} +1 -1
- package/index.d.ts +3 -2
- package/index.js +32 -32
- package/{openChannelUtils-141e14ca.js → openChannelUtils-f0554c8e.js} +1 -1
- package/{openChannelUtils-141e14ca.js.map → openChannelUtils-f0554c8e.js.map} +1 -1
- package/package.json +2 -2
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-97b371bf.js → stringSet-4e0b0146.js} +1 -1
- package/{stringSet-97b371bf.js.map → stringSet-4e0b0146.js.map} +1 -1
- package/{topics-0034d31d.js → topics-cc398b5e.js} +1 -1
- package/{topics-0034d31d.js.map → topics-cc398b5e.js.map} +1 -1
- package/{tslib.es6-7933cbb3.js → tslib.es6-abe3d36a.js} +1 -1
- package/{tslib.es6-7933cbb3.js.map → tslib.es6-abe3d36a.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-be67dd33.js → utils-1728c207.js} +1 -1
- package/{utils-be67dd33.js.map → utils-1728c207.js.map} +1 -1
- package/{utils-2252e970.js → utils-ad9c9713.js} +1 -1
- package/{utils-2252e970.js.map → utils-ad9c9713.js.map} +1 -1
- package/{utils-b95c3ade.js → utils-d8062a8d.js} +1 -1
- package/{utils-b95c3ade.js.map → utils-d8062a8d.js.map} +1 -1
- package/{uuid-0426c252.js → uuid-5f7195ec.js} +1 -1
- package/{uuid-0426c252.js.map → uuid-5f7195ec.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-ae931f27.js.map +0 -1
- package/ChannelProvider-06a52df4.js.map +0 -1
- package/_rollupPluginBabelHelpers-3be2ec67.js.map +0 -1
- package/cjs/ChannelListProvider-9fe89939.js.map +0 -1
- package/cjs/ChannelProvider-abb3b1ea.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-6e797acf.js.map +0 -1
|
@@ -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-7019cc93.js';
|
|
5
|
+
import { u as useChannelContext } from '../../ChannelProvider-163810e1.js';
|
|
6
6
|
import 'react-dom';
|
|
7
|
-
import '../../index-
|
|
7
|
+
import '../../index-83f73f08.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-abe3d36a.js';
|
|
12
|
+
import '../../index-723c677a.js';
|
|
13
|
+
import '../../stringSet-4e0b0146.js';
|
|
14
|
+
import '../../index-69265f49.js';
|
|
15
|
+
import '../../UserProfileContext-8a4983f9.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-e993e6d6.js';
|
|
19
|
+
import '../../index-189ad5aa.js';
|
|
20
|
+
import '../../topics-cc398b5e.js';
|
|
21
|
+
import '../../index-0b69b0be.js';
|
|
22
22
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
23
|
-
import '../../compareIds-
|
|
24
|
-
import '../../const-
|
|
23
|
+
import '../../compareIds-a42407da.js';
|
|
24
|
+
import '../../const-da82c96f.js';
|
|
25
25
|
import '@sendbird/chat/groupChannel';
|
|
26
|
-
import '../../uuid-
|
|
26
|
+
import '../../uuid-5f7195ec.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-723c677a.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-7019cc93.js';
|
|
6
|
+
import { u as uuidv4 } from '../../uuid-5f7195ec.js';
|
|
7
|
+
import { u as useChannelContext } from '../../ChannelProvider-163810e1.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-da82c96f.js';
|
|
10
|
+
import { M as MessageInputKeys } from '../../const-787f39b8.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../stringSet-
|
|
13
|
-
import '../../tslib.es6-
|
|
12
|
+
import '../../stringSet-4e0b0146.js';
|
|
13
|
+
import '../../tslib.es6-abe3d36a.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-69265f49.js';
|
|
16
|
+
import '../../UserProfileContext-8a4983f9.js';
|
|
17
|
+
import '../../index-189ad5aa.js';
|
|
18
|
+
import '../../topics-cc398b5e.js';
|
|
19
|
+
import '../../index-0b69b0be.js';
|
|
20
20
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
21
|
-
import '../../_rollupPluginBabelHelpers-
|
|
22
|
-
import '../../compareIds-
|
|
21
|
+
import '../../_rollupPluginBabelHelpers-e993e6d6.js';
|
|
22
|
+
import '../../compareIds-a42407da.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-7019cc93.js';
|
|
4
|
+
import { u as uuidv4 } from '../../uuid-5f7195ec.js';
|
|
5
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-723c677a.js';
|
|
6
|
+
import { u as useChannelContext } from '../../ChannelProvider-163810e1.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import '../../stringSet-
|
|
9
|
-
import '../../index-
|
|
8
|
+
import '../../stringSet-4e0b0146.js';
|
|
9
|
+
import '../../index-69265f49.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-8a4983f9.js';
|
|
12
|
+
import '../../index-189ad5aa.js';
|
|
13
|
+
import '../../topics-cc398b5e.js';
|
|
14
|
+
import '../../index-0b69b0be.js';
|
|
15
|
+
import '../../tslib.es6-abe3d36a.js';
|
|
16
16
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
17
|
-
import '../../_rollupPluginBabelHelpers-
|
|
18
|
-
import '../../compareIds-
|
|
19
|
-
import '../../const-
|
|
17
|
+
import '../../_rollupPluginBabelHelpers-e993e6d6.js';
|
|
18
|
+
import '../../compareIds-a42407da.js';
|
|
19
|
+
import '../../const-da82c96f.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-7019cc93.js';
|
|
3
|
+
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-723c677a.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
|
-
import '../../stringSet-
|
|
6
|
-
import '../../index-
|
|
5
|
+
import '../../stringSet-4e0b0146.js';
|
|
6
|
+
import '../../index-69265f49.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-8a4983f9.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-163810e1.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-e993e6d6.js';
|
|
8
|
+
import '../index-189ad5aa.js';
|
|
9
|
+
import '../index-69265f49.js';
|
|
10
|
+
import '../topics-cc398b5e.js';
|
|
11
|
+
import '../index-0b69b0be.js';
|
|
12
|
+
import '../tslib.es6-abe3d36a.js';
|
|
13
13
|
import '../utils/message/getOutgoingMessageState.js';
|
|
14
|
-
import '../compareIds-
|
|
15
|
-
import '../const-
|
|
14
|
+
import '../compareIds-a42407da.js';
|
|
15
|
+
import '../const-da82c96f.js';
|
|
16
16
|
import '@sendbird/chat/groupChannel';
|
|
17
|
-
import '../uuid-
|
|
17
|
+
import '../uuid-5f7195ec.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-723c677a.js';
|
|
23
|
+
import '../stringSet-4e0b0146.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-163810e1.js';
|
|
3
3
|
import ChannelUI from './Channel/components/ChannelUI.js';
|
|
4
|
-
import './UserProfileContext-
|
|
4
|
+
import './UserProfileContext-8a4983f9.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-e993e6d6.js';
|
|
9
|
+
import './index-189ad5aa.js';
|
|
10
|
+
import './index-69265f49.js';
|
|
11
|
+
import './topics-cc398b5e.js';
|
|
12
|
+
import './index-0b69b0be.js';
|
|
13
|
+
import './tslib.es6-abe3d36a.js';
|
|
14
14
|
import './utils/message/getOutgoingMessageState.js';
|
|
15
|
-
import './compareIds-
|
|
16
|
-
import './const-
|
|
15
|
+
import './compareIds-a42407da.js';
|
|
16
|
+
import './const-da82c96f.js';
|
|
17
17
|
import '@sendbird/chat/groupChannel';
|
|
18
|
-
import './uuid-
|
|
18
|
+
import './uuid-5f7195ec.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-723c677a.js';
|
|
24
|
+
import './stringSet-4e0b0146.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-4593163a.js';
|
|
29
|
+
import './LocalizationContext-7019cc93.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-ad9c9713.js';
|
|
37
37
|
import './Channel/components/MessageList.js';
|
|
38
|
-
import './index-
|
|
38
|
+
import './index-b31e8da6.js';
|
|
39
39
|
import './Channel/components/Message.js';
|
|
40
40
|
import './Channel/components/SuggestedMentionList.js';
|
|
41
|
-
import './const-
|
|
41
|
+
import './const-787f39b8.js';
|
|
42
42
|
import './ui/DateSeparator.js';
|
|
43
|
-
import './color-
|
|
43
|
+
import './color-aae331b0.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-1728c207.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-83f73f08.js';
|
|
72
72
|
import './Channel/components/RemoveMessageModal.js';
|
|
73
73
|
import './ui/Modal.js';
|
|
74
74
|
import './Channel/components/TypingIndicator.js';
|
|
@@ -96,6 +96,7 @@ var Channel = function (props) {
|
|
|
96
96
|
disableUserProfile: props === null || props === void 0 ? void 0 : props.disableUserProfile,
|
|
97
97
|
disableMarkAsRead: props === null || props === void 0 ? void 0 : props.disableMarkAsRead
|
|
98
98
|
}, /*#__PURE__*/React__default.createElement(ChannelUI, {
|
|
99
|
+
isLoading: props === null || props === void 0 ? void 0 : props.isLoading,
|
|
99
100
|
renderPlaceholderLoader: props === null || props === void 0 ? void 0 : props.renderPlaceholderLoader,
|
|
100
101
|
renderPlaceholderInvalid: props === null || props === void 0 ? void 0 : props.renderPlaceholderInvalid,
|
|
101
102
|
renderPlaceholderEmpty: props === null || props === void 0 ? void 0 : props.renderPlaceholderEmpty,
|
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 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,IAAMA,OAAO,GAA2B,UAACC,KAAD,EAAoB;AAC1D,EAAA,oBACEC,6BAAC,eAAD,EAAA;AACE,IAAA,UAAU,EAAED,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEE,UADrB;AAEE,IAAA,iBAAiB,EAAEF,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEG,iBAF5B;AAGE,IAAA,wBAAwB,EAAEH,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEI,wBAHnC;AAIE,IAAA,cAAc,EAAEJ,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEK,cAJzB;AAKE,IAAA,kBAAkB,EAAEL,KAAK,SAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEM,kBAL7B;AAME,IAAA,aAAa,EAAEN,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEO,aANxB;AAOE,IAAA,uBAAuB,EAAEP,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEQ,uBAPlC;AAQE,IAAA,uBAAuB,EAAER,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAES,uBARlC;AASE,IAAA,yBAAyB,EAAET,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEU,yBATpC;AAUE,IAAA,uBAAuB,EAAEV,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEW,uBAVlC;AAWE,IAAA,aAAa,EAAEX,KAAK,SAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEY,aAXxB;AAYE,IAAA,SAAS,EAAEZ,KAAK,SAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEa,SAZpB;AAaE,IAAA,OAAO,EAAEb,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEc,OAblB;AAcE,IAAA,iBAAiB,EAAEd,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEe,iBAd5B;AAeE,IAAA,kBAAkB,EAAEf,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEgB,kBAf7B;AAgBE,IAAA,iBAAiB,EAAEhB,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEiB,iBAAAA;AAhB5B,GAAA,eAkBEhB,6BAAC,SAAD,EAAA;AACE,IAAA,
|
|
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 isLoading={props?.isLoading}\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","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator"],"mappings":"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"}
|
|
@@ -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-abe3d36a.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
9
|
-
import '../../CreateChannelProvider-
|
|
9
|
+
import '../../CreateChannelProvider-0f16d456.js';
|
|
10
10
|
import '../../sendbirdSelectors.js';
|
|
11
|
-
import '../../topics-
|
|
12
|
-
import '../../utils-
|
|
11
|
+
import '../../topics-cc398b5e.js';
|
|
12
|
+
import '../../utils-1728c207.js';
|
|
13
13
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
14
|
-
import '../../LocalizationContext-
|
|
15
|
-
import '../../stringSet-
|
|
16
|
-
import '../../index-
|
|
14
|
+
import '../../LocalizationContext-7019cc93.js';
|
|
15
|
+
import '../../stringSet-4e0b0146.js';
|
|
16
|
+
import '../../index-69265f49.js';
|
|
17
17
|
import '../../ui/Modal.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import '../../index-
|
|
19
|
+
import '../../index-83f73f08.js';
|
|
20
20
|
import '../../ui/Button.js';
|
|
21
|
-
import '../../index-
|
|
21
|
+
import '../../index-723c677a.js';
|
|
22
22
|
import '../../ui/UserListItem.js';
|
|
23
|
-
import '../../UserProfileContext-
|
|
23
|
+
import '../../UserProfileContext-8a4983f9.js';
|
|
24
24
|
import '../../ui/Avatar.js';
|
|
25
25
|
import '../../ui/ImageRenderer.js';
|
|
26
|
-
import '../../uuid-
|
|
26
|
+
import '../../uuid-5f7195ec.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-e993e6d6.js';
|
|
32
32
|
import '../../ui/ContextMenu.js';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
|
-
import '../../index-
|
|
34
|
+
import '../../index-0b69b0be.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-7019cc93.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-723c677a.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-4e0b0146.js';
|
|
8
|
+
import '../../index-69265f49.js';
|
|
9
9
|
import '../../withSendbird.js';
|
|
10
|
-
import '../../_rollupPluginBabelHelpers-
|
|
10
|
+
import '../../_rollupPluginBabelHelpers-e993e6d6.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../tslib.es6-
|
|
12
|
+
import '../../tslib.es6-abe3d36a.js';
|
|
13
13
|
import '../../ui/ImageRenderer.js';
|
|
14
14
|
import '../../ui/Icon.js';
|
|
15
|
-
import '../../uuid-
|
|
15
|
+
import '../../uuid-5f7195ec.js';
|
|
16
16
|
|
|
17
17
|
var ChannelListHeader = function (_a) {
|
|
18
18
|
var _b;
|
|
@@ -3,65 +3,67 @@ 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-a75dbbac.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-4593163a.js';
|
|
10
|
+
import '../../LocalizationContext-7019cc93.js';
|
|
11
|
+
import '../../stringSet-4e0b0146.js';
|
|
12
|
+
import '../../index-69265f49.js';
|
|
13
|
+
import '../../index-723c677a.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import '../../ui/IconButton.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../tslib.es6-abe3d36a.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-5f7195ec.js';
|
|
21
21
|
import '../../CreateChannel.js';
|
|
22
22
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
23
|
-
import '../../CreateChannelProvider-
|
|
23
|
+
import '../../CreateChannelProvider-0f16d456.js';
|
|
24
24
|
import '../../sendbirdSelectors.js';
|
|
25
|
-
import '../../topics-
|
|
26
|
-
import '../../utils-
|
|
25
|
+
import '../../topics-cc398b5e.js';
|
|
26
|
+
import '../../utils-1728c207.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-83f73f08.js';
|
|
31
31
|
import '../../ui/Button.js';
|
|
32
32
|
import '../../ui/UserListItem.js';
|
|
33
|
-
import '../../UserProfileContext-
|
|
33
|
+
import '../../UserProfileContext-8a4983f9.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-e993e6d6.js';
|
|
39
39
|
import '../../ui/ContextMenu.js';
|
|
40
40
|
import '../../ui/SortByRow.js';
|
|
41
|
-
import '../../index-
|
|
41
|
+
import '../../index-0b69b0be.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-ad9c9713.js';
|
|
46
46
|
import '../../ui/Badge.js';
|
|
47
|
-
import '../../index-
|
|
48
|
-
import '../../index-
|
|
49
|
-
import '../../index-
|
|
47
|
+
import '../../index-8de3da53.js';
|
|
48
|
+
import '../../index-b31e8da6.js';
|
|
49
|
+
import '../../index-189ad5aa.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-163810e1.js';
|
|
54
|
+
import '../../compareIds-a42407da.js';
|
|
55
|
+
import '../../const-da82c96f.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-0821db0a.js';
|
|
61
61
|
import '../../ui/Input.js';
|
|
62
62
|
import '../../ui/TextButton.js';
|
|
63
|
-
import '../../color-
|
|
64
|
-
import '../../actionTypes-
|
|
63
|
+
import '../../color-aae331b0.js';
|
|
64
|
+
import '../../actionTypes-e5c40c47.js';
|
|
65
|
+
|
|
66
|
+
const isAboutSame = (a, b, px) => Math.abs(a - b) <= px;
|
|
65
67
|
|
|
66
68
|
var DELIVERY_RECIPT = 'delivery_receipt';
|
|
67
69
|
|
|
@@ -86,7 +88,8 @@ var ChannelListUI = function (props) {
|
|
|
86
88
|
currentChannel = _c.currentChannel,
|
|
87
89
|
channelListDispatcher = _c.channelListDispatcher,
|
|
88
90
|
channelSource = _c.channelSource,
|
|
89
|
-
typingChannels = _c.typingChannels
|
|
91
|
+
typingChannels = _c.typingChannels,
|
|
92
|
+
initialized = _c.initialized;
|
|
90
93
|
|
|
91
94
|
var state = useSendbirdStateContext();
|
|
92
95
|
var sdkStore = (_a = state === null || state === void 0 ? void 0 : state.stores) === null || _a === void 0 ? void 0 : _a.sdkStore;
|
|
@@ -99,7 +102,6 @@ var ChannelListUI = function (props) {
|
|
|
99
102
|
disableMarkAsDelivered = _f === void 0 ? false : _f;
|
|
100
103
|
var sdk = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.sdk;
|
|
101
104
|
var sdkError = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.error;
|
|
102
|
-
var sdkIntialized = (sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.initialized) || false;
|
|
103
105
|
|
|
104
106
|
var _g = useState([]),
|
|
105
107
|
channelsTomarkAsRead = _g[0],
|
|
@@ -149,7 +151,7 @@ var ChannelListUI = function (props) {
|
|
|
149
151
|
className: "sendbird-channel-list__body",
|
|
150
152
|
onScroll: function (e) {
|
|
151
153
|
var target = e === null || e === void 0 ? void 0 : e.target;
|
|
152
|
-
var fetchMore = target.clientHeight + target.scrollTop
|
|
154
|
+
var fetchMore = isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10);
|
|
153
155
|
|
|
154
156
|
if (fetchMore && (channelSource === null || channelSource === void 0 ? void 0 : channelSource.hasNext)) {
|
|
155
157
|
logger.info('ChannelList: Fetching more channels');
|
|
@@ -183,7 +185,7 @@ var ChannelListUI = function (props) {
|
|
|
183
185
|
});
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
|
-
}, sdkError && (renderPlaceHolderError && typeof renderPlaceHolderError === 'function' ? renderPlaceHolderError === null || renderPlaceHolderError === void 0 ? void 0 : renderPlaceHolderError() : /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
188
|
+
}, sdkError && !loading && (renderPlaceHolderError && typeof renderPlaceHolderError === 'function' ? renderPlaceHolderError === null || renderPlaceHolderError === void 0 ? void 0 : renderPlaceHolderError() : /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
187
189
|
type: PlaceHolderTypes.WRONG
|
|
188
190
|
})), /*#__PURE__*/React__default.createElement("div", null, allChannels && allChannels.map(function (channel, idx) {
|
|
189
191
|
var onLeaveChannel = function (c, cb) {
|
|
@@ -248,9 +250,9 @@ var ChannelListUI = function (props) {
|
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
252
|
});
|
|
251
|
-
})),
|
|
253
|
+
})), !initialized && loading && (renderPlaceHolderLoading && typeof renderPlaceHolderLoading === 'function' ? renderPlaceHolderLoading === null || renderPlaceHolderLoading === void 0 ? void 0 : renderPlaceHolderLoading() : /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
252
254
|
type: PlaceHolderTypes.LOADING
|
|
253
|
-
})), (
|
|
255
|
+
})), initialized && (allChannels === null || allChannels === void 0 ? void 0 : allChannels.length) === 0 && (renderPlaceHolderEmptyList && typeof renderPlaceHolderEmptyList === 'function' ? renderPlaceHolderEmptyList === null || renderPlaceHolderEmptyList === void 0 ? void 0 : renderPlaceHolderEmptyList() : /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
254
256
|
type: PlaceHolderTypes.NO_CHANNELS
|
|
255
257
|
}))));
|
|
256
258
|
};
|