@sendbird/uikit-react 3.8.0 → 3.8.1
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 +59 -59
- package/CHANGELOG.md +54 -0
- package/Channel/components/ChannelHeader.js +24 -24
- package/Channel/components/ChannelUI.js +55 -55
- package/Channel/components/FileViewer.js +23 -23
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +53 -53
- package/Channel/components/MessageInput.js +35 -35
- package/Channel/components/MessageList.js +81 -54
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +23 -23
- package/Channel/components/SuggestedMentionList.js +84 -48
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +19 -19
- package/Channel/components/UnreadCount.js +9 -9
- package/Channel/context.js +16 -16
- package/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/Channel/utils/getMessagePartsInfo.js +7 -7
- package/Channel.js +55 -55
- package/ChannelList/components/AddChannel.js +17 -17
- package/ChannelList/components/ChannelListHeader.js +8 -8
- package/ChannelList/components/ChannelListUI.js +33 -33
- package/ChannelList/components/ChannelPreview.js +31 -31
- package/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/ChannelList/context.js +9 -9
- package/ChannelList.js +33 -33
- package/ChannelSettings/components/ChannelProfile.js +13 -13
- package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/ChannelSettings/components/EditDetailsModal.js +13 -13
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +16 -16
- package/ChannelSettings/components/UserListItem.js +12 -12
- package/ChannelSettings/components/UserPanel.js +15 -15
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +18 -18
- package/CreateChannel/components/CreateChannelUI.js +15 -15
- package/CreateChannel/components/InviteUsers.js +15 -15
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +15 -15
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +11 -11
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/MessageSearch/components/MessageSearchUI.js +14 -14
- package/MessageSearch/context.js +1 -1
- package/MessageSearch.js +14 -14
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +14 -14
- 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 +8 -8
- package/OpenChannel.js +34 -34
- package/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +14 -14
- package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/OpenChannelSettings/components/OperatorUI.js +18 -18
- package/OpenChannelSettings/components/ParticipantUI.js +16 -16
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +18 -18
- package/SendbirdProvider.js +24 -33
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +39 -39
- package/Thread/components/ParentMessageInfoItem.js +27 -26
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +43 -43
- package/Thread/components/ThreadListItem.js +45 -45
- package/Thread/components/ThreadMessageInput.js +35 -35
- package/Thread/components/ThreadUI.js +47 -47
- package/Thread/context.js +69 -49
- package/Thread/context.js.map +1 -1
- package/Thread.js +46 -46
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +10 -10
- package/VoiceRecorder/context.js +10 -10
- package/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/chunks/bundle--Hrow3p-.js +42 -0
- package/chunks/bundle--Hrow3p-.js.map +1 -0
- package/chunks/{bundle-YEttY5xG.js → bundle-06CfHADE.js} +1 -1
- package/chunks/bundle-06CfHADE.js.map +1 -0
- package/chunks/{bundle-9KsbryQI.js → bundle-0BwB1B7t.js} +1 -1
- package/chunks/{bundle-9KsbryQI.js.map → bundle-0BwB1B7t.js.map} +1 -1
- package/chunks/{bundle--F_1NyoU.js → bundle-0plqkdfC.js} +1 -1
- package/chunks/bundle-0plqkdfC.js.map +1 -0
- package/chunks/{bundle-mpeh7m6z.js → bundle-1uIyPhfL.js} +1 -1
- package/chunks/bundle-1uIyPhfL.js.map +1 -0
- package/chunks/{bundle-1P01-roD.js → bundle-2oi09sb6.js} +7 -7
- package/chunks/{bundle-1P01-roD.js.map → bundle-2oi09sb6.js.map} +1 -1
- package/chunks/{bundle-hjECCUV3.js → bundle-3KS1YB09.js} +2 -2
- package/chunks/bundle-3KS1YB09.js.map +1 -0
- package/chunks/{bundle-_qiqf8_l.js → bundle-3oeQjqp5.js} +1 -1
- package/chunks/bundle-3oeQjqp5.js.map +1 -0
- package/chunks/{bundle-5yKxJk_M.js → bundle-4zdVdGkr.js} +1 -1
- package/chunks/{bundle-5yKxJk_M.js.map → bundle-4zdVdGkr.js.map} +1 -1
- package/chunks/{bundle-NCqCEOuY.js → bundle-5Z7nY-qa.js} +4 -4
- package/chunks/{bundle-NCqCEOuY.js.map → bundle-5Z7nY-qa.js.map} +1 -1
- package/chunks/{bundle-qunsoajv.js → bundle-62G-DTVs.js} +5 -5
- package/chunks/{bundle-qunsoajv.js.map → bundle-62G-DTVs.js.map} +1 -1
- package/chunks/{bundle-PgBVk3py.js → bundle-6G8kMIS1.js} +12 -12
- package/chunks/{bundle-PgBVk3py.js.map → bundle-6G8kMIS1.js.map} +1 -1
- package/chunks/{bundle-vnmGzWMt.js → bundle-7-9WA7QK.js} +4 -4
- package/chunks/{bundle-vnmGzWMt.js.map → bundle-7-9WA7QK.js.map} +1 -1
- package/chunks/{bundle-prRsVvhT.js → bundle-7DHTLnV3.js} +2 -2
- package/chunks/{bundle-prRsVvhT.js.map → bundle-7DHTLnV3.js.map} +1 -1
- package/chunks/{bundle-btDN-R-c.js → bundle-9uR-6efo.js} +3 -3
- package/chunks/bundle-9uR-6efo.js.map +1 -0
- package/chunks/{bundle-hKtwSqbO.js → bundle-AVOWwEQ4.js} +1 -1
- package/chunks/{bundle-hKtwSqbO.js.map → bundle-AVOWwEQ4.js.map} +1 -1
- package/chunks/{bundle-zoxfINxQ.js → bundle-DwZzB6nL.js} +3 -3
- package/chunks/bundle-DwZzB6nL.js.map +1 -0
- package/chunks/{bundle-zLBuOeRY.js → bundle-EZnDY3Tc.js} +7 -7
- package/chunks/bundle-EZnDY3Tc.js.map +1 -0
- package/chunks/{bundle-8zJE_DCx.js → bundle-F63fi8fP.js} +6 -6
- package/chunks/bundle-F63fi8fP.js.map +1 -0
- package/chunks/{bundle-v9a1_z0P.js → bundle-FQAabli1.js} +1 -1
- package/chunks/bundle-FQAabli1.js.map +1 -0
- package/chunks/{bundle-ubky9D9H.js → bundle-G3cS-S1W.js} +1 -1
- package/chunks/bundle-G3cS-S1W.js.map +1 -0
- package/chunks/{bundle-v0OWADVv.js → bundle-GqUhOzeC.js} +3 -3
- package/chunks/bundle-GqUhOzeC.js.map +1 -0
- package/chunks/{bundle-ftY5T58h.js → bundle-J7RD0FpU.js} +4 -4
- package/chunks/{bundle-ftY5T58h.js.map → bundle-J7RD0FpU.js.map} +1 -1
- package/chunks/{bundle-dLuEa16_.js → bundle-J7om32yx.js} +3 -3
- package/chunks/{bundle-dLuEa16_.js.map → bundle-J7om32yx.js.map} +1 -1
- package/chunks/{bundle-AI8e02c3.js → bundle-JGFwpJZJ.js} +1 -1
- package/chunks/bundle-JGFwpJZJ.js.map +1 -0
- package/chunks/{bundle-w9T6A0ez.js → bundle-KaSW5xxP.js} +9 -9
- package/{cjs/chunks/bundle-4q81wd8X.js.map → chunks/bundle-KaSW5xxP.js.map} +1 -1
- package/chunks/{bundle-h3JIYRTG.js → bundle-LPkaaUo4.js} +2 -2
- package/chunks/{bundle-h3JIYRTG.js.map → bundle-LPkaaUo4.js.map} +1 -1
- package/chunks/{bundle-rYAZn3lj.js → bundle-Lh7-eKPZ.js} +2 -2
- package/chunks/{bundle-rYAZn3lj.js.map → bundle-Lh7-eKPZ.js.map} +1 -1
- package/chunks/{bundle-Q8dtkDOa.js → bundle-NcHt88Fs.js} +1 -1
- package/chunks/bundle-NcHt88Fs.js.map +1 -0
- package/chunks/{bundle-EHReigfD.js → bundle-OoXqnc0l.js} +4 -4
- package/chunks/{bundle-EHReigfD.js.map → bundle-OoXqnc0l.js.map} +1 -1
- package/chunks/{bundle-qst5L6aH.js → bundle-PK1dgVwp.js} +5 -3
- package/chunks/bundle-PK1dgVwp.js.map +1 -0
- package/chunks/{bundle-x-4ukZm_.js → bundle-QKq7b-WA.js} +1 -1
- package/chunks/bundle-QKq7b-WA.js.map +1 -0
- package/chunks/{bundle-mL_86Tua.js → bundle-QeQV8Aqe.js} +1 -1
- package/chunks/bundle-QeQV8Aqe.js.map +1 -0
- package/chunks/{bundle-_YRJ7d9_.js → bundle-TWJd6cza.js} +26 -27
- package/chunks/{bundle-_YRJ7d9_.js.map → bundle-TWJd6cza.js.map} +1 -1
- package/chunks/{bundle-WCTKBopn.js → bundle-UjngV2Kp.js} +2 -2
- package/chunks/bundle-UjngV2Kp.js.map +1 -0
- package/chunks/{bundle-w2v7oZ9G.js → bundle-VSkY75XQ.js} +2 -2
- package/chunks/bundle-VSkY75XQ.js.map +1 -0
- package/chunks/{bundle-LUte5Kb5.js → bundle-YwxAxKwQ.js} +91 -166
- package/chunks/{bundle-LUte5Kb5.js.map → bundle-YwxAxKwQ.js.map} +1 -1
- package/chunks/{bundle-3mdR5HDw.js → bundle-ZZuBYhV1.js} +2 -2
- package/chunks/{bundle-3mdR5HDw.js.map → bundle-ZZuBYhV1.js.map} +1 -1
- package/chunks/bundle-_2iSz8ke.js +353 -0
- package/{cjs/chunks/bundle-kBUglm2K.js.map → chunks/bundle-_2iSz8ke.js.map} +1 -1
- package/chunks/{bundle-khKXutc3.js → bundle-_nlJSeuz.js} +1 -1
- package/chunks/bundle-_nlJSeuz.js.map +1 -0
- package/chunks/{bundle-ZmvX8uZ5.js → bundle-fQ2M7pMu.js} +5 -17
- package/chunks/bundle-fQ2M7pMu.js.map +1 -0
- package/chunks/{bundle-ANPmLOz8.js → bundle-fbmUkwMs.js} +4 -4
- package/chunks/{bundle-ANPmLOz8.js.map → bundle-fbmUkwMs.js.map} +1 -1
- package/chunks/{bundle-rLxuFUa1.js → bundle-gYyMZyCn.js} +5 -5
- package/chunks/bundle-gYyMZyCn.js.map +1 -0
- package/chunks/{bundle-bofQNMJb.js → bundle-iPDlyZXo.js} +1 -1
- package/chunks/bundle-iPDlyZXo.js.map +1 -0
- package/chunks/{bundle-Zl1hrCWc.js → bundle-jUubN32Z.js} +4 -4
- package/chunks/bundle-jUubN32Z.js.map +1 -0
- package/chunks/{bundle-53PRRrlp.js → bundle-kBtT3HBi.js} +3 -3
- package/chunks/{bundle-53PRRrlp.js.map → bundle-kBtT3HBi.js.map} +1 -1
- package/chunks/{bundle-cviP1IM2.js → bundle-kPOY92Qs.js} +3 -3
- package/chunks/{bundle-cviP1IM2.js.map → bundle-kPOY92Qs.js.map} +1 -1
- package/chunks/{bundle-kp1MMNMf.js → bundle-kaJaYGwQ.js} +1 -1
- package/chunks/bundle-kaJaYGwQ.js.map +1 -0
- package/chunks/{bundle-wMgBBDf9.js → bundle-lDOyfwhb.js} +3 -3
- package/chunks/bundle-lDOyfwhb.js.map +1 -0
- package/chunks/{bundle-FTgSGiKe.js → bundle-ltzZCtkR.js} +1 -1
- package/chunks/{bundle-FTgSGiKe.js.map → bundle-ltzZCtkR.js.map} +1 -1
- package/chunks/{bundle-H2I60B2B.js → bundle-ndy1oWfZ.js} +2 -2
- package/chunks/bundle-ndy1oWfZ.js.map +1 -0
- package/chunks/{bundle-bJrywUB-.js → bundle-r7_GdraW.js} +10 -10
- package/chunks/{bundle-TZXZa-F1.js.map → bundle-r7_GdraW.js.map} +1 -1
- package/chunks/{bundle-5iuNyt5M.js → bundle-rX7vrYxX.js} +1 -1
- package/chunks/{bundle-5iuNyt5M.js.map → bundle-rX7vrYxX.js.map} +1 -1
- package/chunks/{bundle-sOjc_nNQ.js → bundle-tK1qgIcU.js} +1 -1
- package/chunks/bundle-tK1qgIcU.js.map +1 -0
- package/chunks/{bundle-7FyFbzI4.js → bundle-um2Azmnd.js} +1 -1
- package/chunks/bundle-um2Azmnd.js.map +1 -0
- package/chunks/{bundle-r_VxbiS3.js → bundle-w-pB0qJ8.js} +1 -1
- package/chunks/bundle-w-pB0qJ8.js.map +1 -0
- package/chunks/bundle-x3udz03j.js +77 -0
- package/chunks/bundle-x3udz03j.js.map +1 -0
- package/chunks/{bundle-TZXZa-F1.js → bundle-zch8NdOh.js} +13 -19
- package/chunks/bundle-zch8NdOh.js.map +1 -0
- package/chunks/{bundle-M2ljBW6p.js → bundle-zqQY3xFx.js} +4 -4
- package/chunks/bundle-zqQY3xFx.js.map +1 -0
- package/cjs/App.js +59 -59
- package/cjs/Channel/components/ChannelHeader.js +24 -24
- package/cjs/Channel/components/ChannelUI.js +55 -55
- package/cjs/Channel/components/FileViewer.js +24 -24
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +53 -53
- package/cjs/Channel/components/MessageInput.js +35 -35
- package/cjs/Channel/components/MessageList.js +80 -53
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +23 -23
- package/cjs/Channel/components/SuggestedMentionList.js +85 -49
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +19 -19
- package/cjs/Channel/components/UnreadCount.js +9 -9
- package/cjs/Channel/context.js +16 -16
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/cjs/Channel/utils/compareMessagesForGrouping.js +6 -6
- package/cjs/Channel/utils/getMessagePartsInfo.js +7 -7
- package/cjs/Channel.js +55 -55
- package/cjs/ChannelList/components/AddChannel.js +17 -17
- package/cjs/ChannelList/components/ChannelListHeader.js +9 -9
- package/cjs/ChannelList/components/ChannelListUI.js +33 -33
- package/cjs/ChannelList/components/ChannelPreview.js +31 -31
- package/cjs/ChannelList/components/ChannelPreviewAction.js +15 -15
- package/cjs/ChannelList/context.js +9 -9
- package/cjs/ChannelList.js +33 -33
- package/cjs/ChannelSettings/components/ChannelProfile.js +13 -13
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +16 -16
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +15 -15
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +18 -18
- package/cjs/CreateChannel/components/CreateChannelUI.js +15 -15
- package/cjs/CreateChannel/components/InviteUsers.js +15 -15
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +15 -15
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +12 -12
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -11
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/MessageSearch/components/MessageSearchUI.js +14 -14
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch.js +14 -14
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +15 -15
- 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 +8 -8
- package/cjs/OpenChannel.js +34 -34
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +7 -7
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -14
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +16 -16
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +14 -14
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/cjs/OpenChannelSettings/components/OperatorUI.js +18 -18
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +16 -16
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +18 -18
- package/cjs/SendbirdProvider.js +24 -33
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +40 -40
- package/cjs/Thread/components/ParentMessageInfoItem.js +27 -26
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +43 -43
- package/cjs/Thread/components/ThreadListItem.js +46 -46
- package/cjs/Thread/components/ThreadMessageInput.js +35 -35
- package/cjs/Thread/components/ThreadUI.js +47 -47
- package/cjs/Thread/context.js +77 -57
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +46 -46
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
- package/cjs/VoiceRecorder/context.js +10 -10
- package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/cjs/chunks/{bundle-BN7IOLFq.js → bundle-2KPLdyEL.js} +2 -2
- package/cjs/chunks/bundle-2KPLdyEL.js.map +1 -0
- package/cjs/chunks/{bundle-iwsbhMUN.js → bundle-3qeMVUne.js} +4 -4
- package/cjs/chunks/bundle-3qeMVUne.js.map +1 -0
- package/cjs/chunks/{bundle-L9ushBZQ.js → bundle-4iro9CUN.js} +1 -1
- package/cjs/chunks/bundle-4iro9CUN.js.map +1 -0
- package/cjs/chunks/{bundle-z-Bvsn0B.js → bundle-5l7POen0.js} +1 -1
- package/cjs/chunks/bundle-5l7POen0.js.map +1 -0
- package/cjs/chunks/bundle-6fWeHUzf.js +46 -0
- package/cjs/chunks/bundle-6fWeHUzf.js.map +1 -0
- package/cjs/chunks/{bundle-QmSa90PC.js → bundle-80bw1Z-w.js} +3 -3
- package/cjs/chunks/bundle-80bw1Z-w.js.map +1 -0
- package/cjs/chunks/{bundle-4q81wd8X.js → bundle-8lUFYwiz.js} +4 -17
- package/{chunks/bundle-ZmvX8uZ5.js.map → cjs/chunks/bundle-8lUFYwiz.js.map} +1 -1
- package/cjs/chunks/{bundle-6OOGDxxE.js → bundle-A9-xoiFy.js} +3 -3
- package/cjs/chunks/bundle-A9-xoiFy.js.map +1 -0
- package/cjs/chunks/{bundle-4bb_98h6.js → bundle-ACXel153.js} +1 -1
- package/cjs/chunks/bundle-ACXel153.js.map +1 -0
- package/cjs/chunks/{bundle-FHx0K-3z.js → bundle-BUF_nc4Q.js} +3 -3
- package/cjs/chunks/{bundle-FHx0K-3z.js.map → bundle-BUF_nc4Q.js.map} +1 -1
- package/cjs/chunks/{bundle-FLCJVplO.js → bundle-Bekm94S6.js} +3 -3
- package/cjs/chunks/bundle-Bekm94S6.js.map +1 -0
- package/cjs/chunks/{bundle-F7GEQVgT.js → bundle-Ch6xNfpK.js} +12 -12
- package/cjs/chunks/{bundle-F7GEQVgT.js.map → bundle-Ch6xNfpK.js.map} +1 -1
- package/cjs/chunks/{bundle-RlFjml8m.js → bundle-Co06yFqb.js} +4 -4
- package/{chunks/bundle-w9T6A0ez.js.map → cjs/chunks/bundle-Co06yFqb.js.map} +1 -1
- package/cjs/chunks/{bundle-RaQV-Bpr.js → bundle-DRPbz-J2.js} +1 -1
- package/cjs/chunks/bundle-DRPbz-J2.js.map +1 -0
- package/cjs/chunks/{bundle-kWUEW1ZN.js → bundle-DTSMqW5p.js} +1 -1
- package/cjs/chunks/bundle-DTSMqW5p.js.map +1 -0
- package/cjs/chunks/{bundle-n1yh-qDb.js → bundle-EVv3xRW8.js} +1 -1
- package/cjs/chunks/{bundle-n1yh-qDb.js.map → bundle-EVv3xRW8.js.map} +1 -1
- package/cjs/chunks/{bundle-tywVawyg.js → bundle-FCrfVx0P.js} +3 -3
- package/cjs/chunks/bundle-FCrfVx0P.js.map +1 -0
- package/cjs/chunks/{bundle-cttYM0DR.js → bundle-FI-ZNmbG.js} +1 -1
- package/cjs/chunks/bundle-FI-ZNmbG.js.map +1 -0
- package/cjs/chunks/{bundle-b4fiCQuI.js → bundle-LoNtsKOJ.js} +5 -5
- package/cjs/chunks/bundle-LoNtsKOJ.js.map +1 -0
- package/cjs/chunks/{bundle-lii4Ueh3.js → bundle-M6v8bdc6.js} +1 -1
- package/cjs/chunks/bundle-M6v8bdc6.js.map +1 -0
- package/cjs/chunks/{bundle-g0lpRY8_.js → bundle-MB8QdyyQ.js} +1 -1
- package/cjs/chunks/bundle-MB8QdyyQ.js.map +1 -0
- package/cjs/chunks/{bundle-QfhZ2YNP.js → bundle-MwYMtlCB.js} +2 -2
- package/cjs/chunks/{bundle-QfhZ2YNP.js.map → bundle-MwYMtlCB.js.map} +1 -1
- package/cjs/chunks/{bundle-ELeM0_1Y.js → bundle-NOQysszZ.js} +1 -1
- package/cjs/chunks/bundle-NOQysszZ.js.map +1 -0
- package/cjs/chunks/{bundle-tRBVL0r6.js → bundle-OfmF0BBb.js} +4 -4
- package/cjs/chunks/{bundle-tRBVL0r6.js.map → bundle-OfmF0BBb.js.map} +1 -1
- package/cjs/chunks/{bundle-gS0bojlA.js → bundle-PoR4V_kd.js} +1 -1
- package/cjs/chunks/bundle-PoR4V_kd.js.map +1 -0
- package/cjs/chunks/{bundle-I_9_5a8a.js → bundle-RG3ZDmvE.js} +1 -1
- package/cjs/chunks/{bundle-I_9_5a8a.js.map → bundle-RG3ZDmvE.js.map} +1 -1
- package/cjs/chunks/{bundle-zr9ZXBrm.js → bundle-RV4B0RCM.js} +2 -2
- package/cjs/chunks/bundle-RV4B0RCM.js.map +1 -0
- package/cjs/chunks/{bundle-TEIqVGqn.js → bundle-TCdgqawd.js} +2 -2
- package/cjs/chunks/bundle-TCdgqawd.js.map +1 -0
- package/cjs/chunks/{bundle-P_B0eyVT.js → bundle-VHUezYnn.js} +1 -1
- package/cjs/chunks/bundle-VHUezYnn.js.map +1 -0
- package/cjs/chunks/{bundle-11ybpGNN.js → bundle-Y0ibVW_O.js} +7 -7
- package/cjs/chunks/bundle-Y0ibVW_O.js.map +1 -0
- package/cjs/chunks/{bundle-dXhGOQQM.js → bundle-YRW87MiX.js} +1 -1
- package/cjs/chunks/bundle-YRW87MiX.js.map +1 -0
- package/cjs/chunks/{bundle-gMxOq93o.js → bundle-Z8uBiYyS.js} +1 -1
- package/cjs/chunks/bundle-Z8uBiYyS.js.map +1 -0
- package/cjs/chunks/{bundle-DZeKHvMp.js → bundle-ZYvG_yE0.js} +6 -6
- package/cjs/chunks/bundle-ZYvG_yE0.js.map +1 -0
- package/cjs/chunks/{bundle-Dwrq46Xb.js → bundle-_R3HdLLP.js} +26 -27
- package/cjs/chunks/{bundle-Dwrq46Xb.js.map → bundle-_R3HdLLP.js.map} +1 -1
- package/cjs/chunks/{bundle-4DATo50q.js → bundle-_yIYQoui.js} +95 -170
- package/cjs/chunks/{bundle-4DATo50q.js.map → bundle-_yIYQoui.js.map} +1 -1
- package/cjs/chunks/{bundle-tmB_l3Q9.js → bundle-a_NGo240.js} +1 -1
- package/cjs/chunks/bundle-a_NGo240.js.map +1 -0
- package/cjs/chunks/{bundle-c6O8NjZI.js → bundle-bQffWPr0.js} +5 -2
- package/cjs/chunks/bundle-bQffWPr0.js.map +1 -0
- package/cjs/chunks/{bundle-CUP2x37z.js → bundle-cKt6NzI1.js} +3 -3
- package/cjs/chunks/{bundle-CUP2x37z.js.map → bundle-cKt6NzI1.js.map} +1 -1
- package/cjs/chunks/{bundle-6ziaqiUd.js → bundle-fTDV9UxX.js} +3 -3
- package/cjs/chunks/bundle-fTDV9UxX.js.map +1 -0
- package/cjs/chunks/{bundle-41ZfOrRZ.js → bundle-h48X_8mu.js} +4 -4
- package/cjs/chunks/{bundle-41ZfOrRZ.js.map → bundle-h48X_8mu.js.map} +1 -1
- package/cjs/chunks/{bundle-Y9TkHVI5.js → bundle-kkxTVcGD.js} +1 -1
- package/cjs/chunks/bundle-kkxTVcGD.js.map +1 -0
- package/cjs/chunks/{bundle-6o4fw0w0.js → bundle-leALuaxJ.js} +12 -18
- package/{chunks/bundle-Ael7hqI7.js.map → cjs/chunks/bundle-leALuaxJ.js.map} +1 -1
- package/cjs/chunks/bundle-lj7KorhP.js +81 -0
- package/cjs/chunks/bundle-lj7KorhP.js.map +1 -0
- package/cjs/chunks/{bundle-p1cCW0sH.js → bundle-lkluBCYi.js} +3 -3
- package/cjs/chunks/bundle-lkluBCYi.js.map +1 -0
- package/cjs/chunks/{bundle-hK4x7nmG.js → bundle-mc8PQfi_.js} +1 -1
- package/cjs/chunks/{bundle-hK4x7nmG.js.map → bundle-mc8PQfi_.js.map} +1 -1
- package/cjs/chunks/{bundle-_fjTT1-g.js → bundle-n6O0NYfY.js} +7 -7
- package/cjs/chunks/bundle-n6O0NYfY.js.map +1 -0
- package/cjs/chunks/{bundle-e-fvbugV.js → bundle-o5pJIgS7.js} +1 -1
- package/cjs/chunks/bundle-o5pJIgS7.js.map +1 -0
- package/cjs/chunks/{bundle-UooP2IDU.js → bundle-o66lc7qg.js} +5 -5
- package/cjs/chunks/bundle-o66lc7qg.js.map +1 -0
- package/cjs/chunks/{bundle-B2MaAm21.js → bundle-oISd80pA.js} +1 -1
- package/cjs/chunks/bundle-oISd80pA.js.map +1 -0
- package/cjs/chunks/{bundle-BJe68nS0.js → bundle-oiMScSG6.js} +3 -3
- package/{chunks/bundle-bJrywUB-.js.map → cjs/chunks/bundle-oiMScSG6.js.map} +1 -1
- package/cjs/chunks/{bundle-28p7K0N-.js → bundle-pLajF9mf.js} +2 -2
- package/cjs/chunks/{bundle-28p7K0N-.js.map → bundle-pLajF9mf.js.map} +1 -1
- package/cjs/chunks/{bundle-JggdKsJa.js → bundle-t70SIG3R.js} +10 -10
- package/cjs/chunks/bundle-t70SIG3R.js.map +1 -0
- package/cjs/chunks/{bundle-kBUglm2K.js → bundle-tooLK5gn.js} +4 -4
- package/cjs/chunks/bundle-tooLK5gn.js.map +1 -0
- package/cjs/chunks/{bundle-YNHu-c84.js → bundle-u4ZfKyD_.js} +2 -2
- package/cjs/chunks/bundle-u4ZfKyD_.js.map +1 -0
- package/cjs/chunks/{bundle-4rFcKXQa.js → bundle-uE1K1eGs.js} +2 -2
- package/cjs/chunks/{bundle-4rFcKXQa.js.map → bundle-uE1K1eGs.js.map} +1 -1
- package/cjs/chunks/bundle-vWOLHFBL.js +356 -0
- package/cjs/chunks/bundle-vWOLHFBL.js.map +1 -0
- package/cjs/chunks/{bundle-1yOirqug.js → bundle-viTxhrPr.js} +1 -1
- package/cjs/chunks/bundle-viTxhrPr.js.map +1 -0
- package/cjs/chunks/{bundle-g_OXBrgT.js → bundle-wPu8WyIh.js} +1 -1
- package/cjs/chunks/bundle-wPu8WyIh.js.map +1 -0
- package/cjs/chunks/{bundle-P0kNl8GH.js → bundle-xy995kna.js} +11 -11
- package/cjs/chunks/bundle-xy995kna.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +57 -57
- package/cjs/pubSub/topics.js +12 -17
- package/cjs/pubSub/topics.js.map +1 -1
- package/cjs/sendbirdSelectors.js +80 -65
- package/cjs/sendbirdSelectors.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 +9 -75
- package/cjs/ui/Avatar.js.map +1 -1
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +9 -9
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +7 -7
- package/cjs/ui/ConnectionStatus.js +6 -6
- 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 +8 -8
- package/cjs/ui/FileViewer.js +14 -14
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/MentionLabel.js +12 -12
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +162 -120
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +5 -5
- package/cjs/ui/MessageInput.js +15 -15
- package/cjs/ui/MessageItemMenu.js +21 -21
- package/cjs/ui/MessageItemReactionMenu.js +9 -9
- package/cjs/ui/MessageSearchFileItem.js +15 -15
- package/cjs/ui/MessageSearchItem.js +12 -12
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +15 -15
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +9 -9
- package/cjs/ui/OpenchannelConversationHeader.js +9 -9
- package/cjs/ui/OpenchannelFileMessage.js +18 -18
- package/cjs/ui/OpenchannelOGMessage.js +20 -20
- package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
- package/cjs/ui/OpenchannelUserMessage.js +18 -18
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/QuoteMessage.js +9 -9
- package/cjs/ui/QuoteMessageInput.js +9 -9
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +15 -15
- package/cjs/ui/ThreadReplies.js +10 -10
- package/cjs/ui/ThumbnailMessageItemBody.js +7 -7
- 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 +13 -13
- package/cjs/ui/UserProfile.js +11 -11
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/VoiceMessgeInput.js +9 -9
- package/cjs/ui/Word.js +12 -12
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +711 -653
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +57 -57
- package/package.json +3 -3
- package/pubSub/topics.js +1 -17
- package/pubSub/topics.js.map +1 -1
- package/sendbirdSelectors.js +80 -65
- package/sendbirdSelectors.js.map +1 -1
- package/types/lib/Sendbird.d.ts +2 -2
- package/types/lib/pubSub/index.d.ts +16 -6
- package/types/lib/pubSub/topics.d.ts +84 -14
- package/types/lib/selectors.d.ts +13 -12
- package/types/lib/types.d.ts +2 -1
- package/types/modules/Channel/components/MessageInput/useHandleUploadFiles.d.ts +2 -2
- package/types/modules/Channel/components/SuggestedMentionList/utils.d.ts +3 -0
- package/types/modules/Channel/context/ChannelProvider.d.ts +2 -0
- package/types/modules/Channel/context/dux/actionTypes.d.ts +6 -0
- package/types/modules/Channel/context/dux/initialState.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useHandleChannelPubsubEvents.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +5 -5
- package/types/modules/Channel/context/hooks/useSendMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +2 -1
- package/types/modules/Channel/context/hooks/useUpdateMessageCallback.d.ts +2 -2
- package/types/modules/ChannelList/utils.d.ts +2 -2
- package/types/modules/Thread/context/dux/actionTypes.d.ts +2 -1
- package/types/modules/Thread/context/dux/initialState.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +2 -1
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +2 -1
- package/types/modules/internalInterfaces.d.ts +2 -0
- package/types/ui/MessageContent/MessageBody/index.d.ts +18 -0
- package/types/ui/MessageContent/MessageHeader/index.d.ts +10 -0
- package/types/ui/MessageContent/MessageProfile/index.d.ts +15 -0
- package/types/ui/MessageContent/index.d.ts +9 -4
- package/types/ui/TypingIndicatorMessage/TypingDots.d.ts +4 -0
- package/types/ui/TypingIndicatorMessage/index.d.ts +6 -0
- package/types/utils/compressImages.d.ts +11 -0
- package/types/utils/pxToNumber.d.ts +2 -2
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +7 -77
- package/ui/Avatar.js.map +1 -1
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +9 -9
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +15 -15
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +14 -14
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +2 -2
- package/ui/MentionLabel.js +12 -12
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +163 -121
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +5 -5
- package/ui/MessageInput.js +15 -15
- package/ui/MessageItemMenu.js +21 -21
- package/ui/MessageItemReactionMenu.js +9 -9
- package/ui/MessageSearchFileItem.js +14 -14
- package/ui/MessageSearchItem.js +11 -11
- package/ui/MessageStatus.js +12 -12
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +15 -15
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- 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 +6 -6
- package/ui/PlaybackTime.js +3 -3
- package/ui/QuoteMessage.js +9 -9
- package/ui/QuoteMessageInput.js +9 -9
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +15 -15
- package/ui/ThreadReplies.js +8 -8
- package/ui/ThumbnailMessageItemBody.js +7 -7
- 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 +12 -12
- package/ui/UserProfile.js +10 -10
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/VoiceMessgeInput.js +9 -9
- package/ui/Word.js +12 -12
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle--F_1NyoU.js.map +0 -1
- package/chunks/bundle-7FyFbzI4.js.map +0 -1
- package/chunks/bundle-8zJE_DCx.js.map +0 -1
- package/chunks/bundle-AI8e02c3.js.map +0 -1
- package/chunks/bundle-Ael7hqI7.js +0 -227
- package/chunks/bundle-H2I60B2B.js.map +0 -1
- package/chunks/bundle-M2ljBW6p.js.map +0 -1
- package/chunks/bundle-Q8dtkDOa.js.map +0 -1
- package/chunks/bundle-WCTKBopn.js.map +0 -1
- package/chunks/bundle-YEttY5xG.js.map +0 -1
- package/chunks/bundle-Zl1hrCWc.js.map +0 -1
- package/chunks/bundle-_qiqf8_l.js.map +0 -1
- package/chunks/bundle-bofQNMJb.js.map +0 -1
- package/chunks/bundle-btDN-R-c.js.map +0 -1
- package/chunks/bundle-hjECCUV3.js.map +0 -1
- package/chunks/bundle-khKXutc3.js.map +0 -1
- package/chunks/bundle-kp1MMNMf.js.map +0 -1
- package/chunks/bundle-mL_86Tua.js.map +0 -1
- package/chunks/bundle-mpeh7m6z.js.map +0 -1
- package/chunks/bundle-qst5L6aH.js.map +0 -1
- package/chunks/bundle-rLxuFUa1.js.map +0 -1
- package/chunks/bundle-r_VxbiS3.js.map +0 -1
- package/chunks/bundle-sOjc_nNQ.js.map +0 -1
- package/chunks/bundle-ubky9D9H.js.map +0 -1
- package/chunks/bundle-v0OWADVv.js.map +0 -1
- package/chunks/bundle-v9a1_z0P.js.map +0 -1
- package/chunks/bundle-w2v7oZ9G.js.map +0 -1
- package/chunks/bundle-wMgBBDf9.js.map +0 -1
- package/chunks/bundle-x-4ukZm_.js.map +0 -1
- package/chunks/bundle-zLBuOeRY.js.map +0 -1
- package/chunks/bundle-zoxfINxQ.js.map +0 -1
- package/cjs/chunks/bundle-11ybpGNN.js.map +0 -1
- package/cjs/chunks/bundle-1yOirqug.js.map +0 -1
- package/cjs/chunks/bundle-4bb_98h6.js.map +0 -1
- package/cjs/chunks/bundle-6OOGDxxE.js.map +0 -1
- package/cjs/chunks/bundle-6o4fw0w0.js.map +0 -1
- package/cjs/chunks/bundle-6ziaqiUd.js.map +0 -1
- package/cjs/chunks/bundle-B2MaAm21.js.map +0 -1
- package/cjs/chunks/bundle-BJe68nS0.js.map +0 -1
- package/cjs/chunks/bundle-BN7IOLFq.js.map +0 -1
- package/cjs/chunks/bundle-DZeKHvMp.js.map +0 -1
- package/cjs/chunks/bundle-ELeM0_1Y.js.map +0 -1
- package/cjs/chunks/bundle-FLCJVplO.js.map +0 -1
- package/cjs/chunks/bundle-JggdKsJa.js.map +0 -1
- package/cjs/chunks/bundle-L9ushBZQ.js.map +0 -1
- package/cjs/chunks/bundle-P0kNl8GH.js.map +0 -1
- package/cjs/chunks/bundle-P_B0eyVT.js.map +0 -1
- package/cjs/chunks/bundle-QmSa90PC.js.map +0 -1
- package/cjs/chunks/bundle-RaQV-Bpr.js.map +0 -1
- package/cjs/chunks/bundle-RlFjml8m.js.map +0 -1
- package/cjs/chunks/bundle-TEIqVGqn.js.map +0 -1
- package/cjs/chunks/bundle-UooP2IDU.js.map +0 -1
- package/cjs/chunks/bundle-Y9TkHVI5.js.map +0 -1
- package/cjs/chunks/bundle-YNHu-c84.js.map +0 -1
- package/cjs/chunks/bundle-_fjTT1-g.js.map +0 -1
- package/cjs/chunks/bundle-b4fiCQuI.js.map +0 -1
- package/cjs/chunks/bundle-c6O8NjZI.js.map +0 -1
- package/cjs/chunks/bundle-cttYM0DR.js.map +0 -1
- package/cjs/chunks/bundle-dXhGOQQM.js.map +0 -1
- package/cjs/chunks/bundle-e-fvbugV.js.map +0 -1
- package/cjs/chunks/bundle-e0il9C3T.js +0 -230
- package/cjs/chunks/bundle-e0il9C3T.js.map +0 -1
- package/cjs/chunks/bundle-g0lpRY8_.js.map +0 -1
- package/cjs/chunks/bundle-gMxOq93o.js.map +0 -1
- package/cjs/chunks/bundle-gS0bojlA.js.map +0 -1
- package/cjs/chunks/bundle-g_OXBrgT.js.map +0 -1
- package/cjs/chunks/bundle-iwsbhMUN.js.map +0 -1
- package/cjs/chunks/bundle-kWUEW1ZN.js.map +0 -1
- package/cjs/chunks/bundle-lii4Ueh3.js.map +0 -1
- package/cjs/chunks/bundle-p1cCW0sH.js.map +0 -1
- package/cjs/chunks/bundle-tmB_l3Q9.js.map +0 -1
- package/cjs/chunks/bundle-tywVawyg.js.map +0 -1
- package/cjs/chunks/bundle-z-Bvsn0B.js.map +0 -1
- package/cjs/chunks/bundle-zr9ZXBrm.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as requiredArgs, t as toDate } from './bundle-
|
|
1
|
+
import { r as requiredArgs, t as toDate } from './bundle-LPkaaUo4.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @name startOfDay
|
|
@@ -63,4 +63,4 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export { isSameDay as i };
|
|
66
|
-
//# sourceMappingURL=bundle-
|
|
66
|
+
//# sourceMappingURL=bundle-ZZuBYhV1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-ZZuBYhV1.js","sources":["../../node_modules/date-fns/esm/startOfDay/index.js","../../node_modules/date-fns/esm/isSameDay/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\n\nexport default function startOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(0, 0, 0, 0);\n return date;\n}","import startOfDay from \"../startOfDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day (and year and month)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\n\nexport default function isSameDay(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeftStartOfDay = startOfDay(dirtyDateLeft);\n var dateRightStartOfDay = startOfDay(dirtyDateRight);\n return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();\n}"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,SAAS,EAAE;AAC9C,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5B,EAAE,OAAO,IAAI,CAAC;AACd;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,SAAS,CAAC,aAAa,EAAE,cAAc,EAAE;AACjE,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,kBAAkB,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;AACrD,EAAE,IAAI,mBAAmB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AACvD,EAAE,OAAO,kBAAkB,CAAC,OAAO,EAAE,KAAK,mBAAmB,CAAC,OAAO,EAAE,CAAC;AACxE;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import React__default, { useRef, useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import { u as useLocalization } from './bundle-GqUhOzeC.js';
|
|
3
|
+
import { useVoicePlayer } from '../VoicePlayer/useVoicePlayer.js';
|
|
4
|
+
import { useVoiceRecorder, VoiceRecorderStatus } from '../VoiceRecorder/useVoiceRecorder.js';
|
|
5
|
+
import { i as isDisabledBecauseFrozen, b as isDisabledBecauseMuted } from './bundle-fQ2M7pMu.js';
|
|
6
|
+
import { V as VoiceMessageInputStatus, a as VoiceMessageInput } from './bundle-J7RD0FpU.js';
|
|
7
|
+
import { M as Modal, c as ModalFooter } from './bundle-gYyMZyCn.js';
|
|
8
|
+
import Button, { ButtonTypes, ButtonSizes } from '../ui/Button.js';
|
|
9
|
+
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
10
|
+
import { e as VOICE_RECORDER_DEFAULT_MIN } from './bundle-UjngV2Kp.js';
|
|
11
|
+
import { V as VOICE_PLAYER_STATUS } from './bundle-kBtT3HBi.js';
|
|
12
|
+
import { u as uuidv4 } from './bundle-iPDlyZXo.js';
|
|
13
|
+
import { c as __awaiter, d as __generator } from './bundle-AVOWwEQ4.js';
|
|
14
|
+
import { f as isImage } from './bundle-OoXqnc0l.js';
|
|
15
|
+
import { useGlobalModalContext } from '../hooks/useModal.js';
|
|
16
|
+
import './bundle-lDOyfwhb.js';
|
|
17
|
+
import { p as pxToNumber } from './bundle-x3udz03j.js';
|
|
18
|
+
|
|
19
|
+
var VoiceMessageInputWrapper = function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var channel = _a.channel, onCancelClick = _a.onCancelClick, onSubmitClick = _a.onSubmitClick;
|
|
22
|
+
var uuid = useRef(uuidv4()).current;
|
|
23
|
+
var _c = useState(null), audioFile = _c[0], setAudioFile = _c[1];
|
|
24
|
+
var _d = useState(VoiceMessageInputStatus.READY_TO_RECORD), voiceInputState = _d[0], setVoiceInputState = _d[1];
|
|
25
|
+
var _e = useState(false), isSubmitted = _e[0], setSubmit = _e[1];
|
|
26
|
+
var _f = useState(false), isDisabled = _f[0], setDisabled = _f[1];
|
|
27
|
+
var _g = useState(false), showModal = _g[0], setShowModal = _g[1];
|
|
28
|
+
var stringSet = useLocalization().stringSet;
|
|
29
|
+
var config = useSendbirdStateContext().config;
|
|
30
|
+
var minRecordingTime = ((_b = config === null || config === void 0 ? void 0 : config.voiceRecord) === null || _b === void 0 ? void 0 : _b.minRecordingTime) || VOICE_RECORDER_DEFAULT_MIN;
|
|
31
|
+
var _h = useVoiceRecorder({
|
|
32
|
+
onRecordingStarted: function () {
|
|
33
|
+
setVoiceInputState(VoiceMessageInputStatus.RECORDING);
|
|
34
|
+
},
|
|
35
|
+
onRecordingEnded: function (audioFile) {
|
|
36
|
+
setAudioFile(audioFile);
|
|
37
|
+
},
|
|
38
|
+
}), start = _h.start, stop = _h.stop, cancel = _h.cancel, recordingTime = _h.recordingTime, recordingStatus = _h.recordingStatus, recordingLimit = _h.recordingLimit;
|
|
39
|
+
var voicePlayer = useVoicePlayer({
|
|
40
|
+
channelUrl: channel === null || channel === void 0 ? void 0 : channel.url,
|
|
41
|
+
key: uuid,
|
|
42
|
+
audioFile: audioFile,
|
|
43
|
+
});
|
|
44
|
+
var play = voicePlayer.play, pause = voicePlayer.pause, playbackTime = voicePlayer.playbackTime, playingStatus = voicePlayer.playingStatus;
|
|
45
|
+
var stopVoicePlayer = voicePlayer.stop;
|
|
46
|
+
// disabled state: muted & frozen
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
if (isDisabledBecauseFrozen(channel) || isDisabledBecauseMuted(channel)) {
|
|
49
|
+
setDisabled(true);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
setDisabled(false);
|
|
53
|
+
}
|
|
54
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.myRole, channel === null || channel === void 0 ? void 0 : channel.isFrozen, channel === null || channel === void 0 ? void 0 : channel.myMutedState]);
|
|
55
|
+
// call onSubmitClick when submit button is clicked and recorded audio file is created
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
if (isSubmitted && audioFile) {
|
|
58
|
+
onSubmitClick(audioFile, recordingTime);
|
|
59
|
+
setSubmit(false);
|
|
60
|
+
setAudioFile(null);
|
|
61
|
+
}
|
|
62
|
+
}, [isSubmitted, audioFile, recordingTime]);
|
|
63
|
+
// operate which control button should be displayed
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
if (audioFile) {
|
|
66
|
+
if (recordingTime < minRecordingTime) {
|
|
67
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
68
|
+
setAudioFile(null);
|
|
69
|
+
}
|
|
70
|
+
else if (playingStatus === VOICE_PLAYER_STATUS.PLAYING) {
|
|
71
|
+
setVoiceInputState(VoiceMessageInputStatus.PLAYING);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_PLAY);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, [audioFile, recordingTime, playingStatus]);
|
|
78
|
+
return (React__default.createElement("div", { className: "sendbird-voice-message-input-wrapper" },
|
|
79
|
+
React__default.createElement(VoiceMessageInput, { currentValue: recordingStatus === VoiceRecorderStatus.COMPLETED ? playbackTime : recordingTime, maximumValue: recordingStatus === VoiceRecorderStatus.COMPLETED ? recordingTime : recordingLimit, currentType: voiceInputState, onCancelClick: function () {
|
|
80
|
+
onCancelClick();
|
|
81
|
+
cancel();
|
|
82
|
+
stopVoicePlayer();
|
|
83
|
+
}, onSubmitClick: function () {
|
|
84
|
+
if (isDisabled) {
|
|
85
|
+
setShowModal(true);
|
|
86
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
stop();
|
|
90
|
+
pause();
|
|
91
|
+
setSubmit(true);
|
|
92
|
+
}
|
|
93
|
+
}, onControlClick: function (type) {
|
|
94
|
+
switch (type) {
|
|
95
|
+
case VoiceMessageInputStatus.READY_TO_RECORD: {
|
|
96
|
+
stopVoicePlayer();
|
|
97
|
+
start();
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case VoiceMessageInputStatus.RECORDING: {
|
|
101
|
+
if (recordingTime >= minRecordingTime && !isDisabled) {
|
|
102
|
+
stop();
|
|
103
|
+
}
|
|
104
|
+
else if (isDisabled) {
|
|
105
|
+
cancel();
|
|
106
|
+
setShowModal(true);
|
|
107
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
cancel();
|
|
111
|
+
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
case VoiceMessageInputStatus.READY_TO_PLAY: {
|
|
116
|
+
play();
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
case VoiceMessageInputStatus.PLAYING: {
|
|
120
|
+
pause();
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
} }),
|
|
125
|
+
showModal && (React__default.createElement(Modal, { className: "sendbird-voice-message-input-wrapper-alert", titleText: isDisabledBecauseMuted(channel)
|
|
126
|
+
? stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED
|
|
127
|
+
: stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN, hideFooter: true, isCloseOnClickOutside: true, onCancel: function () {
|
|
128
|
+
setShowModal(false);
|
|
129
|
+
onCancelClick();
|
|
130
|
+
} },
|
|
131
|
+
React__default.createElement("div", { className: "sendbird-voice-message-input-wrapper-alert__body" },
|
|
132
|
+
React__default.createElement(Button, { className: "sendbird-voice-message-input-wrapper-alert__body__ok-button", type: ButtonTypes.PRIMARY, size: ButtonSizes.BIG, onClick: function () {
|
|
133
|
+
setShowModal(false);
|
|
134
|
+
onCancelClick();
|
|
135
|
+
} }, stringSet.BUTTON__OK))))));
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var compressImage = function (_a) {
|
|
139
|
+
var imageFile = _a.imageFile, compressionRate = _a.compressionRate, resizingWidth = _a.resizingWidth, resizingHeight = _a.resizingHeight;
|
|
140
|
+
var image = document.createElement('img');
|
|
141
|
+
return new Promise(function (resolve, reject) {
|
|
142
|
+
image.src = URL.createObjectURL(imageFile);
|
|
143
|
+
image.onerror = reject;
|
|
144
|
+
image.onload = function () {
|
|
145
|
+
URL.revokeObjectURL(image.src);
|
|
146
|
+
var canvas = document.createElement('canvas');
|
|
147
|
+
var originWidth = image.width;
|
|
148
|
+
var originHeight = image.height;
|
|
149
|
+
var widthRatio = originWidth / (resizingWidth || originWidth);
|
|
150
|
+
var heightRatio = originHeight / (resizingHeight || originHeight);
|
|
151
|
+
var targetResizingWidth = resizingWidth || originWidth;
|
|
152
|
+
var targetResizingHeight = resizingHeight || originHeight;
|
|
153
|
+
// Use the more impactful value, so the original images' ratio won't be broken
|
|
154
|
+
if (widthRatio > heightRatio) {
|
|
155
|
+
targetResizingHeight = originHeight / (resizingWidth ? widthRatio : 1);
|
|
156
|
+
}
|
|
157
|
+
else if (heightRatio > widthRatio) {
|
|
158
|
+
targetResizingWidth = originWidth / (resizingHeight ? heightRatio : 1);
|
|
159
|
+
}
|
|
160
|
+
canvas.width = targetResizingWidth;
|
|
161
|
+
canvas.height = targetResizingHeight;
|
|
162
|
+
var ctx = canvas.getContext('2d');
|
|
163
|
+
if (!ctx) {
|
|
164
|
+
reject(new Error('Failed to get canvas 2d context'));
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
ctx.drawImage(image, 0, 0, targetResizingWidth, targetResizingHeight);
|
|
168
|
+
ctx.canvas.toBlob(function (blob) {
|
|
169
|
+
if (blob) {
|
|
170
|
+
var file = new File([blob], imageFile.name, { type: imageFile.type });
|
|
171
|
+
resolve(file);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
reject(new Error('Failed to compress image'));
|
|
175
|
+
}
|
|
176
|
+
}, imageFile.type, compressionRate);
|
|
177
|
+
};
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
var compressImages = function (_a) {
|
|
181
|
+
var files = _a.files, logger = _a.logger, imageCompression = _a.imageCompression;
|
|
182
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
+
var compressionRate, resizingWidth, resizingHeight, result;
|
|
184
|
+
return __generator(this, function (_b) {
|
|
185
|
+
switch (_b.label) {
|
|
186
|
+
case 0:
|
|
187
|
+
compressionRate = imageCompression.compressionRate;
|
|
188
|
+
resizingWidth = pxToNumber(imageCompression.resizingWidth);
|
|
189
|
+
resizingHeight = pxToNumber(imageCompression.resizingHeight);
|
|
190
|
+
result = {
|
|
191
|
+
failedIndexes: [],
|
|
192
|
+
compressedFiles: [],
|
|
193
|
+
};
|
|
194
|
+
if (!(Array.isArray(files) && files.length > 0)) {
|
|
195
|
+
logger.warning('utils - compressImages: There are no files.', files);
|
|
196
|
+
return [2 /*return*/, result];
|
|
197
|
+
}
|
|
198
|
+
if (compressionRate < 0 || 1 < compressionRate) {
|
|
199
|
+
logger.warning('utils - compressImages: The compressionRate is not acceptable.', compressionRate);
|
|
200
|
+
return [2 /*return*/, result];
|
|
201
|
+
}
|
|
202
|
+
return [4 /*yield*/, Promise.all(files
|
|
203
|
+
.map(function (file, index) { return __awaiter(void 0, void 0, void 0, function () {
|
|
204
|
+
var compressedImage, err_1;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
if (!(file.type === 'image/jpg' || file.type === 'image/png' || file.type === 'image/jpeg')) {
|
|
209
|
+
logger.warning('utils - compressImages: The fileType is not compressible.', { file: file, index: index });
|
|
210
|
+
result.failedIndexes.push(index);
|
|
211
|
+
result.compressedFiles.push(file);
|
|
212
|
+
return [2 /*return*/];
|
|
213
|
+
}
|
|
214
|
+
_a.label = 1;
|
|
215
|
+
case 1:
|
|
216
|
+
_a.trys.push([1, 3, , 4]);
|
|
217
|
+
return [4 /*yield*/, compressImage({
|
|
218
|
+
imageFile: file,
|
|
219
|
+
compressionRate: compressionRate,
|
|
220
|
+
resizingWidth: resizingWidth,
|
|
221
|
+
resizingHeight: resizingHeight,
|
|
222
|
+
})];
|
|
223
|
+
case 2:
|
|
224
|
+
compressedImage = _a.sent();
|
|
225
|
+
result.compressedFiles.push(compressedImage);
|
|
226
|
+
return [3 /*break*/, 4];
|
|
227
|
+
case 3:
|
|
228
|
+
err_1 = _a.sent();
|
|
229
|
+
result.failedIndexes.push(index);
|
|
230
|
+
logger.warning('utils - compressImages: Failed to compress image file', { err: err_1 });
|
|
231
|
+
return [3 /*break*/, 4];
|
|
232
|
+
case 4: return [2 /*return*/];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}); }))];
|
|
236
|
+
case 1:
|
|
237
|
+
_b.sent();
|
|
238
|
+
logger.info('utils - compressImages: Finished compressing images', result);
|
|
239
|
+
return [2 /*return*/, result];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
var useHandleUploadFiles = function (_a, _b) {
|
|
246
|
+
var sendFileMessage = _a.sendFileMessage, sendMultipleFilesMessage = _a.sendMultipleFilesMessage, quoteMessage = _a.quoteMessage;
|
|
247
|
+
var logger = _b.logger;
|
|
248
|
+
var stringSet = useLocalization().stringSet;
|
|
249
|
+
var config = useSendbirdStateContext().config;
|
|
250
|
+
var imageCompression = config.imageCompression;
|
|
251
|
+
var uikitUploadSizeLimit = config === null || config === void 0 ? void 0 : config.uikitUploadSizeLimit;
|
|
252
|
+
var uikitMultipleFilesMessageLimit = config === null || config === void 0 ? void 0 : config.uikitMultipleFilesMessageLimit;
|
|
253
|
+
var openModal = useGlobalModalContext().openModal;
|
|
254
|
+
var handleUploadFiles = useCallback(function (files) { return __awaiter(void 0, void 0, void 0, function () {
|
|
255
|
+
var ONE_MiB, compressedFiles, sendingFiles, file, imageFiles_1, otherFiles_1;
|
|
256
|
+
return __generator(this, function (_a) {
|
|
257
|
+
switch (_a.label) {
|
|
258
|
+
case 0:
|
|
259
|
+
// Validate Parameters
|
|
260
|
+
if (!sendFileMessage || !sendMultipleFilesMessage) {
|
|
261
|
+
logger.warning('Channel|useHandleUploadFiles: required functions are undefined', { sendFileMessage: sendFileMessage, sendMultipleFilesMessage: sendMultipleFilesMessage });
|
|
262
|
+
return [2 /*return*/];
|
|
263
|
+
}
|
|
264
|
+
if (files.length === 0) {
|
|
265
|
+
logger.warning('Channel|useHandleUploadFiles: given file list is empty.', { files: files });
|
|
266
|
+
return [2 /*return*/];
|
|
267
|
+
}
|
|
268
|
+
if (files.length > uikitMultipleFilesMessageLimit) {
|
|
269
|
+
logger.info("Channel|useHandleUploadFiles: Cannot upload files more than ".concat(uikitMultipleFilesMessageLimit));
|
|
270
|
+
openModal({
|
|
271
|
+
modalProps: {
|
|
272
|
+
titleText: "Up to ".concat(uikitMultipleFilesMessageLimit, " files can be attached."),
|
|
273
|
+
hideFooter: true,
|
|
274
|
+
},
|
|
275
|
+
childElement: function (_a) {
|
|
276
|
+
var closeModal = _a.closeModal;
|
|
277
|
+
return (React__default.createElement(ModalFooter, { type: ButtonTypes.PRIMARY, submitText: stringSet.BUTTON__OK, hideCancelButton: true, onCancel: closeModal, onSubmit: closeModal }));
|
|
278
|
+
},
|
|
279
|
+
});
|
|
280
|
+
return [2 /*return*/];
|
|
281
|
+
}
|
|
282
|
+
// Validate file sizes
|
|
283
|
+
if (files.some(function (file) { return file.size > uikitUploadSizeLimit; })) {
|
|
284
|
+
// The default value of uikitUploadSizeLimit is 26MB
|
|
285
|
+
logger.info("Channel|useHandleUploadFiles: Cannot upload file size exceeding ".concat(uikitUploadSizeLimit));
|
|
286
|
+
ONE_MiB = 1024 * 1024;
|
|
287
|
+
openModal({
|
|
288
|
+
modalProps: {
|
|
289
|
+
titleText: "The maximum size per file is ".concat(Math.floor(uikitUploadSizeLimit / ONE_MiB), " MB."),
|
|
290
|
+
hideFooter: true,
|
|
291
|
+
},
|
|
292
|
+
childElement: function (_a) {
|
|
293
|
+
var closeModal = _a.closeModal;
|
|
294
|
+
return (React__default.createElement(ModalFooter, { type: ButtonTypes.PRIMARY, submitText: stringSet.BUTTON__OK, hideCancelButton: true, onCancel: closeModal, onSubmit: closeModal }));
|
|
295
|
+
},
|
|
296
|
+
});
|
|
297
|
+
return [2 /*return*/];
|
|
298
|
+
}
|
|
299
|
+
return [4 /*yield*/, compressImages({
|
|
300
|
+
files: files,
|
|
301
|
+
imageCompression: imageCompression,
|
|
302
|
+
logger: logger,
|
|
303
|
+
})];
|
|
304
|
+
case 1:
|
|
305
|
+
compressedFiles = (_a.sent()).compressedFiles;
|
|
306
|
+
sendingFiles = compressedFiles;
|
|
307
|
+
// Send File Message
|
|
308
|
+
if (sendingFiles.length === 1) {
|
|
309
|
+
logger.info('Channel|useHandleUploadFiles: sending one file.');
|
|
310
|
+
file = sendingFiles[0];
|
|
311
|
+
sendFileMessage(file, quoteMessage);
|
|
312
|
+
}
|
|
313
|
+
else if (sendingFiles.length > 1) {
|
|
314
|
+
logger.info('Channel|useHandleUploadFiles: sending multiple files.');
|
|
315
|
+
imageFiles_1 = [];
|
|
316
|
+
otherFiles_1 = [];
|
|
317
|
+
sendingFiles.forEach(function (file) {
|
|
318
|
+
if (isImage(file.type)) {
|
|
319
|
+
imageFiles_1.push(file);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
otherFiles_1.push(file);
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
return [2 /*return*/, otherFiles_1.reduce(function (previousPromise, item) {
|
|
326
|
+
return previousPromise.then(function () {
|
|
327
|
+
return sendFileMessage(item, quoteMessage);
|
|
328
|
+
});
|
|
329
|
+
}, (function () {
|
|
330
|
+
if (imageFiles_1.length === 0) {
|
|
331
|
+
return Promise.resolve();
|
|
332
|
+
}
|
|
333
|
+
else if (imageFiles_1.length === 1) {
|
|
334
|
+
return sendFileMessage(imageFiles_1[0], quoteMessage);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
return sendMultipleFilesMessage(imageFiles_1, quoteMessage);
|
|
338
|
+
}
|
|
339
|
+
})())];
|
|
340
|
+
}
|
|
341
|
+
return [2 /*return*/];
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}); }, [
|
|
345
|
+
sendFileMessage,
|
|
346
|
+
sendMultipleFilesMessage,
|
|
347
|
+
quoteMessage,
|
|
348
|
+
]);
|
|
349
|
+
return handleUploadFiles;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export { VoiceMessageInputWrapper as V, useHandleUploadFiles as u };
|
|
353
|
+
//# sourceMappingURL=bundle-_2iSz8ke.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-_2iSz8ke.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-_nlJSeuz.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
2
|
-
import { f as format } from './bundle-
|
|
3
|
-
import { a as isReadMessage } from './bundle-
|
|
1
|
+
import { a as __spreadArray } from './bundle-AVOWwEQ4.js';
|
|
2
|
+
import { f as format } from './bundle-LPkaaUo4.js';
|
|
3
|
+
import { a as isReadMessage } from './bundle-OoXqnc0l.js';
|
|
4
4
|
import { SendingStatus } from '@sendbird/chat/message';
|
|
5
5
|
|
|
6
6
|
var scrollToRenderedMessage = function (scrollRef, initialTimeStamp, setIsScrolled) {
|
|
@@ -143,21 +143,9 @@ var passUnsuccessfullMessages = function (allMessages, newMessage) {
|
|
|
143
143
|
}
|
|
144
144
|
return __spreadArray(__spreadArray([], allMessages, true), [newMessage], false);
|
|
145
145
|
};
|
|
146
|
-
var pxToNumber = function (px) {
|
|
147
|
-
if (typeof px === 'number') {
|
|
148
|
-
return px;
|
|
149
|
-
}
|
|
150
|
-
if (typeof px === 'string') {
|
|
151
|
-
var parsed = Number.parseFloat(px);
|
|
152
|
-
if (!Number.isNaN(parsed)) {
|
|
153
|
-
return parsed;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
};
|
|
158
146
|
var isAboutSame = function (a, b, px) {
|
|
159
147
|
return Math.abs(a - b) <= px;
|
|
160
148
|
};
|
|
161
149
|
|
|
162
|
-
export { scrollToRenderedMessage as a, isDisabledBecauseMuted as b, isOperator as c, isSameGroup as d, isAboutSame as e,
|
|
163
|
-
//# sourceMappingURL=bundle-
|
|
150
|
+
export { scrollToRenderedMessage as a, isDisabledBecauseMuted as b, isOperator as c, isSameGroup as d, isAboutSame as e, getNicknamesMapFromMembers as f, getAllEmojisMapFromEmojiContainer as g, isDisabledBecauseFrozen as i, mergeAndSortMessages as m, passUnsuccessfullMessages as p, scrollIntoLast as s };
|
|
151
|
+
//# sourceMappingURL=bundle-fQ2M7pMu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-fQ2M7pMu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,9 +2,9 @@ import React__default, { useState, useMemo, useEffect } from 'react';
|
|
|
2
2
|
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
3
3
|
import { SendingStatus } from '@sendbird/chat/message';
|
|
4
4
|
import ImageRenderer, { getBorderRadiusForMultipleImageRenderer } from '../ui/ImageRenderer.js';
|
|
5
|
-
import {
|
|
6
|
-
import { F as FileViewer } from './bundle-
|
|
7
|
-
import { K } from './bundle-
|
|
5
|
+
import { n as getClassName, s as isGif, b as isMultipleFilesMessage } from './bundle-OoXqnc0l.js';
|
|
6
|
+
import { F as FileViewer } from './bundle-KaSW5xxP.js';
|
|
7
|
+
import { K } from './bundle-0BwB1B7t.js';
|
|
8
8
|
|
|
9
9
|
function ImageGrid(_a) {
|
|
10
10
|
var _b;
|
|
@@ -170,4 +170,4 @@ var useStatefulFileInfoList = function (message) {
|
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
export { MultipleFilesMessageItemBody as M, ThreadMessageKind as T, useStatefulFileInfoList as a, useThreadMessageKindKeySelector as u };
|
|
173
|
-
//# sourceMappingURL=bundle-
|
|
173
|
+
//# sourceMappingURL=bundle-fbmUkwMs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-fbmUkwMs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import { n as noop } from './bundle-
|
|
4
|
-
import { L as LocalizationContext } from './bundle-
|
|
5
|
-
import { u as useMediaQueryContext } from './bundle-
|
|
3
|
+
import { n as noop } from './bundle-FQAabli1.js';
|
|
4
|
+
import { L as LocalizationContext } from './bundle-GqUhOzeC.js';
|
|
5
|
+
import { u as useMediaQueryContext } from './bundle-QKq7b-WA.js';
|
|
6
6
|
import IconButton from '../ui/IconButton.js';
|
|
7
7
|
import Button, { ButtonTypes } from '../ui/Button.js';
|
|
8
8
|
import Icon, { IconTypes, IconColors } from '../ui/Icon.js';
|
|
9
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from './bundle-
|
|
9
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from './bundle-lDOyfwhb.js';
|
|
10
10
|
|
|
11
11
|
// simple component to be used as modal root
|
|
12
12
|
var MODAL_ROOT = 'sendbird-modal-root';
|
|
@@ -59,4 +59,4 @@ function Modal(props) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export { Modal as M, MODAL_ROOT as a, ModalRoot as b, ModalFooter as c, ModalHeader as d, ModalBody as e };
|
|
62
|
-
//# sourceMappingURL=bundle-
|
|
62
|
+
//# sourceMappingURL=bundle-gYyMZyCn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-gYyMZyCn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-iPDlyZXo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { K } from './bundle-
|
|
3
|
-
import { T as TOKEN_TYPES, U as USER_MENTION_PREFIX, g as getWhiteSpacePreservedText } from './bundle-
|
|
2
|
+
import { K } from './bundle-0BwB1B7t.js';
|
|
3
|
+
import { T as TOKEN_TYPES, U as USER_MENTION_PREFIX, g as getWhiteSpacePreservedText } from './bundle-kPOY92Qs.js';
|
|
4
4
|
import { useMessageContext } from '../Message/context.js';
|
|
5
5
|
import MentionLabel from '../ui/MentionLabel.js';
|
|
6
6
|
import LinkLabel from '../ui/LinkLabel.js';
|
|
7
|
-
import { a as LabelTypography } from './bundle-
|
|
7
|
+
import { a as LabelTypography } from './bundle-lDOyfwhb.js';
|
|
8
8
|
|
|
9
9
|
// this function is used to generate a unique key for token in message
|
|
10
10
|
// it changes with updated time and index
|
|
@@ -33,4 +33,4 @@ function TextFragment(_a) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { TextFragment as T };
|
|
36
|
-
//# sourceMappingURL=bundle-
|
|
36
|
+
//# sourceMappingURL=bundle-jUubN32Z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-jUubN32Z.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { createContext, useReducer, useContext } from 'react';
|
|
2
|
-
import { _ as __assign } from './bundle-
|
|
3
|
-
import { g as VOICE_PLAYER_ROOT_ID,
|
|
2
|
+
import { _ as __assign } from './bundle-AVOWwEQ4.js';
|
|
3
|
+
import { g as VOICE_PLAYER_ROOT_ID, d as VOICE_PLAYER_AUDIO_ID, a as VOICE_MESSAGE_FILE_NAME, b as VOICE_MESSAGE_MIME_TYPE } from './bundle-UjngV2Kp.js';
|
|
4
4
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
5
5
|
|
|
6
6
|
var INITIALIZE_AUDIO_UNIT = 'INITIALIZE_AUDIO_UNIT';
|
|
@@ -227,4 +227,4 @@ var VoicePlayerProvider = function (_a) {
|
|
|
227
227
|
var useVoicePlayerContext = function () { return useContext(Context); };
|
|
228
228
|
|
|
229
229
|
export { AudioUnitDefaultValue as A, VOICE_PLAYER_STATUS as V, ALL as a, VoicePlayerProvider as b, useVoicePlayerContext as u };
|
|
230
|
-
//# sourceMappingURL=bundle-
|
|
230
|
+
//# sourceMappingURL=bundle-kBtT3HBi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-kBtT3HBi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
2
|
-
import {
|
|
1
|
+
import { a as __spreadArray } from './bundle-AVOWwEQ4.js';
|
|
2
|
+
import { L as isUrl } from './bundle-OoXqnc0l.js';
|
|
3
3
|
|
|
4
4
|
var USER_MENTION_PREFIX = '@';
|
|
5
5
|
|
|
@@ -129,4 +129,4 @@ function getWhiteSpacePreservedText(text) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export { TOKEN_TYPES as T, USER_MENTION_PREFIX as U, getWhiteSpacePreservedText as g, tokenizeMessage as t };
|
|
132
|
-
//# sourceMappingURL=bundle-
|
|
132
|
+
//# sourceMappingURL=bundle-kPOY92Qs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-kPOY92Qs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-kaJaYGwQ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __spreadArray } from './bundle-
|
|
1
|
+
import { a as __spreadArray } from './bundle-AVOWwEQ4.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { g as getStringSet } from './bundle-
|
|
3
|
+
import { g as getStringSet } from './bundle-4zdVdGkr.js';
|
|
4
4
|
|
|
5
5
|
var Typography = {
|
|
6
6
|
H_1: 'H_1',
|
|
@@ -75,4 +75,4 @@ var LabelColors = Colors;
|
|
|
75
75
|
var LabelStringSet = getStringSet('en');
|
|
76
76
|
|
|
77
77
|
export { Label as L, LabelTypography as a, LabelColors as b, LabelStringSet as c, changeColorToClassName as d };
|
|
78
|
-
//# sourceMappingURL=bundle-
|
|
78
|
+
//# sourceMappingURL=bundle-lDOyfwhb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-lDOyfwhb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|