@sendbird/uikit-react 3.13.3 → 3.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +78 -77
- package/App.js.map +1 -1
- package/CHANGELOG.md +7 -0
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +66 -65
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +28 -28
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +55 -54
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +41 -41
- package/Channel/components/MessageInputWrapper.js +41 -41
- package/Channel/components/MessageList.js +59 -58
- package/Channel/components/MessageList.js.map +1 -1
- 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 +21 -24
- package/Channel/context.js.map +1 -1
- 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 +66 -65
- package/Channel.js.map +1 -1
- 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 +24 -23
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +5 -5
- package/GroupChannel/components/GroupChannelHeader.js +23 -22
- package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/GroupChannel/components/GroupChannelUI.js +61 -59
- package/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/GroupChannel/components/Message.js +53 -51
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +39 -38
- package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/GroupChannel/components/MessageList.js +54 -52
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +23 -22
- package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- 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 +16 -15
- package/GroupChannel/context.js.map +1 -1
- package/GroupChannel.js +61 -59
- package/GroupChannel.js.map +1 -1
- 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 +19 -18
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +45 -45
- package/Thread/components/ParentMessageInfoItem.js +29 -30
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +46 -46
- package/Thread/components/ThreadListItem.js +49 -49
- package/Thread/components/ThreadMessageInput.js +43 -42
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- 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-BMvaJoQA.js → bundle-B1ZvrUJC.js} +5 -5
- package/chunks/{bundle-BMvaJoQA.js.map → bundle-B1ZvrUJC.js.map} +1 -1
- package/chunks/{bundle-D6kFzMhH.js → bundle-B2iYTaOy.js} +5 -5
- package/chunks/{bundle-D6kFzMhH.js.map → bundle-B2iYTaOy.js.map} +1 -1
- package/chunks/{bundle-Ds2X6Fjs.js → bundle-BDh3tZJZ.js} +10 -10
- package/chunks/bundle-BDh3tZJZ.js.map +1 -0
- package/chunks/{bundle-5HwGq_hd.js → bundle-BDwg9zpL.js} +4 -4
- package/chunks/{bundle-5HwGq_hd.js.map → bundle-BDwg9zpL.js.map} +1 -1
- package/chunks/{bundle-C6ZXjQ1L.js → bundle-BFBqZQJ9.js} +1 -1
- package/chunks/bundle-BFBqZQJ9.js.map +1 -0
- package/chunks/{bundle-oLhQai93.js → bundle-BGAFVNl1.js} +2 -2
- package/chunks/bundle-BGAFVNl1.js.map +1 -0
- package/chunks/{bundle-Di7baNGv.js → bundle-BGLmaniw.js} +1 -1
- package/chunks/bundle-BGLmaniw.js.map +1 -0
- package/chunks/{bundle-CfZFWZM3.js → bundle-BIL-EuIn.js} +3 -3
- package/chunks/{bundle-CfZFWZM3.js.map → bundle-BIL-EuIn.js.map} +1 -1
- package/chunks/{bundle-Dypl_pLH.js → bundle-BKME3Dov.js} +2 -2
- package/chunks/{bundle-Dypl_pLH.js.map → bundle-BKME3Dov.js.map} +1 -1
- package/chunks/{bundle-DTywBX7q.js → bundle-BMDrxc53.js} +4 -4
- package/chunks/{bundle-DTywBX7q.js.map → bundle-BMDrxc53.js.map} +1 -1
- package/chunks/{bundle-DxdGwARh.js → bundle-BMXFLTlz.js} +3 -3
- package/chunks/{bundle-DxdGwARh.js.map → bundle-BMXFLTlz.js.map} +1 -1
- package/chunks/{bundle-BXpzbAbi.js → bundle-BPJA0Ef_.js} +3 -3
- package/chunks/bundle-BPJA0Ef_.js.map +1 -0
- package/chunks/{bundle-SvqLmXeF.js → bundle-BQBGXdRe.js} +6 -6
- package/chunks/bundle-BQBGXdRe.js.map +1 -0
- package/chunks/{bundle-DqNfXH8L.js → bundle-BV-NlgGa.js} +2 -2
- package/chunks/bundle-BV-NlgGa.js.map +1 -0
- package/chunks/{bundle-CMKCY3ba.js → bundle-B_U2CyMo.js} +3 -3
- package/chunks/{bundle-CMKCY3ba.js.map → bundle-B_U2CyMo.js.map} +1 -1
- package/chunks/{bundle-D3OeBr-9.js → bundle-BbjX4aSu.js} +1 -1
- package/chunks/bundle-BbjX4aSu.js.map +1 -0
- package/chunks/{bundle-BlHQV-25.js → bundle-Bc_aYmYY.js} +1 -1
- package/chunks/bundle-Bc_aYmYY.js.map +1 -0
- package/chunks/{bundle-Dj4HLKX0.js → bundle-Beyq348T.js} +10 -10
- package/chunks/bundle-Beyq348T.js.map +1 -0
- package/chunks/{bundle-Bm_WZS3a.js → bundle-Bjy2QoZR.js} +2 -2
- package/chunks/{bundle-Bm_WZS3a.js.map → bundle-Bjy2QoZR.js.map} +1 -1
- package/chunks/{bundle-CkInAxxb.js → bundle-BkU-pX0u.js} +1 -1
- package/chunks/bundle-BkU-pX0u.js.map +1 -0
- package/chunks/{bundle-BxBdkxXV.js → bundle-Bk_Rm_ms.js} +1 -1
- package/chunks/{bundle-BxBdkxXV.js.map → bundle-Bk_Rm_ms.js.map} +1 -1
- package/chunks/{bundle-HsrPpAtd.js → bundle-BnClYJ2n.js} +2 -2
- package/chunks/bundle-BnClYJ2n.js.map +1 -0
- package/chunks/{bundle-4a9M9y8N.js → bundle-BubJq4ch.js} +1 -1
- package/chunks/{bundle-4a9M9y8N.js.map → bundle-BubJq4ch.js.map} +1 -1
- package/chunks/{bundle-jd7__XU_.js → bundle-BwrkRF6Z.js} +7 -7
- package/chunks/bundle-BwrkRF6Z.js.map +1 -0
- package/chunks/{bundle-CIO0N9hp.js → bundle-C1w__IfN.js} +1 -1
- package/chunks/bundle-C1w__IfN.js.map +1 -0
- package/chunks/{bundle-j5EP0k3D.js → bundle-C5iJQzA5.js} +3 -3
- package/chunks/bundle-C5iJQzA5.js.map +1 -0
- package/chunks/{bundle-DEqxoG9B.js → bundle-C6rVJwjU.js} +1 -1
- package/chunks/bundle-C6rVJwjU.js.map +1 -0
- package/chunks/{bundle-DavEbLba.js → bundle-CDxehknk.js} +2 -2
- package/chunks/bundle-CDxehknk.js.map +1 -0
- package/chunks/{bundle-COR7gPrO.js → bundle-CI1PvWSX.js} +3 -3
- package/chunks/{bundle-COR7gPrO.js.map → bundle-CI1PvWSX.js.map} +1 -1
- package/chunks/{bundle-CilkBcv-.js → bundle-CITS0ULl.js} +2 -2
- package/chunks/bundle-CITS0ULl.js.map +1 -0
- package/chunks/{bundle-DI3fL4Xw.js → bundle-CM3EExp1.js} +3 -3
- package/chunks/{bundle-DI3fL4Xw.js.map → bundle-CM3EExp1.js.map} +1 -1
- package/chunks/{bundle-rl7Rvf_6.js → bundle-CMaPzCu6.js} +10 -10
- package/chunks/bundle-CMaPzCu6.js.map +1 -0
- package/chunks/{bundle-BntzGGYb.js → bundle-COi5R8ff.js} +1 -1
- package/chunks/bundle-COi5R8ff.js.map +1 -0
- package/chunks/{bundle-C2vpr4DU.js → bundle-COqMiiHK.js} +3 -3
- package/chunks/{bundle-C2vpr4DU.js.map → bundle-COqMiiHK.js.map} +1 -1
- package/chunks/{bundle-aE9efllI.js → bundle-CQH_PhUR.js} +2 -2
- package/chunks/bundle-CQH_PhUR.js.map +1 -0
- package/chunks/{bundle-BX0LQWqY.js → bundle-CQNUJQI5.js} +3 -3
- package/chunks/bundle-CQNUJQI5.js.map +1 -0
- package/chunks/{bundle-CIhbNReG.js → bundle-CWE2Nmni.js} +3 -3
- package/chunks/bundle-CWE2Nmni.js.map +1 -0
- package/chunks/{bundle-CYtZF1xr.js → bundle-CWwqSd5D.js} +11 -11
- package/chunks/{bundle-CYtZF1xr.js.map → bundle-CWwqSd5D.js.map} +1 -1
- package/chunks/{bundle-DuNr1Njk.js → bundle-CWy1uXBP.js} +1 -1
- package/chunks/bundle-CWy1uXBP.js.map +1 -0
- package/chunks/{bundle-BAsn0CBE.js → bundle-CZD061M5.js} +1 -1
- package/chunks/bundle-CZD061M5.js.map +1 -0
- package/chunks/{bundle-CLqgMCvn.js → bundle-CZImHp2_.js} +1 -1
- package/chunks/bundle-CZImHp2_.js.map +1 -0
- package/chunks/{bundle-BOrV2z_R.js → bundle-C_WhVMxW.js} +8 -8
- package/chunks/{bundle-BOrV2z_R.js.map → bundle-C_WhVMxW.js.map} +1 -1
- package/chunks/{bundle-DlHudqve.js → bundle-C_fuMIiV.js} +1 -1
- package/chunks/bundle-C_fuMIiV.js.map +1 -0
- package/chunks/{bundle-BHOxoDJO.js → bundle-CfTtYjwW.js} +1 -1
- package/chunks/{bundle-BHOxoDJO.js.map → bundle-CfTtYjwW.js.map} +1 -1
- package/chunks/{bundle-IuZ6uyzU.js → bundle-Cgvcg-hF.js} +1 -1
- package/chunks/bundle-Cgvcg-hF.js.map +1 -0
- package/chunks/{bundle-GRqvZZ2N.js → bundle-CiDJbBK2.js} +3 -3
- package/chunks/bundle-CiDJbBK2.js.map +1 -0
- package/chunks/{bundle-CT3xDvIx.js → bundle-CjRxpU7G.js} +1 -1
- package/chunks/bundle-CjRxpU7G.js.map +1 -0
- package/chunks/{bundle-DoJNLxY9.js → bundle-Cmz3PMDG.js} +1 -1
- package/chunks/bundle-Cmz3PMDG.js.map +1 -0
- package/chunks/{bundle-DHp0VTVS.js → bundle-CqH5p9Gv.js} +1 -1
- package/chunks/bundle-CqH5p9Gv.js.map +1 -0
- package/chunks/{bundle-CjW6ZQ1k.js → bundle-CqduZDR2.js} +10 -10
- package/chunks/bundle-CqduZDR2.js.map +1 -0
- package/chunks/{bundle-DaQK1Cox.js → bundle-Cs4hJMwU.js} +1 -1
- package/chunks/{bundle-DaQK1Cox.js.map → bundle-Cs4hJMwU.js.map} +1 -1
- package/chunks/bundle-D61B3g47.js +16 -0
- package/chunks/bundle-D61B3g47.js.map +1 -0
- package/chunks/{bundle-C6fuKmVo.js → bundle-DJIYKEQ6.js} +4 -4
- package/chunks/bundle-DJIYKEQ6.js.map +1 -0
- package/chunks/{bundle-B8HW06Fl.js → bundle-DLgH4AnS.js} +1 -1
- package/chunks/bundle-DLgH4AnS.js.map +1 -0
- package/chunks/{bundle-CS4RK0T7.js → bundle-DQ7Sezq6.js} +8 -8
- package/chunks/{bundle-CS4RK0T7.js.map → bundle-DQ7Sezq6.js.map} +1 -1
- package/chunks/{bundle-CZYvKysu.js → bundle-DQe5j4Ej.js} +1 -1
- package/chunks/bundle-DQe5j4Ej.js.map +1 -0
- package/chunks/{bundle-DNq8IoOw.js → bundle-DQeBqwB7.js} +7 -7
- package/chunks/{bundle-DNq8IoOw.js.map → bundle-DQeBqwB7.js.map} +1 -1
- package/chunks/{bundle-fvRtOX6P.js → bundle-DRIqH2Lj.js} +5 -5
- package/chunks/bundle-DRIqH2Lj.js.map +1 -0
- package/chunks/{bundle-BVGlC_pg.js → bundle-DRYurEAE.js} +1 -1
- package/chunks/bundle-DRYurEAE.js.map +1 -0
- package/chunks/{bundle-BpDuHeEB.js → bundle-DS70L2uo.js} +4 -4
- package/chunks/bundle-DS70L2uo.js.map +1 -0
- package/chunks/{bundle-D47WMGAq.js → bundle-DX1OveAN.js} +342 -10
- package/chunks/bundle-DX1OveAN.js.map +1 -0
- package/chunks/{bundle-CJ9_QDKY.js → bundle-DYl8seXE.js} +1 -1
- package/chunks/bundle-DYl8seXE.js.map +1 -0
- package/chunks/{bundle-ts_i6oEg.js → bundle-DfNKdS2T.js} +1 -1
- package/chunks/bundle-DfNKdS2T.js.map +1 -0
- package/chunks/{bundle-DYJilNov.js → bundle-DjBJ92V6.js} +1 -1
- package/chunks/bundle-DjBJ92V6.js.map +1 -0
- package/chunks/{bundle-VttuSapS.js → bundle-DnU7egVq.js} +10 -10
- package/chunks/{bundle-VttuSapS.js.map → bundle-DnU7egVq.js.map} +1 -1
- package/chunks/{bundle-aJhoAKLH.js → bundle-DsRwP8br.js} +6 -6
- package/chunks/bundle-DsRwP8br.js.map +1 -0
- package/chunks/{bundle-BIvhXCoF.js → bundle-DtUoZCGr.js} +1 -1
- package/chunks/bundle-DtUoZCGr.js.map +1 -0
- package/chunks/{bundle-CP1hwfFC.js → bundle-DwNq9e58.js} +1 -1
- package/chunks/bundle-DwNq9e58.js.map +1 -0
- package/chunks/{bundle-yNfnN0a6.js → bundle-H7Epr4d4.js} +1 -1
- package/chunks/bundle-H7Epr4d4.js.map +1 -0
- package/chunks/{bundle-CmdUup8N.js → bundle-IeEx7ZrL.js} +14 -14
- package/chunks/{bundle-CmdUup8N.js.map → bundle-IeEx7ZrL.js.map} +1 -1
- package/chunks/{bundle-CVFMpKJZ.js → bundle-JHZY-YFz.js} +4 -4
- package/chunks/{bundle-CVFMpKJZ.js.map → bundle-JHZY-YFz.js.map} +1 -1
- package/chunks/{bundle-DIEAFe_F.js → bundle-NqG9qQGl.js} +2 -2
- package/chunks/bundle-NqG9qQGl.js.map +1 -0
- package/chunks/{bundle-DPhbbRZE.js → bundle-Rw92BpIy.js} +3 -3
- package/chunks/bundle-Rw92BpIy.js.map +1 -0
- package/chunks/{bundle-BkM4cdOJ.js → bundle-STT4EeZr.js} +5 -5
- package/chunks/bundle-STT4EeZr.js.map +1 -0
- package/chunks/{bundle-WrvoTlHQ.js → bundle-e_Zs_0_s.js} +1 -1
- package/chunks/bundle-e_Zs_0_s.js.map +1 -0
- package/chunks/{bundle-DBzkkIf1.js → bundle-gUToZpdB.js} +2 -2
- package/chunks/{bundle-DBzkkIf1.js.map → bundle-gUToZpdB.js.map} +1 -1
- package/chunks/{bundle-CVDtzU3E.js → bundle-gpW5SzKB.js} +1 -1
- package/chunks/{bundle-CVDtzU3E.js.map → bundle-gpW5SzKB.js.map} +1 -1
- package/chunks/{bundle-CAki7JUf.js → bundle-poQ_bkuG.js} +1 -1
- package/chunks/bundle-poQ_bkuG.js.map +1 -0
- package/chunks/{bundle-CCUBCV04.js → bundle-rw2lAbqx.js} +6 -6
- package/chunks/bundle-rw2lAbqx.js.map +1 -0
- package/chunks/{bundle-D45e30Hl.js → bundle-ukoaTUoi.js} +4 -4
- package/chunks/bundle-ukoaTUoi.js.map +1 -0
- package/chunks/{bundle-DQnpJfyk.js → bundle-wgMIpEwC.js} +3 -3
- package/chunks/bundle-wgMIpEwC.js.map +1 -0
- package/chunks/{bundle-1ymLj4Og.js → bundle-xK4JoSJg.js} +1 -1
- package/chunks/bundle-xK4JoSJg.js.map +1 -0
- package/cjs/App.js +78 -77
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +66 -65
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +28 -28
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +55 -54
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +41 -41
- package/cjs/Channel/components/MessageInputWrapper.js +41 -41
- package/cjs/Channel/components/MessageList.js +59 -58
- package/cjs/Channel/components/MessageList.js.map +1 -1
- 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 +21 -24
- package/cjs/Channel/context.js.map +1 -1
- 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 +66 -65
- package/cjs/Channel.js.map +1 -1
- 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 +24 -23
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
- package/cjs/GroupChannel/components/GroupChannelHeader.js +23 -22
- package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelUI.js +61 -59
- package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/cjs/GroupChannel/components/Message.js +53 -51
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +38 -37
- package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/GroupChannel/components/MessageList.js +54 -52
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +23 -22
- package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- 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 +16 -15
- package/cjs/GroupChannel/context.js.map +1 -1
- package/cjs/GroupChannel.js +61 -59
- package/cjs/GroupChannel.js.map +1 -1
- 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 +19 -18
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +45 -45
- package/cjs/Thread/components/ParentMessageInfoItem.js +29 -30
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +46 -46
- package/cjs/Thread/components/ThreadListItem.js +49 -49
- package/cjs/Thread/components/ThreadMessageInput.js +43 -42
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- 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-Bc6y_vRE.js → bundle-1fvIlQFc.js} +1 -1
- package/cjs/chunks/bundle-1fvIlQFc.js.map +1 -0
- package/cjs/chunks/{bundle-BXQqL0gU.js → bundle-B0-rystv.js} +1 -1
- package/cjs/chunks/bundle-B0-rystv.js.map +1 -0
- package/cjs/chunks/{bundle-YUHup5bR.js → bundle-B3Jc24pW.js} +1 -1
- package/cjs/chunks/bundle-B3Jc24pW.js.map +1 -0
- package/cjs/chunks/{bundle-BiEQOJHh.js → bundle-B49MzbKt.js} +1 -1
- package/cjs/chunks/bundle-B49MzbKt.js.map +1 -0
- package/cjs/chunks/{bundle-D_qbYkHk.js → bundle-B6SHa7HY.js} +1 -1
- package/cjs/chunks/{bundle-D_qbYkHk.js.map → bundle-B6SHa7HY.js.map} +1 -1
- package/cjs/chunks/{bundle-Dm7xuKwW.js → bundle-BF3_jY0B.js} +10 -10
- package/cjs/chunks/{bundle-Dm7xuKwW.js.map → bundle-BF3_jY0B.js.map} +1 -1
- package/cjs/chunks/{bundle-Bpm6PJIl.js → bundle-BHORaUok.js} +7 -7
- package/cjs/chunks/bundle-BHORaUok.js.map +1 -0
- package/cjs/chunks/{bundle-HXyGAP9T.js → bundle-BIXsLqsx.js} +1 -1
- package/cjs/chunks/bundle-BIXsLqsx.js.map +1 -0
- package/cjs/chunks/{bundle-2ATovRxE.js → bundle-BLz8ybtq.js} +4 -4
- package/cjs/chunks/bundle-BLz8ybtq.js.map +1 -0
- package/cjs/chunks/{bundle-p3gZAjMS.js → bundle-BNRHeX4c.js} +1 -1
- package/cjs/chunks/bundle-BNRHeX4c.js.map +1 -0
- package/cjs/chunks/{bundle-BnTCpa1X.js → bundle-BPu68b3l.js} +10 -10
- package/cjs/chunks/bundle-BPu68b3l.js.map +1 -0
- package/cjs/chunks/{bundle-HOuE7syZ.js → bundle-BQ_GLU-Z.js} +1 -1
- package/cjs/chunks/{bundle-HOuE7syZ.js.map → bundle-BQ_GLU-Z.js.map} +1 -1
- package/cjs/chunks/{bundle-BO1-msX2.js → bundle-BRFyx9M7.js} +1 -1
- package/cjs/chunks/bundle-BRFyx9M7.js.map +1 -0
- package/cjs/chunks/{bundle-C36gEKFp.js → bundle-BSD8K_lr.js} +2 -2
- package/cjs/chunks/bundle-BSD8K_lr.js.map +1 -0
- package/cjs/chunks/{bundle-1FXPxsfD.js → bundle-BZ1104q7.js} +1 -1
- package/cjs/chunks/bundle-BZ1104q7.js.map +1 -0
- package/cjs/chunks/{bundle-B3Lu20wG.js → bundle-BZSMXJPx.js} +1 -1
- package/cjs/chunks/bundle-BZSMXJPx.js.map +1 -0
- package/cjs/chunks/{bundle-D_RomXCz.js → bundle-BaR5x6SY.js} +1 -1
- package/cjs/chunks/bundle-BaR5x6SY.js.map +1 -0
- package/cjs/chunks/{bundle-D1mv8BUm.js → bundle-BayNBoOS.js} +1 -1
- package/cjs/chunks/bundle-BayNBoOS.js.map +1 -0
- package/cjs/chunks/{bundle-BElidCBa.js → bundle-Bb5cRyq6.js} +5 -5
- package/cjs/chunks/bundle-Bb5cRyq6.js.map +1 -0
- package/cjs/chunks/{bundle-DuHJq3hs.js → bundle-Bc5UcoJP.js} +10 -10
- package/cjs/chunks/bundle-Bc5UcoJP.js.map +1 -0
- package/cjs/chunks/{bundle-CXDp72cg.js → bundle-Bctvv222.js} +10 -10
- package/cjs/chunks/bundle-Bctvv222.js.map +1 -0
- package/cjs/chunks/{bundle-urLzDFXK.js → bundle-Bk9ElKEB.js} +1 -1
- package/cjs/chunks/bundle-Bk9ElKEB.js.map +1 -0
- package/cjs/chunks/{bundle-ChQ3Q-GS.js → bundle-BqIYgvHh.js} +7 -7
- package/cjs/chunks/bundle-BqIYgvHh.js.map +1 -0
- package/cjs/chunks/{bundle-BNCNRHux.js → bundle-BxFQ5Xct.js} +3 -3
- package/cjs/chunks/bundle-BxFQ5Xct.js.map +1 -0
- package/cjs/chunks/{bundle-BpwSTA3F.js → bundle-BzKGASmU.js} +1 -1
- package/cjs/chunks/bundle-BzKGASmU.js.map +1 -0
- package/cjs/chunks/{bundle-BBdLSx_x.js → bundle-C5rgdPZX.js} +3 -3
- package/cjs/chunks/{bundle-BBdLSx_x.js.map → bundle-C5rgdPZX.js.map} +1 -1
- package/cjs/chunks/{bundle-DkGYX29W.js → bundle-CE5zgke3.js} +3 -3
- package/cjs/chunks/bundle-CE5zgke3.js.map +1 -0
- package/cjs/chunks/{bundle-kzleXCM7.js → bundle-CGj3BZJg.js} +6 -6
- package/cjs/chunks/bundle-CGj3BZJg.js.map +1 -0
- package/cjs/chunks/{bundle-P5AI1HkP.js → bundle-CIL--T4M.js} +1 -1
- package/cjs/chunks/bundle-CIL--T4M.js.map +1 -0
- package/cjs/chunks/{bundle-_D9xt-bK.js → bundle-CJaf2uOt.js} +1 -1
- package/cjs/chunks/bundle-CJaf2uOt.js.map +1 -0
- package/cjs/chunks/{bundle-DiER49ZF.js → bundle-CLpfRs2P.js} +1 -1
- package/cjs/chunks/bundle-CLpfRs2P.js.map +1 -0
- package/cjs/chunks/{bundle-Vn-fJ6dU.js → bundle-CNW1YSQN.js} +4 -4
- package/cjs/chunks/{bundle-Vn-fJ6dU.js.map → bundle-CNW1YSQN.js.map} +1 -1
- package/cjs/chunks/{bundle-BJjQQMo0.js → bundle-CTuSXAYI.js} +4 -4
- package/cjs/chunks/bundle-CTuSXAYI.js.map +1 -0
- package/cjs/chunks/{bundle-DsDhHgmF.js → bundle-CW1x9olL.js} +2 -2
- package/cjs/chunks/bundle-CW1x9olL.js.map +1 -0
- package/cjs/chunks/{bundle-CfRX00vQ.js → bundle-CW6CrfeA.js} +1 -1
- package/cjs/chunks/bundle-CW6CrfeA.js.map +1 -0
- package/cjs/chunks/{bundle-IVxSH9N4.js → bundle-CYC-EHz_.js} +1 -1
- package/cjs/chunks/bundle-CYC-EHz_.js.map +1 -0
- package/cjs/chunks/{bundle-DRT94QO5.js → bundle-CYJdD4YQ.js} +4 -4
- package/cjs/chunks/bundle-CYJdD4YQ.js.map +1 -0
- package/cjs/chunks/{bundle-B-njjZtk.js → bundle-CZAemrm7.js} +3 -3
- package/cjs/chunks/bundle-CZAemrm7.js.map +1 -0
- package/cjs/chunks/{bundle-CncTMWLv.js → bundle-CZXyLyvY.js} +4 -4
- package/cjs/chunks/{bundle-CncTMWLv.js.map → bundle-CZXyLyvY.js.map} +1 -1
- package/cjs/chunks/{bundle-DKspFBdx.js → bundle-Ccdc0Gb5.js} +1 -1
- package/cjs/chunks/bundle-Ccdc0Gb5.js.map +1 -0
- package/cjs/chunks/{bundle-DeOn9o6F.js → bundle-CdbNgXdl.js} +3 -3
- package/cjs/chunks/bundle-CdbNgXdl.js.map +1 -0
- package/cjs/chunks/bundle-CeEZFkTQ.js +18 -0
- package/cjs/chunks/bundle-CeEZFkTQ.js.map +1 -0
- package/cjs/chunks/{bundle-DmPl_3ye.js → bundle-Ceobt9tz.js} +2 -2
- package/cjs/chunks/bundle-Ceobt9tz.js.map +1 -0
- package/cjs/chunks/{bundle-pVDX6G_q.js → bundle-CgFq3Med.js} +3 -3
- package/cjs/chunks/bundle-CgFq3Med.js.map +1 -0
- package/cjs/chunks/{bundle-prE7SKQr.js → bundle-ClrKyrJs.js} +1 -1
- package/cjs/chunks/{bundle-prE7SKQr.js.map → bundle-ClrKyrJs.js.map} +1 -1
- package/cjs/chunks/{bundle-BBS4PSSm.js → bundle-CpzZZ7M9.js} +1 -1
- package/cjs/chunks/bundle-CpzZZ7M9.js.map +1 -0
- package/cjs/chunks/{bundle-DskQULoR.js → bundle-Crlai1o-.js} +2 -2
- package/cjs/chunks/{bundle-DskQULoR.js.map → bundle-Crlai1o-.js.map} +1 -1
- package/cjs/chunks/{bundle-d3t3a2vc.js → bundle-CseKMdlR.js} +1 -1
- package/cjs/chunks/bundle-CseKMdlR.js.map +1 -0
- package/cjs/chunks/{bundle-r8oxykjl.js → bundle-CwMAldj2.js} +10 -10
- package/cjs/chunks/bundle-CwMAldj2.js.map +1 -0
- package/cjs/chunks/{bundle-BJD09510.js → bundle-D24woH47.js} +6 -6
- package/cjs/chunks/bundle-D24woH47.js.map +1 -0
- package/cjs/chunks/{bundle-S09sS9Ub.js → bundle-D4mvQ-g-.js} +1 -1
- package/cjs/chunks/bundle-D4mvQ-g-.js.map +1 -0
- package/cjs/chunks/{bundle-C1j0QNr3.js → bundle-D61JhQbF.js} +5 -5
- package/cjs/chunks/bundle-D61JhQbF.js.map +1 -0
- package/cjs/chunks/{bundle-CfEubbCT.js → bundle-D8bfh4in.js} +2 -2
- package/cjs/chunks/bundle-D8bfh4in.js.map +1 -0
- package/cjs/chunks/{bundle-DvduWWQk.js → bundle-DDOOM8dR.js} +3 -3
- package/cjs/chunks/bundle-DDOOM8dR.js.map +1 -0
- package/cjs/chunks/{bundle-BSLZ5pEu.js → bundle-DJP8sDlh.js} +3 -3
- package/cjs/chunks/bundle-DJP8sDlh.js.map +1 -0
- package/cjs/chunks/{bundle-DdS-jEnE.js → bundle-DOcN07_k.js} +3 -3
- package/cjs/chunks/bundle-DOcN07_k.js.map +1 -0
- package/cjs/chunks/{bundle-DtroGUKx.js → bundle-DSOCWjjy.js} +3 -3
- package/cjs/chunks/{bundle-DtroGUKx.js.map → bundle-DSOCWjjy.js.map} +1 -1
- package/cjs/chunks/{bundle-B6FFmfTl.js → bundle-DcpFAmP5.js} +2 -2
- package/cjs/chunks/bundle-DcpFAmP5.js.map +1 -0
- package/cjs/chunks/{bundle-DOmB6XkC.js → bundle-DeM_SnVk.js} +8 -8
- package/cjs/chunks/{bundle-DOmB6XkC.js.map → bundle-DeM_SnVk.js.map} +1 -1
- package/cjs/chunks/{bundle-vxdq428L.js → bundle-DgelSjQS.js} +1 -1
- package/cjs/chunks/bundle-DgelSjQS.js.map +1 -0
- package/cjs/chunks/{bundle-CXaKbxhR.js → bundle-DhjEfAMy.js} +5 -5
- package/cjs/chunks/bundle-DhjEfAMy.js.map +1 -0
- package/cjs/chunks/{bundle-CQiNKK2y.js → bundle-DiakHiZV.js} +2 -2
- package/cjs/chunks/bundle-DiakHiZV.js.map +1 -0
- package/cjs/chunks/{bundle-Tx6vw4BY.js → bundle-DmRqoAXr.js} +3 -3
- package/cjs/chunks/{bundle-Tx6vw4BY.js.map → bundle-DmRqoAXr.js.map} +1 -1
- package/cjs/chunks/{bundle-CEiDcA9X.js → bundle-DvPVD7TA.js} +342 -10
- package/cjs/chunks/bundle-DvPVD7TA.js.map +1 -0
- package/cjs/chunks/{bundle-tbYf0yOX.js → bundle-Dviv4ypI.js} +1 -1
- package/cjs/chunks/bundle-Dviv4ypI.js.map +1 -0
- package/cjs/chunks/{bundle-QSgOdsGM.js → bundle-DxKhJ-tt.js} +1 -1
- package/cjs/chunks/bundle-DxKhJ-tt.js.map +1 -0
- package/cjs/chunks/{bundle-BzBRoraS.js → bundle-Dxjq5NpA.js} +1 -1
- package/cjs/chunks/bundle-Dxjq5NpA.js.map +1 -0
- package/cjs/chunks/{bundle-DIfKPcm_.js → bundle-DybpQvnV.js} +1 -1
- package/cjs/chunks/bundle-DybpQvnV.js.map +1 -0
- package/cjs/chunks/{bundle-BXEAjuTY.js → bundle-DyyIGaVv.js} +1 -1
- package/cjs/chunks/bundle-DyyIGaVv.js.map +1 -0
- package/cjs/chunks/{bundle-VIGS3UfE.js → bundle-IJ2kVAsz.js} +2 -2
- package/cjs/chunks/bundle-IJ2kVAsz.js.map +1 -0
- package/cjs/chunks/{bundle-B_BPxhrG.js → bundle-V1LJf6-s.js} +6 -6
- package/cjs/chunks/bundle-V1LJf6-s.js.map +1 -0
- package/cjs/chunks/{bundle-B7TedQKS.js → bundle-XRJM6znW.js} +2 -2
- package/cjs/chunks/bundle-XRJM6znW.js.map +1 -0
- package/cjs/chunks/{bundle-CAyt7i0X.js → bundle-bibyI38O.js} +1 -1
- package/cjs/chunks/bundle-bibyI38O.js.map +1 -0
- package/cjs/chunks/{bundle-knUfDzC9.js → bundle-d-z78MRA.js} +14 -14
- package/cjs/chunks/{bundle-knUfDzC9.js.map → bundle-d-z78MRA.js.map} +1 -1
- package/cjs/chunks/{bundle-CN0vR-TH.js → bundle-dLm5IRer.js} +2 -2
- package/cjs/chunks/{bundle-CN0vR-TH.js.map → bundle-dLm5IRer.js.map} +1 -1
- package/cjs/chunks/{bundle-8uCH3epo.js → bundle-dgKiNaih.js} +11 -11
- package/cjs/chunks/{bundle-8uCH3epo.js.map → bundle-dgKiNaih.js.map} +1 -1
- package/cjs/chunks/{bundle-CEcY1I0M.js → bundle-hAFM-Dnb.js} +8 -8
- package/cjs/chunks/{bundle-CEcY1I0M.js.map → bundle-hAFM-Dnb.js.map} +1 -1
- package/cjs/chunks/{bundle-CKC-b4Bw.js → bundle-k6eQM5PU.js} +3 -3
- package/cjs/chunks/bundle-k6eQM5PU.js.map +1 -0
- package/cjs/chunks/{bundle-QsOyTCMH.js → bundle-oH02lQTg.js} +5 -5
- package/cjs/chunks/{bundle-QsOyTCMH.js.map → bundle-oH02lQTg.js.map} +1 -1
- package/cjs/chunks/{bundle-CoTIkHcU.js → bundle-ohjA4mwQ.js} +4 -4
- package/cjs/chunks/bundle-ohjA4mwQ.js.map +1 -0
- package/cjs/chunks/{bundle-CbATYgnP.js → bundle-uTrra9db.js} +3 -3
- package/cjs/chunks/bundle-uTrra9db.js.map +1 -0
- package/cjs/chunks/{bundle-DcVYwXP-.js → bundle-wEBVYkuX.js} +1 -1
- package/cjs/chunks/bundle-wEBVYkuX.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +82 -81
- package/cjs/index.js.map +1 -1
- 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/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 +29 -17
- package/cjs/ui/EmojiReactions.js.map +1 -1
- 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 +3 -3
- 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 +42 -55
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +35 -0
- package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -0
- package/cjs/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
- 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 +9 -9
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +16 -16
- package/cjs/ui/ThreadReplies.js +8 -8
- 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 +33 -17
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +82 -81
- package/index.js.map +1 -1
- package/package.json +21 -12
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/lib/types.d.ts +1 -0
- package/types/ui/EmojiReactions/index.d.ts +1 -2
- package/types/{modules/Channel/components → ui}/MessageFeedbackModal/index.d.ts +1 -1
- package/types/utils/getIsReactionEnabled.d.ts +5 -4
- 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/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 +29 -17
- package/ui/EmojiReactions.js.map +1 -1
- 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 +40 -53
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +33 -0
- package/ui/MessageFeedbackFailedModal.js.map +1 -0
- package/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
- 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 +9 -9
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +8 -8
- package/ui/ThumbnailMessageItemBody.js +7 -7
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/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-1ymLj4Og.js.map +0 -1
- package/chunks/bundle-B8HW06Fl.js.map +0 -1
- package/chunks/bundle-BAsn0CBE.js.map +0 -1
- package/chunks/bundle-BIvhXCoF.js.map +0 -1
- package/chunks/bundle-BVGlC_pg.js.map +0 -1
- package/chunks/bundle-BX0LQWqY.js.map +0 -1
- package/chunks/bundle-BXpzbAbi.js.map +0 -1
- package/chunks/bundle-BkM4cdOJ.js.map +0 -1
- package/chunks/bundle-BlHQV-25.js.map +0 -1
- package/chunks/bundle-BntzGGYb.js.map +0 -1
- package/chunks/bundle-BpDuHeEB.js.map +0 -1
- package/chunks/bundle-C6ZXjQ1L.js.map +0 -1
- package/chunks/bundle-C6fuKmVo.js.map +0 -1
- package/chunks/bundle-CAki7JUf.js.map +0 -1
- package/chunks/bundle-CCUBCV04.js.map +0 -1
- package/chunks/bundle-CIO0N9hp.js.map +0 -1
- package/chunks/bundle-CIhbNReG.js.map +0 -1
- package/chunks/bundle-CJ9_QDKY.js.map +0 -1
- package/chunks/bundle-CLqgMCvn.js.map +0 -1
- package/chunks/bundle-CP1hwfFC.js.map +0 -1
- package/chunks/bundle-CT3xDvIx.js.map +0 -1
- package/chunks/bundle-CZYvKysu.js.map +0 -1
- package/chunks/bundle-CilkBcv-.js.map +0 -1
- package/chunks/bundle-CjW6ZQ1k.js.map +0 -1
- package/chunks/bundle-CkInAxxb.js.map +0 -1
- package/chunks/bundle-Cvm8Ag45.js +0 -11
- package/chunks/bundle-Cvm8Ag45.js.map +0 -1
- package/chunks/bundle-D3OeBr-9.js.map +0 -1
- package/chunks/bundle-D45e30Hl.js.map +0 -1
- package/chunks/bundle-D47WMGAq.js.map +0 -1
- package/chunks/bundle-DEqxoG9B.js.map +0 -1
- package/chunks/bundle-DHp0VTVS.js.map +0 -1
- package/chunks/bundle-DIEAFe_F.js.map +0 -1
- package/chunks/bundle-DPhbbRZE.js.map +0 -1
- package/chunks/bundle-DQnpJfyk.js.map +0 -1
- package/chunks/bundle-DYJilNov.js.map +0 -1
- package/chunks/bundle-DavEbLba.js.map +0 -1
- package/chunks/bundle-Di7baNGv.js.map +0 -1
- package/chunks/bundle-Dj4HLKX0.js.map +0 -1
- package/chunks/bundle-DlHudqve.js.map +0 -1
- package/chunks/bundle-DoJNLxY9.js.map +0 -1
- package/chunks/bundle-DqNfXH8L.js.map +0 -1
- package/chunks/bundle-Ds2X6Fjs.js.map +0 -1
- package/chunks/bundle-DuNr1Njk.js.map +0 -1
- package/chunks/bundle-GRqvZZ2N.js.map +0 -1
- package/chunks/bundle-HsrPpAtd.js.map +0 -1
- package/chunks/bundle-IuZ6uyzU.js.map +0 -1
- package/chunks/bundle-SvqLmXeF.js.map +0 -1
- package/chunks/bundle-WrvoTlHQ.js.map +0 -1
- package/chunks/bundle-aE9efllI.js.map +0 -1
- package/chunks/bundle-aJhoAKLH.js.map +0 -1
- package/chunks/bundle-fvRtOX6P.js.map +0 -1
- package/chunks/bundle-j5EP0k3D.js.map +0 -1
- package/chunks/bundle-jd7__XU_.js.map +0 -1
- package/chunks/bundle-oLhQai93.js.map +0 -1
- package/chunks/bundle-rl7Rvf_6.js.map +0 -1
- package/chunks/bundle-ts_i6oEg.js.map +0 -1
- package/chunks/bundle-yNfnN0a6.js.map +0 -1
- package/cjs/chunks/bundle-1FXPxsfD.js.map +0 -1
- package/cjs/chunks/bundle-2ATovRxE.js.map +0 -1
- package/cjs/chunks/bundle-B-njjZtk.js.map +0 -1
- package/cjs/chunks/bundle-B3Lu20wG.js.map +0 -1
- package/cjs/chunks/bundle-B6FFmfTl.js.map +0 -1
- package/cjs/chunks/bundle-B7TedQKS.js.map +0 -1
- package/cjs/chunks/bundle-BBS4PSSm.js.map +0 -1
- package/cjs/chunks/bundle-BElidCBa.js.map +0 -1
- package/cjs/chunks/bundle-BJD09510.js.map +0 -1
- package/cjs/chunks/bundle-BJjQQMo0.js.map +0 -1
- package/cjs/chunks/bundle-BNCNRHux.js.map +0 -1
- package/cjs/chunks/bundle-BO1-msX2.js.map +0 -1
- package/cjs/chunks/bundle-BSLZ5pEu.js.map +0 -1
- package/cjs/chunks/bundle-BXEAjuTY.js.map +0 -1
- package/cjs/chunks/bundle-BXQqL0gU.js.map +0 -1
- package/cjs/chunks/bundle-B_BPxhrG.js.map +0 -1
- package/cjs/chunks/bundle-Bc6y_vRE.js.map +0 -1
- package/cjs/chunks/bundle-BiEQOJHh.js.map +0 -1
- package/cjs/chunks/bundle-BnTCpa1X.js.map +0 -1
- package/cjs/chunks/bundle-Bpm6PJIl.js.map +0 -1
- package/cjs/chunks/bundle-BpwSTA3F.js.map +0 -1
- package/cjs/chunks/bundle-BzBRoraS.js.map +0 -1
- package/cjs/chunks/bundle-C1j0QNr3.js.map +0 -1
- package/cjs/chunks/bundle-C36gEKFp.js.map +0 -1
- package/cjs/chunks/bundle-CAyt7i0X.js.map +0 -1
- package/cjs/chunks/bundle-CEiDcA9X.js.map +0 -1
- package/cjs/chunks/bundle-CKC-b4Bw.js.map +0 -1
- package/cjs/chunks/bundle-CQiNKK2y.js.map +0 -1
- package/cjs/chunks/bundle-CXDp72cg.js.map +0 -1
- package/cjs/chunks/bundle-CXaKbxhR.js.map +0 -1
- package/cjs/chunks/bundle-CbATYgnP.js.map +0 -1
- package/cjs/chunks/bundle-CfEubbCT.js.map +0 -1
- package/cjs/chunks/bundle-CfRX00vQ.js.map +0 -1
- package/cjs/chunks/bundle-ChQ3Q-GS.js.map +0 -1
- package/cjs/chunks/bundle-CoTIkHcU.js.map +0 -1
- package/cjs/chunks/bundle-CqTg15Dn.js +0 -13
- package/cjs/chunks/bundle-CqTg15Dn.js.map +0 -1
- package/cjs/chunks/bundle-D1mv8BUm.js.map +0 -1
- package/cjs/chunks/bundle-DIfKPcm_.js.map +0 -1
- package/cjs/chunks/bundle-DKspFBdx.js.map +0 -1
- package/cjs/chunks/bundle-DRT94QO5.js.map +0 -1
- package/cjs/chunks/bundle-D_RomXCz.js.map +0 -1
- package/cjs/chunks/bundle-DcVYwXP-.js.map +0 -1
- package/cjs/chunks/bundle-DdS-jEnE.js.map +0 -1
- package/cjs/chunks/bundle-DeOn9o6F.js.map +0 -1
- package/cjs/chunks/bundle-DiER49ZF.js.map +0 -1
- package/cjs/chunks/bundle-DkGYX29W.js.map +0 -1
- package/cjs/chunks/bundle-DmPl_3ye.js.map +0 -1
- package/cjs/chunks/bundle-DsDhHgmF.js.map +0 -1
- package/cjs/chunks/bundle-DuHJq3hs.js.map +0 -1
- package/cjs/chunks/bundle-DvduWWQk.js.map +0 -1
- package/cjs/chunks/bundle-HXyGAP9T.js.map +0 -1
- package/cjs/chunks/bundle-IVxSH9N4.js.map +0 -1
- package/cjs/chunks/bundle-P5AI1HkP.js.map +0 -1
- package/cjs/chunks/bundle-QSgOdsGM.js.map +0 -1
- package/cjs/chunks/bundle-S09sS9Ub.js.map +0 -1
- package/cjs/chunks/bundle-VIGS3UfE.js.map +0 -1
- package/cjs/chunks/bundle-YUHup5bR.js.map +0 -1
- package/cjs/chunks/bundle-_D9xt-bK.js.map +0 -1
- package/cjs/chunks/bundle-d3t3a2vc.js.map +0 -1
- package/cjs/chunks/bundle-kzleXCM7.js.map +0 -1
- package/cjs/chunks/bundle-p3gZAjMS.js.map +0 -1
- package/cjs/chunks/bundle-pVDX6G_q.js.map +0 -1
- package/cjs/chunks/bundle-r8oxykjl.js.map +0 -1
- package/cjs/chunks/bundle-tbYf0yOX.js.map +0 -1
- package/cjs/chunks/bundle-urLzDFXK.js.map +0 -1
- package/cjs/chunks/bundle-vxdq428L.js.map +0 -1
- /package/cjs/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
- /package/types/{modules/Channel/components → ui}/MessageFeedbackFailedModal/index.d.ts +0 -0
- /package/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
|
@@ -10,6 +10,10 @@ var ComponentType;
|
|
|
10
10
|
ComponentType["TextButton"] = "textButton";
|
|
11
11
|
ComponentType["ImageButton"] = "imageButton";
|
|
12
12
|
})(ComponentType || (ComponentType = {}));
|
|
13
|
+
var CompositeComponentType;
|
|
14
|
+
(function (CompositeComponentType) {
|
|
15
|
+
CompositeComponentType["Carousel"] = "carouselView";
|
|
16
|
+
})(CompositeComponentType || (CompositeComponentType = {}));
|
|
13
17
|
|
|
14
18
|
// -------- Set property mapper
|
|
15
19
|
const MAPPER = () => undefined;
|
|
@@ -22,6 +26,7 @@ const createParser = (params) => {
|
|
|
22
26
|
mapImageProps: (params === null || params === void 0 ? void 0 : params.mapImageProps) || defaultMapper,
|
|
23
27
|
mapTextButtonProps: (params === null || params === void 0 ? void 0 : params.mapTextButtonProps) || defaultMapper,
|
|
24
28
|
mapImageButtonProps: (params === null || params === void 0 ? void 0 : params.mapImageButtonProps) || defaultMapper,
|
|
29
|
+
mapCarouselProps: (params === null || params === void 0 ? void 0 : params.mapCarouselProps) || defaultMapper,
|
|
25
30
|
};
|
|
26
31
|
return {
|
|
27
32
|
parse(item, options) {
|
|
@@ -41,6 +46,9 @@ const createParser = (params) => {
|
|
|
41
46
|
case ComponentType.ImageButton: {
|
|
42
47
|
return { properties: mapper.mapImageButtonProps(item, options) };
|
|
43
48
|
}
|
|
49
|
+
case CompositeComponentType.Carousel: {
|
|
50
|
+
return { properties: mapper.mapCarouselProps(item, options) };
|
|
51
|
+
}
|
|
44
52
|
default:
|
|
45
53
|
return { properties: undefined };
|
|
46
54
|
}
|
|
@@ -50,13 +58,14 @@ const createParser = (params) => {
|
|
|
50
58
|
|
|
51
59
|
const FRAGMENT = ({ children }) => React.createElement(React.Fragment, null, children);
|
|
52
60
|
function createRenderer(params) {
|
|
53
|
-
var _a, _b, _c, _d, _e;
|
|
61
|
+
var _a, _b, _c, _d, _e, _f;
|
|
54
62
|
return {
|
|
55
63
|
box: ((_a = params === null || params === void 0 ? void 0 : params.views) === null || _a === void 0 ? void 0 : _a.box) || FRAGMENT,
|
|
56
64
|
text: ((_b = params === null || params === void 0 ? void 0 : params.views) === null || _b === void 0 ? void 0 : _b.text) || FRAGMENT,
|
|
57
65
|
image: ((_c = params === null || params === void 0 ? void 0 : params.views) === null || _c === void 0 ? void 0 : _c.image) || FRAGMENT,
|
|
58
66
|
imageButton: ((_d = params === null || params === void 0 ? void 0 : params.views) === null || _d === void 0 ? void 0 : _d.imageButton) || FRAGMENT,
|
|
59
67
|
textButton: ((_e = params === null || params === void 0 ? void 0 : params.views) === null || _e === void 0 ? void 0 : _e.textButton) || FRAGMENT,
|
|
68
|
+
carouselView: ((_f = params === null || params === void 0 ? void 0 : params.views) === null || _f === void 0 ? void 0 : _f.carouselView) || FRAGMENT,
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
|
|
@@ -170,10 +179,8 @@ const createMessageTemplate = (opts) => {
|
|
|
170
179
|
const UnknownMessage = opts.UnknownMessage || (() => null);
|
|
171
180
|
const parser = opts.parser || createParser();
|
|
172
181
|
const renderer = opts.renderer || createRenderer();
|
|
173
|
-
const MessageTemplateBase = (
|
|
174
|
-
|
|
175
|
-
const renderItems = props.templateItems;
|
|
176
|
-
const parentLayout = (_a = props.parentLayout) !== null && _a !== void 0 ? _a : defaultProperties.box.layout;
|
|
182
|
+
const MessageTemplateBase = ({ templateItems, parentLayout = defaultProperties.box.layout, isRoot = false, }) => {
|
|
183
|
+
const renderItems = templateItems;
|
|
177
184
|
return (React.createElement(React.Fragment, null, renderItems.map((item, index, siblings) => {
|
|
178
185
|
const { properties } = parser.parse(item, { parentLayout, elemIdx: index, siblings });
|
|
179
186
|
const props = {
|
|
@@ -183,6 +190,16 @@ const createMessageTemplate = (opts) => {
|
|
|
183
190
|
siblings,
|
|
184
191
|
};
|
|
185
192
|
switch (item.type) {
|
|
193
|
+
// CompositeComponent should be top level component
|
|
194
|
+
case CompositeComponentType.Carousel: {
|
|
195
|
+
if (!isRoot) {
|
|
196
|
+
throw new Error('Cannot parse template item as Carousel if the template item is not the root.');
|
|
197
|
+
}
|
|
198
|
+
if (!item.items || !Array.isArray(item.items) || item.items.length === 0) {
|
|
199
|
+
throw new Error('Cannot parse template item as Carousel if carousel has no items.');
|
|
200
|
+
}
|
|
201
|
+
return (React.createElement(renderer.carouselView, Object.assign({}, item, props), item.items.map((items, index) => (React.createElement(MessageTemplateBase, { key: index, templateItems: items || [], parentLayout: parentLayout })))));
|
|
202
|
+
}
|
|
186
203
|
case ComponentType.Box: {
|
|
187
204
|
return (React.createElement(renderer.box, Object.assign({}, item, props),
|
|
188
205
|
React.createElement(MessageTemplateBase, { templateItems: item.items || [], parentLayout: item.layout })));
|
|
@@ -211,7 +228,7 @@ const createMessageTemplate = (opts) => {
|
|
|
211
228
|
const items = setTemplateItemId(templateItems);
|
|
212
229
|
return (React.createElement(SizeContextProvider, null,
|
|
213
230
|
React.createElement(Container, null,
|
|
214
|
-
React.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items }))));
|
|
231
|
+
React.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items, isRoot: true }))));
|
|
215
232
|
},
|
|
216
233
|
MessageTemplateBase,
|
|
217
234
|
};
|
|
@@ -1013,6 +1030,312 @@ const alignInFlex = (align) => {
|
|
|
1013
1030
|
],
|
|
1014
1031
|
},
|
|
1015
1032
|
});
|
|
1033
|
+
({
|
|
1034
|
+
'version': 1,
|
|
1035
|
+
'body': {
|
|
1036
|
+
'items': [
|
|
1037
|
+
{
|
|
1038
|
+
'elementId': 'root',
|
|
1039
|
+
'type': 'box',
|
|
1040
|
+
'layout': 'column',
|
|
1041
|
+
'width': {
|
|
1042
|
+
'type': 'flex',
|
|
1043
|
+
'value': FlexSizeSpecValue.FillParent,
|
|
1044
|
+
},
|
|
1045
|
+
'height': {
|
|
1046
|
+
'type': 'flex',
|
|
1047
|
+
'value': FlexSizeSpecValue.WrapContent,
|
|
1048
|
+
},
|
|
1049
|
+
'items': [
|
|
1050
|
+
{
|
|
1051
|
+
'type': 'text',
|
|
1052
|
+
'viewStyle': {
|
|
1053
|
+
'backgroundColor': '#a0c0ffff',
|
|
1054
|
+
'margin': {
|
|
1055
|
+
'top': 16,
|
|
1056
|
+
'bottom': 16,
|
|
1057
|
+
'left': 16,
|
|
1058
|
+
'right': 16,
|
|
1059
|
+
},
|
|
1060
|
+
'padding': {
|
|
1061
|
+
'top': 16,
|
|
1062
|
+
'bottom': 16,
|
|
1063
|
+
'left': 16,
|
|
1064
|
+
'right': 16,
|
|
1065
|
+
},
|
|
1066
|
+
},
|
|
1067
|
+
'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
|
|
1068
|
+
'textStyle': {
|
|
1069
|
+
'size': 14,
|
|
1070
|
+
'color': '#222121e0',
|
|
1071
|
+
'weight': 'normal',
|
|
1072
|
+
},
|
|
1073
|
+
'maxTextLines': 5,
|
|
1074
|
+
'width': {
|
|
1075
|
+
'type': 'flex',
|
|
1076
|
+
'value': FlexSizeSpecValue.FillParent,
|
|
1077
|
+
},
|
|
1078
|
+
'height': {
|
|
1079
|
+
'type': 'flex',
|
|
1080
|
+
'value': 1,
|
|
1081
|
+
},
|
|
1082
|
+
'align': {
|
|
1083
|
+
'horizontal': 'left',
|
|
1084
|
+
'vertical': 'top',
|
|
1085
|
+
},
|
|
1086
|
+
'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
'type': 'imageButton',
|
|
1090
|
+
'viewStyle': {
|
|
1091
|
+
margin: {
|
|
1092
|
+
left: 24,
|
|
1093
|
+
right: 12,
|
|
1094
|
+
},
|
|
1095
|
+
},
|
|
1096
|
+
'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
|
|
1097
|
+
'height': { 'type': 'fixed', 'value': 250 },
|
|
1098
|
+
'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
|
|
1099
|
+
'imageStyle': { 'contentMode': 'aspectFill' },
|
|
1100
|
+
'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
|
|
1101
|
+
'action': { 'data': 'www.naver.com' },
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
},
|
|
1105
|
+
],
|
|
1106
|
+
},
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
const PADDING_WIDTH = 24;
|
|
1110
|
+
const CONTENT_LEFT_WIDTH = 40;
|
|
1111
|
+
const SWIPE_THRESHOLD = 15;
|
|
1112
|
+
const LAST_ITEM_RIGHT_SNAP_THRESHOLD = 100;
|
|
1113
|
+
const GAP_DEFAULT = 8;
|
|
1114
|
+
/**
|
|
1115
|
+
* fixed sized template items should use its child width.
|
|
1116
|
+
* Whereas flex sized template items should use its parent's width.
|
|
1117
|
+
* @param item
|
|
1118
|
+
*/
|
|
1119
|
+
function shouldRenderAsFixed(item) {
|
|
1120
|
+
var _a;
|
|
1121
|
+
return ((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.type) === 'fixed';
|
|
1122
|
+
}
|
|
1123
|
+
function CarouselItem({ item, defaultWidth }) {
|
|
1124
|
+
return (React.createElement("div", { style: shouldRenderAsFixed(item) ? { width: 'fit-content' } : { minWidth: defaultWidth, width: '100%' } }, item));
|
|
1125
|
+
}
|
|
1126
|
+
const Carousel = React.memo(({ children, gap = GAP_DEFAULT }) => {
|
|
1127
|
+
var _a, _b;
|
|
1128
|
+
const carouselRef = React.useRef(null);
|
|
1129
|
+
const screenWidth = window.innerWidth;
|
|
1130
|
+
const defaultItemWidth = (_b = (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
|
|
1131
|
+
const itemWidths = children.map((item) => {
|
|
1132
|
+
var _a;
|
|
1133
|
+
if (shouldRenderAsFixed(item)) {
|
|
1134
|
+
return (_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.value;
|
|
1135
|
+
}
|
|
1136
|
+
return defaultItemWidth;
|
|
1137
|
+
});
|
|
1138
|
+
const allItemsWidth = itemWidths.reduce((prev, curr) => prev + gap + curr);
|
|
1139
|
+
const lastItemWidth = itemWidths[itemWidths.length - 1];
|
|
1140
|
+
const isLastItemNarrow = lastItemWidth <= LAST_ITEM_RIGHT_SNAP_THRESHOLD;
|
|
1141
|
+
const isLastTwoItemsFitScreen = getIsLastTwoItemsFitScreen();
|
|
1142
|
+
const itemPositions = getEachItemPositions();
|
|
1143
|
+
const [draggingInfo, setDraggingInfo] = React.useState({
|
|
1144
|
+
scrolling: false,
|
|
1145
|
+
dragging: false,
|
|
1146
|
+
startPos: null,
|
|
1147
|
+
offset: 0,
|
|
1148
|
+
translateX: 0,
|
|
1149
|
+
currentIndex: 0,
|
|
1150
|
+
});
|
|
1151
|
+
const handleMouseDown = (event) => {
|
|
1152
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: false, dragging: true, startPos: {
|
|
1153
|
+
x: event.clientX,
|
|
1154
|
+
y: event.clientY,
|
|
1155
|
+
}, offset: 0 }));
|
|
1156
|
+
};
|
|
1157
|
+
const handleMouseMove = (event) => {
|
|
1158
|
+
if (!draggingInfo.dragging || !draggingInfo.startPos)
|
|
1159
|
+
return;
|
|
1160
|
+
const currentX = event.clientX;
|
|
1161
|
+
const newOffset = currentX - draggingInfo.startPos.x;
|
|
1162
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
|
|
1163
|
+
};
|
|
1164
|
+
const handleMouseUp = () => {
|
|
1165
|
+
if (!draggingInfo.dragging)
|
|
1166
|
+
return;
|
|
1167
|
+
handleDragEnd();
|
|
1168
|
+
};
|
|
1169
|
+
const blockScroll = () => {
|
|
1170
|
+
if (carouselRef.current) {
|
|
1171
|
+
carouselRef.current.style.touchAction = 'pan-x';
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
const unblockScroll = () => {
|
|
1175
|
+
if (carouselRef.current) {
|
|
1176
|
+
carouselRef.current.style.touchAction = 'pan-y';
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
const handleTouchStart = (event) => {
|
|
1180
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: false, dragging: false, startPos: {
|
|
1181
|
+
x: event.touches[0].clientX,
|
|
1182
|
+
y: event.touches[0].clientY,
|
|
1183
|
+
}, offset: 0 }));
|
|
1184
|
+
};
|
|
1185
|
+
const handleTouchMove = (event) => {
|
|
1186
|
+
if (!draggingInfo.startPos || draggingInfo.scrolling)
|
|
1187
|
+
return;
|
|
1188
|
+
const startPos = draggingInfo.startPos;
|
|
1189
|
+
const [touchMoveX, touchMoveY] = [event.touches[0].clientX, event.touches[0].clientY];
|
|
1190
|
+
const [deltaX, deltaY] = [Math.abs(touchMoveX - startPos.x), Math.abs(touchMoveY - startPos.y)];
|
|
1191
|
+
const newOffset = touchMoveX - startPos.x;
|
|
1192
|
+
if (newOffset === draggingInfo.offset)
|
|
1193
|
+
return;
|
|
1194
|
+
if (draggingInfo.dragging) {
|
|
1195
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
|
|
1196
|
+
return;
|
|
1197
|
+
}
|
|
1198
|
+
if (deltaY > deltaX) {
|
|
1199
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: true }));
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
blockScroll();
|
|
1203
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { dragging: true, offset: newOffset }));
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
const getNewDraggingInfo = (props = {}) => {
|
|
1207
|
+
const { newTranslateX, nextIndex } = props;
|
|
1208
|
+
const { translateX, currentIndex } = draggingInfo;
|
|
1209
|
+
return {
|
|
1210
|
+
scrolling: false,
|
|
1211
|
+
dragging: false,
|
|
1212
|
+
startPos: null,
|
|
1213
|
+
offset: 0,
|
|
1214
|
+
translateX: newTranslateX !== null && newTranslateX !== void 0 ? newTranslateX : translateX,
|
|
1215
|
+
currentIndex: nextIndex !== null && nextIndex !== void 0 ? nextIndex : currentIndex,
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
const handleDragEnd = () => {
|
|
1219
|
+
const offset = draggingInfo.offset;
|
|
1220
|
+
const absOffset = Math.abs(offset);
|
|
1221
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
1222
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1223
|
+
return;
|
|
1224
|
+
}
|
|
1225
|
+
// If dragged to left, next index should be to the right
|
|
1226
|
+
const currentIndex = draggingInfo.currentIndex;
|
|
1227
|
+
if (offset < 0 && currentIndex < children.length - 1) {
|
|
1228
|
+
const nextIndex = currentIndex + 1;
|
|
1229
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1230
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1231
|
+
nextIndex,
|
|
1232
|
+
}));
|
|
1233
|
+
// If dragged to right, next index should be to the left
|
|
1234
|
+
}
|
|
1235
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
1236
|
+
const nextIndex = currentIndex - 1;
|
|
1237
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1238
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1239
|
+
nextIndex,
|
|
1240
|
+
}));
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1246
|
+
const handleTouchEnd = () => {
|
|
1247
|
+
const { offset, currentIndex } = draggingInfo;
|
|
1248
|
+
const absOffset = Math.abs(offset);
|
|
1249
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
1250
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1253
|
+
// If dragged to left, next index should be to the right
|
|
1254
|
+
if (offset < 0 && currentIndex < children.length - 1) {
|
|
1255
|
+
const nextIndex = currentIndex + 1;
|
|
1256
|
+
/**
|
|
1257
|
+
* This is special logic for "더 보기" button for Socar use-case.
|
|
1258
|
+
* The button will have a small width (less than 50px).
|
|
1259
|
+
* We want to include this button in the view and snap to right padding wall IFF !isLastTwoItemsFitScreen.
|
|
1260
|
+
*/
|
|
1261
|
+
if (isLastItemNarrow) {
|
|
1262
|
+
if (isLastTwoItemsFitScreen) {
|
|
1263
|
+
if (nextIndex !== children.length - 1) {
|
|
1264
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1265
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1266
|
+
nextIndex,
|
|
1267
|
+
}));
|
|
1268
|
+
}
|
|
1269
|
+
else {
|
|
1270
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
else if (nextIndex !== children.length - 1) {
|
|
1274
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1275
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1276
|
+
nextIndex,
|
|
1277
|
+
}));
|
|
1278
|
+
}
|
|
1279
|
+
else {
|
|
1280
|
+
const translateWidth = itemPositions[nextIndex].start - lastItemWidth;
|
|
1281
|
+
const rightEmptyWidth = screenWidth - (allItemsWidth + translateWidth + PADDING_WIDTH + CONTENT_LEFT_WIDTH);
|
|
1282
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1283
|
+
newTranslateX: translateWidth + rightEmptyWidth,
|
|
1284
|
+
nextIndex,
|
|
1285
|
+
}));
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
else {
|
|
1289
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1290
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1291
|
+
nextIndex,
|
|
1292
|
+
}));
|
|
1293
|
+
}
|
|
1294
|
+
// If dragged to right, next index should be to the left
|
|
1295
|
+
}
|
|
1296
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
1297
|
+
const nextIndex = currentIndex - 1;
|
|
1298
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1299
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1300
|
+
nextIndex,
|
|
1301
|
+
}));
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1305
|
+
}
|
|
1306
|
+
if (draggingInfo.dragging) {
|
|
1307
|
+
unblockScroll();
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
function getCurrentTranslateX() {
|
|
1311
|
+
return draggingInfo.translateX + draggingInfo.offset;
|
|
1312
|
+
}
|
|
1313
|
+
function getIsLastTwoItemsFitScreen() {
|
|
1314
|
+
const restItemsWidth = itemWidths.slice(-2).reduce((prev, curr) => prev + gap + curr);
|
|
1315
|
+
const restTotalWidth = PADDING_WIDTH + CONTENT_LEFT_WIDTH + restItemsWidth;
|
|
1316
|
+
return restTotalWidth <= screenWidth;
|
|
1317
|
+
}
|
|
1318
|
+
function getEachItemPositions() {
|
|
1319
|
+
let accumulator = 0;
|
|
1320
|
+
return itemWidths.map((itemWidth, i) => {
|
|
1321
|
+
if (i > 0) {
|
|
1322
|
+
accumulator -= gap;
|
|
1323
|
+
}
|
|
1324
|
+
const itemPosition = {
|
|
1325
|
+
start: accumulator,
|
|
1326
|
+
end: accumulator - itemWidth,
|
|
1327
|
+
};
|
|
1328
|
+
accumulator -= itemWidth;
|
|
1329
|
+
return itemPosition;
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
return (React.createElement("div", { ref: carouselRef, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, className: "sb-message-template__carousel", style: {
|
|
1333
|
+
cursor: draggingInfo.dragging ? 'grabbing' : 'grab',
|
|
1334
|
+
transition: draggingInfo.dragging ? 'none' : 'transform 0.5s ease',
|
|
1335
|
+
transform: `translateX(${getCurrentTranslateX()}px)`,
|
|
1336
|
+
gap: gap,
|
|
1337
|
+
} }, children.map((item, index) => (React.createElement(CarouselItem, { key: index + '', item: item, defaultWidth: defaultItemWidth + 'px' })))));
|
|
1338
|
+
});
|
|
1016
1339
|
|
|
1017
1340
|
var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
|
|
1018
1341
|
var t = {};
|
|
@@ -1378,7 +1701,7 @@ function setBorderStyle(styles, borderWidth, borderColor, radius) {
|
|
|
1378
1701
|
}
|
|
1379
1702
|
}
|
|
1380
1703
|
function setViewStyle(styles, props) {
|
|
1381
|
-
var _a, _b, _c, _d;
|
|
1704
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1382
1705
|
const { viewStyle } = props;
|
|
1383
1706
|
if ((_a = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _a === void 0 ? void 0 : _a.top)
|
|
1384
1707
|
styles['marginTop'] = Number(viewStyle.margin.top);
|
|
@@ -1388,6 +1711,9 @@ function setViewStyle(styles, props) {
|
|
|
1388
1711
|
styles['marginLeft'] = Number(viewStyle.margin.left);
|
|
1389
1712
|
if ((_d = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _d === void 0 ? void 0 : _d.right)
|
|
1390
1713
|
styles['marginRight'] = Number(viewStyle.margin.right);
|
|
1714
|
+
const marginHorizontal = Number((_e = styles.marginLeft) !== null && _e !== void 0 ? _e : '0') + Number((_f = styles.marginRight) !== null && _f !== void 0 ? _f : '0');
|
|
1715
|
+
if (marginHorizontal > 0 && styles.width === '100%')
|
|
1716
|
+
styles.width = `calc(100% - ${marginHorizontal}px)`;
|
|
1391
1717
|
if (viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.backgroundColor)
|
|
1392
1718
|
styles['backgroundColor'] = viewStyle.backgroundColor;
|
|
1393
1719
|
// use JSON.stringify to escape special characters in image URL
|
|
@@ -1616,6 +1942,9 @@ const renderer = createRenderer({
|
|
|
1616
1942
|
return (React.createElement(ActionHandler, { className: "sb-message-template__image-container sb-message-template__image-button", elementId: props.elementId, style: props.parsedProperties, props: props },
|
|
1617
1943
|
React.createElement(ReactMessageTemplateImage, { className: "sb-message-template__image", alt: "image-button", src: props.imageUrl, style: { width: '100%', height: '100%', aspectRatio: 'inherit', objectFit: 'inherit' }, tintColor: (_a = props.imageStyle) === null || _a === void 0 ? void 0 : _a.tintColor, metaData: props.metaData })));
|
|
1618
1944
|
},
|
|
1945
|
+
carouselView(props) {
|
|
1946
|
+
return React.createElement(Carousel, { gap: props.spacing }, props.children);
|
|
1947
|
+
},
|
|
1619
1948
|
},
|
|
1620
1949
|
});
|
|
1621
1950
|
const parser = createParser({
|
|
@@ -1655,6 +1984,11 @@ const parser = createParser({
|
|
|
1655
1984
|
setImageAspectRatio(styles, props);
|
|
1656
1985
|
return styles;
|
|
1657
1986
|
},
|
|
1987
|
+
mapCarouselProps(props, options) {
|
|
1988
|
+
const styles = getDefaultStyles();
|
|
1989
|
+
setViewProps(styles, props, options);
|
|
1990
|
+
return styles;
|
|
1991
|
+
},
|
|
1658
1992
|
});
|
|
1659
1993
|
createMessageTemplate({
|
|
1660
1994
|
renderer,
|
|
@@ -1664,9 +1998,7 @@ createMessageTemplate({
|
|
|
1664
1998
|
display: 'flex',
|
|
1665
1999
|
flexDirection: 'column',
|
|
1666
2000
|
maxWidth: 400,
|
|
1667
|
-
backgroundColor: '#cecece',
|
|
1668
2001
|
marginBottom: 24,
|
|
1669
|
-
borderRadius: '8px',
|
|
1670
2002
|
} }, children));
|
|
1671
2003
|
},
|
|
1672
2004
|
});
|
|
@@ -1689,4 +2021,4 @@ function MessageTemplate(_a) {
|
|
|
1689
2021
|
|
|
1690
2022
|
exports.MessageProvider = MessageProvider;
|
|
1691
2023
|
exports.MessageTemplate = MessageTemplate;
|
|
1692
|
-
//# sourceMappingURL=bundle-
|
|
2024
|
+
//# sourceMappingURL=bundle-DvPVD7TA.js.map
|