@sendbird/uikit-react 3.13.2-rc.0 → 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-_9XBB-ZS.js → bundle-1IYchI7A.js} +2 -2
- package/chunks/bundle-1IYchI7A.js.map +1 -0
- package/chunks/{bundle-BnG5XETL.js → bundle-33BY7XhN.js} +8 -7
- package/chunks/bundle-33BY7XhN.js.map +1 -0
- package/chunks/{bundle-Ds5aQSz-.js → bundle-4YHx3jhU.js} +1 -1
- package/chunks/bundle-4YHx3jhU.js.map +1 -0
- package/chunks/{bundle-DRpQlFMu.js → bundle-7DqcfMUP.js} +1 -1
- package/chunks/bundle-7DqcfMUP.js.map +1 -0
- package/chunks/{bundle-CeN11uF4.js → bundle-B-5nMQI8.js} +10 -10
- package/chunks/bundle-B-5nMQI8.js.map +1 -0
- package/chunks/{bundle-C8Oe5QOQ.js → bundle-B0A-GTy2.js} +1 -1
- package/chunks/bundle-B0A-GTy2.js.map +1 -0
- package/chunks/{bundle-wKPuxvL-.js → bundle-B0hUzTR9.js} +1 -1
- package/chunks/bundle-B0hUzTR9.js.map +1 -0
- package/chunks/{bundle-CwQ5U5f7.js → bundle-B9rl4lBQ.js} +11 -11
- package/chunks/{bundle-CwQ5U5f7.js.map → bundle-B9rl4lBQ.js.map} +1 -1
- package/chunks/{bundle-Czh0_N3j.js → bundle-BE6Zgv3s.js} +1 -1
- package/chunks/bundle-BE6Zgv3s.js.map +1 -0
- package/chunks/{bundle-Cs0ZtBj7.js → bundle-BE9YtwxF.js} +1 -1
- package/chunks/bundle-BE9YtwxF.js.map +1 -0
- package/chunks/{bundle-CvvqaAH_.js → bundle-BFLCbnVa.js} +4 -4
- package/chunks/{bundle-CvvqaAH_.js.map → bundle-BFLCbnVa.js.map} +1 -1
- package/chunks/{bundle-Dj5aDnzf.js → bundle-BGPVh26h.js} +2 -2
- package/chunks/{bundle-Dj5aDnzf.js.map → bundle-BGPVh26h.js.map} +1 -1
- package/chunks/{bundle-6n4c-yxi.js → bundle-BRSrznG_.js} +1 -1
- package/chunks/bundle-BRSrznG_.js.map +1 -0
- package/chunks/{bundle-DcZ6VbHw.js → bundle-BYjHDpcR.js} +3 -3
- package/chunks/bundle-BYjHDpcR.js.map +1 -0
- package/chunks/{bundle-DlHY-98U.js → bundle-BcfbcVVS.js} +1 -1
- package/chunks/bundle-BcfbcVVS.js.map +1 -0
- package/chunks/{bundle-CAdKFBfs.js → bundle-BdJeQIAi.js} +1 -1
- package/chunks/bundle-BdJeQIAi.js.map +1 -0
- package/chunks/{bundle-D1vFAfKb.js → bundle-BdnV2Mq3.js} +3 -3
- package/chunks/{bundle-D1vFAfKb.js.map → bundle-BdnV2Mq3.js.map} +1 -1
- package/chunks/{bundle-BbEkZYpE.js → bundle-BegOh-X0.js} +1 -1
- package/chunks/bundle-BegOh-X0.js.map +1 -0
- package/chunks/{bundle-CWxzg5Gh.js → bundle-Bhs7U8wE.js} +2 -2
- package/chunks/{bundle-CWxzg5Gh.js.map → bundle-Bhs7U8wE.js.map} +1 -1
- package/chunks/{bundle-FDedpAl7.js → bundle-BiOWvuqq.js} +2 -2
- package/chunks/{bundle-FDedpAl7.js.map → bundle-BiOWvuqq.js.map} +1 -1
- package/chunks/{bundle-6c04eWHT.js → bundle-BjbYgCW9.js} +1 -1
- package/chunks/bundle-BjbYgCW9.js.map +1 -0
- package/chunks/{bundle-97fd4oe2.js → bundle-BkNNtN1V.js} +3 -3
- package/chunks/bundle-BkNNtN1V.js.map +1 -0
- package/chunks/{bundle-CPRA25ls.js → bundle-Blu2Cp4C.js} +1 -1
- package/chunks/{bundle-CPRA25ls.js.map → bundle-Blu2Cp4C.js.map} +1 -1
- package/chunks/{bundle-B4CUv14M.js → bundle-Bm9cdQdy.js} +1 -1
- package/chunks/bundle-Bm9cdQdy.js.map +1 -0
- package/chunks/{bundle-DMQ1a9pl.js → bundle-BnLycG5g.js} +4 -4
- package/chunks/{bundle-DMQ1a9pl.js.map → bundle-BnLycG5g.js.map} +1 -1
- package/chunks/{bundle-DkTxVi3R.js → bundle-Bo4dNQtg.js} +3 -3
- package/chunks/{bundle-DkTxVi3R.js.map → bundle-Bo4dNQtg.js.map} +1 -1
- package/chunks/{bundle-CCx8yXVd.js → bundle-BqL00V4c.js} +58 -4
- package/chunks/{bundle-CCx8yXVd.js.map → bundle-BqL00V4c.js.map} +1 -1
- package/chunks/{bundle-CQxSmK2v.js → bundle-Bumce6iI.js} +1 -1
- package/chunks/bundle-Bumce6iI.js.map +1 -0
- package/chunks/{bundle-eNe8jUiS.js → bundle-BydX5Gik.js} +1 -1
- package/chunks/{bundle-eNe8jUiS.js.map → bundle-BydX5Gik.js.map} +1 -1
- package/chunks/{bundle-LUBbQW82.js → bundle-Byxn68mh.js} +1 -1
- package/chunks/{bundle-LUBbQW82.js.map → bundle-Byxn68mh.js.map} +1 -1
- package/chunks/{bundle-C0risNHg.js → bundle-BzmY6Ioa.js} +6 -6
- package/chunks/bundle-BzmY6Ioa.js.map +1 -0
- package/chunks/{bundle-lYawLy67.js → bundle-C-gNLxiH.js} +4 -4
- package/chunks/bundle-C-gNLxiH.js.map +1 -0
- package/chunks/{bundle-L4mF-vqf.js → bundle-C00KC3uY.js} +4 -4
- package/chunks/bundle-C00KC3uY.js.map +1 -0
- package/chunks/{bundle-CkCkzFFu.js → bundle-C1UCPEjT.js} +1 -1
- package/chunks/bundle-C1UCPEjT.js.map +1 -0
- package/chunks/{bundle-Cbgk06HJ.js → bundle-CJBaJoMx.js} +7 -7
- package/chunks/{bundle-Cbgk06HJ.js.map → bundle-CJBaJoMx.js.map} +1 -1
- package/chunks/{bundle-C5C8XKZl.js → bundle-CJxhCCYf.js} +8 -8
- package/chunks/{bundle-C5C8XKZl.js.map → bundle-CJxhCCYf.js.map} +1 -1
- package/chunks/{bundle-jYzea4Ke.js → bundle-CKqBhRZh.js} +1 -1
- package/chunks/{bundle-jYzea4Ke.js.map → bundle-CKqBhRZh.js.map} +1 -1
- package/chunks/{bundle-vVxTsDkS.js → bundle-CPlEjTQQ.js} +3 -3
- package/chunks/bundle-CPlEjTQQ.js.map +1 -0
- package/chunks/{bundle-CvuK4Gl-.js → bundle-CSIi4GHQ.js} +1 -1
- package/chunks/bundle-CSIi4GHQ.js.map +1 -0
- package/chunks/{bundle-BiQds65K.js → bundle-CT8aJQs5.js} +4 -4
- package/chunks/{bundle-BiQds65K.js.map → bundle-CT8aJQs5.js.map} +1 -1
- package/chunks/{bundle-B_5nSVDN.js → bundle-CWPkjiZ7.js} +1 -1
- package/chunks/bundle-CWPkjiZ7.js.map +1 -0
- package/chunks/{bundle-D4kbZg4e.js → bundle-CWvAVk8m.js} +1 -1
- package/chunks/bundle-CWvAVk8m.js.map +1 -0
- package/chunks/{bundle-gO4JLOKo.js → bundle-CZbk43my.js} +3 -3
- package/chunks/{bundle-gO4JLOKo.js.map → bundle-CZbk43my.js.map} +1 -1
- package/chunks/{bundle-b4p8k2uf.js → bundle-CbKfkHfl.js} +1 -1
- package/chunks/bundle-CbKfkHfl.js.map +1 -0
- package/chunks/{bundle-BCeNaIWw.js → bundle-Cbag41eX.js} +3 -3
- package/chunks/bundle-Cbag41eX.js.map +1 -0
- package/chunks/{bundle-aAoUY1dC.js → bundle-CfcTsxlD.js} +1 -1
- package/chunks/{bundle-aAoUY1dC.js.map → bundle-CfcTsxlD.js.map} +1 -1
- package/chunks/{bundle-Bjr0f1Zp.js → bundle-CquJpe2n.js} +2 -2
- package/chunks/{bundle-Bjr0f1Zp.js.map → bundle-CquJpe2n.js.map} +1 -1
- package/chunks/{bundle-BGdbKz3x.js → bundle-CsV5Pqhn.js} +1 -1
- package/chunks/bundle-CsV5Pqhn.js.map +1 -0
- package/chunks/{bundle-BTAzxMsc.js → bundle-D01F_So9.js} +10 -10
- package/chunks/{bundle-BTAzxMsc.js.map → bundle-D01F_So9.js.map} +1 -1
- package/chunks/{bundle-CanFPW6u.js → bundle-D4vlYCrG.js} +1 -1
- package/chunks/bundle-D4vlYCrG.js.map +1 -0
- package/chunks/{bundle-Cg7eHJV0.js → bundle-D87WTORg.js} +3 -3
- package/chunks/bundle-D87WTORg.js.map +1 -0
- package/chunks/{bundle-caD0Cpiq.js → bundle-DEPqhDQk.js} +1 -1
- package/chunks/bundle-DEPqhDQk.js.map +1 -0
- package/chunks/{bundle-BTrdwUY4.js → bundle-DEsGEQb8.js} +10 -10
- package/chunks/{bundle-BTrdwUY4.js.map → bundle-DEsGEQb8.js.map} +1 -1
- package/chunks/{bundle-CzNavr80.js → bundle-DGSAqfvK.js} +3 -3
- package/chunks/{bundle-CzNavr80.js.map → bundle-DGSAqfvK.js.map} +1 -1
- package/chunks/{bundle-C3mD4WPX.js → bundle-DKctNGC2.js} +5 -5
- package/chunks/{bundle-C3mD4WPX.js.map → bundle-DKctNGC2.js.map} +1 -1
- package/chunks/{bundle-D1DIGSmr.js → bundle-DM3wUgvd.js} +1 -1
- package/chunks/bundle-DM3wUgvd.js.map +1 -0
- package/chunks/{bundle-DBy3c8gM.js → bundle-DPsySdlV.js} +2 -2
- package/chunks/bundle-DPsySdlV.js.map +1 -0
- package/chunks/{bundle-DlBu0K2F.js → bundle-DR5lvmY_.js} +2 -2
- package/chunks/bundle-DR5lvmY_.js.map +1 -0
- package/chunks/{bundle-DsU79j1A.js → bundle-DTniwDWL.js} +8 -8
- package/chunks/{bundle-DsU79j1A.js.map → bundle-DTniwDWL.js.map} +1 -1
- package/chunks/{bundle-gSigJ2qv.js → bundle-DW2UIt7g.js} +1 -1
- package/chunks/bundle-DW2UIt7g.js.map +1 -0
- package/chunks/{bundle-C5ygMhyk.js → bundle-DaAps-h8.js} +1 -1
- package/chunks/bundle-DaAps-h8.js.map +1 -0
- package/chunks/{bundle-D4mHGcWb.js → bundle-DbWpPftJ.js} +5 -5
- package/chunks/bundle-DbWpPftJ.js.map +1 -0
- package/chunks/{bundle-Bsh5KSxb.js → bundle-Dcg5UJZ5.js} +1 -1
- package/chunks/bundle-Dcg5UJZ5.js.map +1 -0
- package/chunks/{bundle-Cxjgwfwy.js → bundle-Df7uYu02.js} +10 -10
- package/chunks/bundle-Df7uYu02.js.map +1 -0
- package/chunks/{bundle-B4EY2YKu.js → bundle-DfhDmd9y.js} +1 -1
- package/chunks/bundle-DfhDmd9y.js.map +1 -0
- package/chunks/{bundle-BY9JnLew.js → bundle-Dm1_TUsQ.js} +7 -7
- package/chunks/{bundle-BY9JnLew.js.map → bundle-Dm1_TUsQ.js.map} +1 -1
- package/chunks/{bundle-pISqEqOe.js → bundle-DnX0-Kjr.js} +3 -3
- package/chunks/{bundle-pISqEqOe.js.map → bundle-DnX0-Kjr.js.map} +1 -1
- package/chunks/{bundle-CE_8gK7h.js → bundle-DqPWGoAJ.js} +6 -6
- package/chunks/bundle-DqPWGoAJ.js.map +1 -0
- package/chunks/{bundle-BQntI2YH.js → bundle-DrKv7qiU.js} +6 -6
- package/chunks/bundle-DrKv7qiU.js.map +1 -0
- package/chunks/{bundle-CeNRu1nh.js → bundle-DyaS04Hg.js} +5 -4
- package/chunks/bundle-DyaS04Hg.js.map +1 -0
- package/chunks/{bundle-CQhhBQgY.js → bundle-DzD5ZPeu.js} +4 -4
- package/chunks/bundle-DzD5ZPeu.js.map +1 -0
- package/chunks/{bundle-DbYE20Ij.js → bundle-FBDSQPhI.js} +14 -14
- package/chunks/{bundle-DbYE20Ij.js.map → bundle-FBDSQPhI.js.map} +1 -1
- package/chunks/{bundle-2qPS-99f.js → bundle-O8OKcGsA.js} +1 -1
- package/chunks/bundle-O8OKcGsA.js.map +1 -0
- package/chunks/{bundle-CHaqW2Sj.js → bundle-PoeV4u5o.js} +5 -5
- package/chunks/{bundle-CHaqW2Sj.js.map → bundle-PoeV4u5o.js.map} +1 -1
- package/chunks/{bundle-LIsneT-k.js → bundle-Ti1Y75Dm.js} +2 -2
- package/chunks/bundle-Ti1Y75Dm.js.map +1 -0
- package/chunks/{bundle-0Xv23Jlo.js → bundle-VAV0nvVl.js} +1 -1
- package/chunks/{bundle-0Xv23Jlo.js.map → bundle-VAV0nvVl.js.map} +1 -1
- package/chunks/{bundle-BPKrwLVZ.js → bundle-WT4kbHBE.js} +11 -11
- package/chunks/{bundle-BPKrwLVZ.js.map → bundle-WT4kbHBE.js.map} +1 -1
- package/chunks/{bundle-B24GwCXx.js → bundle-ZJcHeU_o.js} +5 -5
- package/chunks/bundle-ZJcHeU_o.js.map +1 -0
- package/chunks/{bundle-DarlDWy7.js → bundle-f6zTWcHL.js} +2 -2
- package/chunks/bundle-f6zTWcHL.js.map +1 -0
- package/chunks/{bundle-OJu5PM7q.js → bundle-moA7aUUB.js} +1 -1
- package/chunks/bundle-moA7aUUB.js.map +1 -0
- package/chunks/{bundle-DCXp9q80.js → bundle-tL7Z4efR.js} +2 -2
- package/chunks/{bundle-DCXp9q80.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-BGHVt4pv.js → bundle-0dm-rZLh.js} +3 -3
- package/cjs/chunks/bundle-0dm-rZLh.js.map +1 -0
- package/cjs/chunks/{bundle-DxxDc_9W.js → bundle-2pxnOYL4.js} +4 -4
- package/cjs/chunks/{bundle-DxxDc_9W.js.map → bundle-2pxnOYL4.js.map} +1 -1
- package/cjs/chunks/{bundle-BYRgBOOO.js → bundle-3HPlnxkl.js} +3 -3
- package/cjs/chunks/{bundle-BYRgBOOO.js.map → bundle-3HPlnxkl.js.map} +1 -1
- package/cjs/chunks/{bundle-BOxqoDK2.js → bundle-6RaeE_-7.js} +1 -1
- package/cjs/chunks/bundle-6RaeE_-7.js.map +1 -0
- package/cjs/chunks/{bundle-lF1xvz4H.js → bundle-AxW84oGr.js} +1 -1
- package/cjs/chunks/bundle-AxW84oGr.js.map +1 -0
- package/cjs/chunks/{bundle-DOIvf0Sq.js → bundle-B212ojpX.js} +2 -2
- package/cjs/chunks/{bundle-DOIvf0Sq.js.map → bundle-B212ojpX.js.map} +1 -1
- package/cjs/chunks/{bundle-CsTxv_Ia.js → bundle-B3gE4-sg.js} +60 -3
- package/cjs/chunks/{bundle-CsTxv_Ia.js.map → bundle-B3gE4-sg.js.map} +1 -1
- package/cjs/chunks/{bundle-jG5ojZfP.js → bundle-B5RW0yuQ.js} +1 -1
- package/cjs/chunks/bundle-B5RW0yuQ.js.map +1 -0
- package/cjs/chunks/{bundle-iA0z-oXP.js → bundle-B5pxZS7a.js} +1 -1
- package/cjs/chunks/bundle-B5pxZS7a.js.map +1 -0
- package/cjs/chunks/{bundle-BOhx1d6V.js → bundle-BANWV5X0.js} +4 -4
- package/cjs/chunks/{bundle-BOhx1d6V.js.map → bundle-BANWV5X0.js.map} +1 -1
- package/cjs/chunks/{bundle-DdUUl9AF.js → bundle-BDDfcS3c.js} +1 -1
- package/cjs/chunks/bundle-BDDfcS3c.js.map +1 -0
- package/cjs/chunks/{bundle-BvRYyRnB.js → bundle-BIaA_1Gt.js} +1 -1
- package/cjs/chunks/bundle-BIaA_1Gt.js.map +1 -0
- package/cjs/chunks/{bundle-BFGQyFEj.js → bundle-BKMGAY2l.js} +2 -2
- package/cjs/chunks/{bundle-BFGQyFEj.js.map → bundle-BKMGAY2l.js.map} +1 -1
- package/cjs/chunks/{bundle-BNyi-HLe.js → bundle-BPcaLWyG.js} +1 -1
- package/cjs/chunks/bundle-BPcaLWyG.js.map +1 -0
- package/cjs/chunks/{bundle-Dt1ALnWb.js → bundle-BQc8sm8f.js} +10 -10
- package/cjs/chunks/bundle-BQc8sm8f.js.map +1 -0
- package/cjs/chunks/{bundle-C-FliXg3.js → bundle-BR4VteQq.js} +2 -2
- package/cjs/chunks/bundle-BR4VteQq.js.map +1 -0
- package/cjs/chunks/{bundle-CWXCI9cE.js → bundle-BSTb1mFt.js} +5 -5
- package/cjs/chunks/bundle-BSTb1mFt.js.map +1 -0
- package/cjs/chunks/{bundle-6dNjb6bq.js → bundle-BUBaSa_-.js} +11 -11
- package/cjs/chunks/{bundle-6dNjb6bq.js.map → bundle-BUBaSa_-.js.map} +1 -1
- package/cjs/chunks/{bundle-0q_scAND.js → bundle-BZByKaLs.js} +1 -1
- package/cjs/chunks/bundle-BZByKaLs.js.map +1 -0
- package/cjs/chunks/{bundle-CdthjbGs.js → bundle-BZYotRJz.js} +1 -1
- package/cjs/chunks/bundle-BZYotRJz.js.map +1 -0
- package/cjs/chunks/{bundle-D6wZDkwJ.js → bundle-BZyYPaEv.js} +1 -1
- package/cjs/chunks/{bundle-D6wZDkwJ.js.map → bundle-BZyYPaEv.js.map} +1 -1
- package/cjs/chunks/{bundle-B8q44rPm.js → bundle-Bc_3JLZG.js} +3 -3
- package/cjs/chunks/bundle-Bc_3JLZG.js.map +1 -0
- package/cjs/chunks/{bundle-BfU270mH.js → bundle-Bd5-Auhd.js} +1 -1
- package/cjs/chunks/bundle-Bd5-Auhd.js.map +1 -0
- package/cjs/chunks/{bundle-Ccyujyp6.js → bundle-BdG7Rc1R.js} +5 -5
- package/cjs/chunks/{bundle-Ccyujyp6.js.map → bundle-BdG7Rc1R.js.map} +1 -1
- package/cjs/chunks/{bundle-CbqU9Myv.js → bundle-BfLBf8rb.js} +4 -4
- package/cjs/chunks/bundle-BfLBf8rb.js.map +1 -0
- package/cjs/chunks/{bundle-C8xia3yL.js → bundle-BhRPdcn-.js} +1 -1
- package/cjs/chunks/{bundle-C8xia3yL.js.map → bundle-BhRPdcn-.js.map} +1 -1
- package/cjs/chunks/{bundle-B9IeOTau.js → bundle-BkrtMQxo.js} +1 -1
- package/cjs/chunks/bundle-BkrtMQxo.js.map +1 -0
- package/cjs/chunks/{bundle-Dtsa1X9i.js → bundle-BmOkcO1e.js} +1 -1
- package/cjs/chunks/bundle-BmOkcO1e.js.map +1 -0
- package/cjs/chunks/{bundle-v3tXlTmz.js → bundle-BubTAoq5.js} +4 -4
- package/cjs/chunks/{bundle-v3tXlTmz.js.map → bundle-BubTAoq5.js.map} +1 -1
- package/cjs/chunks/{bundle-BKeOSYnB.js → bundle-BwwA3giM.js} +3 -3
- package/cjs/chunks/bundle-BwwA3giM.js.map +1 -0
- package/cjs/chunks/{bundle-CsyBnNlx.js → bundle-ByYRydtT.js} +1 -1
- package/cjs/chunks/bundle-ByYRydtT.js.map +1 -0
- package/cjs/chunks/{bundle-BiUFkVUS.js → bundle-C1YOhOl2.js} +6 -6
- package/cjs/chunks/bundle-C1YOhOl2.js.map +1 -0
- package/cjs/chunks/{bundle-DaHjWMxX.js → bundle-C2ABFLZ1.js} +2 -2
- package/cjs/chunks/bundle-C2ABFLZ1.js.map +1 -0
- package/cjs/chunks/{bundle-a-KJqpeY.js → bundle-C3gIbns_.js} +10 -10
- package/cjs/chunks/bundle-C3gIbns_.js.map +1 -0
- package/cjs/chunks/{bundle-Bzy4_NRF.js → bundle-C9xOwqge.js} +3 -3
- package/cjs/chunks/bundle-C9xOwqge.js.map +1 -0
- package/cjs/chunks/{bundle-B0sJ-8vm.js → bundle-CCEKPtKR.js} +1 -1
- package/cjs/chunks/bundle-CCEKPtKR.js.map +1 -0
- package/cjs/chunks/{bundle-wa4qpxjp.js → bundle-CMoYluZj.js} +4 -4
- package/cjs/chunks/bundle-CMoYluZj.js.map +1 -0
- package/cjs/chunks/{bundle-DiOpJGh-.js → bundle-CSfRc5hY.js} +3 -3
- package/cjs/chunks/bundle-CSfRc5hY.js.map +1 -0
- package/cjs/chunks/{bundle-aYP0bwh_.js → bundle-CYBu-C6E.js} +1 -1
- package/cjs/chunks/bundle-CYBu-C6E.js.map +1 -0
- package/cjs/chunks/{bundle-CK4e6MqD.js → bundle-CfxDEtAN.js} +10 -10
- package/cjs/chunks/bundle-CfxDEtAN.js.map +1 -0
- package/cjs/chunks/{bundle-CYl2v3wW.js → bundle-Chu9Um5P.js} +1 -1
- package/cjs/chunks/bundle-Chu9Um5P.js.map +1 -0
- package/cjs/chunks/{bundle-Cimaz2Wz.js → bundle-CidVlBMl.js} +9 -7
- package/cjs/chunks/bundle-CidVlBMl.js.map +1 -0
- package/cjs/chunks/{bundle-zArQW7NP.js → bundle-Cl34HO9m.js} +5 -5
- package/cjs/chunks/bundle-Cl34HO9m.js.map +1 -0
- package/cjs/chunks/{bundle-BeKLq9sl.js → bundle-Crhw0Zu1.js} +1 -1
- package/cjs/chunks/bundle-Crhw0Zu1.js.map +1 -0
- package/cjs/chunks/{bundle-D2ZB9EdF.js → bundle-CsCGO7nq.js} +2 -2
- package/cjs/chunks/bundle-CsCGO7nq.js.map +1 -0
- package/cjs/chunks/{bundle-o44Pbmy8.js → bundle-CtfNcymC.js} +1 -1
- package/cjs/chunks/bundle-CtfNcymC.js.map +1 -0
- package/cjs/chunks/{bundle-BNrcDbpk.js → bundle-CuhtyPjN.js} +1 -1
- package/cjs/chunks/bundle-CuhtyPjN.js.map +1 -0
- package/cjs/chunks/{bundle-B4TwDXre.js → bundle-DDM7FQ5E.js} +7 -7
- package/cjs/chunks/bundle-DDM7FQ5E.js.map +1 -0
- package/cjs/chunks/{bundle-BffOmMzm.js → bundle-DDSkFKJ4.js} +1 -1
- package/cjs/chunks/bundle-DDSkFKJ4.js.map +1 -0
- package/cjs/chunks/{bundle-CtUclh8a.js → bundle-DEQCIOPf.js} +1 -1
- package/cjs/chunks/bundle-DEQCIOPf.js.map +1 -0
- package/cjs/chunks/{bundle-BSfsim6u.js → bundle-DJbEnul6.js} +6 -6
- package/cjs/chunks/bundle-DJbEnul6.js.map +1 -0
- package/cjs/chunks/{bundle-Bh1pBlFe.js → bundle-DLZ9iVVC.js} +3 -3
- package/cjs/chunks/bundle-DLZ9iVVC.js.map +1 -0
- package/cjs/chunks/{bundle-CrjxrhRR.js → bundle-DPFRrny4.js} +2 -2
- package/cjs/chunks/bundle-DPFRrny4.js.map +1 -0
- package/cjs/chunks/{bundle-tAANyqOj.js → bundle-DP_Z2ZCu.js} +2 -2
- package/cjs/chunks/bundle-DP_Z2ZCu.js.map +1 -0
- package/cjs/chunks/{bundle-CHRgMdqD.js → bundle-DUThNjHI.js} +3 -3
- package/cjs/chunks/{bundle-CHRgMdqD.js.map → bundle-DUThNjHI.js.map} +1 -1
- package/cjs/chunks/{bundle-BMtAL3gL.js → bundle-DhbE_hFO.js} +1 -1
- package/cjs/chunks/bundle-DhbE_hFO.js.map +1 -0
- package/cjs/chunks/{bundle-Dt0Ehz1U.js → bundle-Di5APzpg.js} +5 -4
- package/cjs/chunks/bundle-Di5APzpg.js.map +1 -0
- package/cjs/chunks/{bundle-BwNMzZfg.js → bundle-DpgtZXbp.js} +14 -14
- package/cjs/chunks/{bundle-BwNMzZfg.js.map → bundle-DpgtZXbp.js.map} +1 -1
- package/cjs/chunks/{bundle-IX2NQYwk.js → bundle-DytUGiju.js} +2 -2
- package/cjs/chunks/bundle-DytUGiju.js.map +1 -0
- package/cjs/chunks/{bundle-BZZfP00r.js → bundle-EroNh7Ac.js} +1 -1
- package/cjs/chunks/bundle-EroNh7Ac.js.map +1 -0
- package/cjs/chunks/{bundle-BFmEadGJ.js → bundle-FDJnhm3r.js} +1 -1
- package/cjs/chunks/{bundle-BFmEadGJ.js.map → bundle-FDJnhm3r.js.map} +1 -1
- package/cjs/chunks/{bundle-BwRgHhjl.js → bundle-G2_KR7Mu.js} +7 -7
- package/cjs/chunks/bundle-G2_KR7Mu.js.map +1 -0
- package/cjs/chunks/{bundle-BZEyOKfd.js → bundle-GZJzVB02.js} +4 -4
- package/cjs/chunks/bundle-GZJzVB02.js.map +1 -0
- package/cjs/chunks/{bundle-DDWWo4Ur.js → bundle-HLR6JcDU.js} +1 -1
- package/cjs/chunks/bundle-HLR6JcDU.js.map +1 -0
- package/cjs/chunks/{bundle-DrvpXqH0.js → bundle-Ht75_VEx.js} +2 -2
- package/cjs/chunks/bundle-Ht75_VEx.js.map +1 -0
- package/cjs/chunks/{bundle-DQPcs28F.js → bundle-MdWTpHE3.js} +8 -8
- package/cjs/chunks/bundle-MdWTpHE3.js.map +1 -0
- package/cjs/chunks/{bundle-BLnYd3a5.js → bundle-NgDLJ4XU.js} +3 -3
- package/cjs/chunks/bundle-NgDLJ4XU.js.map +1 -0
- package/cjs/chunks/{bundle-BBWcxxM0.js → bundle-UNBazgOP.js} +11 -11
- package/cjs/chunks/bundle-UNBazgOP.js.map +1 -0
- package/cjs/chunks/{bundle-DveQNuEW.js → bundle-XHpUo2d5.js} +6 -6
- package/cjs/chunks/bundle-XHpUo2d5.js.map +1 -0
- package/cjs/chunks/{bundle-Bj5uGit3.js → bundle-cjfTIYNo.js} +1 -1
- package/cjs/chunks/bundle-cjfTIYNo.js.map +1 -0
- package/cjs/chunks/{bundle-2f5GwCzi.js → bundle-jp-5eI5e.js} +3 -3
- package/cjs/chunks/bundle-jp-5eI5e.js.map +1 -0
- package/cjs/chunks/{bundle-CooVtiK4.js → bundle-lXC5D8Eq.js} +1 -1
- package/cjs/chunks/bundle-lXC5D8Eq.js.map +1 -0
- package/cjs/chunks/{bundle-CTGfAwTJ.js → bundle-lf9AeIkc.js} +3 -3
- package/cjs/chunks/{bundle-CTGfAwTJ.js.map → bundle-lf9AeIkc.js.map} +1 -1
- package/cjs/chunks/{bundle-DjzwlyX1.js → bundle-mNfA1oxo.js} +8 -8
- package/cjs/chunks/{bundle-DjzwlyX1.js.map → bundle-mNfA1oxo.js.map} +1 -1
- package/cjs/chunks/{bundle-CxBq1p0s.js → bundle-pYqgDFla.js} +1 -1
- package/cjs/chunks/bundle-pYqgDFla.js.map +1 -0
- package/cjs/chunks/{bundle-C58ONaz6.js → bundle-tK8yFMGZ.js} +5 -5
- package/cjs/chunks/bundle-tK8yFMGZ.js.map +1 -0
- package/cjs/chunks/{bundle-CRp1Zs4h.js → bundle-uIEHfPv7.js} +1 -1
- package/cjs/chunks/bundle-uIEHfPv7.js.map +1 -0
- package/cjs/chunks/{bundle-CaSblzTL.js → bundle-viPU2Zrj.js} +1 -1
- package/cjs/chunks/bundle-viPU2Zrj.js.map +1 -0
- package/cjs/chunks/{bundle-Cf4WLYFa.js → bundle-wwwDjH0w.js} +1 -1
- package/cjs/chunks/{bundle-Cf4WLYFa.js.map → bundle-wwwDjH0w.js.map} +1 -1
- package/cjs/chunks/{bundle-DQ6EeiN7.js → bundle-z66HeEp3.js} +1 -1
- package/cjs/chunks/bundle-z66HeEp3.js.map +1 -0
- package/cjs/chunks/{bundle-vpFsS041.js → bundle-zUlseH3U.js} +10 -10
- package/cjs/chunks/{bundle-vpFsS041.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-2qPS-99f.js.map +0 -1
- package/chunks/bundle-6c04eWHT.js.map +0 -1
- package/chunks/bundle-6n4c-yxi.js.map +0 -1
- package/chunks/bundle-97fd4oe2.js.map +0 -1
- package/chunks/bundle-B24GwCXx.js.map +0 -1
- package/chunks/bundle-B4CUv14M.js.map +0 -1
- package/chunks/bundle-B4EY2YKu.js.map +0 -1
- package/chunks/bundle-BCeNaIWw.js.map +0 -1
- package/chunks/bundle-BGdbKz3x.js.map +0 -1
- package/chunks/bundle-BQntI2YH.js.map +0 -1
- package/chunks/bundle-B_5nSVDN.js.map +0 -1
- package/chunks/bundle-BbEkZYpE.js.map +0 -1
- package/chunks/bundle-BnG5XETL.js.map +0 -1
- package/chunks/bundle-Bsh5KSxb.js.map +0 -1
- package/chunks/bundle-C0risNHg.js.map +0 -1
- package/chunks/bundle-C5ygMhyk.js.map +0 -1
- package/chunks/bundle-C8Oe5QOQ.js.map +0 -1
- package/chunks/bundle-CAdKFBfs.js.map +0 -1
- package/chunks/bundle-CE_8gK7h.js.map +0 -1
- package/chunks/bundle-CHKEsMqU.js +0 -8
- package/chunks/bundle-CHKEsMqU.js.map +0 -1
- package/chunks/bundle-CQhhBQgY.js.map +0 -1
- package/chunks/bundle-CQxSmK2v.js.map +0 -1
- package/chunks/bundle-CanFPW6u.js.map +0 -1
- package/chunks/bundle-CeN11uF4.js.map +0 -1
- package/chunks/bundle-CeNRu1nh.js.map +0 -1
- package/chunks/bundle-Cg7eHJV0.js.map +0 -1
- package/chunks/bundle-CkCkzFFu.js.map +0 -1
- package/chunks/bundle-Cs0ZtBj7.js.map +0 -1
- package/chunks/bundle-CvuK4Gl-.js.map +0 -1
- package/chunks/bundle-Cxjgwfwy.js.map +0 -1
- package/chunks/bundle-Czh0_N3j.js.map +0 -1
- package/chunks/bundle-D1DIGSmr.js.map +0 -1
- package/chunks/bundle-D4kbZg4e.js.map +0 -1
- package/chunks/bundle-D4mHGcWb.js.map +0 -1
- package/chunks/bundle-DBy3c8gM.js.map +0 -1
- package/chunks/bundle-DRpQlFMu.js.map +0 -1
- package/chunks/bundle-DarlDWy7.js.map +0 -1
- package/chunks/bundle-DcZ6VbHw.js.map +0 -1
- package/chunks/bundle-DlBu0K2F.js.map +0 -1
- package/chunks/bundle-DlHY-98U.js.map +0 -1
- package/chunks/bundle-Ds5aQSz-.js.map +0 -1
- package/chunks/bundle-L4mF-vqf.js.map +0 -1
- package/chunks/bundle-LIsneT-k.js.map +0 -1
- package/chunks/bundle-OJu5PM7q.js.map +0 -1
- package/chunks/bundle-_9XBB-ZS.js.map +0 -1
- package/chunks/bundle-b4p8k2uf.js.map +0 -1
- package/chunks/bundle-caD0Cpiq.js.map +0 -1
- package/chunks/bundle-gSigJ2qv.js.map +0 -1
- package/chunks/bundle-lYawLy67.js.map +0 -1
- package/chunks/bundle-vVxTsDkS.js.map +0 -1
- package/chunks/bundle-wKPuxvL-.js.map +0 -1
- package/cjs/chunks/bundle-0q_scAND.js.map +0 -1
- package/cjs/chunks/bundle-2f5GwCzi.js.map +0 -1
- package/cjs/chunks/bundle-B0sJ-8vm.js.map +0 -1
- package/cjs/chunks/bundle-B4TwDXre.js.map +0 -1
- package/cjs/chunks/bundle-B8q44rPm.js.map +0 -1
- package/cjs/chunks/bundle-B9IeOTau.js.map +0 -1
- package/cjs/chunks/bundle-BBWcxxM0.js.map +0 -1
- package/cjs/chunks/bundle-BGHVt4pv.js.map +0 -1
- package/cjs/chunks/bundle-BKeOSYnB.js.map +0 -1
- package/cjs/chunks/bundle-BLnYd3a5.js.map +0 -1
- package/cjs/chunks/bundle-BMtAL3gL.js.map +0 -1
- package/cjs/chunks/bundle-BNrcDbpk.js.map +0 -1
- package/cjs/chunks/bundle-BNyi-HLe.js.map +0 -1
- package/cjs/chunks/bundle-BOxqoDK2.js.map +0 -1
- package/cjs/chunks/bundle-BSfsim6u.js.map +0 -1
- package/cjs/chunks/bundle-BZEyOKfd.js.map +0 -1
- package/cjs/chunks/bundle-BZZfP00r.js.map +0 -1
- package/cjs/chunks/bundle-BeKLq9sl.js.map +0 -1
- package/cjs/chunks/bundle-BfU270mH.js.map +0 -1
- package/cjs/chunks/bundle-BffOmMzm.js.map +0 -1
- package/cjs/chunks/bundle-Bh1pBlFe.js.map +0 -1
- package/cjs/chunks/bundle-BiUFkVUS.js.map +0 -1
- package/cjs/chunks/bundle-Bj5uGit3.js.map +0 -1
- package/cjs/chunks/bundle-BvRYyRnB.js.map +0 -1
- package/cjs/chunks/bundle-BwRgHhjl.js.map +0 -1
- package/cjs/chunks/bundle-Bzy4_NRF.js.map +0 -1
- package/cjs/chunks/bundle-C-FliXg3.js.map +0 -1
- package/cjs/chunks/bundle-C58ONaz6.js.map +0 -1
- package/cjs/chunks/bundle-CEXaY05E.js +0 -8
- package/cjs/chunks/bundle-CEXaY05E.js.map +0 -1
- package/cjs/chunks/bundle-CK4e6MqD.js.map +0 -1
- package/cjs/chunks/bundle-CRp1Zs4h.js.map +0 -1
- package/cjs/chunks/bundle-CWXCI9cE.js.map +0 -1
- package/cjs/chunks/bundle-CYl2v3wW.js.map +0 -1
- package/cjs/chunks/bundle-CaSblzTL.js.map +0 -1
- package/cjs/chunks/bundle-CbqU9Myv.js.map +0 -1
- package/cjs/chunks/bundle-CdthjbGs.js.map +0 -1
- package/cjs/chunks/bundle-Cimaz2Wz.js.map +0 -1
- package/cjs/chunks/bundle-CooVtiK4.js.map +0 -1
- package/cjs/chunks/bundle-CrjxrhRR.js.map +0 -1
- package/cjs/chunks/bundle-CsyBnNlx.js.map +0 -1
- package/cjs/chunks/bundle-CtUclh8a.js.map +0 -1
- package/cjs/chunks/bundle-CxBq1p0s.js.map +0 -1
- package/cjs/chunks/bundle-D2ZB9EdF.js.map +0 -1
- package/cjs/chunks/bundle-DDWWo4Ur.js.map +0 -1
- package/cjs/chunks/bundle-DQ6EeiN7.js.map +0 -1
- package/cjs/chunks/bundle-DQPcs28F.js.map +0 -1
- package/cjs/chunks/bundle-DaHjWMxX.js.map +0 -1
- package/cjs/chunks/bundle-DdUUl9AF.js.map +0 -1
- package/cjs/chunks/bundle-DiOpJGh-.js.map +0 -1
- package/cjs/chunks/bundle-DrvpXqH0.js.map +0 -1
- package/cjs/chunks/bundle-Dt0Ehz1U.js.map +0 -1
- package/cjs/chunks/bundle-Dt1ALnWb.js.map +0 -1
- package/cjs/chunks/bundle-Dtsa1X9i.js.map +0 -1
- package/cjs/chunks/bundle-DveQNuEW.js.map +0 -1
- package/cjs/chunks/bundle-IX2NQYwk.js.map +0 -1
- package/cjs/chunks/bundle-a-KJqpeY.js.map +0 -1
- package/cjs/chunks/bundle-aYP0bwh_.js.map +0 -1
- package/cjs/chunks/bundle-iA0z-oXP.js.map +0 -1
- package/cjs/chunks/bundle-jG5ojZfP.js.map +0 -1
- package/cjs/chunks/bundle-lF1xvz4H.js.map +0 -1
- package/cjs/chunks/bundle-o44Pbmy8.js.map +0 -1
- package/cjs/chunks/bundle-tAANyqOj.js.map +0 -1
- package/cjs/chunks/bundle-wa4qpxjp.js.map +0 -1
- package/cjs/chunks/bundle-zArQW7NP.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';
|