@sendbird/uikit-react 3.1.1 → 3.1.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +36 -35
- package/App.js.map +1 -1
- package/CHANGELOG.md +29 -0
- package/Channel/components/ChannelHeader.js +19 -19
- package/Channel/components/ChannelUI.js +26 -26
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +18 -18
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +23 -23
- package/Channel/components/MessageInput.js +20 -20
- package/Channel/components/MessageList.js +25 -25
- package/Channel/components/RemoveMessageModal.js +22 -23
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +19 -19
- package/Channel/components/TypingIndicator.js +18 -18
- package/Channel/components/UnreadCount.js +5 -5
- package/Channel/context.js +17 -17
- package/Channel.js +26 -26
- package/ChannelList/components/AddChannel.js +14 -14
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +30 -30
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +23 -23
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +18 -18
- package/ChannelList/context.js +12 -12
- package/ChannelList.js +30 -30
- package/{ChannelListProvider-bdac2e90.js → ChannelListProvider-536de516.js} +9 -9
- package/ChannelListProvider-536de516.js.map +1 -0
- package/{ChannelProvider-0174d0f3.js → ChannelProvider-288abd6e.js} +31 -30
- package/ChannelProvider-288abd6e.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +13 -14
- package/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsUI.js +22 -22
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -15
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +12 -11
- package/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/ChannelSettings/components/ModerationPanel.js +19 -19
- package/ChannelSettings/components/UserListItem.js +12 -12
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +23 -23
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/CreateChannel/components/InviteUsers.js +16 -16
- package/CreateChannel/components/SelectChannelType.js +11 -10
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +16 -16
- package/{CreateChannelProvider-1cf4ef27.js → CreateChannelProvider-1d4c08d8.js} +1 -1
- package/CreateChannelProvider-1d4c08d8.js.map +1 -0
- package/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/EditUserProfile/context.js.map +1 -1
- package/EditUserProfile.js +15 -15
- package/{LocalizationContext-61a4a931.js → LocalizationContext-7d740b0a.js} +3 -3
- package/LocalizationContext-7d740b0a.js.map +1 -0
- package/{MemberList-24ad6b63.js → MemberList-8bc3c1e1.js} +6 -6
- package/{MemberList-24ad6b63.js.map → MemberList-8bc3c1e1.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +13 -12
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +4 -3
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +13 -12
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +17 -17
- package/OpenChannel/components/OpenChannelInput.js +21 -21
- package/OpenChannel/components/OpenChannelMessage.js +29 -29
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +28 -28
- package/OpenChannel/components/OpenChannelUI.js +28 -28
- package/OpenChannel/context.js +14 -14
- package/OpenChannel.js +28 -28
- package/{OpenChannelProvider-9b3a6eb1.js → OpenChannelProvider-2e64f2d2.js} +15 -14
- package/{OpenChannelProvider-9b3a6eb1.js.map → OpenChannelProvider-2e64f2d2.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +18 -19
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +16 -17
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +20 -20
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +20 -20
- package/OpenChannelSettings/context.js +6 -6
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +21 -21
- package/SendbirdProvider.js +15 -15
- package/{UserProfileContext-3524e64c.js → UserProfileContext-9b7b1d4f.js} +1 -1
- package/{UserProfileContext-3524e64c.js.map → UserProfileContext-9b7b1d4f.js.map} +1 -1
- package/{__bundle-6316ce22-b659cee1.js → __bundle-6316ce22-41ee43fe.js} +1 -1
- package/{__bundle-6316ce22-b659cee1.js.map → __bundle-6316ce22-41ee43fe.js.map} +1 -1
- package/{__bundle-7dfccc8c-37d3f8ab.js → __bundle-7dfccc8c-c1f95345.js} +2 -2
- package/{__bundle-7dfccc8c-37d3f8ab.js.map → __bundle-7dfccc8c-c1f95345.js.map} +1 -1
- package/{__bundle-fbda47dd-ef31252f.js → __bundle-fbda47dd-ee456253.js} +2 -2
- package/{__bundle-fbda47dd-ef31252f.js.map → __bundle-fbda47dd-ee456253.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-30d122aa.js → _rollupPluginBabelHelpers-4e546dea.js} +2 -105
- package/_rollupPluginBabelHelpers-4e546dea.js.map +1 -0
- package/{actionTypes-d5d5ac7b.js → actionTypes-f1946e3f.js} +1 -1
- package/{actionTypes-d5d5ac7b.js.map → actionTypes-f1946e3f.js.map} +1 -1
- package/cjs/App.js +36 -35
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +19 -19
- package/cjs/Channel/components/ChannelUI.js +26 -26
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +18 -18
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +23 -23
- package/cjs/Channel/components/MessageInput.js +20 -20
- package/cjs/Channel/components/MessageList.js +25 -25
- package/cjs/Channel/components/RemoveMessageModal.js +22 -23
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +19 -19
- package/cjs/Channel/components/TypingIndicator.js +18 -18
- package/cjs/Channel/components/UnreadCount.js +5 -5
- package/cjs/Channel/context.js +17 -17
- package/cjs/Channel.js +26 -26
- package/cjs/ChannelList/components/AddChannel.js +14 -14
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +30 -30
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +23 -23
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +18 -18
- package/cjs/ChannelList/context.js +12 -12
- package/cjs/ChannelList.js +30 -30
- package/cjs/{ChannelListProvider-e7756677.js → ChannelListProvider-40eb170c.js} +9 -9
- package/cjs/ChannelListProvider-40eb170c.js.map +1 -0
- package/cjs/{ChannelProvider-c179835a.js → ChannelProvider-e1a06efe.js} +31 -30
- package/cjs/ChannelProvider-e1a06efe.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -14
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -22
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -15
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +12 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/cjs/ChannelSettings/components/ModerationPanel.js +19 -19
- package/cjs/ChannelSettings/components/UserListItem.js +12 -12
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +23 -23
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/cjs/CreateChannel/components/InviteUsers.js +16 -16
- package/cjs/CreateChannel/components/SelectChannelType.js +11 -10
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +16 -16
- package/cjs/{CreateChannelProvider-a7ca5511.js → CreateChannelProvider-4acaac2e.js} +1 -1
- package/cjs/CreateChannelProvider-4acaac2e.js.map +1 -0
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +14 -14
- package/cjs/EditUserProfile/context.js.map +1 -1
- package/cjs/EditUserProfile.js +15 -15
- package/cjs/{LocalizationContext-f05328b8.js → LocalizationContext-a4d8d6fa.js} +3 -3
- package/cjs/LocalizationContext-a4d8d6fa.js.map +1 -0
- package/cjs/{MemberList-bfaafb40.js → MemberList-b5653b8e.js} +6 -6
- package/cjs/{MemberList-bfaafb40.js.map → MemberList-b5653b8e.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +13 -12
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +4 -3
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +13 -12
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +17 -17
- package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
- package/cjs/OpenChannel/components/OpenChannelMessage.js +29 -29
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -28
- package/cjs/OpenChannel/components/OpenChannelUI.js +28 -28
- package/cjs/OpenChannel/context.js +14 -14
- package/cjs/OpenChannel.js +28 -28
- package/cjs/{OpenChannelProvider-12e0412f.js → OpenChannelProvider-3d3298fd.js} +15 -14
- package/cjs/{OpenChannelProvider-12e0412f.js.map → OpenChannelProvider-3d3298fd.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +18 -19
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +16 -17
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -21
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -20
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +20 -20
- package/cjs/OpenChannelSettings/context.js +6 -6
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +21 -21
- package/cjs/SendbirdProvider.js +15 -15
- package/cjs/{UserProfileContext-87ebb4a4.js → UserProfileContext-9fb4f747.js} +1 -1
- package/cjs/{UserProfileContext-87ebb4a4.js.map → UserProfileContext-9fb4f747.js.map} +1 -1
- package/cjs/{__bundle-6316ce22-c57c6fe0.js → __bundle-6316ce22-e09a7a94.js} +1 -1
- package/cjs/{__bundle-6316ce22-c57c6fe0.js.map → __bundle-6316ce22-e09a7a94.js.map} +1 -1
- package/cjs/{__bundle-7dfccc8c-205c0e66.js → __bundle-7dfccc8c-3af98778.js} +2 -2
- package/cjs/{__bundle-7dfccc8c-205c0e66.js.map → __bundle-7dfccc8c-3af98778.js.map} +1 -1
- package/cjs/{__bundle-fbda47dd-f6e08be2.js → __bundle-fbda47dd-a50b4334.js} +2 -2
- package/cjs/{__bundle-fbda47dd-f6e08be2.js.map → __bundle-fbda47dd-a50b4334.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-92e5e012.js → _rollupPluginBabelHelpers-e3f84a90.js} +1 -110
- package/cjs/_rollupPluginBabelHelpers-e3f84a90.js.map +1 -0
- package/cjs/{actionTypes-331e63c2.js → actionTypes-8907b806.js} +1 -1
- package/cjs/{actionTypes-331e63c2.js.map → actionTypes-8907b806.js.map} +1 -1
- package/cjs/color-047cfbdf.js +45 -0
- package/cjs/color-047cfbdf.js.map +1 -0
- package/cjs/{compareIds-2df40a8f.js → compareIds-a4c74921.js} +1 -1
- package/cjs/{compareIds-2df40a8f.js.map → compareIds-a4c74921.js.map} +1 -1
- package/cjs/{const-77f608c8.js → const-66e78150.js} +1 -1
- package/cjs/{const-77f608c8.js.map → const-66e78150.js.map} +1 -1
- package/cjs/{const-e0dbad82.js → const-b4516fd9.js} +1 -1
- package/cjs/{const-e0dbad82.js.map → const-b4516fd9.js.map} +1 -1
- package/cjs/{context-5e7ba41f.js → context-24f7ccd5.js} +2 -2
- package/cjs/{context-5e7ba41f.js.map → context-24f7ccd5.js.map} +1 -1
- package/cjs/dist/index.css +50 -72
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{groupChannel-ddd470ad.js → groupChannel-ab450f40.js} +4 -4
- package/cjs/{groupChannel-ddd470ad.js.map → groupChannel-ab450f40.js.map} +1 -1
- package/cjs/handlers/ConnectionHandler.js +3 -3
- package/cjs/handlers/GroupChannelHandler.js +4 -4
- package/cjs/handlers/OpenChannelHandler.js +3 -3
- package/cjs/handlers/UserEventHandler.js +3 -3
- package/cjs/{index-cce2b8c0.js → index-13532266.js} +3 -3
- package/cjs/{index-cce2b8c0.js.map → index-13532266.js.map} +1 -1
- package/cjs/{index-1c009ee9.js → index-4f96bea7.js} +15 -27
- package/cjs/{index-1c009ee9.js.map → index-4f96bea7.js.map} +1 -1
- package/cjs/index-65aaad9e.js +90 -0
- package/cjs/index-65aaad9e.js.map +1 -0
- package/cjs/{index-4bebe375.js → index-6d74425b.js} +1 -1
- package/cjs/{index-4bebe375.js.map → index-6d74425b.js.map} +1 -1
- package/cjs/{index-4911c708.js → index-83f6a684.js} +2 -2
- package/cjs/{index-4911c708.js.map → index-83f6a684.js.map} +1 -1
- package/cjs/{index-52631939.js → index-9a12fc25.js} +11 -10
- package/cjs/{index-52631939.js.map → index-9a12fc25.js.map} +1 -1
- package/cjs/{index-39372722.js → index-9aaba1c0.js} +2 -2
- package/cjs/{index-39372722.js.map → index-9aaba1c0.js.map} +1 -1
- package/cjs/{index-10b68ab4.js → index-bf23b757.js} +2 -2
- package/cjs/{index-10b68ab4.js.map → index-bf23b757.js.map} +1 -1
- package/cjs/{index-2dacade8.js → index-df5b04e6.js} +1 -1
- package/cjs/{index-2dacade8.js.map → index-df5b04e6.js.map} +1 -1
- package/cjs/{index-b1ed74bd.js → index-f4dec25b.js} +4 -4
- package/cjs/{index-b1ed74bd.js.map → index-f4dec25b.js.map} +1 -1
- package/cjs/{index-edd379fd.js → index-f6ccdc07.js} +7 -7
- package/cjs/index-f6ccdc07.js.map +1 -0
- package/cjs/index.js +40 -39
- package/cjs/index.js.map +1 -1
- package/cjs/{openChannel-865f6910.js → openChannel-bb5e32ba.js} +3 -3
- package/cjs/{openChannel-865f6910.js.map → openChannel-bb5e32ba.js.map} +1 -1
- package/cjs/{openChannelUtils-341c5ad7.js → openChannelUtils-ea9b884a.js} +1 -1
- package/cjs/{openChannelUtils-341c5ad7.js.map → openChannelUtils-ea9b884a.js.map} +1 -1
- package/cjs/{sendbird-313241e2.js → sendbird-f219ad11.js} +3 -3
- package/cjs/{sendbird-313241e2.js.map → sendbird-f219ad11.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-afc1ff3b.js → stringSet-0e48356d.js} +3 -2
- package/cjs/stringSet-0e48356d.js.map +1 -0
- package/cjs/{topics-57ad0394.js → topics-6314d5b3.js} +1 -1
- package/cjs/{topics-57ad0394.js.map → topics-6314d5b3.js.map} +1 -1
- package/cjs/{tslib.es6-12c25052.js → tslib.es6-4d92f5f1.js} +1 -1
- package/cjs/{tslib.es6-12c25052.js.map → tslib.es6-4d92f5f1.js.map} +1 -1
- package/cjs/ui/Accordion.js +4 -4
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +14 -24
- package/cjs/ui/AdminMessage.js.map +1 -1
- package/cjs/ui/Avatar.js +3 -3
- package/cjs/ui/Avatar.js.map +1 -1
- package/cjs/ui/Badge.js +15 -25
- package/cjs/ui/Badge.js.map +1 -1
- package/cjs/ui/Button.js +5 -4
- package/cjs/ui/Button.js.map +1 -1
- package/cjs/ui/ChannelAvatar.js +4 -4
- package/cjs/ui/ChannelPreview.js +16 -12
- package/cjs/ui/ChannelPreview.js.map +1 -1
- package/cjs/ui/ChatHeader.js +42 -74
- package/cjs/ui/ChatHeader.js.map +1 -1
- package/cjs/ui/ConnectionStatus.js +6 -8
- package/cjs/ui/ConnectionStatus.js.map +1 -1
- package/cjs/ui/ContextMenu.js +186 -290
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +18 -25
- package/cjs/ui/DateSeparator.js.map +1 -1
- package/cjs/ui/EmojiReactions.js +8 -7
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +7 -7
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +46 -83
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Icon.js +1 -1
- package/cjs/ui/IconButton.js +45 -68
- package/cjs/ui/IconButton.js.map +1 -1
- package/cjs/ui/ImageRenderer.js +43 -78
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +11 -30
- package/cjs/ui/Input.js.map +1 -1
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +15 -24
- package/cjs/ui/Loader.js.map +1 -1
- package/cjs/ui/MentionLabel.js +12 -12
- package/cjs/ui/MessageContent.js +15 -15
- package/cjs/ui/MessageInput.js +10 -10
- package/cjs/ui/MessageItemMenu.js +9 -8
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +7 -6
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +11 -11
- package/cjs/ui/MessageStatus.js +8 -8
- package/cjs/ui/Modal.js +36 -68
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +1 -1
- package/cjs/ui/OGMessageItemBody.js +11 -11
- package/cjs/ui/OpenChannelAdminMessage.js +4 -4
- package/cjs/ui/OpenChannelAvatar.js +8 -8
- package/cjs/ui/OpenchannelConversationHeader.js +7 -7
- package/cjs/ui/OpenchannelFileMessage.js +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +15 -15
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- package/cjs/ui/PlaceHolder.js +8 -7
- package/cjs/ui/PlaceHolder.js.map +1 -1
- package/cjs/ui/QuoteMessage.js +7 -7
- package/cjs/ui/QuoteMessageInput.js +7 -7
- package/cjs/ui/ReactionBadge.js +16 -26
- package/cjs/ui/ReactionBadge.js.map +1 -1
- package/cjs/ui/ReactionButton.js +4 -21
- package/cjs/ui/ReactionButton.js.map +1 -1
- package/cjs/ui/SortByRow.js +16 -26
- package/cjs/ui/SortByRow.js.map +1 -1
- package/cjs/ui/TextButton.js +22 -29
- package/cjs/ui/TextButton.js.map +1 -1
- package/cjs/ui/TextMessageItemBody.js +11 -11
- package/cjs/ui/ThumbnailMessageItemBody.js +3 -3
- package/cjs/ui/Tooltip.js +11 -17
- package/cjs/ui/Tooltip.js.map +1 -1
- package/cjs/ui/TooltipWrapper.js +10 -20
- package/cjs/ui/TooltipWrapper.js.map +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +12 -12
- package/cjs/ui/UserProfile.js +11 -11
- package/cjs/ui/Word.js +11 -11
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-1a8a0b72.js → utils-1cdb42c0.js} +1 -1
- package/cjs/{utils-1a8a0b72.js.map → utils-1cdb42c0.js.map} +1 -1
- package/cjs/{utils-71bd80e8.js → utils-b6436b0d.js} +1 -1
- package/cjs/{utils-71bd80e8.js.map → utils-b6436b0d.js.map} +1 -1
- package/cjs/{utils-6f828dbd.js → utils-b8eff714.js} +1 -1
- package/cjs/{utils-6f828dbd.js.map → utils-b8eff714.js.map} +1 -1
- package/cjs/{uuid-920ae00d.js → uuid-6fae7fc4.js} +1 -1
- package/cjs/{uuid-920ae00d.js.map → uuid-6fae7fc4.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-f6548425.js → color-7a9e9046.js} +16 -12
- package/color-7a9e9046.js.map +1 -0
- package/{compareIds-8402fa74.js → compareIds-b5421ba2.js} +1 -1
- package/{compareIds-8402fa74.js.map → compareIds-b5421ba2.js.map} +1 -1
- package/{const-c81e2d08.js → const-2017fde0.js} +1 -1
- package/{const-c81e2d08.js.map → const-2017fde0.js.map} +1 -1
- package/{const-9039e539.js → const-43ed4c6f.js} +1 -1
- package/{const-9039e539.js.map → const-43ed4c6f.js.map} +1 -1
- package/{context-3629064f.js → context-d85e90c3.js} +2 -2
- package/{context-3629064f.js.map → context-d85e90c3.js.map} +1 -1
- package/dist/index.css +50 -72
- package/dist/index.css.map +1 -1
- package/{groupChannel-fc842dca.js → groupChannel-1ce183d5.js} +4 -4
- package/{groupChannel-fc842dca.js.map → groupChannel-1ce183d5.js.map} +1 -1
- package/handlers/ConnectionHandler.js +4 -4
- package/handlers/GroupChannelHandler.js +5 -5
- package/handlers/OpenChannelHandler.js +4 -4
- package/handlers/UserEventHandler.js +4 -4
- package/{index-2034978f.js → index-00ac1d60.js} +15 -26
- package/index-00ac1d60.js.map +1 -0
- package/{index-191d1d43.js → index-3d519005.js} +1 -1
- package/{index-191d1d43.js.map → index-3d519005.js.map} +1 -1
- package/{index-5428ab4f.js → index-47b8d0ce.js} +2 -2
- package/{index-5428ab4f.js.map → index-47b8d0ce.js.map} +1 -1
- package/{index-07cd4778.js → index-5efc096b.js} +3 -3
- package/{index-07cd4778.js.map → index-5efc096b.js.map} +1 -1
- package/{index-b1f9e3f9.js → index-62f1a209.js} +4 -4
- package/{index-b1f9e3f9.js.map → index-62f1a209.js.map} +1 -1
- package/{index-fc480728.js → index-6e4da943.js} +11 -10
- package/{index-fc480728.js.map → index-6e4da943.js.map} +1 -1
- package/{index-42b2527f.js → index-7965b338.js} +1 -1
- package/{index-42b2527f.js.map → index-7965b338.js.map} +1 -1
- package/index-9ba00bc1.js +82 -0
- package/index-9ba00bc1.js.map +1 -0
- package/{index-17024830.js → index-cdcfdf8f.js} +7 -7
- package/index-cdcfdf8f.js.map +1 -0
- package/{index-aa2d32cc.js → index-d4e18807.js} +2 -2
- package/{index-aa2d32cc.js.map → index-d4e18807.js.map} +1 -1
- package/{index-65007eeb.js → index-f37bc955.js} +2 -2
- package/{index-65007eeb.js.map → index-f37bc955.js.map} +1 -1
- package/index.d.ts +116 -109
- package/index.js +40 -39
- package/index.js.map +1 -1
- package/{openChannel-2b51e3d3.js → openChannel-654409d7.js} +3 -3
- package/{openChannel-2b51e3d3.js.map → openChannel-654409d7.js.map} +1 -1
- package/{openChannelUtils-6a414996.js → openChannelUtils-1ae6ef95.js} +1 -1
- package/{openChannelUtils-6a414996.js.map → openChannelUtils-1ae6ef95.js.map} +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/{sendbird-d625a809.js → sendbird-ae433167.js} +3 -3
- package/{sendbird-d625a809.js.map → sendbird-ae433167.js.map} +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-92f53c6e.js → stringSet-53204a58.js} +3 -2
- package/stringSet-53204a58.js.map +1 -0
- package/{topics-71b67878.js → topics-3dbd69e2.js} +1 -1
- package/{topics-71b67878.js.map → topics-3dbd69e2.js.map} +1 -1
- package/{tslib.es6-c793443a.js → tslib.es6-5c8a20bb.js} +1 -1
- package/{tslib.es6-c793443a.js.map → tslib.es6-5c8a20bb.js.map} +1 -1
- package/ui/Accordion.js +4 -4
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +14 -23
- package/ui/AdminMessage.js.map +1 -1
- package/ui/Avatar.js +3 -3
- package/ui/Avatar.js.map +1 -1
- package/ui/Badge.js +15 -24
- package/ui/Badge.js.map +1 -1
- package/ui/Button.js +5 -4
- package/ui/Button.js.map +1 -1
- package/ui/ChannelAvatar.js +4 -4
- package/ui/ChannelPreview.js +17 -13
- package/ui/ChannelPreview.js.map +1 -1
- package/ui/ChatHeader.js +43 -74
- package/ui/ChatHeader.js.map +1 -1
- package/ui/ConnectionStatus.js +6 -8
- package/ui/ConnectionStatus.js.map +1 -1
- package/ui/ContextMenu.js +188 -291
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +18 -24
- package/ui/DateSeparator.js.map +1 -1
- package/ui/EmojiReactions.js +8 -7
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FileMessageItemBody.js +7 -7
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +47 -83
- package/ui/FileViewer.js.map +1 -1
- package/ui/Icon.js +1 -1
- package/ui/IconButton.js +43 -65
- package/ui/IconButton.js.map +1 -1
- package/ui/ImageRenderer.js +43 -77
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +11 -29
- package/ui/Input.js.map +1 -1
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +15 -23
- package/ui/Loader.js.map +1 -1
- package/ui/MentionLabel.js +12 -12
- package/ui/MessageContent.js +15 -15
- package/ui/MessageInput.js +10 -10
- package/ui/MessageItemMenu.js +9 -8
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +7 -6
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +11 -11
- package/ui/MessageStatus.js +8 -8
- package/ui/Modal.js +36 -67
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +1 -1
- package/ui/OGMessageItemBody.js +11 -11
- package/ui/OpenChannelAdminMessage.js +4 -4
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +7 -7
- package/ui/OpenchannelFileMessage.js +15 -15
- package/ui/OpenchannelOGMessage.js +15 -15
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- package/ui/PlaceHolder.js +8 -7
- package/ui/PlaceHolder.js.map +1 -1
- package/ui/QuoteMessage.js +7 -7
- package/ui/QuoteMessageInput.js +7 -7
- package/ui/ReactionBadge.js +16 -25
- package/ui/ReactionBadge.js.map +1 -1
- package/ui/ReactionButton.js +4 -20
- package/ui/ReactionButton.js.map +1 -1
- package/ui/SortByRow.js +15 -24
- package/ui/SortByRow.js.map +1 -1
- package/ui/TextButton.js +22 -28
- package/ui/TextButton.js.map +1 -1
- package/ui/TextMessageItemBody.js +11 -11
- package/ui/ThumbnailMessageItemBody.js +3 -3
- package/ui/Tooltip.js +11 -16
- package/ui/Tooltip.js.map +1 -1
- package/ui/TooltipWrapper.js +10 -19
- package/ui/TooltipWrapper.js.map +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +12 -12
- package/ui/UserProfile.js +11 -11
- package/ui/Word.js +11 -11
- package/useSendbirdStateContext.js +1 -1
- package/{utils-b69f7583.js → utils-e0115d03.js} +1 -1
- package/{utils-b69f7583.js.map → utils-e0115d03.js.map} +1 -1
- package/{utils-972c4edb.js → utils-ea818d4c.js} +1 -1
- package/{utils-972c4edb.js.map → utils-ea818d4c.js.map} +1 -1
- package/{utils-b37c6db3.js → utils-edeb25c5.js} +1 -1
- package/{utils-b37c6db3.js.map → utils-edeb25c5.js.map} +1 -1
- package/{uuid-7c3f59a3.js → uuid-8d849862.js} +1 -1
- package/{uuid-7c3f59a3.js.map → uuid-8d849862.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-bdac2e90.js.map +0 -1
- package/ChannelProvider-0174d0f3.js.map +0 -1
- package/CreateChannelProvider-1cf4ef27.js.map +0 -1
- package/LocalizationContext-61a4a931.js.map +0 -1
- package/_rollupPluginBabelHelpers-30d122aa.js.map +0 -1
- package/cjs/ChannelListProvider-e7756677.js.map +0 -1
- package/cjs/ChannelProvider-c179835a.js.map +0 -1
- package/cjs/CreateChannelProvider-a7ca5511.js.map +0 -1
- package/cjs/LocalizationContext-f05328b8.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-92e5e012.js.map +0 -1
- package/cjs/color-2f811855.js +0 -42
- package/cjs/color-2f811855.js.map +0 -1
- package/cjs/index-188e8e7f.js +0 -97
- package/cjs/index-188e8e7f.js.map +0 -1
- package/cjs/index-edd379fd.js.map +0 -1
- package/cjs/stringSet-afc1ff3b.js.map +0 -1
- package/cjs/ui/Dropdown.js +0 -107
- package/cjs/ui/Dropdown.js.map +0 -1
- package/color-f6548425.js.map +0 -1
- package/index-17024830.js.map +0 -1
- package/index-2034978f.js.map +0 -1
- package/index-d3358aa9.js +0 -87
- package/index-d3358aa9.js.map +0 -1
- package/stringSet-92f53c6e.js.map +0 -1
- package/ui/Dropdown.js +0 -97
- package/ui/Dropdown.js.map +0 -1
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-7d740b0a.js';
|
|
3
3
|
import Modal from '../../ui/Modal.js';
|
|
4
4
|
import Input, { InputLabel } from '../../ui/Input.js';
|
|
5
5
|
import Avatar from '../../ui/Avatar.js';
|
|
6
|
-
import { T as Type } from '../../index-
|
|
7
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
6
|
+
import { T as Type } from '../../index-9ba00bc1.js';
|
|
7
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-5efc096b.js';
|
|
8
8
|
import TextButton from '../../ui/TextButton.js';
|
|
9
9
|
import ChannelAvatar from '../../ui/OpenChannelAvatar.js';
|
|
10
10
|
import { useOpenChannelSettingsContext } from '../context.js';
|
|
11
11
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
12
|
-
import '../../stringSet-
|
|
13
|
-
import '../../index-
|
|
14
|
-
import 'prop-types';
|
|
12
|
+
import '../../stringSet-53204a58.js';
|
|
13
|
+
import '../../index-3d519005.js';
|
|
15
14
|
import 'react-dom';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../ui/IconButton.js';
|
|
18
|
-
import '../../_rollupPluginBabelHelpers-30d122aa.js';
|
|
15
|
+
import '../../index-7965b338.js';
|
|
19
16
|
import '../../ui/Icon.js';
|
|
20
|
-
import '../../
|
|
21
|
-
import '
|
|
17
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
18
|
+
import 'prop-types';
|
|
19
|
+
import '../../ui/IconButton.js';
|
|
20
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
22
21
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
24
|
-
import '../../color-
|
|
25
|
-
import '../../utils-
|
|
26
|
-
import '../../openChannel-
|
|
27
|
-
import '../../__bundle-6316ce22-
|
|
28
|
-
import '../../__bundle-7dfccc8c-
|
|
29
|
-
import '../../UserProfileContext-
|
|
22
|
+
import '../../uuid-8d849862.js';
|
|
23
|
+
import '../../color-7a9e9046.js';
|
|
24
|
+
import '../../utils-edeb25c5.js';
|
|
25
|
+
import '../../openChannel-654409d7.js';
|
|
26
|
+
import '../../__bundle-6316ce22-41ee43fe.js';
|
|
27
|
+
import '../../__bundle-7dfccc8c-c1f95345.js';
|
|
28
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
30
29
|
import '../../withSendbird.js';
|
|
31
30
|
|
|
32
31
|
var EditDetails = function EditDetails(props) {
|
|
@@ -127,7 +126,7 @@ var EditDetails = function EditDetails(props) {
|
|
|
127
126
|
onClick: function onClick() {
|
|
128
127
|
return hiddenInputRef.current.click();
|
|
129
128
|
},
|
|
130
|
-
|
|
129
|
+
disableUnderline: true
|
|
131
130
|
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
132
131
|
type: LabelTypography.BUTTON_1,
|
|
133
132
|
color: LabelColors.PRIMARY
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditDetailsModal.js","sources":["../../../src/smart-components/OpenChannelSettings/components/EditDetailsModal.tsx"],"sourcesContent":["import React, {\n useState,\n useRef,\n useContext,\n ReactElement,\n} from 'react';\nimport { OpenChannelUpdateParams } from '@sendbird/chat/openChannel';\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\nimport Modal from '../../../ui/Modal';\nimport Input, { InputLabel } from '../../../ui/Input';\nimport Avatar from '../../../ui/Avatar/index';\nimport { Type as ButtonType } from '../../../ui/Button/type';\nimport Label, { LabelColors, LabelTypography } from '../../../ui/Label';\nimport TextButton from '../../../ui/TextButton';\nimport OpenChannelAvatar from '../../../ui/ChannelAvatar/OpenChannelAvatar';\nimport { useOpenChannelSettingsContext } from '../context/OpenChannelSettingsProvider';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\n\ninterface Props {\n onCancel(): void;\n}\n\nconst EditDetails = (props: Props): ReactElement => {\n const {\n onCancel,\n } = props;\n const globalState = useSendbirdStateContext();\n const logger = globalState?.config?.logger;\n const theme = globalState?.config?.theme;\n const {\n channel,\n onBeforeUpdateChannel,\n onChannelModified,\n setChannel,\n } = useOpenChannelSettingsContext();\n\n const inputRef = useRef(null);\n const formRef = useRef(null);\n const hiddenInputRef = useRef(null);\n const [currentImg, setCurrentImg] = useState(null);\n const [newFile, setNewFile] = useState(null);\n const { stringSet } = useContext(LocalizationContext);\n const title = channel?.name;\n return (\n <Modal\n titleText={stringSet.MODAL__CHANNEL_INFORMATION__TITLE}\n submitText={stringSet.BUTTON__SAVE}\n onCancel={onCancel}\n onSubmit={() => {\n if (title !== '' && !inputRef.current.value) {\n if (formRef.current.reportValidity) { // might not work in explorer\n formRef.current.reportValidity();\n }\n return;\n }\n const currentTitle = inputRef.current.value;\n const currentImg = newFile;\n logger.info('ChannelSettings: Channel information being updated');\n const params: OpenChannelUpdateParams = onBeforeUpdateChannel\n ? onBeforeUpdateChannel(currentTitle, currentImg, channel?.data)\n : {\n name: currentTitle,\n coverUrlOrImage: currentImg,\n data: channel?.data,\n };\n logger.info('ChannelSettings: Updating channel information', params);\n channel?.updateChannel(params)\n .then((updateChannel) => {\n logger.info('ChannelSettings: Channel information update succeeded', updateChannel);\n onChannelModified?.(updateChannel);\n setChannel(updateChannel);\n })\n .catch((error) => {\n logger.error('ChannelSettings: Channel infomation update failed', error);\n setChannel(null);\n });\n onCancel();\n }}\n type={ButtonType.PRIMARY}\n >\n <form\n className=\"channel-profile-form\"\n ref={formRef}\n onSubmit={(e) => { e.preventDefault(); }}\n >\n <div className=\"channel-profile-form__img-section\">\n <InputLabel>\n {stringSet.MODAL__CHANNEL_INFORMATION__CHANNEL_IMAGE}\n </InputLabel>\n <div className=\"channel-profile-form__avatar\">\n {\n currentImg\n ? (\n <Avatar\n height=\"80px\"\n width=\"80px\"\n src={currentImg}\n />\n ) : (\n <OpenChannelAvatar\n height={80}\n width={80}\n channel={channel}\n theme={theme}\n />\n )\n }\n </div>\n <input\n ref={hiddenInputRef}\n type=\"file\"\n accept=\"image/gif, image/jpeg, image/png\"\n style={{ display: 'none' }}\n onChange={(e) => {\n setCurrentImg(URL.createObjectURL(e.target.files[0]));\n setNewFile(e.target.files[0]);\n hiddenInputRef.current.value = '';\n }}\n />\n <TextButton\n className=\"channel-profile-form__avatar-button\"\n onClick={() => hiddenInputRef.current.click()}\n
|
|
1
|
+
{"version":3,"file":"EditDetailsModal.js","sources":["../../../src/smart-components/OpenChannelSettings/components/EditDetailsModal.tsx"],"sourcesContent":["import React, {\n useState,\n useRef,\n useContext,\n ReactElement,\n} from 'react';\nimport { OpenChannelUpdateParams } from '@sendbird/chat/openChannel';\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\nimport Modal from '../../../ui/Modal';\nimport Input, { InputLabel } from '../../../ui/Input';\nimport Avatar from '../../../ui/Avatar/index';\nimport { Type as ButtonType } from '../../../ui/Button/type';\nimport Label, { LabelColors, LabelTypography } from '../../../ui/Label';\nimport TextButton from '../../../ui/TextButton';\nimport OpenChannelAvatar from '../../../ui/ChannelAvatar/OpenChannelAvatar';\nimport { useOpenChannelSettingsContext } from '../context/OpenChannelSettingsProvider';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\n\ninterface Props {\n onCancel(): void;\n}\n\nconst EditDetails = (props: Props): ReactElement => {\n const {\n onCancel,\n } = props;\n const globalState = useSendbirdStateContext();\n const logger = globalState?.config?.logger;\n const theme = globalState?.config?.theme;\n const {\n channel,\n onBeforeUpdateChannel,\n onChannelModified,\n setChannel,\n } = useOpenChannelSettingsContext();\n\n const inputRef = useRef(null);\n const formRef = useRef(null);\n const hiddenInputRef = useRef(null);\n const [currentImg, setCurrentImg] = useState(null);\n const [newFile, setNewFile] = useState(null);\n const { stringSet } = useContext(LocalizationContext);\n const title = channel?.name;\n return (\n <Modal\n titleText={stringSet.MODAL__CHANNEL_INFORMATION__TITLE}\n submitText={stringSet.BUTTON__SAVE}\n onCancel={onCancel}\n onSubmit={() => {\n if (title !== '' && !inputRef.current.value) {\n if (formRef.current.reportValidity) { // might not work in explorer\n formRef.current.reportValidity();\n }\n return;\n }\n const currentTitle = inputRef.current.value;\n const currentImg = newFile;\n logger.info('ChannelSettings: Channel information being updated');\n const params: OpenChannelUpdateParams = onBeforeUpdateChannel\n ? onBeforeUpdateChannel(currentTitle, currentImg, channel?.data)\n : {\n name: currentTitle,\n coverUrlOrImage: currentImg,\n data: channel?.data,\n };\n logger.info('ChannelSettings: Updating channel information', params);\n channel?.updateChannel(params)\n .then((updateChannel) => {\n logger.info('ChannelSettings: Channel information update succeeded', updateChannel);\n onChannelModified?.(updateChannel);\n setChannel(updateChannel);\n })\n .catch((error) => {\n logger.error('ChannelSettings: Channel infomation update failed', error);\n setChannel(null);\n });\n onCancel();\n }}\n type={ButtonType.PRIMARY}\n >\n <form\n className=\"channel-profile-form\"\n ref={formRef}\n onSubmit={(e) => { e.preventDefault(); }}\n >\n <div className=\"channel-profile-form__img-section\">\n <InputLabel>\n {stringSet.MODAL__CHANNEL_INFORMATION__CHANNEL_IMAGE}\n </InputLabel>\n <div className=\"channel-profile-form__avatar\">\n {\n currentImg\n ? (\n <Avatar\n height=\"80px\"\n width=\"80px\"\n src={currentImg}\n />\n ) : (\n <OpenChannelAvatar\n height={80}\n width={80}\n channel={channel}\n theme={theme}\n />\n )\n }\n </div>\n <input\n ref={hiddenInputRef}\n type=\"file\"\n accept=\"image/gif, image/jpeg, image/png\"\n style={{ display: 'none' }}\n onChange={(e) => {\n setCurrentImg(URL.createObjectURL(e.target.files[0]));\n setNewFile(e.target.files[0]);\n hiddenInputRef.current.value = '';\n }}\n />\n <TextButton\n className=\"channel-profile-form__avatar-button\"\n onClick={() => hiddenInputRef.current.click()}\n disableUnderline\n >\n <Label type={LabelTypography.BUTTON_1} color={LabelColors.PRIMARY}>\n {stringSet.MODAL__CHANNEL_INFORMATION__UPLOAD}\n </Label>\n </TextButton>\n </div>\n <div className=\"channel-profile-form__name-section\">\n <InputLabel>\n {stringSet.MODAL__CHANNEL_INFORMATION__CHANNEL_NAME}\n </InputLabel>\n <Input\n required={title !== ''}\n name=\"channel-profile-form__name\"\n ref={inputRef}\n value={title}\n placeHolder={stringSet.MODAL__CHANNEL_INFORMATION__INPUT__PLACE_HOLDER}\n />\n </div>\n </form>\n </Modal>\n );\n};\n\nexport default EditDetails;\n"],"names":["EditDetails","props","onCancel","globalState","useSendbirdStateContext","logger","config","theme","_c","useOpenChannelSettingsContext","channel","onBeforeUpdateChannel","onChannelModified","setChannel","inputRef","useRef","formRef","hiddenInputRef","_d","useState","currentImg","setCurrentImg","_e","newFile","setNewFile","stringSet","useContext","LocalizationContext","title","name","React","MODAL__CHANNEL_INFORMATION__TITLE","BUTTON__SAVE","current","value","reportValidity","currentTitle","info","params","data","coverUrlOrImage","updateChannel","then","catch","error","ButtonType","PRIMARY","e","preventDefault","MODAL__CHANNEL_INFORMATION__CHANNEL_IMAGE","OpenChannelAvatar","display","URL","createObjectURL","target","files","click","LabelTypography","BUTTON_1","LabelColors","MODAL__CHANNEL_INFORMATION__UPLOAD","MODAL__CHANNEL_INFORMATION__CHANNEL_NAME","MODAL__CHANNEL_INFORMATION__INPUT__PLACE_HOLDER"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD;;;AAEhB,MAAAC,QAAQ,GACND,KAAK,SADP;AAEF,MAAME,WAAW,GAAGC,uBAAuB,EAA3C;AACA,MAAMC,MAAM,GAAG,MAAAF,WAAW,SAAX,IAAAA,WAAW,WAAX,SAAA,GAAAA,WAAW,CAAEG,MAAb,UAAA,iBAAA,SAAA,MAAqBD,MAApC;AACA,MAAME,KAAK,GAAG,MAAAJ,WAAW,SAAX,IAAAA,WAAW,WAAX,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,KAAD;AACE,IAAA,QAAQ,EAAEF,KAAK,KAAK,EADtB;AAEE,IAAA,IAAI,EAAC,4BAFP;AAGE,IAAA,GAAG,EAAEd,QAHP;AAIE,IAAA,KAAK,EAAEc,KAJT;AAKE,IAAA,WAAW,EAAEH,SAAS,CAACqC;AALzB,IAJF,CAjDF,CApCF,CADF;AAqGD;;;;"}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import React__default, { useState, useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-7d740b0a.js';
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-5efc096b.js';
|
|
4
4
|
import TextButton from '../../ui/TextButton.js';
|
|
5
5
|
import ChannelAvatar from '../../ui/OpenChannelAvatar.js';
|
|
6
6
|
import EditDetails from './EditDetailsModal.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import { useOpenChannelSettingsContext } from '../context.js';
|
|
9
|
-
import '../../stringSet-
|
|
10
|
-
import '../../index-
|
|
11
|
-
import '../../_rollupPluginBabelHelpers-
|
|
9
|
+
import '../../stringSet-53204a58.js';
|
|
10
|
+
import '../../index-3d519005.js';
|
|
11
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../
|
|
13
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
14
|
+
import '../../color-7a9e9046.js';
|
|
14
15
|
import '../../ui/Avatar.js';
|
|
15
|
-
import '../../tslib.es6-c793443a.js';
|
|
16
16
|
import '../../ui/ImageRenderer.js';
|
|
17
17
|
import '../../ui/Icon.js';
|
|
18
|
-
import '../../uuid-
|
|
19
|
-
import '../../utils-
|
|
18
|
+
import '../../uuid-8d849862.js';
|
|
19
|
+
import '../../utils-edeb25c5.js';
|
|
20
20
|
import '../../ui/Modal.js';
|
|
21
21
|
import 'react-dom';
|
|
22
|
-
import '../../index-
|
|
22
|
+
import '../../index-7965b338.js';
|
|
23
|
+
import '../../index-9ba00bc1.js';
|
|
23
24
|
import '../../ui/IconButton.js';
|
|
24
|
-
import '../../index-d3358aa9.js';
|
|
25
|
-
import '../../utils-b69f7583.js';
|
|
26
25
|
import '../../ui/Input.js';
|
|
27
26
|
import '../../withSendbird.js';
|
|
28
|
-
import '../../openChannel-
|
|
29
|
-
import '../../__bundle-6316ce22-
|
|
30
|
-
import '../../__bundle-7dfccc8c-
|
|
31
|
-
import '../../UserProfileContext-
|
|
27
|
+
import '../../openChannel-654409d7.js';
|
|
28
|
+
import '../../__bundle-6316ce22-41ee43fe.js';
|
|
29
|
+
import '../../__bundle-7dfccc8c-c1f95345.js';
|
|
30
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
32
31
|
|
|
33
32
|
function ChannelProfile() {
|
|
34
33
|
var _a, _b;
|
|
@@ -69,7 +68,7 @@ function ChannelProfile() {
|
|
|
69
68
|
|
|
70
69
|
setShowModal(true);
|
|
71
70
|
},
|
|
72
|
-
|
|
71
|
+
disableUnderline: true
|
|
73
72
|
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
74
73
|
type: LabelTypography.BUTTON_1,
|
|
75
74
|
color: disabled ? LabelColors.ONBACKGROUND_2 : LabelColors.PRIMARY
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenChannelProfile.js","sources":["../../../src/smart-components/OpenChannelSettings/components/OpenChannelProfile/index.tsx"],"sourcesContent":["import React, {\n ReactElement,\n useContext,\n useState,\n} from 'react';\n\nimport './channel-profile.scss';\n\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport Label, { LabelColors, LabelTypography } from '../../../../ui/Label';\nimport TextButton from '../../../../ui/TextButton';\nimport OpenChannelAvatar from '../../../../ui/ChannelAvatar/OpenChannelAvatar';\nimport EditDetailsModal from '../EditDetailsModal';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useOpenChannelSettingsContext } from '../../context/OpenChannelSettingsProvider';\n\nexport default function ChannelProfile(): ReactElement {\n const globalState = useSendbirdStateContext();\n const disabled = !(globalState?.config?.isOnline);\n const theme = globalState?.config?.theme;\n const {\n channel,\n } = useOpenChannelSettingsContext();\n\n const title = channel?.name;\n const [showModal, setShowModal] = useState(false);\n const { stringSet } = useContext(LocalizationContext);\n\n return (\n <div className=\"sendbird-openchannel-profile\">\n <div className=\"sendbird-openchannel-profile--inner\">\n <div className=\"sendbird-openchannel-profile__avatar\">\n <OpenChannelAvatar\n channel={channel}\n theme={theme}\n height={80}\n width={80}\n />\n </div>\n <Label\n type={LabelTypography.SUBTITLE_2}\n color={LabelColors.ONBACKGROUND_1}\n className=\"sendbird-openchannel-profile__title\"\n >\n {title || stringSet.OPEN_CHANNEL_SETTINGS__NO_TITLE}\n </Label>\n <TextButton\n disabled={disabled}\n className=\"sendbird-openchannel-profile__edit\"\n onClick={() => {\n if (disabled) { return; }\n setShowModal(true);\n }}\n
|
|
1
|
+
{"version":3,"file":"OpenChannelProfile.js","sources":["../../../src/smart-components/OpenChannelSettings/components/OpenChannelProfile/index.tsx"],"sourcesContent":["import React, {\n ReactElement,\n useContext,\n useState,\n} from 'react';\n\nimport './channel-profile.scss';\n\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport Label, { LabelColors, LabelTypography } from '../../../../ui/Label';\nimport TextButton from '../../../../ui/TextButton';\nimport OpenChannelAvatar from '../../../../ui/ChannelAvatar/OpenChannelAvatar';\nimport EditDetailsModal from '../EditDetailsModal';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useOpenChannelSettingsContext } from '../../context/OpenChannelSettingsProvider';\n\nexport default function ChannelProfile(): ReactElement {\n const globalState = useSendbirdStateContext();\n const disabled = !(globalState?.config?.isOnline);\n const theme = globalState?.config?.theme;\n const {\n channel,\n } = useOpenChannelSettingsContext();\n\n const title = channel?.name;\n const [showModal, setShowModal] = useState(false);\n const { stringSet } = useContext(LocalizationContext);\n\n return (\n <div className=\"sendbird-openchannel-profile\">\n <div className=\"sendbird-openchannel-profile--inner\">\n <div className=\"sendbird-openchannel-profile__avatar\">\n <OpenChannelAvatar\n channel={channel}\n theme={theme}\n height={80}\n width={80}\n />\n </div>\n <Label\n type={LabelTypography.SUBTITLE_2}\n color={LabelColors.ONBACKGROUND_1}\n className=\"sendbird-openchannel-profile__title\"\n >\n {title || stringSet.OPEN_CHANNEL_SETTINGS__NO_TITLE}\n </Label>\n <TextButton\n disabled={disabled}\n className=\"sendbird-openchannel-profile__edit\"\n onClick={() => {\n if (disabled) { return; }\n setShowModal(true);\n }}\n disableUnderline\n >\n <Label\n type={LabelTypography.BUTTON_1}\n color={disabled ? LabelColors.ONBACKGROUND_2 : LabelColors.PRIMARY}\n >\n {stringSet.CHANNEL_SETTING__PROFILE__EDIT}\n </Label>\n </TextButton>\n {\n showModal && (\n <EditDetailsModal\n onCancel={() => setShowModal(false)}\n />\n )\n }\n </div>\n </div>\n );\n}\n"],"names":["ChannelProfile","globalState","useSendbirdStateContext","disabled","config","isOnline","theme","channel","useOpenChannelSettingsContext","title","name","_c","useState","showModal","setShowModal","stringSet","useContext","LocalizationContext","React","OpenChannelAvatar","LabelTypography","SUBTITLE_2","LabelColors","ONBACKGROUND_1","OPEN_CHANNEL_SETTINGS__NO_TITLE","BUTTON_1","ONBACKGROUND_2","PRIMARY","CHANNEL_SETTING__PROFILE__EDIT","EditDetailsModal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgBwBA;;;AACtB,MAAMC,WAAW,GAAGC,uBAAuB,EAA3C;AACA,MAAMC,QAAQ,GAAG,EAAE,MAAAF,WAAW,SAAX,IAAAA,WAAW,WAAX,SAAA,GAAAA,WAAW,CAAEG,MAAb,UAAA,iBAAA,SAAA,MAAqBC,QAAvB,CAAjB;AACA,MAAMC,KAAK,GAAG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S,CAACa,8BAJb,CATF,CAhBF,EAiCIf,SAAS,iBACPK,6BAACW,WAAD;AACE,IAAA,QAAQ,EAAE;AAAM,aAAAf,YAAY,CAAC,KAAD,CAAZ;AAAmB;AADrC,IAlCN,CADF,CADF;AA4CD;;;;"}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
3
|
import { useOpenChannelSettingsContext } from '../context.js';
|
|
4
|
-
import { U as UserProfileProvider } from '../../UserProfileContext-
|
|
5
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { U as UserProfileProvider } from '../../UserProfileContext-9b7b1d4f.js';
|
|
5
|
+
import { a as LocalizationContext } from '../../LocalizationContext-7d740b0a.js';
|
|
6
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-5efc096b.js';
|
|
7
7
|
import Icon, { IconTypes } from '../../ui/Icon.js';
|
|
8
|
-
import { P as PlaceHolder, b as PlaceHolderTypes } from '../../index-
|
|
8
|
+
import { P as PlaceHolder, b as PlaceHolderTypes } from '../../index-00ac1d60.js';
|
|
9
9
|
import { OperatorUI } from './OperatorUI.js';
|
|
10
|
-
import { P as ParticipantList } from '../../index-
|
|
10
|
+
import { P as ParticipantList } from '../../index-6e4da943.js';
|
|
11
11
|
import '../../withSendbird.js';
|
|
12
|
-
import '../../_rollupPluginBabelHelpers-
|
|
13
|
-
import '../../openChannel-
|
|
14
|
-
import '../../__bundle-6316ce22-
|
|
15
|
-
import '../../__bundle-7dfccc8c-
|
|
16
|
-
import '../../uuid-
|
|
12
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
13
|
+
import '../../openChannel-654409d7.js';
|
|
14
|
+
import '../../__bundle-6316ce22-41ee43fe.js';
|
|
15
|
+
import '../../__bundle-7dfccc8c-c1f95345.js';
|
|
16
|
+
import '../../uuid-8d849862.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import '../../stringSet-
|
|
19
|
-
import '../../index-
|
|
18
|
+
import '../../stringSet-53204a58.js';
|
|
19
|
+
import '../../index-3d519005.js';
|
|
20
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
20
21
|
import '../../ui/Loader.js';
|
|
21
22
|
import './OpenChannelProfile.js';
|
|
22
23
|
import '../../ui/TextButton.js';
|
|
23
|
-
import '../../color-
|
|
24
|
+
import '../../color-7a9e9046.js';
|
|
24
25
|
import '../../ui/OpenChannelAvatar.js';
|
|
25
26
|
import '../../ui/Avatar.js';
|
|
26
|
-
import '../../tslib.es6-c793443a.js';
|
|
27
27
|
import '../../ui/ImageRenderer.js';
|
|
28
|
-
import '../../utils-
|
|
28
|
+
import '../../utils-edeb25c5.js';
|
|
29
29
|
import './EditDetailsModal.js';
|
|
30
30
|
import '../../ui/Modal.js';
|
|
31
31
|
import 'react-dom';
|
|
32
|
-
import '../../index-
|
|
32
|
+
import '../../index-7965b338.js';
|
|
33
|
+
import '../../index-9ba00bc1.js';
|
|
33
34
|
import '../../ui/IconButton.js';
|
|
34
|
-
import '../../index-d3358aa9.js';
|
|
35
|
-
import '../../utils-b69f7583.js';
|
|
36
35
|
import '../../ui/Input.js';
|
|
37
36
|
import '../../ui/Accordion.js';
|
|
38
37
|
import '../../ui/AccordionGroup.js';
|
|
39
|
-
import '../../context-
|
|
38
|
+
import '../../context-d85e90c3.js';
|
|
39
|
+
import '../../utils-e0115d03.js';
|
|
40
40
|
import '../../ui/ContextMenu.js';
|
|
41
|
-
import '../../index-65007eeb.js';
|
|
42
41
|
import '../../ui/SortByRow.js';
|
|
42
|
+
import '../../index-f37bc955.js';
|
|
43
43
|
import '../../ui/UserListItem.js';
|
|
44
44
|
import '../../ui/MutedAvatarOverlay.js';
|
|
45
45
|
import '../../ui/Checkbox.js';
|
|
46
46
|
import '../../ui/UserProfile.js';
|
|
47
47
|
import '../../sendbirdSelectors.js';
|
|
48
|
-
import '../../topics-
|
|
48
|
+
import '../../topics-3dbd69e2.js';
|
|
49
49
|
|
|
50
50
|
function InvalidChannel(_a) {
|
|
51
51
|
var onCloseClick = _a.onCloseClick;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenChannelSettingsUI.js","sources":["../../../src/smart-components/OpenChannelSettings/components/InvalidChannel.tsx","../../../src/smart-components/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx"],"sourcesContent":["import React, { ReactElement, useContext } from 'react'\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\n\nimport Label, { LabelTypography, LabelColors } from '../../../ui/Label';\nimport Icon, { IconTypes } from '../../../ui/Icon';\n\nimport PlaceHolder from '../../../ui/PlaceHolder';\nimport PlaceHolderTypes from '../../../ui/PlaceHolder/type';\n\ninterface Props {\n onCloseClick?(): void;\n}\n\nexport default function InvalidChannel({\n onCloseClick,\n}: Props): ReactElement {\n const { stringSet } = useContext(LocalizationContext);\n return (\n <div className=\"sendbird-openchannel-settings\">\n <div className=\"sendbird-openchannel-settings__header\">\n <Label type={LabelTypography.H_2} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.CHANNEL_SETTING__HEADER__TITLE}\n </Label>\n <Icon\n type={IconTypes.CLOSE}\n className=\"sendbird-openchannel-settings__close-icon\"\n height=\"24px\"\n width=\"24px\"\n onClick={() => {\n onCloseClick();\n }}\n />\n </div>\n <div className=\"sendbird-openchannel-settings__placeholder\">\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n </div>\n </div>\n )\n}\n","import './open-channel-ui.scss';\n\nimport React, { useContext } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useOpenChannelSettingsContext } from '../../context/OpenChannelSettingsProvider';\nimport { UserProfileProvider } from '../../../../lib/UserProfileContext';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\n\nimport InvalidChannel from '../InvalidChannel';\nimport OperatorUI from '../OperatorUI';\nimport ParticipantUI from '../ParticipantUI';\n\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconTypes } from '../../../../ui/Icon';\n\nexport interface OpenChannelUIProps {\n renderOperatorUI?: () => React.
|
|
1
|
+
{"version":3,"file":"OpenChannelSettingsUI.js","sources":["../../../src/smart-components/OpenChannelSettings/components/InvalidChannel.tsx","../../../src/smart-components/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx"],"sourcesContent":["import React, { ReactElement, useContext } from 'react'\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\n\nimport Label, { LabelTypography, LabelColors } from '../../../ui/Label';\nimport Icon, { IconTypes } from '../../../ui/Icon';\n\nimport PlaceHolder from '../../../ui/PlaceHolder';\nimport PlaceHolderTypes from '../../../ui/PlaceHolder/type';\n\ninterface Props {\n onCloseClick?(): void;\n}\n\nexport default function InvalidChannel({\n onCloseClick,\n}: Props): ReactElement {\n const { stringSet } = useContext(LocalizationContext);\n return (\n <div className=\"sendbird-openchannel-settings\">\n <div className=\"sendbird-openchannel-settings__header\">\n <Label type={LabelTypography.H_2} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.CHANNEL_SETTING__HEADER__TITLE}\n </Label>\n <Icon\n type={IconTypes.CLOSE}\n className=\"sendbird-openchannel-settings__close-icon\"\n height=\"24px\"\n width=\"24px\"\n onClick={() => {\n onCloseClick();\n }}\n />\n </div>\n <div className=\"sendbird-openchannel-settings__placeholder\">\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n </div>\n </div>\n )\n}\n","import './open-channel-ui.scss';\n\nimport React, { useContext } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useOpenChannelSettingsContext } from '../../context/OpenChannelSettingsProvider';\nimport { UserProfileProvider } from '../../../../lib/UserProfileContext';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\n\nimport InvalidChannel from '../InvalidChannel';\nimport OperatorUI from '../OperatorUI';\nimport ParticipantUI from '../ParticipantUI';\n\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconTypes } from '../../../../ui/Icon';\n\nexport interface OpenChannelUIProps {\n renderOperatorUI?: () => React.ReactElement;\n renderParticipantList?: () => React.ReactElement;\n}\n\nconst OpenChannelUI: React.FC<OpenChannelUIProps> = ({\n renderOperatorUI,\n renderParticipantList,\n}: OpenChannelUIProps) => {\n const {\n channel,\n onCloseClick,\n } = useOpenChannelSettingsContext();\n const globalStore = useSendbirdStateContext();\n const logger = globalStore?.config?.logger;\n const user = globalStore?.stores?.userStore?.user;\n\n const { stringSet } = useContext(LocalizationContext);\n if (!channel) {\n return (\n <InvalidChannel\n onCloseClick={() => {\n logger.info('OpenChannelSettings: Click close');\n if (onCloseClick) {\n onCloseClick();\n }\n }}\n />\n );\n }\n return (\n <UserProfileProvider>\n <div className='sendbird-openchannel-settings'>\n {\n channel?.isOperator(user) && (\n renderOperatorUI?.() || (\n <OperatorUI />\n )\n )\n }\n {\n !(channel?.isOperator(user)) && (\n <div className=\"sendbird-openchannel-settings__participant\">\n <div className=\"sendbird-openchannel-settings__header\">\n <Label type={LabelTypography.H_2} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.OPEN_CHANNEL_SETTINGS__PARTICIPANTS_TITLE}\n </Label>\n <Icon\n type={IconTypes.CLOSE}\n className=\"sendbird-openchannel-settings__close-icon\"\n height=\"24px\"\n width=\"24px\"\n onClick={() => {\n onCloseClick();\n }}\n />\n </div>\n {\n renderParticipantList?.() || (\n <ParticipantUI />\n )\n }\n </div>\n )\n }\n </div>\n </UserProfileProvider>\n )\n};\n\nexport default OpenChannelUI;\n"],"names":["InvalidChannel","_a","onCloseClick","stringSet","useContext","LocalizationContext","React","LabelTypography","H_2","LabelColors","ONBACKGROUND_1","CHANNEL_SETTING__HEADER__TITLE","IconTypes","CLOSE","PlaceHolderTypes","WRONG","OpenChannelUI","renderOperatorUI","renderParticipantList","_e","useOpenChannelSettingsContext","channel","globalStore","useSendbirdStateContext","logger","config","user","stores","userStore","info","isOperator","OPEN_CHANNEL_SETTINGS__PARTICIPANTS_TITLE","ParticipantUI"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAcwBA,eAAeC;MACrCC,YAAY;AAEJ,MAAAC,SAAS,GAAKC,UAAU,CAACC,mBAAD,CAAV,UAAd;AACR,sBACEC;AAAK,IAAA,SAAS,EAAC;AAAf,kBACEA;AAAK,IAAA,SAAS,EAAC;AAAf,kBACEA,6BAAC,KAAD;AAAO,IAAA,IAAI,EAAEC,eAAe,CAACC,GAA7B;AAAkC,IAAA,KAAK,EAAEC,WAAW,CAACC;AAArD,KACGP,SAAS,CAACQ,8BADb,CADF,eAIEL,6BAAC,IAAD;AACE,IAAA,IAAI,EAAEM,SAAS,CAACC,KADlB;AAEE,IAAA,SAAS,EAAC,2CAFZ;AAGE,IAAA,MAAM,EAAC,MAHT;AAIE,IAAA,KAAK,EAAC,MAJR;AAKE,IAAA,OAAO,EAAE;AACPX,MAAAA,YAAY;AACb;AAPH,IAJF,CADF,eAeEI;AAAK,IAAA,SAAS,EAAC;AAAf,kBACEA,6BAAC,WAAD;AAAa,IAAA,IAAI,EAAEQ,gBAAgB,CAACC;AAApC,IADF,CAfF,CADF;AAqBD;;ICnBKC,aAAa,GAAiC,SAA9CA,aAA8C,CAACf,EAAD;;;MAClDgB,gBAAgB;MAChBC,qBAAqB;;AAEf,MAAAC,KAGFC,6BAA6B,EAH3B;AAAA,MACJC,OAAO,aADH;AAAA,MAEJnB,aAAY,kBAFR;;AAIN,MAAMoB,WAAW,GAAGC,uBAAuB,EAA3C;AACA,MAAMC,MAAM,GAAG,MAAAF,WAAW,SAAX,IAAAA,WAAW,WAAX,SAAA,GAAAA,WAAW,CAAEG,MAAb,UAAA,iBAAA,SAAA,MAAqBD,MAApC;AACA,MAAME,IAAI,GAAG,MAAA,MAAAJ,WAAW,SAAX,IAAAA,WAAW,WAAX,SAAA,GAA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AAqB,EAArB,kBACEZ,6BAAC0B,eAAD,OAjBN,CAVN,CADF,CADF;AAsCD;;;;"}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import React__default, { useState, useContext, useEffect, useCallback } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-7d740b0a.js';
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-5efc096b.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
5
|
import { useOpenChannelSettingsContext } from '../context.js';
|
|
6
6
|
import ChannelProfile from './OpenChannelProfile.js';
|
|
7
7
|
import Modal from '../../ui/Modal.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { U as UserListItem$1, P as ParticipantList } from '../../index-
|
|
9
|
+
import { U as UserListItem$1, P as ParticipantList } from '../../index-6e4da943.js';
|
|
10
10
|
import Accordion, { AccordionGroup } from '../../ui/Accordion.js';
|
|
11
|
-
import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-
|
|
11
|
+
import { T as Type, B as Button, a as ButtonTypes, b as ButtonSizes } from '../../index-9ba00bc1.js';
|
|
12
12
|
import ContextMenu, { MenuItems, MenuItem } from '../../ui/ContextMenu.js';
|
|
13
13
|
import IconButton from '../../ui/IconButton.js';
|
|
14
|
-
import { a as __spreadArray, _ as __assign } from '../../tslib.es6-
|
|
14
|
+
import { a as __spreadArray, _ as __assign } from '../../tslib.es6-5c8a20bb.js';
|
|
15
15
|
import UserListItem from '../../ui/UserListItem.js';
|
|
16
|
-
import { n as noop } from '../../utils-
|
|
17
|
-
import '../../stringSet-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../_rollupPluginBabelHelpers-
|
|
16
|
+
import { n as noop } from '../../utils-e0115d03.js';
|
|
17
|
+
import '../../stringSet-53204a58.js';
|
|
18
|
+
import '../../index-3d519005.js';
|
|
19
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
20
20
|
import 'prop-types';
|
|
21
|
-
import '../../openChannel-
|
|
22
|
-
import '../../__bundle-6316ce22-
|
|
23
|
-
import '../../__bundle-7dfccc8c-
|
|
24
|
-
import '../../UserProfileContext-
|
|
25
|
-
import '../../uuid-
|
|
21
|
+
import '../../openChannel-654409d7.js';
|
|
22
|
+
import '../../__bundle-6316ce22-41ee43fe.js';
|
|
23
|
+
import '../../__bundle-7dfccc8c-c1f95345.js';
|
|
24
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
25
|
+
import '../../uuid-8d849862.js';
|
|
26
26
|
import '../../withSendbird.js';
|
|
27
27
|
import '../../ui/TextButton.js';
|
|
28
|
-
import '../../color-
|
|
28
|
+
import '../../color-7a9e9046.js';
|
|
29
29
|
import '../../ui/OpenChannelAvatar.js';
|
|
30
30
|
import '../../ui/Avatar.js';
|
|
31
31
|
import '../../ui/ImageRenderer.js';
|
|
32
|
-
import '../../utils-
|
|
32
|
+
import '../../utils-edeb25c5.js';
|
|
33
33
|
import './EditDetailsModal.js';
|
|
34
34
|
import '../../ui/Input.js';
|
|
35
35
|
import 'react-dom';
|
|
36
|
-
import '../../index-
|
|
37
|
-
import '../../context-
|
|
36
|
+
import '../../index-7965b338.js';
|
|
37
|
+
import '../../context-d85e90c3.js';
|
|
38
38
|
import '../../ui/UserProfile.js';
|
|
39
39
|
import '../../sendbirdSelectors.js';
|
|
40
|
-
import '../../topics-
|
|
40
|
+
import '../../topics-3dbd69e2.js';
|
|
41
41
|
import '../../ui/AccordionGroup.js';
|
|
42
|
-
import '../../index-65007eeb.js';
|
|
43
42
|
import '../../ui/SortByRow.js';
|
|
43
|
+
import '../../index-f37bc955.js';
|
|
44
44
|
import '../../ui/MutedAvatarOverlay.js';
|
|
45
45
|
import '../../ui/Checkbox.js';
|
|
46
46
|
|