@sendbird/uikit-react 3.0.0-beta.3 → 3.0.0-beta.4
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/CHANGELOG.md +65 -0
- package/README.md +129 -0
- package/dist/index.css +0 -2
- package/dist/index.css.map +1 -1
- package/package.json +29 -7
- package/App.js +0 -313
- package/App.js.map +0 -1
- package/Channel/components/ChannelHeader.js +0 -117
- package/Channel/components/ChannelHeader.js.map +0 -1
- package/Channel/components/ChannelUI.js +0 -179
- package/Channel/components/ChannelUI.js.map +0 -1
- package/Channel/components/FileViewer.js +0 -151
- package/Channel/components/FileViewer.js.map +0 -1
- package/Channel/components/FrozenNotification.js +0 -20
- package/Channel/components/FrozenNotification.js.map +0 -1
- package/Channel/components/Message.js +0 -355
- package/Channel/components/Message.js.map +0 -1
- package/Channel/components/MessageInput.js +0 -202
- package/Channel/components/MessageInput.js.map +0 -1
- package/Channel/components/MessageList.js +0 -239
- package/Channel/components/MessageList.js.map +0 -1
- package/Channel/components/RemoveMessageModal.js +0 -53
- package/Channel/components/RemoveMessageModal.js.map +0 -1
- package/Channel/components/SuggestedMentionList.js +0 -250
- package/Channel/components/SuggestedMentionList.js.map +0 -1
- package/Channel/components/TypingIndicator.js +0 -98
- package/Channel/components/TypingIndicator.js.map +0 -1
- package/Channel/components/UnreadCount.js +0 -41
- package/Channel/components/UnreadCount.js.map +0 -1
- package/Channel/context.js +0 -24
- package/Channel/context.js.map +0 -1
- package/Channel.js +0 -106
- package/Channel.js.map +0 -1
- package/ChannelList/components/AddChannel.js +0 -70
- package/ChannelList/components/AddChannel.js.map +0 -1
- package/ChannelList/components/ChannelListHeader.js +0 -62
- package/ChannelList/components/ChannelListHeader.js.map +0 -1
- package/ChannelList/components/ChannelListUI.js +0 -236
- package/ChannelList/components/ChannelListUI.js.map +0 -1
- package/ChannelList/components/ChannelPreview.js +0 -211
- package/ChannelList/components/ChannelPreview.js.map +0 -1
- package/ChannelList/components/ChannelPreviewAction.js +0 -131
- package/ChannelList/components/ChannelPreviewAction.js.map +0 -1
- package/ChannelList/context.js +0 -13
- package/ChannelList/context.js.map +0 -1
- package/ChannelList.js +0 -89
- package/ChannelList.js.map +0 -1
- package/ChannelListProvider-d602a166.js +0 -926
- package/ChannelListProvider-d602a166.js.map +0 -1
- package/ChannelProvider-cf8fc05a.js +0 -2114
- package/ChannelProvider-cf8fc05a.js.map +0 -1
- package/ChannelSettings/components/AdminPanel.js +0 -905
- package/ChannelSettings/components/AdminPanel.js.map +0 -1
- package/ChannelSettings/components/ChannelProfile.js +0 -102
- package/ChannelSettings/components/ChannelProfile.js.map +0 -1
- package/ChannelSettings/components/ChannelSettingsUI.js +0 -152
- package/ChannelSettings/components/ChannelSettingsUI.js.map +0 -1
- package/ChannelSettings/components/EditDetailsModal.js +0 -154
- package/ChannelSettings/components/EditDetailsModal.js.map +0 -1
- package/ChannelSettings/components/LeaveChannel.js +0 -53
- package/ChannelSettings/components/LeaveChannel.js.map +0 -1
- package/ChannelSettings/components/UserListItem.js +0 -105
- package/ChannelSettings/components/UserListItem.js.map +0 -1
- package/ChannelSettings/components/UserPanel.js +0 -79
- package/ChannelSettings/components/UserPanel.js.map +0 -1
- package/ChannelSettings/context.js +0 -93
- package/ChannelSettings/context.js.map +0 -1
- package/ChannelSettings.js +0 -71
- package/ChannelSettings.js.map +0 -1
- package/CreateChannel/components/CreateChannelUI.js +0 -53
- package/CreateChannel/components/CreateChannelUI.js.map +0 -1
- package/CreateChannel/components/InviteMembers.js +0 -184
- package/CreateChannel/components/InviteMembers.js.map +0 -1
- package/CreateChannel/components/SelectChannelType.js +0 -131
- package/CreateChannel/components/SelectChannelType.js.map +0 -1
- package/CreateChannel/context.js +0 -8
- package/CreateChannel/context.js.map +0 -1
- package/CreateChannel.js +0 -53
- package/CreateChannel.js.map +0 -1
- package/CreateChannelProvider-3f3dafed.js +0 -53
- package/CreateChannelProvider-3f3dafed.js.map +0 -1
- package/EditUserProfile/components/EditUserProfileUI.js +0 -26
- package/EditUserProfile/components/EditUserProfileUI.js.map +0 -1
- package/EditUserProfile/context.js +0 -27
- package/EditUserProfile/context.js.map +0 -1
- package/EditUserProfile.js +0 -39
- package/EditUserProfile.js.map +0 -1
- package/LocalizationContext-b970a73c.js +0 -22
- package/LocalizationContext-b970a73c.js.map +0 -1
- package/MemberList-9d29bee4.js +0 -425
- package/MemberList-9d29bee4.js.map +0 -1
- package/MessageSearch/components/MessageSearchUI.js +0 -151
- package/MessageSearch/components/MessageSearchUI.js.map +0 -1
- package/MessageSearch/context.js +0 -392
- package/MessageSearch/context.js.map +0 -1
- package/MessageSearch.js +0 -146
- package/MessageSearch.js.map +0 -1
- package/OpenChannel/components/FrozenChannelNotification.js +0 -20
- package/OpenChannel/components/FrozenChannelNotification.js.map +0 -1
- package/OpenChannel/components/OpenChannelHeader.js +0 -78
- package/OpenChannel/components/OpenChannelHeader.js.map +0 -1
- package/OpenChannel/components/OpenChannelInput.js +0 -56
- package/OpenChannel/components/OpenChannelInput.js.map +0 -1
- package/OpenChannel/components/OpenChannelMessage.js +0 -282
- package/OpenChannel/components/OpenChannelMessage.js.map +0 -1
- package/OpenChannel/components/OpenChannelMessageList.js +0 -157
- package/OpenChannel/components/OpenChannelMessageList.js.map +0 -1
- package/OpenChannel/components/OpenChannelUI.js +0 -109
- package/OpenChannel/components/OpenChannelUI.js.map +0 -1
- package/OpenChannel/context.js +0 -14
- package/OpenChannel/context.js.map +0 -1
- package/OpenChannel.js +0 -80
- package/OpenChannel.js.map +0 -1
- package/OpenChannelProvider-821fb008.js +0 -2011
- package/OpenChannelProvider-821fb008.js.map +0 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +0 -149
- package/OpenChannelSettings/components/EditDetailsModal.js.map +0 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +0 -81
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +0 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +0 -104
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +0 -1
- package/OpenChannelSettings/components/OperatorUI.js +0 -184
- package/OpenChannelSettings/components/OperatorUI.js.map +0 -1
- package/OpenChannelSettings/components/ParticipantUI.js +0 -172
- package/OpenChannelSettings/components/ParticipantUI.js.map +0 -1
- package/OpenChannelSettings/context.js +0 -64
- package/OpenChannelSettings/context.js.map +0 -1
- package/OpenChannelSettings.js +0 -64
- package/OpenChannelSettings.js.map +0 -1
- package/SendbirdProvider.js +0 -762
- package/SendbirdProvider.js.map +0 -1
- package/UserProfileContext-f4ff4291.js +0 -38
- package/UserProfileContext-f4ff4291.js.map +0 -1
- package/_rollupPluginBabelHelpers-6bf18550.js +0 -233
- package/_rollupPluginBabelHelpers-6bf18550.js.map +0 -1
- package/actionTypes-8e320ded.js +0 -6
- package/actionTypes-8e320ded.js.map +0 -1
- package/cjs/App.js +0 -320
- package/cjs/App.js.map +0 -1
- package/cjs/Channel/components/ChannelHeader.js +0 -123
- package/cjs/Channel/components/ChannelHeader.js.map +0 -1
- package/cjs/Channel/components/ChannelUI.js +0 -185
- package/cjs/Channel/components/ChannelUI.js.map +0 -1
- package/cjs/Channel/components/FileViewer.js +0 -160
- package/cjs/Channel/components/FileViewer.js.map +0 -1
- package/cjs/Channel/components/FrozenNotification.js +0 -26
- package/cjs/Channel/components/FrozenNotification.js.map +0 -1
- package/cjs/Channel/components/Message.js +0 -361
- package/cjs/Channel/components/Message.js.map +0 -1
- package/cjs/Channel/components/MessageInput.js +0 -208
- package/cjs/Channel/components/MessageInput.js.map +0 -1
- package/cjs/Channel/components/MessageList.js +0 -245
- package/cjs/Channel/components/MessageList.js.map +0 -1
- package/cjs/Channel/components/RemoveMessageModal.js +0 -59
- package/cjs/Channel/components/RemoveMessageModal.js.map +0 -1
- package/cjs/Channel/components/SuggestedMentionList.js +0 -256
- package/cjs/Channel/components/SuggestedMentionList.js.map +0 -1
- package/cjs/Channel/components/TypingIndicator.js +0 -107
- package/cjs/Channel/components/TypingIndicator.js.map +0 -1
- package/cjs/Channel/components/UnreadCount.js +0 -47
- package/cjs/Channel/components/UnreadCount.js.map +0 -1
- package/cjs/Channel/context.js +0 -33
- package/cjs/Channel/context.js.map +0 -1
- package/cjs/Channel.js +0 -112
- package/cjs/Channel.js.map +0 -1
- package/cjs/ChannelList/components/AddChannel.js +0 -79
- package/cjs/ChannelList/components/AddChannel.js.map +0 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +0 -68
- package/cjs/ChannelList/components/ChannelListHeader.js.map +0 -1
- package/cjs/ChannelList/components/ChannelListUI.js +0 -242
- package/cjs/ChannelList/components/ChannelListUI.js.map +0 -1
- package/cjs/ChannelList/components/ChannelPreview.js +0 -217
- package/cjs/ChannelList/components/ChannelPreview.js.map +0 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +0 -138
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +0 -1
- package/cjs/ChannelList/context.js +0 -22
- package/cjs/ChannelList/context.js.map +0 -1
- package/cjs/ChannelList.js +0 -95
- package/cjs/ChannelList.js.map +0 -1
- package/cjs/ChannelListProvider-64db9f70.js +0 -938
- package/cjs/ChannelListProvider-64db9f70.js.map +0 -1
- package/cjs/ChannelProvider-5e8e33b1.js +0 -2127
- package/cjs/ChannelProvider-5e8e33b1.js.map +0 -1
- package/cjs/ChannelSettings/components/AdminPanel.js +0 -911
- package/cjs/ChannelSettings/components/AdminPanel.js.map +0 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +0 -108
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +0 -1
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +0 -158
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +0 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +0 -160
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +0 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +0 -59
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +0 -1
- package/cjs/ChannelSettings/components/UserListItem.js +0 -111
- package/cjs/ChannelSettings/components/UserListItem.js.map +0 -1
- package/cjs/ChannelSettings/components/UserPanel.js +0 -85
- package/cjs/ChannelSettings/components/UserPanel.js.map +0 -1
- package/cjs/ChannelSettings/context.js +0 -102
- package/cjs/ChannelSettings/context.js.map +0 -1
- package/cjs/ChannelSettings.js +0 -77
- package/cjs/ChannelSettings.js.map +0 -1
- package/cjs/CreateChannel/components/CreateChannelUI.js +0 -59
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +0 -1
- package/cjs/CreateChannel/components/InviteMembers.js +0 -190
- package/cjs/CreateChannel/components/InviteMembers.js.map +0 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +0 -137
- package/cjs/CreateChannel/components/SelectChannelType.js.map +0 -1
- package/cjs/CreateChannel/context.js +0 -17
- package/cjs/CreateChannel/context.js.map +0 -1
- package/cjs/CreateChannel.js +0 -59
- package/cjs/CreateChannel.js.map +0 -1
- package/cjs/CreateChannelProvider-dcf7f906.js +0 -60
- package/cjs/CreateChannelProvider-dcf7f906.js.map +0 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +0 -32
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +0 -1
- package/cjs/EditUserProfile/context.js +0 -36
- package/cjs/EditUserProfile/context.js.map +0 -1
- package/cjs/EditUserProfile.js +0 -45
- package/cjs/EditUserProfile.js.map +0 -1
- package/cjs/LocalizationContext-382a9ef1.js +0 -30
- package/cjs/LocalizationContext-382a9ef1.js.map +0 -1
- package/cjs/MemberList-03a241cd.js +0 -431
- package/cjs/MemberList-03a241cd.js.map +0 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +0 -160
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +0 -1
- package/cjs/MessageSearch/context.js +0 -401
- package/cjs/MessageSearch/context.js.map +0 -1
- package/cjs/MessageSearch.js +0 -152
- package/cjs/MessageSearch.js.map +0 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +0 -26
- package/cjs/OpenChannel/components/FrozenChannelNotification.js.map +0 -1
- package/cjs/OpenChannel/components/OpenChannelHeader.js +0 -84
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +0 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +0 -62
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +0 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +0 -288
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +0 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +0 -163
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +0 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +0 -115
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +0 -1
- package/cjs/OpenChannel/context.js +0 -23
- package/cjs/OpenChannel/context.js.map +0 -1
- package/cjs/OpenChannel.js +0 -86
- package/cjs/OpenChannel.js.map +0 -1
- package/cjs/OpenChannelProvider-9000ccb9.js +0 -2020
- package/cjs/OpenChannelProvider-9000ccb9.js.map +0 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +0 -155
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +0 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +0 -87
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +0 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +0 -110
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +0 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +0 -194
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +0 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +0 -178
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +0 -1
- package/cjs/OpenChannelSettings/context.js +0 -73
- package/cjs/OpenChannelSettings/context.js.map +0 -1
- package/cjs/OpenChannelSettings.js +0 -70
- package/cjs/OpenChannelSettings.js.map +0 -1
- package/cjs/SendbirdProvider.js +0 -771
- package/cjs/SendbirdProvider.js.map +0 -1
- package/cjs/UserProfileContext-0b7ef11a.js +0 -46
- package/cjs/UserProfileContext-0b7ef11a.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-6193d45d.js +0 -243
- package/cjs/_rollupPluginBabelHelpers-6193d45d.js.map +0 -1
- package/cjs/actionTypes-092bc172.js +0 -10
- package/cjs/actionTypes-092bc172.js.map +0 -1
- package/cjs/color-1816dacf.js +0 -42
- package/cjs/color-1816dacf.js.map +0 -1
- package/cjs/compareIds-e9bca8c4.js +0 -20
- package/cjs/compareIds-e9bca8c4.js.map +0 -1
- package/cjs/const-c65837c1.js +0 -22
- package/cjs/const-c65837c1.js.map +0 -1
- package/cjs/const-d9f4d880.js +0 -14
- package/cjs/const-d9f4d880.js.map +0 -1
- package/cjs/context-6ebf3379.js +0 -19
- package/cjs/context-6ebf3379.js.map +0 -1
- package/cjs/index-01072ac9.js +0 -97
- package/cjs/index-01072ac9.js.map +0 -1
- package/cjs/index-20a06ed6.js +0 -514
- package/cjs/index-20a06ed6.js.map +0 -1
- package/cjs/index-212a11f2.js +0 -722
- package/cjs/index-212a11f2.js.map +0 -1
- package/cjs/index-2faa2f93.js +0 -9
- package/cjs/index-2faa2f93.js.map +0 -1
- package/cjs/index-4f40f311.js +0 -67
- package/cjs/index-4f40f311.js.map +0 -1
- package/cjs/index-75453415.js +0 -54
- package/cjs/index-75453415.js.map +0 -1
- package/cjs/index-948426a8.js +0 -284
- package/cjs/index-948426a8.js.map +0 -1
- package/cjs/index-a2ce047a.js +0 -1880
- package/cjs/index-a2ce047a.js.map +0 -1
- package/cjs/index-d57081d1.js +0 -175
- package/cjs/index-d57081d1.js.map +0 -1
- package/cjs/index-e63da805.js +0 -130
- package/cjs/index-e63da805.js.map +0 -1
- package/cjs/index-f1971e28.js +0 -142
- package/cjs/index-f1971e28.js.map +0 -1
- package/cjs/index.css +0 -4465
- package/cjs/index.css.map +0 -1
- package/cjs/index.js +0 -162
- package/cjs/index.js.map +0 -1
- package/cjs/openChannelUtils-16f29ba2.js +0 -92
- package/cjs/openChannelUtils-16f29ba2.js.map +0 -1
- package/cjs/sendBirdSelectors.js +0 -741
- package/cjs/sendBirdSelectors.js.map +0 -1
- package/cjs/stringSet-b9ea6eef.js +0 -118
- package/cjs/stringSet-b9ea6eef.js.map +0 -1
- package/cjs/topics-11048db8.js +0 -18
- package/cjs/topics-11048db8.js.map +0 -1
- package/cjs/tslib.es6-07dd6257.js +0 -40
- package/cjs/tslib.es6-07dd6257.js.map +0 -1
- package/cjs/ui/Accordion.js +0 -74
- package/cjs/ui/Accordion.js.map +0 -1
- package/cjs/ui/AccordionGroup.js +0 -32
- package/cjs/ui/AccordionGroup.js.map +0 -1
- package/cjs/ui/AdminMessage.js +0 -44
- package/cjs/ui/AdminMessage.js.map +0 -1
- package/cjs/ui/Avatar.js +0 -226
- package/cjs/ui/Avatar.js.map +0 -1
- package/cjs/ui/Badge.js +0 -45
- package/cjs/ui/Badge.js.map +0 -1
- package/cjs/ui/Button.js +0 -17
- package/cjs/ui/Button.js.map +0 -1
- package/cjs/ui/ChannelAvatar.js +0 -59
- package/cjs/ui/ChannelAvatar.js.map +0 -1
- package/cjs/ui/ChannelPreview.js +0 -201
- package/cjs/ui/ChannelPreview.js.map +0 -1
- package/cjs/ui/ChatHeader.js +0 -145
- package/cjs/ui/ChatHeader.js.map +0 -1
- package/cjs/ui/Checkbox.js +0 -49
- package/cjs/ui/Checkbox.js.map +0 -1
- package/cjs/ui/ConnectionStatus.js +0 -34
- package/cjs/ui/ConnectionStatus.js.map +0 -1
- package/cjs/ui/ContextMenu.js +0 -431
- package/cjs/ui/ContextMenu.js.map +0 -1
- package/cjs/ui/DateSeparator.js +0 -44
- package/cjs/ui/DateSeparator.js.map +0 -1
- package/cjs/ui/Dropdown.js +0 -107
- package/cjs/ui/Dropdown.js.map +0 -1
- package/cjs/ui/EmojiReactions.js +0 -127
- package/cjs/ui/EmojiReactions.js.map +0 -1
- package/cjs/ui/FileMessageItemBody.js +0 -57
- package/cjs/ui/FileMessageItemBody.js.map +0 -1
- package/cjs/ui/FileViewer.js +0 -174
- package/cjs/ui/FileViewer.js.map +0 -1
- package/cjs/ui/Icon.js +0 -1462
- package/cjs/ui/Icon.js.map +0 -1
- package/cjs/ui/IconButton.js +0 -83
- package/cjs/ui/IconButton.js.map +0 -1
- package/cjs/ui/ImageRenderer.js +0 -138
- package/cjs/ui/ImageRenderer.js.map +0 -1
- package/cjs/ui/Input.js +0 -74
- package/cjs/ui/Input.js.map +0 -1
- package/cjs/ui/Label.js +0 -17
- package/cjs/ui/Label.js.map +0 -1
- package/cjs/ui/LinkLabel.js +0 -51
- package/cjs/ui/LinkLabel.js.map +0 -1
- package/cjs/ui/Loader.js +0 -44
- package/cjs/ui/Loader.js.map +0 -1
- package/cjs/ui/MentionUserLabel.js +0 -25
- package/cjs/ui/MentionUserLabel.js.map +0 -1
- package/cjs/ui/MessageContent.js +0 -291
- package/cjs/ui/MessageContent.js.map +0 -1
- package/cjs/ui/MessageInput.js +0 -5048
- package/cjs/ui/MessageInput.js.map +0 -1
- package/cjs/ui/MessageItemMenu.js +0 -141
- package/cjs/ui/MessageItemMenu.js.map +0 -1
- package/cjs/ui/MessageItemReactionMenu.js +0 -112
- package/cjs/ui/MessageItemReactionMenu.js.map +0 -1
- package/cjs/ui/MessageSearchFileItem.js +0 -130
- package/cjs/ui/MessageSearchFileItem.js.map +0 -1
- package/cjs/ui/MessageSearchItem.js +0 -93
- package/cjs/ui/MessageSearchItem.js.map +0 -1
- package/cjs/ui/MessageStatus.js +0 -66
- package/cjs/ui/MessageStatus.js.map +0 -1
- package/cjs/ui/Modal.js +0 -140
- package/cjs/ui/Modal.js.map +0 -1
- package/cjs/ui/MutedAvatarOverlay.js +0 -40
- package/cjs/ui/MutedAvatarOverlay.js.map +0 -1
- package/cjs/ui/OGMessageItemBody.js +0 -107
- package/cjs/ui/OGMessageItemBody.js.map +0 -1
- package/cjs/ui/OpenChannelAdminMessage.js +0 -27
- package/cjs/ui/OpenChannelAdminMessage.js.map +0 -1
- package/cjs/ui/OpenChannelAvatar.js +0 -41
- package/cjs/ui/OpenChannelAvatar.js.map +0 -1
- package/cjs/ui/OpenChannelMessageContent.js +0 -14
- package/cjs/ui/OpenChannelMessageContent.js.map +0 -1
- package/cjs/ui/OpenchannelConversationHeader.js +0 -73
- package/cjs/ui/OpenchannelConversationHeader.js.map +0 -1
- package/cjs/ui/OpenchannelFileMessage.js +0 -230
- package/cjs/ui/OpenchannelFileMessage.js.map +0 -1
- package/cjs/ui/OpenchannelOGMessage.js +0 -345
- package/cjs/ui/OpenchannelOGMessage.js.map +0 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +0 -305
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +0 -1
- package/cjs/ui/OpenchannelUserMessage.js +0 -264
- package/cjs/ui/OpenchannelUserMessage.js.map +0 -1
- package/cjs/ui/PlaceHolder.js +0 -20
- package/cjs/ui/PlaceHolder.js.map +0 -1
- package/cjs/ui/QuoteMessage.js +0 -131
- package/cjs/ui/QuoteMessage.js.map +0 -1
- package/cjs/ui/QuoteMessageInput.js +0 -99
- package/cjs/ui/QuoteMessageInput.js.map +0 -1
- package/cjs/ui/ReactionBadge.js +0 -68
- package/cjs/ui/ReactionBadge.js.map +0 -1
- package/cjs/ui/ReactionButton.js +0 -55
- package/cjs/ui/ReactionButton.js.map +0 -1
- package/cjs/ui/SortByRow.js +0 -57
- package/cjs/ui/SortByRow.js.map +0 -1
- package/cjs/ui/TextButton.js +0 -45
- package/cjs/ui/TextButton.js.map +0 -1
- package/cjs/ui/TextMessageItemBody.js +0 -62
- package/cjs/ui/TextMessageItemBody.js.map +0 -1
- package/cjs/ui/ThumbnailMessageItemBody.js +0 -82
- package/cjs/ui/ThumbnailMessageItemBody.js.map +0 -1
- package/cjs/ui/Tooltip.js +0 -35
- package/cjs/ui/Tooltip.js.map +0 -1
- package/cjs/ui/TooltipWrapper.js +0 -65
- package/cjs/ui/TooltipWrapper.js.map +0 -1
- package/cjs/ui/UnknownMessageItemBody.js +0 -41
- package/cjs/ui/UnknownMessageItemBody.js.map +0 -1
- package/cjs/ui/UserListItem.js +0 -158
- package/cjs/ui/UserListItem.js.map +0 -1
- package/cjs/ui/UserProfile.js +0 -87
- package/cjs/ui/UserProfile.js.map +0 -1
- package/cjs/useSendbirdStateContext.js +0 -22
- package/cjs/useSendbirdStateContext.js.map +0 -1
- package/cjs/utils-3240365f.js +0 -32
- package/cjs/utils-3240365f.js.map +0 -1
- package/cjs/utils-53d332a6.js +0 -38
- package/cjs/utils-53d332a6.js.map +0 -1
- package/cjs/utils-94ae6cec.js +0 -6
- package/cjs/utils-94ae6cec.js.map +0 -1
- package/cjs/uuid-172844fb.js +0 -19
- package/cjs/uuid-172844fb.js.map +0 -1
- package/cjs/withSendBird.js +0 -35
- package/cjs/withSendBird.js.map +0 -1
- package/color-38dc84d3.js +0 -39
- package/color-38dc84d3.js.map +0 -1
- package/compareIds-f01e0c3c.js +0 -18
- package/compareIds-f01e0c3c.js.map +0 -1
- package/const-b6685801.js +0 -8
- package/const-b6685801.js.map +0 -1
- package/const-d46f09a1.js +0 -18
- package/const-d46f09a1.js.map +0 -1
- package/context-b5168bd0.js +0 -12
- package/context-b5168bd0.js.map +0 -1
- package/index-1c2588aa.js +0 -1873
- package/index-1c2588aa.js.map +0 -1
- package/index-2dce3a04.js +0 -87
- package/index-2dce3a04.js.map +0 -1
- package/index-3bd4a058.js +0 -168
- package/index-3bd4a058.js.map +0 -1
- package/index-62fd2db7.js +0 -48
- package/index-62fd2db7.js.map +0 -1
- package/index-6381b534.js +0 -512
- package/index-6381b534.js.map +0 -1
- package/index-9afb4d01.js +0 -64
- package/index-9afb4d01.js.map +0 -1
- package/index-a6675155.js +0 -280
- package/index-a6675155.js.map +0 -1
- package/index-b12b270e.js +0 -121
- package/index-b12b270e.js.map +0 -1
- package/index-d0b30cd5.js +0 -131
- package/index-d0b30cd5.js.map +0 -1
- package/index-d0fe8fe1.js +0 -7
- package/index-d0fe8fe1.js.map +0 -1
- package/index-e6d0889d.js +0 -682
- package/index-e6d0889d.js.map +0 -1
- package/index.d.ts +0 -1829
- package/index.js +0 -143
- package/index.js.map +0 -1
- package/openChannelUtils-22ed0258.js +0 -81
- package/openChannelUtils-22ed0258.js.map +0 -1
- package/sendBirdSelectors.js +0 -713
- package/sendBirdSelectors.js.map +0 -1
- package/stringSet-2e6c1d2c.js +0 -116
- package/stringSet-2e6c1d2c.js.map +0 -1
- package/topics-67738aac.js +0 -10
- package/topics-67738aac.js.map +0 -1
- package/tslib.es6-b6e567bd.js +0 -38
- package/tslib.es6-b6e567bd.js.map +0 -1
- package/ui/Accordion.js +0 -65
- package/ui/Accordion.js.map +0 -1
- package/ui/AccordionGroup.js +0 -26
- package/ui/AccordionGroup.js.map +0 -1
- package/ui/AdminMessage.js +0 -37
- package/ui/AdminMessage.js.map +0 -1
- package/ui/Avatar.js +0 -217
- package/ui/Avatar.js.map +0 -1
- package/ui/Badge.js +0 -38
- package/ui/Badge.js.map +0 -1
- package/ui/Button.js +0 -7
- package/ui/Button.js.map +0 -1
- package/ui/ChannelAvatar.js +0 -53
- package/ui/ChannelAvatar.js.map +0 -1
- package/ui/ChannelPreview.js +0 -194
- package/ui/ChannelPreview.js.map +0 -1
- package/ui/ChatHeader.js +0 -138
- package/ui/ChatHeader.js.map +0 -1
- package/ui/Checkbox.js +0 -42
- package/ui/Checkbox.js.map +0 -1
- package/ui/ConnectionStatus.js +0 -28
- package/ui/ConnectionStatus.js.map +0 -1
- package/ui/ContextMenu.js +0 -417
- package/ui/ContextMenu.js.map +0 -1
- package/ui/DateSeparator.js +0 -37
- package/ui/DateSeparator.js.map +0 -1
- package/ui/Dropdown.js +0 -97
- package/ui/Dropdown.js.map +0 -1
- package/ui/EmojiReactions.js +0 -121
- package/ui/EmojiReactions.js.map +0 -1
- package/ui/FileMessageItemBody.js +0 -51
- package/ui/FileMessageItemBody.js.map +0 -1
- package/ui/FileViewer.js +0 -164
- package/ui/FileViewer.js.map +0 -1
- package/ui/Icon.js +0 -1432
- package/ui/Icon.js.map +0 -1
- package/ui/IconButton.js +0 -76
- package/ui/IconButton.js.map +0 -1
- package/ui/ImageRenderer.js +0 -131
- package/ui/ImageRenderer.js.map +0 -1
- package/ui/Input.js +0 -64
- package/ui/Input.js.map +0 -1
- package/ui/Label.js +0 -6
- package/ui/Label.js.map +0 -1
- package/ui/LinkLabel.js +0 -40
- package/ui/LinkLabel.js.map +0 -1
- package/ui/Loader.js +0 -37
- package/ui/Loader.js.map +0 -1
- package/ui/MentionUserLabel.js +0 -19
- package/ui/MentionUserLabel.js.map +0 -1
- package/ui/MessageContent.js +0 -285
- package/ui/MessageContent.js.map +0 -1
- package/ui/MessageInput.js +0 -5040
- package/ui/MessageInput.js.map +0 -1
- package/ui/MessageItemMenu.js +0 -135
- package/ui/MessageItemMenu.js.map +0 -1
- package/ui/MessageItemReactionMenu.js +0 -106
- package/ui/MessageItemReactionMenu.js.map +0 -1
- package/ui/MessageSearchFileItem.js +0 -124
- package/ui/MessageSearchFileItem.js.map +0 -1
- package/ui/MessageSearchItem.js +0 -87
- package/ui/MessageSearchItem.js.map +0 -1
- package/ui/MessageStatus.js +0 -57
- package/ui/MessageStatus.js.map +0 -1
- package/ui/Modal.js +0 -128
- package/ui/Modal.js.map +0 -1
- package/ui/MutedAvatarOverlay.js +0 -34
- package/ui/MutedAvatarOverlay.js.map +0 -1
- package/ui/OGMessageItemBody.js +0 -101
- package/ui/OGMessageItemBody.js.map +0 -1
- package/ui/OpenChannelAdminMessage.js +0 -21
- package/ui/OpenChannelAdminMessage.js.map +0 -1
- package/ui/OpenChannelAvatar.js +0 -35
- package/ui/OpenChannelAvatar.js.map +0 -1
- package/ui/OpenChannelMessageContent.js +0 -8
- package/ui/OpenChannelMessageContent.js.map +0 -1
- package/ui/OpenchannelConversationHeader.js +0 -67
- package/ui/OpenchannelConversationHeader.js.map +0 -1
- package/ui/OpenchannelFileMessage.js +0 -224
- package/ui/OpenchannelFileMessage.js.map +0 -1
- package/ui/OpenchannelOGMessage.js +0 -339
- package/ui/OpenchannelOGMessage.js.map +0 -1
- package/ui/OpenchannelThumbnailMessage.js +0 -299
- package/ui/OpenchannelThumbnailMessage.js.map +0 -1
- package/ui/OpenchannelUserMessage.js +0 -258
- package/ui/OpenchannelUserMessage.js.map +0 -1
- package/ui/PlaceHolder.js +0 -11
- package/ui/PlaceHolder.js.map +0 -1
- package/ui/QuoteMessage.js +0 -125
- package/ui/QuoteMessage.js.map +0 -1
- package/ui/QuoteMessageInput.js +0 -93
- package/ui/QuoteMessageInput.js.map +0 -1
- package/ui/ReactionBadge.js +0 -61
- package/ui/ReactionBadge.js.map +0 -1
- package/ui/ReactionButton.js +0 -48
- package/ui/ReactionButton.js.map +0 -1
- package/ui/SortByRow.js +0 -50
- package/ui/SortByRow.js.map +0 -1
- package/ui/TextButton.js +0 -38
- package/ui/TextButton.js.map +0 -1
- package/ui/TextMessageItemBody.js +0 -56
- package/ui/TextMessageItemBody.js.map +0 -1
- package/ui/ThumbnailMessageItemBody.js +0 -76
- package/ui/ThumbnailMessageItemBody.js.map +0 -1
- package/ui/Tooltip.js +0 -28
- package/ui/Tooltip.js.map +0 -1
- package/ui/TooltipWrapper.js +0 -58
- package/ui/TooltipWrapper.js.map +0 -1
- package/ui/UnknownMessageItemBody.js +0 -35
- package/ui/UnknownMessageItemBody.js.map +0 -1
- package/ui/UserListItem.js +0 -151
- package/ui/UserListItem.js.map +0 -1
- package/ui/UserProfile.js +0 -81
- package/ui/UserProfile.js.map +0 -1
- package/useSendbirdStateContext.js +0 -20
- package/useSendbirdStateContext.js.map +0 -1
- package/utils-04c291d8.js +0 -34
- package/utils-04c291d8.js.map +0 -1
- package/utils-28de36e9.js +0 -30
- package/utils-28de36e9.js.map +0 -1
- package/utils-f5c9ef64.js +0 -4
- package/utils-f5c9ef64.js.map +0 -1
- package/uuid-0139dc21.js +0 -17
- package/uuid-0139dc21.js.map +0 -1
- package/withSendBird.js +0 -26
- package/withSendBird.js.map +0 -1
package/App.js
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-6bf18550.js';
|
|
2
|
-
import React__default, { useState } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import Sendbird from './SendbirdProvider.js';
|
|
5
|
-
import ChannelList from './ChannelList.js';
|
|
6
|
-
import Channel from './Channel.js';
|
|
7
|
-
import ChannelSettings from './ChannelSettings.js';
|
|
8
|
-
import MessageSearchPannel from './MessageSearch.js';
|
|
9
|
-
import './withSendBird.js';
|
|
10
|
-
import 'sendbird';
|
|
11
|
-
import './actionTypes-8e320ded.js';
|
|
12
|
-
import './index-e6d0889d.js';
|
|
13
|
-
import './tslib.es6-b6e567bd.js';
|
|
14
|
-
import 'css-vars-ponyfill';
|
|
15
|
-
import './uuid-0139dc21.js';
|
|
16
|
-
import './LocalizationContext-b970a73c.js';
|
|
17
|
-
import './stringSet-2e6c1d2c.js';
|
|
18
|
-
import './index-6381b534.js';
|
|
19
|
-
import './ChannelListProvider-d602a166.js';
|
|
20
|
-
import './topics-67738aac.js';
|
|
21
|
-
import './utils-f5c9ef64.js';
|
|
22
|
-
import './UserProfileContext-f4ff4291.js';
|
|
23
|
-
import './useSendbirdStateContext.js';
|
|
24
|
-
import './ChannelList/components/ChannelListUI.js';
|
|
25
|
-
import './ChannelList/components/ChannelListHeader.js';
|
|
26
|
-
import './index-d0b30cd5.js';
|
|
27
|
-
import './ui/IconButton.js';
|
|
28
|
-
import './ui/Avatar.js';
|
|
29
|
-
import './ui/ImageRenderer.js';
|
|
30
|
-
import './ui/Icon.js';
|
|
31
|
-
import './ChannelList/components/AddChannel.js';
|
|
32
|
-
import './CreateChannel.js';
|
|
33
|
-
import './CreateChannel/components/CreateChannelUI.js';
|
|
34
|
-
import './CreateChannelProvider-3f3dafed.js';
|
|
35
|
-
import './sendBirdSelectors.js';
|
|
36
|
-
import './CreateChannel/components/InviteMembers.js';
|
|
37
|
-
import './ui/Modal.js';
|
|
38
|
-
import 'react-dom';
|
|
39
|
-
import './index-d0fe8fe1.js';
|
|
40
|
-
import './index-2dce3a04.js';
|
|
41
|
-
import './ui/UserListItem.js';
|
|
42
|
-
import './ui/MutedAvatarOverlay.js';
|
|
43
|
-
import './ui/Checkbox.js';
|
|
44
|
-
import './ui/UserProfile.js';
|
|
45
|
-
import './ui/ContextMenu.js';
|
|
46
|
-
import './ui/SortByRow.js';
|
|
47
|
-
import './CreateChannel/components/SelectChannelType.js';
|
|
48
|
-
import './ChannelList/components/ChannelPreview.js';
|
|
49
|
-
import './ui/ChannelAvatar.js';
|
|
50
|
-
import './utils-04c291d8.js';
|
|
51
|
-
import './ui/Badge.js';
|
|
52
|
-
import './index-a6675155.js';
|
|
53
|
-
import './index-9afb4d01.js';
|
|
54
|
-
import './index-1c2588aa.js';
|
|
55
|
-
import './ui/MentionUserLabel.js';
|
|
56
|
-
import './Channel/components/TypingIndicator.js';
|
|
57
|
-
import './ChannelProvider-cf8fc05a.js';
|
|
58
|
-
import './compareIds-f01e0c3c.js';
|
|
59
|
-
import './const-b6685801.js';
|
|
60
|
-
import './ui/ReactionButton.js';
|
|
61
|
-
import './ui/MessageStatus.js';
|
|
62
|
-
import './ui/Loader.js';
|
|
63
|
-
import './ChannelList/components/ChannelPreviewAction.js';
|
|
64
|
-
import './EditUserProfile.js';
|
|
65
|
-
import './index-3bd4a058.js';
|
|
66
|
-
import './ui/Input.js';
|
|
67
|
-
import './ui/TextButton.js';
|
|
68
|
-
import './color-38dc84d3.js';
|
|
69
|
-
import './index-b12b270e.js';
|
|
70
|
-
import './Channel/components/ChannelUI.js';
|
|
71
|
-
import './ui/ConnectionStatus.js';
|
|
72
|
-
import './Channel/components/ChannelHeader.js';
|
|
73
|
-
import './Channel/components/MessageList.js';
|
|
74
|
-
import './Channel/components/Message.js';
|
|
75
|
-
import './Channel/components/SuggestedMentionList.js';
|
|
76
|
-
import './const-d46f09a1.js';
|
|
77
|
-
import './ui/DateSeparator.js';
|
|
78
|
-
import './ui/MessageInput.js';
|
|
79
|
-
import 'stream';
|
|
80
|
-
import './ui/MessageContent.js';
|
|
81
|
-
import './ui/MessageItemMenu.js';
|
|
82
|
-
import './ui/MessageItemReactionMenu.js';
|
|
83
|
-
import './ui/EmojiReactions.js';
|
|
84
|
-
import './ui/Tooltip.js';
|
|
85
|
-
import './ui/TooltipWrapper.js';
|
|
86
|
-
import './ui/ReactionBadge.js';
|
|
87
|
-
import './ui/AdminMessage.js';
|
|
88
|
-
import './ui/TextMessageItemBody.js';
|
|
89
|
-
import './index-62fd2db7.js';
|
|
90
|
-
import './ui/LinkLabel.js';
|
|
91
|
-
import './ui/FileMessageItemBody.js';
|
|
92
|
-
import './ui/ThumbnailMessageItemBody.js';
|
|
93
|
-
import './ui/OGMessageItemBody.js';
|
|
94
|
-
import './ui/UnknownMessageItemBody.js';
|
|
95
|
-
import './ui/QuoteMessage.js';
|
|
96
|
-
import './Channel/components/FileViewer.js';
|
|
97
|
-
import './Channel/components/RemoveMessageModal.js';
|
|
98
|
-
import './Channel/components/FrozenNotification.js';
|
|
99
|
-
import './Channel/components/UnreadCount.js';
|
|
100
|
-
import './Channel/components/MessageInput.js';
|
|
101
|
-
import './ui/QuoteMessageInput.js';
|
|
102
|
-
import './ChannelSettings/components/ChannelSettingsUI.js';
|
|
103
|
-
import './ChannelSettings/context.js';
|
|
104
|
-
import './ChannelSettings/components/ChannelProfile.js';
|
|
105
|
-
import './ChannelSettings/components/EditDetailsModal.js';
|
|
106
|
-
import './ChannelSettings/components/AdminPanel.js';
|
|
107
|
-
import './ui/Accordion.js';
|
|
108
|
-
import './ui/AccordionGroup.js';
|
|
109
|
-
import './context-b5168bd0.js';
|
|
110
|
-
import './ChannelSettings/components/UserListItem.js';
|
|
111
|
-
import './MemberList-9d29bee4.js';
|
|
112
|
-
import './ChannelSettings/components/LeaveChannel.js';
|
|
113
|
-
import './ChannelSettings/components/UserPanel.js';
|
|
114
|
-
import './MessageSearch/components/MessageSearchUI.js';
|
|
115
|
-
import './MessageSearch/context.js';
|
|
116
|
-
import './ui/MessageSearchItem.js';
|
|
117
|
-
import './ui/MessageSearchFileItem.js';
|
|
118
|
-
|
|
119
|
-
function App(props) {
|
|
120
|
-
var appId = props.appId,
|
|
121
|
-
userId = props.userId,
|
|
122
|
-
accessToken = props.accessToken,
|
|
123
|
-
theme = props.theme,
|
|
124
|
-
userListQuery = props.userListQuery,
|
|
125
|
-
nickname = props.nickname,
|
|
126
|
-
profileUrl = props.profileUrl,
|
|
127
|
-
dateLocale = props.dateLocale,
|
|
128
|
-
_props$config = props.config,
|
|
129
|
-
config = _props$config === void 0 ? {} : _props$config,
|
|
130
|
-
useReaction = props.useReaction,
|
|
131
|
-
isMentionEnabled = props.isMentionEnabled,
|
|
132
|
-
replyType = props.replyType,
|
|
133
|
-
useMessageGrouping = props.useMessageGrouping,
|
|
134
|
-
colorSet = props.colorSet,
|
|
135
|
-
stringSet = props.stringSet,
|
|
136
|
-
allowProfileEdit = props.allowProfileEdit,
|
|
137
|
-
disableUserProfile = props.disableUserProfile,
|
|
138
|
-
renderUserProfile = props.renderUserProfile,
|
|
139
|
-
showSearchIcon = props.showSearchIcon,
|
|
140
|
-
onProfileEditSuccess = props.onProfileEditSuccess,
|
|
141
|
-
imageCompression = props.imageCompression,
|
|
142
|
-
disableAutoSelect = props.disableAutoSelect,
|
|
143
|
-
isTypingIndicatorEnabledOnChannelList = props.isTypingIndicatorEnabledOnChannelList,
|
|
144
|
-
isMessageReceiptStatusEnabledOnChannelList = props.isMessageReceiptStatusEnabledOnChannelList;
|
|
145
|
-
|
|
146
|
-
var _useState = useState(null),
|
|
147
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
148
|
-
currentChannelUrl = _useState2[0],
|
|
149
|
-
setCurrentChannelUrl = _useState2[1];
|
|
150
|
-
|
|
151
|
-
var _useState3 = useState(false),
|
|
152
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
153
|
-
showSettings = _useState4[0],
|
|
154
|
-
setShowSettings = _useState4[1];
|
|
155
|
-
|
|
156
|
-
var _useState5 = useState(false),
|
|
157
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
158
|
-
showSearch = _useState6[0],
|
|
159
|
-
setShowSearch = _useState6[1];
|
|
160
|
-
|
|
161
|
-
var _useState7 = useState(null),
|
|
162
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
163
|
-
highlightedMessage = _useState8[0],
|
|
164
|
-
setHighlightedMessage = _useState8[1];
|
|
165
|
-
|
|
166
|
-
var _useState9 = useState(null),
|
|
167
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
168
|
-
startingPoint = _useState10[0],
|
|
169
|
-
setStartingPoint = _useState10[1];
|
|
170
|
-
|
|
171
|
-
return /*#__PURE__*/React__default.createElement(Sendbird, {
|
|
172
|
-
stringSet: stringSet,
|
|
173
|
-
appId: appId,
|
|
174
|
-
userId: userId,
|
|
175
|
-
accessToken: accessToken,
|
|
176
|
-
theme: theme,
|
|
177
|
-
nickname: nickname,
|
|
178
|
-
profileUrl: profileUrl,
|
|
179
|
-
dateLocale: dateLocale,
|
|
180
|
-
userListQuery: userListQuery,
|
|
181
|
-
config: config,
|
|
182
|
-
colorSet: colorSet,
|
|
183
|
-
disableUserProfile: disableUserProfile,
|
|
184
|
-
renderUserProfile: renderUserProfile,
|
|
185
|
-
imageCompression: imageCompression,
|
|
186
|
-
useReaction: useReaction,
|
|
187
|
-
isMentionEnabled: isMentionEnabled,
|
|
188
|
-
isTypingIndicatorEnabledOnChannelList: isTypingIndicatorEnabledOnChannelList,
|
|
189
|
-
isMessageReceiptStatusEnabledOnChannelList: isMessageReceiptStatusEnabledOnChannelList
|
|
190
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
191
|
-
className: "sendbird-app__wrap"
|
|
192
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
193
|
-
className: "sendbird-app__channellist-wrap"
|
|
194
|
-
}, /*#__PURE__*/React__default.createElement(ChannelList, {
|
|
195
|
-
allowProfileEdit: allowProfileEdit,
|
|
196
|
-
onProfileEditSuccess: onProfileEditSuccess,
|
|
197
|
-
disableAutoSelect: disableAutoSelect,
|
|
198
|
-
onChannelSelect: function onChannelSelect(channel) {
|
|
199
|
-
setStartingPoint(null);
|
|
200
|
-
setHighlightedMessage(null);
|
|
201
|
-
|
|
202
|
-
if (channel && channel.url) {
|
|
203
|
-
setCurrentChannelUrl(channel.url);
|
|
204
|
-
} else {
|
|
205
|
-
setCurrentChannelUrl('');
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
209
|
-
className: "\n ".concat(showSettings ? 'sendbird-app__conversation--settings-open' : '', "\n ").concat(showSearch ? 'sendbird-app__conversation--search-open' : '', "\n sendbird-app__conversation-wrap\n ")
|
|
210
|
-
}, /*#__PURE__*/React__default.createElement(Channel, {
|
|
211
|
-
channelUrl: currentChannelUrl,
|
|
212
|
-
onChatHeaderActionClick: function onChatHeaderActionClick() {
|
|
213
|
-
setShowSearch(false);
|
|
214
|
-
setShowSettings(!showSettings);
|
|
215
|
-
},
|
|
216
|
-
onSearchClick: function onSearchClick() {
|
|
217
|
-
setShowSettings(false);
|
|
218
|
-
setShowSearch(!showSearch);
|
|
219
|
-
},
|
|
220
|
-
showSearchIcon: showSearchIcon,
|
|
221
|
-
startingPoint: startingPoint,
|
|
222
|
-
highlightedMessage: highlightedMessage,
|
|
223
|
-
useReaction: useReaction,
|
|
224
|
-
replyType: replyType,
|
|
225
|
-
useMessageGrouping: useMessageGrouping
|
|
226
|
-
})), showSettings && /*#__PURE__*/React__default.createElement("div", {
|
|
227
|
-
className: "sendbird-app__settingspanel-wrap"
|
|
228
|
-
}, /*#__PURE__*/React__default.createElement(ChannelSettings, {
|
|
229
|
-
className: "sendbird-channel-settings",
|
|
230
|
-
channelUrl: currentChannelUrl,
|
|
231
|
-
onCloseClick: function onCloseClick() {
|
|
232
|
-
setShowSettings(false);
|
|
233
|
-
}
|
|
234
|
-
})), showSearch && /*#__PURE__*/React__default.createElement("div", {
|
|
235
|
-
className: "sendbird-app__searchpanel-wrap"
|
|
236
|
-
}, /*#__PURE__*/React__default.createElement(MessageSearchPannel, {
|
|
237
|
-
channelUrl: currentChannelUrl,
|
|
238
|
-
onResultClick: function onResultClick(message) {
|
|
239
|
-
if (message.messageId === highlightedMessage) {
|
|
240
|
-
setHighlightedMessage(null);
|
|
241
|
-
setTimeout(function () {
|
|
242
|
-
setHighlightedMessage(message.messageId);
|
|
243
|
-
});
|
|
244
|
-
} else {
|
|
245
|
-
setStartingPoint(message.createdAt);
|
|
246
|
-
setHighlightedMessage(message.messageId);
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
onCloseClick: function onCloseClick() {
|
|
250
|
-
setShowSearch(false);
|
|
251
|
-
}
|
|
252
|
-
}))));
|
|
253
|
-
}
|
|
254
|
-
App.propTypes = {
|
|
255
|
-
appId: PropTypes.string.isRequired,
|
|
256
|
-
userId: PropTypes.string.isRequired,
|
|
257
|
-
accessToken: PropTypes.string,
|
|
258
|
-
theme: PropTypes.string,
|
|
259
|
-
userListQuery: PropTypes.func,
|
|
260
|
-
nickname: PropTypes.string,
|
|
261
|
-
profileUrl: PropTypes.string,
|
|
262
|
-
allowProfileEdit: PropTypes.bool,
|
|
263
|
-
disableUserProfile: PropTypes.bool,
|
|
264
|
-
renderUserProfile: PropTypes.func,
|
|
265
|
-
onProfileEditSuccess: PropTypes.func,
|
|
266
|
-
dateLocale: PropTypes.shape({}),
|
|
267
|
-
config: PropTypes.shape({
|
|
268
|
-
// None Error Warning Info 'All/Debug'
|
|
269
|
-
logLevel: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)])
|
|
270
|
-
}),
|
|
271
|
-
useReaction: PropTypes.bool,
|
|
272
|
-
replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),
|
|
273
|
-
showSearchIcon: PropTypes.bool,
|
|
274
|
-
useMessageGrouping: PropTypes.bool,
|
|
275
|
-
stringSet: PropTypes.objectOf(PropTypes.string),
|
|
276
|
-
colorSet: PropTypes.objectOf(PropTypes.string),
|
|
277
|
-
imageCompression: PropTypes.shape({
|
|
278
|
-
compressionRate: PropTypes.number,
|
|
279
|
-
resizingWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
280
|
-
resizingHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
281
|
-
}),
|
|
282
|
-
disableAutoSelect: PropTypes.bool,
|
|
283
|
-
isMentionEnabled: PropTypes.bool,
|
|
284
|
-
isTypingIndicatorEnabledOnChannelList: PropTypes.bool,
|
|
285
|
-
isMessageReceiptStatusEnabledOnChannelList: PropTypes.bool
|
|
286
|
-
};
|
|
287
|
-
App.defaultProps = {
|
|
288
|
-
accessToken: '',
|
|
289
|
-
theme: 'light',
|
|
290
|
-
nickname: '',
|
|
291
|
-
profileUrl: '',
|
|
292
|
-
userListQuery: null,
|
|
293
|
-
dateLocale: null,
|
|
294
|
-
allowProfileEdit: false,
|
|
295
|
-
onProfileEditSuccess: null,
|
|
296
|
-
disableUserProfile: false,
|
|
297
|
-
showSearchIcon: false,
|
|
298
|
-
renderUserProfile: null,
|
|
299
|
-
config: {},
|
|
300
|
-
useReaction: true,
|
|
301
|
-
isMentionEnabled: false,
|
|
302
|
-
replyType: 'NONE',
|
|
303
|
-
useMessageGrouping: true,
|
|
304
|
-
stringSet: null,
|
|
305
|
-
colorSet: null,
|
|
306
|
-
imageCompression: {},
|
|
307
|
-
disableAutoSelect: false,
|
|
308
|
-
isTypingIndicatorEnabledOnChannelList: false,
|
|
309
|
-
isMessageReceiptStatusEnabledOnChannelList: false
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export { App as default };
|
|
313
|
-
//# sourceMappingURL=App.js.map
|
package/App.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 useReaction,\n isMentionEnabled,\n replyType,\n useMessageGrouping,\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 useReaction={useReaction}\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 && 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 useReaction={useReaction}\n replyType={replyType}\n useMessageGrouping={useMessageGrouping}\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 useReaction: PropTypes.bool,\n replyType: PropTypes.oneOf(['NONE', 'QUOTE_REPLY', 'THREAD']),\n showSearchIcon: PropTypes.bool,\n useMessageGrouping: 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 useReaction: true,\n isMentionEnabled: false,\n replyType: 'NONE',\n useMessageGrouping: 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","useReaction","isMentionEnabled","replyType","useMessageGrouping","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,WAVF,GAyBIV,KAzBJ,CAUEU,WAVF;AAAA,MAWEC,gBAXF,GAyBIX,KAzBJ,CAWEW,gBAXF;AAAA,MAYEC,SAZF,GAyBIZ,KAzBJ,CAYEY,SAZF;AAAA,MAaEC,kBAbF,GAyBIb,KAzBJ,CAaEa,kBAbF;AAAA,MAcEC,QAdF,GAyBId,KAzBJ,CAcEc,QAdF;AAAA,MAeEC,SAfF,GAyBIf,KAzBJ,CAeEe,SAfF;AAAA,MAgBEC,gBAhBF,GAyBIhB,KAzBJ,CAgBEgB,gBAhBF;AAAA,MAiBEC,kBAjBF,GAyBIjB,KAzBJ,CAiBEiB,kBAjBF;AAAA,MAkBEC,iBAlBF,GAyBIlB,KAzBJ,CAkBEkB,iBAlBF;AAAA,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useContext } from 'react';
|
|
2
|
-
import { c as LabelStringSet, L as Label, a as LabelTypography, b as LabelColors } from '../../index-d0b30cd5.js';
|
|
3
|
-
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
|
-
import IconButton from '../../ui/IconButton.js';
|
|
5
|
-
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
6
|
-
import { a as LocalizationContext } from '../../LocalizationContext-b970a73c.js';
|
|
7
|
-
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import { u as useChannel } from '../../ChannelProvider-cf8fc05a.js';
|
|
9
|
-
import '../../_rollupPluginBabelHelpers-6bf18550.js';
|
|
10
|
-
import 'prop-types';
|
|
11
|
-
import '../../stringSet-2e6c1d2c.js';
|
|
12
|
-
import '../../ui/Avatar.js';
|
|
13
|
-
import '../../tslib.es6-b6e567bd.js';
|
|
14
|
-
import '../../ui/ImageRenderer.js';
|
|
15
|
-
import '../../uuid-0139dc21.js';
|
|
16
|
-
import '../../utils-04c291d8.js';
|
|
17
|
-
import '../../index-6381b534.js';
|
|
18
|
-
import '../../withSendBird.js';
|
|
19
|
-
import '../../UserProfileContext-f4ff4291.js';
|
|
20
|
-
import '../../index-1c2588aa.js';
|
|
21
|
-
import '../../topics-67738aac.js';
|
|
22
|
-
import '../../index-e6d0889d.js';
|
|
23
|
-
import '../../compareIds-f01e0c3c.js';
|
|
24
|
-
import '../../const-b6685801.js';
|
|
25
|
-
import '../../ui/ContextMenu.js';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import '../../ui/SortByRow.js';
|
|
28
|
-
import '../../ui/ReactionButton.js';
|
|
29
|
-
|
|
30
|
-
var getChannelTitle = function getChannelTitle(channel, currentUserId, stringSet) {
|
|
31
|
-
var LABEL_STRING_SET = stringSet || LabelStringSet;
|
|
32
|
-
|
|
33
|
-
if (!channel || !channel.name && !channel.members) {
|
|
34
|
-
return LABEL_STRING_SET.NO_TITLE;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (channel.name && channel.name !== 'Group Channel') {
|
|
38
|
-
return channel.name;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (channel.members.length === 1) {
|
|
42
|
-
return LABEL_STRING_SET.NO_MEMBERS;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return channel.members.filter(function (_a) {
|
|
46
|
-
var userId = _a.userId;
|
|
47
|
-
return userId !== currentUserId;
|
|
48
|
-
}).map(function (_a) {
|
|
49
|
-
var nickname = _a.nickname;
|
|
50
|
-
return nickname || LABEL_STRING_SET.NO_NAME;
|
|
51
|
-
}).join(', ');
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var ChatHeader = function ChatHeader() {
|
|
55
|
-
var _a, _b, _c;
|
|
56
|
-
|
|
57
|
-
var globalStore = useSendbirdStateContext();
|
|
58
|
-
var userId = (_a = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _a === void 0 ? void 0 : _a.userId;
|
|
59
|
-
var theme = (_b = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _b === void 0 ? void 0 : _b.theme;
|
|
60
|
-
var channelStore = useChannel();
|
|
61
|
-
var currentGroupChannel = channelStore.currentGroupChannel,
|
|
62
|
-
showSearchIcon = channelStore.showSearchIcon,
|
|
63
|
-
onSearchClick = channelStore.onSearchClick,
|
|
64
|
-
onChatHeaderActionClick = channelStore.onChatHeaderActionClick;
|
|
65
|
-
var subTitle = (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.members) && ((_c = currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.members) === null || _c === void 0 ? void 0 : _c.length) !== 2;
|
|
66
|
-
var isMuted = (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.myMutedState) === "muted";
|
|
67
|
-
var stringSet = useContext(LocalizationContext).stringSet;
|
|
68
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
69
|
-
className: "sendbird-chat-header"
|
|
70
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
71
|
-
className: "sendbird-chat-header__left"
|
|
72
|
-
}, /*#__PURE__*/React__default.createElement(ChannelAvatar, {
|
|
73
|
-
theme: theme,
|
|
74
|
-
channel: currentGroupChannel,
|
|
75
|
-
userId: userId,
|
|
76
|
-
height: 32,
|
|
77
|
-
width: 32
|
|
78
|
-
}), /*#__PURE__*/React__default.createElement(Label, {
|
|
79
|
-
className: "sendbird-chat-header__left__title",
|
|
80
|
-
type: LabelTypography.H_2,
|
|
81
|
-
color: LabelColors.ONBACKGROUND_1
|
|
82
|
-
}, getChannelTitle(currentGroupChannel, userId, stringSet)), /*#__PURE__*/React__default.createElement(Label, {
|
|
83
|
-
className: "sendbird-chat-header__left__subtitle",
|
|
84
|
-
type: LabelTypography.BODY_1,
|
|
85
|
-
color: LabelColors.ONBACKGROUND_2
|
|
86
|
-
}, subTitle)), /*#__PURE__*/React__default.createElement("div", {
|
|
87
|
-
className: "sendbird-chat-header__right"
|
|
88
|
-
}, (typeof isMuted === 'string' && isMuted === 'true' || typeof isMuted === 'boolean' && isMuted) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
89
|
-
className: "sendbird-chat-header__right__mute",
|
|
90
|
-
type: IconTypes.NOTIFICATIONS_OFF_FILLED,
|
|
91
|
-
width: "24px",
|
|
92
|
-
height: "24px"
|
|
93
|
-
}), showSearchIcon && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
94
|
-
className: "sendbird-chat-header__right__search",
|
|
95
|
-
width: "32px",
|
|
96
|
-
height: "32px",
|
|
97
|
-
onClick: onSearchClick
|
|
98
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
99
|
-
type: IconTypes.SEARCH,
|
|
100
|
-
fillColor: IconColors.PRIMARY,
|
|
101
|
-
width: "24px",
|
|
102
|
-
height: "24px"
|
|
103
|
-
})), /*#__PURE__*/React__default.createElement(IconButton, {
|
|
104
|
-
className: "sendbird-chat-header__right__info",
|
|
105
|
-
width: "32px",
|
|
106
|
-
height: "32px",
|
|
107
|
-
onClick: onChatHeaderActionClick
|
|
108
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
109
|
-
type: IconTypes.INFO,
|
|
110
|
-
fillColor: IconColors.PRIMARY,
|
|
111
|
-
width: "24px",
|
|
112
|
-
height: "24px"
|
|
113
|
-
}))));
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export { ChatHeader as default };
|
|
117
|
-
//# sourceMappingURL=ChannelHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelHeader.js","sources":["../../../src/smart-components/Channel/components/ChannelHeader/utils.ts","../../../src/smart-components/Channel/components/ChannelHeader/index.tsx"],"sourcesContent":["import SendBird from 'sendbird';\nimport { LabelStringSet } from '../../../../ui/Label';\n\nexport const getChannelTitle = (\n channel: SendBird.GroupChannel,\n currentUserId: string,\n stringSet: { [label: string]: string }\n ): string => {\n const LABEL_STRING_SET: { [label: string]: string } = stringSet || LabelStringSet;\n if (!channel || (!channel.name && !channel.members)) {\n return LABEL_STRING_SET.NO_TITLE;\n }\n if (channel.name && channel.name !== 'Group Channel') {\n return channel.name;\n }\n\n if (channel.members.length === 1) {\n return LABEL_STRING_SET.NO_MEMBERS;\n }\n\n return channel.members\n .filter(({ userId }) => userId !== currentUserId)\n .map(({ nickname }) => (nickname || LABEL_STRING_SET.NO_NAME))\n .join(', ');\n};\n","import './channel-header.scss';\nimport React, { useContext } from 'react';\n\nimport * as utils from './utils';\n\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\nimport IconButton from '../../../../ui/IconButton';\nimport ChannelAvatar from '../../../../ui/ChannelAvatar/index';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannel } from '../../context/ChannelProvider';\n\nconst ChatHeader: React.FC = () => {\n const globalStore = useSendbirdStateContext();\n const userId = globalStore?.config?.userId;\n const theme = globalStore?.config?.theme;\n\n const channelStore = useChannel();\n const {\n currentGroupChannel,\n showSearchIcon,\n onSearchClick,\n onChatHeaderActionClick,\n } = channelStore;\n const subTitle = (currentGroupChannel?.members\n && currentGroupChannel?.members?.length !== 2);\n const isMuted = currentGroupChannel?.myMutedState === \"muted\";\n\n const { stringSet } = useContext(LocalizationContext);\n return (\n <div className=\"sendbird-chat-header\">\n <div className=\"sendbird-chat-header__left\">\n <ChannelAvatar\n theme={theme}\n channel={currentGroupChannel}\n userId={userId}\n height={32}\n width={32}\n />\n <Label\n className=\"sendbird-chat-header__left__title\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {utils.getChannelTitle(currentGroupChannel, userId, stringSet)}\n </Label>\n <Label\n className=\"sendbird-chat-header__left__subtitle\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {subTitle}\n </Label>\n </div>\n <div className=\"sendbird-chat-header__right\">\n {\n ((typeof isMuted === 'string' && isMuted === 'true') || (typeof isMuted === 'boolean' && isMuted))\n && (\n <Icon\n className=\"sendbird-chat-header__right__mute\"\n type={IconTypes.NOTIFICATIONS_OFF_FILLED}\n width=\"24px\"\n height=\"24px\"\n />\n )\n }\n {\n showSearchIcon && (\n <IconButton\n className=\"sendbird-chat-header__right__search\"\n width=\"32px\"\n height=\"32px\"\n onClick={onSearchClick}\n >\n <Icon\n type={IconTypes.SEARCH}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n )\n }\n <IconButton\n className=\"sendbird-chat-header__right__info\"\n width=\"32px\"\n height=\"32px\"\n onClick={onChatHeaderActionClick}\n >\n <Icon\n type={IconTypes.INFO}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n </div>\n </div>\n );\n}\n\nexport default ChatHeader;\n"],"names":["getChannelTitle","channel","currentUserId","stringSet","LABEL_STRING_SET","LabelStringSet","name","members","NO_TITLE","length","NO_MEMBERS","filter","_a","userId","map","nickname","NO_NAME","join","ChatHeader","globalStore","useSendbirdStateContext","config","theme","channelStore","useChannel","currentGroupChannel","showSearchIcon","onSearchClick","onChatHeaderActionClick","subTitle","isMuted","myMutedState","useContext","LocalizationContext","React","LabelTypography","H_2","LabelColors","ONBACKGROUND_1","utils","BODY_1","ONBACKGROUND_2","IconTypes","NOTIFICATIONS_OFF_FILLED","SEARCH","IconColors","PRIMARY","INFO"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAC7BC,OAD6B,EAE7BC,aAF6B,EAG7BC,SAH6B;AAK7B,MAAMC,gBAAgB,GAAgCD,SAAS,IAAIE,cAAnE;;AACA,MAAI,CAACJ,OAAD,IAAa,CAACA,OAAO,CAACK,IAAT,IAAiB,CAACL,OAAO,CAACM,OAA3C,EAAqD;AACnD,WAAOH,gBAAgB,CAACI,QAAxB;AACD;;AACD,MAAIP,OAAO,CAACK,IAAR,IAAgBL,OAAO,CAACK,IAAR,KAAiB,eAArC,EAAsD;AACpD,WAAOL,OAAO,CAACK,IAAf;AACD;;AAED,MAAIL,OAAO,CAACM,OAAR,CAAgBE,MAAhB,KAA2B,CAA/B,EAAkC;AAChC,WAAOL,gBAAgB,CAACM,UAAxB;AACD;;AAED,SAAOT,OAAO,CAACM,OAAR,CACJI,MADI,CACG,UAACC,EAAD;QAAGC,MAAM;AAAO,WAAAA,MAAM,KAAKX,aAAX;AAAwB,GAD3C,EAEJY,GAFI,CAEA,UAACF,EAAD;QAAGG,QAAQ;AAAO,WAACA,QAAQ,IAAIX,gBAAgB,CAACY,OAA9B;AAAsC,GAFxD,EAGJC,IAHI,CAGC,IAHD,CAAP;AAID,CArBM;;ICUDC,UAAU,GAAa,SAAvBA,UAAuB;;;AAC3B,MAAMC,WAAW,GAAGC,uBAAuB,EAA3C;AACA,MAAMP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AIE,IAAA,MAAM,EAAC;AAJT,IANF,CA7BF,CAxBF,CADF;AAsED;;;;"}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannel, M as MARK_AS_READ } from '../../ChannelProvider-cf8fc05a.js';
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-b12b270e.js';
|
|
5
|
-
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
|
-
import ChatHeader from './ChannelHeader.js';
|
|
7
|
-
import MessageList from './MessageList.js';
|
|
8
|
-
import TypingIndicator from './TypingIndicator.js';
|
|
9
|
-
import FrozenNotification from './FrozenNotification.js';
|
|
10
|
-
import UnreadCount from './UnreadCount.js';
|
|
11
|
-
import MessageInputWrapper from './MessageInput.js';
|
|
12
|
-
import '../../withSendBird.js';
|
|
13
|
-
import '../../_rollupPluginBabelHelpers-6bf18550.js';
|
|
14
|
-
import '../../UserProfileContext-f4ff4291.js';
|
|
15
|
-
import 'prop-types';
|
|
16
|
-
import '../../index-1c2588aa.js';
|
|
17
|
-
import '../../index-6381b534.js';
|
|
18
|
-
import '../../topics-67738aac.js';
|
|
19
|
-
import '../../index-e6d0889d.js';
|
|
20
|
-
import '../../tslib.es6-b6e567bd.js';
|
|
21
|
-
import '../../compareIds-f01e0c3c.js';
|
|
22
|
-
import '../../const-b6685801.js';
|
|
23
|
-
import '../../uuid-0139dc21.js';
|
|
24
|
-
import '../../ui/ContextMenu.js';
|
|
25
|
-
import '../../index-d0b30cd5.js';
|
|
26
|
-
import '../../stringSet-2e6c1d2c.js';
|
|
27
|
-
import 'react-dom';
|
|
28
|
-
import '../../ui/SortByRow.js';
|
|
29
|
-
import '../../ui/ReactionButton.js';
|
|
30
|
-
import '../../ui/ImageRenderer.js';
|
|
31
|
-
import '../../ui/Icon.js';
|
|
32
|
-
import '../../ui/Loader.js';
|
|
33
|
-
import '../../LocalizationContext-b970a73c.js';
|
|
34
|
-
import '../../ui/IconButton.js';
|
|
35
|
-
import '../../ui/ChannelAvatar.js';
|
|
36
|
-
import '../../ui/Avatar.js';
|
|
37
|
-
import '../../utils-04c291d8.js';
|
|
38
|
-
import '../../index-9afb4d01.js';
|
|
39
|
-
import './Message.js';
|
|
40
|
-
import './SuggestedMentionList.js';
|
|
41
|
-
import '../../const-d46f09a1.js';
|
|
42
|
-
import '../../ui/DateSeparator.js';
|
|
43
|
-
import '../../color-38dc84d3.js';
|
|
44
|
-
import '../../ui/MessageInput.js';
|
|
45
|
-
import 'stream';
|
|
46
|
-
import '../../index-2dce3a04.js';
|
|
47
|
-
import '../../ui/MentionUserLabel.js';
|
|
48
|
-
import '../../ui/MessageContent.js';
|
|
49
|
-
import '../../ui/UserProfile.js';
|
|
50
|
-
import '../../sendBirdSelectors.js';
|
|
51
|
-
import '../../ui/MessageStatus.js';
|
|
52
|
-
import '../../ui/MessageItemMenu.js';
|
|
53
|
-
import '../../ui/MessageItemReactionMenu.js';
|
|
54
|
-
import '../../ui/EmojiReactions.js';
|
|
55
|
-
import '../../ui/Tooltip.js';
|
|
56
|
-
import '../../ui/TooltipWrapper.js';
|
|
57
|
-
import '../../ui/ReactionBadge.js';
|
|
58
|
-
import '../../ui/AdminMessage.js';
|
|
59
|
-
import '../../ui/TextMessageItemBody.js';
|
|
60
|
-
import '../../index-62fd2db7.js';
|
|
61
|
-
import '../../ui/LinkLabel.js';
|
|
62
|
-
import '../../ui/FileMessageItemBody.js';
|
|
63
|
-
import '../../ui/TextButton.js';
|
|
64
|
-
import '../../ui/ThumbnailMessageItemBody.js';
|
|
65
|
-
import '../../ui/OGMessageItemBody.js';
|
|
66
|
-
import '../../ui/UnknownMessageItemBody.js';
|
|
67
|
-
import '../../ui/QuoteMessage.js';
|
|
68
|
-
import './FileViewer.js';
|
|
69
|
-
import '../../index-d0fe8fe1.js';
|
|
70
|
-
import './RemoveMessageModal.js';
|
|
71
|
-
import '../../ui/Modal.js';
|
|
72
|
-
import '../../utils-f5c9ef64.js';
|
|
73
|
-
import '../../ui/QuoteMessageInput.js';
|
|
74
|
-
|
|
75
|
-
var ChannelUI = function ChannelUI(_a) {
|
|
76
|
-
var _b, _c, _d, _e;
|
|
77
|
-
|
|
78
|
-
var renderPlaceholderLoader = _a.renderPlaceholderLoader,
|
|
79
|
-
renderPlaceholderInvalid = _a.renderPlaceholderInvalid,
|
|
80
|
-
renderPlaceholderEmpty = _a.renderPlaceholderEmpty,
|
|
81
|
-
renderChannelHeader = _a.renderChannelHeader,
|
|
82
|
-
renderMessage = _a.renderMessage,
|
|
83
|
-
renderMessageInput = _a.renderMessageInput,
|
|
84
|
-
renderTypingIndicator = _a.renderTypingIndicator,
|
|
85
|
-
renderCustomSeparator = _a.renderCustomSeparator;
|
|
86
|
-
|
|
87
|
-
var _f = useChannel(),
|
|
88
|
-
currentGroupChannel = _f.currentGroupChannel,
|
|
89
|
-
channelUrl = _f.channelUrl,
|
|
90
|
-
isInvalid = _f.isInvalid,
|
|
91
|
-
unreadSince = _f.unreadSince,
|
|
92
|
-
loading = _f.loading,
|
|
93
|
-
setInitialTimeStamp = _f.setInitialTimeStamp,
|
|
94
|
-
setAnimatedMessageId = _f.setAnimatedMessageId,
|
|
95
|
-
setHighLightedMessageId = _f.setHighLightedMessageId,
|
|
96
|
-
scrollRef = _f.scrollRef,
|
|
97
|
-
messagesDispatcher = _f.messagesDispatcher;
|
|
98
|
-
|
|
99
|
-
var _g = useState(0),
|
|
100
|
-
unreadCount = _g[0],
|
|
101
|
-
setUnreadCount = _g[1];
|
|
102
|
-
|
|
103
|
-
useEffect(function () {
|
|
104
|
-
setUnreadCount(currentGroupChannel.unreadMessageCount);
|
|
105
|
-
}, [currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.unreadMessageCount]);
|
|
106
|
-
var globalStore = useSendbirdStateContext();
|
|
107
|
-
var sdkError = (_c = (_b = globalStore === null || globalStore === void 0 ? void 0 : globalStore.stores) === null || _b === void 0 ? void 0 : _b.sdkStore) === null || _c === void 0 ? void 0 : _c.error;
|
|
108
|
-
var logger = (_d = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _d === void 0 ? void 0 : _d.logger;
|
|
109
|
-
var isOnline = (_e = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _e === void 0 ? void 0 : _e.isOnline;
|
|
110
|
-
|
|
111
|
-
if (!channelUrl) {
|
|
112
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
113
|
-
className: "sendbird-conversation"
|
|
114
|
-
}, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
115
|
-
type: PlaceHolderTypes.NO_CHANNELS
|
|
116
|
-
}));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (isInvalid) {
|
|
120
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
121
|
-
className: "sendbird-conversation"
|
|
122
|
-
}, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
123
|
-
type: PlaceHolderTypes.WRONG
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (sdkError) {
|
|
128
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
129
|
-
className: "sendbird-conversation"
|
|
130
|
-
}, (renderPlaceholderInvalid === null || renderPlaceholderInvalid === void 0 ? void 0 : renderPlaceholderInvalid()) || /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
131
|
-
type: PlaceHolderTypes.WRONG,
|
|
132
|
-
retryToConnect: function retryToConnect() {
|
|
133
|
-
logger.info('Channel: reconnecting'); // reconnect();
|
|
134
|
-
}
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
139
|
-
className: "sendbird-conversation"
|
|
140
|
-
}, (renderChannelHeader === null || renderChannelHeader === void 0 ? void 0 : renderChannelHeader()) || /*#__PURE__*/React__default.createElement(ChatHeader, null), (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.isFrozen) && /*#__PURE__*/React__default.createElement(FrozenNotification, null), unreadCount > 0 && /*#__PURE__*/React__default.createElement(UnreadCount, {
|
|
141
|
-
count: unreadCount,
|
|
142
|
-
time: unreadSince,
|
|
143
|
-
onClick: function onClick() {
|
|
144
|
-
var _a, _b, _c;
|
|
145
|
-
|
|
146
|
-
setUnreadCount(0);
|
|
147
|
-
|
|
148
|
-
if ((_a = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _a === void 0 ? void 0 : _a.scrollTop) {
|
|
149
|
-
scrollRef.current.scrollTop = ((_b = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _b === void 0 ? void 0 : _b.scrollHeight) - ((_c = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
|
|
153
|
-
messagesDispatcher({
|
|
154
|
-
type: MARK_AS_READ,
|
|
155
|
-
payload: {
|
|
156
|
-
channel: currentGroupChannel
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
setInitialTimeStamp(null);
|
|
160
|
-
setAnimatedMessageId(null);
|
|
161
|
-
setHighLightedMessageId(null);
|
|
162
|
-
}
|
|
163
|
-
}), loading ? /*#__PURE__*/React__default.createElement("div", {
|
|
164
|
-
className: "sendbird-conversation"
|
|
165
|
-
}, (renderPlaceholderLoader === null || renderPlaceholderLoader === void 0 ? void 0 : renderPlaceholderLoader()) || /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
166
|
-
type: PlaceHolderTypes.LOADING
|
|
167
|
-
})) : /*#__PURE__*/React__default.createElement(MessageList, {
|
|
168
|
-
renderMessage: renderMessage,
|
|
169
|
-
renderPlaceholderEmpty: renderPlaceholderEmpty,
|
|
170
|
-
renderCustomSeparator: renderCustomSeparator
|
|
171
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
172
|
-
className: "sendbird-conversation__footer"
|
|
173
|
-
}, (renderMessageInput === null || renderMessageInput === void 0 ? void 0 : renderMessageInput()) || /*#__PURE__*/React__default.createElement(MessageInputWrapper, null), /*#__PURE__*/React__default.createElement("div", {
|
|
174
|
-
className: "sendbird-conversation__footer__typing-indicator"
|
|
175
|
-
}, (renderTypingIndicator === null || renderTypingIndicator === void 0 ? void 0 : renderTypingIndicator()) || /*#__PURE__*/React__default.createElement(TypingIndicator, null), !isOnline && /*#__PURE__*/React__default.createElement(ConnectionStatus, null))));
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export { ChannelUI as default };
|
|
179
|
-
//# sourceMappingURL=ChannelUI.js.map
|