@sendbird/uikit-react 3.13.2 → 3.14.0-beta
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 +76 -76
- package/CHANGELOG.md +8 -0
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +64 -64
- package/Channel/components/FileViewer.js +28 -28
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +54 -53
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageFeedbackModal.js +9 -9
- package/Channel/components/MessageInput.js +41 -41
- package/Channel/components/MessageInputWrapper.js +41 -41
- package/Channel/components/MessageList.js +57 -57
- package/Channel/components/RemoveMessageModal.js +27 -27
- package/Channel/components/SuggestedMentionList.js +27 -27
- package/Channel/components/TypingIndicator.js +6 -6
- package/Channel/components/UnreadCount.js +7 -7
- package/Channel/context.js +19 -19
- package/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/Channel/utils/getMessagePartsInfo.js +6 -6
- package/Channel.js +64 -64
- package/ChannelList/components/AddChannel.js +20 -20
- package/ChannelList/components/ChannelListHeader.js +8 -8
- package/ChannelList/components/ChannelListUI.js +34 -34
- package/ChannelList/components/ChannelPreview.js +27 -27
- package/ChannelList/components/ChannelPreviewAction.js +11 -11
- package/ChannelList/context.js +10 -10
- package/ChannelList.js +34 -34
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
- package/ChannelSettings/components/ChannelSettingsUI.js +23 -23
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +21 -21
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +20 -20
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +23 -23
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/InviteUsers.js +16 -16
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +16 -16
- 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/GroupChannel/components/FileViewer.js +23 -23
- package/GroupChannel/components/FrozenNotification.js +5 -5
- package/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/GroupChannel/components/GroupChannelUI.js +59 -59
- package/GroupChannel/components/Message.js +51 -50
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +38 -38
- package/GroupChannel/components/MessageList.js +52 -52
- package/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/GroupChannel/components/TypingIndicator.js +6 -6
- package/GroupChannel/components/UnreadCount.js +7 -7
- package/GroupChannel/context.js +11 -11
- package/GroupChannel.js +59 -59
- package/GroupChannelList/components/AddGroupChannel.js +18 -18
- package/GroupChannelList/components/GroupChannelListHeader.js +8 -8
- package/GroupChannelList/components/GroupChannelListItem.js +24 -24
- package/GroupChannelList/components/GroupChannelListUI.js +33 -33
- package/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
- package/GroupChannelList/context.js +5 -5
- package/GroupChannelList.js +33 -33
- 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 +18 -18
- package/OpenChannel/components/OpenChannelInput.js +25 -25
- package/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/OpenChannel/components/OpenChannelMessageList.js +39 -39
- package/OpenChannel/components/OpenChannelUI.js +39 -39
- package/OpenChannel/context.js +17 -17
- package/OpenChannel.js +39 -39
- 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 +15 -15
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +19 -19
- package/SendbirdProvider.js +103 -73
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +42 -42
- package/Thread/components/ParentMessageInfoItem.js +28 -28
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +46 -46
- package/Thread/components/ThreadListItem.js +46 -46
- package/Thread/components/ThreadMessageInput.js +42 -42
- package/Thread/components/ThreadUI.js +56 -56
- package/Thread/context.js +9 -9
- package/Thread.js +56 -56
- 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-_B5yFEP0.js → bundle-1IYchI7A.js} +2 -2
- package/chunks/bundle-1IYchI7A.js.map +1 -0
- package/chunks/{bundle-BUHwsL2D.js → bundle-33BY7XhN.js} +8 -7
- package/chunks/bundle-33BY7XhN.js.map +1 -0
- package/chunks/{bundle-2g0N2xdw.js → bundle-4YHx3jhU.js} +1 -1
- package/chunks/bundle-4YHx3jhU.js.map +1 -0
- package/chunks/{bundle-D57EENOn.js → bundle-7DqcfMUP.js} +1 -1
- package/chunks/bundle-7DqcfMUP.js.map +1 -0
- package/chunks/{bundle-DIy5BllY.js → bundle-B-5nMQI8.js} +10 -10
- package/chunks/bundle-B-5nMQI8.js.map +1 -0
- package/chunks/{bundle-B_ah2kxT.js → bundle-B0A-GTy2.js} +1 -1
- package/chunks/bundle-B0A-GTy2.js.map +1 -0
- package/chunks/{bundle-B9Jpp9ee.js → bundle-B0hUzTR9.js} +1 -1
- package/chunks/bundle-B0hUzTR9.js.map +1 -0
- package/chunks/{bundle-BIcgVVCw.js → bundle-B9rl4lBQ.js} +11 -11
- package/chunks/{bundle-BIcgVVCw.js.map → bundle-B9rl4lBQ.js.map} +1 -1
- package/chunks/{bundle-CI0ovNa-.js → bundle-BE6Zgv3s.js} +1 -1
- package/chunks/bundle-BE6Zgv3s.js.map +1 -0
- package/chunks/{bundle-CHxXgtL2.js → bundle-BE9YtwxF.js} +1 -1
- package/chunks/bundle-BE9YtwxF.js.map +1 -0
- package/chunks/{bundle-Bm8gzDx1.js → bundle-BFLCbnVa.js} +4 -4
- package/chunks/{bundle-Bm8gzDx1.js.map → bundle-BFLCbnVa.js.map} +1 -1
- package/chunks/{bundle-5rwlX4db.js → bundle-BGPVh26h.js} +2 -2
- package/chunks/{bundle-5rwlX4db.js.map → bundle-BGPVh26h.js.map} +1 -1
- package/chunks/{bundle-BYdjor8f.js → bundle-BRSrznG_.js} +1 -1
- package/chunks/bundle-BRSrznG_.js.map +1 -0
- package/chunks/{bundle-BKPDTl9U.js → bundle-BYjHDpcR.js} +3 -3
- package/chunks/bundle-BYjHDpcR.js.map +1 -0
- package/chunks/{bundle-5E39Cv3A.js → bundle-BcfbcVVS.js} +1 -1
- package/chunks/bundle-BcfbcVVS.js.map +1 -0
- package/chunks/{bundle-ugWtu0YZ.js → bundle-BdJeQIAi.js} +1 -1
- package/chunks/bundle-BdJeQIAi.js.map +1 -0
- package/chunks/{bundle-C9WS75DY.js → bundle-BdnV2Mq3.js} +3 -3
- package/chunks/{bundle-C9WS75DY.js.map → bundle-BdnV2Mq3.js.map} +1 -1
- package/chunks/{bundle-Hl5CUM1x.js → bundle-BegOh-X0.js} +1 -1
- package/chunks/bundle-BegOh-X0.js.map +1 -0
- package/chunks/{bundle-Cb6tbPro.js → bundle-Bhs7U8wE.js} +2 -2
- package/chunks/bundle-Bhs7U8wE.js.map +1 -0
- package/chunks/{bundle-C-UZ_gr4.js → bundle-BiOWvuqq.js} +2 -2
- package/chunks/{bundle-C-UZ_gr4.js.map → bundle-BiOWvuqq.js.map} +1 -1
- package/chunks/{bundle-kO-Z-dxL.js → bundle-BjbYgCW9.js} +1 -1
- package/chunks/bundle-BjbYgCW9.js.map +1 -0
- package/chunks/{bundle-BV8WCwVA.js → bundle-BkNNtN1V.js} +3 -3
- package/chunks/bundle-BkNNtN1V.js.map +1 -0
- package/chunks/{bundle-BRhZt2zf.js → bundle-Blu2Cp4C.js} +1 -1
- package/chunks/{bundle-BRhZt2zf.js.map → bundle-Blu2Cp4C.js.map} +1 -1
- package/chunks/{bundle-BdCGrzcY.js → bundle-Bm9cdQdy.js} +1 -1
- package/chunks/bundle-Bm9cdQdy.js.map +1 -0
- package/chunks/{bundle-Clnr6ml_.js → bundle-BnLycG5g.js} +4 -4
- package/chunks/{bundle-Clnr6ml_.js.map → bundle-BnLycG5g.js.map} +1 -1
- package/chunks/{bundle-D-OF1Dsr.js → bundle-Bo4dNQtg.js} +3 -3
- package/chunks/{bundle-D-OF1Dsr.js.map → bundle-Bo4dNQtg.js.map} +1 -1
- package/chunks/{bundle-D1otjGeL.js → bundle-BqL00V4c.js} +58 -4
- package/{cjs/chunks/bundle-DLgX_uIA.js.map → chunks/bundle-BqL00V4c.js.map} +1 -1
- package/chunks/{bundle-C6MmX70M.js → bundle-Bumce6iI.js} +1 -1
- package/chunks/bundle-Bumce6iI.js.map +1 -0
- package/chunks/{bundle-DT8UMQCr.js → bundle-BydX5Gik.js} +1 -1
- package/chunks/{bundle-DT8UMQCr.js.map → bundle-BydX5Gik.js.map} +1 -1
- package/chunks/{bundle-B1ObaBN3.js → bundle-Byxn68mh.js} +1 -1
- package/chunks/{bundle-B1ObaBN3.js.map → bundle-Byxn68mh.js.map} +1 -1
- package/chunks/{bundle-BEzsjrvw.js → bundle-BzmY6Ioa.js} +6 -6
- package/chunks/bundle-BzmY6Ioa.js.map +1 -0
- package/chunks/{bundle-CIHv_OFc.js → bundle-C-gNLxiH.js} +4 -4
- package/chunks/bundle-C-gNLxiH.js.map +1 -0
- package/chunks/{bundle-BpyUTLY3.js → bundle-C00KC3uY.js} +4 -4
- package/chunks/bundle-C00KC3uY.js.map +1 -0
- package/chunks/{bundle-BZK5eiX2.js → bundle-C1UCPEjT.js} +1 -1
- package/chunks/bundle-C1UCPEjT.js.map +1 -0
- package/chunks/{bundle-Bceke7Nk.js → bundle-CJBaJoMx.js} +7 -7
- package/chunks/bundle-CJBaJoMx.js.map +1 -0
- package/chunks/{bundle-BNL2dgIA.js → bundle-CJxhCCYf.js} +8 -8
- package/chunks/{bundle-BNL2dgIA.js.map → bundle-CJxhCCYf.js.map} +1 -1
- package/chunks/{bundle-CUBnQyTA.js → bundle-CKqBhRZh.js} +1 -1
- package/chunks/{bundle-CUBnQyTA.js.map → bundle-CKqBhRZh.js.map} +1 -1
- package/chunks/{bundle-BqWBruLa.js → bundle-CPlEjTQQ.js} +3 -3
- package/chunks/bundle-CPlEjTQQ.js.map +1 -0
- package/chunks/{bundle-C7SA85dp.js → bundle-CSIi4GHQ.js} +1 -1
- package/chunks/bundle-CSIi4GHQ.js.map +1 -0
- package/chunks/{bundle-B9ZQfJSL.js → bundle-CT8aJQs5.js} +4 -4
- package/chunks/{bundle-B9ZQfJSL.js.map → bundle-CT8aJQs5.js.map} +1 -1
- package/chunks/{bundle-cWhfb441.js → bundle-CWPkjiZ7.js} +1 -1
- package/chunks/bundle-CWPkjiZ7.js.map +1 -0
- package/chunks/{bundle-BlSpe5qA.js → bundle-CWvAVk8m.js} +1 -1
- package/chunks/bundle-CWvAVk8m.js.map +1 -0
- package/chunks/{bundle-D4TIkniH.js → bundle-CZbk43my.js} +3 -3
- package/chunks/{bundle-D4TIkniH.js.map → bundle-CZbk43my.js.map} +1 -1
- package/chunks/{bundle-BgunHZ2y.js → bundle-CbKfkHfl.js} +1 -1
- package/chunks/bundle-CbKfkHfl.js.map +1 -0
- package/chunks/{bundle-BxmlG4s-.js → bundle-Cbag41eX.js} +3 -3
- package/chunks/bundle-Cbag41eX.js.map +1 -0
- package/chunks/{bundle-4bxiD94h.js → bundle-CfcTsxlD.js} +1 -1
- package/chunks/{bundle-4bxiD94h.js.map → bundle-CfcTsxlD.js.map} +1 -1
- package/chunks/{bundle-C6ZHgzD6.js → bundle-CquJpe2n.js} +2 -2
- package/chunks/bundle-CquJpe2n.js.map +1 -0
- package/chunks/{bundle-mkC088ne.js → bundle-CsV5Pqhn.js} +1 -1
- package/chunks/bundle-CsV5Pqhn.js.map +1 -0
- package/chunks/{bundle-Pw0Ofufv.js → bundle-D01F_So9.js} +10 -10
- package/chunks/{bundle-Pw0Ofufv.js.map → bundle-D01F_So9.js.map} +1 -1
- package/chunks/{bundle-CXMfzdI7.js → bundle-D4vlYCrG.js} +1 -1
- package/chunks/bundle-D4vlYCrG.js.map +1 -0
- package/chunks/{bundle-CNInpRIS.js → bundle-D87WTORg.js} +3 -3
- package/chunks/bundle-D87WTORg.js.map +1 -0
- package/chunks/{bundle-RJu3P_iQ.js → bundle-DEPqhDQk.js} +1 -1
- package/chunks/bundle-DEPqhDQk.js.map +1 -0
- package/chunks/{bundle-CtBgDIuq.js → bundle-DEsGEQb8.js} +10 -10
- package/chunks/{bundle-CtBgDIuq.js.map → bundle-DEsGEQb8.js.map} +1 -1
- package/chunks/{bundle-DPRlCjJt.js → bundle-DGSAqfvK.js} +3 -3
- package/chunks/bundle-DGSAqfvK.js.map +1 -0
- package/chunks/{bundle-CcRuHA7i.js → bundle-DKctNGC2.js} +5 -5
- package/chunks/{bundle-CcRuHA7i.js.map → bundle-DKctNGC2.js.map} +1 -1
- package/chunks/{bundle-hAKR7PVp.js → bundle-DM3wUgvd.js} +1 -1
- package/chunks/bundle-DM3wUgvd.js.map +1 -0
- package/chunks/{bundle-Be2HIA26.js → bundle-DPsySdlV.js} +2 -2
- package/chunks/bundle-DPsySdlV.js.map +1 -0
- package/chunks/{bundle-B3KaaIrh.js → bundle-DR5lvmY_.js} +2 -2
- package/chunks/{bundle-B3KaaIrh.js.map → bundle-DR5lvmY_.js.map} +1 -1
- package/chunks/{bundle-TYwaKAYl.js → bundle-DTniwDWL.js} +8 -8
- package/chunks/{bundle-TYwaKAYl.js.map → bundle-DTniwDWL.js.map} +1 -1
- package/chunks/{bundle-DtcJzbuk.js → bundle-DW2UIt7g.js} +1 -1
- package/chunks/bundle-DW2UIt7g.js.map +1 -0
- package/chunks/{bundle-D9xWky57.js → bundle-DaAps-h8.js} +1 -1
- package/chunks/bundle-DaAps-h8.js.map +1 -0
- package/chunks/{bundle-sQj5xACh.js → bundle-DbWpPftJ.js} +5 -5
- package/chunks/bundle-DbWpPftJ.js.map +1 -0
- package/chunks/{bundle-C-35JoOu.js → bundle-Dcg5UJZ5.js} +1 -1
- package/chunks/bundle-Dcg5UJZ5.js.map +1 -0
- package/chunks/{bundle-Bb7wwF7C.js → bundle-Df7uYu02.js} +10 -10
- package/chunks/bundle-Df7uYu02.js.map +1 -0
- package/chunks/{bundle-CU8x_Vlw.js → bundle-DfhDmd9y.js} +1 -1
- package/chunks/bundle-DfhDmd9y.js.map +1 -0
- package/chunks/{bundle-x0WnpBed.js → bundle-Dm1_TUsQ.js} +7 -7
- package/chunks/{bundle-x0WnpBed.js.map → bundle-Dm1_TUsQ.js.map} +1 -1
- package/chunks/{bundle-QPbZ_XSR.js → bundle-DnX0-Kjr.js} +3 -3
- package/chunks/{bundle-QPbZ_XSR.js.map → bundle-DnX0-Kjr.js.map} +1 -1
- package/chunks/{bundle-DIhQqYC5.js → bundle-DqPWGoAJ.js} +6 -6
- package/chunks/bundle-DqPWGoAJ.js.map +1 -0
- package/chunks/{bundle-DdwjYXOX.js → bundle-DrKv7qiU.js} +6 -6
- package/chunks/bundle-DrKv7qiU.js.map +1 -0
- package/chunks/{bundle-DwRQcRou.js → bundle-DyaS04Hg.js} +5 -4
- package/chunks/bundle-DyaS04Hg.js.map +1 -0
- package/chunks/{bundle-Cgtk2LV4.js → bundle-DzD5ZPeu.js} +4 -4
- package/chunks/bundle-DzD5ZPeu.js.map +1 -0
- package/chunks/{bundle-CExm_LIL.js → bundle-FBDSQPhI.js} +14 -14
- package/chunks/{bundle-CExm_LIL.js.map → bundle-FBDSQPhI.js.map} +1 -1
- package/chunks/{bundle-2UMLs1R6.js → bundle-O8OKcGsA.js} +1 -1
- package/chunks/bundle-O8OKcGsA.js.map +1 -0
- package/chunks/{bundle-BkTOcqVY.js → bundle-PoeV4u5o.js} +5 -5
- package/chunks/bundle-PoeV4u5o.js.map +1 -0
- package/chunks/{bundle-OTdL9cWR.js → bundle-Ti1Y75Dm.js} +2 -2
- package/chunks/bundle-Ti1Y75Dm.js.map +1 -0
- package/chunks/{bundle-DzQcMztv.js → bundle-VAV0nvVl.js} +1 -1
- package/chunks/{bundle-DzQcMztv.js.map → bundle-VAV0nvVl.js.map} +1 -1
- package/chunks/{bundle-CBIAPOPy.js → bundle-WT4kbHBE.js} +11 -11
- package/chunks/{bundle-CBIAPOPy.js.map → bundle-WT4kbHBE.js.map} +1 -1
- package/chunks/{bundle-5DiiOFi-.js → bundle-ZJcHeU_o.js} +5 -5
- package/chunks/bundle-ZJcHeU_o.js.map +1 -0
- package/chunks/{bundle-Cm3yLDom.js → bundle-f6zTWcHL.js} +2 -2
- package/chunks/bundle-f6zTWcHL.js.map +1 -0
- package/chunks/{bundle-C6387K33.js → bundle-moA7aUUB.js} +1 -1
- package/chunks/bundle-moA7aUUB.js.map +1 -0
- package/chunks/{bundle-BRedj7J7.js → bundle-tL7Z4efR.js} +2 -2
- package/chunks/{bundle-BRedj7J7.js.map → bundle-tL7Z4efR.js.map} +1 -1
- package/cjs/App.js +76 -76
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +64 -64
- package/cjs/Channel/components/FileViewer.js +28 -28
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +54 -53
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageFeedbackModal.js +9 -9
- package/cjs/Channel/components/MessageInput.js +41 -41
- package/cjs/Channel/components/MessageInputWrapper.js +41 -41
- package/cjs/Channel/components/MessageList.js +58 -58
- package/cjs/Channel/components/RemoveMessageModal.js +27 -27
- package/cjs/Channel/components/SuggestedMentionList.js +27 -27
- package/cjs/Channel/components/TypingIndicator.js +6 -6
- package/cjs/Channel/components/UnreadCount.js +7 -7
- package/cjs/Channel/context.js +19 -19
- package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/cjs/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/cjs/Channel/utils/getMessagePartsInfo.js +6 -6
- package/cjs/Channel.js +64 -64
- package/cjs/ChannelList/components/AddChannel.js +20 -20
- package/cjs/ChannelList/components/ChannelListHeader.js +8 -8
- package/cjs/ChannelList/components/ChannelListUI.js +34 -34
- package/cjs/ChannelList/components/ChannelPreview.js +27 -27
- package/cjs/ChannelList/components/ChannelPreviewAction.js +11 -11
- package/cjs/ChannelList/context.js +10 -10
- package/cjs/ChannelList.js +34 -34
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +23 -23
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +21 -21
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +20 -20
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +23 -23
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/InviteUsers.js +16 -16
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +16 -16
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -11
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/GroupChannel/components/FileViewer.js +23 -23
- package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
- package/cjs/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/cjs/GroupChannel/components/GroupChannelUI.js +59 -59
- package/cjs/GroupChannel/components/Message.js +51 -50
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +37 -37
- package/cjs/GroupChannel/components/MessageList.js +53 -53
- package/cjs/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
- package/cjs/GroupChannel/components/UnreadCount.js +7 -7
- package/cjs/GroupChannel/context.js +11 -11
- package/cjs/GroupChannel.js +59 -59
- package/cjs/GroupChannelList/components/AddGroupChannel.js +18 -18
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +8 -8
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +24 -24
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +33 -33
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
- package/cjs/GroupChannelList/context.js +5 -5
- package/cjs/GroupChannelList.js +33 -33
- 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 +18 -18
- package/cjs/OpenChannel/components/OpenChannelInput.js +25 -25
- package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +39 -39
- package/cjs/OpenChannel/components/OpenChannelUI.js +39 -39
- package/cjs/OpenChannel/context.js +17 -17
- package/cjs/OpenChannel.js +39 -39
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -14
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +19 -19
- package/cjs/SendbirdProvider.js +103 -73
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +42 -42
- package/cjs/Thread/components/ParentMessageInfoItem.js +28 -28
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +46 -46
- package/cjs/Thread/components/ThreadListItem.js +46 -46
- package/cjs/Thread/components/ThreadMessageInput.js +42 -42
- package/cjs/Thread/components/ThreadUI.js +56 -56
- package/cjs/Thread/context.js +9 -9
- package/cjs/Thread.js +56 -56
- 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-BkYT_Hch.js → bundle-0dm-rZLh.js} +3 -3
- package/cjs/chunks/bundle-0dm-rZLh.js.map +1 -0
- package/cjs/chunks/{bundle-CHVN5sv2.js → bundle-2pxnOYL4.js} +4 -4
- package/cjs/chunks/{bundle-CHVN5sv2.js.map → bundle-2pxnOYL4.js.map} +1 -1
- package/cjs/chunks/{bundle-KR9lSala.js → bundle-3HPlnxkl.js} +3 -3
- package/cjs/chunks/bundle-3HPlnxkl.js.map +1 -0
- package/cjs/chunks/{bundle-BQtI4UIy.js → bundle-6RaeE_-7.js} +1 -1
- package/cjs/chunks/bundle-6RaeE_-7.js.map +1 -0
- package/cjs/chunks/{bundle-xaau8Z4q.js → bundle-AxW84oGr.js} +1 -1
- package/cjs/chunks/bundle-AxW84oGr.js.map +1 -0
- package/cjs/chunks/{bundle-WZOflhxA.js → bundle-B212ojpX.js} +2 -2
- package/cjs/chunks/{bundle-WZOflhxA.js.map → bundle-B212ojpX.js.map} +1 -1
- package/cjs/chunks/{bundle-DLgX_uIA.js → bundle-B3gE4-sg.js} +60 -3
- package/{chunks/bundle-D1otjGeL.js.map → cjs/chunks/bundle-B3gE4-sg.js.map} +1 -1
- package/cjs/chunks/{bundle-Dp2kRPpd.js → bundle-B5RW0yuQ.js} +1 -1
- package/cjs/chunks/bundle-B5RW0yuQ.js.map +1 -0
- package/cjs/chunks/{bundle-CfYRwgks.js → bundle-B5pxZS7a.js} +1 -1
- package/cjs/chunks/bundle-B5pxZS7a.js.map +1 -0
- package/cjs/chunks/{bundle-UJc1wb2l.js → bundle-BANWV5X0.js} +4 -4
- package/cjs/chunks/{bundle-UJc1wb2l.js.map → bundle-BANWV5X0.js.map} +1 -1
- package/cjs/chunks/{bundle-D_4vATFJ.js → bundle-BDDfcS3c.js} +1 -1
- package/cjs/chunks/bundle-BDDfcS3c.js.map +1 -0
- package/cjs/chunks/{bundle-DA7uhOAM.js → bundle-BIaA_1Gt.js} +1 -1
- package/cjs/chunks/bundle-BIaA_1Gt.js.map +1 -0
- package/cjs/chunks/{bundle-DLg-6Upp.js → bundle-BKMGAY2l.js} +2 -2
- package/cjs/chunks/{bundle-DLg-6Upp.js.map → bundle-BKMGAY2l.js.map} +1 -1
- package/cjs/chunks/{bundle-DWp3JSCd.js → bundle-BPcaLWyG.js} +1 -1
- package/cjs/chunks/bundle-BPcaLWyG.js.map +1 -0
- package/cjs/chunks/{bundle-Dj0eVVGW.js → bundle-BQc8sm8f.js} +10 -10
- package/cjs/chunks/bundle-BQc8sm8f.js.map +1 -0
- package/cjs/chunks/{bundle-CWXfgOJy.js → bundle-BR4VteQq.js} +2 -2
- package/cjs/chunks/bundle-BR4VteQq.js.map +1 -0
- package/cjs/chunks/{bundle-Ud8W92re.js → bundle-BSTb1mFt.js} +5 -5
- package/cjs/chunks/bundle-BSTb1mFt.js.map +1 -0
- package/cjs/chunks/{bundle-Cwr1hx-z.js → bundle-BUBaSa_-.js} +11 -11
- package/cjs/chunks/{bundle-Cwr1hx-z.js.map → bundle-BUBaSa_-.js.map} +1 -1
- package/cjs/chunks/{bundle-BO2p70mH.js → bundle-BZByKaLs.js} +1 -1
- package/cjs/chunks/bundle-BZByKaLs.js.map +1 -0
- package/cjs/chunks/{bundle-CaUIrp6R.js → bundle-BZYotRJz.js} +1 -1
- package/cjs/chunks/bundle-BZYotRJz.js.map +1 -0
- package/cjs/chunks/{bundle-CGBPEEGS.js → bundle-BZyYPaEv.js} +1 -1
- package/cjs/chunks/{bundle-CGBPEEGS.js.map → bundle-BZyYPaEv.js.map} +1 -1
- package/cjs/chunks/{bundle-qJ5-0bqN.js → bundle-Bc_3JLZG.js} +3 -3
- package/cjs/chunks/bundle-Bc_3JLZG.js.map +1 -0
- package/cjs/chunks/{bundle-CxuGQxaT.js → bundle-Bd5-Auhd.js} +1 -1
- package/cjs/chunks/bundle-Bd5-Auhd.js.map +1 -0
- package/cjs/chunks/{bundle-B_CGu6U0.js → bundle-BdG7Rc1R.js} +5 -5
- package/cjs/chunks/{bundle-B_CGu6U0.js.map → bundle-BdG7Rc1R.js.map} +1 -1
- package/cjs/chunks/{bundle-DF3rT3ak.js → bundle-BfLBf8rb.js} +4 -4
- package/cjs/chunks/bundle-BfLBf8rb.js.map +1 -0
- package/cjs/chunks/{bundle-CyopFRXm.js → bundle-BhRPdcn-.js} +1 -1
- package/cjs/chunks/{bundle-CyopFRXm.js.map → bundle-BhRPdcn-.js.map} +1 -1
- package/cjs/chunks/{bundle-DgX9o5Mt.js → bundle-BkrtMQxo.js} +1 -1
- package/cjs/chunks/bundle-BkrtMQxo.js.map +1 -0
- package/cjs/chunks/{bundle-BC16qA15.js → bundle-BmOkcO1e.js} +1 -1
- package/cjs/chunks/bundle-BmOkcO1e.js.map +1 -0
- package/cjs/chunks/{bundle-B2QAlKH1.js → bundle-BubTAoq5.js} +4 -4
- package/cjs/chunks/{bundle-B2QAlKH1.js.map → bundle-BubTAoq5.js.map} +1 -1
- package/cjs/chunks/{bundle-RH9DajrH.js → bundle-BwwA3giM.js} +3 -3
- package/cjs/chunks/bundle-BwwA3giM.js.map +1 -0
- package/cjs/chunks/{bundle-Bln5Elhn.js → bundle-ByYRydtT.js} +1 -1
- package/cjs/chunks/bundle-ByYRydtT.js.map +1 -0
- package/cjs/chunks/{bundle-3-9K7DVM.js → bundle-C1YOhOl2.js} +6 -6
- package/cjs/chunks/bundle-C1YOhOl2.js.map +1 -0
- package/cjs/chunks/{bundle-CkG1F8lG.js → bundle-C2ABFLZ1.js} +2 -2
- package/cjs/chunks/bundle-C2ABFLZ1.js.map +1 -0
- package/cjs/chunks/{bundle-DG1IpvjA.js → bundle-C3gIbns_.js} +10 -10
- package/cjs/chunks/bundle-C3gIbns_.js.map +1 -0
- package/cjs/chunks/{bundle-CJ87J3R1.js → bundle-C9xOwqge.js} +3 -3
- package/cjs/chunks/bundle-C9xOwqge.js.map +1 -0
- package/cjs/chunks/{bundle-BfzgaLQx.js → bundle-CCEKPtKR.js} +1 -1
- package/cjs/chunks/bundle-CCEKPtKR.js.map +1 -0
- package/cjs/chunks/{bundle--Ti8q5z8.js → bundle-CMoYluZj.js} +4 -4
- package/cjs/chunks/bundle-CMoYluZj.js.map +1 -0
- package/cjs/chunks/{bundle-BEQWEQgH.js → bundle-CSfRc5hY.js} +3 -3
- package/cjs/chunks/bundle-CSfRc5hY.js.map +1 -0
- package/cjs/chunks/{bundle-udIHWjxi.js → bundle-CYBu-C6E.js} +1 -1
- package/cjs/chunks/bundle-CYBu-C6E.js.map +1 -0
- package/cjs/chunks/{bundle-Dwy0Hf3u.js → bundle-CfxDEtAN.js} +10 -10
- package/cjs/chunks/bundle-CfxDEtAN.js.map +1 -0
- package/cjs/chunks/{bundle-JKeFsVQp.js → bundle-Chu9Um5P.js} +1 -1
- package/cjs/chunks/bundle-Chu9Um5P.js.map +1 -0
- package/cjs/chunks/{bundle-BgCtP7V4.js → bundle-CidVlBMl.js} +9 -7
- package/cjs/chunks/bundle-CidVlBMl.js.map +1 -0
- package/cjs/chunks/{bundle-BYp2_-p_.js → bundle-Cl34HO9m.js} +5 -5
- package/cjs/chunks/bundle-Cl34HO9m.js.map +1 -0
- package/cjs/chunks/{bundle-DQM5RZ7p.js → bundle-Crhw0Zu1.js} +1 -1
- package/cjs/chunks/bundle-Crhw0Zu1.js.map +1 -0
- package/cjs/chunks/{bundle-DqysFYzQ.js → bundle-CsCGO7nq.js} +2 -2
- package/cjs/chunks/bundle-CsCGO7nq.js.map +1 -0
- package/cjs/chunks/{bundle-C11HvpZq.js → bundle-CtfNcymC.js} +1 -1
- package/cjs/chunks/bundle-CtfNcymC.js.map +1 -0
- package/cjs/chunks/{bundle-CEMPv2S1.js → bundle-CuhtyPjN.js} +1 -1
- package/cjs/chunks/bundle-CuhtyPjN.js.map +1 -0
- package/cjs/chunks/{bundle-BTsTFHLV.js → bundle-DDM7FQ5E.js} +7 -7
- package/cjs/chunks/bundle-DDM7FQ5E.js.map +1 -0
- package/cjs/chunks/{bundle-C4s5Xn-0.js → bundle-DDSkFKJ4.js} +1 -1
- package/cjs/chunks/bundle-DDSkFKJ4.js.map +1 -0
- package/cjs/chunks/{bundle-BruXgSj3.js → bundle-DEQCIOPf.js} +1 -1
- package/cjs/chunks/bundle-DEQCIOPf.js.map +1 -0
- package/cjs/chunks/{bundle-DwpBeRp2.js → bundle-DJbEnul6.js} +6 -6
- package/cjs/chunks/bundle-DJbEnul6.js.map +1 -0
- package/cjs/chunks/{bundle-XCOUGtdD.js → bundle-DLZ9iVVC.js} +3 -3
- package/cjs/chunks/bundle-DLZ9iVVC.js.map +1 -0
- package/cjs/chunks/{bundle-BcQPY3B6.js → bundle-DPFRrny4.js} +2 -2
- package/cjs/chunks/bundle-DPFRrny4.js.map +1 -0
- package/cjs/chunks/{bundle-Drfn-tNj.js → bundle-DP_Z2ZCu.js} +2 -2
- package/cjs/chunks/bundle-DP_Z2ZCu.js.map +1 -0
- package/cjs/chunks/{bundle-gSaGPkzz.js → bundle-DUThNjHI.js} +3 -3
- package/cjs/chunks/{bundle-gSaGPkzz.js.map → bundle-DUThNjHI.js.map} +1 -1
- package/cjs/chunks/{bundle-CD82WkIi.js → bundle-DhbE_hFO.js} +1 -1
- package/cjs/chunks/bundle-DhbE_hFO.js.map +1 -0
- package/cjs/chunks/{bundle-VqK6Sgiy.js → bundle-Di5APzpg.js} +5 -4
- package/cjs/chunks/bundle-Di5APzpg.js.map +1 -0
- package/cjs/chunks/{bundle-BodKdXyG.js → bundle-DpgtZXbp.js} +14 -14
- package/cjs/chunks/{bundle-BodKdXyG.js.map → bundle-DpgtZXbp.js.map} +1 -1
- package/cjs/chunks/{bundle-BbpNwwR8.js → bundle-DytUGiju.js} +2 -2
- package/cjs/chunks/bundle-DytUGiju.js.map +1 -0
- package/cjs/chunks/{bundle-CTjNx2bJ.js → bundle-EroNh7Ac.js} +1 -1
- package/cjs/chunks/bundle-EroNh7Ac.js.map +1 -0
- package/cjs/chunks/{bundle-B-wprLUV.js → bundle-FDJnhm3r.js} +1 -1
- package/cjs/chunks/{bundle-B-wprLUV.js.map → bundle-FDJnhm3r.js.map} +1 -1
- package/cjs/chunks/{bundle-DIvM3-on.js → bundle-G2_KR7Mu.js} +7 -7
- package/cjs/chunks/bundle-G2_KR7Mu.js.map +1 -0
- package/cjs/chunks/{bundle-nu9oFcYy.js → bundle-GZJzVB02.js} +4 -4
- package/cjs/chunks/bundle-GZJzVB02.js.map +1 -0
- package/cjs/chunks/{bundle-D1EDPlQX.js → bundle-HLR6JcDU.js} +1 -1
- package/cjs/chunks/bundle-HLR6JcDU.js.map +1 -0
- package/cjs/chunks/{bundle-DnF-KuhG.js → bundle-Ht75_VEx.js} +2 -2
- package/cjs/chunks/bundle-Ht75_VEx.js.map +1 -0
- package/cjs/chunks/{bundle-D-izgOCe.js → bundle-MdWTpHE3.js} +8 -8
- package/cjs/chunks/bundle-MdWTpHE3.js.map +1 -0
- package/cjs/chunks/{bundle-7Mbs7JEn.js → bundle-NgDLJ4XU.js} +3 -3
- package/cjs/chunks/bundle-NgDLJ4XU.js.map +1 -0
- package/cjs/chunks/{bundle-FLujzEX2.js → bundle-UNBazgOP.js} +11 -11
- package/cjs/chunks/bundle-UNBazgOP.js.map +1 -0
- package/cjs/chunks/{bundle-D8ubAia5.js → bundle-XHpUo2d5.js} +6 -6
- package/cjs/chunks/bundle-XHpUo2d5.js.map +1 -0
- package/cjs/chunks/{bundle-D9rC4yPj.js → bundle-cjfTIYNo.js} +1 -1
- package/cjs/chunks/bundle-cjfTIYNo.js.map +1 -0
- package/cjs/chunks/{bundle-BxER_OfA.js → bundle-jp-5eI5e.js} +3 -3
- package/cjs/chunks/bundle-jp-5eI5e.js.map +1 -0
- package/cjs/chunks/{bundle-CEN95Xmn.js → bundle-lXC5D8Eq.js} +1 -1
- package/cjs/chunks/bundle-lXC5D8Eq.js.map +1 -0
- package/cjs/chunks/{bundle-WCt_Po-w.js → bundle-lf9AeIkc.js} +3 -3
- package/cjs/chunks/{bundle-WCt_Po-w.js.map → bundle-lf9AeIkc.js.map} +1 -1
- package/cjs/chunks/{bundle-Cn_c8gj0.js → bundle-mNfA1oxo.js} +8 -8
- package/cjs/chunks/{bundle-Cn_c8gj0.js.map → bundle-mNfA1oxo.js.map} +1 -1
- package/cjs/chunks/{bundle-CHI5iCph.js → bundle-pYqgDFla.js} +1 -1
- package/cjs/chunks/bundle-pYqgDFla.js.map +1 -0
- package/cjs/chunks/{bundle-DTcE7Dci.js → bundle-tK8yFMGZ.js} +5 -5
- package/cjs/chunks/bundle-tK8yFMGZ.js.map +1 -0
- package/cjs/chunks/{bundle-CwGDa8mu.js → bundle-uIEHfPv7.js} +1 -1
- package/cjs/chunks/bundle-uIEHfPv7.js.map +1 -0
- package/cjs/chunks/{bundle-UDIPXpOV.js → bundle-viPU2Zrj.js} +1 -1
- package/cjs/chunks/bundle-viPU2Zrj.js.map +1 -0
- package/cjs/chunks/{bundle-Dj2Oa2F6.js → bundle-wwwDjH0w.js} +1 -1
- package/cjs/chunks/{bundle-Dj2Oa2F6.js.map → bundle-wwwDjH0w.js.map} +1 -1
- package/cjs/chunks/{bundle-BcZEQhhq.js → bundle-z66HeEp3.js} +1 -1
- package/cjs/chunks/bundle-z66HeEp3.js.map +1 -0
- package/cjs/chunks/{bundle-C2yYR5hZ.js → bundle-zUlseH3U.js} +10 -10
- package/cjs/chunks/{bundle-C2yYR5hZ.js.map → bundle-zUlseH3U.js.map} +1 -1
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +82 -82
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- 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 +4 -4
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +9 -9
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/Carousel.js +194 -0
- package/cjs/ui/Carousel.js.map +1 -0
- package/cjs/ui/ChannelAvatar.js +5 -5
- 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 +16 -16
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +8 -8
- package/cjs/ui/FileViewer.js +15 -15
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +2 -2
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +4 -3
- package/cjs/ui/Label.js.map +1 -1
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
- package/cjs/ui/MentionLabel.js +13 -13
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +232 -189
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +15 -15
- package/cjs/ui/MessageItemMenu.js +10 -10
- package/cjs/ui/MessageItemReactionMenu.js +9 -9
- package/cjs/ui/MessageSearchFileItem.js +14 -14
- package/cjs/ui/MessageSearchItem.js +11 -11
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/MessageTemplate.js +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +9 -9
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +16 -16
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -8
- package/cjs/ui/OpenchannelConversationHeader.js +8 -8
- 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/TemplateMessageItemBody.js +218 -78
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +16 -16
- package/cjs/ui/ThreadReplies.js +16 -12
- package/cjs/ui/ThreadReplies.js.map +1 -1
- 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/TypingIndicatorBubble.js +4 -4
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/Word.js +13 -13
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +64 -19
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +81 -81
- package/package.json +11 -2
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/lib/dux/appInfo/actionTypes.d.ts +9 -8
- package/types/lib/dux/appInfo/initialState.d.ts +1 -1
- package/types/lib/dux/appInfo/utils.d.ts +1 -1
- package/types/lib/hooks/useMessageTemplateUtils.d.ts +1 -1
- package/types/lib/types.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageTemplateWrapper/index.d.ts +2 -2
- package/types/types.d.ts +5 -0
- package/types/ui/Avatar/index.d.ts +1 -0
- package/types/ui/Carousel/index.d.ts +9 -0
- package/types/ui/Label/index.d.ts +4 -2
- package/types/ui/MessageContent/MessageBody/index.d.ts +1 -1
- package/types/ui/MessageContent/MessageProfile/index.d.ts +1 -0
- package/types/ui/MessageContent/index.d.ts +2 -2
- package/types/ui/MessageTemplate/messageTemplateErrorBoundary.d.ts +19 -0
- package/types/ui/TemplateMessageItemBody/index.d.ts +1 -0
- package/types/ui/TemplateMessageItemBody/types.d.ts +13 -3
- package/types/ui/TemplateMessageItemBody/utils/selectColorVariablesByTheme.d.ts +2 -2
- package/types/ui/ThreadReplies/index.d.ts +4 -2
- package/types/utils/index.d.ts +13 -0
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +9 -9
- package/ui/Button.js +3 -3
- package/ui/Carousel.js +189 -0
- package/ui/Carousel.js.map +1 -0
- 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 +16 -16
- package/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +15 -15
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +2 -2
- 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/LoadingTemplateMessageItemBody.tsx.js +4 -4
- package/ui/MentionLabel.js +13 -13
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +233 -190
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +15 -15
- package/ui/MessageItemMenu.js +10 -10
- 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/MessageTemplate.js +1 -1
- package/ui/MobileFeedbackMenu.js +9 -9
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +16 -16
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- package/ui/OpenchannelFileMessage.js +18 -18
- package/ui/OpenchannelOGMessage.js +20 -20
- package/ui/OpenchannelThumbnailMessage.js +17 -17
- package/ui/OpenchannelUserMessage.js +18 -18
- 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/TemplateMessageItemBody.js +219 -79
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +13 -12
- package/ui/ThreadReplies.js.map +1 -1
- 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/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +13 -13
- package/ui/UserProfile.js +10 -10
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/Word.js +13 -13
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle-2UMLs1R6.js.map +0 -1
- package/chunks/bundle-2g0N2xdw.js.map +0 -1
- package/chunks/bundle-5DiiOFi-.js.map +0 -1
- package/chunks/bundle-5E39Cv3A.js.map +0 -1
- package/chunks/bundle-B1v1xIP1.js +0 -8
- package/chunks/bundle-B1v1xIP1.js.map +0 -1
- package/chunks/bundle-B9Jpp9ee.js.map +0 -1
- package/chunks/bundle-BEzsjrvw.js.map +0 -1
- package/chunks/bundle-BKPDTl9U.js.map +0 -1
- package/chunks/bundle-BUHwsL2D.js.map +0 -1
- package/chunks/bundle-BV8WCwVA.js.map +0 -1
- package/chunks/bundle-BYdjor8f.js.map +0 -1
- package/chunks/bundle-BZK5eiX2.js.map +0 -1
- package/chunks/bundle-B_ah2kxT.js.map +0 -1
- package/chunks/bundle-Bb7wwF7C.js.map +0 -1
- package/chunks/bundle-Bceke7Nk.js.map +0 -1
- package/chunks/bundle-BdCGrzcY.js.map +0 -1
- package/chunks/bundle-Be2HIA26.js.map +0 -1
- package/chunks/bundle-BgunHZ2y.js.map +0 -1
- package/chunks/bundle-BkTOcqVY.js.map +0 -1
- package/chunks/bundle-BlSpe5qA.js.map +0 -1
- package/chunks/bundle-BpyUTLY3.js.map +0 -1
- package/chunks/bundle-BqWBruLa.js.map +0 -1
- package/chunks/bundle-BxmlG4s-.js.map +0 -1
- package/chunks/bundle-C-35JoOu.js.map +0 -1
- package/chunks/bundle-C6387K33.js.map +0 -1
- package/chunks/bundle-C6MmX70M.js.map +0 -1
- package/chunks/bundle-C6ZHgzD6.js.map +0 -1
- package/chunks/bundle-C7SA85dp.js.map +0 -1
- package/chunks/bundle-CHxXgtL2.js.map +0 -1
- package/chunks/bundle-CI0ovNa-.js.map +0 -1
- package/chunks/bundle-CIHv_OFc.js.map +0 -1
- package/chunks/bundle-CNInpRIS.js.map +0 -1
- package/chunks/bundle-CU8x_Vlw.js.map +0 -1
- package/chunks/bundle-CXMfzdI7.js.map +0 -1
- package/chunks/bundle-Cb6tbPro.js.map +0 -1
- package/chunks/bundle-Cgtk2LV4.js.map +0 -1
- package/chunks/bundle-Cm3yLDom.js.map +0 -1
- package/chunks/bundle-D57EENOn.js.map +0 -1
- package/chunks/bundle-D9xWky57.js.map +0 -1
- package/chunks/bundle-DIhQqYC5.js.map +0 -1
- package/chunks/bundle-DIy5BllY.js.map +0 -1
- package/chunks/bundle-DPRlCjJt.js.map +0 -1
- package/chunks/bundle-DdwjYXOX.js.map +0 -1
- package/chunks/bundle-DtcJzbuk.js.map +0 -1
- package/chunks/bundle-DwRQcRou.js.map +0 -1
- package/chunks/bundle-Hl5CUM1x.js.map +0 -1
- package/chunks/bundle-OTdL9cWR.js.map +0 -1
- package/chunks/bundle-RJu3P_iQ.js.map +0 -1
- package/chunks/bundle-_B5yFEP0.js.map +0 -1
- package/chunks/bundle-cWhfb441.js.map +0 -1
- package/chunks/bundle-hAKR7PVp.js.map +0 -1
- package/chunks/bundle-kO-Z-dxL.js.map +0 -1
- package/chunks/bundle-mkC088ne.js.map +0 -1
- package/chunks/bundle-sQj5xACh.js.map +0 -1
- package/chunks/bundle-ugWtu0YZ.js.map +0 -1
- package/cjs/chunks/bundle--Ti8q5z8.js.map +0 -1
- package/cjs/chunks/bundle-3-9K7DVM.js.map +0 -1
- package/cjs/chunks/bundle-7Mbs7JEn.js.map +0 -1
- package/cjs/chunks/bundle-BC16qA15.js.map +0 -1
- package/cjs/chunks/bundle-BEQWEQgH.js.map +0 -1
- package/cjs/chunks/bundle-BO2p70mH.js.map +0 -1
- package/cjs/chunks/bundle-BQtI4UIy.js.map +0 -1
- package/cjs/chunks/bundle-BTsTFHLV.js.map +0 -1
- package/cjs/chunks/bundle-BYp2_-p_.js.map +0 -1
- package/cjs/chunks/bundle-BbpNwwR8.js.map +0 -1
- package/cjs/chunks/bundle-BcQPY3B6.js.map +0 -1
- package/cjs/chunks/bundle-BcZEQhhq.js.map +0 -1
- package/cjs/chunks/bundle-BfzgaLQx.js.map +0 -1
- package/cjs/chunks/bundle-BgCtP7V4.js.map +0 -1
- package/cjs/chunks/bundle-BkYT_Hch.js.map +0 -1
- package/cjs/chunks/bundle-Bln5Elhn.js.map +0 -1
- package/cjs/chunks/bundle-BruXgSj3.js.map +0 -1
- package/cjs/chunks/bundle-BxER_OfA.js.map +0 -1
- package/cjs/chunks/bundle-C11HvpZq.js.map +0 -1
- package/cjs/chunks/bundle-C4s5Xn-0.js.map +0 -1
- package/cjs/chunks/bundle-CD82WkIi.js.map +0 -1
- package/cjs/chunks/bundle-CEMPv2S1.js.map +0 -1
- package/cjs/chunks/bundle-CEN95Xmn.js.map +0 -1
- package/cjs/chunks/bundle-CHI5iCph.js.map +0 -1
- package/cjs/chunks/bundle-CJ87J3R1.js.map +0 -1
- package/cjs/chunks/bundle-CTjNx2bJ.js.map +0 -1
- package/cjs/chunks/bundle-CWXfgOJy.js.map +0 -1
- package/cjs/chunks/bundle-CaUIrp6R.js.map +0 -1
- package/cjs/chunks/bundle-CfYRwgks.js.map +0 -1
- package/cjs/chunks/bundle-CjWn0S2s.js +0 -8
- package/cjs/chunks/bundle-CjWn0S2s.js.map +0 -1
- package/cjs/chunks/bundle-CkG1F8lG.js.map +0 -1
- package/cjs/chunks/bundle-CwGDa8mu.js.map +0 -1
- package/cjs/chunks/bundle-CxuGQxaT.js.map +0 -1
- package/cjs/chunks/bundle-D-izgOCe.js.map +0 -1
- package/cjs/chunks/bundle-D1EDPlQX.js.map +0 -1
- package/cjs/chunks/bundle-D8ubAia5.js.map +0 -1
- package/cjs/chunks/bundle-D9rC4yPj.js.map +0 -1
- package/cjs/chunks/bundle-DA7uhOAM.js.map +0 -1
- package/cjs/chunks/bundle-DF3rT3ak.js.map +0 -1
- package/cjs/chunks/bundle-DG1IpvjA.js.map +0 -1
- package/cjs/chunks/bundle-DIvM3-on.js.map +0 -1
- package/cjs/chunks/bundle-DQM5RZ7p.js.map +0 -1
- package/cjs/chunks/bundle-DTcE7Dci.js.map +0 -1
- package/cjs/chunks/bundle-DWp3JSCd.js.map +0 -1
- package/cjs/chunks/bundle-D_4vATFJ.js.map +0 -1
- package/cjs/chunks/bundle-DgX9o5Mt.js.map +0 -1
- package/cjs/chunks/bundle-Dj0eVVGW.js.map +0 -1
- package/cjs/chunks/bundle-DnF-KuhG.js.map +0 -1
- package/cjs/chunks/bundle-Dp2kRPpd.js.map +0 -1
- package/cjs/chunks/bundle-DqysFYzQ.js.map +0 -1
- package/cjs/chunks/bundle-Drfn-tNj.js.map +0 -1
- package/cjs/chunks/bundle-DwpBeRp2.js.map +0 -1
- package/cjs/chunks/bundle-Dwy0Hf3u.js.map +0 -1
- package/cjs/chunks/bundle-FLujzEX2.js.map +0 -1
- package/cjs/chunks/bundle-JKeFsVQp.js.map +0 -1
- package/cjs/chunks/bundle-KR9lSala.js.map +0 -1
- package/cjs/chunks/bundle-RH9DajrH.js.map +0 -1
- package/cjs/chunks/bundle-UDIPXpOV.js.map +0 -1
- package/cjs/chunks/bundle-Ud8W92re.js.map +0 -1
- package/cjs/chunks/bundle-VqK6Sgiy.js.map +0 -1
- package/cjs/chunks/bundle-XCOUGtdD.js.map +0 -1
- package/cjs/chunks/bundle-nu9oFcYy.js.map +0 -1
- package/cjs/chunks/bundle-qJ5-0bqN.js.map +0 -1
- package/cjs/chunks/bundle-udIHWjxi.js.map +0 -1
- package/cjs/chunks/bundle-xaau8Z4q.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { c as __spreadArray, _ as __assign } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray, _ as __assign } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default, { useContext, useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { f as format } from '../chunks/bundle-
|
|
4
|
-
import { A as Avatar } from '../chunks/bundle-
|
|
3
|
+
import { f as format } from '../chunks/bundle-BGPVh26h.js';
|
|
4
|
+
import { A as Avatar } from '../chunks/bundle-DyaS04Hg.js';
|
|
5
5
|
import ContextMenu, { MenuItems, MenuItem } from './ContextMenu.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
7
7
|
import IconButton from './IconButton.js';
|
|
8
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
8
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
9
9
|
import Loader from './Loader.js';
|
|
10
10
|
import UserProfile from './UserProfile.js';
|
|
11
|
-
import { a as UserProfileContext } from '../chunks/bundle-
|
|
12
|
-
import { u as useLocalization } from '../chunks/bundle-
|
|
13
|
-
import { c as copyToClipboard } from '../chunks/bundle-
|
|
14
|
-
import { u as uuidv4 } from '../chunks/bundle-
|
|
15
|
-
import { g as getSenderFromMessage, s as showMenuTrigger, i as isFineCopy, a as isFineEdit, b as isFineResend, c as isFineDelete, O as OpenChannelMobileMenu, d as checkIsPending, e as checkIsFailed } from '../chunks/bundle-
|
|
16
|
-
import { u as useMediaQueryContext } from '../chunks/bundle-
|
|
17
|
-
import { u as useLongPress } from '../chunks/bundle-
|
|
18
|
-
import { d as isEditedMessage } from '../chunks/bundle-
|
|
19
|
-
import '../chunks/bundle-
|
|
11
|
+
import { a as UserProfileContext } from '../chunks/bundle-B0A-GTy2.js';
|
|
12
|
+
import { u as useLocalization } from '../chunks/bundle-BkNNtN1V.js';
|
|
13
|
+
import { c as copyToClipboard } from '../chunks/bundle-7DqcfMUP.js';
|
|
14
|
+
import { u as uuidv4 } from '../chunks/bundle-D4vlYCrG.js';
|
|
15
|
+
import { g as getSenderFromMessage, s as showMenuTrigger, i as isFineCopy, a as isFineEdit, b as isFineResend, c as isFineDelete, O as OpenChannelMobileMenu, d as checkIsPending, e as checkIsFailed } from '../chunks/bundle-tL7Z4efR.js';
|
|
16
|
+
import { u as useMediaQueryContext } from '../chunks/bundle-BE9YtwxF.js';
|
|
17
|
+
import { u as useLongPress } from '../chunks/bundle-D87WTORg.js';
|
|
18
|
+
import { d as isEditedMessage } from '../chunks/bundle-BqL00V4c.js';
|
|
19
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
20
20
|
import './ImageRenderer.js';
|
|
21
|
-
import '../chunks/bundle-
|
|
22
|
-
import '../chunks/bundle-
|
|
21
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
22
|
+
import '../chunks/bundle-CWPkjiZ7.js';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import '@sendbird/chat';
|
|
25
25
|
import '@sendbird/chat/openChannel';
|
|
26
26
|
import './SortByRow.js';
|
|
27
|
-
import '../chunks/bundle-
|
|
27
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
28
28
|
import '../sendbirdSelectors.js';
|
|
29
|
-
import '../chunks/bundle-
|
|
29
|
+
import '../chunks/bundle-C1UCPEjT.js';
|
|
30
30
|
import './Button.js';
|
|
31
31
|
import '../useSendbirdStateContext.js';
|
|
32
32
|
import '../withSendbird.js';
|
|
33
33
|
import '@sendbird/chat/groupChannel';
|
|
34
34
|
import '../utils/message/getOutgoingMessageState.js';
|
|
35
|
-
import '../chunks/bundle-
|
|
35
|
+
import '../chunks/bundle-VAV0nvVl.js';
|
|
36
36
|
|
|
37
37
|
function OpenchannelUserMessage(_a) {
|
|
38
38
|
var className = _a.className, message = _a.message, isOperator = _a.isOperator, _b = _a.isEphemeral, isEphemeral = _b === void 0 ? false : _b, userId = _a.userId, resendMessage = _a.resendMessage, disabled = _a.disabled, showEdit = _a.showEdit, showRemove = _a.showRemove, chainTop = _a.chainTop;
|
package/ui/PlaceHolder.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default, { useContext } from 'react';
|
|
3
|
-
import { L as LocalizationContext } from '../chunks/bundle-
|
|
3
|
+
import { L as LocalizationContext } from '../chunks/bundle-BkNNtN1V.js';
|
|
4
4
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
5
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
5
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
6
6
|
import Loader from './Loader.js';
|
|
7
|
-
import '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
9
|
-
import '../chunks/bundle-
|
|
7
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
8
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
9
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
10
10
|
|
|
11
11
|
var PlaceHolderTypes = {
|
|
12
12
|
LOADING: 'LOADING',
|
package/ui/PlaybackTime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as LabelTypography, b as LabelColors, L as Label } from '../chunks/bundle-
|
|
3
|
-
import '../chunks/bundle-
|
|
4
|
-
import '../chunks/bundle-
|
|
2
|
+
import { a as LabelTypography, b as LabelColors, L as Label } from '../chunks/bundle-33BY7XhN.js';
|
|
3
|
+
import '../chunks/bundle-CfcTsxlD.js';
|
|
4
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
5
5
|
|
|
6
6
|
var PlaybackTime = function (_a) {
|
|
7
7
|
var className = _a.className, _b = _a.time, time = _b === void 0 ? 0 : _b, _c = _a.labelType, labelType = _c === void 0 ? LabelTypography.CAPTION_2 : _c, _d = _a.labelColor, labelColor = _d === void 0 ? LabelColors.ONCONTENT_1 : _d;
|
package/ui/QuoteMessage.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React__default, { useContext, useState } from 'react';
|
|
2
2
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
4
4
|
import ImageRenderer from './ImageRenderer.js';
|
|
5
|
-
import { L as LocalizationContext } from '../chunks/bundle-
|
|
6
|
-
import { z as getUIKitFileTypes, w as getClassName, l as isUserMessage, i as isVoiceMessage, p as isThumbnailMessage, c as isMultipleFilesMessage, j as isVideo, A as isGif, m as getUIKitMessageType, U as UIKitMessageTypes, o as getUIKitFileType, t as truncateString } from '../chunks/bundle-
|
|
7
|
-
import { g as getMessageFirstFileUrl, a as getMessageFirstFileType, b as getMessageFirstFileName } from '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
9
|
-
import '../chunks/bundle-
|
|
10
|
-
import '../chunks/bundle-
|
|
11
|
-
import '../chunks/bundle-
|
|
5
|
+
import { L as LocalizationContext } from '../chunks/bundle-BkNNtN1V.js';
|
|
6
|
+
import { z as getUIKitFileTypes, w as getClassName, l as isUserMessage, i as isVoiceMessage, p as isThumbnailMessage, c as isMultipleFilesMessage, j as isVideo, A as isGif, m as getUIKitMessageType, U as UIKitMessageTypes, o as getUIKitFileType, t as truncateString } from '../chunks/bundle-BqL00V4c.js';
|
|
7
|
+
import { g as getMessageFirstFileUrl, a as getMessageFirstFileType, b as getMessageFirstFileName } from '../chunks/bundle-Cbag41eX.js';
|
|
8
|
+
import '../chunks/bundle-CfcTsxlD.js';
|
|
9
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
10
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
11
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
12
12
|
import '@sendbird/chat/groupChannel';
|
|
13
13
|
import '../utils/message/getOutgoingMessageState.js';
|
|
14
|
-
import '../chunks/bundle-
|
|
14
|
+
import '../chunks/bundle-VAV0nvVl.js';
|
|
15
15
|
|
|
16
16
|
function QuoteMessage(_a) {
|
|
17
17
|
var _b;
|
package/ui/QuoteMessageInput.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { b as isFileMessage, c as isMultipleFilesMessage, i as isVoiceMessage, I as isImageMessage, r as isVideoMessage, J as isImageFileInfo, p as isThumbnailMessage, K as isAudioMessage, w as getClassName, s as isGifMessage, l as isUserMessage, m as getUIKitMessageType, U as UIKitMessageTypes } from '../chunks/bundle-
|
|
2
|
+
import { b as isFileMessage, c as isMultipleFilesMessage, i as isVoiceMessage, I as isImageMessage, r as isVideoMessage, J as isImageFileInfo, p as isThumbnailMessage, K as isAudioMessage, w as getClassName, s as isGifMessage, l as isUserMessage, m as getUIKitMessageType, U as UIKitMessageTypes } from '../chunks/bundle-BqL00V4c.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
5
|
-
import { L as LocalizationContext } from '../chunks/bundle-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
5
|
+
import { L as LocalizationContext } from '../chunks/bundle-BkNNtN1V.js';
|
|
6
6
|
import ImageRenderer from './ImageRenderer.js';
|
|
7
|
-
import { c as getMessageFirstFileThumbnailUrl, g as getMessageFirstFileUrl, a as getMessageFirstFileType, b as getMessageFirstFileName } from '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
7
|
+
import { c as getMessageFirstFileThumbnailUrl, g as getMessageFirstFileUrl, a as getMessageFirstFileType, b as getMessageFirstFileName } from '../chunks/bundle-Cbag41eX.js';
|
|
8
|
+
import '../chunks/bundle-CfcTsxlD.js';
|
|
9
9
|
import '@sendbird/chat/groupChannel';
|
|
10
10
|
import '../utils/message/getOutgoingMessageState.js';
|
|
11
|
-
import '../chunks/bundle-
|
|
12
|
-
import '../chunks/bundle-
|
|
13
|
-
import '../chunks/bundle-
|
|
14
|
-
import '../chunks/bundle-
|
|
11
|
+
import '../chunks/bundle-VAV0nvVl.js';
|
|
12
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
13
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
14
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
15
15
|
|
|
16
16
|
var componentClassname = 'sendbird-quote_message_input__avatar';
|
|
17
17
|
function QuoteMessageThumbnail(_a) {
|
package/ui/ReactionBadge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
4
|
-
import '../chunks/bundle-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
4
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
5
5
|
|
|
6
6
|
var ReactionBadge = React__default.forwardRef(function (props, ref) {
|
|
7
7
|
var _a = props.className, className = _a === void 0 ? '' : _a, children = props.children, _b = props.count, count = _b === void 0 ? '' : _b, _c = props.isAdd, isAdd = _c === void 0 ? false : _c, _d = props.selected, selected = _d === void 0 ? false : _d, _e = props.onClick, onClick = _e === void 0 ? function () { } : _e;
|
package/ui/ReactionButton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __assign, c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { _ as __assign, c as __spreadArray } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { u as useLongPress } from '../chunks/bundle-
|
|
4
|
-
import { n as noop } from '../chunks/bundle-
|
|
5
|
-
import '../chunks/bundle-
|
|
3
|
+
import { u as useLongPress } from '../chunks/bundle-D87WTORg.js';
|
|
4
|
+
import { n as noop } from '../chunks/bundle-Bm9cdQdy.js';
|
|
5
|
+
import '../chunks/bundle-BE9YtwxF.js';
|
|
6
6
|
|
|
7
7
|
var ReactionButton = React__default.forwardRef(function (props, ref) {
|
|
8
8
|
var className = props.className, width = props.width, height = props.height, selected = props.selected, _a = props.dataSbId, dataSbId = _a === void 0 ? '' : _a, onClick = props.onClick, children = props.children;
|
package/ui/SortByRow.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { u as uuidv4 } from '../chunks/bundle-
|
|
3
|
+
import { u as uuidv4 } from '../chunks/bundle-D4vlYCrG.js';
|
|
4
4
|
|
|
5
5
|
var componentClassName = 'sendbird-sort-by-row';
|
|
6
6
|
function SortByRow(_a) {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { _ as __assign } from '../chunks/bundle-
|
|
2
|
-
import React__default, { useState, useEffect } from 'react';
|
|
3
|
-
import { w as getClassName } from '../chunks/bundle-
|
|
4
|
-
import { M as MessageProvider, a as MessageTemplate } from '../chunks/bundle-
|
|
1
|
+
import { e as __extends, _ as __assign } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
|
+
import React__default, { Component, useState, useEffect } from 'react';
|
|
3
|
+
import { X as startsWithAtAndEndsWithBraces, Y as removeAtAndBraces, w as getClassName } from '../chunks/bundle-BqL00V4c.js';
|
|
4
|
+
import { M as MessageProvider, a as MessageTemplate } from '../chunks/bundle-Byxn68mh.js';
|
|
5
5
|
import { useSendbirdStateContext } from '../useSendbirdStateContext.js';
|
|
6
6
|
import { FallbackTemplateMessageItemBody } from './FallbackTemplateMessageItemBody.tsx.js';
|
|
7
7
|
import { LoadingTemplateMessageItemBody } from './LoadingTemplateMessageItemBody.tsx.js';
|
|
8
|
+
import { Carousel } from './Carousel.js';
|
|
8
9
|
import '@sendbird/chat/groupChannel';
|
|
9
10
|
import '../utils/message/getOutgoingMessageState.js';
|
|
10
|
-
import '../chunks/bundle-
|
|
11
|
+
import '../chunks/bundle-VAV0nvVl.js';
|
|
11
12
|
import '../withSendbird.js';
|
|
12
|
-
import '../chunks/bundle-
|
|
13
|
-
import '../chunks/bundle-
|
|
14
|
-
import '../chunks/bundle-
|
|
15
|
-
import '../chunks/bundle-
|
|
13
|
+
import '../chunks/bundle-BkNNtN1V.js';
|
|
14
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
15
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
16
|
+
import '../chunks/bundle-33BY7XhN.js';
|
|
16
17
|
import './Loader.js';
|
|
17
18
|
import './Icon.js';
|
|
18
|
-
import '../chunks/bundle-
|
|
19
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
20
|
+
import '../chunks/bundle-BE9YtwxF.js';
|
|
19
21
|
|
|
20
22
|
var MessageTemplateWrapper = function (_a) {
|
|
21
23
|
var message = _a.message, templateItems = _a.templateItems;
|
|
@@ -78,36 +80,6 @@ function flattenObject(object) {
|
|
|
78
80
|
return result;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
function mapData(_a) {
|
|
82
|
-
var template = _a.template, source = _a.source;
|
|
83
|
-
if (!['object', 'string'].includes(typeof template) || !template)
|
|
84
|
-
return template;
|
|
85
|
-
var regex = /\{([^}]+)\}/g;
|
|
86
|
-
var flattenedSource = flattenObject(source);
|
|
87
|
-
function replaceVariablePlaceholder(value) {
|
|
88
|
-
return typeof value === 'string'
|
|
89
|
-
? value.replace(regex, function (_, placeholder) {
|
|
90
|
-
var value = flattenedSource[placeholder];
|
|
91
|
-
return value || "{".concat(placeholder, "}");
|
|
92
|
-
})
|
|
93
|
-
: mapData({ template: value, source: source });
|
|
94
|
-
}
|
|
95
|
-
if (typeof template === 'string') {
|
|
96
|
-
return replaceVariablePlaceholder(template);
|
|
97
|
-
}
|
|
98
|
-
if (Array.isArray(template)) {
|
|
99
|
-
return template.map(replaceVariablePlaceholder);
|
|
100
|
-
}
|
|
101
|
-
var result = {};
|
|
102
|
-
for (var key in template) {
|
|
103
|
-
if (Object.prototype.hasOwnProperty.call(template, key)) {
|
|
104
|
-
var value = template[key];
|
|
105
|
-
result[key] = replaceVariablePlaceholder(value);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return result;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
83
|
function convertArgbToRgba(string) {
|
|
112
84
|
if (!string.startsWith('#')) {
|
|
113
85
|
return string;
|
|
@@ -133,8 +105,8 @@ var splitColorVariables = function (colorVariables) {
|
|
|
133
105
|
}
|
|
134
106
|
else if (typeof value === 'string') {
|
|
135
107
|
var _b = value.split(','), lightColor = _b[0], darkColor = _b[1];
|
|
136
|
-
light[key] =
|
|
137
|
-
dark[key] =
|
|
108
|
+
light[key] = lightColor;
|
|
109
|
+
dark[key] = darkColor || lightColor; // when dark color is not provided, use light color
|
|
138
110
|
}
|
|
139
111
|
else {
|
|
140
112
|
light[key] = value;
|
|
@@ -150,6 +122,69 @@ function selectColorVariablesByTheme(_a) {
|
|
|
150
122
|
return theme === 'light' ? light : dark;
|
|
151
123
|
}
|
|
152
124
|
|
|
125
|
+
var COLOR_KEYS = {
|
|
126
|
+
color: true,
|
|
127
|
+
tintColor: true,
|
|
128
|
+
backgroundColor: true,
|
|
129
|
+
borderColor: true,
|
|
130
|
+
};
|
|
131
|
+
function mapData(_a) {
|
|
132
|
+
var template = _a.template, source = _a.source;
|
|
133
|
+
if (!['object', 'string'].includes(typeof template) || !template)
|
|
134
|
+
return template;
|
|
135
|
+
var regex = /\{([^}]+)\}/g;
|
|
136
|
+
var flattenedSource = flattenObject(source);
|
|
137
|
+
function replaceVariablePlaceholder(value) {
|
|
138
|
+
return typeof value === 'string'
|
|
139
|
+
? value.replace(regex, function (_, placeholder) {
|
|
140
|
+
var value = flattenedSource[placeholder];
|
|
141
|
+
return value || "{".concat(placeholder, "}");
|
|
142
|
+
})
|
|
143
|
+
: mapData({ template: value, source: source });
|
|
144
|
+
}
|
|
145
|
+
if (typeof template === 'string') {
|
|
146
|
+
return replaceVariablePlaceholder(template);
|
|
147
|
+
}
|
|
148
|
+
if (Array.isArray(template)) {
|
|
149
|
+
return template.map(replaceVariablePlaceholder);
|
|
150
|
+
}
|
|
151
|
+
var result = {};
|
|
152
|
+
for (var key in template) {
|
|
153
|
+
if (Object.prototype.hasOwnProperty.call(template, key)) {
|
|
154
|
+
var value = template[key];
|
|
155
|
+
var replacedVal = replaceVariablePlaceholder(value);
|
|
156
|
+
if (COLOR_KEYS[key] && typeof replacedVal === 'string') {
|
|
157
|
+
replacedVal = convertArgbToRgba(replacedVal);
|
|
158
|
+
}
|
|
159
|
+
result[key] = replacedVal;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return result;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var MessageTemplateErrorBoundary = /** @class */ (function (_super) {
|
|
166
|
+
__extends(MessageTemplateErrorBoundary, _super);
|
|
167
|
+
function MessageTemplateErrorBoundary(props) {
|
|
168
|
+
var _this = _super.call(this, props) || this;
|
|
169
|
+
_this.state = { hasError: false };
|
|
170
|
+
return _this;
|
|
171
|
+
}
|
|
172
|
+
MessageTemplateErrorBoundary.getDerivedStateFromError = function () {
|
|
173
|
+
return { hasError: true };
|
|
174
|
+
};
|
|
175
|
+
MessageTemplateErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
|
|
176
|
+
var _a;
|
|
177
|
+
(_a = this.props.logger) === null || _a === void 0 ? void 0 : _a.error('Error caught by ErrorBoundary:', error, errorInfo);
|
|
178
|
+
};
|
|
179
|
+
MessageTemplateErrorBoundary.prototype.render = function () {
|
|
180
|
+
if (this.state.hasError) {
|
|
181
|
+
return this.props.fallbackMessage;
|
|
182
|
+
}
|
|
183
|
+
return this.props.children;
|
|
184
|
+
};
|
|
185
|
+
return MessageTemplateErrorBoundary;
|
|
186
|
+
}(Component));
|
|
187
|
+
|
|
153
188
|
var TEMPLATE_FETCH_RETRY_BUFFER_TIME_IN_MILLIES = 500; // It takes about 450ms for isError update
|
|
154
189
|
/**
|
|
155
190
|
* Returns copied message template object filled with given template data and color variables.
|
|
@@ -178,54 +213,157 @@ function TemplateMessageItemBody(_a) {
|
|
|
178
213
|
return React__default.createElement(FallbackTemplateMessageItemBody, { className: className, message: message, isByMe: isByMe });
|
|
179
214
|
}
|
|
180
215
|
var _f = globalState.utils, getCachedTemplate = _f.getCachedTemplate, updateMessageTemplatesInfo = _f.updateMessageTemplatesInfo;
|
|
216
|
+
var logger = globalState.config.logger;
|
|
181
217
|
var waitingTemplateKeysMap = globalState.stores.appInfoStore.waitingTemplateKeysMap;
|
|
182
|
-
var _g = useState(function () {
|
|
183
|
-
var _a;
|
|
184
|
-
var cachedTemplate = getCachedTemplate(templateData.key);
|
|
185
|
-
if (cachedTemplate) {
|
|
186
|
-
return getFilledMessageTemplateWithData(JSON.parse(cachedTemplate.uiTemplate), (_a = templateData.variables) !== null && _a !== void 0 ? _a : {}, cachedTemplate.colorVariables, theme);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return [];
|
|
190
|
-
}
|
|
191
|
-
}), filledMessageTemplateItems = _g[0], setFilledMessageTemplateItems = _g[1];
|
|
192
|
-
var _h = useState(false), isErrored = _h[0], setIsErrored = _h[1];
|
|
193
218
|
var waitingTemplateKeysMapString = Object.entries(waitingTemplateKeysMap)
|
|
194
219
|
.map(function (_a) {
|
|
195
220
|
var key = _a[0], value = _a[1];
|
|
196
|
-
return [key, value.requestedAt, value.
|
|
197
|
-
}).join('
|
|
198
|
-
|
|
221
|
+
return [key, value.requestedAt, value.erroredMessageIds.join(',')].join('-');
|
|
222
|
+
}).join('_');
|
|
223
|
+
var _g = useState(getFilledMessageTemplateItems()), renderData = _g[0], setRenderData = _g[1];
|
|
224
|
+
function getFilledMessageTemplateItemsForCarouselTemplate(simpleTemplateDataList) {
|
|
225
|
+
var cachedSimpleTemplates = [];
|
|
226
|
+
var simpleTemplatesVariables = [];
|
|
227
|
+
simpleTemplateDataList.forEach(function (simpleTemplateData) {
|
|
228
|
+
var simpleTemplateKey = simpleTemplateData.key;
|
|
229
|
+
if (!simpleTemplateKey) {
|
|
230
|
+
logger.error('TemplateMessageItemBody | simple template keys are not found in view_variables: ', simpleTemplateDataList);
|
|
231
|
+
throw new Error();
|
|
232
|
+
}
|
|
233
|
+
var simpleCachedTemplate = getCachedTemplate(simpleTemplateKey);
|
|
234
|
+
cachedSimpleTemplates.push(simpleCachedTemplate);
|
|
235
|
+
simpleTemplatesVariables.push(simpleTemplateData.variables);
|
|
236
|
+
});
|
|
237
|
+
var filledMessageTemplateItemsList = cachedSimpleTemplates
|
|
238
|
+
.map(function (cachedSimpleTemplate, index) {
|
|
239
|
+
var _a;
|
|
240
|
+
var templateItems = JSON.parse(cachedSimpleTemplate.uiTemplate);
|
|
241
|
+
var filledMessageTemplateItems = getFilledMessageTemplateWithData(templateItems, (_a = simpleTemplatesVariables[index]) !== null && _a !== void 0 ? _a : {}, cachedSimpleTemplate.colorVariables, theme);
|
|
242
|
+
return filledMessageTemplateItems;
|
|
243
|
+
});
|
|
244
|
+
return filledMessageTemplateItemsList;
|
|
245
|
+
}
|
|
246
|
+
function getFilledMessageTemplateItemsForSimpleTemplate(templateItems, colorVariables) {
|
|
199
247
|
var _a;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
248
|
+
var filledMessageTemplateItems = getFilledMessageTemplateWithData(templateItems, (_a = templateData.variables) !== null && _a !== void 0 ? _a : {}, colorVariables, theme);
|
|
249
|
+
return [filledMessageTemplateItems];
|
|
250
|
+
}
|
|
251
|
+
function getFilledMessageTemplateItems() {
|
|
252
|
+
var result = {
|
|
253
|
+
filledMessageTemplateItemsList: [],
|
|
254
|
+
carouselItem: undefined,
|
|
255
|
+
isErrored: false,
|
|
256
|
+
};
|
|
257
|
+
var nonCachedTemplateKeys = [];
|
|
258
|
+
var cachedTemplate = getCachedTemplate(templateKey);
|
|
259
|
+
if (!cachedTemplate) {
|
|
260
|
+
nonCachedTemplateKeys.push(templateKey);
|
|
261
|
+
}
|
|
262
|
+
if (templateData.view_variables) {
|
|
263
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
264
|
+
Object.entries(templateData.view_variables).forEach(function (_a) {
|
|
265
|
+
_a[0]; var simpleTemplateDataList = _a[1];
|
|
266
|
+
simpleTemplateDataList.forEach(function (simpleTemplateData) {
|
|
267
|
+
var simpleTemplateKey = simpleTemplateData === null || simpleTemplateData === void 0 ? void 0 : simpleTemplateData.key;
|
|
268
|
+
if (simpleTemplateKey) {
|
|
269
|
+
if (!getCachedTemplate(simpleTemplateKey)) {
|
|
270
|
+
if (simpleTemplateKey && nonCachedTemplateKeys.indexOf(simpleTemplateKey) === -1) {
|
|
271
|
+
nonCachedTemplateKeys.push(simpleTemplateKey);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
try {
|
|
279
|
+
if (nonCachedTemplateKeys.length > 0) {
|
|
280
|
+
tryFetchTemplateByKey(nonCachedTemplateKeys);
|
|
206
281
|
}
|
|
207
|
-
else
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
*/
|
|
213
|
-
var waitingTemplateKeyData = waitingTemplateKeysMap[templateKey];
|
|
214
|
-
var requestedAt = Date.now();
|
|
215
|
-
if (!waitingTemplateKeyData
|
|
216
|
-
|| (requestedAt > waitingTemplateKeyData.requestedAt + TEMPLATE_FETCH_RETRY_BUFFER_TIME_IN_MILLIES)) {
|
|
217
|
-
updateMessageTemplatesInfo(templateData.key, Date.now());
|
|
282
|
+
else {
|
|
283
|
+
var parsedUiTemplate = JSON.parse(cachedTemplate.uiTemplate);
|
|
284
|
+
if (!Array.isArray(parsedUiTemplate) || parsedUiTemplate.length === 0) {
|
|
285
|
+
logger.error('TemplateMessageItemBody | parsed template is missing ui_template: ', parsedUiTemplate);
|
|
286
|
+
throw new Error();
|
|
218
287
|
}
|
|
219
|
-
|
|
220
|
-
|
|
288
|
+
if (templateData.view_variables
|
|
289
|
+
|| parsedUiTemplate[0].type === 'carouselView'
|
|
290
|
+
|| typeof parsedUiTemplate[0]['items'] === 'string'
|
|
291
|
+
|| parsedUiTemplate[0]['spacing']) {
|
|
292
|
+
if (!templateData.view_variables) {
|
|
293
|
+
logger.error('TemplateMessageItemBody | template key suggests composite template but template data is missing view_variables: ', templateKey, templateData);
|
|
294
|
+
throw new Error();
|
|
295
|
+
}
|
|
296
|
+
var carouselItem = parsedUiTemplate[0];
|
|
297
|
+
if (carouselItem.type !== 'carouselView'
|
|
298
|
+
|| typeof carouselItem.items !== 'string'
|
|
299
|
+
|| !startsWithAtAndEndsWithBraces(carouselItem.items)
|
|
300
|
+
|| !carouselItem.spacing) {
|
|
301
|
+
logger.error('TemplateMessageItemBody | composite template is malformed: ', templateKey, carouselItem);
|
|
302
|
+
throw new Error();
|
|
303
|
+
}
|
|
304
|
+
if (parsedUiTemplate.length > 1) { // TODO: in future, support multiple templates
|
|
305
|
+
logger.error('TemplateMessageItemBody | composite template currently does not support multiple items: ', parsedUiTemplate);
|
|
306
|
+
throw new Error();
|
|
307
|
+
}
|
|
308
|
+
var reservationKey = removeAtAndBraces(carouselItem.items);
|
|
309
|
+
var simpleTemplateDataList = templateData.view_variables[reservationKey];
|
|
310
|
+
if (!simpleTemplateDataList) {
|
|
311
|
+
logger.error('TemplateMessageItemBody | no reservation key found in view_variables: ', reservationKey, templateData.view_variables);
|
|
312
|
+
throw new Error();
|
|
313
|
+
}
|
|
314
|
+
result.filledMessageTemplateItemsList = getFilledMessageTemplateItemsForCarouselTemplate(simpleTemplateDataList);
|
|
315
|
+
result.carouselItem = carouselItem;
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
result.filledMessageTemplateItemsList = getFilledMessageTemplateItemsForSimpleTemplate(parsedUiTemplate, cachedTemplate.colorVariables);
|
|
221
319
|
}
|
|
222
320
|
}
|
|
223
321
|
}
|
|
322
|
+
catch (e) {
|
|
323
|
+
result.isErrored = true;
|
|
324
|
+
}
|
|
325
|
+
return result;
|
|
326
|
+
}
|
|
327
|
+
useEffect(function () {
|
|
328
|
+
if (!renderData.isErrored && renderData.filledMessageTemplateItemsList.length === 0) {
|
|
329
|
+
var newRenderData = getFilledMessageTemplateItems();
|
|
330
|
+
setRenderData(newRenderData);
|
|
331
|
+
}
|
|
224
332
|
}, [templateData.key, waitingTemplateKeysMapString]);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
333
|
+
/**
|
|
334
|
+
* Attempt GET template by key IFF one of below cases is met:
|
|
335
|
+
* 1. This is the first GET call for the template key.
|
|
336
|
+
* 2. Minimum buffer time has passed since the previous GET error.
|
|
337
|
+
*/
|
|
338
|
+
function tryFetchTemplateByKey(templateKeys) {
|
|
339
|
+
if (templateKeys.length > 0) {
|
|
340
|
+
var waitingTemplateKeyDataList_1 = [];
|
|
341
|
+
templateKeys.forEach(function (templateKey) {
|
|
342
|
+
var waitingTemplateKeyData = waitingTemplateKeysMap[templateKey];
|
|
343
|
+
waitingTemplateKeyDataList_1.push([templateKey, waitingTemplateKeyData]);
|
|
344
|
+
});
|
|
345
|
+
var requestedAt_1 = Date.now();
|
|
346
|
+
var keysToUpdate_1 = [];
|
|
347
|
+
waitingTemplateKeyDataList_1.forEach(function (_a) {
|
|
348
|
+
var templateKey = _a[0], waitingTemplateKeyData = _a[1];
|
|
349
|
+
if (!waitingTemplateKeyData
|
|
350
|
+
|| (waitingTemplateKeyData.erroredMessageIds.indexOf(message.messageId) === -1
|
|
351
|
+
&& requestedAt_1 > waitingTemplateKeyData.requestedAt + TEMPLATE_FETCH_RETRY_BUFFER_TIME_IN_MILLIES)) {
|
|
352
|
+
keysToUpdate_1.push(templateKey);
|
|
353
|
+
}
|
|
354
|
+
else if (waitingTemplateKeyData.erroredMessageIds.indexOf(message.messageId) > -1) {
|
|
355
|
+
throw new Error();
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
if (keysToUpdate_1.length > 0) {
|
|
359
|
+
updateMessageTemplatesInfo(keysToUpdate_1, message.messageId, requestedAt_1);
|
|
360
|
+
}
|
|
228
361
|
}
|
|
362
|
+
}
|
|
363
|
+
if (renderData.isErrored) {
|
|
364
|
+
return React__default.createElement(FallbackTemplateMessageItemBody, { className: className, message: message, isByMe: isByMe });
|
|
365
|
+
}
|
|
366
|
+
if (renderData.filledMessageTemplateItemsList.length === 0) {
|
|
229
367
|
return React__default.createElement(LoadingTemplateMessageItemBody, { className: className, isByMe: isByMe });
|
|
230
368
|
}
|
|
231
369
|
return (React__default.createElement("div", { className: getClassName([
|
|
@@ -233,7 +371,9 @@ function TemplateMessageItemBody(_a) {
|
|
|
233
371
|
isByMe ? 'outgoing' : 'incoming',
|
|
234
372
|
'sendbird-template-message-item-body',
|
|
235
373
|
]) },
|
|
236
|
-
React__default.createElement(
|
|
374
|
+
React__default.createElement(MessageTemplateErrorBoundary, { fallbackMessage: React__default.createElement(FallbackTemplateMessageItemBody, { className: className, message: message, isByMe: isByMe }), logger: logger }, !renderData.carouselItem
|
|
375
|
+
? React__default.createElement(MessageTemplateWrapper, { message: message, templateItems: renderData.filledMessageTemplateItemsList[0] })
|
|
376
|
+
: React__default.createElement(Carousel, { id: message.messageId + '', items: renderData.filledMessageTemplateItemsList.map(function (filledMessageTemplateItems, i) { return (React__default.createElement(MessageTemplateWrapper, { key: "".concat(message.messageId, "-").concat(i), message: message, templateItems: filledMessageTemplateItems })); }), gap: renderData.carouselItem.spacing }))));
|
|
237
377
|
}
|
|
238
378
|
|
|
239
379
|
export { TemplateMessageItemBody, TemplateMessageItemBody as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateMessageItemBody.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplateMessageItemBody.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/ui/TextButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-CfcTsxlD.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as Colors, c as changeColorToClassName } from '../chunks/bundle-
|
|
3
|
+
import { C as Colors, c as changeColorToClassName } from '../chunks/bundle-DaAps-h8.js';
|
|
4
4
|
|
|
5
5
|
var TextButton = function (_a) {
|
|
6
6
|
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.color, color = _c === void 0 ? Colors.ONBACKGROUND_1 : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.disableUnderline, disableUnderline = _e === void 0 ? false : _e, _f = _a.onClick, onClick = _f === void 0 ? function () { } : _f, children = _a.children;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React__default, { useContext, useMemo } from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
3
|
-
import { w as getClassName, d as isEditedMessage } from '../chunks/bundle-
|
|
4
|
-
import { L as LocalizationContext } from '../chunks/bundle-
|
|
5
|
-
import { t as tokenizeMessage } from '../chunks/bundle-
|
|
6
|
-
import { T as TextFragment } from '../chunks/bundle-
|
|
7
|
-
import { T as TEXT_MESSAGE_BODY_CLASSNAME } from '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
9
|
-
import '../chunks/bundle-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-33BY7XhN.js';
|
|
3
|
+
import { w as getClassName, d as isEditedMessage } from '../chunks/bundle-BqL00V4c.js';
|
|
4
|
+
import { L as LocalizationContext } from '../chunks/bundle-BkNNtN1V.js';
|
|
5
|
+
import { t as tokenizeMessage } from '../chunks/bundle-CquJpe2n.js';
|
|
6
|
+
import { T as TextFragment } from '../chunks/bundle-DzD5ZPeu.js';
|
|
7
|
+
import { T as TEXT_MESSAGE_BODY_CLASSNAME } from '../chunks/bundle-DfhDmd9y.js';
|
|
8
|
+
import '../chunks/bundle-CfcTsxlD.js';
|
|
9
|
+
import '../chunks/bundle-BydX5Gik.js';
|
|
10
10
|
import '@sendbird/chat/groupChannel';
|
|
11
11
|
import '../utils/message/getOutgoingMessageState.js';
|
|
12
|
-
import '../chunks/bundle-
|
|
13
|
-
import '../chunks/bundle-
|
|
12
|
+
import '../chunks/bundle-VAV0nvVl.js';
|
|
13
|
+
import '../chunks/bundle-CKqBhRZh.js';
|
|
14
14
|
import '../Message/context.js';
|
|
15
15
|
import './MentionLabel.js';
|
|
16
16
|
import './ContextMenu.js';
|
|
@@ -18,15 +18,15 @@ import 'react-dom';
|
|
|
18
18
|
import '@sendbird/chat';
|
|
19
19
|
import '@sendbird/chat/openChannel';
|
|
20
20
|
import './SortByRow.js';
|
|
21
|
-
import '../chunks/bundle-
|
|
21
|
+
import '../chunks/bundle-D4vlYCrG.js';
|
|
22
22
|
import './UserProfile.js';
|
|
23
|
-
import '../chunks/bundle-
|
|
23
|
+
import '../chunks/bundle-B0A-GTy2.js';
|
|
24
24
|
import '../sendbirdSelectors.js';
|
|
25
|
-
import '../chunks/bundle-
|
|
26
|
-
import '../chunks/bundle-
|
|
27
|
-
import '../chunks/bundle-
|
|
25
|
+
import '../chunks/bundle-C1UCPEjT.js';
|
|
26
|
+
import '../chunks/bundle-Bm9cdQdy.js';
|
|
27
|
+
import '../chunks/bundle-DyaS04Hg.js';
|
|
28
28
|
import './ImageRenderer.js';
|
|
29
|
-
import '../chunks/bundle-
|
|
29
|
+
import '../chunks/bundle-CWPkjiZ7.js';
|
|
30
30
|
import './Icon.js';
|
|
31
31
|
import './Button.js';
|
|
32
32
|
import '../useSendbirdStateContext.js';
|