@sendbird/uikit-react 3.4.3-rc.0 → 3.4.3
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/.size-snapshot.json +1080 -225
- package/App.js +40 -40
- package/CHANGELOG.md +27 -1
- package/Channel/components/ChannelHeader.js +19 -19
- package/Channel/components/ChannelUI.js +33 -33
- package/Channel/components/FileViewer.js +15 -15
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +28 -28
- package/Channel/components/MessageInput.js +26 -25
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +29 -29
- package/Channel/components/RemoveMessageModal.js +17 -17
- package/Channel/components/SuggestedMentionList.js +17 -17
- package/Channel/components/TypingIndicator.js +15 -15
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +14 -14
- package/Channel.js +33 -33
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListUI.js +30 -30
- package/ChannelList/components/ChannelPreview.js +26 -26
- package/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +30 -30
- package/{ChannelListProvider-9ffe6c08.js → ChannelListProvider-74d39ce5.js} +8 -8
- package/{ChannelListProvider-9ffe6c08.js.map → ChannelListProvider-74d39ce5.js.map} +1 -1
- package/{ChannelProvider-e2c86cba.js → ChannelProvider-7b83d4fd.js} +10 -10
- package/{ChannelProvider-e2c86cba.js.map → ChannelProvider-7b83d4fd.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +12 -12
- package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/ChannelSettings/components/EditDetailsModal.js +12 -12
- package/ChannelSettings/components/LeaveChannel.js +12 -12
- package/ChannelSettings/components/ModerationPanel.js +15 -15
- package/ChannelSettings/components/UserListItem.js +11 -11
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +18 -18
- package/CreateChannel/components/CreateChannelUI.js +14 -14
- package/CreateChannel/components/InviteUsers.js +14 -14
- package/CreateChannel/components/SelectChannelType.js +11 -11
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +14 -14
- package/{CreateChannelProvider-0881b9df.js → CreateChannelProvider-488e930d.js} +1 -1
- package/{CreateChannelProvider-0881b9df.js.map → CreateChannelProvider-488e930d.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +10 -10
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +10 -10
- package/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/EditUserProfile.js +13 -13
- package/{LocalizationContext-187f787e.js → LocalizationContext-4b25e6bc.js} +3 -3
- package/{LocalizationContext-187f787e.js.map → LocalizationContext-4b25e6bc.js.map} +1 -1
- package/{MediaQueryContext-add671c4.js → MediaQueryContext-29dcaddb.js} +1 -1
- package/{MediaQueryContext-add671c4.js.map → MediaQueryContext-29dcaddb.js.map} +1 -1
- package/{MemberList-5bee1695.js → MemberList-5cf25437.js} +5 -5
- package/{MemberList-5bee1695.js.map → MemberList-5cf25437.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +12 -12
- package/MessageSearch/context.js +2 -2
- package/MessageSearch.js +12 -12
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +13 -13
- package/OpenChannel/components/OpenChannelInput.js +16 -16
- package/OpenChannel/components/OpenChannelMessage.js +23 -23
- package/OpenChannel/components/OpenChannelMessageList.js +25 -25
- package/OpenChannel/components/OpenChannelUI.js +25 -25
- package/OpenChannel/context.js +9 -9
- package/OpenChannel.js +25 -25
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +4 -4
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-a15ce046.js → OpenChannelListProvider-2685f3d5.js} +3 -3
- package/{OpenChannelListProvider-a15ce046.js.map → OpenChannelListProvider-2685f3d5.js.map} +1 -1
- package/{OpenChannelProvider-ea703f1a.js → OpenChannelProvider-9bd64275.js} +7 -7
- package/{OpenChannelProvider-ea703f1a.js.map → OpenChannelProvider-9bd64275.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +18 -18
- package/{RemoveMessageModal-5a70495b.js → RemoveMessageModal-0182446a.js} +3 -3
- package/{RemoveMessageModal-5a70495b.js.map → RemoveMessageModal-0182446a.js.map} +1 -1
- package/SendbirdProvider.js +12 -12
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +25 -25
- package/Thread/components/ParentMessageInfoItem.js +16 -16
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +28 -28
- package/Thread/components/ThreadListItem.js +28 -28
- package/Thread/components/ThreadMessageInput.js +27 -26
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +32 -32
- package/Thread/context.js +9 -9
- package/Thread.js +32 -32
- package/{ThreadProvider-8d535c1b.js → ThreadProvider-daedc3df.js} +7 -7
- package/{ThreadProvider-8d535c1b.js.map → ThreadProvider-daedc3df.js.map} +1 -1
- package/{UserProfileContext-d2264917.js → UserProfileContext-2ea97dc1.js} +1 -1
- package/{UserProfileContext-d2264917.js.map → UserProfileContext-2ea97dc1.js.map} +1 -1
- package/{VoiceMessageInputWrapper-2434abc5.js → VoiceMessageInputWrapper-f65cc3ae.js} +7 -7
- package/{VoiceMessageInputWrapper-2434abc5.js.map → VoiceMessageInputWrapper-f65cc3ae.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +3 -3
- package/VoiceRecorder/context.js +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/{_rollupPluginBabelHelpers-dfc61977.js → _rollupPluginBabelHelpers-38fb8170.js} +1 -1
- package/_rollupPluginBabelHelpers-38fb8170.js.map +1 -0
- package/{actionTypes-99206028.js → actionTypes-ce60cab6.js} +1 -1
- package/{actionTypes-99206028.js.map → actionTypes-ce60cab6.js.map} +1 -1
- package/cjs/App.js +40 -40
- package/cjs/Channel/components/ChannelHeader.js +19 -19
- package/cjs/Channel/components/ChannelUI.js +33 -33
- package/cjs/Channel/components/FileViewer.js +15 -15
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +28 -28
- package/cjs/Channel/components/MessageInput.js +26 -25
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +29 -29
- package/cjs/Channel/components/RemoveMessageModal.js +17 -17
- package/cjs/Channel/components/SuggestedMentionList.js +17 -17
- package/cjs/Channel/components/TypingIndicator.js +15 -15
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +14 -14
- package/cjs/Channel.js +33 -33
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListUI.js +30 -30
- package/cjs/ChannelList/components/ChannelPreview.js +26 -26
- package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +30 -30
- package/cjs/{ChannelListProvider-30c51b60.js → ChannelListProvider-4cf41348.js} +8 -8
- package/cjs/{ChannelListProvider-30c51b60.js.map → ChannelListProvider-4cf41348.js.map} +1 -1
- package/cjs/{ChannelProvider-fcbde734.js → ChannelProvider-af11f0e6.js} +10 -10
- package/cjs/{ChannelProvider-fcbde734.js.map → ChannelProvider-af11f0e6.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/ChannelSettings/components/LeaveChannel.js +12 -12
- package/cjs/ChannelSettings/components/ModerationPanel.js +15 -15
- package/cjs/ChannelSettings/components/UserListItem.js +11 -11
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +18 -18
- package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
- package/cjs/CreateChannel/components/InviteUsers.js +14 -14
- package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +14 -14
- package/cjs/{CreateChannelProvider-9f9ec6e6.js → CreateChannelProvider-1241284b.js} +1 -1
- package/cjs/{CreateChannelProvider-9f9ec6e6.js.map → CreateChannelProvider-1241284b.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +10 -10
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +10 -10
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +13 -13
- package/cjs/{LocalizationContext-2f07a939.js → LocalizationContext-d6a49817.js} +3 -3
- package/cjs/{LocalizationContext-2f07a939.js.map → LocalizationContext-d6a49817.js.map} +1 -1
- package/cjs/{MediaQueryContext-729d402a.js → MediaQueryContext-fe920821.js} +1 -1
- package/cjs/{MediaQueryContext-729d402a.js.map → MediaQueryContext-fe920821.js.map} +1 -1
- package/cjs/{MemberList-515d3bfb.js → MemberList-b3c99792.js} +5 -5
- package/cjs/{MemberList-515d3bfb.js.map → MemberList-b3c99792.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +12 -12
- package/cjs/MessageSearch/context.js +2 -2
- package/cjs/MessageSearch.js +12 -12
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +13 -13
- package/cjs/OpenChannel/components/OpenChannelInput.js +16 -16
- package/cjs/OpenChannel/components/OpenChannelMessage.js +23 -23
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +25 -25
- package/cjs/OpenChannel/components/OpenChannelUI.js +25 -25
- package/cjs/OpenChannel/context.js +9 -9
- package/cjs/OpenChannel.js +25 -25
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +4 -4
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-5e77c819.js → OpenChannelListProvider-aa38b9f3.js} +3 -3
- package/cjs/{OpenChannelListProvider-5e77c819.js.map → OpenChannelListProvider-aa38b9f3.js.map} +1 -1
- package/cjs/{OpenChannelProvider-e8821f43.js → OpenChannelProvider-689e3690.js} +7 -7
- package/cjs/{OpenChannelProvider-e8821f43.js.map → OpenChannelProvider-689e3690.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/cjs/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +18 -18
- package/cjs/{RemoveMessageModal-0710a908.js → RemoveMessageModal-e454585a.js} +3 -3
- package/cjs/{RemoveMessageModal-0710a908.js.map → RemoveMessageModal-e454585a.js.map} +1 -1
- package/cjs/SendbirdProvider.js +12 -12
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +25 -25
- package/cjs/Thread/components/ParentMessageInfoItem.js +16 -16
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +28 -28
- package/cjs/Thread/components/ThreadListItem.js +28 -28
- package/cjs/Thread/components/ThreadMessageInput.js +27 -26
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +32 -32
- package/cjs/Thread/context.js +9 -9
- package/cjs/Thread.js +32 -32
- package/cjs/{ThreadProvider-e7537e17.js → ThreadProvider-03fb5452.js} +7 -7
- package/cjs/{ThreadProvider-e7537e17.js.map → ThreadProvider-03fb5452.js.map} +1 -1
- package/cjs/{UserProfileContext-5fbd0305.js → UserProfileContext-6b73c8c7.js} +1 -1
- package/cjs/{UserProfileContext-5fbd0305.js.map → UserProfileContext-6b73c8c7.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-8744ba42.js → VoiceMessageInputWrapper-b00f09e0.js} +7 -7
- package/cjs/{VoiceMessageInputWrapper-8744ba42.js.map → VoiceMessageInputWrapper-b00f09e0.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +3 -3
- package/cjs/VoiceRecorder/context.js +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/cjs/{_rollupPluginBabelHelpers-325fff35.js → _rollupPluginBabelHelpers-6bd3ed3b.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-6bd3ed3b.js.map +1 -0
- package/cjs/{actionTypes-9e73ad35.js → actionTypes-f0a152e4.js} +1 -1
- package/cjs/{actionTypes-9e73ad35.js.map → actionTypes-f0a152e4.js.map} +1 -1
- package/cjs/{color-6ed16caa.js → color-273e8911.js} +1 -1
- package/cjs/{color-6ed16caa.js.map → color-273e8911.js.map} +1 -1
- package/cjs/{compareIds-61f98cac.js → compareIds-cedb6c39.js} +1 -1
- package/cjs/{compareIds-61f98cac.js.map → compareIds-cedb6c39.js.map} +1 -1
- package/cjs/{const-20a4c9f8.js → const-5de4173e.js} +1 -1
- package/cjs/{const-20a4c9f8.js.map → const-5de4173e.js.map} +1 -1
- package/cjs/{const-94a43f2e.js → const-b8ef9240.js} +1 -1
- package/cjs/{const-94a43f2e.js.map → const-b8ef9240.js.map} +1 -1
- package/cjs/{consts-1f4e725d.js → consts-0e64ad01.js} +1 -1
- package/cjs/{consts-1f4e725d.js.map → consts-0e64ad01.js.map} +1 -1
- package/cjs/{consts-dae31183.js → consts-9d6ed0a6.js} +1 -1
- package/cjs/{consts-dae31183.js.map → consts-9d6ed0a6.js.map} +1 -1
- package/cjs/{context-53458dac.js → context-e0a53b29.js} +2 -2
- package/cjs/{context-53458dac.js.map → context-e0a53b29.js.map} +1 -1
- package/cjs/dist/index.css +96 -96
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-d44e0a55.js → index-197e3c5b.js} +2 -2
- package/cjs/{index-d44e0a55.js.map → index-197e3c5b.js.map} +1 -1
- package/cjs/{index-1bbb70bd.js → index-25af7767.js} +7 -7
- package/cjs/{index-1bbb70bd.js.map → index-25af7767.js.map} +1 -1
- package/cjs/{index-e6b1d2b7.js → index-31298927.js} +2 -2
- package/cjs/{index-e6b1d2b7.js.map → index-31298927.js.map} +1 -1
- package/cjs/{index-ba209fe7.js → index-36be8d44.js} +4 -4
- package/cjs/{index-ba209fe7.js.map → index-36be8d44.js.map} +1 -1
- package/cjs/{index-3a44ff71.js → index-3b0363a8.js} +1 -1
- package/cjs/{index-3a44ff71.js.map → index-3b0363a8.js.map} +1 -1
- package/cjs/{index-f2f8ceeb.js → index-684be350.js} +3 -3
- package/cjs/{index-f2f8ceeb.js.map → index-684be350.js.map} +1 -1
- package/cjs/{index-98939d51.js → index-6ed2df90.js} +4 -4
- package/cjs/{index-98939d51.js.map → index-6ed2df90.js.map} +1 -1
- package/cjs/{index-59b0ddb6.js → index-75f8f2cd.js} +2 -2
- package/cjs/{index-59b0ddb6.js.map → index-75f8f2cd.js.map} +1 -1
- package/cjs/{index-9cb4a8a1.js → index-7ba6befd.js} +2 -2
- package/cjs/{index-9cb4a8a1.js.map → index-7ba6befd.js.map} +1 -1
- package/cjs/{index-3b8eefa2.js → index-8aa6d8c9.js} +2 -2
- package/cjs/{index-3b8eefa2.js.map → index-8aa6d8c9.js.map} +1 -1
- package/cjs/{index-dc4cbd5a.js → index-aa5383c4.js} +5 -5
- package/cjs/{index-dc4cbd5a.js.map → index-aa5383c4.js.map} +1 -1
- package/cjs/{index-2129e959.js → index-c810e78c.js} +1 -1
- package/cjs/{index-2129e959.js.map → index-c810e78c.js.map} +1 -1
- package/cjs/{index-27659174.js → index-f0d6f431.js} +7 -7
- package/cjs/{index-27659174.js.map → index-f0d6f431.js.map} +1 -1
- package/cjs/{index-306e7c9a.js → index-f2e27f6a.js} +3 -3
- package/cjs/{index-306e7c9a.js.map → index-f2e27f6a.js.map} +1 -1
- package/cjs/index.js +44 -44
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-70ad7caf.js → stringSet-1e9a4bf2.js} +1 -1
- package/cjs/{stringSet-70ad7caf.js.map → stringSet-1e9a4bf2.js.map} +1 -1
- package/cjs/{topics-a17b8ec5.js → topics-33dacb94.js} +1 -1
- package/cjs/{topics-a17b8ec5.js.map → topics-33dacb94.js.map} +1 -1
- package/cjs/{tslib.es6-6bb94011.js → tslib.es6-a674f4e5.js} +1 -1
- package/cjs/{tslib.es6-6bb94011.js.map → tslib.es6-a674f4e5.js.map} +1 -1
- package/cjs/{types-44d71878.js → types-ff787253.js} +1 -1
- package/cjs/{types-44d71878.js.map → types-ff787253.js.map} +1 -1
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +2 -2
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +14 -10
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +11 -11
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +23 -23
- package/cjs/ui/MessageInput.js +10 -10
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +8 -8
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +9 -9
- package/cjs/ui/MessageStatus.js +10 -10
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/OGMessageItemBody.js +11 -11
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +6 -6
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +16 -16
- package/cjs/ui/OpenchannelOGMessage.js +16 -16
- package/cjs/ui/OpenchannelThumbnailMessage.js +15 -15
- package/cjs/ui/OpenchannelUserMessage.js +16 -16
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +2 -2
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +11 -11
- package/cjs/ui/ThreadReplies.js +6 -6
- package/cjs/ui/ThumbnailMessageItemBody.js +2 -2
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +11 -11
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/VoiceMessageItemBody.js +5 -5
- package/cjs/ui/VoiceMessgeInput.js +8 -8
- package/cjs/ui/Word.js +11 -11
- package/cjs/{useLongPress-7fcddf32.js → useLongPress-37c403d8.js} +3 -3
- package/cjs/{useLongPress-7fcddf32.js.map → useLongPress-37c403d8.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-b1231f1d.js → utils-50ff8ad6.js} +2 -2
- package/cjs/{utils-b1231f1d.js.map → utils-50ff8ad6.js.map} +1 -1
- package/cjs/{utils-c86c2884.js → utils-9df4cc6c.js} +1 -1
- package/cjs/{utils-c86c2884.js.map → utils-9df4cc6c.js.map} +1 -1
- package/cjs/{utils-2d3622fd.js → utils-9fed7de8.js} +1 -1
- package/cjs/{utils-2d3622fd.js.map → utils-9fed7de8.js.map} +1 -1
- package/cjs/{utils-76d84308.js → utils-afdab4b0.js} +1 -1
- package/cjs/{utils-76d84308.js.map → utils-afdab4b0.js.map} +1 -1
- package/cjs/{uuid-7d07ac3f.js → uuid-f5d1a1fe.js} +1 -1
- package/cjs/{uuid-7d07ac3f.js.map → uuid-f5d1a1fe.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-b379fbc5.js → color-a450612f.js} +1 -1
- package/{color-b379fbc5.js.map → color-a450612f.js.map} +1 -1
- package/{compareIds-86584ff3.js → compareIds-27ab0100.js} +1 -1
- package/{compareIds-86584ff3.js.map → compareIds-27ab0100.js.map} +1 -1
- package/{const-26fafb08.js → const-2d43b497.js} +1 -1
- package/{const-26fafb08.js.map → const-2d43b497.js.map} +1 -1
- package/{const-693a408f.js → const-de21a301.js} +1 -1
- package/{const-693a408f.js.map → const-de21a301.js.map} +1 -1
- package/{consts-b2395440.js → consts-9f2eecf3.js} +1 -1
- package/{consts-b2395440.js.map → consts-9f2eecf3.js.map} +1 -1
- package/{consts-37ea645a.js → consts-cedae35a.js} +1 -1
- package/{consts-37ea645a.js.map → consts-cedae35a.js.map} +1 -1
- package/{context-672443fa.js → context-b7ccbd17.js} +2 -2
- package/{context-672443fa.js.map → context-b7ccbd17.js.map} +1 -1
- package/dist/index.css +96 -96
- package/dist/index.css.map +1 -1
- package/{index-854faff0.js → index-4729324a.js} +5 -5
- package/{index-854faff0.js.map → index-4729324a.js.map} +1 -1
- package/{index-d311c62b.js → index-533dff7c.js} +7 -7
- package/{index-d311c62b.js.map → index-533dff7c.js.map} +1 -1
- package/{index-102fbe62.js → index-58b5008c.js} +2 -2
- package/{index-102fbe62.js.map → index-58b5008c.js.map} +1 -1
- package/{index-c29a819f.js → index-5e921f58.js} +3 -3
- package/{index-c29a819f.js.map → index-5e921f58.js.map} +1 -1
- package/{index-c55389dc.js → index-9ee89f7c.js} +2 -2
- package/{index-c55389dc.js.map → index-9ee89f7c.js.map} +1 -1
- package/{index-30721345.js → index-9f08118f.js} +4 -4
- package/{index-30721345.js.map → index-9f08118f.js.map} +1 -1
- package/{index-39657867.js → index-a245d213.js} +2 -2
- package/{index-39657867.js.map → index-a245d213.js.map} +1 -1
- package/{index-f338f866.js → index-af6e4d1e.js} +1 -1
- package/{index-f338f866.js.map → index-af6e4d1e.js.map} +1 -1
- package/{index-46d8dde5.js → index-ba549e6a.js} +2 -2
- package/{index-46d8dde5.js.map → index-ba549e6a.js.map} +1 -1
- package/{index-7afa5c8d.js → index-d69c6128.js} +3 -3
- package/{index-7afa5c8d.js.map → index-d69c6128.js.map} +1 -1
- package/{index-e3412d57.js → index-e8294858.js} +4 -4
- package/{index-e3412d57.js.map → index-e8294858.js.map} +1 -1
- package/{index-7b740ffc.js → index-eba6c13e.js} +7 -7
- package/{index-7b740ffc.js.map → index-eba6c13e.js.map} +1 -1
- package/{index-5b34a381.js → index-f3ba7696.js} +1 -1
- package/{index-5b34a381.js.map → index-f3ba7696.js.map} +1 -1
- package/{index-30236e16.js → index-fb9f4d36.js} +2 -2
- package/{index-30236e16.js.map → index-fb9f4d36.js.map} +1 -1
- package/index.d.ts +3 -1
- package/index.js +44 -44
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-fd70cba0.js → stringSet-80381462.js} +1 -1
- package/{stringSet-fd70cba0.js.map → stringSet-80381462.js.map} +1 -1
- package/{topics-c4837013.js → topics-aa4d9dac.js} +1 -1
- package/{topics-c4837013.js.map → topics-aa4d9dac.js.map} +1 -1
- package/{tslib.es6-645dedf8.js → tslib.es6-33004eb4.js} +1 -1
- package/{tslib.es6-645dedf8.js.map → tslib.es6-33004eb4.js.map} +1 -1
- package/{types-87c77099.js → types-79f3626f.js} +1 -1
- package/{types-87c77099.js.map → types-79f3626f.js.map} +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +2 -2
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +14 -10
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +11 -11
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +23 -23
- package/ui/MessageInput.js +10 -10
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +8 -8
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +9 -9
- package/ui/MessageStatus.js +10 -10
- package/ui/Modal.js +7 -7
- package/ui/OGMessageItemBody.js +11 -11
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +16 -16
- package/ui/OpenchannelOGMessage.js +16 -16
- package/ui/OpenchannelThumbnailMessage.js +15 -15
- package/ui/OpenchannelUserMessage.js +16 -16
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +2 -2
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +11 -11
- package/ui/ThreadReplies.js +6 -6
- package/ui/ThumbnailMessageItemBody.js +2 -2
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +11 -11
- package/ui/UserProfile.js +10 -10
- package/ui/VoiceMessageItemBody.js +5 -5
- package/ui/VoiceMessgeInput.js +8 -8
- package/ui/Word.js +11 -11
- package/{useLongPress-81323308.js → useLongPress-562f0826.js} +3 -3
- package/{useLongPress-81323308.js.map → useLongPress-562f0826.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-1c138ae4.js → utils-3eee4302.js} +1 -1
- package/{utils-1c138ae4.js.map → utils-3eee4302.js.map} +1 -1
- package/{utils-d17bcc15.js → utils-4e5389df.js} +1 -1
- package/{utils-d17bcc15.js.map → utils-4e5389df.js.map} +1 -1
- package/{utils-88f76aba.js → utils-8fa2a634.js} +2 -2
- package/{utils-88f76aba.js.map → utils-8fa2a634.js.map} +1 -1
- package/{utils-780c1e12.js → utils-b84d9295.js} +1 -1
- package/{utils-780c1e12.js.map → utils-b84d9295.js.map} +1 -1
- package/{uuid-e15650df.js → uuid-7397f1ec.js} +1 -1
- package/{uuid-e15650df.js.map → uuid-7397f1ec.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/_rollupPluginBabelHelpers-dfc61977.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-325fff35.js.map +0 -1
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { a as __spreadArray } from '../../tslib.es6-
|
|
1
|
+
import { a as __spreadArray } from '../../tslib.es6-33004eb4.js';
|
|
2
2
|
import React__default, { useContext, useState, useEffect } from 'react';
|
|
3
|
-
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-
|
|
3
|
+
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted, d as isOperator } from '../../ChannelProvider-7b83d4fd.js';
|
|
4
4
|
import MessageInput from '../../ui/MessageInput.js';
|
|
5
5
|
import QuoteMessageInput from '../../ui/QuoteMessageInput.js';
|
|
6
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b25e6bc.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
9
|
-
import { M as MessageInputKeys } from '../../const-
|
|
10
|
-
import { V as VoiceMessageInputWrapper } from '../../VoiceMessageInputWrapper-
|
|
11
|
-
import '../../UserProfileContext-
|
|
9
|
+
import { M as MessageInputKeys } from '../../const-de21a301.js';
|
|
10
|
+
import { V as VoiceMessageInputWrapper } from '../../VoiceMessageInputWrapper-f65cc3ae.js';
|
|
11
|
+
import '../../UserProfileContext-2ea97dc1.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../index-
|
|
14
|
-
import '../../index-
|
|
15
|
-
import '../../topics-
|
|
16
|
-
import '../../index-
|
|
13
|
+
import '../../index-9ee89f7c.js';
|
|
14
|
+
import '../../index-f3ba7696.js';
|
|
15
|
+
import '../../topics-aa4d9dac.js';
|
|
16
|
+
import '../../index-58b5008c.js';
|
|
17
17
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
18
|
-
import '../../_rollupPluginBabelHelpers-
|
|
19
|
-
import '../../compareIds-
|
|
20
|
-
import '../../const-
|
|
18
|
+
import '../../_rollupPluginBabelHelpers-38fb8170.js';
|
|
19
|
+
import '../../compareIds-27ab0100.js';
|
|
20
|
+
import '../../const-2d43b497.js';
|
|
21
21
|
import '@sendbird/chat/groupChannel';
|
|
22
|
-
import '../../uuid-
|
|
22
|
+
import '../../uuid-7397f1ec.js';
|
|
23
23
|
import '@sendbird/chat/message';
|
|
24
24
|
import '../../ui/ContextMenu.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import '../../ui/SortByRow.js';
|
|
27
|
-
import '../../index-
|
|
28
|
-
import '../../stringSet-
|
|
27
|
+
import '../../index-ba549e6a.js';
|
|
28
|
+
import '../../stringSet-80381462.js';
|
|
29
29
|
import '../../ui/ReactionButton.js';
|
|
30
30
|
import '../../ui/ImageRenderer.js';
|
|
31
31
|
import '../../ui/Icon.js';
|
|
32
|
-
import '../../consts-
|
|
32
|
+
import '../../consts-cedae35a.js';
|
|
33
33
|
import '../../ui/IconButton.js';
|
|
34
34
|
import '../../ui/Button.js';
|
|
35
35
|
import 'dompurify';
|
|
36
|
-
import '../../consts-
|
|
36
|
+
import '../../consts-9f2eecf3.js';
|
|
37
37
|
import '../../withSendbird.js';
|
|
38
38
|
import '../../ui/Avatar.js';
|
|
39
|
-
import '../../ThreadProvider-
|
|
39
|
+
import '../../ThreadProvider-daedc3df.js';
|
|
40
40
|
import '../../Thread/context/types.js';
|
|
41
41
|
import '@sendbird/chat';
|
|
42
42
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
43
|
-
import '../../index-
|
|
43
|
+
import '../../index-5e921f58.js';
|
|
44
44
|
import '../../VoiceRecorder/context.js';
|
|
45
45
|
import '../../lame.all.js';
|
|
46
46
|
import '../../VoiceRecorder/useVoiceRecorder.js';
|
|
47
|
-
import '../../index-
|
|
47
|
+
import '../../index-9f08118f.js';
|
|
48
48
|
import '../../ui/PlaybackTime.js';
|
|
49
49
|
import '../../ui/ProgressBar.js';
|
|
50
50
|
import '../../ui/TextButton.js';
|
|
51
|
-
import '../../color-
|
|
51
|
+
import '../../color-a450612f.js';
|
|
52
52
|
import '../../ui/Modal.js';
|
|
53
|
-
import '../../index-
|
|
54
|
-
import '../../MediaQueryContext-
|
|
53
|
+
import '../../index-af6e4d1e.js';
|
|
54
|
+
import '../../MediaQueryContext-29dcaddb.js';
|
|
55
55
|
|
|
56
56
|
var MessageInputWrapper = function (props, ref) {
|
|
57
57
|
var value = props.value,
|
|
58
58
|
renderFileUploadIcon = props.renderFileUploadIcon,
|
|
59
59
|
renderVoiceMessageIcon = props.renderVoiceMessageIcon,
|
|
60
60
|
renderSendMessageIcon = props.renderSendMessageIcon;
|
|
61
|
+
var propDisabled = props.disabled;
|
|
61
62
|
|
|
62
63
|
var _a = useChannelContext(),
|
|
63
64
|
currentGroupChannel = _a.currentGroupChannel,
|
|
@@ -116,7 +117,7 @@ var MessageInputWrapper = function (props, ref) {
|
|
|
116
117
|
showVoiceMessageInput = _k[0],
|
|
117
118
|
setShowVoiceMessageInput = _k[1];
|
|
118
119
|
|
|
119
|
-
var disabled = !initialized || isDisabledBecauseFrozen(channel) || isDisabledBecauseMuted(channel) || !isOnline;
|
|
120
|
+
var disabled = propDisabled || !initialized || isDisabledBecauseFrozen(channel) || isDisabledBecauseMuted(channel) || !isOnline;
|
|
120
121
|
var isOperator$1 = isOperator(channel);
|
|
121
122
|
var isBroadcast = channel === null || channel === void 0 ? void 0 : channel.isBroadcast;
|
|
122
123
|
var displaySuggestedMentionList = isOnline && isMentionEnabled && mentionNickname.length > 0 && !isDisabledBecauseFrozen(channel) && !isDisabledBecauseMuted(channel); // Reset when channel changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInput.js","sources":["../../../src/smart-components/Channel/components/MessageInput/index.tsx"],"sourcesContent":["import React, { useState, useContext, useEffect } from 'react';\n\nimport './message-input.scss';\nimport * as utils from '../../context/utils';\n\nimport MessageInput from '../../../../ui/MessageInput';\nimport QuoteMessageInput from '../../../../ui/QuoteMessageInput';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport SuggestedMentionList from '../SuggestedMentionList';\nimport { MessageInputKeys } from '../../../../ui/MessageInput/const';\nimport VoiceMessageInputWrapper from './VoiceMessageInputWrapper';\n\nexport type MessageInputWrapperProps = {\n value?: string;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n};\n\nconst MessageInputWrapper = (\n props: MessageInputWrapperProps,\n ref: React.MutableRefObject<any>,\n): JSX.Element => {\n const {\n value,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n } = props;\n const {\n currentGroupChannel,\n initialized,\n quoteMessage,\n sendMessage,\n sendFileMessage,\n sendVoiceMessage,\n setQuoteMessage,\n messageInputRef,\n renderUserMentionItem,\n } = useChannelContext();\n const globalStore = useSendbirdStateContext();\n const channel = currentGroupChannel;\n\n const {\n isOnline,\n isMentionEnabled,\n userMention,\n isVoiceMessageEnabled,\n } = globalStore?.config;\n const maxUserMentionCount = userMention?.maxMentionCount || 10;\n const maxUserSuggestionCount = userMention?.maxSuggestionCount || 15;\n\n const { stringSet } = useContext(LocalizationContext);\n const [mentionNickname, setMentionNickname] = useState('');\n // todo: set type\n const [mentionedUsers, setMentionedUsers] = useState([]);\n const [mentionedUserIds, setMentionedUserIds] = useState([]);\n const [selectedUser, setSelectedUser] = useState(null);\n const [mentionSuggestedUsers, setMentionSuggestedUsers] = useState([]);\n const [ableMention, setAbleMention] = useState(true);\n const [messageInputEvent, setMessageInputEvent] = useState(null);\n const [showVoiceMessageInput, setShowVoiceMessageInput] = useState(false);\n const disabled = !initialized\n || utils.isDisabledBecauseFrozen(channel)\n || utils.isDisabledBecauseMuted(channel)\n || !isOnline;\n const isOperator = utils.isOperator(channel);\n const isBroadcast = channel?.isBroadcast;\n\n const displaySuggestedMentionList = isOnline\n && isMentionEnabled\n && mentionNickname.length > 0\n && !utils.isDisabledBecauseFrozen(channel)\n && !utils.isDisabledBecauseMuted(channel);\n\n // Reset when channel changes\n useEffect(() => {\n setMentionNickname('');\n setMentionedUsers([]);\n setMentionedUserIds([]);\n setSelectedUser(null);\n setMentionSuggestedUsers([]);\n setAbleMention(true);\n setMessageInputEvent(null);\n setShowVoiceMessageInput(false);\n }, [channel?.url]);\n\n useEffect(() => {\n if (mentionedUsers?.length >= maxUserMentionCount) {\n setAbleMention(false);\n } else {\n setAbleMention(true);\n }\n }, [mentionedUsers]);\n\n useEffect(() => {\n setMentionedUsers(mentionedUsers.filter(({ userId }) => {\n const i = mentionedUserIds.indexOf(userId);\n if (i < 0) {\n return false;\n } else {\n mentionedUserIds.splice(i, 1);\n return true;\n }\n }));\n }, [mentionedUserIds]);\n\n // broadcast channel + not operator\n if (isBroadcast && !isOperator) {\n return null;\n }\n // other conditions\n return (\n <div className={`sendbird-message-input-wrapper${showVoiceMessageInput ? '--voice-message' : ''}`}>\n {\n displaySuggestedMentionList && (\n <SuggestedMentionList\n targetNickname={mentionNickname}\n inputEvent={messageInputEvent}\n renderUserMentionItem={renderUserMentionItem}\n onUserItemClick={(user) => {\n if (user) {\n setMentionedUsers([...mentionedUsers, user]);\n }\n setMentionNickname('');\n setSelectedUser(user);\n setMessageInputEvent(null);\n }}\n onFocusItemChange={() => {\n setMessageInputEvent(null);\n }}\n onFetchUsers={(users) => {\n setMentionSuggestedUsers(users);\n }}\n ableAddMention={ableMention}\n maxMentionCount={maxUserMentionCount}\n maxSuggestionCount={maxUserSuggestionCount}\n />\n )\n }\n {quoteMessage && (\n <div className=\"sendbird-message-input-wrapper__quote-message-input\">\n <QuoteMessageInput\n replyingMessage={quoteMessage}\n onClose={() => setQuoteMessage(null)}\n />\n </div>\n )}\n {\n showVoiceMessageInput\n ? (\n <VoiceMessageInputWrapper\n channel={channel}\n onSubmitClick={(recordedFile, duration) => {\n sendVoiceMessage(recordedFile, duration, quoteMessage);\n setQuoteMessage(null);\n setShowVoiceMessageInput(false);\n }}\n onCancelClick={() => {\n setShowVoiceMessageInput(false);\n }}\n />\n )\n : (\n <MessageInput\n className=\"sendbird-message-input-wrapper__message-input\"\n value={value}\n channelUrl={channel?.url}\n mentionSelectedUser={selectedUser}\n isMentionEnabled={isMentionEnabled}\n isVoiceMessageEnabled={isVoiceMessageEnabled}\n onVoiceMessageIconClick={() => {\n setShowVoiceMessageInput(true);\n }}\n setMentionedUsers={setMentionedUsers}\n channel={channel}\n placeholder={\n (quoteMessage && stringSet.MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER)\n || (utils.isDisabledBecauseFrozen(channel) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED)\n || (utils.isDisabledBecauseMuted(channel) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED)\n }\n ref={ref || messageInputRef}\n disabled={disabled}\n renderFileUploadIcon={renderFileUploadIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n onStartTyping={() => {\n channel?.startTyping();\n }}\n onSendMessage={({ message, mentionTemplate }) => {\n sendMessage({\n message,\n quoteMessage,\n mentionedUsers,\n mentionTemplate,\n });\n setMentionNickname('');\n setMentionedUsers([]);\n setQuoteMessage(null);\n channel?.endTyping?.();\n }}\n onFileUpload={(file) => {\n sendFileMessage(file, quoteMessage);\n setQuoteMessage(null);\n }}\n onUserMentioned={(user) => {\n if (selectedUser?.userId === user?.userId) {\n setSelectedUser(null);\n setMentionNickname('');\n }\n }}\n onMentionStringChange={(mentionText) => {\n setMentionNickname(mentionText);\n }}\n onMentionedUserIdsUpdated={(userIds) => {\n setMentionedUserIds(userIds);\n }}\n onKeyDown={(e) => {\n if (displaySuggestedMentionList && mentionSuggestedUsers?.length > 0\n && ((e.key === MessageInputKeys.Enter && ableMention) || e.key === MessageInputKeys.ArrowUp || e.key === MessageInputKeys.ArrowDown)\n ) {\n setMessageInputEvent(e);\n return true;\n }\n return false;\n }}\n />\n )\n }\n </div>\n );\n};\n\nexport default React.forwardRef(MessageInputWrapper);\n"],"names":["MessageInputWrapper","props","ref","value","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","_a","useChannelContext","currentGroupChannel","initialized","quoteMessage","sendMessage","sendFileMessage","sendVoiceMessage","setQuoteMessage","messageInputRef","renderUserMentionItem","globalStore","useSendbirdStateContext","channel","_b","config","isOnline","isMentionEnabled","userMention","isVoiceMessageEnabled","maxUserMentionCount","maxMentionCount","maxUserSuggestionCount","maxSuggestionCount","stringSet","useContext","LocalizationContext","_c","useState","mentionNickname","setMentionNickname","_d","mentionedUsers","setMentionedUsers","_e","mentionedUserIds","setMentionedUserIds","_f","selectedUser","setSelectedUser","_g","mentionSuggestedUsers","setMentionSuggestedUsers","_h","ableMention","setAbleMention","_j","messageInputEvent","setMessageInputEvent","_k","showVoiceMessageInput","setShowVoiceMessageInput","disabled","utils","isOperator","isBroadcast","displaySuggestedMentionList","length","useEffect","url","filter","userId","i","indexOf","splice","React","concat","user","__spreadArray","users","recordedFile","duration","MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER","MESSAGE_INPUT__PLACE_HOLDER__DISABLED","MESSAGE_INPUT__PLACE_HOLDER__MUTED","startTyping","message","mentionTemplate","endTyping","file","mentionText","userIds","e","key","MessageInputKeys","Enter","ArrowUp","ArrowDown","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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AAD,CAAlB,CAAA;KAhDJ;IAkDE,yBAAyB,EAAE,UAACC,OAAD,EAAQ;MACjC7C,mBAAmB,CAAC6C,OAAD,CAAnB,CAAA;KAnDJ;IAqDE,SAAS,EAAE,UAACC,CAAD,EAAE;MACX,IAAI1B,2BAA2B,IAAI,CAAAf,qBAAqB,KAAA,IAArB,IAAAA,qBAAqB,KAAA,KAAA,CAArB,GAAqB,KAAA,CAArB,GAAAA,qBAAqB,CAAEgB,MAAvB,IAAgC,CAA/D,KACGyB,CAAC,CAACC,GAAF,KAAUC,gBAAgB,CAACC,KAA3B,IAAoCzC,WAArC,IAAqDsC,CAAC,CAACC,GAAF,KAAUC,gBAAgB,CAACE,OAAhF,IAA2FJ,CAAC,CAACC,GAAF,KAAUC,gBAAgB,CAACG,SADxH,CAAJ,EAEE;QACAvC,oBAAoB,CAACkC,CAAD,CAApB,CAAA;AACA,QAAA,OAAO,IAAP,CAAA;AACD,OAAA;;AACD,MAAA,OAAO,KAAP,CAAA;AACD,KAAA;AA7DH,GAAA,CAnDR,CADF,CAAA;AAuHD,CApND,CAAA;;AAsNA,4BAAA,aAAejB,cAAK,CAACuB,UAAN,CAAiB/F,mBAAjB,CAAf;;;;"}
|
|
1
|
+
{"version":3,"file":"MessageInput.js","sources":["../../../src/smart-components/Channel/components/MessageInput/index.tsx"],"sourcesContent":["import React, { useState, useContext, useEffect } from 'react';\n\nimport './message-input.scss';\nimport * as utils from '../../context/utils';\n\nimport MessageInput from '../../../../ui/MessageInput';\nimport QuoteMessageInput from '../../../../ui/QuoteMessageInput';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport SuggestedMentionList from '../SuggestedMentionList';\nimport { MessageInputKeys } from '../../../../ui/MessageInput/const';\nimport VoiceMessageInputWrapper from './VoiceMessageInputWrapper';\n\nexport type MessageInputWrapperProps = {\n value?: string;\n disabled?: boolean;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n};\n\nconst MessageInputWrapper = (\n props: MessageInputWrapperProps,\n ref: React.MutableRefObject<any>,\n): JSX.Element => {\n const {\n value,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n } = props;\n const propDisabled = props.disabled;\n const {\n currentGroupChannel,\n initialized,\n quoteMessage,\n sendMessage,\n sendFileMessage,\n sendVoiceMessage,\n setQuoteMessage,\n messageInputRef,\n renderUserMentionItem,\n } = useChannelContext();\n const globalStore = useSendbirdStateContext();\n const channel = currentGroupChannel;\n\n const {\n isOnline,\n isMentionEnabled,\n userMention,\n isVoiceMessageEnabled,\n } = globalStore?.config;\n const maxUserMentionCount = userMention?.maxMentionCount || 10;\n const maxUserSuggestionCount = userMention?.maxSuggestionCount || 15;\n\n const { stringSet } = useContext(LocalizationContext);\n const [mentionNickname, setMentionNickname] = useState('');\n // todo: set type\n const [mentionedUsers, setMentionedUsers] = useState([]);\n const [mentionedUserIds, setMentionedUserIds] = useState([]);\n const [selectedUser, setSelectedUser] = useState(null);\n const [mentionSuggestedUsers, setMentionSuggestedUsers] = useState([]);\n const [ableMention, setAbleMention] = useState(true);\n const [messageInputEvent, setMessageInputEvent] = useState(null);\n const [showVoiceMessageInput, setShowVoiceMessageInput] = useState(false);\n const disabled = propDisabled\n || !initialized\n || utils.isDisabledBecauseFrozen(channel)\n || utils.isDisabledBecauseMuted(channel)\n || !isOnline;\n const isOperator = utils.isOperator(channel);\n const isBroadcast = channel?.isBroadcast;\n\n const displaySuggestedMentionList = isOnline\n && isMentionEnabled\n && mentionNickname.length > 0\n && !utils.isDisabledBecauseFrozen(channel)\n && !utils.isDisabledBecauseMuted(channel);\n\n // Reset when channel changes\n useEffect(() => {\n setMentionNickname('');\n setMentionedUsers([]);\n setMentionedUserIds([]);\n setSelectedUser(null);\n setMentionSuggestedUsers([]);\n setAbleMention(true);\n setMessageInputEvent(null);\n setShowVoiceMessageInput(false);\n }, [channel?.url]);\n\n useEffect(() => {\n if (mentionedUsers?.length >= maxUserMentionCount) {\n setAbleMention(false);\n } else {\n setAbleMention(true);\n }\n }, [mentionedUsers]);\n\n useEffect(() => {\n setMentionedUsers(mentionedUsers.filter(({ userId }) => {\n const i = mentionedUserIds.indexOf(userId);\n if (i < 0) {\n return false;\n } else {\n mentionedUserIds.splice(i, 1);\n return true;\n }\n }));\n }, [mentionedUserIds]);\n\n // broadcast channel + not operator\n if (isBroadcast && !isOperator) {\n return null;\n }\n // other conditions\n return (\n <div className={`sendbird-message-input-wrapper${showVoiceMessageInput ? '--voice-message' : ''}`}>\n {\n displaySuggestedMentionList && (\n <SuggestedMentionList\n targetNickname={mentionNickname}\n inputEvent={messageInputEvent}\n renderUserMentionItem={renderUserMentionItem}\n onUserItemClick={(user) => {\n if (user) {\n setMentionedUsers([...mentionedUsers, user]);\n }\n setMentionNickname('');\n setSelectedUser(user);\n setMessageInputEvent(null);\n }}\n onFocusItemChange={() => {\n setMessageInputEvent(null);\n }}\n onFetchUsers={(users) => {\n setMentionSuggestedUsers(users);\n }}\n ableAddMention={ableMention}\n maxMentionCount={maxUserMentionCount}\n maxSuggestionCount={maxUserSuggestionCount}\n />\n )\n }\n {quoteMessage && (\n <div className=\"sendbird-message-input-wrapper__quote-message-input\">\n <QuoteMessageInput\n replyingMessage={quoteMessage}\n onClose={() => setQuoteMessage(null)}\n />\n </div>\n )}\n {\n showVoiceMessageInput\n ? (\n <VoiceMessageInputWrapper\n channel={channel}\n onSubmitClick={(recordedFile, duration) => {\n sendVoiceMessage(recordedFile, duration, quoteMessage);\n setQuoteMessage(null);\n setShowVoiceMessageInput(false);\n }}\n onCancelClick={() => {\n setShowVoiceMessageInput(false);\n }}\n />\n )\n : (\n <MessageInput\n className=\"sendbird-message-input-wrapper__message-input\"\n value={value}\n channelUrl={channel?.url}\n mentionSelectedUser={selectedUser}\n isMentionEnabled={isMentionEnabled}\n isVoiceMessageEnabled={isVoiceMessageEnabled}\n onVoiceMessageIconClick={() => {\n setShowVoiceMessageInput(true);\n }}\n setMentionedUsers={setMentionedUsers}\n channel={channel}\n placeholder={\n (quoteMessage && stringSet.MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER)\n || (utils.isDisabledBecauseFrozen(channel) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED)\n || (utils.isDisabledBecauseMuted(channel) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED)\n }\n ref={ref || messageInputRef}\n disabled={disabled}\n renderFileUploadIcon={renderFileUploadIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n onStartTyping={() => {\n channel?.startTyping();\n }}\n onSendMessage={({ message, mentionTemplate }) => {\n sendMessage({\n message,\n quoteMessage,\n mentionedUsers,\n mentionTemplate,\n });\n setMentionNickname('');\n setMentionedUsers([]);\n setQuoteMessage(null);\n channel?.endTyping?.();\n }}\n onFileUpload={(file) => {\n sendFileMessage(file, quoteMessage);\n setQuoteMessage(null);\n }}\n onUserMentioned={(user) => {\n if (selectedUser?.userId === user?.userId) {\n setSelectedUser(null);\n setMentionNickname('');\n }\n }}\n onMentionStringChange={(mentionText) => {\n setMentionNickname(mentionText);\n }}\n onMentionedUserIdsUpdated={(userIds) => {\n setMentionedUserIds(userIds);\n }}\n onKeyDown={(e) => {\n if (displaySuggestedMentionList && mentionSuggestedUsers?.length > 0\n && ((e.key === MessageInputKeys.Enter && ableMention) || e.key === MessageInputKeys.ArrowUp || e.key === MessageInputKeys.ArrowDown)\n ) {\n setMessageInputEvent(e);\n return true;\n }\n return false;\n }}\n />\n )\n }\n </div>\n );\n};\n\nexport default React.forwardRef(MessageInputWrapper);\n"],"names":["MessageInputWrapper","props","ref","value","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","propDisabled","disabled","_a","useChannelContext","currentGroupChannel","initialized","quoteMessage","sendMessage","sendFileMessage","sendVoiceMessage","setQuoteMessage","messageInputRef","renderUserMentionItem","globalStore","useSendbirdStateContext","channel","_b","config","isOnline","isMentionEnabled","userMention","isVoiceMessageEnabled","maxUserMentionCount","maxMentionCount","maxUserSuggestionCount","maxSuggestionCount","stringSet","useContext","LocalizationContext","_c","useState","mentionNickname","setMentionNickname","_d","mentionedUsers","setMentionedUsers","_e","mentionedUserIds","setMentionedUserIds","_f","selectedUser","setSelectedUser","_g","mentionSuggestedUsers","setMentionSuggestedUsers","_h","ableMention","setAbleMention","_j","messageInputEvent","setMessageInputEvent","_k","showVoiceMessageInput","setShowVoiceMessageInput","utils","isOperator","isBroadcast","displaySuggestedMentionList","length","useEffect","url","filter","userId","i","indexOf","splice","React","concat","user","__spreadArray","users","recordedFile","duration","MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER","MESSAGE_INPUT__PLACE_HOLDER__DISABLED","MESSAGE_INPUT__PLACE_HOLDER__MUTED","startTyping","message","mentionTemplate","endTyping","file","mentionText","userIds","e","key","MessageInputKeys","Enter","ArrowUp","ArrowDown","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAMA,mBAAmB,GAAG,UAC1BC,KAD0B,EAE1BC,GAF0B,EAEM;AAG9B,EAAA,IAAAC,KAAK,GAIHF,KAAK,MAJP;AAAA,MACAG,oBAAoB,GAGlBH,KAAK,CAAAG,oBAJP;AAAA,MAEAC,sBAAsB,GAEpBJ,KAAK,CAFeI,sBAFtB;AAAA,MAGAC,qBAAqB,GACnBL,KAAK,sBAJP,CAAA;AAKF,EAAA,IAAMM,YAAY,GAAGN,KAAK,CAACO,QAA3B,CAAA;;EACM,IAAAC,EAUF,GAAAC,iBAAiB,EAVf;AAAA,MACJC,mBAAmB,GAAAF,EAAA,CAAAE,mBADf;AAAA,MAEJC,WAAW,GAAAH,EAAA,CAAAG,WAFP;AAAA,MAGJC,YAAY,GAAAJ,E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,CAAC,CAACC,GAAF,KAAUC,gBAAgB,CAACG,SADxH,CAAJ,EAEE;QACAtC,oBAAoB,CAACiC,CAAD,CAApB,CAAA;AACA,QAAA,OAAO,IAAP,CAAA;AACD,OAAA;;AACD,MAAA,OAAO,KAAP,CAAA;AACD,KAAA;AA7DH,GAAA,CAnDR,CADF,CAAA;AAuHD,CAtND,CAAA;;AAwNA,4BAAA,aAAejB,cAAK,CAACuB,UAAN,CAAiBhG,mBAAjB,CAAf;;;;"}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import React__default, { useState } from 'react';
|
|
2
|
-
import { c as compareMessagesForGrouping, u as useChannelContext, i as isAboutSame } from '../../ChannelProvider-
|
|
3
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
2
|
+
import { c as compareMessagesForGrouping, u as useChannelContext, i as isAboutSame } from '../../ChannelProvider-7b83d4fd.js';
|
|
3
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-e8294858.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
5
|
import Message from './Message.js';
|
|
6
|
-
import { i as isSameDay } from '../../index-
|
|
6
|
+
import { i as isSameDay } from '../../index-fb9f4d36.js';
|
|
7
7
|
import UnreadCount from './UnreadCount.js';
|
|
8
8
|
import FrozenNotification from './FrozenNotification.js';
|
|
9
|
-
import { M as MESSAGE_SCROLL_BUFFER } from '../../const-
|
|
10
|
-
import '../../UserProfileContext-
|
|
9
|
+
import { M as MESSAGE_SCROLL_BUFFER } from '../../const-2d43b497.js';
|
|
10
|
+
import '../../UserProfileContext-2ea97dc1.js';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import '../../useSendbirdStateContext.js';
|
|
13
13
|
import '../../withSendbird.js';
|
|
14
|
-
import '../../_rollupPluginBabelHelpers-
|
|
15
|
-
import '../../index-
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../topics-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../tslib.es6-
|
|
14
|
+
import '../../_rollupPluginBabelHelpers-38fb8170.js';
|
|
15
|
+
import '../../index-9ee89f7c.js';
|
|
16
|
+
import '../../index-f3ba7696.js';
|
|
17
|
+
import '../../topics-aa4d9dac.js';
|
|
18
|
+
import '../../index-58b5008c.js';
|
|
19
|
+
import '../../tslib.es6-33004eb4.js';
|
|
20
20
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
21
|
-
import '../../compareIds-
|
|
21
|
+
import '../../compareIds-27ab0100.js';
|
|
22
22
|
import '@sendbird/chat/groupChannel';
|
|
23
|
-
import '../../uuid-
|
|
23
|
+
import '../../uuid-7397f1ec.js';
|
|
24
24
|
import '@sendbird/chat/message';
|
|
25
25
|
import '../../ui/ContextMenu.js';
|
|
26
26
|
import 'react-dom';
|
|
27
27
|
import '../../ui/SortByRow.js';
|
|
28
|
-
import '../../index-
|
|
29
|
-
import '../../stringSet-
|
|
28
|
+
import '../../index-ba549e6a.js';
|
|
29
|
+
import '../../stringSet-80381462.js';
|
|
30
30
|
import '../../ui/ReactionButton.js';
|
|
31
31
|
import '../../ui/ImageRenderer.js';
|
|
32
|
-
import '../../consts-
|
|
33
|
-
import '../../LocalizationContext-
|
|
32
|
+
import '../../consts-cedae35a.js';
|
|
33
|
+
import '../../LocalizationContext-4b25e6bc.js';
|
|
34
34
|
import '../../ui/Loader.js';
|
|
35
35
|
import './SuggestedMentionList.js';
|
|
36
36
|
import '../../ui/Avatar.js';
|
|
37
|
-
import '../../const-
|
|
38
|
-
import '../../ThreadProvider-
|
|
37
|
+
import '../../const-de21a301.js';
|
|
38
|
+
import '../../ThreadProvider-daedc3df.js';
|
|
39
39
|
import '../../Thread/context/types.js';
|
|
40
40
|
import '@sendbird/chat';
|
|
41
41
|
import '../../ui/DateSeparator.js';
|
|
42
|
-
import '../../color-
|
|
42
|
+
import '../../color-a450612f.js';
|
|
43
43
|
import '../../ui/MessageInput.js';
|
|
44
44
|
import '../../ui/IconButton.js';
|
|
45
45
|
import '../../ui/Button.js';
|
|
46
46
|
import 'dompurify';
|
|
47
|
-
import '../../consts-
|
|
47
|
+
import '../../consts-9f2eecf3.js';
|
|
48
48
|
import '../../ui/MessageContent.js';
|
|
49
49
|
import '../../ui/UserProfile.js';
|
|
50
50
|
import '../../sendbirdSelectors.js';
|
|
51
|
-
import '../../utils-
|
|
52
|
-
import '../../index-
|
|
53
|
-
import '../../index-
|
|
51
|
+
import '../../utils-b84d9295.js';
|
|
52
|
+
import '../../index-eba6c13e.js';
|
|
53
|
+
import '../../index-d69c6128.js';
|
|
54
54
|
import '../../ui/MessageItemMenu.js';
|
|
55
|
-
import '../../types-
|
|
55
|
+
import '../../types-79f3626f.js';
|
|
56
56
|
import '../../ui/MessageItemReactionMenu.js';
|
|
57
57
|
import '../../ui/EmojiReactions.js';
|
|
58
58
|
import '../../ui/Tooltip.js';
|
|
@@ -65,19 +65,19 @@ import '../../ui/LinkLabel.js';
|
|
|
65
65
|
import '../../ui/MentionLabel.js';
|
|
66
66
|
import '../../ui/FileMessageItemBody.js';
|
|
67
67
|
import '../../ui/TextButton.js';
|
|
68
|
-
import '../../MediaQueryContext-
|
|
68
|
+
import '../../MediaQueryContext-29dcaddb.js';
|
|
69
69
|
import '../../ui/ThumbnailMessageItemBody.js';
|
|
70
70
|
import '../../ui/OGMessageItemBody.js';
|
|
71
71
|
import '../../ui/UnknownMessageItemBody.js';
|
|
72
72
|
import '../../ui/QuoteMessage.js';
|
|
73
|
-
import '../../useLongPress-
|
|
73
|
+
import '../../useLongPress-562f0826.js';
|
|
74
74
|
import '../../ui/BottomSheet.js';
|
|
75
|
-
import '../../index-
|
|
75
|
+
import '../../index-af6e4d1e.js';
|
|
76
76
|
import '../../ui/ThreadReplies.js';
|
|
77
77
|
import '../../ui/VoiceMessageItemBody.js';
|
|
78
78
|
import '../../ui/ProgressBar.js';
|
|
79
79
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
80
|
-
import '../../index-
|
|
80
|
+
import '../../index-5e921f58.js';
|
|
81
81
|
import '../../VoiceRecorder/context.js';
|
|
82
82
|
import '../../lame.all.js';
|
|
83
83
|
import '../../ui/PlaybackTime.js';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
2
|
import Modal from '../../ui/Modal.js';
|
|
3
3
|
import { ButtonTypes } from '../../ui/Button.js';
|
|
4
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
5
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
4
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b25e6bc.js';
|
|
5
|
+
import { u as useChannelContext } from '../../ChannelProvider-7b83d4fd.js';
|
|
6
6
|
import 'react-dom';
|
|
7
|
-
import '../../index-
|
|
7
|
+
import '../../index-af6e4d1e.js';
|
|
8
8
|
import '../../ui/Icon.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import '../../ui/IconButton.js';
|
|
11
|
-
import '../../tslib.es6-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../MediaQueryContext-
|
|
15
|
-
import '../../index-
|
|
16
|
-
import '../../UserProfileContext-
|
|
11
|
+
import '../../tslib.es6-33004eb4.js';
|
|
12
|
+
import '../../index-ba549e6a.js';
|
|
13
|
+
import '../../stringSet-80381462.js';
|
|
14
|
+
import '../../MediaQueryContext-29dcaddb.js';
|
|
15
|
+
import '../../index-f3ba7696.js';
|
|
16
|
+
import '../../UserProfileContext-2ea97dc1.js';
|
|
17
17
|
import '../../useSendbirdStateContext.js';
|
|
18
18
|
import '../../withSendbird.js';
|
|
19
|
-
import '../../_rollupPluginBabelHelpers-
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../topics-
|
|
22
|
-
import '../../index-
|
|
19
|
+
import '../../_rollupPluginBabelHelpers-38fb8170.js';
|
|
20
|
+
import '../../index-9ee89f7c.js';
|
|
21
|
+
import '../../topics-aa4d9dac.js';
|
|
22
|
+
import '../../index-58b5008c.js';
|
|
23
23
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
24
|
-
import '../../compareIds-
|
|
25
|
-
import '../../const-
|
|
24
|
+
import '../../compareIds-27ab0100.js';
|
|
25
|
+
import '../../const-2d43b497.js';
|
|
26
26
|
import '@sendbird/chat/groupChannel';
|
|
27
|
-
import '../../uuid-
|
|
27
|
+
import '../../uuid-7397f1ec.js';
|
|
28
28
|
import '@sendbird/chat/message';
|
|
29
29
|
import '../../ui/ContextMenu.js';
|
|
30
30
|
import '../../ui/SortByRow.js';
|
|
31
31
|
import '../../ui/ReactionButton.js';
|
|
32
32
|
import '../../ui/ImageRenderer.js';
|
|
33
|
-
import '../../consts-
|
|
33
|
+
import '../../consts-cedae35a.js';
|
|
34
34
|
|
|
35
35
|
var RemoveMessage = function (props) {
|
|
36
36
|
var _a;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import React__default, { useRef, useContext, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-ba549e6a.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import Avatar from '../../ui/Avatar.js';
|
|
5
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
6
|
-
import { u as uuidv4 } from '../../uuid-
|
|
7
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
5
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b25e6bc.js';
|
|
6
|
+
import { u as uuidv4 } from '../../uuid-7397f1ec.js';
|
|
7
|
+
import { u as useChannelContext } from '../../ChannelProvider-7b83d4fd.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { U as USER_MENTION_TEMP_CHAR, a as MAX_USER_MENTION_COUNT, b as MAX_USER_SUGGESTION_COUNT } from '../../const-
|
|
10
|
-
import { M as MessageInputKeys } from '../../const-
|
|
11
|
-
import { u as useThreadContext } from '../../ThreadProvider-
|
|
9
|
+
import { U as USER_MENTION_TEMP_CHAR, a as MAX_USER_MENTION_COUNT, b as MAX_USER_SUGGESTION_COUNT } from '../../const-2d43b497.js';
|
|
10
|
+
import { M as MessageInputKeys } from '../../const-de21a301.js';
|
|
11
|
+
import { u as useThreadContext } from '../../ThreadProvider-daedc3df.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../tslib.es6-
|
|
13
|
+
import '../../stringSet-80381462.js';
|
|
14
|
+
import '../../tslib.es6-33004eb4.js';
|
|
15
15
|
import '../../ui/ImageRenderer.js';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../UserProfileContext-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../topics-
|
|
20
|
-
import '../../index-
|
|
16
|
+
import '../../index-f3ba7696.js';
|
|
17
|
+
import '../../UserProfileContext-2ea97dc1.js';
|
|
18
|
+
import '../../index-9ee89f7c.js';
|
|
19
|
+
import '../../topics-aa4d9dac.js';
|
|
20
|
+
import '../../index-58b5008c.js';
|
|
21
21
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
22
|
-
import '../../_rollupPluginBabelHelpers-
|
|
23
|
-
import '../../compareIds-
|
|
22
|
+
import '../../_rollupPluginBabelHelpers-38fb8170.js';
|
|
23
|
+
import '../../compareIds-27ab0100.js';
|
|
24
24
|
import '@sendbird/chat/groupChannel';
|
|
25
25
|
import '@sendbird/chat/message';
|
|
26
26
|
import '../../ui/ContextMenu.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import '../../ui/SortByRow.js';
|
|
29
29
|
import '../../ui/ReactionButton.js';
|
|
30
|
-
import '../../consts-
|
|
30
|
+
import '../../consts-cedae35a.js';
|
|
31
31
|
import '../../withSendbird.js';
|
|
32
32
|
import '../../Thread/context/types.js';
|
|
33
33
|
import '@sendbird/chat';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React__default, { useContext, useState, useEffect } from 'react';
|
|
2
2
|
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
3
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
4
|
-
import { u as uuidv4 } from '../../uuid-
|
|
5
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
6
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
3
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b25e6bc.js';
|
|
4
|
+
import { u as uuidv4 } from '../../uuid-7397f1ec.js';
|
|
5
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-ba549e6a.js';
|
|
6
|
+
import { u as useChannelContext } from '../../ChannelProvider-7b83d4fd.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import '../../stringSet-
|
|
9
|
-
import '../../index-
|
|
8
|
+
import '../../stringSet-80381462.js';
|
|
9
|
+
import '../../index-f3ba7696.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../../UserProfileContext-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../topics-
|
|
14
|
-
import '../../index-
|
|
15
|
-
import '../../tslib.es6-
|
|
11
|
+
import '../../UserProfileContext-2ea97dc1.js';
|
|
12
|
+
import '../../index-9ee89f7c.js';
|
|
13
|
+
import '../../topics-aa4d9dac.js';
|
|
14
|
+
import '../../index-58b5008c.js';
|
|
15
|
+
import '../../tslib.es6-33004eb4.js';
|
|
16
16
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
17
|
-
import '../../_rollupPluginBabelHelpers-
|
|
18
|
-
import '../../compareIds-
|
|
19
|
-
import '../../const-
|
|
17
|
+
import '../../_rollupPluginBabelHelpers-38fb8170.js';
|
|
18
|
+
import '../../compareIds-27ab0100.js';
|
|
19
|
+
import '../../const-2d43b497.js';
|
|
20
20
|
import '@sendbird/chat/message';
|
|
21
21
|
import '../../ui/ContextMenu.js';
|
|
22
22
|
import 'react-dom';
|
|
@@ -24,7 +24,7 @@ import '../../ui/SortByRow.js';
|
|
|
24
24
|
import '../../ui/ReactionButton.js';
|
|
25
25
|
import '../../ui/ImageRenderer.js';
|
|
26
26
|
import '../../ui/Icon.js';
|
|
27
|
-
import '../../consts-
|
|
27
|
+
import '../../consts-cedae35a.js';
|
|
28
28
|
import '../../withSendbird.js';
|
|
29
29
|
|
|
30
30
|
var TypingIndicatorText = function (_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-4b25e6bc.js';
|
|
3
|
+
import { L as Label, b as LabelColors, a as LabelTypography } from '../../index-ba549e6a.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
5
|
-
import '../../stringSet-
|
|
6
|
-
import '../../index-
|
|
5
|
+
import '../../stringSet-80381462.js';
|
|
6
|
+
import '../../index-f3ba7696.js';
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
|
|
9
9
|
var UnreadCount = function (_a) {
|
package/Channel/context.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../UserProfileContext-
|
|
2
|
+
import '../UserProfileContext-2ea97dc1.js';
|
|
3
3
|
import '../useSendbirdStateContext.js';
|
|
4
|
-
export { C as ChannelProvider, T as ThreadReplySelectType, u as useChannelContext } from '../ChannelProvider-
|
|
4
|
+
export { C as ChannelProvider, T as ThreadReplySelectType, u as useChannelContext } from '../ChannelProvider-7b83d4fd.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import '../withSendbird.js';
|
|
7
|
-
import '../_rollupPluginBabelHelpers-
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../topics-
|
|
11
|
-
import '../index-
|
|
12
|
-
import '../tslib.es6-
|
|
7
|
+
import '../_rollupPluginBabelHelpers-38fb8170.js';
|
|
8
|
+
import '../index-9ee89f7c.js';
|
|
9
|
+
import '../index-f3ba7696.js';
|
|
10
|
+
import '../topics-aa4d9dac.js';
|
|
11
|
+
import '../index-58b5008c.js';
|
|
12
|
+
import '../tslib.es6-33004eb4.js';
|
|
13
13
|
import '../utils/message/getOutgoingMessageState.js';
|
|
14
|
-
import '../compareIds-
|
|
15
|
-
import '../const-
|
|
14
|
+
import '../compareIds-27ab0100.js';
|
|
15
|
+
import '../const-2d43b497.js';
|
|
16
16
|
import '@sendbird/chat/groupChannel';
|
|
17
|
-
import '../uuid-
|
|
17
|
+
import '../uuid-7397f1ec.js';
|
|
18
18
|
import '@sendbird/chat/message';
|
|
19
19
|
import '../ui/ContextMenu.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import '../ui/SortByRow.js';
|
|
22
|
-
import '../index-
|
|
23
|
-
import '../stringSet-
|
|
22
|
+
import '../index-ba549e6a.js';
|
|
23
|
+
import '../stringSet-80381462.js';
|
|
24
24
|
import '../ui/ReactionButton.js';
|
|
25
25
|
import '../ui/ImageRenderer.js';
|
|
26
26
|
import '../ui/Icon.js';
|
|
27
|
-
import '../consts-
|
|
27
|
+
import '../consts-cedae35a.js';
|
|
28
28
|
//# sourceMappingURL=context.js.map
|