@sendbird/uikit-react 3.1.1-rc.4 → 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 -33
- package/App.js.map +1 -1
- package/CHANGELOG.md +50 -0
- package/Channel/components/ChannelHeader.js +19 -17
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +26 -24
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +18 -16
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +23 -21
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +20 -18
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +25 -23
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +22 -21
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +19 -17
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +18 -16
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +5 -5
- package/Channel/context.js +17 -15
- package/Channel/context.js.map +1 -1
- package/Channel.js +26 -24
- package/Channel.js.map +1 -1
- 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 -28
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +23 -21
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +18 -16
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +12 -10
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +30 -28
- package/ChannelList.js.map +1 -1
- package/{ChannelListProvider-25d9b3b5.js → ChannelListProvider-536de516.js} +9 -9
- package/ChannelListProvider-536de516.js.map +1 -0
- package/{ChannelProvider-0d6ca899.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 -20
- 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 -17
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- 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 -21
- package/ChannelSettings.js.map +1 -1
- 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-3a67b8a6.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-e8feb521.js → LocalizationContext-7d740b0a.js} +3 -3
- package/LocalizationContext-7d740b0a.js.map +1 -0
- package/{MemberList-28d2c9b1.js → MemberList-8bc3c1e1.js} +6 -6
- package/{MemberList-28d2c9b1.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 -15
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +21 -19
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +29 -27
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +28 -26
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +28 -26
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +14 -12
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +28 -26
- package/OpenChannel.js.map +1 -1
- package/{OpenChannelProvider-30cf7bc0.js → OpenChannelProvider-2e64f2d2.js} +16 -14
- package/{OpenChannelProvider-30cf7bc0.js.map → OpenChannelProvider-2e64f2d2.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +18 -18
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +16 -16
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -20
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +20 -19
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +20 -19
- package/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/OpenChannelSettings/context.js +6 -5
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +21 -20
- package/OpenChannelSettings.js.map +1 -1
- package/SendbirdProvider.js +17 -15
- package/SendbirdProvider.js.map +1 -1
- package/{UserProfileContext-95ae07d7.js → UserProfileContext-9b7b1d4f.js} +1 -1
- package/{UserProfileContext-95ae07d7.js.map → UserProfileContext-9b7b1d4f.js.map} +1 -1
- package/__bundle-6316ce22-41ee43fe.js +20 -0
- package/__bundle-6316ce22-41ee43fe.js.map +1 -0
- package/__bundle-7dfccc8c-c1f95345.js +6 -0
- package/__bundle-7dfccc8c-c1f95345.js.map +1 -0
- package/__bundle-fbda47dd-ee456253.js +6 -0
- package/__bundle-fbda47dd-ee456253.js.map +1 -0
- package/{_rollupPluginBabelHelpers-e3950f78.js → _rollupPluginBabelHelpers-4e546dea.js} +2 -105
- package/_rollupPluginBabelHelpers-4e546dea.js.map +1 -0
- package/{actionTypes-9736d670.js → actionTypes-f1946e3f.js} +1 -1
- package/{actionTypes-9736d670.js.map → actionTypes-f1946e3f.js.map} +1 -1
- package/cjs/App.js +36 -33
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +19 -17
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +26 -24
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +18 -16
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +23 -21
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +20 -18
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +25 -23
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +22 -21
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +19 -17
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +18 -16
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +5 -5
- package/cjs/Channel/context.js +17 -15
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel.js +26 -24
- package/cjs/Channel.js.map +1 -1
- 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 -28
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +23 -21
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +18 -16
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +12 -10
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +30 -28
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/{ChannelListProvider-1efae3f2.js → ChannelListProvider-40eb170c.js} +9 -9
- package/cjs/ChannelListProvider-40eb170c.js.map +1 -0
- package/cjs/{ChannelProvider-2b772ecf.js → ChannelProvider-e1a06efe.js} +35 -34
- 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 -20
- 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 -17
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- 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 -21
- package/cjs/ChannelSettings.js.map +1 -1
- 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-ec5c9745.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-a717f07f.js → LocalizationContext-a4d8d6fa.js} +3 -3
- package/cjs/LocalizationContext-a4d8d6fa.js.map +1 -0
- package/cjs/{MemberList-3d35cb10.js → MemberList-b5653b8e.js} +6 -6
- package/cjs/{MemberList-3d35cb10.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 -15
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +21 -19
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +29 -27
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +28 -26
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +28 -26
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +14 -12
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +28 -26
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/{OpenChannelProvider-071b79ac.js → OpenChannelProvider-3d3298fd.js} +16 -14
- package/cjs/{OpenChannelProvider-071b79ac.js.map → OpenChannelProvider-3d3298fd.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +18 -18
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +16 -16
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +21 -20
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +20 -19
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +20 -19
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/cjs/OpenChannelSettings/context.js +6 -5
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +21 -20
- package/cjs/OpenChannelSettings.js.map +1 -1
- package/cjs/SendbirdProvider.js +17 -16
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/{UserProfileContext-c31e547a.js → UserProfileContext-9fb4f747.js} +1 -1
- package/cjs/{UserProfileContext-c31e547a.js.map → UserProfileContext-9fb4f747.js.map} +1 -1
- package/cjs/__bundle-6316ce22-e09a7a94.js +127 -0
- package/cjs/__bundle-6316ce22-e09a7a94.js.map +1 -0
- package/cjs/__bundle-7dfccc8c-3af98778.js +15 -0
- package/cjs/__bundle-7dfccc8c-3af98778.js.map +1 -0
- package/cjs/__bundle-fbda47dd-a50b4334.js +33 -0
- package/cjs/__bundle-fbda47dd-a50b4334.js.map +1 -0
- package/cjs/{_rollupPluginBabelHelpers-e393547c.js → _rollupPluginBabelHelpers-e3f84a90.js} +1 -110
- package/cjs/_rollupPluginBabelHelpers-e3f84a90.js.map +1 -0
- package/cjs/{actionTypes-d7747d4f.js → actionTypes-8907b806.js} +1 -1
- package/cjs/{actionTypes-d7747d4f.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-14271a7a.js → compareIds-a4c74921.js} +1 -1
- package/cjs/{compareIds-14271a7a.js.map → compareIds-a4c74921.js.map} +1 -1
- package/cjs/{const-32ea063d.js → const-66e78150.js} +1 -1
- package/cjs/{const-32ea063d.js.map → const-66e78150.js.map} +1 -1
- package/cjs/{const-10467f47.js → const-b4516fd9.js} +1 -1
- package/cjs/{const-10467f47.js.map → const-b4516fd9.js.map} +1 -1
- package/cjs/{context-788aa225.js → context-24f7ccd5.js} +2 -2
- package/cjs/{context-788aa225.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-ab450f40.js +11 -0
- package/cjs/groupChannel-ab450f40.js.map +1 -0
- package/cjs/handlers/ConnectionHandler.js +4 -2
- package/cjs/handlers/ConnectionHandler.js.map +1 -1
- package/cjs/handlers/GroupChannelHandler.js +4 -2
- package/cjs/handlers/GroupChannelHandler.js.map +1 -1
- package/cjs/handlers/OpenChannelHandler.js +3 -2
- package/cjs/handlers/OpenChannelHandler.js.map +1 -1
- package/cjs/handlers/UserEventHandler.js +4 -2
- package/cjs/handlers/UserEventHandler.js.map +1 -1
- package/cjs/{index-a96d75a9.js → index-13532266.js} +3 -3
- package/cjs/{index-a96d75a9.js.map → index-13532266.js.map} +1 -1
- package/cjs/{index-ef6bd2cd.js → index-4f96bea7.js} +15 -27
- package/cjs/{index-ef6bd2cd.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-f63b3446.js → index-6d74425b.js} +1 -1
- package/cjs/{index-f63b3446.js.map → index-6d74425b.js.map} +1 -1
- package/cjs/{index-190364fc.js → index-83f6a684.js} +2 -2
- package/cjs/{index-190364fc.js.map → index-83f6a684.js.map} +1 -1
- package/cjs/{index-a0902c50.js → index-9a12fc25.js} +11 -10
- package/cjs/{index-a0902c50.js.map → index-9a12fc25.js.map} +1 -1
- package/cjs/{index-b4af7c26.js → index-9aaba1c0.js} +2 -2
- package/cjs/{index-b4af7c26.js.map → index-9aaba1c0.js.map} +1 -1
- package/cjs/{index-b20bd45d.js → index-bf23b757.js} +2 -2
- package/cjs/{index-b20bd45d.js.map → index-bf23b757.js.map} +1 -1
- package/cjs/{index-3e5e0655.js → index-df5b04e6.js} +1 -1
- package/cjs/{index-3e5e0655.js.map → index-df5b04e6.js.map} +1 -1
- package/cjs/{index-eac230b1.js → index-f4dec25b.js} +4 -4
- package/cjs/{index-eac230b1.js.map → index-f4dec25b.js.map} +1 -1
- package/cjs/{index-c75f064d.js → index-f6ccdc07.js} +7 -7
- package/cjs/index-f6ccdc07.js.map +1 -0
- package/cjs/index.js +40 -37
- package/cjs/index.js.map +1 -1
- package/cjs/openChannel-bb5e32ba.js +10 -0
- package/cjs/openChannel-bb5e32ba.js.map +1 -0
- package/cjs/{openChannelUtils-2761b73f.js → openChannelUtils-ea9b884a.js} +1 -1
- package/cjs/{openChannelUtils-2761b73f.js.map → openChannelUtils-ea9b884a.js.map} +1 -1
- package/cjs/sendbird-f219ad11.js +11 -0
- package/cjs/sendbird-f219ad11.js.map +1 -0
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-0a5abb7a.js → stringSet-0e48356d.js} +3 -2
- package/cjs/stringSet-0e48356d.js.map +1 -0
- package/cjs/{topics-ae226ee4.js → topics-6314d5b3.js} +1 -1
- package/cjs/{topics-ae226ee4.js.map → topics-6314d5b3.js.map} +1 -1
- package/cjs/{tslib.es6-c83e0722.js → tslib.es6-4d92f5f1.js} +1 -1
- package/cjs/{tslib.es6-c83e0722.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-b48b4f4a.js → utils-1cdb42c0.js} +1 -1
- package/cjs/{utils-b48b4f4a.js.map → utils-1cdb42c0.js.map} +1 -1
- package/cjs/{utils-9521a05e.js → utils-b6436b0d.js} +1 -1
- package/cjs/{utils-9521a05e.js.map → utils-b6436b0d.js.map} +1 -1
- package/cjs/{utils-a6bf5249.js → utils-b8eff714.js} +1 -1
- package/cjs/{utils-a6bf5249.js.map → utils-b8eff714.js.map} +1 -1
- package/cjs/{uuid-6cc0dc0c.js → uuid-6fae7fc4.js} +1 -1
- package/cjs/{uuid-6cc0dc0c.js.map → uuid-6fae7fc4.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-51f5fa34.js → color-7a9e9046.js} +16 -12
- package/color-7a9e9046.js.map +1 -0
- package/{compareIds-ceeebb9e.js → compareIds-b5421ba2.js} +1 -1
- package/{compareIds-ceeebb9e.js.map → compareIds-b5421ba2.js.map} +1 -1
- package/{const-ac992acf.js → const-2017fde0.js} +1 -1
- package/{const-ac992acf.js.map → const-2017fde0.js.map} +1 -1
- package/{const-7f3d79be.js → const-43ed4c6f.js} +1 -1
- package/{const-7f3d79be.js.map → const-43ed4c6f.js.map} +1 -1
- package/{context-f6040e28.js → context-d85e90c3.js} +2 -2
- package/{context-f6040e28.js.map → context-d85e90c3.js.map} +1 -1
- package/dist/index.css +50 -72
- package/dist/index.css.map +1 -1
- package/groupChannel-1ce183d5.js +8 -0
- package/groupChannel-1ce183d5.js.map +1 -0
- package/handlers/ConnectionHandler.js +4 -2
- package/handlers/ConnectionHandler.js.map +1 -1
- package/handlers/GroupChannelHandler.js +5 -3
- package/handlers/GroupChannelHandler.js.map +1 -1
- package/handlers/OpenChannelHandler.js +4 -3
- package/handlers/OpenChannelHandler.js.map +1 -1
- package/handlers/UserEventHandler.js +4 -2
- package/handlers/UserEventHandler.js.map +1 -1
- package/{index-9e21a985.js → index-00ac1d60.js} +15 -26
- package/index-00ac1d60.js.map +1 -0
- package/{index-c2162d7e.js → index-3d519005.js} +1 -1
- package/{index-c2162d7e.js.map → index-3d519005.js.map} +1 -1
- package/{index-2e611254.js → index-47b8d0ce.js} +2 -2
- package/{index-2e611254.js.map → index-47b8d0ce.js.map} +1 -1
- package/{index-3a5d7013.js → index-5efc096b.js} +3 -3
- package/{index-3a5d7013.js.map → index-5efc096b.js.map} +1 -1
- package/{index-858ed676.js → index-62f1a209.js} +4 -4
- package/{index-858ed676.js.map → index-62f1a209.js.map} +1 -1
- package/{index-37156eb1.js → index-6e4da943.js} +11 -10
- package/{index-37156eb1.js.map → index-6e4da943.js.map} +1 -1
- package/{index-1c4c0312.js → index-7965b338.js} +1 -1
- package/{index-1c4c0312.js.map → index-7965b338.js.map} +1 -1
- package/index-9ba00bc1.js +82 -0
- package/index-9ba00bc1.js.map +1 -0
- package/{index-a8bfea2b.js → index-cdcfdf8f.js} +7 -7
- package/index-cdcfdf8f.js.map +1 -0
- package/{index-c9dde45b.js → index-d4e18807.js} +2 -2
- package/{index-c9dde45b.js.map → index-d4e18807.js.map} +1 -1
- package/{index-d137bdc6.js → index-f37bc955.js} +2 -2
- package/{index-d137bdc6.js.map → index-f37bc955.js.map} +1 -1
- package/index.d.ts +116 -109
- package/index.js +40 -37
- package/index.js.map +1 -1
- package/{openChannel-96a83cdc.js → openChannel-654409d7.js} +3 -2
- package/openChannel-654409d7.js.map +1 -0
- package/{openChannelUtils-0f8c9302.js → openChannelUtils-1ae6ef95.js} +1 -1
- package/{openChannelUtils-0f8c9302.js.map → openChannelUtils-1ae6ef95.js.map} +1 -1
- package/package-lock.json +34500 -31
- package/package.json +1 -1
- package/sendbird-ae433167.js +7 -0
- package/sendbird-ae433167.js.map +1 -0
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-1b78712c.js → stringSet-53204a58.js} +3 -2
- package/stringSet-53204a58.js.map +1 -0
- package/{topics-3f657822.js → topics-3dbd69e2.js} +1 -1
- package/{topics-3f657822.js.map → topics-3dbd69e2.js.map} +1 -1
- package/{tslib.es6-8be42356.js → tslib.es6-5c8a20bb.js} +1 -1
- package/{tslib.es6-8be42356.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-16cb1829.js → utils-e0115d03.js} +1 -1
- package/{utils-16cb1829.js.map → utils-e0115d03.js.map} +1 -1
- package/{utils-023af1b2.js → utils-ea818d4c.js} +1 -1
- package/{utils-023af1b2.js.map → utils-ea818d4c.js.map} +1 -1
- package/{utils-44363dc6.js → utils-edeb25c5.js} +1 -1
- package/{utils-44363dc6.js.map → utils-edeb25c5.js.map} +1 -1
- package/{uuid-ce46f49f.js → uuid-8d849862.js} +1 -1
- package/{uuid-ce46f49f.js.map → uuid-8d849862.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-25d9b3b5.js.map +0 -1
- package/ChannelProvider-0d6ca899.js.map +0 -1
- package/CreateChannelProvider-3a67b8a6.js.map +0 -1
- package/LocalizationContext-e8feb521.js.map +0 -1
- package/__bundle-7dfccc8c-202ef797.js +0 -22
- package/__bundle-7dfccc8c-202ef797.js.map +0 -1
- package/_rollupPluginBabelHelpers-e3950f78.js.map +0 -1
- package/cjs/ChannelListProvider-1efae3f2.js.map +0 -1
- package/cjs/ChannelProvider-2b772ecf.js.map +0 -1
- package/cjs/CreateChannelProvider-ec5c9745.js.map +0 -1
- package/cjs/LocalizationContext-a717f07f.js.map +0 -1
- package/cjs/__bundle-7dfccc8c-3a2f4227.js +0 -120
- package/cjs/__bundle-7dfccc8c-3a2f4227.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-e393547c.js.map +0 -1
- package/cjs/color-70c48e47.js +0 -42
- package/cjs/color-70c48e47.js.map +0 -1
- package/cjs/groupChannel-e9138ceb.js +0 -11
- package/cjs/groupChannel-e9138ceb.js.map +0 -1
- package/cjs/index-62a62790.js +0 -97
- package/cjs/index-62a62790.js.map +0 -1
- package/cjs/index-c75f064d.js.map +0 -1
- package/cjs/openChannel-e49f6fe9.js +0 -9
- package/cjs/openChannel-e49f6fe9.js.map +0 -1
- package/cjs/stringSet-0a5abb7a.js.map +0 -1
- package/cjs/ui/Dropdown.js +0 -107
- package/cjs/ui/Dropdown.js.map +0 -1
- package/color-51f5fa34.js.map +0 -1
- package/groupChannel-8b1361c0.js +0 -8
- package/groupChannel-8b1361c0.js.map +0 -1
- package/index-31b7a668.js +0 -87
- package/index-31b7a668.js.map +0 -1
- package/index-9e21a985.js.map +0 -1
- package/index-a8bfea2b.js.map +0 -1
- package/openChannel-96a83cdc.js.map +0 -1
- package/stringSet-1b78712c.js.map +0 -1
- package/ui/Dropdown.js +0 -97
- package/ui/Dropdown.js.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import React__default, { useContext, useState } 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 Badge from '../../ui/Badge.js';
|
|
6
|
-
import { M as MemberList } from '../../MemberList-
|
|
6
|
+
import { M as MemberList } from '../../MemberList-8bc3c1e1.js';
|
|
7
7
|
import { useChannelSettingsContext } from '../context.js';
|
|
8
|
-
import '../../stringSet-
|
|
9
|
-
import '../../index-
|
|
10
|
-
import '../../_rollupPluginBabelHelpers-
|
|
8
|
+
import '../../stringSet-53204a58.js';
|
|
9
|
+
import '../../index-3d519005.js';
|
|
10
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../../
|
|
12
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
13
|
+
import '../../index-9ba00bc1.js';
|
|
13
14
|
import '../../ui/IconButton.js';
|
|
14
15
|
import '../../ui/ContextMenu.js';
|
|
15
|
-
import '../../index-d137bdc6.js';
|
|
16
|
-
import '../../tslib.es6-8be42356.js';
|
|
17
16
|
import 'react-dom';
|
|
18
17
|
import '../../ui/SortByRow.js';
|
|
18
|
+
import '../../uuid-8d849862.js';
|
|
19
|
+
import '../../index-f37bc955.js';
|
|
19
20
|
import './UserListItem.js';
|
|
20
|
-
import '../../UserProfileContext-
|
|
21
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
21
22
|
import '../../ui/Avatar.js';
|
|
22
23
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-ce46f49f.js';
|
|
24
24
|
import '../../ui/MutedAvatarOverlay.js';
|
|
25
25
|
import '../../ui/UserProfile.js';
|
|
26
26
|
import '../../withSendbird.js';
|
|
27
27
|
import '../../sendbirdSelectors.js';
|
|
28
|
-
import '../../topics-
|
|
29
|
-
import '../../utils-
|
|
28
|
+
import '../../topics-3dbd69e2.js';
|
|
29
|
+
import '../../utils-e0115d03.js';
|
|
30
30
|
import '../../ui/Modal.js';
|
|
31
|
-
import '../../index-
|
|
31
|
+
import '../../index-7965b338.js';
|
|
32
32
|
import '../../ui/UserListItem.js';
|
|
33
33
|
import '../../ui/Checkbox.js';
|
|
34
34
|
import '../../useSendbirdStateContext.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../useSendbirdStateContext.js';
|
|
3
|
-
import { U as UserProfileProvider } from '../UserProfileContext-
|
|
4
|
-
import { u as uuidv4 } from '../uuid-
|
|
3
|
+
import { U as UserProfileProvider } from '../UserProfileContext-9b7b1d4f.js';
|
|
4
|
+
import { u as uuidv4 } from '../uuid-8d849862.js';
|
|
5
5
|
import '../withSendbird.js';
|
|
6
|
-
import '../_rollupPluginBabelHelpers-
|
|
6
|
+
import '../_rollupPluginBabelHelpers-4e546dea.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
|
|
9
9
|
var ChannelSettingsContext = /*#__PURE__*/React__default.createContext(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx"],"sourcesContent":["\nimport React, {\n useEffect,\n useState,\n} from 'react';\nimport {\n GroupChannel,\n GroupChannelUpdateParams,\n SendbirdGroupChat,\n} from '@sendbird/chat/groupChannel';\n\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\nimport { RenderUserProfileProps } from '../../../types';\nimport { UserProfileProvider } from '../../../lib/UserProfileContext';\nimport uuidv4 from '../../../utils/uuid';\n\ninterface ApplicationUserListQuery {\n limit?: number;\n userIdsFilter?: Array<string>;\n metaDataKeyFilter?: string;\n metaDataValuesFilter?: Array<string>;\n}\n\ninterface ChannelSettingsQueries {\n applicationUserListQuery?: ApplicationUserListQuery;\n}\n\nexport type ChannelSettingsContextProps = {\n children?: React.
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../src/smart-components/ChannelSettings/context/ChannelSettingsProvider.tsx"],"sourcesContent":["\nimport React, {\n useEffect,\n useState,\n} from 'react';\nimport {\n GroupChannel,\n GroupChannelUpdateParams,\n SendbirdGroupChat,\n} from '@sendbird/chat/groupChannel';\n\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\nimport { RenderUserProfileProps } from '../../../types';\nimport { UserProfileProvider } from '../../../lib/UserProfileContext';\nimport uuidv4 from '../../../utils/uuid';\n\ninterface ApplicationUserListQuery {\n limit?: number;\n userIdsFilter?: Array<string>;\n metaDataKeyFilter?: string;\n metaDataValuesFilter?: Array<string>;\n}\n\ninterface ChannelSettingsQueries {\n applicationUserListQuery?: ApplicationUserListQuery;\n}\n\nexport type ChannelSettingsContextProps = {\n children?: React.ReactElement;\n channelUrl: string;\n className?: string;\n onCloseClick?(): void;\n onChannelModified?(channel: GroupChannel): void;\n onBeforeUpdateChannel?(currentTitle: string, currentImg: File, data: string): GroupChannelUpdateParams;\n queries?: ChannelSettingsQueries;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n disableUserProfile?: boolean;\n}\n\ninterface ChannelSettingsProviderInterface {\n channelUrl: string;\n onCloseClick?(): void;\n onChannelModified?(channel: GroupChannel): void;\n onBeforeUpdateChannel?(currentTitle: string, currentImg: File, data: string): GroupChannelUpdateParams;\n queries?: ChannelSettingsQueries;\n setChannelUpdateId(uniqId: string): void;\n forceUpdateUI(): void;\n channel: GroupChannel;\n invalidChannel: boolean;\n}\n\nconst ChannelSettingsContext = React.createContext<ChannelSettingsProviderInterface|null>(undefined);\n\nconst ChannelSettingsProvider: React.FC<ChannelSettingsContextProps> = (props: ChannelSettingsContextProps) => {\n const {\n children,\n className,\n channelUrl,\n onCloseClick,\n onChannelModified,\n onBeforeUpdateChannel,\n queries,\n } = props;\n\n // fetch store from <SendbirdProvider />\n const globalStore = useSendbirdStateContext();\n const { config, stores } = globalStore;\n const { sdkStore } = stores;\n const { logger } = config;\n\n const { initialized } = sdkStore;\n const sdk = sdkStore?.sdk as SendbirdGroupChat;\n\n // hack to keep track of channel updates by triggering useEffect\n const [channelUpdateId, setChannelUpdateId] = useState(uuidv4());\n const [channel, setChannel] = useState(null);\n const [invalidChannel, setInvalidChannel] = useState(false);\n\n const forceUpdateUI = () => {\n setChannelUpdateId(uuidv4());\n }\n\n useEffect(() => {\n logger.info('ChannelSettings: Setting up');\n if (!channelUrl || !initialized || !sdk) {\n logger.warning('ChannelSettings: Setting up failed', 'No channelUrl or sdk uninitialized');\n setInvalidChannel(false);\n } else {\n if (!sdk || !sdk.groupChannel) {\n logger.warning('ChannelSettings: No GroupChannel');\n return;\n }\n sdk.groupChannel.getChannel(channelUrl).then((groupChannel) => {\n if (!groupChannel) {\n logger.warning('ChannelSettings: Channel not found');\n setInvalidChannel(true);\n } else {\n logger.info('ChannelSettings: Fetched group channel', groupChannel);\n setInvalidChannel(false);\n setChannel(groupChannel);\n }\n });\n }\n }, [channelUrl, initialized, channelUpdateId]);\n\n return (\n <ChannelSettingsContext.Provider value={{\n channelUrl,\n onCloseClick,\n onChannelModified,\n onBeforeUpdateChannel,\n queries,\n setChannelUpdateId,\n forceUpdateUI,\n channel,\n invalidChannel,\n }}>\n <UserProfileProvider\n renderUserProfile={props?.renderUserProfile}\n disableUserProfile={props?.disableUserProfile}\n >\n <div className={`sendbird-channel-settings ${className}`}>\n {children}\n </div>\n </UserProfileProvider>\n </ChannelSettingsContext.Provider>\n );\n}\n\nexport type UseChannelSettingsType = () => ChannelSettingsProviderInterface;\nconst useChannelSettingsContext: UseChannelSettingsType = () => React.useContext(ChannelSettingsContext);\n\nexport {\n ChannelSettingsProvider,\n useChannelSettingsContext,\n};\n"],"names":["ChannelSettingsContext","React","createContext","undefined","ChannelSettingsProvider","props","children","className","channelUrl","onCloseClick","onChannelModified","onBeforeUpdateChannel","queries","globalStore","useSendbirdStateContext","config","stores","sdkStore","logger","initialized","sdk","_a","useState","uuidv4","channelUpdateId","setChannelUpdateId","_b","channel","setChannel","_c","invalidChannel","setInvalidChannel","forceUpdateUI","useEffect","info","warning","groupChannel","getChannel","then","renderUserProfile","disableUserProfile","useChannelSettingsContext","useContext"],"mappings":"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"}
|
package/ChannelSettings.js
CHANGED
|
@@ -3,51 +3,53 @@ import ChannelSettingsUI from './ChannelSettings/components/ChannelSettingsUI.js
|
|
|
3
3
|
import { ChannelSettingsProvider } from './ChannelSettings/context.js';
|
|
4
4
|
import './useSendbirdStateContext.js';
|
|
5
5
|
import './withSendbird.js';
|
|
6
|
-
import './_rollupPluginBabelHelpers-
|
|
7
|
-
import './index-
|
|
8
|
-
import '
|
|
6
|
+
import './_rollupPluginBabelHelpers-4e546dea.js';
|
|
7
|
+
import './index-00ac1d60.js';
|
|
8
|
+
import './tslib.es6-5c8a20bb.js';
|
|
9
|
+
import './LocalizationContext-7d740b0a.js';
|
|
10
|
+
import './stringSet-53204a58.js';
|
|
11
|
+
import './index-3d519005.js';
|
|
9
12
|
import './ui/Icon.js';
|
|
13
|
+
import 'prop-types';
|
|
14
|
+
import './index-5efc096b.js';
|
|
10
15
|
import './ui/Loader.js';
|
|
11
|
-
import './LocalizationContext-e8feb521.js';
|
|
12
|
-
import './stringSet-1b78712c.js';
|
|
13
|
-
import './index-c2162d7e.js';
|
|
14
|
-
import './index-3a5d7013.js';
|
|
15
16
|
import './ui/IconButton.js';
|
|
16
17
|
import './ChannelSettings/components/ChannelProfile.js';
|
|
17
18
|
import './ui/ChannelAvatar.js';
|
|
18
19
|
import './ui/Avatar.js';
|
|
19
|
-
import './tslib.es6-8be42356.js';
|
|
20
20
|
import './ui/ImageRenderer.js';
|
|
21
|
-
import './uuid-
|
|
22
|
-
import './utils-
|
|
21
|
+
import './uuid-8d849862.js';
|
|
22
|
+
import './utils-edeb25c5.js';
|
|
23
23
|
import './ui/TextButton.js';
|
|
24
|
-
import './color-
|
|
24
|
+
import './color-7a9e9046.js';
|
|
25
25
|
import './ChannelSettings/components/EditDetailsModal.js';
|
|
26
26
|
import './ui/Modal.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import './index-
|
|
29
|
-
import './index-
|
|
30
|
-
import './utils-16cb1829.js';
|
|
28
|
+
import './index-7965b338.js';
|
|
29
|
+
import './index-9ba00bc1.js';
|
|
31
30
|
import './ui/Input.js';
|
|
32
31
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
33
32
|
import './ui/Accordion.js';
|
|
34
33
|
import './ui/AccordionGroup.js';
|
|
35
|
-
import './context-
|
|
34
|
+
import './context-d85e90c3.js';
|
|
35
|
+
import './utils-e0115d03.js';
|
|
36
36
|
import './ui/Badge.js';
|
|
37
37
|
import './ui/ContextMenu.js';
|
|
38
|
-
import './index-d137bdc6.js';
|
|
39
38
|
import './ui/SortByRow.js';
|
|
39
|
+
import './index-f37bc955.js';
|
|
40
40
|
import './ChannelSettings/components/UserListItem.js';
|
|
41
|
-
import './UserProfileContext-
|
|
41
|
+
import './UserProfileContext-9b7b1d4f.js';
|
|
42
42
|
import './ui/MutedAvatarOverlay.js';
|
|
43
43
|
import './ui/UserProfile.js';
|
|
44
44
|
import './sendbirdSelectors.js';
|
|
45
|
-
import './topics-
|
|
45
|
+
import './topics-3dbd69e2.js';
|
|
46
46
|
import './ui/UserListItem.js';
|
|
47
47
|
import './ui/Checkbox.js';
|
|
48
|
-
import './groupChannel-
|
|
49
|
-
import './__bundle-
|
|
50
|
-
import './
|
|
48
|
+
import './groupChannel-1ce183d5.js';
|
|
49
|
+
import './__bundle-6316ce22-41ee43fe.js';
|
|
50
|
+
import './__bundle-fbda47dd-ee456253.js';
|
|
51
|
+
import './__bundle-7dfccc8c-c1f95345.js';
|
|
52
|
+
import './MemberList-8bc3c1e1.js';
|
|
51
53
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
52
54
|
import './ChannelSettings/components/UserPanel.js';
|
|
53
55
|
|
package/ChannelSettings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSettings.js","sources":["../src/smart-components/ChannelSettings/index.tsx"],"sourcesContent":["import React from 'react';\nimport ChannelSettingsUI, {\n ChannelSettingsUIProps,\n} from './components/ChannelSettingsUI';\n\nimport {\n ChannelSettingsProvider,\n ChannelSettingsContextProps,\n} from './context/ChannelSettingsProvider';\n\ninterface ApplicationUserListQuery {\n limit?: number;\n userIdsFilter?: Array<string>;\n metaDataKeyFilter?: string;\n metaDataValuesFilter?: Array<string>;\n}\n\ninterface ChannelSettingsProps extends ChannelSettingsUIProps, ChannelSettingsContextProps {\n}\n\nconst ChannelSettings: React.FC<ChannelSettingsProps> = (props: ChannelSettingsProps) => {\n return (\n <ChannelSettingsProvider\n channelUrl={props.channelUrl}\n onCloseClick={props?.onCloseClick}\n onChannelModified={props?.onChannelModified}\n onBeforeUpdateChannel={props?.onBeforeUpdateChannel}\n queries={props?.queries}\n className={props?.className}\n disableUserProfile={props?.disableUserProfile}\n renderUserProfile={props?.renderChannelProfile}\n >\n <ChannelSettingsUI\n renderPlaceholderError={props?.renderPlaceholderError}\n renderChannelProfile={props?.renderChannelProfile}\n renderModerationPanel={props?.renderModerationPanel}\n renderLeaveChannel={props?.renderLeaveChannel}\n />\n </ChannelSettingsProvider>\n );\n}\n\nexport default ChannelSettings;\n"],"names":["ChannelSettings","props","React","channelUrl","onCloseClick","onChannelModified","onBeforeUpdateChannel","queries","className","disableUserProfile","renderChannelProfile","renderPlaceholderError","renderModerationPanel","renderLeaveChannel"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChannelSettings.js","sources":["../src/smart-components/ChannelSettings/index.tsx"],"sourcesContent":["import React from 'react';\nimport ChannelSettingsUI, {\n ChannelSettingsUIProps,\n} from './components/ChannelSettingsUI';\n\nimport {\n ChannelSettingsProvider,\n ChannelSettingsContextProps,\n} from './context/ChannelSettingsProvider';\n\ninterface ApplicationUserListQuery {\n limit?: number;\n userIdsFilter?: Array<string>;\n metaDataKeyFilter?: string;\n metaDataValuesFilter?: Array<string>;\n}\n\ninterface ChannelSettingsProps extends ChannelSettingsUIProps, ChannelSettingsContextProps {\n}\n\nconst ChannelSettings: React.FC<ChannelSettingsProps> = (props: ChannelSettingsProps) => {\n return (\n <ChannelSettingsProvider\n channelUrl={props.channelUrl}\n onCloseClick={props?.onCloseClick}\n onChannelModified={props?.onChannelModified}\n onBeforeUpdateChannel={props?.onBeforeUpdateChannel}\n queries={props?.queries}\n className={props?.className}\n disableUserProfile={props?.disableUserProfile}\n renderUserProfile={props?.renderChannelProfile}\n >\n <ChannelSettingsUI\n renderPlaceholderError={props?.renderPlaceholderError}\n renderChannelProfile={props?.renderChannelProfile}\n renderModerationPanel={props?.renderModerationPanel}\n renderLeaveChannel={props?.renderLeaveChannel}\n />\n </ChannelSettingsProvider>\n );\n}\n\nexport default ChannelSettings;\n"],"names":["ChannelSettings","props","React","channelUrl","onCloseClick","onChannelModified","onBeforeUpdateChannel","queries","className","disableUserProfile","renderChannelProfile","renderPlaceholderError","renderModerationPanel","renderLeaveChannel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBMA,eAAe,GAAmC,SAAlDA,eAAkD,CAACC,KAAD;AACtD,sBACEC,6BAAC,uBAAD;AACE,IAAA,UAAU,EAAED,KAAK,CAACE,UADpB;AAEE,IAAA,YAAY,EAAEF,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEG,YAFvB;AAGE,IAAA,iBAAiB,EAAEH,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEI,iBAH5B;AAIE,IAAA,qBAAqB,EAAEJ,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEK,qBAJhC;AAKE,IAAA,OAAO,EAAEL,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEM,OALlB;AAME,IAAA,SAAS,EAAEN,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEO,SANpB;AAOE,IAAA,kBAAkB,EAAEP,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEQ,kBAP7B;AAQE,IAAA,iBAAiB,EAAER,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAES;AAR5B,kBAUER,6BAAC,iBAAD;AACE,IAAA,sBAAsB,EAAED,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEU,sBADjC;AAEE,IAAA,oBAAoB,EAAEV,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAES,oBAF/B;AAGE,IAAA,qBAAqB,EAAET,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEW,qBAHhC;AAIE,IAAA,kBAAkB,EAAEX,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEY;AAJ7B,IAVF,CADF;AAmBD;;;;"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { u as useCreateChannelContext } from '../../CreateChannelProvider-
|
|
2
|
+
import { u as useCreateChannelContext } from '../../CreateChannelProvider-1d4c08d8.js';
|
|
3
3
|
import InviteUsers from './InviteUsers.js';
|
|
4
4
|
import SelectChannelType from './SelectChannelType.js';
|
|
5
5
|
import '../../sendbirdSelectors.js';
|
|
6
|
-
import '../../topics-
|
|
7
|
-
import '../../utils-
|
|
6
|
+
import '../../topics-3dbd69e2.js';
|
|
7
|
+
import '../../utils-e0115d03.js';
|
|
8
8
|
import '../../useSendbirdStateContext.js';
|
|
9
9
|
import '../../withSendbird.js';
|
|
10
|
-
import '../../_rollupPluginBabelHelpers-
|
|
11
|
-
import '../../tslib.es6-
|
|
12
|
-
import '../../LocalizationContext-
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../index-
|
|
10
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
11
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
12
|
+
import '../../LocalizationContext-7d740b0a.js';
|
|
13
|
+
import '../../stringSet-53204a58.js';
|
|
14
|
+
import '../../index-3d519005.js';
|
|
15
15
|
import '../../ui/Modal.js';
|
|
16
|
-
import 'prop-types';
|
|
17
16
|
import 'react-dom';
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../
|
|
17
|
+
import '../../index-7965b338.js';
|
|
18
|
+
import '../../index-9ba00bc1.js';
|
|
19
|
+
import '../../index-5efc096b.js';
|
|
20
|
+
import 'prop-types';
|
|
20
21
|
import '../../ui/Icon.js';
|
|
21
|
-
import '../../
|
|
22
|
-
import '../../index-3a5d7013.js';
|
|
22
|
+
import '../../ui/IconButton.js';
|
|
23
23
|
import '../../ui/UserListItem.js';
|
|
24
|
-
import '../../UserProfileContext-
|
|
24
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
25
25
|
import '../../ui/Avatar.js';
|
|
26
26
|
import '../../ui/ImageRenderer.js';
|
|
27
|
-
import '../../uuid-
|
|
27
|
+
import '../../uuid-8d849862.js';
|
|
28
28
|
import '../../ui/MutedAvatarOverlay.js';
|
|
29
29
|
import '../../ui/Checkbox.js';
|
|
30
30
|
import '../../ui/UserProfile.js';
|
|
31
31
|
import '../../ui/ContextMenu.js';
|
|
32
|
-
import '../../index-d137bdc6.js';
|
|
33
32
|
import '../../ui/SortByRow.js';
|
|
33
|
+
import '../../index-f37bc955.js';
|
|
34
34
|
|
|
35
35
|
var CreateChannel = function CreateChannel(props) {
|
|
36
36
|
var _onCancel = props.onCancel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateChannelUI.js","sources":["../../../src/smart-components/CreateChannel/components/CreateChannelUI/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { useCreateChannelContext } from '../../context/CreateChannelProvider';\nimport InviteUsers from '../InviteUsers';\n\nimport SelectChannelType from '../SelectChannelType';\n\nexport interface CreateChannelUIProps {\n onCancel?(): void;\n renderStepOne?:(props: void) => React.
|
|
1
|
+
{"version":3,"file":"CreateChannelUI.js","sources":["../../../src/smart-components/CreateChannel/components/CreateChannelUI/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { useCreateChannelContext } from '../../context/CreateChannelProvider';\nimport InviteUsers from '../InviteUsers';\n\nimport SelectChannelType from '../SelectChannelType';\n\nexport interface CreateChannelUIProps {\n onCancel?(): void;\n renderStepOne?:(props: void) => React.ReactElement;\n}\n\nconst CreateChannel: React.FC<CreateChannelUIProps> = (props: CreateChannelUIProps) => {\n const { onCancel, renderStepOne } = props;\n\n const {\n step,\n setStep,\n userListQuery,\n } = useCreateChannelContext();\n\n return (\n <>\n {\n step === 0 && (\n renderStepOne?.() || (\n <SelectChannelType\n onCancel={onCancel}\n />\n )\n )\n }\n {\n step === 1 && (\n <InviteUsers\n userListQuery={userListQuery}\n onCancel={() => {\n setStep(0);\n onCancel();\n }}\n />\n )\n }\n </>\n )\n}\n\nexport default CreateChannel;\n"],"names":["CreateChannel","props","onCancel","renderStepOne","_a","useCreateChannelContext","step","setStep","userListQuery","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYMA,aAAa,GAAmC,SAAhDA,aAAgD,CAACC,KAAD;AAC5C,MAAAC,SAAQ,GAAoBD,KAAK,SAAjC;AAAA,MAAUE,aAAa,GAAKF,KAAK,cAAjC;;AAEF,MAAAG,KAIFC,uBAAuB,EAJrB;AAAA,MACJC,IAAI,UADA;AAAA,MAEJC,OAAO,aAFH;AAAA,MAGJC,aAAa,mBAHT;;AAMN,sBACEC,4DAEIH,IAAI,KAAK,CAAT,KACE,CAAAH,aAAa,SAAb,IAAAA,aAAa,WAAb,SAAA,GAAAA,aAAa,EAAb,kBACEM,6BAAC,iBAAD;AACE,IAAA,QAAQ,EAAEP;AADZ,IAFJ,CAFJ,EAWII,IAAI,KAAK,CAAT,iBACEG,6BAAC,WAAD;AACE,IAAA,aAAa,EAAED,aADjB;AAEE,IAAA,QAAQ,EAAE;AACRD,MAAAA,OAAO,CAAC,CAAD,CAAP;;AACAL,MAAAA,SAAQ;AACT;AALH,IAZN,CADF;AAwBD;;;;"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { a as __spreadArray, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray, _ as __assign } from '../../tslib.es6-5c8a20bb.js';
|
|
2
2
|
import React__default, { useState, useContext, useEffect } from 'react';
|
|
3
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
4
|
-
import { u as useCreateChannelContext } from '../../CreateChannelProvider-
|
|
3
|
+
import { a as LocalizationContext } from '../../LocalizationContext-7d740b0a.js';
|
|
4
|
+
import { u as useCreateChannelContext } from '../../CreateChannelProvider-1d4c08d8.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
6
|
import Modal from '../../ui/Modal.js';
|
|
7
|
-
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-
|
|
8
|
-
import { a as ButtonTypes } from '../../index-
|
|
7
|
+
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-5efc096b.js';
|
|
8
|
+
import { a as ButtonTypes } from '../../index-9ba00bc1.js';
|
|
9
9
|
import UserListItem from '../../ui/UserListItem.js';
|
|
10
|
-
import '../../stringSet-
|
|
11
|
-
import '../../index-
|
|
10
|
+
import '../../stringSet-53204a58.js';
|
|
11
|
+
import '../../index-3d519005.js';
|
|
12
12
|
import '../../sendbirdSelectors.js';
|
|
13
|
-
import '../../topics-
|
|
14
|
-
import '../../utils-
|
|
13
|
+
import '../../topics-3dbd69e2.js';
|
|
14
|
+
import '../../utils-e0115d03.js';
|
|
15
15
|
import '../../withSendbird.js';
|
|
16
|
-
import '../../_rollupPluginBabelHelpers-
|
|
17
|
-
import 'prop-types';
|
|
16
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
18
17
|
import 'react-dom';
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../ui/IconButton.js';
|
|
18
|
+
import '../../index-7965b338.js';
|
|
21
19
|
import '../../ui/Icon.js';
|
|
22
|
-
import '
|
|
20
|
+
import 'prop-types';
|
|
21
|
+
import '../../ui/IconButton.js';
|
|
22
|
+
import '../../UserProfileContext-9b7b1d4f.js';
|
|
23
23
|
import '../../ui/Avatar.js';
|
|
24
24
|
import '../../ui/ImageRenderer.js';
|
|
25
|
-
import '../../uuid-
|
|
25
|
+
import '../../uuid-8d849862.js';
|
|
26
26
|
import '../../ui/MutedAvatarOverlay.js';
|
|
27
27
|
import '../../ui/Checkbox.js';
|
|
28
28
|
import '../../ui/UserProfile.js';
|
|
29
29
|
import '../../ui/ContextMenu.js';
|
|
30
|
-
import '../../index-d137bdc6.js';
|
|
31
30
|
import '../../ui/SortByRow.js';
|
|
31
|
+
import '../../index-f37bc955.js';
|
|
32
32
|
|
|
33
33
|
var filterUser = function filterUser(idsToFilter) {
|
|
34
34
|
return function (currentId) {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
2
|
import { getSdk } from '../../sendbirdSelectors.js';
|
|
3
3
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
4
|
-
import { u as useCreateChannelContext, a as CHANNEL_TYPE } from '../../CreateChannelProvider-
|
|
5
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { u as useCreateChannelContext, a as CHANNEL_TYPE } from '../../CreateChannelProvider-1d4c08d8.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, IconColors } from '../../ui/Icon.js';
|
|
8
8
|
import Modal from '../../ui/Modal.js';
|
|
9
|
-
import '../../topics-
|
|
10
|
-
import '../../utils-
|
|
9
|
+
import '../../topics-3dbd69e2.js';
|
|
10
|
+
import '../../utils-e0115d03.js';
|
|
11
11
|
import '../../withSendbird.js';
|
|
12
|
-
import '../../_rollupPluginBabelHelpers-
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../index-
|
|
12
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
13
|
+
import '../../stringSet-53204a58.js';
|
|
14
|
+
import '../../index-3d519005.js';
|
|
15
15
|
import 'prop-types';
|
|
16
16
|
import 'react-dom';
|
|
17
|
-
import '../../index-
|
|
17
|
+
import '../../index-7965b338.js';
|
|
18
|
+
import '../../index-9ba00bc1.js';
|
|
19
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
18
20
|
import '../../ui/IconButton.js';
|
|
19
|
-
import '../../index-31b7a668.js';
|
|
20
21
|
|
|
21
22
|
var isBroadcastChannelEnabled = function isBroadcastChannelEnabled(sdk) {
|
|
22
23
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectChannelType.js","sources":["../../../src/smart-components/CreateChannel/utils.ts","../../../src/smart-components/CreateChannel/components/SelectChannelType.tsx"],"sourcesContent":["import type { SendbirdGroupChat } from \"@sendbird/chat/groupChannel\";\n\nexport const isBroadcastChannelEnabled = (sdk: SendbirdGroupChat): boolean => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = sdk?.appInfo?.applicationAttributes;\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\n\nexport const isSuperGroupChannelEnabled = (sdk: SendbirdGroupChat): boolean => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = sdk?.appInfo?.applicationAttributes;\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n","import React, { useContext } from 'react';\nimport type { SendbirdGroupChat } from '@sendbird/chat/groupChannel';\n\nimport * as sendbirdSelectors from '../../../lib/selectors';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\n\nimport { useCreateChannelContext } from '../context/CreateChannelProvider';\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\nimport Label, { LabelColors, LabelTypography } from '../../../ui/Label';\nimport Icon, { IconTypes, IconColors } from '../../../ui/Icon';\n\nimport Modal from '../../../ui/Modal';\n\nimport {\n isBroadcastChannelEnabled,\n isSuperGroupChannelEnabled,\n} from '../utils';\nimport { CHANNEL_TYPE } from '../types';\n\nexport interface SelectChannelTypeProps {\n onCancel?(): void;\n}\n\nconst SelectChannelType: React.FC<SelectChannelTypeProps> = (props: SelectChannelTypeProps) => {\n const { onCancel } = props;\n const store = useSendbirdStateContext();\n\n const sdk = sendbirdSelectors.getSdk(store) as SendbirdGroupChat;\n\n const createChannelProps = useCreateChannelContext();\n const {\n setStep,\n setType,\n } = createChannelProps;\n\n const { stringSet } = useContext(LocalizationContext);\n\n const isBroadcastAvailable = isBroadcastChannelEnabled(sdk);\n const isSupergroupAvailable = isSuperGroupChannelEnabled(sdk);\n\n return (\n <Modal\n titleText={stringSet?.MODAL__CREATE_CHANNEL__TITLE}\n hideFooter\n onCancel={() => { onCancel(); }}\n >\n <div className=\"sendbird-add-channel__rectangle-wrap\">\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.GROUP);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.GROUP);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__chat-icon\"\n type={IconTypes.CHAT}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__GROUP}\n </Label>\n </div>\n {\n isSupergroupAvailable && (\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.SUPERGROUP);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.SUPERGROUP);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__supergroup-icon\"\n type={IconTypes.SUPERGROUP}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__SUPER}\n </Label>\n </div>\n )\n }\n {\n isBroadcastAvailable && (\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.BROADCAST);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.BROADCAST);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__broadcast-icon\"\n type={IconTypes.BROADCAST}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__BROADCAST}\n </Label>\n </div>\n )\n }\n </div>\n </Modal>\n );\n}\n\nexport default SelectChannelType;\n"],"names":["isBroadcastChannelEnabled","sdk","ALLOW_BROADCAST_CHANNEL","applicationAttributes","appInfo","Array","isArray","includes","isSuperGroupChannelEnabled","ALLOW_SUPER_GROUP_CHANNEL","SelectChannelType","props","onCancel","store","useSendbirdStateContext","sendbirdSelectors","createChannelProps","useCreateChannelContext","setStep","setType","stringSet","useContext","LocalizationContext","isBroadcastAvailable","isSupergroupAvailable","React","MODAL__CREATE_CHANNEL__TITLE","CHANNEL_TYPE","GROUP","IconTypes","CHAT","IconColors","PRIMARY","LabelTypography","SUBTITLE_1","LabelColors","ONBACKGROUND_1","MODAL__CREATE_CHANNEL__GROUP","SUPERGROUP","MODAL__CREATE_CHANNEL__SUPER","BROADCAST","MODAL__CREATE_CHANNEL__BROADCAST"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectChannelType.js","sources":["../../../src/smart-components/CreateChannel/utils.ts","../../../src/smart-components/CreateChannel/components/SelectChannelType.tsx"],"sourcesContent":["import type { SendbirdGroupChat } from \"@sendbird/chat/groupChannel\";\n\nexport const isBroadcastChannelEnabled = (sdk: SendbirdGroupChat): boolean => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = sdk?.appInfo?.applicationAttributes;\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\n\nexport const isSuperGroupChannelEnabled = (sdk: SendbirdGroupChat): boolean => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = sdk?.appInfo?.applicationAttributes;\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n","import React, { useContext } from 'react';\nimport type { SendbirdGroupChat } from '@sendbird/chat/groupChannel';\n\nimport * as sendbirdSelectors from '../../../lib/selectors';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\n\nimport { useCreateChannelContext } from '../context/CreateChannelProvider';\n\nimport { LocalizationContext } from '../../../lib/LocalizationContext';\nimport Label, { LabelColors, LabelTypography } from '../../../ui/Label';\nimport Icon, { IconTypes, IconColors } from '../../../ui/Icon';\n\nimport Modal from '../../../ui/Modal';\n\nimport {\n isBroadcastChannelEnabled,\n isSuperGroupChannelEnabled,\n} from '../utils';\nimport { CHANNEL_TYPE } from '../types';\n\nexport interface SelectChannelTypeProps {\n onCancel?(): void;\n}\n\nconst SelectChannelType: React.FC<SelectChannelTypeProps> = (props: SelectChannelTypeProps) => {\n const { onCancel } = props;\n const store = useSendbirdStateContext();\n\n const sdk = sendbirdSelectors.getSdk(store) as SendbirdGroupChat;\n\n const createChannelProps = useCreateChannelContext();\n const {\n setStep,\n setType,\n } = createChannelProps;\n\n const { stringSet } = useContext(LocalizationContext);\n\n const isBroadcastAvailable = isBroadcastChannelEnabled(sdk);\n const isSupergroupAvailable = isSuperGroupChannelEnabled(sdk);\n\n return (\n <Modal\n titleText={stringSet?.MODAL__CREATE_CHANNEL__TITLE}\n hideFooter\n onCancel={() => { onCancel(); }}\n >\n <div className=\"sendbird-add-channel__rectangle-wrap\">\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.GROUP);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.GROUP);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__chat-icon\"\n type={IconTypes.CHAT}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__GROUP}\n </Label>\n </div>\n {\n isSupergroupAvailable && (\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.SUPERGROUP);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.SUPERGROUP);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__supergroup-icon\"\n type={IconTypes.SUPERGROUP}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__SUPER}\n </Label>\n </div>\n )\n }\n {\n isBroadcastAvailable && (\n <div\n className=\"sendbird-add-channel__rectangle\"\n onClick={() => {\n setType(CHANNEL_TYPE.BROADCAST);\n setStep(1);\n }}\n role=\"button\"\n tabIndex={0}\n onKeyDown={() => {\n setType(CHANNEL_TYPE.BROADCAST);\n setStep(1);\n }}\n >\n <Icon\n className=\"sendbird-add-channel__rectangle__broadcast-icon\"\n type={IconTypes.BROADCAST}\n fillColor={IconColors.PRIMARY}\n width=\"28px\"\n height=\"28px\"\n />\n <Label type={LabelTypography.SUBTITLE_1} color={LabelColors.ONBACKGROUND_1}>\n {stringSet.MODAL__CREATE_CHANNEL__BROADCAST}\n </Label>\n </div>\n )\n }\n </div>\n </Modal>\n );\n}\n\nexport default SelectChannelType;\n"],"names":["isBroadcastChannelEnabled","sdk","ALLOW_BROADCAST_CHANNEL","applicationAttributes","appInfo","Array","isArray","includes","isSuperGroupChannelEnabled","ALLOW_SUPER_GROUP_CHANNEL","SelectChannelType","props","onCancel","store","useSendbirdStateContext","sendbirdSelectors","createChannelProps","useCreateChannelContext","setStep","setType","stringSet","useContext","LocalizationContext","isBroadcastAvailable","isSupergroupAvailable","React","MODAL__CREATE_CHANNEL__TITLE","CHANNEL_TYPE","GROUP","IconTypes","CHAT","IconColors","PRIMARY","LabelTypography","SUBTITLE_1","LabelColors","ONBACKGROUND_1","MODAL__CREATE_CHANNEL__GROUP","SUPERGROUP","MODAL__CREATE_CHANNEL__SUPER","BROADCAST","MODAL__CREATE_CHANNEL__BROADCAST"],"mappings":"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"}
|
package/CreateChannel/context.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../sendbirdSelectors.js';
|
|
3
3
|
import '../useSendbirdStateContext.js';
|
|
4
|
-
export { C as CreateChannelProvider, u as useCreateChannelContext } from '../CreateChannelProvider-
|
|
5
|
-
import '../topics-
|
|
6
|
-
import '../utils-
|
|
4
|
+
export { C as CreateChannelProvider, u as useCreateChannelContext } from '../CreateChannelProvider-1d4c08d8.js';
|
|
5
|
+
import '../topics-3dbd69e2.js';
|
|
6
|
+
import '../utils-e0115d03.js';
|
|
7
7
|
import '../withSendbird.js';
|
|
8
|
-
import '../_rollupPluginBabelHelpers-
|
|
8
|
+
import '../_rollupPluginBabelHelpers-4e546dea.js';
|
|
9
9
|
//# sourceMappingURL=context.js.map
|
package/CreateChannel.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import CreateChannel$1 from './CreateChannel/components/CreateChannelUI.js';
|
|
3
|
-
import { C as CreateChannelProvider } from './CreateChannelProvider-
|
|
3
|
+
import { C as CreateChannelProvider } from './CreateChannelProvider-1d4c08d8.js';
|
|
4
4
|
import './CreateChannel/components/InviteUsers.js';
|
|
5
|
-
import './tslib.es6-
|
|
6
|
-
import './LocalizationContext-
|
|
7
|
-
import './stringSet-
|
|
8
|
-
import './index-
|
|
5
|
+
import './tslib.es6-5c8a20bb.js';
|
|
6
|
+
import './LocalizationContext-7d740b0a.js';
|
|
7
|
+
import './stringSet-53204a58.js';
|
|
8
|
+
import './index-3d519005.js';
|
|
9
9
|
import './useSendbirdStateContext.js';
|
|
10
10
|
import './withSendbird.js';
|
|
11
|
-
import './_rollupPluginBabelHelpers-
|
|
11
|
+
import './_rollupPluginBabelHelpers-4e546dea.js';
|
|
12
12
|
import './ui/Modal.js';
|
|
13
|
-
import 'prop-types';
|
|
14
13
|
import 'react-dom';
|
|
15
|
-
import './index-
|
|
16
|
-
import './
|
|
14
|
+
import './index-7965b338.js';
|
|
15
|
+
import './index-9ba00bc1.js';
|
|
16
|
+
import './index-5efc096b.js';
|
|
17
|
+
import 'prop-types';
|
|
17
18
|
import './ui/Icon.js';
|
|
18
|
-
import './
|
|
19
|
-
import './index-3a5d7013.js';
|
|
20
|
-
import './utils-16cb1829.js';
|
|
19
|
+
import './ui/IconButton.js';
|
|
21
20
|
import './ui/UserListItem.js';
|
|
22
|
-
import './UserProfileContext-
|
|
21
|
+
import './UserProfileContext-9b7b1d4f.js';
|
|
23
22
|
import './ui/Avatar.js';
|
|
24
23
|
import './ui/ImageRenderer.js';
|
|
25
|
-
import './uuid-
|
|
24
|
+
import './uuid-8d849862.js';
|
|
26
25
|
import './ui/MutedAvatarOverlay.js';
|
|
27
26
|
import './ui/Checkbox.js';
|
|
28
27
|
import './ui/UserProfile.js';
|
|
29
28
|
import './sendbirdSelectors.js';
|
|
30
|
-
import './topics-
|
|
29
|
+
import './topics-3dbd69e2.js';
|
|
30
|
+
import './utils-e0115d03.js';
|
|
31
31
|
import './ui/ContextMenu.js';
|
|
32
|
-
import './index-d137bdc6.js';
|
|
33
32
|
import './ui/SortByRow.js';
|
|
33
|
+
import './index-f37bc955.js';
|
|
34
34
|
import './CreateChannel/components/SelectChannelType.js';
|
|
35
35
|
|
|
36
36
|
var CreateChannel = function CreateChannel(props) {
|
|
@@ -50,4 +50,4 @@ var useCreateChannelContext = function useCreateChannelContext() {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export { CreateChannelProvider as C, CHANNEL_TYPE as a, useCreateChannelContext as u };
|
|
53
|
-
//# sourceMappingURL=CreateChannelProvider-
|
|
53
|
+
//# sourceMappingURL=CreateChannelProvider-1d4c08d8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateChannelProvider-1d4c08d8.js","sources":["../src/smart-components/CreateChannel/types.ts","../src/smart-components/CreateChannel/context/CreateChannelProvider.tsx"],"sourcesContent":["export enum CHANNEL_TYPE {\n GROUP = 'group',\n SUPERGROUP = 'supergroup',\n BROADCAST = 'broadcast',\n}\n","import React, { useState } from 'react';\nimport { User } from '@sendbird/chat';\nimport type {\n GroupChannel,\n GroupChannelCreateParams,\n SendbirdGroupChat,\n} from '@sendbird/chat/groupChannel';\n\nimport { getCreateGroupChannel } from '../../../lib/selectors';\nimport useSendbirdStateContext from '../../../hooks/useSendbirdStateContext';\nimport { CHANNEL_TYPE } from '../types';\n\nconst CreateChannelContext = React.createContext(undefined);\n\nexport interface UserListQuery {\n hasNext?: boolean;\n next(): Promise<Array<User>>;\n}\n\nexport interface CreateChannelProviderProps {\n children?: React.ReactElement;\n onCreateChannel(channel: GroupChannel): void;\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n userListQuery?(): UserListQuery;\n}\n\ntype CreateChannel = (channelParams: GroupChannelCreateParams) => Promise<GroupChannel>;\n\nexport interface CreateChannelContextInterface {\n onBeforeCreateChannel?(users: Array<string>): GroupChannelCreateParams;\n createChannel: CreateChannel;\n sdk: SendbirdGroupChat;\n userListQuery?(): UserListQuery;\n onCreateChannel?(channel: GroupChannel): void;\n step: number,\n setStep: React.Dispatch<React.SetStateAction<number>>,\n type: CHANNEL_TYPE,\n setType: React.Dispatch<React.SetStateAction<CHANNEL_TYPE>>,\n}\n\nconst CreateChannelProvider: React.FC<CreateChannelProviderProps> = (props: CreateChannelProviderProps) => {\n const {\n children,\n onCreateChannel,\n onBeforeCreateChannel,\n userListQuery,\n } = props;\n\n const store = useSendbirdStateContext();\n const userListQuery_ = store?.config?.userListQuery;\n const createChannel: (channelParams: GroupChannelCreateParams)\n => Promise<GroupChannel> = getCreateGroupChannel(store);\n\n const [step, setStep] = useState(0);\n const [type, setType] = useState(CHANNEL_TYPE.GROUP);\n\n return (\n <CreateChannelContext.Provider value={{\n onBeforeCreateChannel,\n createChannel,\n onCreateChannel,\n userListQuery: userListQuery || userListQuery_,\n step,\n setStep,\n type,\n setType,\n }}>\n {children}\n </CreateChannelContext.Provider>\n );\n}\n\nconst useCreateChannelContext = (): CreateChannelContextInterface => (\n React.useContext(CreateChannelContext)\n);\n\nexport {\n CreateChannelProvider,\n useCreateChannelContext,\n};\n"],"names":["CHANNEL_TYPE","CreateChannelContext","React","createContext","undefined","CreateChannelProvider","props","children","onCreateChannel","onBeforeCreateChannel","userListQuery","store","useSendbirdStateContext","userListQuery_","config","createChannel","getCreateGroupChannel","_b","useState","step","setStep","_c","GROUP","type","setType","useCreateChannelContext","useContext"],"mappings":";;;;IAAYA;;AAAZ,WAAYA;AACVA,EAAAA,qBAAA,UAAA;AACAA,EAAAA,0BAAA,eAAA;AACAA,EAAAA,yBAAA,cAAA;AACD,CAJD,EAAYA,YAAY,KAAZA,YAAY,KAAA,CAAxB;;ACYA,IAAMC,oBAAoB,gBAAGC,cAAK,CAACC,aAAN,CAAoBC,SAApB,CAA7B;;IA4BMC,qBAAqB,GAAyC,SAA9DA,qBAA8D,CAACC,KAAD;;;AAEhE,MAAAC,QAAQ,GAIND,KAAK,SAJP;AAAA,MACAE,eAAe,GAGbF,KAAK,gBAJP;AAAA,MAEAG,qBAAqB,GAEnBH,KAAK,sBAJP;AAAA,MAGAI,aAAa,GACXJ,KAAK,cAJP;AAMF,MAAMK,KAAK,GAAGC,uBAAuB,EAArC;AACA,MAAMC,cAAc,GAAG,MAAAF,KAAK,SAAL,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEG,MAAP,UAAA,iBAAA,SAAA,MAAeJ,aAAtC;AACA,MAAMK,aAAa,GACUC,qBAAqB,CAACL,KAAD,CADlD;;AAGM,MAAAM,KAAkBC,QAAQ,CAAC,CAAD,CAA1B;AAAA,MAACC,IAAI,QAAL;AAAA,MAAOC,OAAO,QAAd;;AACA,MAAAC,KAAkBH,QAAQ,CAAClB,YAAY,CAACsB,KAAd,CAA1B;AAAA,MAACC,IAAI,QAAL;AAAA,MAAOC,OAAO,QAAd;;AAEN,sBACEtB,6BAAC,oBAAD,CAAsB,QAAtB;AAA+B,IAAA,KAAK,EAAE;AACpCO,MAAAA,qBAAqB,uBADe;AAEpCM,MAAAA,aAAa,eAFuB;AAGpCP,MAAAA,eAAe,iBAHqB;AAIpCE,MAAAA,aAAa,EAAEA,aAAa,IAAIG,cAJI;AAKpCM,MAAAA,IAAI,MALgC;AAMpCC,MAAAA,OAAO,SAN6B;AAOpCG,MAAAA,IAAI,MAPgC;AAQpCC,MAAAA,OAAO;AAR6B;AAAtC,KAUGjB,QAVH,CADF;AAcD;;IAEKkB,uBAAuB,GAAG,SAA1BA,uBAA0B;AAAqC,SACnEvB,cAAK,CAACwB,UAAN,CAAiBzB,oBAAjB,CADmE;AAEpE;;;;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { a as default } from '../../index-
|
|
2
|
+
export { a as default } from '../../index-cdcfdf8f.js';
|
|
3
3
|
import '../../ui/Modal.js';
|
|
4
|
-
import '../../LocalizationContext-
|
|
4
|
+
import '../../LocalizationContext-7d740b0a.js';
|
|
5
5
|
import '../../useSendbirdStateContext.js';
|
|
6
6
|
import '../../ui/Input.js';
|
|
7
7
|
import '../../ui/Avatar.js';
|
|
8
8
|
import '../../ui/Icon.js';
|
|
9
|
-
import '../../index-
|
|
10
|
-
import '../../index-
|
|
9
|
+
import '../../index-9ba00bc1.js';
|
|
10
|
+
import '../../index-5efc096b.js';
|
|
11
11
|
import '../../ui/TextButton.js';
|
|
12
|
-
import '../../utils-
|
|
13
|
-
import '../../actionTypes-
|
|
14
|
-
import 'prop-types';
|
|
12
|
+
import '../../utils-e0115d03.js';
|
|
13
|
+
import '../../actionTypes-f1946e3f.js';
|
|
15
14
|
import 'react-dom';
|
|
16
|
-
import '../../index-
|
|
15
|
+
import '../../index-7965b338.js';
|
|
17
16
|
import '../../ui/IconButton.js';
|
|
18
|
-
import '../../
|
|
19
|
-
import '../../stringSet-
|
|
20
|
-
import '../../index-
|
|
17
|
+
import '../../tslib.es6-5c8a20bb.js';
|
|
18
|
+
import '../../stringSet-53204a58.js';
|
|
19
|
+
import '../../index-3d519005.js';
|
|
20
|
+
import '../../_rollupPluginBabelHelpers-4e546dea.js';
|
|
21
|
+
import 'prop-types';
|
|
21
22
|
import '../../withSendbird.js';
|
|
22
|
-
import '../../tslib.es6-8be42356.js';
|
|
23
23
|
import '../../ui/ImageRenderer.js';
|
|
24
|
-
import '../../uuid-
|
|
25
|
-
import '../../color-
|
|
24
|
+
import '../../uuid-8d849862.js';
|
|
25
|
+
import '../../color-7a9e9046.js';
|
|
26
26
|
//# sourceMappingURL=EditUserProfileUI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../src/smart-components/EditUserProfile/context/EditUserProfileProvider.tsx"],"sourcesContent":["import type { User } from '@sendbird/chat';\nimport React, { useMemo } from 'react';\n\nconst EditUserProfileProviderContext = React.createContext(undefined);\n\nexport interface EditUserProfileProps {\n children?: React.
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../src/smart-components/EditUserProfile/context/EditUserProfileProvider.tsx"],"sourcesContent":["import type { User } from '@sendbird/chat';\nimport React, { useMemo } from 'react';\n\nconst EditUserProfileProviderContext = React.createContext(undefined);\n\nexport interface EditUserProfileProps {\n children?: React.ReactElement;\n onCancel?(): void;\n onThemeChange?(theme: string): void;\n onEditProfile?(updatedUser: User): void;\n}\n\nexport interface EditUserProfileProviderInterface {\n onCancel?(): void;\n onThemeChange?(theme: string): void;\n onEditProfile?(updatedUser: User): void;\n}\n\nconst EditUserProfileProvider: React.FC<EditUserProfileProps> = (props: EditUserProfileProps) => {\n const {\n children,\n onEditProfile,\n onCancel,\n onThemeChange,\n } = props;\n\n const value = useMemo(() => {\n return {\n onEditProfile,\n onCancel,\n onThemeChange,\n };\n }, []);\n\n return (\n <EditUserProfileProviderContext.Provider value={value}>\n {children}\n </EditUserProfileProviderContext.Provider>\n );\n}\n\nconst useEditUserProfileContext = (): EditUserProfileProviderInterface => (\n React.useContext(EditUserProfileProviderContext)\n);\n\nexport {\n EditUserProfileProvider,\n useEditUserProfileContext,\n};\n"],"names":["EditUserProfileProviderContext","React","createContext","undefined","EditUserProfileProvider","props","children","onEditProfile","onCancel","onThemeChange","value","useMemo","useEditUserProfileContext","useContext"],"mappings":";;AAGA,IAAMA,8BAA8B,gBAAGC,cAAK,CAACC,aAAN,CAAoBC,SAApB,CAAvC;;IAeMC,uBAAuD,GAAG,SAA1DA,uBAA0D,CAACC,KAAD,EAAiC;AAC/F,MACEC,QADF,GAKID,KALJ,CACEC,QADF;AAAA,MAEEC,aAFF,GAKIF,KALJ,CAEEE,aAFF;AAAA,MAGEC,QAHF,GAKIH,KALJ,CAGEG,QAHF;AAAA,MAIEC,aAJF,GAKIJ,KALJ,CAIEI,aAJF;AAOA,MAAMC,KAAK,GAAGC,OAAO,CAAC,YAAM;AAC1B,WAAO;AACLJ,MAAAA,aAAa,EAAbA,aADK;AAELC,MAAAA,QAAQ,EAARA,QAFK;AAGLC,MAAAA,aAAa,EAAbA;AAHK,KAAP;AAKD,GANoB,EAMlB,EANkB,CAArB;AAQA,sBACER,6BAAC,8BAAD,CAAgC,QAAhC;AAAyC,IAAA,KAAK,EAAES;AAAhD,KACGJ,QADH,CADF;AAKD;;IAEKM,yBAAyB,GAAG,SAA5BA,yBAA4B;AAAA,SAChCX,cAAK,CAACY,UAAN,CAAiBb,8BAAjB,CADgC;AAAA;;;;"}
|
package/EditUserProfile.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { E as EditUserProfileProvider, a as EditUserProfile } from './index-
|
|
2
|
+
import { E as EditUserProfileProvider, a as EditUserProfile } from './index-cdcfdf8f.js';
|
|
3
3
|
import './ui/Modal.js';
|
|
4
|
-
import 'prop-types';
|
|
5
4
|
import 'react-dom';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './index-
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
5
|
+
import './index-7965b338.js';
|
|
6
|
+
import './LocalizationContext-7d740b0a.js';
|
|
7
|
+
import './stringSet-53204a58.js';
|
|
8
|
+
import './index-3d519005.js';
|
|
9
|
+
import './index-9ba00bc1.js';
|
|
10
|
+
import './tslib.es6-5c8a20bb.js';
|
|
11
|
+
import './index-5efc096b.js';
|
|
12
|
+
import './_rollupPluginBabelHelpers-4e546dea.js';
|
|
13
|
+
import 'prop-types';
|
|
12
14
|
import './ui/Icon.js';
|
|
13
|
-
import './
|
|
14
|
-
import './index-3a5d7013.js';
|
|
15
|
-
import './utils-16cb1829.js';
|
|
15
|
+
import './ui/IconButton.js';
|
|
16
16
|
import './useSendbirdStateContext.js';
|
|
17
17
|
import './withSendbird.js';
|
|
18
18
|
import './ui/Input.js';
|
|
19
19
|
import './ui/Avatar.js';
|
|
20
|
-
import './tslib.es6-8be42356.js';
|
|
21
20
|
import './ui/ImageRenderer.js';
|
|
22
|
-
import './uuid-
|
|
21
|
+
import './uuid-8d849862.js';
|
|
23
22
|
import './ui/TextButton.js';
|
|
24
|
-
import './color-
|
|
25
|
-
import './
|
|
23
|
+
import './color-7a9e9046.js';
|
|
24
|
+
import './utils-e0115d03.js';
|
|
25
|
+
import './actionTypes-f1946e3f.js';
|
|
26
26
|
|
|
27
27
|
var EditProfile = function EditProfile(props) {
|
|
28
28
|
var onEditProfile = props.onEditProfile,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { g as getStringSet } from './stringSet-
|
|
3
|
-
import { d as defaultLocale } from './index-
|
|
2
|
+
import { g as getStringSet } from './stringSet-53204a58.js';
|
|
3
|
+
import { d as defaultLocale } from './index-3d519005.js';
|
|
4
4
|
|
|
5
5
|
var LocalizationContext = /*#__PURE__*/React__default.createContext({
|
|
6
6
|
stringSet: getStringSet('en'),
|
|
@@ -19,4 +19,4 @@ var useLocalization = function useLocalization() {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export { LocalizationProvider as L, LocalizationContext as a, useLocalization as u };
|
|
22
|
-
//# sourceMappingURL=LocalizationContext-
|
|
22
|
+
//# sourceMappingURL=LocalizationContext-7d740b0a.js.map
|