@sendbird/uikit-react 3.5.0-mobile-rc-2 → 3.5.0-mobile-rc-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +63 -59
- package/App.js.map +1 -1
- package/Channel/components/ChannelHeader.js +19 -18
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +43 -42
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +15 -14
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +37 -35
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +29 -27
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +37 -36
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +17 -16
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +17 -16
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +15 -14
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +12 -11
- package/Channel/context.js.map +1 -1
- package/Channel.js +41 -40
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +14 -14
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +30 -29
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +26 -25
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/ChannelList/context.js +7 -7
- package/ChannelList.js +30 -29
- package/ChannelList.js.map +1 -1
- package/{ChannelListProvider-f4c0aff6.js → ChannelListProvider-f765be02.js} +7 -7
- package/{ChannelListProvider-f4c0aff6.js.map → ChannelListProvider-f765be02.js.map} +1 -1
- package/{ChannelProvider-b87f8785.js → ChannelProvider-fa290b6f.js} +19 -21
- package/ChannelProvider-fa290b6f.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +11 -11
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +14 -14
- package/ChannelSettings/components/UserListItem.js +10 -10
- package/ChannelSettings/components/UserPanel.js +13 -13
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +17 -17
- package/CreateChannel/components/CreateChannelUI.js +13 -13
- package/CreateChannel/components/InviteUsers.js +13 -13
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +13 -13
- package/{CreateChannelProvider-d1d6157f.js → CreateChannelProvider-121560fb.js} +1 -1
- package/{CreateChannelProvider-d1d6157f.js.map → CreateChannelProvider-121560fb.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +9 -9
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/{LocalizationContext-98745624.js → LocalizationContext-98d0f9ef.js} +3 -3
- package/{LocalizationContext-98745624.js.map → LocalizationContext-98d0f9ef.js.map} +1 -1
- package/{MediaQueryContext-6d766662.js → MediaQueryContext-08f242eb.js} +1 -2
- package/MediaQueryContext-08f242eb.js.map +1 -0
- package/{MemberList-bf2773a4.js → MemberList-aa2b532d.js} +5 -5
- package/{MemberList-bf2773a4.js.map → MemberList-aa2b532d.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +1 -1
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/OpenChannel/components/OpenChannelInput.js +22 -20
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +29 -28
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +31 -31
- package/OpenChannel/components/OpenChannelUI.js +31 -31
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +33 -33
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-bf89d8f0.js → OpenChannelListProvider-f73b2d55.js} +3 -3
- package/{OpenChannelListProvider-bf89d8f0.js.map → OpenChannelListProvider-f73b2d55.js.map} +1 -1
- package/{OpenChannelProvider-7d82340b.js → OpenChannelProvider-f7a70c1c.js} +7 -7
- package/{OpenChannelProvider-7d82340b.js.map → OpenChannelProvider-f7a70c1c.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +17 -17
- package/{RemoveMessageModal-150f000c.js → RemoveMessageModal-d00083f8.js} +3 -3
- package/{RemoveMessageModal-150f000c.js.map → RemoveMessageModal-d00083f8.js.map} +1 -1
- package/SendbirdProvider.js +31 -207
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +34 -32
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +21 -21
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +36 -35
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +37 -35
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +30 -28
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +40 -39
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +8 -8
- package/Thread.js +40 -39
- package/Thread.js.map +1 -1
- package/{ThreadProvider-4da093f0.js → ThreadProvider-29ee3fd4.js} +7 -7
- package/{ThreadProvider-4da093f0.js.map → ThreadProvider-29ee3fd4.js.map} +1 -1
- package/{UserProfileContext-ce4a3d51.js → UserProfileContext-876edecc.js} +1 -1
- package/{UserProfileContext-ce4a3d51.js.map → UserProfileContext-876edecc.js.map} +1 -1
- package/{VoiceMessageInputWrapper-f6ffe284.js → VoiceMessageInputWrapper-0edc0592.js} +7 -7
- package/{VoiceMessageInputWrapper-f6ffe284.js.map → VoiceMessageInputWrapper-0edc0592.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +9 -9
- package/VoiceRecorder/context.js +9 -9
- package/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/{WebAudioUtils-f0cd04f9.js → WebAudioUtils-77bc634e.js} +1 -1
- package/{WebAudioUtils-f0cd04f9.js.map → WebAudioUtils-77bc634e.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-447283c1.js → _rollupPluginBabelHelpers-67b8fcb1.js} +1 -1
- package/_rollupPluginBabelHelpers-67b8fcb1.js.map +1 -0
- package/{actionTypes-79c91098.js → actionTypes-f6ad76a3.js} +1 -1
- package/{actionTypes-79c91098.js.map → actionTypes-f6ad76a3.js.map} +1 -1
- package/cjs/App.js +63 -59
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +19 -18
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +43 -42
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +15 -14
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +37 -35
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +29 -27
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +37 -36
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +17 -16
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +17 -16
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +15 -14
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +12 -12
- package/cjs/Channel.js +41 -40
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +14 -14
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +30 -29
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +26 -25
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/cjs/ChannelList/context.js +7 -7
- package/cjs/ChannelList.js +30 -29
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/{ChannelListProvider-9d957501.js → ChannelListProvider-bb4a7d35.js} +7 -7
- package/cjs/{ChannelListProvider-9d957501.js.map → ChannelListProvider-bb4a7d35.js.map} +1 -1
- package/cjs/{ChannelProvider-922c546f.js → ChannelProvider-29c98b93.js} +18 -21
- package/cjs/ChannelProvider-29c98b93.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
- package/cjs/ChannelSettings/components/UserListItem.js +10 -10
- package/cjs/ChannelSettings/components/UserPanel.js +13 -13
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +17 -17
- package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
- package/cjs/CreateChannel/components/InviteUsers.js +13 -13
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +13 -13
- package/cjs/{CreateChannelProvider-229e7f71.js → CreateChannelProvider-e7a69d9e.js} +1 -1
- package/cjs/{CreateChannelProvider-229e7f71.js.map → CreateChannelProvider-e7a69d9e.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +9 -9
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/{LocalizationContext-08e5c17b.js → LocalizationContext-5077fe4a.js} +3 -3
- package/cjs/{LocalizationContext-08e5c17b.js.map → LocalizationContext-5077fe4a.js.map} +1 -1
- package/cjs/{MediaQueryContext-456e731e.js → MediaQueryContext-734ae1c9.js} +1 -2
- package/cjs/MediaQueryContext-734ae1c9.js.map +1 -0
- package/cjs/{MemberList-cbb81b79.js → MemberList-e2cecad9.js} +5 -5
- package/cjs/{MemberList-cbb81b79.js.map → MemberList-e2cecad9.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/cjs/OpenChannel/components/OpenChannelInput.js +22 -20
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +29 -28
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +31 -31
- package/cjs/OpenChannel/components/OpenChannelUI.js +31 -31
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +33 -33
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-f20fba00.js → OpenChannelListProvider-fd66f73c.js} +3 -3
- package/cjs/{OpenChannelListProvider-f20fba00.js.map → OpenChannelListProvider-fd66f73c.js.map} +1 -1
- package/cjs/{OpenChannelProvider-d9241f7b.js → OpenChannelProvider-26aa8a5b.js} +7 -7
- package/cjs/{OpenChannelProvider-d9241f7b.js.map → OpenChannelProvider-26aa8a5b.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/{RemoveMessageModal-4893cb9d.js → RemoveMessageModal-38dcf5d3.js} +3 -3
- package/cjs/{RemoveMessageModal-4893cb9d.js.map → RemoveMessageModal-38dcf5d3.js.map} +1 -1
- package/cjs/SendbirdProvider.js +32 -208
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +34 -32
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +21 -21
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +36 -35
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +37 -35
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +30 -28
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +40 -39
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +40 -39
- package/cjs/Thread.js.map +1 -1
- package/cjs/{ThreadProvider-11d14c8b.js → ThreadProvider-4c69290e.js} +7 -7
- package/cjs/{ThreadProvider-11d14c8b.js.map → ThreadProvider-4c69290e.js.map} +1 -1
- package/cjs/{UserProfileContext-7a6236bc.js → UserProfileContext-c4f05bb0.js} +1 -1
- package/cjs/{UserProfileContext-7a6236bc.js.map → UserProfileContext-c4f05bb0.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-42361701.js → VoiceMessageInputWrapper-df54ab5c.js} +7 -7
- package/cjs/{VoiceMessageInputWrapper-42361701.js.map → VoiceMessageInputWrapper-df54ab5c.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +9 -9
- package/cjs/VoiceRecorder/context.js +9 -9
- package/cjs/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/cjs/{WebAudioUtils-1c3089ae.js → WebAudioUtils-8d1d54b9.js} +1 -1
- package/cjs/{WebAudioUtils-1c3089ae.js.map → WebAudioUtils-8d1d54b9.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-36df1dd2.js → _rollupPluginBabelHelpers-adf1aba0.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-adf1aba0.js.map +1 -0
- package/cjs/{actionTypes-a970787b.js → actionTypes-9bcfb089.js} +1 -1
- package/cjs/{actionTypes-a970787b.js.map → actionTypes-9bcfb089.js.map} +1 -1
- package/cjs/{color-529206b1.js → color-baf4f7ac.js} +1 -1
- package/cjs/{color-529206b1.js.map → color-baf4f7ac.js.map} +1 -1
- package/cjs/{compareIds-bce52f6f.js → compareIds-1cba4056.js} +1 -1
- package/cjs/{compareIds-bce52f6f.js.map → compareIds-1cba4056.js.map} +1 -1
- package/cjs/{const-f45b8147.js → const-66f2367d.js} +1 -1
- package/cjs/{const-f45b8147.js.map → const-66f2367d.js.map} +1 -1
- package/cjs/{const-12d439f2.js → const-7dbc9e4e.js} +1 -1
- package/cjs/{const-12d439f2.js.map → const-7dbc9e4e.js.map} +1 -1
- package/cjs/{consts-e2998e23.js → consts-016d7043.js} +1 -1
- package/cjs/{consts-e2998e23.js.map → consts-016d7043.js.map} +1 -1
- package/cjs/{consts-513030e5.js → consts-117364e2.js} +1 -1
- package/cjs/{consts-513030e5.js.map → consts-117364e2.js.map} +1 -1
- package/cjs/{consts-47075b32.js → consts-a96b7d38.js} +1 -1
- package/cjs/{consts-47075b32.js.map → consts-a96b7d38.js.map} +1 -1
- package/cjs/{consts-df560049.js → consts-b8abaa6f.js} +1 -1
- package/cjs/{consts-df560049.js.map → consts-b8abaa6f.js.map} +1 -1
- package/cjs/{context-197da590.js → context-2a4c2d22.js} +2 -2
- package/cjs/{context-197da590.js.map → context-2a4c2d22.js.map} +1 -1
- package/cjs/dist/index.css +56 -56
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-7eab3b18.js → index-147cf333.js} +2 -2
- package/cjs/{index-7eab3b18.js.map → index-147cf333.js.map} +1 -1
- package/cjs/{index-bed4f92e.js → index-16555e69.js} +4 -4
- package/cjs/{index-bed4f92e.js.map → index-16555e69.js.map} +1 -1
- package/cjs/{index-d246f067.js → index-17d4f887.js} +3 -3
- package/cjs/{index-d246f067.js.map → index-17d4f887.js.map} +1 -1
- package/cjs/{index-dc79adcc.js → index-36f8250f.js} +2 -2
- package/cjs/{index-dc79adcc.js.map → index-36f8250f.js.map} +1 -1
- package/cjs/{index-43dc753a.js → index-53273d37.js} +1 -1
- package/cjs/{index-43dc753a.js.map → index-53273d37.js.map} +1 -1
- package/cjs/{index-3ca314da.js → index-549994d9.js} +4 -4
- package/cjs/{index-3ca314da.js.map → index-549994d9.js.map} +1 -1
- package/cjs/{index-66390034.js → index-621e3015.js} +1 -1
- package/cjs/{index-66390034.js.map → index-621e3015.js.map} +1 -1
- package/cjs/{index-00dd60e1.js → index-a47e4fd8.js} +6 -6
- package/cjs/{index-00dd60e1.js.map → index-a47e4fd8.js.map} +1 -1
- package/cjs/{index-afdcc71c.js → index-bde9599e.js} +2 -2
- package/cjs/{index-afdcc71c.js.map → index-bde9599e.js.map} +1 -1
- package/cjs/{index-cf54e45c.js → index-d4e18bf9.js} +2 -2
- package/cjs/{index-cf54e45c.js.map → index-d4e18bf9.js.map} +1 -1
- package/cjs/{index-963a1cb0.js → index-e7a4c994.js} +2 -2
- package/cjs/{index-963a1cb0.js.map → index-e7a4c994.js.map} +1 -1
- package/cjs/{index-738bdba1.js → index-eb15a4ee.js} +6 -6
- package/cjs/{index-738bdba1.js.map → index-eb15a4ee.js.map} +1 -1
- package/cjs/{index-5dd3d0d6.js → index-eb9a1faa.js} +3 -3
- package/cjs/{index-5dd3d0d6.js.map → index-eb9a1faa.js.map} +1 -1
- package/cjs/{index-ffb65641.js → index-f14cc718.js} +5 -5
- package/cjs/{index-ffb65641.js.map → index-f14cc718.js.map} +1 -1
- package/cjs/{index-2c2b84d3.js → index-f530a2c2.js} +4 -4
- package/cjs/{index-2c2b84d3.js.map → index-f530a2c2.js.map} +1 -1
- package/cjs/{index-7f58f1fb.js → index-f74334ce.js} +3 -3
- package/cjs/{index-7f58f1fb.js.map → index-f74334ce.js.map} +1 -1
- package/cjs/{index-0f0d9993.js → index-fc4eaae0.js} +2 -2
- package/cjs/{index-0f0d9993.js.map → index-fc4eaae0.js.map} +1 -1
- package/cjs/index.js +53 -51
- package/cjs/index.js.map +1 -1
- package/cjs/{index.module-76c961aa.js → index.module-d0516000.js} +1 -1
- package/cjs/{index.module-76c961aa.js.map → index.module-d0516000.js.map} +1 -1
- package/cjs/resolvedReplyType-96f32c03.js +32 -0
- package/cjs/resolvedReplyType-96f32c03.js.map +1 -0
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/{stringSet-f096ea52.js → stringSet-69ca82fa.js} +1 -1
- package/cjs/{stringSet-f096ea52.js.map → stringSet-69ca82fa.js.map} +1 -1
- package/cjs/{tokenize-64ea0c48.js → tokenize-2bf879b9.js} +2 -2
- package/cjs/{tokenize-64ea0c48.js.map → tokenize-2bf879b9.js.map} +1 -1
- package/cjs/{topics-3c26f8b2.js → topics-0c78e863.js} +1 -1
- package/cjs/{topics-3c26f8b2.js.map → topics-0c78e863.js.map} +1 -1
- package/cjs/{types-81799612.js → types-0c970a08.js} +1 -1
- package/cjs/types-0c970a08.js.map +1 -0
- package/cjs/ui/Accordion.js +2 -2
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +2 -2
- package/cjs/ui/Avatar.js +1 -1
- package/cjs/ui/Badge.js +4 -4
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +2 -2
- package/cjs/ui/ChannelAvatar.js +2 -2
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +3 -3
- package/cjs/ui/EmojiReactions.js +13 -13
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.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/MentionLabel.js +10 -10
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +28 -28
- package/cjs/ui/MessageInput.js +70 -17
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +8 -8
- package/cjs/ui/MessageItemReactionMenu.js +8 -8
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +8 -8
- package/cjs/ui/MessageStatus.js +10 -10
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/OGMessageItemBody.js +14 -14
- package/cjs/ui/OpenChannelAdminMessage.js +2 -2
- package/cjs/ui/OpenChannelAvatar.js +5 -5
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +18 -18
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- package/cjs/ui/PlaceHolder.js +5 -5
- 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 +2 -2
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +1 -1
- package/cjs/ui/TextButton.js +1 -1
- package/cjs/ui/TextMessageItemBody.js +14 -14
- package/cjs/ui/ThreadReplies.js +5 -5
- package/cjs/ui/ThumbnailMessageItemBody.js +5 -5
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +2 -2
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +10 -10
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +9 -9
- package/cjs/ui/VoiceMessgeInput.js +7 -7
- package/cjs/ui/Word.js +10 -10
- package/cjs/{useDirtyGetMentions-35357ca8.js → useDirtyGetMentions-80611147.js} +1 -1
- package/cjs/{useDirtyGetMentions-35357ca8.js.map → useDirtyGetMentions-80611147.js.map} +1 -1
- package/cjs/{useLongPress-a69973fa.js → useLongPress-d1ebf7be.js} +3 -3
- package/cjs/{useLongPress-a69973fa.js.map → useLongPress-d1ebf7be.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-16920dec.js → utils-26f6ba66.js} +1 -1
- package/cjs/{utils-16920dec.js.map → utils-26f6ba66.js.map} +1 -1
- package/cjs/{utils-f4aa815e.js → utils-399e42e0.js} +1 -1
- package/cjs/{utils-f4aa815e.js.map → utils-399e42e0.js.map} +1 -1
- package/cjs/{utils-7e57a1c0.js → utils-4123016b.js} +2 -2
- package/cjs/{utils-7e57a1c0.js.map → utils-4123016b.js.map} +1 -1
- package/cjs/{utils-43f12430.js → utils-863d8360.js} +1 -1
- package/cjs/{utils-43f12430.js.map → utils-863d8360.js.map} +1 -1
- package/cjs/{uuid-982f480d.js → uuid-415e7036.js} +1 -1
- package/cjs/{uuid-982f480d.js.map → uuid-415e7036.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-e245623c.js → color-69f6e789.js} +1 -1
- package/{color-e245623c.js.map → color-69f6e789.js.map} +1 -1
- package/{compareIds-91640dc3.js → compareIds-38edfc55.js} +1 -1
- package/{compareIds-91640dc3.js.map → compareIds-38edfc55.js.map} +1 -1
- package/{const-6d65fabb.js → const-37554925.js} +1 -1
- package/{const-6d65fabb.js.map → const-37554925.js.map} +1 -1
- package/{const-973fe8be.js → const-a243b539.js} +1 -1
- package/{const-973fe8be.js.map → const-a243b539.js.map} +1 -1
- package/{consts-08ba417b.js → consts-2569b193.js} +1 -1
- package/{consts-08ba417b.js.map → consts-2569b193.js.map} +1 -1
- package/{consts-66ff57d0.js → consts-3a3fab91.js} +1 -1
- package/{consts-66ff57d0.js.map → consts-3a3fab91.js.map} +1 -1
- package/{consts-1a2e6bf0.js → consts-5cbbba56.js} +1 -1
- package/{consts-1a2e6bf0.js.map → consts-5cbbba56.js.map} +1 -1
- package/{consts-ed8231c7.js → consts-ca67a8bb.js} +1 -1
- package/{consts-ed8231c7.js.map → consts-ca67a8bb.js.map} +1 -1
- package/{context-a276cbff.js → context-20f34f21.js} +2 -2
- package/{context-a276cbff.js.map → context-20f34f21.js.map} +1 -1
- package/dist/index.css +56 -56
- package/dist/index.css.map +1 -1
- package/{index-220d8a67.js → index-1fa6dddb.js} +3 -3
- package/{index-220d8a67.js.map → index-1fa6dddb.js.map} +1 -1
- package/{index-965d95b4.js → index-31460208.js} +4 -4
- package/{index-965d95b4.js.map → index-31460208.js.map} +1 -1
- package/{index-903c2a2c.js → index-315dcf0d.js} +4 -4
- package/{index-903c2a2c.js.map → index-315dcf0d.js.map} +1 -1
- package/{index-23c41d59.js → index-3884739d.js} +2 -2
- package/{index-23c41d59.js.map → index-3884739d.js.map} +1 -1
- package/{index-2fb2658d.js → index-4142b9b8.js} +5 -5
- package/{index-2fb2658d.js.map → index-4142b9b8.js.map} +1 -1
- package/{index-ed9228f0.js → index-50634013.js} +2 -2
- package/{index-ed9228f0.js.map → index-50634013.js.map} +1 -1
- package/{index-f6be5c97.js → index-9d36647d.js} +6 -6
- package/{index-f6be5c97.js.map → index-9d36647d.js.map} +1 -1
- package/{index-5e79eee8.js → index-a4584e34.js} +2 -2
- package/{index-5e79eee8.js.map → index-a4584e34.js.map} +1 -1
- package/{index-eec0a3bd.js → index-a5c6db93.js} +3 -3
- package/{index-eec0a3bd.js.map → index-a5c6db93.js.map} +1 -1
- package/{index-88ce0c27.js → index-ae663bfa.js} +1 -1
- package/{index-88ce0c27.js.map → index-ae663bfa.js.map} +1 -1
- package/{index-84b66a35.js → index-b42c0eb1.js} +4 -4
- package/{index-84b66a35.js.map → index-b42c0eb1.js.map} +1 -1
- package/{index-428dfbbb.js → index-c13a345e.js} +2 -2
- package/{index-428dfbbb.js.map → index-c13a345e.js.map} +1 -1
- package/{index-9bd6a977.js → index-d9e61250.js} +2 -2
- package/{index-9bd6a977.js.map → index-d9e61250.js.map} +1 -1
- package/{index-777dd564.js → index-eb5489b5.js} +6 -6
- package/{index-777dd564.js.map → index-eb5489b5.js.map} +1 -1
- package/{index-81c890ab.js → index-f697fbcb.js} +1 -1
- package/{index-81c890ab.js.map → index-f697fbcb.js.map} +1 -1
- package/{index-d8a55f17.js → index-f6e1c352.js} +3 -3
- package/{index-d8a55f17.js.map → index-f6e1c352.js.map} +1 -1
- package/{index-e06140fa.js → index-fdfe6417.js} +2 -2
- package/{index-e06140fa.js.map → index-fdfe6417.js.map} +1 -1
- package/index.d.ts +5 -1
- package/index.js +53 -51
- package/index.js.map +1 -1
- package/{index.module-2576c9ac.js → index.module-7ee52842.js} +1 -1
- package/{index.module-2576c9ac.js.map → index.module-7ee52842.js.map} +1 -1
- package/package.json +2 -1
- package/resolvedReplyType-db634471.js +29 -0
- package/resolvedReplyType-db634471.js.map +1 -0
- package/sendbirdSelectors.js +3 -3
- package/{stringSet-c7aab2f2.js → stringSet-48003663.js} +1 -1
- package/{stringSet-c7aab2f2.js.map → stringSet-48003663.js.map} +1 -1
- package/{tokenize-fcce2576.js → tokenize-d4044e1f.js} +2 -2
- package/{tokenize-fcce2576.js.map → tokenize-d4044e1f.js.map} +1 -1
- package/{topics-1e293d68.js → topics-913cf30c.js} +1 -1
- package/{topics-1e293d68.js.map → topics-913cf30c.js.map} +1 -1
- package/{types-0cc4206d.js → types-406698d9.js} +1 -1
- package/types-406698d9.js.map +1 -0
- package/ui/Accordion.js +2 -2
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +2 -2
- package/ui/Avatar.js +1 -1
- package/ui/Badge.js +4 -4
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +2 -2
- package/ui/ChannelAvatar.js +2 -2
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +3 -3
- package/ui/EmojiReactions.js +13 -13
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/MentionLabel.js +10 -10
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +28 -28
- package/ui/MessageInput.js +71 -18
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +8 -8
- package/ui/MessageItemReactionMenu.js +8 -8
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +8 -8
- package/ui/MessageStatus.js +10 -10
- package/ui/Modal.js +7 -7
- package/ui/OGMessageItemBody.js +14 -14
- package/ui/OpenChannelAdminMessage.js +2 -2
- package/ui/OpenChannelAvatar.js +5 -5
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +15 -15
- package/ui/OpenchannelOGMessage.js +18 -18
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- package/ui/PlaceHolder.js +5 -5
- package/ui/PlaybackTime.js +2 -2
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +2 -2
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +1 -1
- package/ui/TextButton.js +1 -1
- package/ui/TextMessageItemBody.js +14 -14
- package/ui/ThreadReplies.js +5 -5
- package/ui/ThumbnailMessageItemBody.js +5 -5
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +2 -2
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +10 -10
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +9 -9
- package/ui/VoiceMessgeInput.js +7 -7
- package/ui/Word.js +10 -10
- package/{useDirtyGetMentions-1b05bd06.js → useDirtyGetMentions-19f30317.js} +1 -1
- package/{useDirtyGetMentions-1b05bd06.js.map → useDirtyGetMentions-19f30317.js.map} +1 -1
- package/{useLongPress-9865142d.js → useLongPress-84190b3e.js} +3 -3
- package/{useLongPress-9865142d.js.map → useLongPress-84190b3e.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-79c2fe6a.js → utils-06f531b7.js} +1 -1
- package/{utils-79c2fe6a.js.map → utils-06f531b7.js.map} +1 -1
- package/{utils-b847f3de.js → utils-12b3e12b.js} +1 -1
- package/{utils-b847f3de.js.map → utils-12b3e12b.js.map} +1 -1
- package/{utils-be4cd77f.js → utils-49d7b734.js} +2 -2
- package/{utils-be4cd77f.js.map → utils-49d7b734.js.map} +1 -1
- package/{utils-24dcdae9.js → utils-5248be17.js} +1 -1
- package/{utils-24dcdae9.js.map → utils-5248be17.js.map} +1 -1
- package/{uuid-aad1e324.js → uuid-91cc1b9f.js} +1 -1
- package/{uuid-aad1e324.js.map → uuid-91cc1b9f.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelProvider-b87f8785.js.map +0 -1
- package/MediaQueryContext-6d766662.js.map +0 -1
- package/_rollupPluginBabelHelpers-447283c1.js.map +0 -1
- package/cjs/ChannelProvider-922c546f.js.map +0 -1
- package/cjs/MediaQueryContext-456e731e.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-36df1dd2.js.map +0 -1
- package/cjs/types-81799612.js.map +0 -1
- package/types-0cc4206d.js.map +0 -1
|
@@ -1,73 +1,75 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
3
|
+
import { u as useChannelContext } from '../../ChannelProvider-fa290b6f.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-a5c6db93.js';
|
|
5
5
|
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
6
|
import ChannelHeader from './ChannelHeader.js';
|
|
7
7
|
import MessageList from './MessageList.js';
|
|
8
8
|
import TypingIndicator from './TypingIndicator.js';
|
|
9
9
|
import MessageInputWrapper from './MessageInput.js';
|
|
10
10
|
import '../../withSendbird.js';
|
|
11
|
-
import '../../_rollupPluginBabelHelpers-
|
|
12
|
-
import '../../UserProfileContext-
|
|
11
|
+
import '../../_rollupPluginBabelHelpers-67b8fcb1.js';
|
|
12
|
+
import '../../UserProfileContext-876edecc.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../../
|
|
15
|
-
import '../../index-
|
|
16
|
-
import '../../
|
|
17
|
-
import '../../
|
|
14
|
+
import '../../const-37554925.js';
|
|
15
|
+
import '../../index-d9e61250.js';
|
|
16
|
+
import '../../index-ae663bfa.js';
|
|
17
|
+
import '../../topics-913cf30c.js';
|
|
18
|
+
import '../../index-3884739d.js';
|
|
18
19
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
19
|
-
import '../../compareIds-
|
|
20
|
-
import '../../const-6d65fabb.js';
|
|
20
|
+
import '../../compareIds-38edfc55.js';
|
|
21
21
|
import '@sendbird/chat/groupChannel';
|
|
22
|
-
import '../../uuid-
|
|
22
|
+
import '../../uuid-91cc1b9f.js';
|
|
23
23
|
import '@sendbird/chat/message';
|
|
24
|
-
import '../../consts-
|
|
25
|
-
import '../../
|
|
26
|
-
import '../../
|
|
24
|
+
import '../../consts-5cbbba56.js';
|
|
25
|
+
import '../../resolvedReplyType-db634471.js';
|
|
26
|
+
import '../../LocalizationContext-98d0f9ef.js';
|
|
27
|
+
import '../../stringSet-48003663.js';
|
|
27
28
|
import '../../ui/Icon.js';
|
|
28
|
-
import '../../index-
|
|
29
|
+
import '../../index-c13a345e.js';
|
|
29
30
|
import '../../ui/Loader.js';
|
|
30
|
-
import '../../utils-
|
|
31
|
+
import '../../utils-49d7b734.js';
|
|
31
32
|
import '../../ui/IconButton.js';
|
|
32
33
|
import '../../ui/ChannelAvatar.js';
|
|
33
34
|
import '../../ui/Avatar.js';
|
|
34
35
|
import '../../ui/ImageRenderer.js';
|
|
35
|
-
import '../../utils-
|
|
36
|
-
import '../../MediaQueryContext-
|
|
37
|
-
import '../../utils-
|
|
36
|
+
import '../../utils-06f531b7.js';
|
|
37
|
+
import '../../MediaQueryContext-08f242eb.js';
|
|
38
|
+
import '../../utils-5248be17.js';
|
|
38
39
|
import './Message.js';
|
|
39
40
|
import './SuggestedMentionList.js';
|
|
40
|
-
import '../../const-
|
|
41
|
-
import '../../ThreadProvider-
|
|
41
|
+
import '../../const-a243b539.js';
|
|
42
|
+
import '../../ThreadProvider-29ee3fd4.js';
|
|
42
43
|
import '../../Thread/context/types.js';
|
|
43
44
|
import '@sendbird/chat';
|
|
44
45
|
import '../../ui/DateSeparator.js';
|
|
45
|
-
import '../../color-
|
|
46
|
+
import '../../color-69f6e789.js';
|
|
46
47
|
import '../../ui/MessageInput.js';
|
|
47
48
|
import '../../ui/Button.js';
|
|
48
49
|
import 'dompurify';
|
|
49
|
-
import '../../consts-
|
|
50
|
-
import '../../consts-
|
|
51
|
-
import '../../consts-
|
|
52
|
-
import '../../tokenize-
|
|
50
|
+
import '../../consts-2569b193.js';
|
|
51
|
+
import '../../consts-3a3fab91.js';
|
|
52
|
+
import '../../consts-ca67a8bb.js';
|
|
53
|
+
import '../../tokenize-d4044e1f.js';
|
|
54
|
+
import '../../index.module-7ee52842.js';
|
|
53
55
|
import '../../ui/MessageContent.js';
|
|
54
56
|
import '../../ui/UserProfile.js';
|
|
55
57
|
import '../../sendbirdSelectors.js';
|
|
56
|
-
import '../../index-
|
|
57
|
-
import '../../index-
|
|
58
|
-
import '../../index-
|
|
58
|
+
import '../../index-eb5489b5.js';
|
|
59
|
+
import '../../index-1fa6dddb.js';
|
|
60
|
+
import '../../index-fdfe6417.js';
|
|
59
61
|
import '../../ui/MessageItemMenu.js';
|
|
60
62
|
import '../../ui/ContextMenu.js';
|
|
61
63
|
import 'react-dom';
|
|
62
64
|
import '../../ui/SortByRow.js';
|
|
63
|
-
import '../../types-
|
|
65
|
+
import '../../types-406698d9.js';
|
|
64
66
|
import '../../ui/MessageItemReactionMenu.js';
|
|
65
67
|
import '../../ui/ReactionButton.js';
|
|
66
|
-
import '../../useLongPress-
|
|
68
|
+
import '../../useLongPress-84190b3e.js';
|
|
67
69
|
import '../../ui/EmojiReactions.js';
|
|
68
70
|
import '../../ui/ReactionBadge.js';
|
|
69
71
|
import '../../ui/BottomSheet.js';
|
|
70
|
-
import '../../index-
|
|
72
|
+
import '../../index-f697fbcb.js';
|
|
71
73
|
import '../../ui/UserListItem.js';
|
|
72
74
|
import '../../ui/MutedAvatarOverlay.js';
|
|
73
75
|
import '../../ui/Checkbox.js';
|
|
@@ -76,8 +78,7 @@ import '../../ui/TooltipWrapper.js';
|
|
|
76
78
|
import '../../Message/context.js';
|
|
77
79
|
import '../../ui/AdminMessage.js';
|
|
78
80
|
import '../../ui/TextMessageItemBody.js';
|
|
79
|
-
import '../../index-
|
|
80
|
-
import '../../index.module-2576c9ac.js';
|
|
81
|
+
import '../../index-b42c0eb1.js';
|
|
81
82
|
import '../../ui/MentionLabel.js';
|
|
82
83
|
import '../../ui/LinkLabel.js';
|
|
83
84
|
import '../../ui/FileMessageItemBody.js';
|
|
@@ -86,28 +87,28 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
86
87
|
import '../../ui/OGMessageItemBody.js';
|
|
87
88
|
import '../../ui/UnknownMessageItemBody.js';
|
|
88
89
|
import '../../ui/QuoteMessage.js';
|
|
89
|
-
import '../../index-
|
|
90
|
+
import '../../index-315dcf0d.js';
|
|
90
91
|
import '../../ui/ThreadReplies.js';
|
|
91
92
|
import '../../ui/VoiceMessageItemBody.js';
|
|
92
93
|
import '../../ui/ProgressBar.js';
|
|
93
94
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
94
|
-
import '../../index-
|
|
95
|
+
import '../../index-f6e1c352.js';
|
|
95
96
|
import '../../VoiceRecorder/context.js';
|
|
96
97
|
import '../../ui/Modal.js';
|
|
97
98
|
import '../../ui/PlaybackTime.js';
|
|
98
99
|
import './FileViewer.js';
|
|
99
100
|
import './RemoveMessageModal.js';
|
|
100
|
-
import '../../index-
|
|
101
|
-
import '../../useDirtyGetMentions-
|
|
101
|
+
import '../../index-50634013.js';
|
|
102
|
+
import '../../useDirtyGetMentions-19f30317.js';
|
|
102
103
|
import './UnreadCount.js';
|
|
103
104
|
import './FrozenNotification.js';
|
|
104
105
|
import '../../ui/QuoteMessageInput.js';
|
|
105
|
-
import '../../VoiceMessageInputWrapper-
|
|
106
|
+
import '../../VoiceMessageInputWrapper-0edc0592.js';
|
|
106
107
|
import '../../VoiceRecorder/useVoiceRecorder.js';
|
|
107
|
-
import '../../index-
|
|
108
|
+
import '../../index-31460208.js';
|
|
108
109
|
|
|
109
110
|
const ChannelUI = _ref => {
|
|
110
|
-
var _globalStore$stores, _globalStore$stores$s, _globalStore$config, _globalStore$config2
|
|
111
|
+
var _globalStore$stores, _globalStore$stores$s, _globalStore$config, _globalStore$config2, _globalStore$config3, _globalStore$config3$;
|
|
111
112
|
let {
|
|
112
113
|
isLoading,
|
|
113
114
|
renderPlaceholderLoader,
|
|
@@ -181,7 +182,7 @@ const ChannelUI = _ref => {
|
|
|
181
182
|
renderSendMessageIcon: renderSendMessageIcon
|
|
182
183
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
183
184
|
className: "sendbird-conversation__footer__typing-indicator"
|
|
184
|
-
}, (renderTypingIndicator === null || renderTypingIndicator === void 0 ? void 0 : renderTypingIndicator()) || /*#__PURE__*/React__default.createElement(TypingIndicator, null), !isOnline && /*#__PURE__*/React__default.createElement(ConnectionStatus, null))));
|
|
185
|
+
}, (renderTypingIndicator === null || renderTypingIndicator === void 0 ? void 0 : renderTypingIndicator()) || (globalStore === null || globalStore === void 0 ? void 0 : (_globalStore$config3 = globalStore.config) === null || _globalStore$config3 === void 0 ? void 0 : (_globalStore$config3$ = _globalStore$config3.groupChannel) === null || _globalStore$config3$ === void 0 ? void 0 : _globalStore$config3$.enableTypingIndicator) && /*#__PURE__*/React__default.createElement(TypingIndicator, null), !isOnline && /*#__PURE__*/React__default.createElement(ConnectionStatus, null))));
|
|
185
186
|
};
|
|
186
187
|
|
|
187
188
|
export { ChannelUI as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUI.js","sources":["../../../src/modules/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\n\nexport interface ChannelUIProps {\n isLoading?: boolean;\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n isLoading,\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n}: ChannelUIProps) => {\n const {\n channelUrl,\n isInvalid,\n } = useChannelContext();\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (isLoading) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>);\n }\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {renderChannelHeader?.() || (\n <ChannelHeader className=\"sendbird-conversation__channel-header\" />\n )}\n <MessageList\n className=\"sendbird-conversation__message-list\"\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n renderPlaceholderLoader={renderPlaceholderLoader}\n />\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper\n renderFileUploadIcon={renderFileUploadIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.()
|
|
1
|
+
{"version":3,"file":"ChannelUI.js","sources":["../../../src/modules/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\n\nexport interface ChannelUIProps {\n isLoading?: boolean;\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n isLoading,\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n}: ChannelUIProps) => {\n const {\n channelUrl,\n isInvalid,\n } = useChannelContext();\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (isLoading) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>);\n }\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {renderChannelHeader?.() || (\n <ChannelHeader className=\"sendbird-conversation__channel-header\" />\n )}\n <MessageList\n className=\"sendbird-conversation__message-list\"\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n renderPlaceholderLoader={renderPlaceholderLoader}\n />\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper\n renderFileUploadIcon={renderFileUploadIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.()\n || globalStore?.config?.groupChannel?.enableTypingIndicator && (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n};\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_ref","_globalStore$stores","_globalStore$stores$s","_globalStore$config","_globalStore$config2","_globalStore$config3","_globalStore$config3$","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","channelUrl","isInvalid","useChannelContext","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","createElement","className","PlaceHolder","type","PlaceHolderTypes","LOADING","NO_CHANNELS","WRONG","retryToConnect","info","ChannelHeader","MessageList","MessageInputWrapper","groupChannel","enableTypingIndicator","TypingIndicator","ConnectionStatus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,kBAAkB,EAAI,kBACpBkB,cAAA,CAAAC,aAAA,CAACY,mBAAmB,EAAA;AAClB5B,IAAAA,oBAAoB,EAAEA,oBAAqB;AAC3CC,IAAAA,sBAAsB,EAAEA,sBAAuB;AAC/CC,IAAAA,qBAAqB,EAAEA,qBAAAA;GAE1B,CAAA,eAEHa,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,iDAAA;GAEX,EAAA,CAAAnB,qBAAqB,KAArBA,IAAAA,IAAAA,qBAAqB,uBAArBA,qBAAqB,EAAI,KACpB,CAAAQ,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAAjB,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,CAAAA,oBAAA,GAAXiB,WAAW,CAAEO,MAAM,cAAAxB,oBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,CAAAC,qBAAA,GAAnBD,oBAAA,CAAqBwC,YAAY,MAAAvC,IAAAA,IAAAA,qBAAA,KAAjCA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAA,CAAmCwC,qBAAqB,kBACzDf,cAAA,CAAAC,aAAA,CAACe,eAAe,EAAA,IAAA,CACjB,EAGH,CAACjB,QAAQ,iBACPC,cAAA,CAAAC,aAAA,CAACgB,gBAAgB,EAAA,IAAA,CAClB,CAEC,CACF,CACF,CAAA;AAEV;;;;"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import Avatar from '../../ui/Avatar.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-c13a345e.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
|
-
import { M as MODAL_ROOT } from '../../index-
|
|
7
|
-
import { x as isSupportedFileView, y as isVideo, z as isImage } from '../../index-
|
|
6
|
+
import { M as MODAL_ROOT } from '../../index-f697fbcb.js';
|
|
7
|
+
import { x as isSupportedFileView, y as isVideo, z as isImage } from '../../index-3884739d.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
9
|
+
import { u as useChannelContext } from '../../ChannelProvider-fa290b6f.js';
|
|
10
10
|
import '../../ui/ImageRenderer.js';
|
|
11
|
-
import '../../uuid-
|
|
11
|
+
import '../../uuid-91cc1b9f.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../_rollupPluginBabelHelpers-
|
|
13
|
+
import '../../stringSet-48003663.js';
|
|
14
|
+
import '../../_rollupPluginBabelHelpers-67b8fcb1.js';
|
|
15
15
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
16
16
|
import '../../withSendbird.js';
|
|
17
|
-
import '../../UserProfileContext-
|
|
18
|
-
import '../../
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../
|
|
21
|
-
import '../../
|
|
22
|
-
import '../../
|
|
17
|
+
import '../../UserProfileContext-876edecc.js';
|
|
18
|
+
import '../../const-37554925.js';
|
|
19
|
+
import '../../index-d9e61250.js';
|
|
20
|
+
import '../../index-ae663bfa.js';
|
|
21
|
+
import '../../topics-913cf30c.js';
|
|
22
|
+
import '../../compareIds-38edfc55.js';
|
|
23
23
|
import '@sendbird/chat/groupChannel';
|
|
24
24
|
import '@sendbird/chat/message';
|
|
25
|
-
import '../../consts-
|
|
25
|
+
import '../../consts-5cbbba56.js';
|
|
26
|
+
import '../../resolvedReplyType-db634471.js';
|
|
26
27
|
|
|
27
28
|
const FileViewerComponent = _ref => {
|
|
28
29
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileViewer.js","sources":["../../../src/modules/Channel/components/FileViewer/index.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport type { FileMessage } from '@sendbird/chat/message';\n\nimport './file-viewer.scss';\nimport Avatar from '../../../../ui/Avatar';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport { MODAL_ROOT } from '../../../../hooks/useModal/ModalRoot';\n\nimport { isImage, isVideo, isSupportedFileView } from '../../../../utils';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { EveryMessage } from '../../../../types';\n\ntype FileViewerUIProps = {\n profileUrl: string;\n nickname: string;\n // file\n name: string;\n type: string;\n url: string;\n // others\n isByMe: boolean;\n onCancel: () => void;\n onDelete: () => void;\n disableDelete: boolean;\n};\n\nexport const FileViewerComponent: React.FC<FileViewerUIProps> = ({\n // sender\n profileUrl,\n nickname,\n // file\n name,\n type,\n url,\n // others\n isByMe,\n onCancel,\n onDelete,\n disableDelete,\n}: FileViewerUIProps) => (\n <div className=\"sendbird-fileviewer\">\n <div className=\"sendbird-fileviewer__header\">\n <div className=\"sendbird-fileviewer__header__left\">\n <div className=\"sendbird-fileviewer__header__left__avatar\">\n <Avatar height=\"32px\" width=\"32px\" src={profileUrl} />\n </div>\n <Label\n className=\"sendbird-fileviewer__header__left__filename\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {name}\n </Label>\n <Label\n className=\"sendbird-fileviewer__header__left__sender-name\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {nickname}\n </Label>\n </div>\n <div className=\"sendbird-fileviewer__header__right\">\n {\n isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__header__right__actions\">\n <a\n className=\"sendbird-fileviewer__header__right__actions__download\"\n rel=\"noopener noreferrer\"\n href={url}\n target=\"_blank\"\n >\n <Icon\n type={IconTypes.DOWNLOAD}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n />\n </a>\n {\n onDelete && isByMe && (\n <div className=\"sendbird-fileviewer__header__right__actions__delete\">\n <Icon\n className={disableDelete ? 'disabled' : ''}\n type={IconTypes.DELETE}\n fillColor={disableDelete ? IconColors.GRAY : IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={() => { if (!disableDelete) { onDelete(); } }}\n />\n </div>\n )\n }\n </div>\n )\n }\n <div className=\"sendbird-fileviewer__header__right__actions__close\">\n <Icon\n type={IconTypes.CLOSE}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={onCancel}\n />\n </div>\n </div>\n </div>\n <div className=\"sendbird-fileviewer__content\">\n {isVideo(type) && (\n <video controls className=\"sendbird-fileviewer__content__video\">\n <source src={url} type={type} />\n </video>\n )}\n {\n isImage(type) && (\n <img\n src={url}\n alt={name}\n className=\"sendbird-fileviewer__content__img\"\n />\n )\n }\n {\n !isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__content__unsupported\">\n <Label type={LabelTypography.H_1} color={LabelColors.ONBACKGROUND_1}>\n Unsupoprted message\n </Label>\n </div>\n )\n }\n </div>\n </div>\n);\n\ntype FileViewerProps = {\n onCancel:() => void;\n message: FileMessage;\n};\n\nconst FileViewer: React.FC<FileViewerProps> = ({ onCancel, message }: FileViewerProps) => {\n const { deleteMessage } = useChannelContext();\n const {\n sender,\n type,\n url,\n name = '',\n threadInfo,\n } = message;\n const user = useSendbirdStateContext()?.config?.userId;\n const isByMe = user === message?.sender?.userId;\n const disableDelete = threadInfo?.replyCount > 0;\n const { profileUrl, nickname = '' } = sender;\n return createPortal(\n (\n <FileViewerComponent\n profileUrl={profileUrl}\n nickname={nickname}\n type={type}\n url={url}\n name={name}\n onCancel={onCancel}\n onDelete={() => {\n deleteMessage(message as EveryMessage).then(() => {\n onCancel();\n });\n }}\n isByMe={isByMe}\n disableDelete={disableDelete}\n />\n ),\n document.getElementById(MODAL_ROOT),\n );\n};\n\nexport default FileViewer;\n"],"names":["FileViewerComponent","_ref","profileUrl","nickname","name","type","url","isByMe","onCancel","onDelete","disableDelete","React","createElement","className","Avatar","height","width","src","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","BODY_1","ONBACKGROUND_2","isSupportedFileView","rel","href","target","Icon","IconTypes","DOWNLOAD","fillColor","IconColors","ON_BACKGROUND_1","DELETE","GRAY","onClick","CLOSE","isVideo","controls","isImage","alt","H_1","FileViewer","_ref2","_useSendbirdStateCont","_useSendbirdStateCont2","_message$sender","message","deleteMessage","useChannelContext","sender","threadInfo","user","useSendbirdStateContext","config","userId","replyCount","createPortal","then","document","getElementById","MODAL_ROOT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAMA,mBAAgD,GAAGC,IAAA,IAAA;EAAA,IAAC;AAC/D;IACAC,UAAU;IACVC,QAAQ;AACR;IACAC,IAAI;IACJC,IAAI;IACJC,GAAG;AACH;IACAC,MAAM;IACNC,QAAQ;IACRC,QAAQ;AACRC,IAAAA,aAAAA;AACiB,GAAC,GAAAT,IAAA,CAAA;EAAA,oBAClBU,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qBAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6BAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mCAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,cAAA,CAAAC,aAAA,CAACE,MAAM,EAAA;AAACC,IAAAA,MAAM,EAAC,MAAM;AAACC,IAAAA,KAAK,EAAC,MAAM;AAACC,IAAAA,GAAG,EAAEf,UAAAA;AAAW,GAAA,CAAG,CAClD,eACNS,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AAA,CAAiBS,MAAM,CAAA,CAAA;EAC/C,MAAMhD,aAAa,GAAG,CAAA4C,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAVA,UAAU,CAAEK,UAAU,IAAG,CAAC,CAAA;EAChD,MAAM;IAAEzD,UAAU;AAAEC,IAAAA,QAAQ,GAAG,EAAA;AAAG,GAAC,GAAGkD,MAAM,CAAA;AAC5C,EAAA,oBAAOO,YAAY,eAEfjD,cAAA,CAAAC,aAAA,CAACZ,mBAAmB,EAAA;AAClBE,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,IAAI,EAAEA,IAAK;AACXI,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,MAAM;AACd0C,MAAAA,aAAa,CAACD,OAAO,CAAiB,CAACW,IAAI,CAAC,MAAM;AAChDrD,QAAAA,QAAQ,EAAE,CAAA;AACZ,OAAC,CAAC,CAAA;KACF;AACFD,IAAAA,MAAM,EAAEA,MAAO;AACfG,IAAAA,aAAa,EAAEA,aAAAA;AAAc,GAAA,CAC7B,EAEJoD,QAAQ,CAACC,cAAc,CAACC,UAAU,CAAC,CACpC,CAAA;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"FileViewer.js","sources":["../../../src/modules/Channel/components/FileViewer/index.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport type { FileMessage } from '@sendbird/chat/message';\n\nimport './file-viewer.scss';\nimport Avatar from '../../../../ui/Avatar';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport { MODAL_ROOT } from '../../../../hooks/useModal/ModalRoot';\n\nimport { isImage, isVideo, isSupportedFileView } from '../../../../utils';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { EveryMessage } from '../../../../types';\n\ntype FileViewerUIProps = {\n profileUrl: string;\n nickname: string;\n // file\n name: string;\n type: string;\n url: string;\n // others\n isByMe: boolean;\n onCancel: () => void;\n onDelete: () => void;\n disableDelete: boolean;\n};\n\nexport const FileViewerComponent: React.FC<FileViewerUIProps> = ({\n // sender\n profileUrl,\n nickname,\n // file\n name,\n type,\n url,\n // others\n isByMe,\n onCancel,\n onDelete,\n disableDelete,\n}: FileViewerUIProps) => (\n <div className=\"sendbird-fileviewer\">\n <div className=\"sendbird-fileviewer__header\">\n <div className=\"sendbird-fileviewer__header__left\">\n <div className=\"sendbird-fileviewer__header__left__avatar\">\n <Avatar height=\"32px\" width=\"32px\" src={profileUrl} />\n </div>\n <Label\n className=\"sendbird-fileviewer__header__left__filename\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {name}\n </Label>\n <Label\n className=\"sendbird-fileviewer__header__left__sender-name\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {nickname}\n </Label>\n </div>\n <div className=\"sendbird-fileviewer__header__right\">\n {\n isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__header__right__actions\">\n <a\n className=\"sendbird-fileviewer__header__right__actions__download\"\n rel=\"noopener noreferrer\"\n href={url}\n target=\"_blank\"\n >\n <Icon\n type={IconTypes.DOWNLOAD}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n />\n </a>\n {\n onDelete && isByMe && (\n <div className=\"sendbird-fileviewer__header__right__actions__delete\">\n <Icon\n className={disableDelete ? 'disabled' : ''}\n type={IconTypes.DELETE}\n fillColor={disableDelete ? IconColors.GRAY : IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={() => { if (!disableDelete) { onDelete(); } }}\n />\n </div>\n )\n }\n </div>\n )\n }\n <div className=\"sendbird-fileviewer__header__right__actions__close\">\n <Icon\n type={IconTypes.CLOSE}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={onCancel}\n />\n </div>\n </div>\n </div>\n <div className=\"sendbird-fileviewer__content\">\n {isVideo(type) && (\n <video controls className=\"sendbird-fileviewer__content__video\">\n <source src={url} type={type} />\n </video>\n )}\n {\n isImage(type) && (\n <img\n src={url}\n alt={name}\n className=\"sendbird-fileviewer__content__img\"\n />\n )\n }\n {\n !isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__content__unsupported\">\n <Label type={LabelTypography.H_1} color={LabelColors.ONBACKGROUND_1}>\n Unsupoprted message\n </Label>\n </div>\n )\n }\n </div>\n </div>\n);\n\ntype FileViewerProps = {\n onCancel:() => void;\n message: FileMessage;\n};\n\nconst FileViewer: React.FC<FileViewerProps> = ({ onCancel, message }: FileViewerProps) => {\n const { deleteMessage } = useChannelContext();\n const {\n sender,\n type,\n url,\n name = '',\n threadInfo,\n } = message;\n const user = useSendbirdStateContext()?.config?.userId;\n const isByMe = user === message?.sender?.userId;\n const disableDelete = threadInfo?.replyCount > 0;\n const { profileUrl, nickname = '' } = sender;\n return createPortal(\n (\n <FileViewerComponent\n profileUrl={profileUrl}\n nickname={nickname}\n type={type}\n url={url}\n name={name}\n onCancel={onCancel}\n onDelete={() => {\n deleteMessage(message as EveryMessage).then(() => {\n onCancel();\n });\n }}\n isByMe={isByMe}\n disableDelete={disableDelete}\n />\n ),\n document.getElementById(MODAL_ROOT),\n );\n};\n\nexport default FileViewer;\n"],"names":["FileViewerComponent","_ref","profileUrl","nickname","name","type","url","isByMe","onCancel","onDelete","disableDelete","React","createElement","className","Avatar","height","width","src","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","BODY_1","ONBACKGROUND_2","isSupportedFileView","rel","href","target","Icon","IconTypes","DOWNLOAD","fillColor","IconColors","ON_BACKGROUND_1","DELETE","GRAY","onClick","CLOSE","isVideo","controls","isImage","alt","H_1","FileViewer","_ref2","_useSendbirdStateCont","_useSendbirdStateCont2","_message$sender","message","deleteMessage","useChannelContext","sender","threadInfo","user","useSendbirdStateContext","config","userId","replyCount","createPortal","then","document","getElementById","MODAL_ROOT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAMA,mBAAgD,GAAGC,IAAA,IAAA;EAAA,IAAC;AAC/D;IACAC,UAAU;IACVC,QAAQ;AACR;IACAC,IAAI;IACJC,IAAI;IACJC,GAAG;AACH;IACAC,MAAM;IACNC,QAAQ;IACRC,QAAQ;AACRC,IAAAA,aAAAA;AACiB,GAAC,GAAAT,IAAA,CAAA;EAAA,oBAClBU,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qBAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6BAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mCAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,cAAA,CAAAC,aAAA,CAACE,MAAM,EAAA;AAACC,IAAAA,MAAM,EAAC,MAAM;AAACC,IAAAA,KAAK,EAAC,MAAM;AAACC,IAAAA,GAAG,EAAEf,UAAAA;AAAW,GAAA,CAAG,CAClD,eACNS,cAAA,CAAAC,aAAA,CAACM,KAAK,EAAA;AACJL,IAAAA,SAAS,EAAC,6CAA6C;IACvDR,IAAI,EAAEc,eAAe,CAACC,GAAI;IAC1BC,KAAK,EAAEC,WAAW,CAACC,cAAAA;AAAe,GAAA,EAEjCnB,IAAI,CACC,eACRO,cAAA,CAAAC,aAAA,CAACM,KAAK,EAAA;AACJL,IAAAA,SAAS,EAAC,gDAAgD;IAC1DR,IAAI,EAAEc,eAAe,CAACK,MAAO;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eAEfjD,cAAA,CAAAC,aAAA,CAACZ,mBAAmB,EAAA;AAClBE,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,IAAI,EAAEA,IAAK;AACXI,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,MAAM;AACd0C,MAAAA,aAAa,CAACD,OAAO,CAAiB,CAACW,IAAI,CAAC,MAAM;AAChDrD,QAAAA,QAAQ,EAAE,CAAA;AACZ,OAAC,CAAC,CAAA;KACF;AACFD,IAAAA,MAAM,EAAEA,MAAO;AACfG,IAAAA,aAAa,EAAEA,aAAAA;AAAc,GAAA,CAC7B,EAEJoD,QAAQ,CAACC,cAAc,CAACC,UAAU,CAAC,CACpC,CAAA;AACH;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography } from '../../index-
|
|
4
|
-
import '../../stringSet-
|
|
5
|
-
import '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-98d0f9ef.js';
|
|
3
|
+
import { L as Label, a as LabelTypography } from '../../index-c13a345e.js';
|
|
4
|
+
import '../../stringSet-48003663.js';
|
|
5
|
+
import '../../index-ae663bfa.js';
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
|
|
8
8
|
const FrozenNotification = _ref => {
|
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useMemo } from 'react';
|
|
2
|
-
import { f as format } from '../../index-
|
|
2
|
+
import { f as format } from '../../index-d9e61250.js';
|
|
3
3
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
4
4
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
5
|
-
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-
|
|
6
|
-
import { h as getClassName } from '../../index-
|
|
7
|
-
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-
|
|
5
|
+
import { u as useChannelContext, a as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from '../../ChannelProvider-fa290b6f.js';
|
|
6
|
+
import { h as getClassName } from '../../index-3884739d.js';
|
|
7
|
+
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-37554925.js';
|
|
8
8
|
import DateSeparator from '../../ui/DateSeparator.js';
|
|
9
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
9
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-c13a345e.js';
|
|
10
10
|
import MessageInput from '../../ui/MessageInput.js';
|
|
11
11
|
import MessageContent from '../../ui/MessageContent.js';
|
|
12
12
|
import FileViewer from './FileViewer.js';
|
|
13
13
|
import RemoveMessage from './RemoveMessageModal.js';
|
|
14
|
-
import { M as MessageInputKeys } from '../../const-
|
|
15
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
16
|
-
import { a as useHandleOnScrollCallback } from '../../index-
|
|
17
|
-
import { u as useDirtyGetMentions } from '../../useDirtyGetMentions-
|
|
18
|
-
import '../../index-
|
|
14
|
+
import { M as MessageInputKeys } from '../../const-a243b539.js';
|
|
15
|
+
import { u as useLocalization } from '../../LocalizationContext-98d0f9ef.js';
|
|
16
|
+
import { a as useHandleOnScrollCallback } from '../../index-50634013.js';
|
|
17
|
+
import { u as useDirtyGetMentions } from '../../useDirtyGetMentions-19f30317.js';
|
|
18
|
+
import '../../index-ae663bfa.js';
|
|
19
19
|
import '../../ui/Icon.js';
|
|
20
20
|
import 'prop-types';
|
|
21
21
|
import '../../ui/Avatar.js';
|
|
22
22
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
24
|
-
import '../../ThreadProvider-
|
|
23
|
+
import '../../uuid-91cc1b9f.js';
|
|
24
|
+
import '../../ThreadProvider-29ee3fd4.js';
|
|
25
25
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
26
|
-
import '../../UserProfileContext-
|
|
27
|
-
import '../../_rollupPluginBabelHelpers-
|
|
26
|
+
import '../../UserProfileContext-876edecc.js';
|
|
27
|
+
import '../../_rollupPluginBabelHelpers-67b8fcb1.js';
|
|
28
28
|
import '../../Thread/context/types.js';
|
|
29
29
|
import '@sendbird/chat';
|
|
30
|
-
import '../../topics-
|
|
30
|
+
import '../../topics-913cf30c.js';
|
|
31
31
|
import '@sendbird/chat/groupChannel';
|
|
32
32
|
import '@sendbird/chat/message';
|
|
33
|
-
import '../../consts-
|
|
33
|
+
import '../../consts-5cbbba56.js';
|
|
34
34
|
import '../../withSendbird.js';
|
|
35
|
-
import '../../compareIds-
|
|
36
|
-
import '../../
|
|
37
|
-
import '../../
|
|
35
|
+
import '../../compareIds-38edfc55.js';
|
|
36
|
+
import '../../resolvedReplyType-db634471.js';
|
|
37
|
+
import '../../color-69f6e789.js';
|
|
38
|
+
import '../../stringSet-48003663.js';
|
|
38
39
|
import '../../ui/IconButton.js';
|
|
39
40
|
import '../../ui/Button.js';
|
|
40
41
|
import 'dompurify';
|
|
41
|
-
import '../../consts-
|
|
42
|
-
import '../../consts-
|
|
43
|
-
import '../../consts-
|
|
44
|
-
import '../../tokenize-
|
|
42
|
+
import '../../consts-2569b193.js';
|
|
43
|
+
import '../../consts-3a3fab91.js';
|
|
44
|
+
import '../../consts-ca67a8bb.js';
|
|
45
|
+
import '../../tokenize-d4044e1f.js';
|
|
46
|
+
import '../../index.module-7ee52842.js';
|
|
45
47
|
import '../../ui/UserProfile.js';
|
|
46
48
|
import '../../sendbirdSelectors.js';
|
|
47
|
-
import '../../utils-
|
|
48
|
-
import '../../index-
|
|
49
|
+
import '../../utils-5248be17.js';
|
|
50
|
+
import '../../index-eb5489b5.js';
|
|
49
51
|
import '../../ui/Loader.js';
|
|
50
|
-
import '../../index-
|
|
51
|
-
import '../../index-
|
|
52
|
+
import '../../index-1fa6dddb.js';
|
|
53
|
+
import '../../index-fdfe6417.js';
|
|
52
54
|
import '../../ui/MessageItemMenu.js';
|
|
53
55
|
import '../../ui/ContextMenu.js';
|
|
54
56
|
import 'react-dom';
|
|
55
57
|
import '../../ui/SortByRow.js';
|
|
56
|
-
import '../../types-
|
|
58
|
+
import '../../types-406698d9.js';
|
|
57
59
|
import '../../ui/MessageItemReactionMenu.js';
|
|
58
60
|
import '../../ui/ReactionButton.js';
|
|
59
|
-
import '../../useLongPress-
|
|
60
|
-
import '../../MediaQueryContext-
|
|
61
|
+
import '../../useLongPress-84190b3e.js';
|
|
62
|
+
import '../../MediaQueryContext-08f242eb.js';
|
|
61
63
|
import '../../ui/EmojiReactions.js';
|
|
62
64
|
import '../../ui/ReactionBadge.js';
|
|
63
65
|
import '../../ui/BottomSheet.js';
|
|
64
|
-
import '../../index-
|
|
66
|
+
import '../../index-f697fbcb.js';
|
|
65
67
|
import '../../ui/UserListItem.js';
|
|
66
68
|
import '../../ui/MutedAvatarOverlay.js';
|
|
67
69
|
import '../../ui/Checkbox.js';
|
|
@@ -70,8 +72,7 @@ import '../../ui/TooltipWrapper.js';
|
|
|
70
72
|
import '../../Message/context.js';
|
|
71
73
|
import '../../ui/AdminMessage.js';
|
|
72
74
|
import '../../ui/TextMessageItemBody.js';
|
|
73
|
-
import '../../index-
|
|
74
|
-
import '../../index.module-2576c9ac.js';
|
|
75
|
+
import '../../index-b42c0eb1.js';
|
|
75
76
|
import '../../ui/MentionLabel.js';
|
|
76
77
|
import '../../ui/LinkLabel.js';
|
|
77
78
|
import '../../ui/FileMessageItemBody.js';
|
|
@@ -80,12 +81,12 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
80
81
|
import '../../ui/OGMessageItemBody.js';
|
|
81
82
|
import '../../ui/UnknownMessageItemBody.js';
|
|
82
83
|
import '../../ui/QuoteMessage.js';
|
|
83
|
-
import '../../index-
|
|
84
|
+
import '../../index-315dcf0d.js';
|
|
84
85
|
import '../../ui/ThreadReplies.js';
|
|
85
86
|
import '../../ui/VoiceMessageItemBody.js';
|
|
86
87
|
import '../../ui/ProgressBar.js';
|
|
87
88
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
88
|
-
import '../../index-
|
|
89
|
+
import '../../index-f6e1c352.js';
|
|
89
90
|
import '../../VoiceRecorder/context.js';
|
|
90
91
|
import '../../ui/Modal.js';
|
|
91
92
|
import '../../ui/PlaybackTime.js';
|
|
@@ -302,6 +303,7 @@ const Message = _ref => {
|
|
|
302
303
|
maxSuggestionCount: maxUserSuggestionCount
|
|
303
304
|
}), /*#__PURE__*/React__default.createElement(MessageInput, {
|
|
304
305
|
isEdit: true,
|
|
306
|
+
channel: currentGroupChannel,
|
|
305
307
|
disabled: disabled,
|
|
306
308
|
ref: editMessageInputRef,
|
|
307
309
|
mentionSelectedUser: selectedUser,
|