@sendbird/uikit-react 3.7.0-rc.1 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +52 -52
- package/Channel/components/ChannelHeader.js +22 -22
- package/Channel/components/ChannelUI.js +46 -46
- package/Channel/components/FileViewer.js +19 -19
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +42 -42
- package/Channel/components/MessageInput.js +33 -33
- package/Channel/components/MessageList.js +42 -42
- package/Channel/components/RemoveMessageModal.js +23 -23
- package/Channel/components/SuggestedMentionList.js +19 -19
- package/Channel/components/TypingIndicator.js +18 -18
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +15 -15
- package/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/Channel/utils/getMessagePartsInfo.js +7 -7
- package/Channel.js +46 -46
- package/ChannelList/components/AddChannel.js +16 -16
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +32 -32
- package/ChannelList/components/ChannelPreview.js +30 -30
- package/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +32 -32
- package/{ChannelListProvider-63aa89ac.js → ChannelListProvider-eccd99c6.js} +8 -8
- package/{ChannelListProvider-63aa89ac.js.map → ChannelListProvider-eccd99c6.js.map} +1 -1
- package/{ChannelProvider-08534eaa.js → ChannelProvider-9ba5893a.js} +14 -14
- package/{ChannelProvider-08534eaa.js.map → ChannelProvider-9ba5893a.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +13 -13
- 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 +17 -17
- 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 +3 -3
- package/CreateChannel.js +14 -14
- package/{CreateChannelProvider-7aa5bcd3.js → CreateChannelProvider-a2885972.js} +1 -1
- package/{CreateChannelProvider-7aa5bcd3.js.map → CreateChannelProvider-a2885972.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +12 -12
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +12 -12
- package/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/EditUserProfile.js +13 -13
- package/{LocalizationContext-3dd8dd71.js → LocalizationContext-287ee149.js} +3 -3
- package/{LocalizationContext-3dd8dd71.js.map → LocalizationContext-287ee149.js.map} +1 -1
- package/{MediaQueryContext-e7425227.js → MediaQueryContext-114ca049.js} +1 -1
- package/{MediaQueryContext-e7425227.js.map → MediaQueryContext-114ca049.js.map} +1 -1
- package/{MemberList-5f00f0af.js → MemberList-4e71a841.js} +7 -7
- package/{MemberList-5f00f0af.js.map → MemberList-4e71a841.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +12 -12
- package/MessageSearch/context.js +1 -1
- package/MessageSearch.js +12 -12
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +11 -11
- package/OpenChannel/components/OpenChannelInput.js +21 -21
- package/OpenChannel/components/OpenChannelMessage.js +32 -32
- package/OpenChannel/components/OpenChannelMessageList.js +34 -34
- package/OpenChannel/components/OpenChannelUI.js +34 -34
- package/OpenChannel/context.js +7 -7
- package/OpenChannel.js +34 -34
- package/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +2 -2
- package/OpenChannelList.js +14 -14
- package/{OpenChannelListProvider-d318c26b.js → OpenChannelListProvider-45d4ab54.js} +2 -2
- package/{OpenChannelListProvider-d318c26b.js.map → OpenChannelListProvider-45d4ab54.js.map} +1 -1
- package/{OpenChannelProvider-95f0d098.js → OpenChannelProvider-9818f9ed.js} +6 -6
- package/{OpenChannelProvider-95f0d098.js.map → OpenChannelProvider-9818f9ed.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +14 -14
- package/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +17 -17
- package/{RemoveMessageModal-16417a53.js → RemoveMessageModal-007c2f04.js} +6 -6
- package/{RemoveMessageModal-16417a53.js.map → RemoveMessageModal-007c2f04.js.map} +1 -1
- package/SendbirdProvider.js +18 -18
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +38 -38
- package/Thread/components/ParentMessageInfoItem.js +25 -25
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +42 -42
- package/Thread/components/ThreadListItem.js +42 -42
- package/Thread/components/ThreadMessageInput.js +33 -33
- package/Thread/components/ThreadUI.js +45 -45
- package/Thread/context.js +10 -10
- package/Thread.js +45 -45
- package/{UserProfileContext-a70aa041.js → UserProfileContext-2001a468.js} +1 -1
- package/{UserProfileContext-a70aa041.js.map → UserProfileContext-2001a468.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +12 -12
- package/VoiceRecorder/context.js +12 -12
- package/VoiceRecorder/useVoiceRecorder.js +11 -11
- package/{WebAudioUtils-10cc2346.js → WebAudioUtils-31f7c8eb.js} +2 -2
- package/{WebAudioUtils-10cc2346.js.map → WebAudioUtils-31f7c8eb.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-bb4003a4.js → _rollupPluginBabelHelpers-e92eb032.js} +1 -1
- package/_rollupPluginBabelHelpers-e92eb032.js.map +1 -0
- package/{actionTypes-fd447faf.js → actionTypes-324495ed.js} +1 -1
- package/{actionTypes-fd447faf.js.map → actionTypes-324495ed.js.map} +1 -1
- package/cjs/App.js +52 -52
- package/cjs/Channel/components/ChannelHeader.js +22 -22
- package/cjs/Channel/components/ChannelUI.js +46 -46
- package/cjs/Channel/components/FileViewer.js +19 -19
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +42 -42
- package/cjs/Channel/components/MessageInput.js +33 -33
- package/cjs/Channel/components/MessageList.js +42 -42
- package/cjs/Channel/components/RemoveMessageModal.js +23 -23
- package/cjs/Channel/components/SuggestedMentionList.js +19 -19
- package/cjs/Channel/components/TypingIndicator.js +18 -18
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +15 -15
- package/cjs/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/cjs/Channel/utils/getMessagePartsInfo.js +7 -7
- package/cjs/Channel.js +46 -46
- package/cjs/ChannelList/components/AddChannel.js +16 -16
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +32 -32
- package/cjs/ChannelList/components/ChannelPreview.js +30 -30
- package/cjs/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +32 -32
- package/cjs/{ChannelListProvider-c35c3937.js → ChannelListProvider-d0ad5a84.js} +8 -8
- package/cjs/{ChannelListProvider-c35c3937.js.map → ChannelListProvider-d0ad5a84.js.map} +1 -1
- package/cjs/{ChannelProvider-95309057.js → ChannelProvider-fc111e5f.js} +14 -14
- package/cjs/{ChannelProvider-95309057.js.map → ChannelProvider-fc111e5f.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +13 -13
- 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 +17 -17
- 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 +3 -3
- package/cjs/CreateChannel.js +14 -14
- package/cjs/{CreateChannelProvider-4d70701b.js → CreateChannelProvider-c3c843e4.js} +1 -1
- package/cjs/{CreateChannelProvider-4d70701b.js.map → CreateChannelProvider-c3c843e4.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +12 -12
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +12 -12
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +13 -13
- package/cjs/{LocalizationContext-e12e7229.js → LocalizationContext-58b6ed7c.js} +3 -3
- package/cjs/{LocalizationContext-e12e7229.js.map → LocalizationContext-58b6ed7c.js.map} +1 -1
- package/cjs/{MediaQueryContext-77316b55.js → MediaQueryContext-6141d955.js} +1 -1
- package/cjs/{MediaQueryContext-77316b55.js.map → MediaQueryContext-6141d955.js.map} +1 -1
- package/cjs/{MemberList-5442a043.js → MemberList-2bd3db33.js} +7 -7
- package/cjs/{MemberList-5442a043.js.map → MemberList-2bd3db33.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +12 -12
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch.js +12 -12
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +11 -11
- package/cjs/OpenChannel/components/OpenChannelInput.js +21 -21
- package/cjs/OpenChannel/components/OpenChannelMessage.js +32 -32
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +34 -34
- package/cjs/OpenChannel/components/OpenChannelUI.js +34 -34
- package/cjs/OpenChannel/context.js +7 -7
- package/cjs/OpenChannel.js +34 -34
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +2 -2
- package/cjs/OpenChannelList.js +14 -14
- package/cjs/{OpenChannelListProvider-0eb92240.js → OpenChannelListProvider-a8560978.js} +2 -2
- package/cjs/{OpenChannelListProvider-0eb92240.js.map → OpenChannelListProvider-a8560978.js.map} +1 -1
- package/cjs/{OpenChannelProvider-5e9198f9.js → OpenChannelProvider-39f13647.js} +6 -6
- package/cjs/{OpenChannelProvider-5e9198f9.js.map → OpenChannelProvider-39f13647.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- 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 +17 -17
- package/cjs/{RemoveMessageModal-300aff21.js → RemoveMessageModal-afc3e268.js} +6 -6
- package/cjs/{RemoveMessageModal-300aff21.js.map → RemoveMessageModal-afc3e268.js.map} +1 -1
- package/cjs/SendbirdProvider.js +18 -18
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +38 -38
- package/cjs/Thread/components/ParentMessageInfoItem.js +25 -25
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +42 -42
- package/cjs/Thread/components/ThreadListItem.js +42 -42
- package/cjs/Thread/components/ThreadMessageInput.js +33 -33
- package/cjs/Thread/components/ThreadUI.js +45 -45
- package/cjs/Thread/context.js +10 -10
- package/cjs/Thread.js +45 -45
- package/cjs/{UserProfileContext-712f02b1.js → UserProfileContext-c6d7abb7.js} +1 -1
- package/cjs/{UserProfileContext-712f02b1.js.map → UserProfileContext-c6d7abb7.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +12 -12
- package/cjs/VoiceRecorder/context.js +12 -12
- package/cjs/VoiceRecorder/useVoiceRecorder.js +11 -11
- package/cjs/{WebAudioUtils-cc296e5f.js → WebAudioUtils-36803ab2.js} +2 -2
- package/cjs/{WebAudioUtils-cc296e5f.js.map → WebAudioUtils-36803ab2.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-b21be8d6.js → _rollupPluginBabelHelpers-f5b0dfb9.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-f5b0dfb9.js.map +1 -0
- package/cjs/{actionTypes-c1bf54bc.js → actionTypes-327123b5.js} +1 -1
- package/cjs/{actionTypes-c1bf54bc.js.map → actionTypes-327123b5.js.map} +1 -1
- package/cjs/{color-45578eb6.js → color-5bf5a8f5.js} +1 -1
- package/cjs/{color-45578eb6.js.map → color-5bf5a8f5.js.map} +1 -1
- package/cjs/{compareIds-6d33d98c.js → compareIds-28c6af62.js} +1 -1
- package/cjs/{compareIds-6d33d98c.js.map → compareIds-28c6af62.js.map} +1 -1
- package/cjs/{const-9692feaf.js → const-876980e8.js} +1 -1
- package/cjs/{const-9692feaf.js.map → const-876980e8.js.map} +1 -1
- package/cjs/{const-ea1110b8.js → const-c9e7a340.js} +1 -1
- package/cjs/{const-ea1110b8.js.map → const-c9e7a340.js.map} +1 -1
- package/cjs/{consts-2425b1dc.js → consts-61d83828.js} +1 -1
- package/cjs/{consts-2425b1dc.js.map → consts-61d83828.js.map} +1 -1
- package/cjs/{consts-4ddf1e9d.js → consts-b3c4f548.js} +1 -1
- package/cjs/{consts-4ddf1e9d.js.map → consts-b3c4f548.js.map} +1 -1
- package/cjs/{consts-39b0df2d.js → consts-b711321c.js} +1 -1
- package/cjs/{consts-39b0df2d.js.map → consts-b711321c.js.map} +1 -1
- package/cjs/{consts-838d8c0a.js → consts-f54b15c2.js} +1 -1
- package/cjs/{consts-838d8c0a.js.map → consts-f54b15c2.js.map} +1 -1
- package/cjs/{context-b0c281ea.js → context-6684538e.js} +2 -2
- package/cjs/{context-b0c281ea.js.map → context-6684538e.js.map} +1 -1
- package/cjs/dist/index.css +55 -55
- package/cjs/dist/index.css.map +1 -1
- package/cjs/hooks/useModal.js +11 -11
- package/cjs/{index-2a618f4d.js → index-134e9852.js} +2 -2
- package/cjs/{index-2a618f4d.js.map → index-134e9852.js.map} +1 -1
- package/cjs/{index-ab04f4c1.js → index-3448df64.js} +2 -2
- package/cjs/{index-ab04f4c1.js.map → index-3448df64.js.map} +1 -1
- package/cjs/{index-2c02d236.js → index-45933be9.js} +2 -2
- package/cjs/{index-2c02d236.js.map → index-45933be9.js.map} +1 -1
- package/cjs/{index-be4197e2.js → index-4c378655.js} +4 -4
- package/cjs/{index-be4197e2.js.map → index-4c378655.js.map} +1 -1
- package/cjs/{index-cb8e0d3b.js → index-4e939c26.js} +9 -9
- package/cjs/{index-cb8e0d3b.js.map → index-4e939c26.js.map} +1 -1
- package/cjs/{index-c0e391a9.js → index-520e12b8.js} +7 -7
- package/cjs/{index-c0e391a9.js.map → index-520e12b8.js.map} +1 -1
- package/cjs/{index-d0d79864.js → index-54279ec2.js} +1 -1
- package/cjs/{index-d0d79864.js.map → index-54279ec2.js.map} +1 -1
- package/cjs/{index-8c79fc87.js → index-692ea6aa.js} +2 -2
- package/cjs/{index-8c79fc87.js.map → index-692ea6aa.js.map} +1 -1
- package/cjs/{index-e61f36ff.js → index-7627b546.js} +3 -3
- package/cjs/{index-e61f36ff.js.map → index-7627b546.js.map} +1 -1
- package/cjs/{index-1c49b970.js → index-a95c4ab4.js} +3 -3
- package/cjs/{index-1c49b970.js.map → index-a95c4ab4.js.map} +1 -1
- package/cjs/{index-6f4ca5cf.js → index-b5a9b4b7.js} +2 -2
- package/cjs/{index-6f4ca5cf.js.map → index-b5a9b4b7.js.map} +1 -1
- package/cjs/{index-6fdf155b.js → index-b8ba4548.js} +1 -1
- package/cjs/{index-6fdf155b.js.map → index-b8ba4548.js.map} +1 -1
- package/cjs/{index-6b215583.js → index-bc6623d7.js} +11 -11
- package/cjs/{index-6b215583.js.map → index-bc6623d7.js.map} +1 -1
- package/cjs/{index-35a2f604.js → index-cc2e05a4.js} +5 -5
- package/cjs/{index-35a2f604.js.map → index-cc2e05a4.js.map} +1 -1
- package/cjs/{index-dfe39552.js → index-ce07a2a3.js} +4 -4
- package/cjs/{index-dfe39552.js.map → index-ce07a2a3.js.map} +1 -1
- package/cjs/{index-23d284a0.js → index-dbe8dd84.js} +3 -3
- package/cjs/{index-23d284a0.js.map → index-dbe8dd84.js.map} +1 -1
- package/cjs/{index-b1e163b7.js → index-e5e6d9b0.js} +4 -4
- package/cjs/{index-b1e163b7.js.map → index-e5e6d9b0.js.map} +1 -1
- package/cjs/{index-94db47de.js → index-e8928da6.js} +1 -1
- package/cjs/{index-94db47de.js.map → index-e8928da6.js.map} +1 -1
- package/cjs/index.js +56 -56
- package/cjs/{resolvedReplyType-e4155c81.js → resolvedReplyType-c4564ebe.js} +1 -1
- package/cjs/{resolvedReplyType-e4155c81.js.map → resolvedReplyType-c4564ebe.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +1 -1
- package/cjs/{stringFormatterUtils-db5c0b13.js → stringFormatterUtils-92dbef3c.js} +3 -3
- package/cjs/{stringFormatterUtils-db5c0b13.js.map → stringFormatterUtils-92dbef3c.js.map} +1 -1
- package/cjs/{stringSet-f086c338.js → stringSet-1539ac47.js} +1 -1
- package/cjs/{stringSet-f086c338.js.map → stringSet-1539ac47.js.map} +1 -1
- package/cjs/{tokenize-db0fb550.js → tokenize-d5286fa8.js} +3 -3
- package/cjs/{tokenize-db0fb550.js.map → tokenize-d5286fa8.js.map} +1 -1
- package/cjs/{tslib.es6-b66710d0.js → tslib.es6-c74b513f.js} +1 -1
- package/cjs/{tslib.es6-b66710d0.js.map → tslib.es6-c74b513f.js.map} +1 -1
- package/cjs/{types-949e3eb4.js → types-d0d770c3.js} +1 -1
- package/cjs/{types-949e3eb4.js.map → types-d0d770c3.js.map} +1 -1
- package/cjs/{types-6edcfd89.js → types-feda9656.js} +1 -1
- package/cjs/{types-6edcfd89.js.map → types-feda9656.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 +6 -6
- package/cjs/ui/Button.js +4 -4
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +6 -6
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +15 -15
- package/cjs/ui/FileMessageItemBody.js +7 -7
- package/cjs/ui/FileViewer.js +14 -14
- 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 +37 -37
- package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
- package/cjs/ui/MessageInput.js +16 -16
- package/cjs/ui/MessageItemMenu.js +19 -19
- package/cjs/ui/MessageItemReactionMenu.js +10 -10
- package/cjs/ui/MessageSearchFileItem.js +12 -12
- package/cjs/ui/MessageSearchItem.js +9 -9
- package/cjs/ui/MessageStatus.js +11 -11
- package/cjs/ui/Modal.js +10 -10
- package/cjs/ui/OGMessageItemBody.js +14 -14
- 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 +17 -17
- package/cjs/ui/OpenchannelOGMessage.js +19 -19
- package/cjs/ui/OpenchannelThumbnailMessage.js +16 -16
- package/cjs/ui/OpenchannelUserMessage.js +17 -17
- package/cjs/ui/PlaceHolder.js +5 -5
- package/cjs/ui/PlaybackTime.js +2 -2
- package/cjs/ui/QuoteMessage.js +8 -8
- package/cjs/ui/QuoteMessageInput.js +8 -8
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +5 -5
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +14 -14
- package/cjs/ui/ThreadReplies.js +6 -6
- package/cjs/ui/ThumbnailMessageItemBody.js +8 -8
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +11 -11
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +12 -12
- package/cjs/ui/VoiceMessgeInput.js +8 -8
- package/cjs/ui/Word.js +11 -11
- package/cjs/{useHandleUploadFiles-51f534ef.js → useHandleUploadFiles-39e8d107.js} +11 -11
- package/cjs/{useHandleUploadFiles-51f534ef.js.map → useHandleUploadFiles-39e8d107.js.map} +1 -1
- package/cjs/{useLongPress-d5d1f4da.js → useLongPress-18b7af79.js} +3 -3
- package/cjs/{useLongPress-d5d1f4da.js.map → useLongPress-18b7af79.js.map} +1 -1
- package/cjs/{useSendMultipleFilesMessage-a050e482.js → useSendMultipleFilesMessage-d6a3d5cf.js} +3 -3
- package/cjs/{useSendMultipleFilesMessage-a050e482.js.map → useSendMultipleFilesMessage-d6a3d5cf.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{useStatefulFileInfoList-aa28d0cd.js → useStatefulFileInfoList-c510792f.js} +4 -4
- package/cjs/{useStatefulFileInfoList-aa28d0cd.js.map → useStatefulFileInfoList-c510792f.js.map} +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/{utils-c0bb692b.js → utils-1d0f1e0c.js} +1 -1
- package/cjs/{utils-c0bb692b.js.map → utils-1d0f1e0c.js.map} +1 -1
- package/cjs/{utils-ef688ff7.js → utils-9193a195.js} +4 -4
- package/cjs/{utils-ef688ff7.js.map → utils-9193a195.js.map} +1 -1
- package/cjs/{utils-20fdce6e.js → utils-93ca9d57.js} +3 -3
- package/cjs/{utils-20fdce6e.js.map → utils-93ca9d57.js.map} +1 -1
- package/cjs/{utils-cd9f6cd1.js → utils-98441ba6.js} +1 -1
- package/cjs/{utils-cd9f6cd1.js.map → utils-98441ba6.js.map} +1 -1
- package/cjs/{utils-fbdee0b3.js → utils-e6c4b2b0.js} +2 -2
- package/cjs/{utils-fbdee0b3.js.map → utils-e6c4b2b0.js.map} +1 -1
- package/cjs/{utils-de8b30fe.js → utils-eb6d90e0.js} +1 -1
- package/cjs/{utils-de8b30fe.js.map → utils-eb6d90e0.js.map} +1 -1
- package/cjs/{uuid-121cea7a.js → uuid-9a117e16.js} +1 -1
- package/cjs/{uuid-121cea7a.js.map → uuid-9a117e16.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-e1c45ba1.js → color-57373b4c.js} +1 -1
- package/{color-e1c45ba1.js.map → color-57373b4c.js.map} +1 -1
- package/{compareIds-6a90b7d0.js → compareIds-7e517404.js} +1 -1
- package/{compareIds-6a90b7d0.js.map → compareIds-7e517404.js.map} +1 -1
- package/{const-818ac95b.js → const-73db0277.js} +1 -1
- package/{const-818ac95b.js.map → const-73db0277.js.map} +1 -1
- package/{const-7e1bef20.js → const-93731a4c.js} +1 -1
- package/{const-7e1bef20.js.map → const-93731a4c.js.map} +1 -1
- package/{consts-99975d63.js → consts-4ec7d640.js} +1 -1
- package/{consts-99975d63.js.map → consts-4ec7d640.js.map} +1 -1
- package/{consts-893be876.js → consts-57c888b9.js} +1 -1
- package/{consts-893be876.js.map → consts-57c888b9.js.map} +1 -1
- package/{consts-96ddd57a.js → consts-be37687e.js} +1 -1
- package/{consts-96ddd57a.js.map → consts-be37687e.js.map} +1 -1
- package/{consts-9a7169ff.js → consts-d9c5f25a.js} +1 -1
- package/{consts-9a7169ff.js.map → consts-d9c5f25a.js.map} +1 -1
- package/{context-bbbcf8c7.js → context-729493c4.js} +2 -2
- package/{context-bbbcf8c7.js.map → context-729493c4.js.map} +1 -1
- package/dist/index.css +55 -55
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +11 -11
- package/{index-7c8bbc47.js → index-04bd1a59.js} +1 -1
- package/{index-7c8bbc47.js.map → index-04bd1a59.js.map} +1 -1
- package/{index-4ff8441f.js → index-09847c0f.js} +1 -1
- package/{index-4ff8441f.js.map → index-09847c0f.js.map} +1 -1
- package/{index-6b269462.js → index-0f017704.js} +11 -11
- package/{index-6b269462.js.map → index-0f017704.js.map} +1 -1
- package/{index-26bafa8f.js → index-2d27aeef.js} +2 -2
- package/{index-26bafa8f.js.map → index-2d27aeef.js.map} +1 -1
- package/{index-f4577c1b.js → index-493689bd.js} +4 -4
- package/{index-f4577c1b.js.map → index-493689bd.js.map} +1 -1
- package/{index-bb6d2c32.js → index-494f9e79.js} +2 -2
- package/{index-bb6d2c32.js.map → index-494f9e79.js.map} +1 -1
- package/{index-446afac4.js → index-4b4e9682.js} +7 -7
- package/{index-446afac4.js.map → index-4b4e9682.js.map} +1 -1
- package/{index-aa3fb70f.js → index-62d5f020.js} +9 -9
- package/{index-aa3fb70f.js.map → index-62d5f020.js.map} +1 -1
- package/{index-e2e20fad.js → index-682a192c.js} +2 -2
- package/{index-e2e20fad.js.map → index-682a192c.js.map} +1 -1
- package/{index-8b8c7344.js → index-686a551d.js} +2 -2
- package/{index-8b8c7344.js.map → index-686a551d.js.map} +1 -1
- package/{index-d6c3b3a4.js → index-6b3b1eca.js} +5 -5
- package/{index-d6c3b3a4.js.map → index-6b3b1eca.js.map} +1 -1
- package/{index-a6cfd784.js → index-776554c0.js} +3 -3
- package/{index-a6cfd784.js.map → index-776554c0.js.map} +1 -1
- package/{index-72a8436a.js → index-92741c7e.js} +2 -2
- package/{index-72a8436a.js.map → index-92741c7e.js.map} +1 -1
- package/{index-02a91ddb.js → index-a0638563.js} +4 -4
- package/{index-02a91ddb.js.map → index-a0638563.js.map} +1 -1
- package/{index-e0e44e8a.js → index-c22e4772.js} +4 -4
- package/{index-e0e44e8a.js.map → index-c22e4772.js.map} +1 -1
- package/{index-a3b1c2f0.js → index-e04159fe.js} +3 -3
- package/{index-a3b1c2f0.js.map → index-e04159fe.js.map} +1 -1
- package/{index-de4364e8.js → index-e4277f9c.js} +1 -1
- package/{index-de4364e8.js.map → index-e4277f9c.js.map} +1 -1
- package/{index-c3d24a1e.js → index-f8a9cb51.js} +3 -3
- package/{index-c3d24a1e.js.map → index-f8a9cb51.js.map} +1 -1
- package/index.d.ts +1 -1
- package/index.js +56 -56
- package/package.json +1 -1
- package/{resolvedReplyType-1880de12.js → resolvedReplyType-fb987595.js} +1 -1
- package/{resolvedReplyType-1880de12.js.map → resolvedReplyType-fb987595.js.map} +1 -1
- package/sendbirdSelectors.js +1 -1
- package/{stringFormatterUtils-c5516210.js → stringFormatterUtils-abbe70ba.js} +3 -3
- package/{stringFormatterUtils-c5516210.js.map → stringFormatterUtils-abbe70ba.js.map} +1 -1
- package/{stringSet-82c00996.js → stringSet-6422c6b9.js} +1 -1
- package/{stringSet-82c00996.js.map → stringSet-6422c6b9.js.map} +1 -1
- package/{tokenize-d54187ef.js → tokenize-eae44765.js} +3 -3
- package/{tokenize-d54187ef.js.map → tokenize-eae44765.js.map} +1 -1
- package/{tslib.es6-353b1a8e.js → tslib.es6-c2fb729e.js} +1 -1
- package/{tslib.es6-353b1a8e.js.map → tslib.es6-c2fb729e.js.map} +1 -1
- package/{types-afb18a4f.js → types-781e0bab.js} +1 -1
- package/{types-afb18a4f.js.map → types-781e0bab.js.map} +1 -1
- package/{types-9a224810.js → types-9d43ac6e.js} +1 -1
- package/{types-9a224810.js.map → types-9d43ac6e.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 +6 -6
- package/ui/Button.js +5 -5
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +15 -15
- package/ui/FileMessageItemBody.js +7 -7
- package/ui/FileViewer.js +14 -14
- 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 +37 -37
- package/ui/MessageInput/hooks/usePaste.js +5 -5
- package/ui/MessageInput.js +16 -16
- package/ui/MessageItemMenu.js +19 -19
- package/ui/MessageItemReactionMenu.js +10 -10
- package/ui/MessageSearchFileItem.js +12 -12
- package/ui/MessageSearchItem.js +9 -9
- package/ui/MessageStatus.js +11 -11
- package/ui/Modal.js +10 -10
- package/ui/OGMessageItemBody.js +14 -14
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +17 -17
- package/ui/OpenchannelOGMessage.js +19 -19
- package/ui/OpenchannelThumbnailMessage.js +16 -16
- package/ui/OpenchannelUserMessage.js +17 -17
- package/ui/PlaceHolder.js +5 -5
- package/ui/PlaybackTime.js +2 -2
- package/ui/QuoteMessage.js +8 -8
- package/ui/QuoteMessageInput.js +8 -8
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +5 -5
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +14 -14
- package/ui/ThreadReplies.js +6 -6
- package/ui/ThumbnailMessageItemBody.js +8 -8
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +11 -11
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +12 -12
- package/ui/VoiceMessgeInput.js +8 -8
- package/ui/Word.js +11 -11
- package/{useHandleUploadFiles-cdb22bbb.js → useHandleUploadFiles-5ede1bfe.js} +11 -11
- package/{useHandleUploadFiles-cdb22bbb.js.map → useHandleUploadFiles-5ede1bfe.js.map} +1 -1
- package/{useLongPress-3c3dbc28.js → useLongPress-f8655a14.js} +3 -3
- package/{useLongPress-3c3dbc28.js.map → useLongPress-f8655a14.js.map} +1 -1
- package/{useSendMultipleFilesMessage-16db4948.js → useSendMultipleFilesMessage-b8256698.js} +3 -3
- package/{useSendMultipleFilesMessage-16db4948.js.map → useSendMultipleFilesMessage-b8256698.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/{useStatefulFileInfoList-1bf95209.js → useStatefulFileInfoList-5e68b93f.js} +4 -4
- package/{useStatefulFileInfoList-1bf95209.js.map → useStatefulFileInfoList-5e68b93f.js.map} +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/{utils-f00fcb05.js → utils-2c1f072b.js} +1 -1
- package/{utils-f00fcb05.js.map → utils-2c1f072b.js.map} +1 -1
- package/{utils-dc677a86.js → utils-6c50a6d1.js} +1 -1
- package/{utils-dc677a86.js.map → utils-6c50a6d1.js.map} +1 -1
- package/{utils-d5f10fce.js → utils-aa4086dc.js} +4 -4
- package/{utils-d5f10fce.js.map → utils-aa4086dc.js.map} +1 -1
- package/{utils-d15efa15.js → utils-bfc0ab3b.js} +3 -3
- package/{utils-d15efa15.js.map → utils-bfc0ab3b.js.map} +1 -1
- package/{utils-e3ab3759.js → utils-fa321757.js} +1 -1
- package/{utils-e3ab3759.js.map → utils-fa321757.js.map} +1 -1
- package/{utils-a5eff3c4.js → utils-fc1f5aa0.js} +2 -2
- package/{utils-a5eff3c4.js.map → utils-fc1f5aa0.js.map} +1 -1
- package/{uuid-a9b18b52.js → uuid-c15b8b3b.js} +1 -1
- package/{uuid-a9b18b52.js.map → uuid-c15b8b3b.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/_rollupPluginBabelHelpers-bb4003a4.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-b21be8d6.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useMemo, useState, useRef } from 'react';
|
|
2
2
|
import { useSendbirdStateContext } from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
4
|
-
import { g as getChannelTitle } from '../../utils-
|
|
3
|
+
import { u as useLocalization } from '../../LocalizationContext-287ee149.js';
|
|
4
|
+
import { g as getChannelTitle } from '../../utils-fc1f5aa0.js';
|
|
5
5
|
import { useThreadContext } from '../context.js';
|
|
6
6
|
import ParentMessageInfo from './ParentMessageInfo.js';
|
|
7
7
|
import ThreadHeader from './ThreadHeader.js';
|
|
@@ -9,46 +9,46 @@ import ThreadList from './ThreadList.js';
|
|
|
9
9
|
import ThreadMessageInput from './ThreadMessageInput.js';
|
|
10
10
|
import { ParentMessageStateTypes, ThreadListStateTypes } from '../context/types.js';
|
|
11
11
|
import PlaceHolder, { PlaceHolderTypes } from '../../ui/PlaceHolder.js';
|
|
12
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
13
|
-
import { z as isAboutSame } from '../../useSendMultipleFilesMessage-
|
|
12
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-92741c7e.js';
|
|
13
|
+
import { z as isAboutSame } from '../../useSendMultipleFilesMessage-b8256698.js';
|
|
14
14
|
import { MessageProvider } from '../../Message/context.js';
|
|
15
15
|
import '../../withSendbird.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
17
|
-
import '../../stringSet-
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../UserProfileContext-
|
|
16
|
+
import '../../tslib.es6-c2fb729e.js';
|
|
17
|
+
import '../../stringSet-6422c6b9.js';
|
|
18
|
+
import '../../index-e4277f9c.js';
|
|
19
|
+
import '../../UserProfileContext-2001a468.js';
|
|
20
20
|
import '@sendbird/chat';
|
|
21
21
|
import '../../pubSub/topics.js';
|
|
22
|
-
import '../../index-
|
|
22
|
+
import '../../index-776554c0.js';
|
|
23
23
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
24
|
-
import '../../index-
|
|
24
|
+
import '../../index-09847c0f.js';
|
|
25
25
|
import '@sendbird/chat/message';
|
|
26
26
|
import '@sendbird/chat/groupChannel';
|
|
27
|
-
import '../../uuid-
|
|
28
|
-
import '../../consts-
|
|
29
|
-
import '../../utils-
|
|
30
|
-
import '../../index-
|
|
31
|
-
import '../../_rollupPluginBabelHelpers-
|
|
32
|
-
import '../../RemoveMessageModal-
|
|
27
|
+
import '../../uuid-c15b8b3b.js';
|
|
28
|
+
import '../../consts-d9c5f25a.js';
|
|
29
|
+
import '../../utils-aa4086dc.js';
|
|
30
|
+
import '../../index-2d27aeef.js';
|
|
31
|
+
import '../../_rollupPluginBabelHelpers-e92eb032.js';
|
|
32
|
+
import '../../RemoveMessageModal-007c2f04.js';
|
|
33
33
|
import '../../ui/Modal.js';
|
|
34
34
|
import 'react-dom';
|
|
35
|
-
import '../../utils-
|
|
36
|
-
import '../../index-
|
|
37
|
-
import '../../MediaQueryContext-
|
|
35
|
+
import '../../utils-6c50a6d1.js';
|
|
36
|
+
import '../../index-04bd1a59.js';
|
|
37
|
+
import '../../MediaQueryContext-114ca049.js';
|
|
38
38
|
import '../../ui/IconButton.js';
|
|
39
39
|
import '../../ui/Button.js';
|
|
40
|
-
import '../../types-
|
|
40
|
+
import '../../types-9d43ac6e.js';
|
|
41
41
|
import 'prop-types';
|
|
42
42
|
import '../../ui/Icon.js';
|
|
43
|
-
import '../../stringFormatterUtils-
|
|
43
|
+
import '../../stringFormatterUtils-abbe70ba.js';
|
|
44
44
|
import './ParentMessageInfoItem.js';
|
|
45
45
|
import '../../ui/ImageRenderer.js';
|
|
46
46
|
import '../../ui/TextButton.js';
|
|
47
|
-
import '../../color-
|
|
47
|
+
import '../../color-57373b4c.js';
|
|
48
48
|
import '../../ui/EmojiReactions.js';
|
|
49
49
|
import '../../ui/ReactionBadge.js';
|
|
50
50
|
import '../../ui/ReactionButton.js';
|
|
51
|
-
import '../../useLongPress-
|
|
51
|
+
import '../../useLongPress-f8655a14.js';
|
|
52
52
|
import '../../ui/ContextMenu.js';
|
|
53
53
|
import '../../ui/SortByRow.js';
|
|
54
54
|
import '../../ui/BottomSheet.js';
|
|
@@ -63,48 +63,48 @@ import '../../ui/TooltipWrapper.js';
|
|
|
63
63
|
import '../../ui/VoiceMessageItemBody.js';
|
|
64
64
|
import '../../ui/ProgressBar.js';
|
|
65
65
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
66
|
-
import '../../index-
|
|
66
|
+
import '../../index-e04159fe.js';
|
|
67
67
|
import '../../VoiceRecorder/context.js';
|
|
68
68
|
import '../../ui/PlaybackTime.js';
|
|
69
69
|
import '../../ui/Loader.js';
|
|
70
|
-
import '../../index-
|
|
71
|
-
import '../../tokenize-
|
|
70
|
+
import '../../index-a0638563.js';
|
|
71
|
+
import '../../tokenize-eae44765.js';
|
|
72
72
|
import '../../ui/MentionLabel.js';
|
|
73
73
|
import '../../ui/LinkLabel.js';
|
|
74
|
-
import '../../useStatefulFileInfoList-
|
|
75
|
-
import '../../index-
|
|
76
|
-
import '../../ChannelProvider-
|
|
77
|
-
import '../../const-
|
|
78
|
-
import '../../compareIds-
|
|
79
|
-
import '../../resolvedReplyType-
|
|
74
|
+
import '../../useStatefulFileInfoList-5e68b93f.js';
|
|
75
|
+
import '../../index-0f017704.js';
|
|
76
|
+
import '../../ChannelProvider-9ba5893a.js';
|
|
77
|
+
import '../../const-73db0277.js';
|
|
78
|
+
import '../../compareIds-7e517404.js';
|
|
79
|
+
import '../../resolvedReplyType-fb987595.js';
|
|
80
80
|
import '../../Channel/components/SuggestedMentionList.js';
|
|
81
|
-
import '../../const-
|
|
81
|
+
import '../../const-93731a4c.js';
|
|
82
82
|
import '../../ui/MessageItemMenu.js';
|
|
83
|
-
import '../../types-
|
|
83
|
+
import '../../types-781e0bab.js';
|
|
84
84
|
import '../../ui/MessageItemReactionMenu.js';
|
|
85
85
|
import '../../ui/MessageInput.js';
|
|
86
|
-
import '../../index-
|
|
86
|
+
import '../../index-6b3b1eca.js';
|
|
87
87
|
import 'dompurify';
|
|
88
|
-
import '../../consts-
|
|
89
|
-
import '../../consts-
|
|
90
|
-
import '../../consts-
|
|
91
|
-
import '../../index-
|
|
88
|
+
import '../../consts-57c888b9.js';
|
|
89
|
+
import '../../consts-4ec7d640.js';
|
|
90
|
+
import '../../consts-be37687e.js';
|
|
91
|
+
import '../../index-c22e4772.js';
|
|
92
92
|
import '../../Message/hooks/useDirtyGetMentions.js';
|
|
93
93
|
import './ThreadListItem.js';
|
|
94
94
|
import '../../ui/DateSeparator.js';
|
|
95
|
-
import '../../index-
|
|
96
|
-
import '../../index-
|
|
97
|
-
import '../../index-
|
|
95
|
+
import '../../index-4b4e9682.js';
|
|
96
|
+
import '../../index-f8a9cb51.js';
|
|
97
|
+
import '../../index-682a192c.js';
|
|
98
98
|
import '../../ui/TextMessageItemBody.js';
|
|
99
99
|
import '../../ui/OGMessageItemBody.js';
|
|
100
100
|
import '../../ui/FileMessageItemBody.js';
|
|
101
101
|
import '../../ui/ThumbnailMessageItemBody.js';
|
|
102
|
-
import '../../utils-
|
|
102
|
+
import '../../utils-bfc0ab3b.js';
|
|
103
103
|
import '../../ui/UnknownMessageItemBody.js';
|
|
104
104
|
import 'date-fns';
|
|
105
|
-
import '../../useHandleUploadFiles-
|
|
105
|
+
import '../../useHandleUploadFiles-5ede1bfe.js';
|
|
106
106
|
import '../../VoiceRecorder/useVoiceRecorder.js';
|
|
107
|
-
import '../../index-
|
|
107
|
+
import '../../index-493689bd.js';
|
|
108
108
|
import '../../hooks/useModal.js';
|
|
109
109
|
|
|
110
110
|
var useMemorizedHeader = function (_a) {
|
package/Thread/context.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React__default, { useEffect, useCallback, useReducer, useMemo } from 'react';
|
|
2
|
-
import { v as compareIds, P as PublishingModuleType, w as scrollIntoLast, s as ON_FILE_INFO_UPLOADED, x as getParentMessageFrom, u as useSendMultipleFilesMessage, y as getNicknamesMapFromMembers } from '../useSendMultipleFilesMessage-
|
|
3
|
-
import { U as UserProfileProvider } from '../UserProfileContext-
|
|
2
|
+
import { v as compareIds, P as PublishingModuleType, w as scrollIntoLast, s as ON_FILE_INFO_UPLOADED, x as getParentMessageFrom, u as useSendMultipleFilesMessage, y as getNicknamesMapFromMembers } from '../useSendMultipleFilesMessage-b8256698.js';
|
|
3
|
+
import { U as UserProfileProvider } from '../UserProfileContext-2001a468.js';
|
|
4
4
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
5
|
-
import { _ as __assign, c as __spreadArray, a as __awaiter, b as __generator } from '../tslib.es6-
|
|
5
|
+
import { _ as __assign, c as __spreadArray, a as __awaiter, b as __generator } from '../tslib.es6-c2fb729e.js';
|
|
6
6
|
import { ChannelStateTypes, ThreadListStateTypes, ParentMessageStateTypes } from './context/types.js';
|
|
7
7
|
import { ChannelType } from '@sendbird/chat';
|
|
8
8
|
import { PUBSUB_TOPICS } from '../pubSub/topics.js';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-776554c0.js';
|
|
10
10
|
import { SendingStatus, MessageType, MessageMetaArray } from '@sendbird/chat/message';
|
|
11
11
|
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
12
|
-
import { u as uuidv4 } from '../uuid-
|
|
13
|
-
import { c as VOICE_MESSAGE_FILE_NAME, d as VOICE_MESSAGE_MIME_TYPE, M as META_ARRAY_VOICE_DURATION_KEY, e as META_ARRAY_MESSAGE_TYPE_KEY, f as META_ARRAY_MESSAGE_TYPE_VALUE__VOICE } from '../consts-
|
|
14
|
-
import '../utils-
|
|
15
|
-
import '../index-
|
|
16
|
-
import '../index-
|
|
12
|
+
import { u as uuidv4 } from '../uuid-c15b8b3b.js';
|
|
13
|
+
import { c as VOICE_MESSAGE_FILE_NAME, d as VOICE_MESSAGE_MIME_TYPE, M as META_ARRAY_VOICE_DURATION_KEY, e as META_ARRAY_MESSAGE_TYPE_KEY, f as META_ARRAY_MESSAGE_TYPE_VALUE__VOICE } from '../consts-d9c5f25a.js';
|
|
14
|
+
import '../utils-aa4086dc.js';
|
|
15
|
+
import '../index-2d27aeef.js';
|
|
16
|
+
import '../index-e4277f9c.js';
|
|
17
17
|
import '../utils/message/getOutgoingMessageState.js';
|
|
18
18
|
import '../withSendbird.js';
|
|
19
|
-
import '../index-
|
|
19
|
+
import '../index-09847c0f.js';
|
|
20
20
|
|
|
21
21
|
var PREV_THREADS_FETCH_SIZE = 30;
|
|
22
22
|
var NEXT_THREADS_FETCH_SIZE = 30;
|
package/Thread.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { ThreadProvider } from './Thread/context.js';
|
|
3
3
|
import ThreadUI from './Thread/components/ThreadUI.js';
|
|
4
|
-
import './useSendMultipleFilesMessage-
|
|
4
|
+
import './useSendMultipleFilesMessage-b8256698.js';
|
|
5
5
|
import './pubSub/topics.js';
|
|
6
|
-
import './utils-
|
|
7
|
-
import './tslib.es6-
|
|
8
|
-
import './index-
|
|
9
|
-
import './index-
|
|
10
|
-
import './index-
|
|
6
|
+
import './utils-aa4086dc.js';
|
|
7
|
+
import './tslib.es6-c2fb729e.js';
|
|
8
|
+
import './index-2d27aeef.js';
|
|
9
|
+
import './index-e4277f9c.js';
|
|
10
|
+
import './index-776554c0.js';
|
|
11
11
|
import './utils/message/getOutgoingMessageState.js';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-09847c0f.js';
|
|
13
13
|
import '@sendbird/chat/message';
|
|
14
|
-
import './UserProfileContext-
|
|
14
|
+
import './UserProfileContext-2001a468.js';
|
|
15
15
|
import './useSendbirdStateContext.js';
|
|
16
16
|
import './withSendbird.js';
|
|
17
17
|
import './Thread/context/types.js';
|
|
18
18
|
import '@sendbird/chat';
|
|
19
19
|
import '@sendbird/chat/groupChannel';
|
|
20
|
-
import './uuid-
|
|
21
|
-
import './consts-
|
|
22
|
-
import './LocalizationContext-
|
|
23
|
-
import './stringSet-
|
|
24
|
-
import './utils-
|
|
25
|
-
import './index-
|
|
20
|
+
import './uuid-c15b8b3b.js';
|
|
21
|
+
import './consts-d9c5f25a.js';
|
|
22
|
+
import './LocalizationContext-287ee149.js';
|
|
23
|
+
import './stringSet-6422c6b9.js';
|
|
24
|
+
import './utils-fc1f5aa0.js';
|
|
25
|
+
import './index-92741c7e.js';
|
|
26
26
|
import 'prop-types';
|
|
27
27
|
import './Thread/components/ParentMessageInfo.js';
|
|
28
|
-
import './_rollupPluginBabelHelpers-
|
|
29
|
-
import './RemoveMessageModal-
|
|
28
|
+
import './_rollupPluginBabelHelpers-e92eb032.js';
|
|
29
|
+
import './RemoveMessageModal-007c2f04.js';
|
|
30
30
|
import './ui/Modal.js';
|
|
31
31
|
import 'react-dom';
|
|
32
|
-
import './utils-
|
|
33
|
-
import './index-
|
|
34
|
-
import './MediaQueryContext-
|
|
32
|
+
import './utils-6c50a6d1.js';
|
|
33
|
+
import './index-04bd1a59.js';
|
|
34
|
+
import './MediaQueryContext-114ca049.js';
|
|
35
35
|
import './ui/IconButton.js';
|
|
36
36
|
import './ui/Button.js';
|
|
37
|
-
import './types-
|
|
37
|
+
import './types-9d43ac6e.js';
|
|
38
38
|
import './ui/Icon.js';
|
|
39
|
-
import './stringFormatterUtils-
|
|
39
|
+
import './stringFormatterUtils-abbe70ba.js';
|
|
40
40
|
import './Thread/components/ParentMessageInfoItem.js';
|
|
41
41
|
import './ui/ImageRenderer.js';
|
|
42
42
|
import './ui/TextButton.js';
|
|
43
|
-
import './color-
|
|
43
|
+
import './color-57373b4c.js';
|
|
44
44
|
import './ui/EmojiReactions.js';
|
|
45
45
|
import './ui/ReactionBadge.js';
|
|
46
46
|
import './ui/ReactionButton.js';
|
|
47
|
-
import './useLongPress-
|
|
47
|
+
import './useLongPress-f8655a14.js';
|
|
48
48
|
import './ui/ContextMenu.js';
|
|
49
49
|
import './ui/SortByRow.js';
|
|
50
50
|
import './ui/BottomSheet.js';
|
|
@@ -60,51 +60,51 @@ import './Message/context.js';
|
|
|
60
60
|
import './ui/VoiceMessageItemBody.js';
|
|
61
61
|
import './ui/ProgressBar.js';
|
|
62
62
|
import './VoicePlayer/useVoicePlayer.js';
|
|
63
|
-
import './index-
|
|
63
|
+
import './index-e04159fe.js';
|
|
64
64
|
import './VoiceRecorder/context.js';
|
|
65
65
|
import './ui/PlaybackTime.js';
|
|
66
66
|
import './ui/Loader.js';
|
|
67
|
-
import './index-
|
|
68
|
-
import './tokenize-
|
|
67
|
+
import './index-a0638563.js';
|
|
68
|
+
import './tokenize-eae44765.js';
|
|
69
69
|
import './ui/MentionLabel.js';
|
|
70
70
|
import './ui/LinkLabel.js';
|
|
71
|
-
import './useStatefulFileInfoList-
|
|
72
|
-
import './index-
|
|
73
|
-
import './ChannelProvider-
|
|
74
|
-
import './const-
|
|
75
|
-
import './compareIds-
|
|
76
|
-
import './resolvedReplyType-
|
|
71
|
+
import './useStatefulFileInfoList-5e68b93f.js';
|
|
72
|
+
import './index-0f017704.js';
|
|
73
|
+
import './ChannelProvider-9ba5893a.js';
|
|
74
|
+
import './const-73db0277.js';
|
|
75
|
+
import './compareIds-7e517404.js';
|
|
76
|
+
import './resolvedReplyType-fb987595.js';
|
|
77
77
|
import './Channel/components/SuggestedMentionList.js';
|
|
78
|
-
import './const-
|
|
78
|
+
import './const-93731a4c.js';
|
|
79
79
|
import './ui/MessageItemMenu.js';
|
|
80
|
-
import './types-
|
|
80
|
+
import './types-781e0bab.js';
|
|
81
81
|
import './ui/MessageItemReactionMenu.js';
|
|
82
82
|
import './ui/MessageInput.js';
|
|
83
|
-
import './index-
|
|
83
|
+
import './index-6b3b1eca.js';
|
|
84
84
|
import 'dompurify';
|
|
85
|
-
import './consts-
|
|
86
|
-
import './consts-
|
|
87
|
-
import './consts-
|
|
88
|
-
import './index-
|
|
85
|
+
import './consts-57c888b9.js';
|
|
86
|
+
import './consts-4ec7d640.js';
|
|
87
|
+
import './consts-be37687e.js';
|
|
88
|
+
import './index-c22e4772.js';
|
|
89
89
|
import './Message/hooks/useDirtyGetMentions.js';
|
|
90
90
|
import './Thread/components/ThreadHeader.js';
|
|
91
91
|
import './Thread/components/ThreadList.js';
|
|
92
92
|
import './Thread/components/ThreadListItem.js';
|
|
93
93
|
import './ui/DateSeparator.js';
|
|
94
|
-
import './index-
|
|
95
|
-
import './index-
|
|
96
|
-
import './index-
|
|
94
|
+
import './index-4b4e9682.js';
|
|
95
|
+
import './index-f8a9cb51.js';
|
|
96
|
+
import './index-682a192c.js';
|
|
97
97
|
import './ui/TextMessageItemBody.js';
|
|
98
98
|
import './ui/OGMessageItemBody.js';
|
|
99
99
|
import './ui/FileMessageItemBody.js';
|
|
100
100
|
import './ui/ThumbnailMessageItemBody.js';
|
|
101
|
-
import './utils-
|
|
101
|
+
import './utils-bfc0ab3b.js';
|
|
102
102
|
import './ui/UnknownMessageItemBody.js';
|
|
103
103
|
import 'date-fns';
|
|
104
104
|
import './Thread/components/ThreadMessageInput.js';
|
|
105
|
-
import './useHandleUploadFiles-
|
|
105
|
+
import './useHandleUploadFiles-5ede1bfe.js';
|
|
106
106
|
import './VoiceRecorder/useVoiceRecorder.js';
|
|
107
|
-
import './index-
|
|
107
|
+
import './index-493689bd.js';
|
|
108
108
|
import './hooks/useModal.js';
|
|
109
109
|
import './ui/PlaceHolder.js';
|
|
110
110
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileContext-
|
|
1
|
+
{"version":3,"file":"UserProfileContext-2001a468.js","sources":["../src/lib/UserProfileContext.tsx"],"sourcesContent":["import React from 'react';\nimport type { GroupChannel } from '@sendbird/chat/groupChannel';\nimport type { RenderUserProfileProps } from '../types';\n\ninterface UserProfileContextInterface {\n disableUserProfile: boolean;\n isOpenChannel: boolean;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n onUserProfileMessage?: (channel: GroupChannel) => void;\n}\n\n/**\n * user profile goes deep inside the component tree\n * use this context as a short circuit to send in values\n */\nconst UserProfileContext = React.createContext<UserProfileContextInterface>({\n disableUserProfile: true,\n isOpenChannel: false,\n renderUserProfile: null,\n onUserProfileMessage: null,\n});\n\ntype UserProfileProviderProps = React.PropsWithChildren<{\n disableUserProfile?: boolean;\n isOpenChannel?: boolean;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n onUserProfileMessage?: (channel: GroupChannel) => void;\n}>;\n\nconst UserProfileProvider = ({\n isOpenChannel = false,\n disableUserProfile = false,\n renderUserProfile = null,\n onUserProfileMessage = null,\n children,\n}: UserProfileProviderProps) => {\n return (\n <UserProfileContext.Provider\n value={{\n isOpenChannel,\n disableUserProfile,\n renderUserProfile,\n onUserProfileMessage,\n }}\n >\n {children}\n </UserProfileContext.Provider>\n );\n};\n\nexport { UserProfileContext, UserProfileProvider };\n"],"names":["UserProfileContext","React","createContext","disableUserProfile","isOpenChannel","renderUserProfile","onUserProfileMessage","UserProfileProvider","_a","_b","_c","_d","_e","children","createElement","Provider","value"],"mappings":";;AAWA;;;AAGG;AACH,IAAMA,kBAAkB,gBAAGC,cAAK,CAACC,aAAa,CAA8B;AAC1EC,EAAAA,kBAAkB,EAAE,IAAI;AACxBC,EAAAA,aAAa,EAAE,KAAK;AACpBC,EAAAA,iBAAiB,EAAE,IAAI;AACvBC,EAAAA,oBAAoB,EAAE,IAAA;AACvB,CAAA,EAAC;AASF,IAAMC,mBAAmB,GAAG,UAACC,EAMF,EAAA;AALzB,EAAA,IAAAC,EAAA,GAAAD,EAAA,CAAAJ,aAAqB;IAArBA,aAAa,GAAGK,EAAA,KAAA,KAAA,CAAA,GAAA,KAAK,GAAAA,EAAA;IACrBC,EAA0B,GAAAF,EAAA,CAAAL,kBAAA;IAA1BA,kBAAkB,GAAAO,EAAA,KAAA,KAAA,CAAA,GAAG,KAAK,GAAAA,EAAA;IAC1BC,EAAA,GAAAH,EAAA,CAAAH,iBAAwB;IAAxBA,iBAAiB,GAAGM,EAAA,KAAA,KAAA,CAAA,GAAA,IAAI,GAAAA,EAAA;IACxBC,EAA2B,GAAAJ,EAAA,CAAAF,oBAAA;IAA3BA,oBAAoB,GAAAM,EAAA,KAAA,KAAA,CAAA,GAAG,IAAI,GAAAA,EAAA;IAC3BC,QAAQ,GAAAL,EAAA,CAAAK,QAAA,CAAA;AAER,EAAA,oBACEZ,cAAA,CAAAa,aAAA,CAACd,kBAAkB,CAACe,QAAQ,EAAA;AAC1BC,IAAAA,KAAK,EAAE;AACLZ,MAAAA,aAAa,EAAAA,aAAA;AACbD,MAAAA,kBAAkB,EAAAA,kBAAA;AAClBE,MAAAA,iBAAiB,EAAAA,iBAAA;AACjBC,MAAAA,oBAAoB,EAAAA,oBAAAA;AACrB,KAAA;AAAC,GAAA,EAEDO,QAC0B,CAAC,CAAA;AAElC;;;;"}
|
package/VoicePlayer/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { A as ALL, V as VoicePlayerProvider, u as useVoicePlayerContext } from '../index-
|
|
3
|
-
import '../consts-
|
|
2
|
+
export { A as ALL, V as VoicePlayerProvider, u as useVoicePlayerContext } from '../index-e04159fe.js';
|
|
3
|
+
import '../consts-d9c5f25a.js';
|
|
4
4
|
import '../useSendbirdStateContext.js';
|
|
5
|
-
import '../tslib.es6-
|
|
5
|
+
import '../tslib.es6-c2fb729e.js';
|
|
6
6
|
import '../withSendbird.js';
|
|
7
7
|
//# sourceMappingURL=context.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import { u as useVoicePlayerContext, b as AudioUnitDefaultValue } from '../index-
|
|
3
|
-
import { h as VOICE_PLAYER_AUDIO_ID } from '../consts-
|
|
2
|
+
import { u as useVoicePlayerContext, b as AudioUnitDefaultValue } from '../index-e04159fe.js';
|
|
3
|
+
import { h as VOICE_PLAYER_AUDIO_ID } from '../consts-d9c5f25a.js';
|
|
4
4
|
import { useVoiceRecorderContext } from '../VoiceRecorder/context.js';
|
|
5
|
-
import '../tslib.es6-
|
|
5
|
+
import '../tslib.es6-c2fb729e.js';
|
|
6
6
|
import '../useSendbirdStateContext.js';
|
|
7
7
|
import '../withSendbird.js';
|
|
8
|
-
import '../LocalizationContext-
|
|
9
|
-
import '../stringSet-
|
|
10
|
-
import '../index-
|
|
8
|
+
import '../LocalizationContext-287ee149.js';
|
|
9
|
+
import '../stringSet-6422c6b9.js';
|
|
10
|
+
import '../index-e4277f9c.js';
|
|
11
11
|
import '../ui/Modal.js';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import '../utils-
|
|
14
|
-
import '../index-
|
|
15
|
-
import '../index-
|
|
16
|
-
import '../MediaQueryContext-
|
|
13
|
+
import '../utils-6c50a6d1.js';
|
|
14
|
+
import '../index-09847c0f.js';
|
|
15
|
+
import '../index-04bd1a59.js';
|
|
16
|
+
import '../MediaQueryContext-114ca049.js';
|
|
17
17
|
import '../ui/IconButton.js';
|
|
18
18
|
import '../ui/Button.js';
|
|
19
|
-
import '../index-
|
|
19
|
+
import '../index-92741c7e.js';
|
|
20
20
|
import 'prop-types';
|
|
21
|
-
import '../types-
|
|
21
|
+
import '../types-9d43ac6e.js';
|
|
22
22
|
import '../ui/Icon.js';
|
|
23
23
|
|
|
24
24
|
var generateGroupKey = function (channelUrl, key) {
|
package/VoiceRecorder/context.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useCallback, useContext, createContext } from 'react';
|
|
2
|
-
import { u as useLocalization } from '../LocalizationContext-
|
|
2
|
+
import { u as useLocalization } from '../LocalizationContext-287ee149.js';
|
|
3
3
|
import { Modal } from '../ui/Modal.js';
|
|
4
|
-
import { B as BROWSER_SUPPORT_MIME_TYPE_LIST, i as VOICE_RECORDER_AUDIO_BIT_RATE, c as VOICE_MESSAGE_FILE_NAME, d as VOICE_MESSAGE_MIME_TYPE } from '../consts-
|
|
4
|
+
import { B as BROWSER_SUPPORT_MIME_TYPE_LIST, i as VOICE_RECORDER_AUDIO_BIT_RATE, c as VOICE_MESSAGE_FILE_NAME, d as VOICE_MESSAGE_MIME_TYPE } from '../consts-d9c5f25a.js';
|
|
5
5
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
6
|
-
import '../stringSet-
|
|
7
|
-
import '../index-
|
|
6
|
+
import '../stringSet-6422c6b9.js';
|
|
7
|
+
import '../index-e4277f9c.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import '../utils-
|
|
10
|
-
import '../tslib.es6-
|
|
11
|
-
import '../index-
|
|
12
|
-
import '../index-
|
|
13
|
-
import '../MediaQueryContext-
|
|
9
|
+
import '../utils-6c50a6d1.js';
|
|
10
|
+
import '../tslib.es6-c2fb729e.js';
|
|
11
|
+
import '../index-09847c0f.js';
|
|
12
|
+
import '../index-04bd1a59.js';
|
|
13
|
+
import '../MediaQueryContext-114ca049.js';
|
|
14
14
|
import '../ui/IconButton.js';
|
|
15
15
|
import '../ui/Button.js';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-92741c7e.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import '../types-
|
|
18
|
+
import '../types-9d43ac6e.js';
|
|
19
19
|
import '../ui/Icon.js';
|
|
20
20
|
import '../withSendbird.js';
|
|
21
21
|
|
|
@@ -72,7 +72,7 @@ var VoiceRecorderProvider = function (props) {
|
|
|
72
72
|
setWebAudioUtils = _e[1];
|
|
73
73
|
useEffect(function () {
|
|
74
74
|
if (isVoiceMessageEnabled && !webAudioUtils) {
|
|
75
|
-
import('../WebAudioUtils-
|
|
75
|
+
import('../WebAudioUtils-31f7c8eb.js').then(function (data) {
|
|
76
76
|
setWebAudioUtils(data);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from 'react';
|
|
2
2
|
import { useVoiceRecorderContext } from './context.js';
|
|
3
3
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
4
|
-
import '../LocalizationContext-
|
|
5
|
-
import '../stringSet-
|
|
6
|
-
import '../index-
|
|
4
|
+
import '../LocalizationContext-287ee149.js';
|
|
5
|
+
import '../stringSet-6422c6b9.js';
|
|
6
|
+
import '../index-e4277f9c.js';
|
|
7
7
|
import '../ui/Modal.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import '../utils-
|
|
10
|
-
import '../tslib.es6-
|
|
11
|
-
import '../index-
|
|
12
|
-
import '../index-
|
|
13
|
-
import '../MediaQueryContext-
|
|
9
|
+
import '../utils-6c50a6d1.js';
|
|
10
|
+
import '../tslib.es6-c2fb729e.js';
|
|
11
|
+
import '../index-09847c0f.js';
|
|
12
|
+
import '../index-04bd1a59.js';
|
|
13
|
+
import '../MediaQueryContext-114ca049.js';
|
|
14
14
|
import '../ui/IconButton.js';
|
|
15
15
|
import '../ui/Button.js';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-92741c7e.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import '../types-
|
|
18
|
+
import '../types-9d43ac6e.js';
|
|
19
19
|
import '../ui/Icon.js';
|
|
20
|
-
import '../consts-
|
|
20
|
+
import '../consts-d9c5f25a.js';
|
|
21
21
|
import '../withSendbird.js';
|
|
22
22
|
|
|
23
23
|
// export interface UseVoiceRecorderProps extends VoiceRecorderEventHandler {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as VOICE_RECORDER_AUDIO_SAMPLE_RATE } from './consts-
|
|
1
|
+
import { l as VOICE_RECORDER_AUDIO_SAMPLE_RATE } from './consts-d9c5f25a.js';
|
|
2
2
|
import { WavHeader as $dd7ee3788d91dcb8$export$cb948f2d6837f136, Mp3Encoder as $dd7ee3788d91dcb8$export$9ca5d136ebf61cf2 } from './lame.all.js';
|
|
3
3
|
|
|
4
4
|
// Thanks to https://codesandbox.io/s/media-recorder-api-downsampling-16k-mp3-encode-using-lame-js-forked-n1pblw
|
|
@@ -123,4 +123,4 @@ function bufferToWav(abuffer, len) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
export { downsampleToWav, encodeMp3 };
|
|
126
|
-
//# sourceMappingURL=WebAudioUtils-
|
|
126
|
+
//# sourceMappingURL=WebAudioUtils-31f7c8eb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebAudioUtils-10cc2346.js","sources":["../src/hooks/VoiceRecorder/WebAudioUtils.ts"],"sourcesContent":["// Thanks to https://codesandbox.io/s/media-recorder-api-downsampling-16k-mp3-encode-using-lame-js-forked-n1pblw\nimport { VOICE_RECORDER_AUDIO_SAMPLE_RATE } from '../../utils/consts';\nimport { WavHeader, Mp3Encoder } from '../../_externals/lamejs/lame.all';\n\nfunction encodeMp3(arrayBuffer: ArrayBuffer): WavHeader {\n const wav = WavHeader.readHeader(new DataView(arrayBuffer));\n const dataView = new Int16Array(arrayBuffer, wav.dataOffset, wav.dataLen / 2);\n const mp3Encoder = new Mp3Encoder(wav.channels, wav.sampleRate, 128);\n const maxSamples = 1152;\n\n const samplesLeft = (wav.channels === 1) ? dataView : new Int16Array(wav.dataLen / (2 * wav.channels));\n const samplesRight = (wav.channels === 2) ? new Int16Array(wav.dataLen / (2 * wav.channels)) : undefined;\n\n if (wav.channels > 1) {\n for (let j = 0; j < samplesLeft.length; j++) {\n samplesLeft[j] = dataView[j * 2];\n samplesRight[j] = dataView[j * 2 + 1];\n }\n }\n\n const dataBuffer = [];\n let remaining = samplesLeft.length;\n for (let i = 0; remaining >= maxSamples; i += maxSamples) {\n const left = samplesLeft.subarray(i, i + maxSamples);\n let right;\n if (samplesRight) {\n right = samplesRight.subarray(i, i + maxSamples);\n }\n const mp3buf = mp3Encoder.encodeBuffer(left, right);\n dataBuffer.push(new Int8Array(mp3buf));\n remaining -= maxSamples;\n }\n\n const mp3Lastbuf = mp3Encoder.flush();\n dataBuffer.push(new Int8Array(mp3Lastbuf));\n return dataBuffer;\n}\n\n// Convert audioFile to arrayBuffer, because Mp3Encoder requires a parameter of ArrayBuffer type\nfunction downsampleToWav(file: File, callback: (buffer: ArrayBuffer) => void): void {\n // Browser compatibility\n // https://caniuse.com/?search=AudioContext\n const audioCtx = new AudioContext({ sampleRate: VOICE_RECORDER_AUDIO_SAMPLE_RATE });\n const fileReader = new FileReader();\n fileReader.onload = function (ev) {\n // Decode audio\n audioCtx.decodeAudioData(ev.target.result as ArrayBuffer, (buffer) => {\n // this is where you down sample the audio, usually is 44100 samples per second\n const usingWebkit = !window.OfflineAudioContext;\n const offlineAudioCtx = new OfflineAudioContext(1, 16000 * buffer.duration, 16000);\n\n const soundSource = offlineAudioCtx.createBufferSource();\n soundSource.buffer = buffer;\n soundSource.connect(offlineAudioCtx.destination);\n\n const reader = new FileReader();\n reader.onload = function () {\n const renderCompleteHandler = (evt): void => {\n const renderedBuffer = usingWebkit ? evt.renderedBuffer : evt;\n const buffer = bufferToWav(renderedBuffer, renderedBuffer.length);\n if (callback) {\n callback(buffer);\n }\n };\n if (usingWebkit) {\n offlineAudioCtx.oncomplete = renderCompleteHandler;\n offlineAudioCtx.startRendering();\n } else {\n offlineAudioCtx\n .startRendering()\n .then(renderCompleteHandler)\n // eslint-disable-next-line no-console\n .catch((err) => console.warn(err));\n }\n };\n reader.readAsArrayBuffer(file);\n soundSource.start(0);\n });\n };\n fileReader.readAsArrayBuffer(file);\n}\n\nfunction bufferToWav(abuffer, len) {\n const numOfChan = abuffer.numberOfChannels;\n const length = len * numOfChan * 2 + 44;\n const buffer = new ArrayBuffer(length);\n const view = new DataView(buffer);\n const channels = [];\n let i = 0;\n let sample;\n let offset = 0;\n let pos = 0;\n\n // write WAVE header\n setUint32(0x46464952); // \"RIFF\"\n setUint32(length - 8); // file length - 8\n setUint32(0x45564157); // \"WAVE\"\n setUint32(0x20746d66); // \"fmt \" chunk\n setUint32(16); // length = 16\n setUint16(1); // PCM (uncompressed)\n setUint16(numOfChan);\n setUint32(abuffer.sampleRate);\n setUint32(abuffer.sampleRate * 2 * numOfChan); // avg. bytes/sec\n setUint16(numOfChan * 2); // block-align\n setUint16(16); // 16-bit (hardcoded in this demo)\n setUint32(0x61746164); // \"data\" - chunk\n setUint32(length - pos - 4); // chunk length\n // write interleaved data\n for (i = 0; i < abuffer.numberOfChannels; i++)\n channels.push(abuffer.getChannelData(i));\n\n while (pos < length) {\n for (i = 0; i < numOfChan; i++) {\n // interleave channels\n sample = Math.max(-1, Math.min(1, channels[i][offset])); // clamp\n sample = (0.5 + sample < 0 ? sample * 32768 : sample * 32767) | 0; // scale to 16-bit signed int\n view.setInt16(pos, sample, true); // write 16-bit sample\n pos += 2;\n }\n offset++; // next source sample\n }\n\n return buffer;\n\n function setUint16(data) {\n view.setUint16(pos, data, true);\n pos += 2;\n }\n\n function setUint32(data) {\n view.setUint32(pos, data, true);\n pos += 4;\n }\n}\n\nexport { downsampleToWav, encodeMp3 };\n"],"names":["encodeMp3","arrayBuffer","wav","WavHeader","readHeader","DataView","dataView","Int16Array","dataOffset","dataLen","mp3Encoder","Mp3Encoder","channels","sampleRate","maxSamples","samplesLeft","samplesRight","undefined","j","length","dataBuffer","remaining","i","left","subarray","right","mp3buf","encodeBuffer","push","Int8Array","mp3Lastbuf","flush","downsampleToWav","file","callback","audioCtx","AudioContext","VOICE_RECORDER_AUDIO_SAMPLE_RATE","fileReader","FileReader","onload","ev","decodeAudioData","target","result","buffer","usingWebkit","window","OfflineAudioContext","offlineAudioCtx","duration","soundSource","createBufferSource","connect","destination","reader","renderCompleteHandler","evt","renderedBuffer","bufferToWav","oncomplete","startRendering","then","catch","err","console","warn","readAsArrayBuffer","start","abuffer","len","numOfChan","numberOfChannels","ArrayBuffer","view","sample","offset","pos","setUint32","setUint16","getChannelData","Math","max","min","setInt16","data"],"mappings":";;;AAAA;AAIA,SAASA,SAASA,CAACC,WAAwB,EAAA;EACzC,IAAMC,GAAG,GAAGC,yCAAS,CAACC,UAAU,CAAC,IAAIC,QAAQ,CAACJ,WAAW,CAAC,CAAC,CAAA;AAC3D,EAAA,IAAMK,QAAQ,GAAG,IAAIC,UAAU,CAACN,WAAW,EAAEC,GAAG,CAACM,UAAU,EAAEN,GAAG,CAACO,OAAO,GAAG,CAAC,CAAC,CAAA;AAC7E,EAAA,IAAMC,UAAU,GAAG,IAAIC,yCAAU,CAACT,GAAG,CAACU,QAAQ,EAAEV,GAAG,CAACW,UAAU,EAAE,GAAG,CAAC,CAAA;EACpE,IAAMC,UAAU,GAAG,IAAI,CAAA;EAEvB,IAAMC,WAAW,GAAIb,GAAG,CAACU,QAAQ,KAAK,CAAC,GAAIN,QAAQ,GAAG,IAAIC,UAAU,CAACL,GAAG,CAACO,OAAO,IAAI,CAAC,GAAGP,GAAG,CAACU,QAAQ,CAAC,CAAC,CAAA;EACtG,IAAMI,YAAY,GAAId,GAAG,CAACU,QAAQ,KAAK,CAAC,GAAI,IAAIL,UAAU,CAACL,GAAG,CAACO,OAAO,IAAI,CAAC,GAAGP,GAAG,CAACU,QAAQ,CAAC,CAAC,GAAGK,SAAS,CAAA;AAExG,EAAA,IAAIf,GAAG,CAACU,QAAQ,GAAG,CAAC,EAAE;AACpB,IAAA,KAAK,IAAIM,CAA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AA;IACrBX,IAAI,CAACK,SAAS,CAACF,GAAG,EAAEQ,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/BR,IAAAA,GAAG,IAAI,CAAC,CAAA;AACV,GAAA;EAEA,SAASC,SAASA,CAACO,IAAI,EAAA;IACrBX,IAAI,CAACI,SAAS,CAACD,GAAG,EAAEQ,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/BR,IAAAA,GAAG,IAAI,CAAC,CAAA;AACV,GAAA;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"WebAudioUtils-31f7c8eb.js","sources":["../src/hooks/VoiceRecorder/WebAudioUtils.ts"],"sourcesContent":["// Thanks to https://codesandbox.io/s/media-recorder-api-downsampling-16k-mp3-encode-using-lame-js-forked-n1pblw\nimport { VOICE_RECORDER_AUDIO_SAMPLE_RATE } from '../../utils/consts';\nimport { WavHeader, Mp3Encoder } from '../../_externals/lamejs/lame.all';\n\nfunction encodeMp3(arrayBuffer: ArrayBuffer): WavHeader {\n const wav = WavHeader.readHeader(new DataView(arrayBuffer));\n const dataView = new Int16Array(arrayBuffer, wav.dataOffset, wav.dataLen / 2);\n const mp3Encoder = new Mp3Encoder(wav.channels, wav.sampleRate, 128);\n const maxSamples = 1152;\n\n const samplesLeft = (wav.channels === 1) ? dataView : new Int16Array(wav.dataLen / (2 * wav.channels));\n const samplesRight = (wav.channels === 2) ? new Int16Array(wav.dataLen / (2 * wav.channels)) : undefined;\n\n if (wav.channels > 1) {\n for (let j = 0; j < samplesLeft.length; j++) {\n samplesLeft[j] = dataView[j * 2];\n samplesRight[j] = dataView[j * 2 + 1];\n }\n }\n\n const dataBuffer = [];\n let remaining = samplesLeft.length;\n for (let i = 0; remaining >= maxSamples; i += maxSamples) {\n const left = samplesLeft.subarray(i, i + maxSamples);\n let right;\n if (samplesRight) {\n right = samplesRight.subarray(i, i + maxSamples);\n }\n const mp3buf = mp3Encoder.encodeBuffer(left, right);\n dataBuffer.push(new Int8Array(mp3buf));\n remaining -= maxSamples;\n }\n\n const mp3Lastbuf = mp3Encoder.flush();\n dataBuffer.push(new Int8Array(mp3Lastbuf));\n return dataBuffer;\n}\n\n// Convert audioFile to arrayBuffer, because Mp3Encoder requires a parameter of ArrayBuffer type\nfunction downsampleToWav(file: File, callback: (buffer: ArrayBuffer) => void): void {\n // Browser compatibility\n // https://caniuse.com/?search=AudioContext\n const audioCtx = new AudioContext({ sampleRate: VOICE_RECORDER_AUDIO_SAMPLE_RATE });\n const fileReader = new FileReader();\n fileReader.onload = function (ev) {\n // Decode audio\n audioCtx.decodeAudioData(ev.target.result as ArrayBuffer, (buffer) => {\n // this is where you down sample the audio, usually is 44100 samples per second\n const usingWebkit = !window.OfflineAudioContext;\n const offlineAudioCtx = new OfflineAudioContext(1, 16000 * buffer.duration, 16000);\n\n const soundSource = offlineAudioCtx.createBufferSource();\n soundSource.buffer = buffer;\n soundSource.connect(offlineAudioCtx.destination);\n\n const reader = new FileReader();\n reader.onload = function () {\n const renderCompleteHandler = (evt): void => {\n const renderedBuffer = usingWebkit ? evt.renderedBuffer : evt;\n const buffer = bufferToWav(renderedBuffer, renderedBuffer.length);\n if (callback) {\n callback(buffer);\n }\n };\n if (usingWebkit) {\n offlineAudioCtx.oncomplete = renderCompleteHandler;\n offlineAudioCtx.startRendering();\n } else {\n offlineAudioCtx\n .startRendering()\n .then(renderCompleteHandler)\n // eslint-disable-next-line no-console\n .catch((err) => console.warn(err));\n }\n };\n reader.readAsArrayBuffer(file);\n soundSource.start(0);\n });\n };\n fileReader.readAsArrayBuffer(file);\n}\n\nfunction bufferToWav(abuffer, len) {\n const numOfChan = abuffer.numberOfChannels;\n const length = len * numOfChan * 2 + 44;\n const buffer = new ArrayBuffer(length);\n const view = new DataView(buffer);\n const channels = [];\n let i = 0;\n let sample;\n let offset = 0;\n let pos = 0;\n\n // write WAVE header\n setUint32(0x46464952); // \"RIFF\"\n setUint32(length - 8); // file length - 8\n setUint32(0x45564157); // \"WAVE\"\n setUint32(0x20746d66); // \"fmt \" chunk\n setUint32(16); // length = 16\n setUint16(1); // PCM (uncompressed)\n setUint16(numOfChan);\n setUint32(abuffer.sampleRate);\n setUint32(abuffer.sampleRate * 2 * numOfChan); // avg. bytes/sec\n setUint16(numOfChan * 2); // block-align\n setUint16(16); // 16-bit (hardcoded in this demo)\n setUint32(0x61746164); // \"data\" - chunk\n setUint32(length - pos - 4); // chunk length\n // write interleaved data\n for (i = 0; i < abuffer.numberOfChannels; i++)\n channels.push(abuffer.getChannelData(i));\n\n while (pos < length) {\n for (i = 0; i < numOfChan; i++) {\n // interleave channels\n sample = Math.max(-1, Math.min(1, channels[i][offset])); // clamp\n sample = (0.5 + sample < 0 ? sample * 32768 : sample * 32767) | 0; // scale to 16-bit signed int\n view.setInt16(pos, sample, true); // write 16-bit sample\n pos += 2;\n }\n offset++; // next source sample\n }\n\n return buffer;\n\n function setUint16(data) {\n view.setUint16(pos, data, true);\n pos += 2;\n }\n\n function setUint32(data) {\n view.setUint32(pos, data, true);\n pos += 4;\n }\n}\n\nexport { downsampleToWav, encodeMp3 };\n"],"names":["encodeMp3","arrayBuffer","wav","WavHeader","readHeader","DataView","dataView","Int16Array","dataOffset","dataLen","mp3Encoder","Mp3Encoder","channels","sampleRate","maxSamples","samplesLeft","samplesRight","undefined","j","length","dataBuffer","remaining","i","left","subarray","right","mp3buf","encodeBuffer","push","Int8Array","mp3Lastbuf","flush","downsampleToWav","file","callback","audioCtx","AudioContext","VOICE_RECORDER_AUDIO_SAMPLE_RATE","fileReader","FileReader","onload","ev","decodeAudioData","target","result","buffer","usingWebkit","window","OfflineAudioContext","offlineAudioCtx","duration","soundSource","createBufferSource","connect","destination","reader","renderCompleteHandler","evt","renderedBuffer","bufferToWav","oncomplete","startRendering","then","catch","err","console","warn","readAsArrayBuffer","start","abuffer","len","numOfChan","numberOfChannels","ArrayBuffer","view","sample","offset","pos","setUint32","setUint16","getChannelData","Math","max","min","setInt16","data"],"mappings":";;;AAAA;AAIA,SAASA,SAASA,CAACC,WAAw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mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionTypes-
|
|
1
|
+
{"version":3,"file":"actionTypes-324495ed.js","sources":["../src/lib/dux/user/actionTypes.ts"],"sourcesContent":["import { User } from '@sendbird/chat';\nimport { CreateAction } from '../../../utils/typeHelpers/reducers/createAction';\n\nexport const USER_ACTIONS = {\n INIT_USER: 'INIT_USER',\n RESET_USER: 'RESET_USER',\n UPDATE_USER_INFO: 'UPDATE_USER_INFO',\n} as const;\n\ntype USER_PAYLOAD_TYPES = {\n [USER_ACTIONS.INIT_USER]: User,\n [USER_ACTIONS.RESET_USER]: null,\n [USER_ACTIONS.UPDATE_USER_INFO]: User,\n};\n\nexport type UserActionTypes = CreateAction<USER_PAYLOAD_TYPES>;\n"],"names":["USER_ACTIONS","INIT_USER","RESET_USER","UPDATE_USER_INFO"],"mappings":"AAGO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,gBAAgB,EAAE,kBAAA;;;;;"}
|