@sendbird/uikit-react 3.0.0-rc.0 → 3.0.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 +33 -34
- package/App.js.map +1 -1
- package/CHANGELOG.md +5 -2
- package/Channel/components/ChannelHeader.js +18 -18
- package/Channel/components/ChannelUI.js +25 -26
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +17 -17
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +22 -23
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +19 -20
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +24 -25
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +20 -20
- package/Channel/components/SuggestedMentionList.js +18 -18
- package/Channel/components/TypingIndicator.js +17 -17
- package/Channel/components/UnreadCount.js +5 -5
- package/Channel/context.js +16 -16
- package/Channel.js +25 -26
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +8 -8
- package/ChannelList/components/ChannelListUI.js +29 -29
- package/ChannelList/components/ChannelPreview.js +22 -22
- package/ChannelList/components/ChannelPreviewAction.js +17 -17
- package/ChannelList/context.js +11 -11
- package/ChannelList.js +29 -29
- package/{ChannelListProvider-76b1ec23.js → ChannelListProvider-bc1f14ac.js} +9 -9
- package/{ChannelListProvider-76b1ec23.js.map → ChannelListProvider-bc1f14ac.js.map} +1 -1
- package/{ChannelProvider-c0ed5fae.js → ChannelProvider-3d7434a2.js} +11 -11
- package/{ChannelProvider-c0ed5fae.js.map → ChannelProvider-3d7434a2.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsUI.js +19 -19
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +16 -16
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +15 -15
- package/ChannelSettings/context.js +4 -4
- package/ChannelSettings.js +19 -19
- package/CreateChannel/components/CreateChannelUI.js +15 -15
- package/CreateChannel/components/InviteUsers.js +15 -15
- package/CreateChannel/components/SelectChannelType.js +11 -11
- package/CreateChannel/context.js +5 -5
- package/CreateChannel.js +15 -15
- package/{CreateChannelProvider-8c72aa06.js → CreateChannelProvider-8464145a.js} +1 -1
- package/{CreateChannelProvider-8c72aa06.js.map → CreateChannelProvider-8464145a.js.map} +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/EditUserProfile.js +14 -14
- package/LICENSE +21 -0
- package/{LocalizationContext-fb3dafcd.js → LocalizationContext-4b1ec8b9.js} +3 -3
- package/{LocalizationContext-fb3dafcd.js.map → LocalizationContext-4b1ec8b9.js.map} +1 -1
- package/{MemberList-01d3c8bf.js → MemberList-0f94f1c7.js} +5 -5
- package/{MemberList-01d3c8bf.js.map → MemberList-0f94f1c7.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +12 -12
- package/MessageSearch/context.js +3 -3
- package/MessageSearch.js +12 -12
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +15 -15
- package/OpenChannel/components/OpenChannelInput.js +19 -20
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +24 -25
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +26 -27
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +26 -27
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +12 -12
- package/OpenChannel.js +26 -27
- package/OpenChannel.js.map +1 -1
- package/{OpenChannelProvider-0fb27972.js → OpenChannelProvider-c9d83594.js} +9 -9
- package/{OpenChannelProvider-0fb27972.js.map → OpenChannelProvider-c9d83594.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +14 -14
- package/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +18 -18
- package/SendbirdProvider.js +13 -13
- package/SendbirdProvider.js.map +1 -1
- package/{UserProfileContext-6a387a08.js → UserProfileContext-d0287bb6.js} +1 -1
- package/{UserProfileContext-6a387a08.js.map → UserProfileContext-d0287bb6.js.map} +1 -1
- package/{__bundle-7dfccc8c-03df3ada.js → __bundle-7dfccc8c-36a58bd4.js} +1 -1
- package/{__bundle-7dfccc8c-03df3ada.js.map → __bundle-7dfccc8c-36a58bd4.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-084fb589.js → _rollupPluginBabelHelpers-abbcef5e.js} +1 -1
- package/{_rollupPluginBabelHelpers-084fb589.js.map → _rollupPluginBabelHelpers-abbcef5e.js.map} +1 -1
- package/{actionTypes-302a2801.js → actionTypes-d0ccd7e4.js} +1 -1
- package/{actionTypes-302a2801.js.map → actionTypes-d0ccd7e4.js.map} +1 -1
- package/cjs/App.js +33 -34
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +18 -18
- package/cjs/Channel/components/ChannelUI.js +25 -26
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +17 -17
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +22 -23
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +19 -20
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +24 -25
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +20 -20
- package/cjs/Channel/components/SuggestedMentionList.js +18 -18
- package/cjs/Channel/components/TypingIndicator.js +17 -17
- package/cjs/Channel/components/UnreadCount.js +5 -5
- package/cjs/Channel/context.js +16 -16
- package/cjs/Channel.js +25 -26
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +8 -8
- package/cjs/ChannelList/components/ChannelListUI.js +29 -29
- package/cjs/ChannelList/components/ChannelPreview.js +22 -22
- package/cjs/ChannelList/components/ChannelPreviewAction.js +17 -17
- package/cjs/ChannelList/context.js +11 -11
- package/cjs/ChannelList.js +29 -29
- package/cjs/{ChannelListProvider-7d1c0466.js → ChannelListProvider-8157ae01.js} +9 -9
- package/cjs/{ChannelListProvider-7d1c0466.js.map → ChannelListProvider-8157ae01.js.map} +1 -1
- package/cjs/{ChannelProvider-a3ec5a56.js → ChannelProvider-793fddf5.js} +11 -11
- package/cjs/{ChannelProvider-a3ec5a56.js.map → ChannelProvider-793fddf5.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +19 -19
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +16 -16
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +15 -15
- package/cjs/ChannelSettings/context.js +4 -4
- package/cjs/ChannelSettings.js +19 -19
- package/cjs/CreateChannel/components/CreateChannelUI.js +15 -15
- package/cjs/CreateChannel/components/InviteUsers.js +15 -15
- package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
- package/cjs/CreateChannel/context.js +5 -5
- package/cjs/CreateChannel.js +15 -15
- package/cjs/{CreateChannelProvider-95fbfb06.js → CreateChannelProvider-b462ce84.js} +1 -1
- package/cjs/{CreateChannelProvider-95fbfb06.js.map → CreateChannelProvider-b462ce84.js.map} +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/cjs/EditUserProfile.js +14 -14
- package/cjs/{LocalizationContext-5a6a0f67.js → LocalizationContext-855bfc31.js} +3 -3
- package/cjs/{LocalizationContext-5a6a0f67.js.map → LocalizationContext-855bfc31.js.map} +1 -1
- package/cjs/{MemberList-bfecdd64.js → MemberList-c446abed.js} +5 -5
- package/cjs/{MemberList-bfecdd64.js.map → MemberList-c446abed.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +12 -12
- package/cjs/MessageSearch/context.js +3 -3
- package/cjs/MessageSearch.js +12 -12
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +15 -15
- package/cjs/OpenChannel/components/OpenChannelInput.js +19 -20
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +24 -25
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +26 -27
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +26 -27
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +12 -12
- package/cjs/OpenChannel.js +26 -27
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/{OpenChannelProvider-e8247193.js → OpenChannelProvider-2264dc27.js} +9 -9
- package/cjs/{OpenChannelProvider-e8247193.js.map → OpenChannelProvider-2264dc27.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/cjs/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +18 -18
- package/cjs/SendbirdProvider.js +14 -14
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/{UserProfileContext-17c8f75c.js → UserProfileContext-627c1f20.js} +1 -1
- package/cjs/{UserProfileContext-17c8f75c.js.map → UserProfileContext-627c1f20.js.map} +1 -1
- package/cjs/{__bundle-7dfccc8c-c3c55861.js → __bundle-7dfccc8c-437d2fd3.js} +1 -1
- package/cjs/{__bundle-7dfccc8c-c3c55861.js.map → __bundle-7dfccc8c-437d2fd3.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-d984e855.js → _rollupPluginBabelHelpers-89a197f1.js} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-d984e855.js.map → _rollupPluginBabelHelpers-89a197f1.js.map} +1 -1
- package/cjs/{actionTypes-7a330bec.js → actionTypes-3f5d873f.js} +1 -1
- package/cjs/{actionTypes-7a330bec.js.map → actionTypes-3f5d873f.js.map} +1 -1
- package/cjs/{color-b30f84a2.js → color-894bd822.js} +1 -1
- package/cjs/{color-b30f84a2.js.map → color-894bd822.js.map} +1 -1
- package/cjs/{compareIds-d8053014.js → compareIds-bc1f1524.js} +1 -1
- package/cjs/{compareIds-d8053014.js.map → compareIds-bc1f1524.js.map} +1 -1
- package/cjs/{const-6aa26f9f.js → const-8fdee18a.js} +1 -1
- package/cjs/{const-6aa26f9f.js.map → const-8fdee18a.js.map} +1 -1
- package/cjs/{const-2623fae1.js → const-bb23ef90.js} +1 -1
- package/cjs/{const-2623fae1.js.map → const-bb23ef90.js.map} +1 -1
- package/cjs/{context-83ecdafd.js → context-f07caf29.js} +2 -2
- package/cjs/{context-83ecdafd.js.map → context-f07caf29.js.map} +1 -1
- package/cjs/{groupChannel-e311e26a.js → groupChannel-64ff0a33.js} +2 -2
- package/cjs/{groupChannel-e311e26a.js.map → groupChannel-64ff0a33.js.map} +1 -1
- package/cjs/{index-1e14c5b9.js → index-2ce368ff.js} +4 -4
- package/cjs/{index-1e14c5b9.js.map → index-2ce368ff.js.map} +1 -1
- package/cjs/{index-2537cbc7.js → index-3298ba2f.js} +4 -4
- package/cjs/{index-2537cbc7.js.map → index-3298ba2f.js.map} +1 -1
- package/cjs/{index-df05e765.js → index-3bc84b64.js} +3 -3
- package/cjs/{index-df05e765.js.map → index-3bc84b64.js.map} +1 -1
- package/cjs/{index-40d245a3.js → index-3dd33e71.js} +2 -2
- package/cjs/{index-40d245a3.js.map → index-3dd33e71.js.map} +1 -1
- package/cjs/{index-cdcd27bc.js → index-47e86329.js} +2 -2
- package/cjs/{index-cdcd27bc.js.map → index-47e86329.js.map} +1 -1
- package/cjs/{index-ab5d906d.js → index-9bc1ab0f.js} +2 -2
- package/cjs/{index-ab5d906d.js.map → index-9bc1ab0f.js.map} +1 -1
- package/cjs/{index-f9677913.js → index-a7643049.js} +3 -3
- package/cjs/{index-f9677913.js.map → index-a7643049.js.map} +1 -1
- package/cjs/{index-5e7b82c2.js → index-c730dbc7.js} +6 -6
- package/cjs/{index-5e7b82c2.js.map → index-c730dbc7.js.map} +1 -1
- package/cjs/{index-72479c2a.js → index-d85e4159.js} +1 -1
- package/cjs/{index-72479c2a.js.map → index-d85e4159.js.map} +1 -1
- package/cjs/{index-ce679d41.js → index-e844a017.js} +1 -1
- package/cjs/{index-ce679d41.js.map → index-e844a017.js.map} +1 -1
- package/cjs/index.js +37 -38
- package/cjs/index.js.map +1 -1
- package/cjs/{openChannel-e9f65946.js → openChannel-1fe2127a.js} +2 -2
- package/cjs/{openChannel-e9f65946.js.map → openChannel-1fe2127a.js.map} +1 -1
- package/cjs/{openChannelUtils-4b7d2697.js → openChannelUtils-f64587d0.js} +1 -1
- package/cjs/{openChannelUtils-4b7d2697.js.map → openChannelUtils-f64587d0.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-2f3588b5.js → stringSet-46fdf7f6.js} +1 -1
- package/cjs/{stringSet-2f3588b5.js.map → stringSet-46fdf7f6.js.map} +1 -1
- package/cjs/{topics-582e38dc.js → topics-8365570f.js} +1 -1
- package/cjs/{topics-582e38dc.js.map → topics-8365570f.js.map} +1 -1
- package/cjs/{tslib.es6-d9c7aa8b.js → tslib.es6-e6723880.js} +1 -1
- package/cjs/{tslib.es6-d9c7aa8b.js.map → tslib.es6-e6723880.js.map} +1 -1
- package/cjs/ui/Accordion.js +4 -4
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +3 -3
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/Button.js +4 -4
- package/cjs/ui/ChannelAvatar.js +4 -4
- package/cjs/ui/ChannelPreview.js +12 -12
- package/cjs/ui/ChatHeader.js +8 -8
- package/cjs/ui/Checkbox.js +1 -1
- package/cjs/ui/ConnectionStatus.js +5 -5
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/Dropdown.js +3 -3
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +7 -7
- package/cjs/ui/Icon.js +1 -1
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +12 -12
- package/cjs/ui/MessageContent.js +15 -15
- package/cjs/ui/MessageInput.js +5341 -14
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +7 -7
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +10 -10
- package/cjs/ui/MessageStatus.js +8 -8
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +1 -1
- package/cjs/ui/OGMessageItemBody.js +12 -12
- package/cjs/ui/OpenChannelAdminMessage.js +4 -4
- package/cjs/ui/OpenChannelAvatar.js +7 -7
- package/cjs/ui/OpenchannelConversationHeader.js +7 -7
- package/cjs/ui/OpenchannelFileMessage.js +16 -16
- package/cjs/ui/OpenchannelOGMessage.js +16 -16
- package/cjs/ui/OpenchannelThumbnailMessage.js +15 -15
- package/cjs/ui/OpenchannelUserMessage.js +16 -16
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/QuoteMessage.js +7 -7
- package/cjs/ui/QuoteMessageInput.js +7 -7
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +12 -12
- package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +12 -12
- package/cjs/ui/Word.js +12 -12
- package/cjs/useSendbirdStateContext.js +3 -3
- package/cjs/{utils-510b93ac.js → utils-896260ad.js} +1 -1
- package/cjs/{utils-510b93ac.js.map → utils-896260ad.js.map} +1 -1
- package/cjs/{utils-689065e6.js → utils-a807e55b.js} +1 -1
- package/cjs/{utils-689065e6.js.map → utils-a807e55b.js.map} +1 -1
- package/cjs/{utils-031aba48.js → utils-d961e3ec.js} +1 -1
- package/cjs/{utils-031aba48.js.map → utils-d961e3ec.js.map} +1 -1
- package/cjs/{uuid-099485ae.js → uuid-f50c28bd.js} +1 -1
- package/cjs/{uuid-099485ae.js.map → uuid-f50c28bd.js.map} +1 -1
- package/cjs/{withSendBird.js → withSendbird.js} +2 -2
- package/cjs/{withSendBird.js.map → withSendbird.js.map} +1 -1
- package/{color-9bf8c922.js → color-61b0f496.js} +1 -1
- package/{color-9bf8c922.js.map → color-61b0f496.js.map} +1 -1
- package/{compareIds-b78d7cd6.js → compareIds-e48fb1d0.js} +1 -1
- package/{compareIds-b78d7cd6.js.map → compareIds-e48fb1d0.js.map} +1 -1
- package/{const-40b58d8b.js → const-6fe536c0.js} +1 -1
- package/{const-40b58d8b.js.map → const-6fe536c0.js.map} +1 -1
- package/{const-99800b8d.js → const-d3857731.js} +1 -1
- package/{const-99800b8d.js.map → const-d3857731.js.map} +1 -1
- package/{context-bedea43b.js → context-178f9029.js} +2 -2
- package/{context-bedea43b.js.map → context-178f9029.js.map} +1 -1
- package/{groupChannel-96502de7.js → groupChannel-009a07f0.js} +2 -2
- package/{groupChannel-96502de7.js.map → groupChannel-009a07f0.js.map} +1 -1
- package/{index-71ad343b.js → index-1b5914a8.js} +6 -6
- package/{index-71ad343b.js.map → index-1b5914a8.js.map} +1 -1
- package/{index-c95d2aab.js → index-39d43f7e.js} +4 -4
- package/{index-c95d2aab.js.map → index-39d43f7e.js.map} +1 -1
- package/{index-a5e8849a.js → index-4eddd935.js} +4 -4
- package/{index-a5e8849a.js.map → index-4eddd935.js.map} +1 -1
- package/{index-13729368.js → index-75f9b6fc.js} +1 -1
- package/{index-13729368.js.map → index-75f9b6fc.js.map} +1 -1
- package/{index-16bed610.js → index-7b2f13ef.js} +2 -2
- package/{index-16bed610.js.map → index-7b2f13ef.js.map} +1 -1
- package/{index-1d112ad4.js → index-87af3e7d.js} +1 -1
- package/{index-1d112ad4.js.map → index-87af3e7d.js.map} +1 -1
- package/{index-71e2bf26.js → index-a5b58199.js} +3 -3
- package/{index-71e2bf26.js.map → index-a5b58199.js.map} +1 -1
- package/{index-8e6a607b.js → index-aa13fe48.js} +2 -2
- package/{index-8e6a607b.js.map → index-aa13fe48.js.map} +1 -1
- package/{index-ccd99cfe.js → index-cff868a8.js} +2 -2
- package/{index-ccd99cfe.js.map → index-cff868a8.js.map} +1 -1
- package/{index-b574cc8e.js → index-d6e33a8d.js} +3 -3
- package/{index-b574cc8e.js.map → index-d6e33a8d.js.map} +1 -1
- package/index.d.ts +8 -8
- package/index.js +36 -37
- package/index.js.map +1 -1
- package/{openChannel-dd5c9246.js → openChannel-0d900561.js} +2 -2
- package/{openChannel-dd5c9246.js.map → openChannel-0d900561.js.map} +1 -1
- package/{openChannelUtils-211a679a.js → openChannelUtils-41763348.js} +1 -1
- package/{openChannelUtils-211a679a.js.map → openChannelUtils-41763348.js.map} +1 -1
- package/package-lock.json +26318 -0
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-d3a8a2a0.js → stringSet-130b5cd9.js} +1 -1
- package/{stringSet-d3a8a2a0.js.map → stringSet-130b5cd9.js.map} +1 -1
- package/{topics-f941ba80.js → topics-2773df5c.js} +1 -1
- package/{topics-f941ba80.js.map → topics-2773df5c.js.map} +1 -1
- package/{tslib.es6-a7db0cc5.js → tslib.es6-41c9b7f1.js} +1 -1
- package/{tslib.es6-a7db0cc5.js.map → tslib.es6-41c9b7f1.js.map} +1 -1
- package/ui/Accordion.js +4 -4
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +3 -3
- package/ui/Badge.js +5 -5
- package/ui/Button.js +4 -4
- package/ui/ChannelAvatar.js +4 -4
- package/ui/ChannelPreview.js +12 -12
- package/ui/ChatHeader.js +8 -8
- package/ui/Checkbox.js +1 -1
- package/ui/ConnectionStatus.js +5 -5
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +4 -4
- package/ui/Dropdown.js +3 -3
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +7 -7
- package/ui/Icon.js +1 -1
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +12 -12
- package/ui/MessageContent.js +15 -15
- package/ui/MessageInput.js +5339 -11
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +7 -7
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +10 -10
- package/ui/MessageStatus.js +8 -8
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +1 -1
- package/ui/OGMessageItemBody.js +12 -12
- package/ui/OpenChannelAdminMessage.js +4 -4
- package/ui/OpenChannelAvatar.js +7 -7
- package/ui/OpenchannelConversationHeader.js +7 -7
- package/ui/OpenchannelFileMessage.js +16 -16
- package/ui/OpenchannelOGMessage.js +16 -16
- package/ui/OpenchannelThumbnailMessage.js +15 -15
- package/ui/OpenchannelUserMessage.js +16 -16
- package/ui/PlaceHolder.js +6 -6
- package/ui/QuoteMessage.js +7 -7
- package/ui/QuoteMessageInput.js +7 -7
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +12 -12
- package/ui/ThumbnailMessageItemBody.js +3 -3
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +13 -13
- package/ui/UserProfile.js +11 -11
- package/ui/Word.js +12 -12
- package/useSendbirdStateContext.js +2 -2
- package/{utils-d9325ddf.js → utils-24f3af49.js} +1 -1
- package/{utils-d9325ddf.js.map → utils-24f3af49.js.map} +1 -1
- package/{utils-2e3623c0.js → utils-c2b6ba56.js} +1 -1
- package/{utils-2e3623c0.js.map → utils-c2b6ba56.js.map} +1 -1
- package/{utils-cadde06a.js → utils-ce5e300e.js} +1 -1
- package/{utils-cadde06a.js.map → utils-ce5e300e.js.map} +1 -1
- package/{uuid-748dae7a.js → uuid-cd809c2c.js} +1 -1
- package/{uuid-748dae7a.js.map → uuid-cd809c2c.js.map} +1 -1
- package/{withSendBird.js → withSendbird.js} +2 -2
- package/{withSendBird.js.map → withSendbird.js.map} +1 -1
- package/index.d.ts_bkup +0 -1883
package/App.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-abbcef5e.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Sendbird from './SendbirdProvider.js';
|
|
@@ -6,26 +6,26 @@ import ChannelList from './ChannelList.js';
|
|
|
6
6
|
import Channel from './Channel.js';
|
|
7
7
|
import ChannelSettings from './ChannelSettings.js';
|
|
8
8
|
import MessageSearchPannel from './MessageSearch.js';
|
|
9
|
-
import './
|
|
10
|
-
import './openChannel-
|
|
11
|
-
import './__bundle-7dfccc8c-
|
|
12
|
-
import './groupChannel-
|
|
13
|
-
import './actionTypes-
|
|
14
|
-
import './index-
|
|
15
|
-
import './tslib.es6-
|
|
9
|
+
import './withSendbird.js';
|
|
10
|
+
import './openChannel-0d900561.js';
|
|
11
|
+
import './__bundle-7dfccc8c-36a58bd4.js';
|
|
12
|
+
import './groupChannel-009a07f0.js';
|
|
13
|
+
import './actionTypes-d0ccd7e4.js';
|
|
14
|
+
import './index-aa13fe48.js';
|
|
15
|
+
import './tslib.es6-41c9b7f1.js';
|
|
16
16
|
import 'css-vars-ponyfill';
|
|
17
|
-
import './uuid-
|
|
18
|
-
import './LocalizationContext-
|
|
19
|
-
import './stringSet-
|
|
20
|
-
import './index-
|
|
21
|
-
import './ChannelListProvider-
|
|
22
|
-
import './topics-
|
|
23
|
-
import './utils-
|
|
24
|
-
import './UserProfileContext-
|
|
17
|
+
import './uuid-cd809c2c.js';
|
|
18
|
+
import './LocalizationContext-4b1ec8b9.js';
|
|
19
|
+
import './stringSet-130b5cd9.js';
|
|
20
|
+
import './index-75f9b6fc.js';
|
|
21
|
+
import './ChannelListProvider-bc1f14ac.js';
|
|
22
|
+
import './topics-2773df5c.js';
|
|
23
|
+
import './utils-ce5e300e.js';
|
|
24
|
+
import './UserProfileContext-d0287bb6.js';
|
|
25
25
|
import './useSendbirdStateContext.js';
|
|
26
26
|
import './ChannelList/components/ChannelListUI.js';
|
|
27
27
|
import './ChannelList/components/ChannelListHeader.js';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-a5b58199.js';
|
|
29
29
|
import './ui/IconButton.js';
|
|
30
30
|
import './ui/Avatar.js';
|
|
31
31
|
import './ui/ImageRenderer.js';
|
|
@@ -33,13 +33,13 @@ import './ui/Icon.js';
|
|
|
33
33
|
import './ChannelList/components/AddChannel.js';
|
|
34
34
|
import './CreateChannel.js';
|
|
35
35
|
import './CreateChannel/components/CreateChannelUI.js';
|
|
36
|
-
import './CreateChannelProvider-
|
|
36
|
+
import './CreateChannelProvider-8464145a.js';
|
|
37
37
|
import './sendbirdSelectors.js';
|
|
38
38
|
import './CreateChannel/components/InviteUsers.js';
|
|
39
39
|
import './ui/Modal.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
-
import './index-
|
|
42
|
-
import './index-
|
|
41
|
+
import './index-87af3e7d.js';
|
|
42
|
+
import './index-d6e33a8d.js';
|
|
43
43
|
import './ui/UserListItem.js';
|
|
44
44
|
import './ui/MutedAvatarOverlay.js';
|
|
45
45
|
import './ui/Checkbox.js';
|
|
@@ -49,36 +49,35 @@ import './ui/SortByRow.js';
|
|
|
49
49
|
import './CreateChannel/components/SelectChannelType.js';
|
|
50
50
|
import './ChannelList/components/ChannelPreview.js';
|
|
51
51
|
import './ui/ChannelAvatar.js';
|
|
52
|
-
import './utils-
|
|
52
|
+
import './utils-24f3af49.js';
|
|
53
53
|
import './ui/Badge.js';
|
|
54
|
-
import './index-
|
|
55
|
-
import './index-
|
|
56
|
-
import './index-
|
|
54
|
+
import './index-4eddd935.js';
|
|
55
|
+
import './index-7b2f13ef.js';
|
|
56
|
+
import './index-cff868a8.js';
|
|
57
57
|
import './ui/MentionUserLabel.js';
|
|
58
58
|
import './Channel/components/TypingIndicator.js';
|
|
59
|
-
import './ChannelProvider-
|
|
60
|
-
import './compareIds-
|
|
61
|
-
import './const-
|
|
59
|
+
import './ChannelProvider-3d7434a2.js';
|
|
60
|
+
import './compareIds-e48fb1d0.js';
|
|
61
|
+
import './const-d3857731.js';
|
|
62
62
|
import './ui/ReactionButton.js';
|
|
63
63
|
import './ui/MessageStatus.js';
|
|
64
64
|
import './ui/Loader.js';
|
|
65
65
|
import './ChannelList/components/ChannelPreviewAction.js';
|
|
66
66
|
import './EditUserProfile.js';
|
|
67
|
-
import './index-
|
|
67
|
+
import './index-1b5914a8.js';
|
|
68
68
|
import './ui/Input.js';
|
|
69
69
|
import './ui/TextButton.js';
|
|
70
|
-
import './color-
|
|
71
|
-
import './index-
|
|
70
|
+
import './color-61b0f496.js';
|
|
71
|
+
import './index-39d43f7e.js';
|
|
72
72
|
import './Channel/components/ChannelUI.js';
|
|
73
73
|
import './ui/ConnectionStatus.js';
|
|
74
74
|
import './Channel/components/ChannelHeader.js';
|
|
75
75
|
import './Channel/components/MessageList.js';
|
|
76
76
|
import './Channel/components/Message.js';
|
|
77
77
|
import './Channel/components/SuggestedMentionList.js';
|
|
78
|
-
import './const-
|
|
78
|
+
import './const-6fe536c0.js';
|
|
79
79
|
import './ui/DateSeparator.js';
|
|
80
80
|
import './ui/MessageInput.js';
|
|
81
|
-
import 'stream';
|
|
82
81
|
import './ui/MessageContent.js';
|
|
83
82
|
import './ui/MessageItemMenu.js';
|
|
84
83
|
import './ui/MessageItemReactionMenu.js';
|
|
@@ -109,9 +108,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
|
|
|
109
108
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
110
109
|
import './ui/Accordion.js';
|
|
111
110
|
import './ui/AccordionGroup.js';
|
|
112
|
-
import './context-
|
|
111
|
+
import './context-178f9029.js';
|
|
113
112
|
import './ChannelSettings/components/UserListItem.js';
|
|
114
|
-
import './MemberList-
|
|
113
|
+
import './MemberList-0f94f1c7.js';
|
|
115
114
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
116
115
|
import './ChannelSettings/components/UserPanel.js';
|
|
117
116
|
import './MessageSearch/components/MessageSearchUI.js';
|
package/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sources":["../src/smart-components/App/index.jsx"],"sourcesContent":["/**\n * This is a drop in Chat solution\n * Can also be used as an example for creating\n * default chat apps\n */\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Sendbird from '../../lib/Sendbird';\n\nimport ChannelList from '../ChannelList';\nimport Channel from '../Channel';\nimport ChannelSettings from '../ChannelSettings';\nimport MessageSearchPannel from '../MessageSearch';\n\nimport './index.scss';\n\nexport default function App(props) {\n const {\n appId,\n userId,\n accessToken,\n theme,\n userListQuery,\n nickname,\n profileUrl,\n dateLocale,\n config = {},\n isReactionEnabled,\n isMentionEnabled,\n replyType,\n isMessageGroupingEnabled,\n colorSet,\n stringSet,\n allowProfileEdit,\n disableUserProfile,\n renderUserProfile,\n showSearchIcon,\n onProfileEditSuccess,\n imageCompression,\n disableAutoSelect,\n isTypingIndicatorEnabledOnChannelList,\n isMessageReceiptStatusEnabledOnChannelList,\n } = props;\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n const [showSettings, setShowSettings] = useState(false);\n const [showSearch, setShowSearch] = useState(false);\n const [highlightedMessage, setHighlightedMessage] = useState(null);\n const [startingPoint, setStartingPoint] = useState(null);\n\n return (\n <Sendbird\n stringSet={stringSet}\n appId={appId}\n userId={userId}\n accessToken={accessToken}\n theme={theme}\n nickname={nickname}\n profileUrl={profileUrl}\n dateLocale={dateLocale}\n userListQuery={userListQuery}\n config={config}\n colorSet={colorSet}\n disableUserProfile={disableUserProfile}\n renderUserProfile={renderUserProfile}\n imageCompression={imageCompression}\n isReactionEnabled={isReactionEnabled}\n isMentionEnabled={isMentionEnabled}\n isTypingIndicatorEnabledOnChannelList={isTypingIndicatorEnabledOnChannelList}\n isMessageReceiptStatusEnabledOnChannelList={isMessageReceiptStatusEnabledOnChannelList}\n >\n <div className=\"sendbird-app__wrap\">\n <div className=\"sendbird-app__channellist-wrap\">\n <ChannelList\n allowProfileEdit={allowProfileEdit}\n onProfileEditSuccess={onProfileEditSuccess}\n disableAutoSelect={disableAutoSelect}\n onChannelSelect={(channel) => {\n setStartingPoint(null);\n setHighlightedMessage(null);\n if (channel?.url) {\n setCurrentChannelUrl(channel.url);\n } else {\n setCurrentChannelUrl('');\n }\n }}\n />\n </div>\n <div\n className={`\n ${showSettings ? 'sendbird-app__conversation--settings-open' : ''}\n ${showSearch ? 'sendbird-app__conversation--search-open' : ''}\n sendbird-app__conversation-wrap\n `}\n >\n <Channel\n channelUrl={currentChannelUrl}\n onChatHeaderActionClick={() => {\n setShowSearch(false);\n setShowSettings(!showSettings);\n }}\n onSearchClick={() => {\n setShowSettings(false);\n setShowSearch(!showSearch);\n }}\n showSearchIcon={showSearchIcon}\n startingPoint={startingPoint}\n highlightedMessage={highlightedMessage}\n isReactionEnabled={isReactionEnabled}\n replyType={replyType}\n isMessageGroupingEnabled={isMessageGroupingEnabled}\n />\n </div>\n {showSettings && (\n <div className=\"sendbird-app__settingspanel-wrap\">\n <ChannelSettings\n className=\"sendbird-channel-settings\"\n channelUrl={currentChannelUrl}\n onCloseClick={() => {\n setShowSettings(false);\n }}\n />\n </div>\n )}\n {showSearch && (\n <div className=\"sendbird-app__searchpanel-wrap\">\n <MessageSearchPannel\n channelUrl={currentChannelUrl}\n onResultClick={(message) => {\n if (message.messageId === highlightedMessage) {\n setHighlightedMessage(null);\n setTimeout(() => {\n setHighlightedMessage(message.messageId);\n });\n } else {\n setStartingPoint(message.createdAt);\n setHighlightedMessage(message.messageId);\n }\n }}\n onCloseClick={() => {\n setShowSearch(false);\n }}\n />\n </div>\n )}\n </div>\n </Sendbird>\n );\n}\n\nApp.propTypes = {\n appId: PropTypes.string.isRequired,\n userId: PropTypes.string.isRequired,\n accessToken: PropTypes.string,\n theme: PropTypes.string,\n userListQuery: PropTypes.func,\n nickname: PropTypes.string,\n profileUrl: PropTypes.string,\n allowProfileEdit: PropTypes.bool,\n disableUserProfile: PropTypes.bool,\n renderUserProfile: PropTypes.func,\n onProfileEditSuccess: PropTypes.func,\n dateLocale: PropTypes.shape({}),\n config: PropTypes.shape({\n // None Error Warning Info 'All/Debug'\n logLevel: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n }),\n isReactionEnabled: PropTypes.bool,\n replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),\n showSearchIcon: PropTypes.bool,\n isMessageGroupingEnabled: PropTypes.bool,\n stringSet: PropTypes.objectOf(PropTypes.string),\n colorSet: PropTypes.objectOf(PropTypes.string),\n imageCompression: PropTypes.shape({\n compressionRate: PropTypes.number,\n resizingWidth: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n resizingHeight: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n }),\n disableAutoSelect: PropTypes.bool,\n isMentionEnabled: PropTypes.bool,\n isTypingIndicatorEnabledOnChannelList: PropTypes.bool,\n isMessageReceiptStatusEnabledOnChannelList: PropTypes.bool,\n};\n\nApp.defaultProps = {\n accessToken: '',\n theme: 'light',\n nickname: '',\n profileUrl: '',\n userListQuery: null,\n dateLocale: null,\n allowProfileEdit: false,\n onProfileEditSuccess: null,\n disableUserProfile: false,\n showSearchIcon: false,\n renderUserProfile: null,\n config: {},\n isReactionEnabled: true,\n isMentionEnabled: false,\n replyType: 'NONE',\n isMessageGroupingEnabled: true,\n stringSet: null,\n colorSet: null,\n imageCompression: {},\n disableAutoSelect: false,\n isTypingIndicatorEnabledOnChannelList: false,\n isMessageReceiptStatusEnabledOnChannelList: false,\n};\n"],"names":["App","props","appId","userId","accessToken","theme","userListQuery","nickname","profileUrl","dateLocale","config","isReactionEnabled","isMentionEnabled","replyType","isMessageGroupingEnabled","colorSet","stringSet","allowProfileEdit","disableUserProfile","renderUserProfile","showSearchIcon","onProfileEditSuccess","imageCompression","disableAutoSelect","isTypingIndicatorEnabledOnChannelList","isMessageReceiptStatusEnabledOnChannelList","useState","currentChannelUrl","setCurrentChannelUrl","showSettings","setShowSettings","showSearch","setShowSearch","highlightedMessage","setHighlightedMessage","startingPoint","setStartingPoint","React","channel","url","message","messageId","setTimeout","createdAt","propTypes","PropTypes","string","isRequired","func","bool","shape","logLevel","oneOfType","arrayOf","oneOf","objectOf","compressionRate","number","resizingWidth","resizingHeight","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBe,SAASA,GAAT,CAAaC,KAAb,EAAoB;AACjC,MACEC,KADF,GAyBID,KAzBJ,CACEC,KADF;AAAA,MAEEC,MAFF,GAyBIF,KAzBJ,CAEEE,MAFF;AAAA,MAGEC,WAHF,GAyBIH,KAzBJ,CAGEG,WAHF;AAAA,MAIEC,KAJF,GAyBIJ,KAzBJ,CAIEI,KAJF;AAAA,MAKEC,aALF,GAyBIL,KAzBJ,CAKEK,aALF;AAAA,MAMEC,QANF,GAyBIN,KAzBJ,CAMEM,QANF;AAAA,MAOEC,UAPF,GAyBIP,KAzBJ,CAOEO,UAPF;AAAA,MAQEC,UARF,GAyBIR,KAzBJ,CAQEQ,UARF;AAAA,sBAyBIR,KAzBJ,CASES,MATF;AAAA,MASEA,MATF,8BASW,EATX;AAAA,MAUEC,iBAVF,GAyBIV,KAzBJ,CAUEU,iBAVF;AAAA,MAWEC,gBAXF,GAyBIX,KAzBJ,CAWEW,gBAXF;AAAA,MAYEC,SAZF,GAyBIZ,KAzBJ,CAYEY,SAZF;AA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D;AAejBC,EAAAA,SAAS,EAAE,MAfM;AAgBjBC,EAAAA,wBAAwB,EAAE,IAhBT;AAiBjBE,EAAAA,SAAS,EAAE,IAjBM;AAkBjBD,EAAAA,QAAQ,EAAE,IAlBO;AAmBjBO,EAAAA,gBAAgB,EAAE,EAnBD;AAoBjBC,EAAAA,iBAAiB,EAAE,KApBF;AAqBjBC,EAAAA,qCAAqC,EAAE,KArBtB;AAsBjBC,EAAAA,0CAA0C,EAAE;AAtB3B,CAAnB;;;;"}
|
|
1
|
+
{"version":3,"file":"App.js","sources":["../src/smart-components/App/index.jsx"],"sourcesContent":["/**\n * This is a drop in Chat solution\n * Can also be used as an example for creating\n * default chat apps\n */\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport Sendbird from '../../lib/Sendbird';\n\nimport ChannelList from '../ChannelList';\nimport Channel from '../Channel';\nimport ChannelSettings from '../ChannelSettings';\nimport MessageSearchPannel from '../MessageSearch';\n\nimport './index.scss';\n\nexport default function App(props) {\n const {\n appId,\n userId,\n accessToken,\n theme,\n userListQuery,\n nickname,\n profileUrl,\n dateLocale,\n config = {},\n isReactionEnabled,\n isMentionEnabled,\n replyType,\n isMessageGroupingEnabled,\n colorSet,\n stringSet,\n allowProfileEdit,\n disableUserProfile,\n renderUserProfile,\n showSearchIcon,\n onProfileEditSuccess,\n imageCompression,\n disableAutoSelect,\n isTypingIndicatorEnabledOnChannelList,\n isMessageReceiptStatusEnabledOnChannelList,\n } = props;\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n const [showSettings, setShowSettings] = useState(false);\n const [showSearch, setShowSearch] = useState(false);\n const [highlightedMessage, setHighlightedMessage] = useState(null);\n const [startingPoint, setStartingPoint] = useState(null);\n\n return (\n <Sendbird\n stringSet={stringSet}\n appId={appId}\n userId={userId}\n accessToken={accessToken}\n theme={theme}\n nickname={nickname}\n profileUrl={profileUrl}\n dateLocale={dateLocale}\n userListQuery={userListQuery}\n config={config}\n colorSet={colorSet}\n disableUserProfile={disableUserProfile}\n renderUserProfile={renderUserProfile}\n imageCompression={imageCompression}\n isReactionEnabled={isReactionEnabled}\n isMentionEnabled={isMentionEnabled}\n isTypingIndicatorEnabledOnChannelList={isTypingIndicatorEnabledOnChannelList}\n isMessageReceiptStatusEnabledOnChannelList={isMessageReceiptStatusEnabledOnChannelList}\n >\n <div className=\"sendbird-app__wrap\">\n <div className=\"sendbird-app__channellist-wrap\">\n <ChannelList\n allowProfileEdit={allowProfileEdit}\n onProfileEditSuccess={onProfileEditSuccess}\n disableAutoSelect={disableAutoSelect}\n onChannelSelect={(channel) => {\n setStartingPoint(null);\n setHighlightedMessage(null);\n if (channel?.url) {\n setCurrentChannelUrl(channel.url);\n } else {\n setCurrentChannelUrl('');\n }\n }}\n />\n </div>\n <div\n className={`\n ${showSettings ? 'sendbird-app__conversation--settings-open' : ''}\n ${showSearch ? 'sendbird-app__conversation--search-open' : ''}\n sendbird-app__conversation-wrap\n `}\n >\n <Channel\n channelUrl={currentChannelUrl}\n onChatHeaderActionClick={() => {\n setShowSearch(false);\n setShowSettings(!showSettings);\n }}\n onSearchClick={() => {\n setShowSettings(false);\n setShowSearch(!showSearch);\n }}\n showSearchIcon={showSearchIcon}\n startingPoint={startingPoint}\n highlightedMessage={highlightedMessage}\n isReactionEnabled={isReactionEnabled}\n replyType={replyType}\n isMessageGroupingEnabled={isMessageGroupingEnabled}\n />\n </div>\n {showSettings && (\n <div className=\"sendbird-app__settingspanel-wrap\">\n <ChannelSettings\n className=\"sendbird-channel-settings\"\n channelUrl={currentChannelUrl}\n onCloseClick={() => {\n setShowSettings(false);\n }}\n />\n </div>\n )}\n {showSearch && (\n <div className=\"sendbird-app__searchpanel-wrap\">\n <MessageSearchPannel\n channelUrl={currentChannelUrl}\n onResultClick={(message) => {\n if (message.messageId === highlightedMessage) {\n setHighlightedMessage(null);\n setTimeout(() => {\n setHighlightedMessage(message.messageId);\n });\n } else {\n setStartingPoint(message.createdAt);\n setHighlightedMessage(message.messageId);\n }\n }}\n onCloseClick={() => {\n setShowSearch(false);\n }}\n />\n </div>\n )}\n </div>\n </Sendbird>\n );\n}\n\nApp.propTypes = {\n appId: PropTypes.string.isRequired,\n userId: PropTypes.string.isRequired,\n accessToken: PropTypes.string,\n theme: PropTypes.string,\n userListQuery: PropTypes.func,\n nickname: PropTypes.string,\n profileUrl: PropTypes.string,\n allowProfileEdit: PropTypes.bool,\n disableUserProfile: PropTypes.bool,\n renderUserProfile: PropTypes.func,\n onProfileEditSuccess: PropTypes.func,\n dateLocale: PropTypes.shape({}),\n config: PropTypes.shape({\n // None Error Warning Info 'All/Debug'\n logLevel: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n ]),\n }),\n isReactionEnabled: PropTypes.bool,\n replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),\n showSearchIcon: PropTypes.bool,\n isMessageGroupingEnabled: PropTypes.bool,\n stringSet: PropTypes.objectOf(PropTypes.string),\n colorSet: PropTypes.objectOf(PropTypes.string),\n imageCompression: PropTypes.shape({\n compressionRate: PropTypes.number,\n resizingWidth: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n resizingHeight: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]),\n }),\n disableAutoSelect: PropTypes.bool,\n isMentionEnabled: PropTypes.bool,\n isTypingIndicatorEnabledOnChannelList: PropTypes.bool,\n isMessageReceiptStatusEnabledOnChannelList: PropTypes.bool,\n};\n\nApp.defaultProps = {\n accessToken: '',\n theme: 'light',\n nickname: '',\n profileUrl: '',\n userListQuery: null,\n dateLocale: null,\n allowProfileEdit: false,\n onProfileEditSuccess: null,\n disableUserProfile: false,\n showSearchIcon: false,\n renderUserProfile: null,\n config: {},\n isReactionEnabled: true,\n isMentionEnabled: false,\n replyType: 'NONE',\n isMessageGroupingEnabled: true,\n stringSet: null,\n colorSet: null,\n imageCompression: {},\n disableAutoSelect: false,\n isTypingIndicatorEnabledOnChannelList: false,\n isMessageReceiptStatusEnabledOnChannelList: false,\n};\n"],"names":["App","props","appId","userId","accessToken","theme","userListQuery","nickname","profileUrl","dateLocale","config","isReactionEnabled","isMentionEnabled","replyType","isMessageGroupingEnabled","colorSet","stringSet","allowProfileEdit","disableUserProfile","renderUserProfile","showSearchIcon","onProfileEditSuccess","imageCompression","disableAutoSelect","isTypingIndicatorEnabledOnChannelList","isMessageReceiptStatusEnabledOnChannelList","useState","currentChannelUrl","setCurrentChannelUrl","showSettings","setShowSettings","showSearch","setShowSearch","highlightedMessage","setHighlightedMessage","startingPoint","setStartingPoint","React","channel","url","message","messageId","setTimeout","createdAt","propTypes","PropTypes","string","isRequired","func","bool","shape","logLevel","oneOfType","arrayOf","oneOf","objectOf","compressionRate","number","resizingWidth","resizingHeight","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBe,SAASA,GAAT,CAAaC,KAAb,EAAoB;AACjC,MACEC,KADF,GAyBID,KAzBJ,CACEC,KADF;AAAA,MAEEC,MAFF,GAyBIF,KAzBJ,CAEEE,MAFF;AAAA,MAGEC,WAHF,GAyBIH,KAzBJ,CAGEG,WAHF;AAAA,MAIEC,KAJF,GAyBIJ,KAzBJ,CAIEI,KAJF;AAAA,MAKEC,aALF,GAyBIL,KAzBJ,CAKEK,aALF;AAAA,MAMEC,QANF,GAyBIN,KAzBJ,CAMEM,QANF;AAAA,MAOEC,UAPF,GAyBIP,KAzBJ,CAOEO,UAPF;AAAA,MAQEC,UARF,GAyBIR,KAzBJ,CAQEQ,UARF;AAAA,sBAyBIR,KAzBJ,CASES,MATF;AAAA,MASEA,MATF,8BASW,EATX;AAAA,MAUEC,iBAVF,GAyBIV,KAzBJ,CAUEU,iBAVF;AAAA,MAWEC,gBAXF,GAyBIX,KAzBJ,CAW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C,EAAAA,iBAAiB,EAAE,IAbF;AAcjBC,EAAAA,gBAAgB,EAAE,KAdD;AAejBC,EAAAA,SAAS,EAAE,MAfM;AAgBjBC,EAAAA,wBAAwB,EAAE,IAhBT;AAiBjBE,EAAAA,SAAS,EAAE,IAjBM;AAkBjBD,EAAAA,QAAQ,EAAE,IAlBO;AAmBjBO,EAAAA,gBAAgB,EAAE,EAnBD;AAoBjBC,EAAAA,iBAAiB,EAAE,KApBF;AAqBjBC,EAAAA,qCAAqC,EAAE,KArBtB;AAsBjBC,EAAAA,0CAA0C,EAAE;AAtB3B,CAAnB;;;;"}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Changelog - v3
|
|
2
2
|
|
|
3
|
-
## [v3.0.0
|
|
3
|
+
## [v3.0.0] (July 12 2022)
|
|
4
4
|
|
|
5
5
|
Features:
|
|
6
|
-
*
|
|
6
|
+
* Support `modules` and `components` in the UIKit
|
|
7
|
+
* Upgraded to `@sendbird/chat@4`
|
|
7
8
|
* Support react 18
|
|
9
|
+
* See the Migration Guide for Converting V2 to V3. [[details](./MIGRATION_v2-to-v3.md)]
|
|
10
|
+
* See more details and breaking changes. [[details](./CHANGELOG.md)]
|
|
8
11
|
|
|
9
12
|
## [3.0.0-beta.6] (June 03 2022)
|
|
10
13
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-a5b58199.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import IconButton from '../../ui/IconButton.js';
|
|
5
5
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
6
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b1ec8b9.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
9
|
-
import '../../_rollupPluginBabelHelpers-
|
|
8
|
+
import { u as useChannelContext } from '../../ChannelProvider-3d7434a2.js';
|
|
9
|
+
import '../../_rollupPluginBabelHelpers-abbcef5e.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../../stringSet-
|
|
11
|
+
import '../../stringSet-130b5cd9.js';
|
|
12
12
|
import '../../ui/Avatar.js';
|
|
13
|
-
import '../../tslib.es6-
|
|
13
|
+
import '../../tslib.es6-41c9b7f1.js';
|
|
14
14
|
import '../../ui/ImageRenderer.js';
|
|
15
|
-
import '../../uuid-
|
|
16
|
-
import '../../utils-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../
|
|
19
|
-
import '../../UserProfileContext-
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../topics-
|
|
22
|
-
import '../../index-
|
|
23
|
-
import '../../compareIds-
|
|
24
|
-
import '../../const-
|
|
25
|
-
import '../../groupChannel-
|
|
26
|
-
import '../../__bundle-7dfccc8c-
|
|
15
|
+
import '../../uuid-cd809c2c.js';
|
|
16
|
+
import '../../utils-24f3af49.js';
|
|
17
|
+
import '../../index-75f9b6fc.js';
|
|
18
|
+
import '../../withSendbird.js';
|
|
19
|
+
import '../../UserProfileContext-d0287bb6.js';
|
|
20
|
+
import '../../index-cff868a8.js';
|
|
21
|
+
import '../../topics-2773df5c.js';
|
|
22
|
+
import '../../index-aa13fe48.js';
|
|
23
|
+
import '../../compareIds-e48fb1d0.js';
|
|
24
|
+
import '../../const-d3857731.js';
|
|
25
|
+
import '../../groupChannel-009a07f0.js';
|
|
26
|
+
import '../../__bundle-7dfccc8c-36a58bd4.js';
|
|
27
27
|
import '../../ui/ContextMenu.js';
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import '../../ui/SortByRow.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
3
|
+
import { u as useChannelContext, M as MARK_AS_READ } from '../../ChannelProvider-3d7434a2.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-39d43f7e.js';
|
|
5
5
|
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
6
|
import ChatHeader from './ChannelHeader.js';
|
|
7
7
|
import MessageList from './MessageList.js';
|
|
@@ -9,48 +9,47 @@ import TypingIndicator from './TypingIndicator.js';
|
|
|
9
9
|
import FrozenNotification from './FrozenNotification.js';
|
|
10
10
|
import UnreadCount from './UnreadCount.js';
|
|
11
11
|
import MessageInputWrapper from './MessageInput.js';
|
|
12
|
-
import '../../
|
|
13
|
-
import '../../_rollupPluginBabelHelpers-
|
|
14
|
-
import '../../UserProfileContext-
|
|
12
|
+
import '../../withSendbird.js';
|
|
13
|
+
import '../../_rollupPluginBabelHelpers-abbcef5e.js';
|
|
14
|
+
import '../../UserProfileContext-d0287bb6.js';
|
|
15
15
|
import 'prop-types';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../topics-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../tslib.es6-
|
|
21
|
-
import '../../compareIds-
|
|
22
|
-
import '../../const-
|
|
23
|
-
import '../../groupChannel-
|
|
24
|
-
import '../../__bundle-7dfccc8c-
|
|
25
|
-
import '../../uuid-
|
|
16
|
+
import '../../index-cff868a8.js';
|
|
17
|
+
import '../../index-75f9b6fc.js';
|
|
18
|
+
import '../../topics-2773df5c.js';
|
|
19
|
+
import '../../index-aa13fe48.js';
|
|
20
|
+
import '../../tslib.es6-41c9b7f1.js';
|
|
21
|
+
import '../../compareIds-e48fb1d0.js';
|
|
22
|
+
import '../../const-d3857731.js';
|
|
23
|
+
import '../../groupChannel-009a07f0.js';
|
|
24
|
+
import '../../__bundle-7dfccc8c-36a58bd4.js';
|
|
25
|
+
import '../../uuid-cd809c2c.js';
|
|
26
26
|
import '../../ui/ContextMenu.js';
|
|
27
|
-
import '../../index-
|
|
28
|
-
import '../../stringSet-
|
|
27
|
+
import '../../index-a5b58199.js';
|
|
28
|
+
import '../../stringSet-130b5cd9.js';
|
|
29
29
|
import 'react-dom';
|
|
30
30
|
import '../../ui/SortByRow.js';
|
|
31
31
|
import '../../ui/ReactionButton.js';
|
|
32
32
|
import '../../ui/ImageRenderer.js';
|
|
33
33
|
import '../../ui/Icon.js';
|
|
34
34
|
import '../../ui/Loader.js';
|
|
35
|
-
import '../../LocalizationContext-
|
|
35
|
+
import '../../LocalizationContext-4b1ec8b9.js';
|
|
36
36
|
import '../../ui/IconButton.js';
|
|
37
37
|
import '../../ui/ChannelAvatar.js';
|
|
38
38
|
import '../../ui/Avatar.js';
|
|
39
|
-
import '../../utils-
|
|
40
|
-
import '../../index-
|
|
39
|
+
import '../../utils-24f3af49.js';
|
|
40
|
+
import '../../index-7b2f13ef.js';
|
|
41
41
|
import './Message.js';
|
|
42
42
|
import './SuggestedMentionList.js';
|
|
43
|
-
import '../../const-
|
|
43
|
+
import '../../const-6fe536c0.js';
|
|
44
44
|
import '../../ui/DateSeparator.js';
|
|
45
|
-
import '../../color-
|
|
45
|
+
import '../../color-61b0f496.js';
|
|
46
46
|
import '../../ui/MessageInput.js';
|
|
47
|
-
import '
|
|
48
|
-
import '../../index-b574cc8e.js';
|
|
47
|
+
import '../../index-d6e33a8d.js';
|
|
49
48
|
import '../../ui/MentionUserLabel.js';
|
|
50
49
|
import '../../ui/MessageContent.js';
|
|
51
50
|
import '../../ui/UserProfile.js';
|
|
52
51
|
import '../../sendbirdSelectors.js';
|
|
53
|
-
import '../../utils-
|
|
52
|
+
import '../../utils-ce5e300e.js';
|
|
54
53
|
import '../../ui/MessageStatus.js';
|
|
55
54
|
import '../../ui/MessageItemMenu.js';
|
|
56
55
|
import '../../ui/MessageItemReactionMenu.js';
|
|
@@ -70,7 +69,7 @@ import '../../ui/OGMessageItemBody.js';
|
|
|
70
69
|
import '../../ui/UnknownMessageItemBody.js';
|
|
71
70
|
import '../../ui/QuoteMessage.js';
|
|
72
71
|
import './FileViewer.js';
|
|
73
|
-
import '../../index-
|
|
72
|
+
import '../../index-87af3e7d.js';
|
|
74
73
|
import './RemoveMessageModal.js';
|
|
75
74
|
import '../../ui/Modal.js';
|
|
76
75
|
import '../../ui/QuoteMessageInput.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n currentGroupChannel?.markAsRead();\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n renderPlaceholderLoader?: () => React.ReactNode;\n renderPlaceholderInvalid?: () => React.ReactNode;\n renderPlaceholderEmpty?: () => React.ReactNode;\n renderChannelHeader?: () => React.ReactNode;\n renderMessage?: (props: RenderMessageProps) => React.ReactNode;\n renderMessageInput?: () => React.ReactNode;\n renderTypingIndicator?: () => React.ReactNode;\n renderCustomSeparator?: () => React.ReactNode;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n currentGroupChannel?.markAsRead();\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","_g","useState","unreadCount","setUnreadCount","useEffect","unreadMessageCount","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","PlaceHolderTypes","NO_CHANNELS","WRONG","info","ChannelHeader","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel","LOADING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BMA,SAAS,GAA6B,SAAtCA,SAAsC,CAACC,EAAD;;;MAC1CC,uBAAuB;MACvBC,wBAAwB;MACxBC,sBAAsB;MACtBC,mBAAmB;MACnBC,aAAa;MACbC,kBAAkB;MAClBC,qBAAqB;MACrBC,qBAAqB;;AAEf,MAAAC,KAWFC,iBAAiB,EAXf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,gBAFN;AAAA,MAGJC,SAAS,eAHL;AAAA,MAIJC,WAAW,iBAJP;AAAA,MAKJC,OAAO,aALH;AAAA,MAMJC,mBAAmB,yBANf;AAAA,MAOJC,oBAAoB,0BAPhB;AAAA,MAQJC,uBAAuB,6BARnB;AAAA,MASJC,SAAS,eATL;AAAA,MAUJC,kBAAkB,wBAVd;;AAYA,MAAAC,KAAgCC,QAAQ,CAAC,CAAD,CAAxC;AAAA,MAACC,WAAW,QAAZ;AAAA,MAAcC,cAAc,QAA5B;;AACNC,EAAAA,SAAS,CAAC;AACRD,IAAAA,cAAc,CAACb,mBAAmB,SAAnB,IAAAA,mBAAmB,WAAnB,SAAA,GAAAA,mBAAmB,CAAEe,kBAAtB,CAAd;AACD,GAFQ,EAEN,CAACf,mBAAmB,SAAnB,IAAAA,mBAAmB,WAAnB,SAAA,GAAAA,mBAAmB,CAAEe,kBAAtB,CAFM,CAAT;AAIA,MAAMC,WAAW,GAAGC,uBAAuB,EAA3C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,IAbN,EAkCIH,OAAO,gBAEHqB;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAAnC,uBAAuB,SAAvB,IAAAA,uBAAuB,WAAvB,SAAA,GAAAA,uBAAuB,EAAvB,kBACEmC,6BAAC,WAAD;AAAa,IAAA,IAAI,EAAEC,gBAAgB,CAACe;AAApC,IAHN,CAFG,gBAUHhB,6BAAC,WAAD;AACE,IAAA,aAAa,EAAE/B,aADjB;AAEE,IAAA,sBAAsB,EAAEF,sBAF1B;AAGE,IAAA,qBAAqB,EAAEK;AAHzB,IA5CR,eAmDE4B;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA9B,kBAAkB,SAAlB,IAAAA,kBAAkB,WAAlB,SAAA,GAAAA,kBAAkB,EAAlB,kBACE8B,6BAAC,mBAAD,OAHN,eAMEA;AAAK,IAAA,SAAS,EAAC;AAAf,KAEI,CAAA7B,qBAAqB,SAArB,IAAAA,qBAAqB,WAArB,SAAA,GAAAA,qBAAqB,EAArB,kBACE6B,6BAAC,eAAD,OAHN,EAOI,CAACD,QAAD,iBACEC,6BAAC,gBAAD,OARN,CANF,CAnDF,CADF;AAyED;;;;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import Avatar from '../../ui/Avatar.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-a5b58199.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
|
-
import { M as MODAL_ROOT } from '../../index-
|
|
7
|
-
import { A as isSupportedFileView, B as isVideo, C as isImage } from '../../index-
|
|
6
|
+
import { M as MODAL_ROOT } from '../../index-87af3e7d.js';
|
|
7
|
+
import { A as isSupportedFileView, B as isVideo, C as isImage } from '../../index-aa13fe48.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
10
|
-
import '../../tslib.es6-
|
|
9
|
+
import { u as useChannelContext } from '../../ChannelProvider-3d7434a2.js';
|
|
10
|
+
import '../../tslib.es6-41c9b7f1.js';
|
|
11
11
|
import '../../ui/ImageRenderer.js';
|
|
12
|
-
import '../../_rollupPluginBabelHelpers-
|
|
12
|
+
import '../../_rollupPluginBabelHelpers-abbcef5e.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../../uuid-
|
|
15
|
-
import '../../stringSet-
|
|
16
|
-
import '../../
|
|
17
|
-
import '../../UserProfileContext-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../topics-
|
|
21
|
-
import '../../compareIds-
|
|
22
|
-
import '../../const-
|
|
23
|
-
import '../../groupChannel-
|
|
24
|
-
import '../../__bundle-7dfccc8c-
|
|
14
|
+
import '../../uuid-cd809c2c.js';
|
|
15
|
+
import '../../stringSet-130b5cd9.js';
|
|
16
|
+
import '../../withSendbird.js';
|
|
17
|
+
import '../../UserProfileContext-d0287bb6.js';
|
|
18
|
+
import '../../index-cff868a8.js';
|
|
19
|
+
import '../../index-75f9b6fc.js';
|
|
20
|
+
import '../../topics-2773df5c.js';
|
|
21
|
+
import '../../compareIds-e48fb1d0.js';
|
|
22
|
+
import '../../const-d3857731.js';
|
|
23
|
+
import '../../groupChannel-009a07f0.js';
|
|
24
|
+
import '../../__bundle-7dfccc8c-36a58bd4.js';
|
|
25
25
|
import '../../ui/ContextMenu.js';
|
|
26
26
|
import '../../ui/SortByRow.js';
|
|
27
27
|
import '../../ui/ReactionButton.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography } from '../../index-
|
|
4
|
-
import '../../stringSet-
|
|
5
|
-
import '../../index-
|
|
6
|
-
import '../../_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b1ec8b9.js';
|
|
3
|
+
import { L as Label, a as LabelTypography } from '../../index-a5b58199.js';
|
|
4
|
+
import '../../stringSet-130b5cd9.js';
|
|
5
|
+
import '../../index-75f9b6fc.js';
|
|
6
|
+
import '../../_rollupPluginBabelHelpers-abbcef5e.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
|
|
9
9
|
var FrozenNotification = function FrozenNotification() {
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-41c9b7f1.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useLayoutEffect, useMemo } from 'react';
|
|
3
|
-
import { f as format } from '../../index-
|
|
3
|
+
import { f as format } from '../../index-cff868a8.js';
|
|
4
4
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
|
-
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-
|
|
7
|
-
import { k as getClassName } from '../../index-
|
|
8
|
-
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-
|
|
6
|
+
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-3d7434a2.js';
|
|
7
|
+
import { k as getClassName } from '../../index-aa13fe48.js';
|
|
8
|
+
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-d3857731.js';
|
|
9
9
|
import DateSeparator from '../../ui/DateSeparator.js';
|
|
10
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
10
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-a5b58199.js';
|
|
11
11
|
import MessageInput from '../../ui/MessageInput.js';
|
|
12
12
|
import MessageContent from '../../ui/MessageContent.js';
|
|
13
13
|
import FileViewer from './FileViewer.js';
|
|
14
14
|
import RemoveMessage from './RemoveMessageModal.js';
|
|
15
|
-
import { M as MessageInputKeys } from '../../const-
|
|
16
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
17
|
-
import '../../index-
|
|
15
|
+
import { M as MessageInputKeys } from '../../const-6fe536c0.js';
|
|
16
|
+
import { u as useLocalization } from '../../LocalizationContext-4b1ec8b9.js';
|
|
17
|
+
import '../../index-75f9b6fc.js';
|
|
18
18
|
import '../../ui/Icon.js';
|
|
19
|
-
import '../../_rollupPluginBabelHelpers-
|
|
19
|
+
import '../../_rollupPluginBabelHelpers-abbcef5e.js';
|
|
20
20
|
import 'prop-types';
|
|
21
21
|
import '../../ui/Avatar.js';
|
|
22
22
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
24
|
-
import '../../
|
|
25
|
-
import '../../UserProfileContext-
|
|
26
|
-
import '../../topics-
|
|
27
|
-
import '../../compareIds-
|
|
28
|
-
import '../../groupChannel-
|
|
29
|
-
import '../../__bundle-7dfccc8c-
|
|
23
|
+
import '../../uuid-cd809c2c.js';
|
|
24
|
+
import '../../withSendbird.js';
|
|
25
|
+
import '../../UserProfileContext-d0287bb6.js';
|
|
26
|
+
import '../../topics-2773df5c.js';
|
|
27
|
+
import '../../compareIds-e48fb1d0.js';
|
|
28
|
+
import '../../groupChannel-009a07f0.js';
|
|
29
|
+
import '../../__bundle-7dfccc8c-36a58bd4.js';
|
|
30
30
|
import '../../ui/ContextMenu.js';
|
|
31
31
|
import 'react-dom';
|
|
32
32
|
import '../../ui/SortByRow.js';
|
|
33
|
-
import '../../stringSet-
|
|
33
|
+
import '../../stringSet-130b5cd9.js';
|
|
34
34
|
import '../../ui/ReactionButton.js';
|
|
35
|
-
import '../../color-
|
|
36
|
-
import 'stream';
|
|
35
|
+
import '../../color-61b0f496.js';
|
|
37
36
|
import '../../ui/IconButton.js';
|
|
38
|
-
import '../../index-
|
|
37
|
+
import '../../index-d6e33a8d.js';
|
|
39
38
|
import '../../ui/MentionUserLabel.js';
|
|
40
39
|
import '../../ui/UserProfile.js';
|
|
41
40
|
import '../../sendbirdSelectors.js';
|
|
42
|
-
import '../../utils-
|
|
41
|
+
import '../../utils-ce5e300e.js';
|
|
43
42
|
import '../../ui/MessageStatus.js';
|
|
44
43
|
import '../../ui/Loader.js';
|
|
45
44
|
import '../../ui/MessageItemMenu.js';
|
|
@@ -59,7 +58,7 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
59
58
|
import '../../ui/OGMessageItemBody.js';
|
|
60
59
|
import '../../ui/UnknownMessageItemBody.js';
|
|
61
60
|
import '../../ui/QuoteMessage.js';
|
|
62
|
-
import '../../index-
|
|
61
|
+
import '../../index-87af3e7d.js';
|
|
63
62
|
import '../../ui/Modal.js';
|
|
64
63
|
|
|
65
64
|
var Message = function Message(props) {
|