@sendbird/uikit-react 3.13.3-rc.0 → 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-CnJ586P-.js → bundle-B1ZvrUJC.js} +5 -5
- package/chunks/{bundle-CnJ586P-.js.map → bundle-B1ZvrUJC.js.map} +1 -1
- package/chunks/{bundle-CXTic09W.js → bundle-B2iYTaOy.js} +5 -5
- package/chunks/{bundle-CXTic09W.js.map → bundle-B2iYTaOy.js.map} +1 -1
- package/chunks/{bundle-o68clRDX.js → bundle-BDh3tZJZ.js} +10 -10
- package/chunks/bundle-BDh3tZJZ.js.map +1 -0
- package/chunks/{bundle-DufKYoOA.js → bundle-BDwg9zpL.js} +4 -4
- package/chunks/{bundle-DufKYoOA.js.map → bundle-BDwg9zpL.js.map} +1 -1
- package/chunks/{bundle-DqzqAw0N.js → bundle-BFBqZQJ9.js} +1 -1
- package/chunks/bundle-BFBqZQJ9.js.map +1 -0
- package/chunks/{bundle-Cx7XPmRo.js → bundle-BGAFVNl1.js} +2 -2
- package/chunks/{bundle-Cx7XPmRo.js.map → bundle-BGAFVNl1.js.map} +1 -1
- package/chunks/{bundle-TgWo1p5X.js → bundle-BGLmaniw.js} +1 -1
- package/chunks/bundle-BGLmaniw.js.map +1 -0
- package/chunks/{bundle-ac7nQTxZ.js → bundle-BIL-EuIn.js} +3 -3
- package/chunks/bundle-BIL-EuIn.js.map +1 -0
- package/chunks/{bundle-BjIhMAvw.js → bundle-BKME3Dov.js} +2 -2
- package/chunks/{bundle-BjIhMAvw.js.map → bundle-BKME3Dov.js.map} +1 -1
- package/chunks/{bundle-5OktsffG.js → bundle-BMDrxc53.js} +4 -4
- package/chunks/{bundle-5OktsffG.js.map → bundle-BMDrxc53.js.map} +1 -1
- package/chunks/{bundle-hj2wCdHR.js → bundle-BMXFLTlz.js} +3 -3
- package/chunks/{bundle-hj2wCdHR.js.map → bundle-BMXFLTlz.js.map} +1 -1
- package/chunks/{bundle-DjgD9t7D.js → bundle-BPJA0Ef_.js} +3 -3
- package/chunks/bundle-BPJA0Ef_.js.map +1 -0
- package/chunks/{bundle-C7Vg2sg7.js → bundle-BQBGXdRe.js} +6 -6
- package/chunks/bundle-BQBGXdRe.js.map +1 -0
- package/chunks/{bundle-CnTDWHJx.js → bundle-BV-NlgGa.js} +2 -2
- package/chunks/{bundle-CnTDWHJx.js.map → bundle-BV-NlgGa.js.map} +1 -1
- package/chunks/{bundle-BVp7_cQQ.js → bundle-B_U2CyMo.js} +3 -3
- package/chunks/{bundle-BVp7_cQQ.js.map → bundle-B_U2CyMo.js.map} +1 -1
- package/chunks/{bundle-Dg7p2p52.js → bundle-BbjX4aSu.js} +1 -1
- package/chunks/bundle-BbjX4aSu.js.map +1 -0
- package/chunks/{bundle-xoAyfPjv.js → bundle-Bc_aYmYY.js} +1 -1
- package/chunks/bundle-Bc_aYmYY.js.map +1 -0
- package/chunks/{bundle-DBqlfZ2d.js → bundle-Beyq348T.js} +10 -10
- package/chunks/bundle-Beyq348T.js.map +1 -0
- package/chunks/{bundle-BjJPI7Sc.js → bundle-Bjy2QoZR.js} +2 -2
- package/chunks/{bundle-BjJPI7Sc.js.map → bundle-Bjy2QoZR.js.map} +1 -1
- package/chunks/{bundle-D9jjb4vl.js → bundle-BkU-pX0u.js} +1 -1
- package/chunks/bundle-BkU-pX0u.js.map +1 -0
- package/chunks/{bundle-BXtCWdlN.js → bundle-Bk_Rm_ms.js} +1 -1
- package/chunks/{bundle-BXtCWdlN.js.map → bundle-Bk_Rm_ms.js.map} +1 -1
- package/chunks/{bundle-BncIazvl.js → bundle-BnClYJ2n.js} +2 -2
- package/chunks/{bundle-BncIazvl.js.map → bundle-BnClYJ2n.js.map} +1 -1
- package/chunks/{bundle-DmJV6gQD.js → bundle-BubJq4ch.js} +1 -1
- package/chunks/{bundle-DmJV6gQD.js.map → bundle-BubJq4ch.js.map} +1 -1
- package/chunks/{bundle-CpIXjIkm.js → bundle-BwrkRF6Z.js} +7 -7
- package/chunks/{bundle-CpIXjIkm.js.map → bundle-BwrkRF6Z.js.map} +1 -1
- package/chunks/{bundle-4hS7j-gs.js → bundle-C1w__IfN.js} +1 -1
- package/chunks/bundle-C1w__IfN.js.map +1 -0
- package/chunks/{bundle-C2iUqETc.js → bundle-C5iJQzA5.js} +3 -3
- package/chunks/bundle-C5iJQzA5.js.map +1 -0
- package/chunks/{bundle-DmPACCke.js → bundle-C6rVJwjU.js} +1 -1
- package/chunks/bundle-C6rVJwjU.js.map +1 -0
- package/chunks/{bundle-B0tCGD6H.js → bundle-CDxehknk.js} +2 -2
- package/chunks/bundle-CDxehknk.js.map +1 -0
- package/chunks/{bundle-Ly0drX6F.js → bundle-CI1PvWSX.js} +3 -3
- package/chunks/{bundle-Ly0drX6F.js.map → bundle-CI1PvWSX.js.map} +1 -1
- package/chunks/{bundle-Ccrcu-lm.js → bundle-CITS0ULl.js} +2 -2
- package/chunks/bundle-CITS0ULl.js.map +1 -0
- package/chunks/{bundle-CwzTv0XS.js → bundle-CM3EExp1.js} +3 -3
- package/chunks/{bundle-CwzTv0XS.js.map → bundle-CM3EExp1.js.map} +1 -1
- package/chunks/{bundle-CTbKbzja.js → bundle-CMaPzCu6.js} +10 -10
- package/chunks/{bundle-CTbKbzja.js.map → bundle-CMaPzCu6.js.map} +1 -1
- package/chunks/{bundle-mRKEMtyQ.js → bundle-COi5R8ff.js} +1 -1
- package/chunks/bundle-COi5R8ff.js.map +1 -0
- package/chunks/{bundle-DH4fYwuY.js → bundle-COqMiiHK.js} +3 -3
- package/chunks/{bundle-DH4fYwuY.js.map → bundle-COqMiiHK.js.map} +1 -1
- package/chunks/{bundle-BQvbZc7K.js → bundle-CQH_PhUR.js} +2 -2
- package/chunks/bundle-CQH_PhUR.js.map +1 -0
- package/chunks/{bundle-SR6DLu-t.js → bundle-CQNUJQI5.js} +3 -3
- package/chunks/bundle-CQNUJQI5.js.map +1 -0
- package/chunks/{bundle-C7zPvb8E.js → bundle-CWE2Nmni.js} +3 -3
- package/chunks/bundle-CWE2Nmni.js.map +1 -0
- package/chunks/{bundle-CfNFTpLH.js → bundle-CWwqSd5D.js} +11 -11
- package/chunks/{bundle-CfNFTpLH.js.map → bundle-CWwqSd5D.js.map} +1 -1
- package/chunks/{bundle-DAyGLgqp.js → bundle-CWy1uXBP.js} +1 -1
- package/chunks/bundle-CWy1uXBP.js.map +1 -0
- package/chunks/{bundle-DJ-85RBu.js → bundle-CZD061M5.js} +1 -1
- package/chunks/bundle-CZD061M5.js.map +1 -0
- package/chunks/{bundle-C1yuAXw9.js → bundle-CZImHp2_.js} +1 -1
- package/chunks/bundle-CZImHp2_.js.map +1 -0
- package/chunks/{bundle-CXhtYaaJ.js → bundle-C_WhVMxW.js} +8 -8
- package/chunks/{bundle-CXhtYaaJ.js.map → bundle-C_WhVMxW.js.map} +1 -1
- package/chunks/{bundle-BLcD7awq.js → bundle-C_fuMIiV.js} +1 -1
- package/chunks/bundle-C_fuMIiV.js.map +1 -0
- package/chunks/{bundle-D82-9DC8.js → bundle-CfTtYjwW.js} +1 -1
- package/chunks/{bundle-D82-9DC8.js.map → bundle-CfTtYjwW.js.map} +1 -1
- package/chunks/{bundle-BggUR2rY.js → bundle-Cgvcg-hF.js} +1 -1
- package/chunks/bundle-Cgvcg-hF.js.map +1 -0
- package/chunks/{bundle-HB10teHo.js → bundle-CiDJbBK2.js} +3 -3
- package/chunks/bundle-CiDJbBK2.js.map +1 -0
- package/chunks/{bundle-DU1sAKMN.js → bundle-CjRxpU7G.js} +1 -1
- package/chunks/bundle-CjRxpU7G.js.map +1 -0
- package/chunks/{bundle-DCUEuROU.js → bundle-Cmz3PMDG.js} +1 -1
- package/chunks/bundle-Cmz3PMDG.js.map +1 -0
- package/chunks/{bundle-DFRQ-Oo2.js → bundle-CqH5p9Gv.js} +1 -1
- package/chunks/bundle-CqH5p9Gv.js.map +1 -0
- package/chunks/{bundle-DohVktRn.js → bundle-CqduZDR2.js} +10 -10
- package/chunks/{bundle-DohVktRn.js.map → bundle-CqduZDR2.js.map} +1 -1
- package/chunks/{bundle-Dal90qsH.js → bundle-Cs4hJMwU.js} +1 -1
- package/chunks/{bundle-Dal90qsH.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-D8mVQVHI.js → bundle-DJIYKEQ6.js} +4 -4
- package/chunks/bundle-DJIYKEQ6.js.map +1 -0
- package/chunks/{bundle-D2NwprR1.js → bundle-DLgH4AnS.js} +1 -1
- package/chunks/bundle-DLgH4AnS.js.map +1 -0
- package/chunks/{bundle-CYV8zeeH.js → bundle-DQ7Sezq6.js} +8 -8
- package/chunks/{bundle-CYV8zeeH.js.map → bundle-DQ7Sezq6.js.map} +1 -1
- package/chunks/{bundle-C8iYQbFu.js → bundle-DQe5j4Ej.js} +1 -1
- package/chunks/bundle-DQe5j4Ej.js.map +1 -0
- package/chunks/{bundle-n75SbS1b.js → bundle-DQeBqwB7.js} +7 -7
- package/chunks/{bundle-n75SbS1b.js.map → bundle-DQeBqwB7.js.map} +1 -1
- package/chunks/{bundle-C_p9TOC_.js → bundle-DRIqH2Lj.js} +5 -5
- package/chunks/bundle-DRIqH2Lj.js.map +1 -0
- package/chunks/{bundle-CnNbY4d-.js → bundle-DRYurEAE.js} +1 -1
- package/chunks/bundle-DRYurEAE.js.map +1 -0
- package/chunks/{bundle-BLA2XkKm.js → bundle-DS70L2uo.js} +4 -4
- package/chunks/bundle-DS70L2uo.js.map +1 -0
- package/chunks/{bundle-DIc-itow.js → bundle-DX1OveAN.js} +342 -10
- package/chunks/bundle-DX1OveAN.js.map +1 -0
- package/chunks/{bundle-_1Q-aBYk.js → bundle-DYl8seXE.js} +1 -1
- package/chunks/bundle-DYl8seXE.js.map +1 -0
- package/chunks/{bundle-CHGpi0M7.js → bundle-DfNKdS2T.js} +1 -1
- package/chunks/bundle-DfNKdS2T.js.map +1 -0
- package/chunks/{bundle-VcVV1LMj.js → bundle-DjBJ92V6.js} +1 -1
- package/chunks/bundle-DjBJ92V6.js.map +1 -0
- package/chunks/{bundle-hRWx3bGt.js → bundle-DnU7egVq.js} +10 -10
- package/chunks/{bundle-hRWx3bGt.js.map → bundle-DnU7egVq.js.map} +1 -1
- package/chunks/{bundle-DIdcX_-2.js → bundle-DsRwP8br.js} +6 -6
- package/chunks/bundle-DsRwP8br.js.map +1 -0
- package/chunks/{bundle-XUXMq2yd.js → bundle-DtUoZCGr.js} +1 -1
- package/chunks/bundle-DtUoZCGr.js.map +1 -0
- package/chunks/{bundle-BhjIUcay.js → bundle-DwNq9e58.js} +1 -1
- package/chunks/bundle-DwNq9e58.js.map +1 -0
- package/chunks/{bundle-B3YSUEgS.js → bundle-H7Epr4d4.js} +1 -1
- package/chunks/bundle-H7Epr4d4.js.map +1 -0
- package/chunks/{bundle-CabpA5ei.js → bundle-IeEx7ZrL.js} +14 -14
- package/chunks/{bundle-CabpA5ei.js.map → bundle-IeEx7ZrL.js.map} +1 -1
- package/chunks/{bundle-CaeGyC4L.js → bundle-JHZY-YFz.js} +4 -4
- package/chunks/{bundle-CaeGyC4L.js.map → bundle-JHZY-YFz.js.map} +1 -1
- package/chunks/{bundle-qGxP6Pc7.js → bundle-NqG9qQGl.js} +2 -2
- package/chunks/bundle-NqG9qQGl.js.map +1 -0
- package/chunks/{bundle-D9r0cGat.js → bundle-Rw92BpIy.js} +3 -3
- package/chunks/bundle-Rw92BpIy.js.map +1 -0
- package/chunks/{bundle-Kmel75IS.js → bundle-STT4EeZr.js} +5 -5
- package/chunks/bundle-STT4EeZr.js.map +1 -0
- package/chunks/{bundle-EgY839OD.js → bundle-e_Zs_0_s.js} +1 -1
- package/chunks/bundle-e_Zs_0_s.js.map +1 -0
- package/chunks/{bundle-BAdGwFBk.js → bundle-gUToZpdB.js} +2 -2
- package/chunks/{bundle-BAdGwFBk.js.map → bundle-gUToZpdB.js.map} +1 -1
- package/chunks/{bundle-D5O3p2sd.js → bundle-gpW5SzKB.js} +1 -1
- package/chunks/{bundle-D5O3p2sd.js.map → bundle-gpW5SzKB.js.map} +1 -1
- package/chunks/{bundle-CPj7I_Ht.js → bundle-poQ_bkuG.js} +1 -1
- package/chunks/bundle-poQ_bkuG.js.map +1 -0
- package/chunks/{bundle-BK1kBm4R.js → bundle-rw2lAbqx.js} +6 -6
- package/chunks/bundle-rw2lAbqx.js.map +1 -0
- package/chunks/{bundle-DVw9N5gr.js → bundle-ukoaTUoi.js} +4 -4
- package/chunks/bundle-ukoaTUoi.js.map +1 -0
- package/chunks/{bundle-BBFU4eTL.js → bundle-wgMIpEwC.js} +3 -3
- package/chunks/bundle-wgMIpEwC.js.map +1 -0
- package/chunks/{bundle-KgsD7sHP.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-D98gyQCw.js → bundle-1fvIlQFc.js} +1 -1
- package/cjs/chunks/bundle-1fvIlQFc.js.map +1 -0
- package/cjs/chunks/{bundle-BV94CSp2.js → bundle-B0-rystv.js} +1 -1
- package/cjs/chunks/bundle-B0-rystv.js.map +1 -0
- package/cjs/chunks/{bundle-uvDH5Qcq.js → bundle-B3Jc24pW.js} +1 -1
- package/cjs/chunks/bundle-B3Jc24pW.js.map +1 -0
- package/cjs/chunks/{bundle-EwIUxN8I.js → bundle-B49MzbKt.js} +1 -1
- package/cjs/chunks/bundle-B49MzbKt.js.map +1 -0
- package/cjs/chunks/{bundle-B21dx33o.js → bundle-B6SHa7HY.js} +1 -1
- package/cjs/chunks/{bundle-B21dx33o.js.map → bundle-B6SHa7HY.js.map} +1 -1
- package/cjs/chunks/{bundle-DVY0zH22.js → bundle-BF3_jY0B.js} +10 -10
- package/cjs/chunks/{bundle-DVY0zH22.js.map → bundle-BF3_jY0B.js.map} +1 -1
- package/cjs/chunks/{bundle-BklTloRx.js → bundle-BHORaUok.js} +7 -7
- package/cjs/chunks/bundle-BHORaUok.js.map +1 -0
- package/cjs/chunks/{bundle-C-Pbefnh.js → bundle-BIXsLqsx.js} +1 -1
- package/cjs/chunks/bundle-BIXsLqsx.js.map +1 -0
- package/cjs/chunks/{bundle-QK-CXstg.js → bundle-BLz8ybtq.js} +4 -4
- package/cjs/chunks/bundle-BLz8ybtq.js.map +1 -0
- package/cjs/chunks/{bundle-nAjjdr8R.js → bundle-BNRHeX4c.js} +1 -1
- package/cjs/chunks/bundle-BNRHeX4c.js.map +1 -0
- package/cjs/chunks/{bundle-DPnRAyp8.js → bundle-BPu68b3l.js} +10 -10
- package/cjs/chunks/bundle-BPu68b3l.js.map +1 -0
- package/cjs/chunks/{bundle-Bvt7-98T.js → bundle-BQ_GLU-Z.js} +1 -1
- package/cjs/chunks/{bundle-Bvt7-98T.js.map → bundle-BQ_GLU-Z.js.map} +1 -1
- package/cjs/chunks/{bundle-CbnAVv_A.js → bundle-BRFyx9M7.js} +1 -1
- package/cjs/chunks/bundle-BRFyx9M7.js.map +1 -0
- package/cjs/chunks/{bundle-B4AwmBQ0.js → bundle-BSD8K_lr.js} +2 -2
- package/cjs/chunks/bundle-BSD8K_lr.js.map +1 -0
- package/cjs/chunks/{bundle-D6AviDBu.js → bundle-BZ1104q7.js} +1 -1
- package/cjs/chunks/bundle-BZ1104q7.js.map +1 -0
- package/cjs/chunks/{bundle-2reRLh0Z.js → bundle-BZSMXJPx.js} +1 -1
- package/cjs/chunks/bundle-BZSMXJPx.js.map +1 -0
- package/cjs/chunks/{bundle-EG6qbvOb.js → bundle-BaR5x6SY.js} +1 -1
- package/cjs/chunks/bundle-BaR5x6SY.js.map +1 -0
- package/cjs/chunks/{bundle-W39lK1Kk.js → bundle-BayNBoOS.js} +1 -1
- package/cjs/chunks/bundle-BayNBoOS.js.map +1 -0
- package/cjs/chunks/{bundle-DYS35hRn.js → bundle-Bb5cRyq6.js} +5 -5
- package/cjs/chunks/bundle-Bb5cRyq6.js.map +1 -0
- package/cjs/chunks/{bundle-C5sCB5rF.js → bundle-Bc5UcoJP.js} +10 -10
- package/cjs/chunks/bundle-Bc5UcoJP.js.map +1 -0
- package/cjs/chunks/{bundle-CIUrH5DI.js → bundle-Bctvv222.js} +10 -10
- package/cjs/chunks/bundle-Bctvv222.js.map +1 -0
- package/cjs/chunks/{bundle-Bbj1TT0N.js → bundle-Bk9ElKEB.js} +1 -1
- package/cjs/chunks/bundle-Bk9ElKEB.js.map +1 -0
- package/cjs/chunks/{bundle-CaEBgffR.js → bundle-BqIYgvHh.js} +7 -7
- package/cjs/chunks/bundle-BqIYgvHh.js.map +1 -0
- package/cjs/chunks/{bundle-4dIM0G6u.js → bundle-BxFQ5Xct.js} +3 -3
- package/cjs/chunks/bundle-BxFQ5Xct.js.map +1 -0
- package/cjs/chunks/{bundle-BrHJysNQ.js → bundle-BzKGASmU.js} +1 -1
- package/cjs/chunks/bundle-BzKGASmU.js.map +1 -0
- package/cjs/chunks/{bundle-CGJX2Qnm.js → bundle-C5rgdPZX.js} +3 -3
- package/cjs/chunks/{bundle-CGJX2Qnm.js.map → bundle-C5rgdPZX.js.map} +1 -1
- package/cjs/chunks/{bundle-BANgPmax.js → bundle-CE5zgke3.js} +3 -3
- package/cjs/chunks/bundle-CE5zgke3.js.map +1 -0
- package/cjs/chunks/{bundle-DBzEFTnR.js → bundle-CGj3BZJg.js} +6 -6
- package/cjs/chunks/bundle-CGj3BZJg.js.map +1 -0
- package/cjs/chunks/{bundle-zzky2WM3.js → bundle-CIL--T4M.js} +1 -1
- package/cjs/chunks/bundle-CIL--T4M.js.map +1 -0
- package/cjs/chunks/{bundle-CDUcNozj.js → bundle-CJaf2uOt.js} +1 -1
- package/cjs/chunks/bundle-CJaf2uOt.js.map +1 -0
- package/cjs/chunks/{bundle-DDwMNEy3.js → bundle-CLpfRs2P.js} +1 -1
- package/cjs/chunks/bundle-CLpfRs2P.js.map +1 -0
- package/cjs/chunks/{bundle-C-pBrVph.js → bundle-CNW1YSQN.js} +4 -4
- package/cjs/chunks/{bundle-C-pBrVph.js.map → bundle-CNW1YSQN.js.map} +1 -1
- package/cjs/chunks/{bundle-DY9u_IFU.js → bundle-CTuSXAYI.js} +4 -4
- package/cjs/chunks/bundle-CTuSXAYI.js.map +1 -0
- package/cjs/chunks/{bundle-CjM-npDV.js → bundle-CW1x9olL.js} +2 -2
- package/cjs/chunks/bundle-CW1x9olL.js.map +1 -0
- package/cjs/chunks/{bundle-CNkd73Vf.js → bundle-CW6CrfeA.js} +1 -1
- package/cjs/chunks/bundle-CW6CrfeA.js.map +1 -0
- package/cjs/chunks/{bundle-BFNNhVuo.js → bundle-CYC-EHz_.js} +1 -1
- package/cjs/chunks/bundle-CYC-EHz_.js.map +1 -0
- package/cjs/chunks/{bundle-CxZ2AmTw.js → bundle-CYJdD4YQ.js} +4 -4
- package/cjs/chunks/bundle-CYJdD4YQ.js.map +1 -0
- package/cjs/chunks/{bundle-Cse4am5b.js → bundle-CZAemrm7.js} +3 -3
- package/cjs/chunks/bundle-CZAemrm7.js.map +1 -0
- package/cjs/chunks/{bundle-BDpHsAPf.js → bundle-CZXyLyvY.js} +4 -4
- package/cjs/chunks/{bundle-BDpHsAPf.js.map → bundle-CZXyLyvY.js.map} +1 -1
- package/cjs/chunks/{bundle-8FWQICxW.js → bundle-Ccdc0Gb5.js} +1 -1
- package/cjs/chunks/bundle-Ccdc0Gb5.js.map +1 -0
- package/cjs/chunks/{bundle-CbsHyoPp.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-D-pddCuD.js → bundle-Ceobt9tz.js} +2 -2
- package/cjs/chunks/bundle-Ceobt9tz.js.map +1 -0
- package/cjs/chunks/{bundle-yl9X8uaX.js → bundle-CgFq3Med.js} +3 -3
- package/cjs/chunks/bundle-CgFq3Med.js.map +1 -0
- package/cjs/chunks/{bundle-DB92inio.js → bundle-ClrKyrJs.js} +1 -1
- package/cjs/chunks/{bundle-DB92inio.js.map → bundle-ClrKyrJs.js.map} +1 -1
- package/cjs/chunks/{bundle-C4sIJSvk.js → bundle-CpzZZ7M9.js} +1 -1
- package/cjs/chunks/bundle-CpzZZ7M9.js.map +1 -0
- package/cjs/chunks/{bundle-DoUWVfXt.js → bundle-Crlai1o-.js} +2 -2
- package/cjs/chunks/{bundle-DoUWVfXt.js.map → bundle-Crlai1o-.js.map} +1 -1
- package/cjs/chunks/{bundle-C0u1Gb8j.js → bundle-CseKMdlR.js} +1 -1
- package/cjs/chunks/bundle-CseKMdlR.js.map +1 -0
- package/cjs/chunks/{bundle-Dgk9FZdP.js → bundle-CwMAldj2.js} +10 -10
- package/cjs/chunks/bundle-CwMAldj2.js.map +1 -0
- package/cjs/chunks/{bundle-COj1aep9.js → bundle-D24woH47.js} +6 -6
- package/cjs/chunks/bundle-D24woH47.js.map +1 -0
- package/cjs/chunks/{bundle-D7M5mSdn.js → bundle-D4mvQ-g-.js} +1 -1
- package/cjs/chunks/bundle-D4mvQ-g-.js.map +1 -0
- package/cjs/chunks/{bundle-B7JquFRf.js → bundle-D61JhQbF.js} +5 -5
- package/cjs/chunks/bundle-D61JhQbF.js.map +1 -0
- package/cjs/chunks/{bundle-B9G9UO0N.js → bundle-D8bfh4in.js} +2 -2
- package/cjs/chunks/bundle-D8bfh4in.js.map +1 -0
- package/cjs/chunks/{bundle-CaEowufh.js → bundle-DDOOM8dR.js} +3 -3
- package/cjs/chunks/bundle-DDOOM8dR.js.map +1 -0
- package/cjs/chunks/{bundle-CNehdWqB.js → bundle-DJP8sDlh.js} +3 -3
- package/cjs/chunks/bundle-DJP8sDlh.js.map +1 -0
- package/cjs/chunks/{bundle-Rn1REAku.js → bundle-DOcN07_k.js} +3 -3
- package/cjs/chunks/bundle-DOcN07_k.js.map +1 -0
- package/cjs/chunks/{bundle-CeBj4yyf.js → bundle-DSOCWjjy.js} +3 -3
- package/cjs/chunks/{bundle-CeBj4yyf.js.map → bundle-DSOCWjjy.js.map} +1 -1
- package/cjs/chunks/{bundle-CxQgUFNw.js → bundle-DcpFAmP5.js} +2 -2
- package/cjs/chunks/bundle-DcpFAmP5.js.map +1 -0
- package/cjs/chunks/{bundle-BUPgOXm2.js → bundle-DeM_SnVk.js} +8 -8
- package/cjs/chunks/{bundle-BUPgOXm2.js.map → bundle-DeM_SnVk.js.map} +1 -1
- package/cjs/chunks/{bundle-sUHIAQuV.js → bundle-DgelSjQS.js} +1 -1
- package/cjs/chunks/bundle-DgelSjQS.js.map +1 -0
- package/cjs/chunks/{bundle-pbdB8Hjo.js → bundle-DhjEfAMy.js} +5 -5
- package/cjs/chunks/bundle-DhjEfAMy.js.map +1 -0
- package/cjs/chunks/{bundle-DTzTjsP9.js → bundle-DiakHiZV.js} +2 -2
- package/cjs/chunks/bundle-DiakHiZV.js.map +1 -0
- package/cjs/chunks/{bundle-SK7Moc76.js → bundle-DmRqoAXr.js} +3 -3
- package/cjs/chunks/{bundle-SK7Moc76.js.map → bundle-DmRqoAXr.js.map} +1 -1
- package/cjs/chunks/{bundle-2yFiF6kQ.js → bundle-DvPVD7TA.js} +342 -10
- package/cjs/chunks/bundle-DvPVD7TA.js.map +1 -0
- package/cjs/chunks/{bundle-C7U0khPf.js → bundle-Dviv4ypI.js} +1 -1
- package/cjs/chunks/bundle-Dviv4ypI.js.map +1 -0
- package/cjs/chunks/{bundle-BcxjlS_X.js → bundle-DxKhJ-tt.js} +1 -1
- package/cjs/chunks/bundle-DxKhJ-tt.js.map +1 -0
- package/cjs/chunks/{bundle-CH1WsALE.js → bundle-Dxjq5NpA.js} +1 -1
- package/cjs/chunks/bundle-Dxjq5NpA.js.map +1 -0
- package/cjs/chunks/{bundle-D1uX57dT.js → bundle-DybpQvnV.js} +1 -1
- package/cjs/chunks/bundle-DybpQvnV.js.map +1 -0
- package/cjs/chunks/{bundle-CDgSCAgm.js → bundle-DyyIGaVv.js} +1 -1
- package/cjs/chunks/bundle-DyyIGaVv.js.map +1 -0
- package/cjs/chunks/{bundle-Dc2t5oT1.js → bundle-IJ2kVAsz.js} +2 -2
- package/cjs/chunks/bundle-IJ2kVAsz.js.map +1 -0
- package/cjs/chunks/{bundle-C9VTfZtr.js → bundle-V1LJf6-s.js} +6 -6
- package/cjs/chunks/bundle-V1LJf6-s.js.map +1 -0
- package/cjs/chunks/{bundle-E_Je42lT.js → bundle-XRJM6znW.js} +2 -2
- package/cjs/chunks/bundle-XRJM6znW.js.map +1 -0
- package/cjs/chunks/{bundle-Bcu5UBFA.js → bundle-bibyI38O.js} +1 -1
- package/cjs/chunks/bundle-bibyI38O.js.map +1 -0
- package/cjs/chunks/{bundle-DWUAobM0.js → bundle-d-z78MRA.js} +14 -14
- package/cjs/chunks/{bundle-DWUAobM0.js.map → bundle-d-z78MRA.js.map} +1 -1
- package/cjs/chunks/{bundle-D_gMAyu1.js → bundle-dLm5IRer.js} +2 -2
- package/cjs/chunks/{bundle-D_gMAyu1.js.map → bundle-dLm5IRer.js.map} +1 -1
- package/cjs/chunks/{bundle-B3Fo2XCG.js → bundle-dgKiNaih.js} +11 -11
- package/cjs/chunks/{bundle-B3Fo2XCG.js.map → bundle-dgKiNaih.js.map} +1 -1
- package/cjs/chunks/{bundle-ai_1yB2-.js → bundle-hAFM-Dnb.js} +8 -8
- package/cjs/chunks/{bundle-ai_1yB2-.js.map → bundle-hAFM-Dnb.js.map} +1 -1
- package/cjs/chunks/{bundle-DYVejIVZ.js → bundle-k6eQM5PU.js} +3 -3
- package/cjs/chunks/bundle-k6eQM5PU.js.map +1 -0
- package/cjs/chunks/{bundle-CmqcgK7J.js → bundle-oH02lQTg.js} +5 -5
- package/cjs/chunks/bundle-oH02lQTg.js.map +1 -0
- package/cjs/chunks/{bundle-Cy2HkDwf.js → bundle-ohjA4mwQ.js} +4 -4
- package/cjs/chunks/{bundle-Cy2HkDwf.js.map → bundle-ohjA4mwQ.js.map} +1 -1
- package/cjs/chunks/{bundle-C1fJTf8W.js → bundle-uTrra9db.js} +3 -3
- package/cjs/chunks/bundle-uTrra9db.js.map +1 -0
- package/cjs/chunks/{bundle-DOD1PhSm.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-4hS7j-gs.js.map +0 -1
- package/chunks/bundle-B0tCGD6H.js.map +0 -1
- package/chunks/bundle-B3YSUEgS.js.map +0 -1
- package/chunks/bundle-BBFU4eTL.js.map +0 -1
- package/chunks/bundle-BK1kBm4R.js.map +0 -1
- package/chunks/bundle-BLA2XkKm.js.map +0 -1
- package/chunks/bundle-BLcD7awq.js.map +0 -1
- package/chunks/bundle-BQvbZc7K.js.map +0 -1
- package/chunks/bundle-BggUR2rY.js.map +0 -1
- package/chunks/bundle-BhjIUcay.js.map +0 -1
- package/chunks/bundle-C1yuAXw9.js.map +0 -1
- package/chunks/bundle-C2iUqETc.js.map +0 -1
- package/chunks/bundle-C7Vg2sg7.js.map +0 -1
- package/chunks/bundle-C7zPvb8E.js.map +0 -1
- package/chunks/bundle-C8iYQbFu.js.map +0 -1
- package/chunks/bundle-CHGpi0M7.js.map +0 -1
- package/chunks/bundle-CPj7I_Ht.js.map +0 -1
- package/chunks/bundle-C_p9TOC_.js.map +0 -1
- package/chunks/bundle-Ccrcu-lm.js.map +0 -1
- package/chunks/bundle-CnNbY4d-.js.map +0 -1
- package/chunks/bundle-D0kBwA_N.js +0 -11
- package/chunks/bundle-D0kBwA_N.js.map +0 -1
- package/chunks/bundle-D2NwprR1.js.map +0 -1
- package/chunks/bundle-D8mVQVHI.js.map +0 -1
- package/chunks/bundle-D9jjb4vl.js.map +0 -1
- package/chunks/bundle-D9r0cGat.js.map +0 -1
- package/chunks/bundle-DAyGLgqp.js.map +0 -1
- package/chunks/bundle-DBqlfZ2d.js.map +0 -1
- package/chunks/bundle-DCUEuROU.js.map +0 -1
- package/chunks/bundle-DFRQ-Oo2.js.map +0 -1
- package/chunks/bundle-DIc-itow.js.map +0 -1
- package/chunks/bundle-DIdcX_-2.js.map +0 -1
- package/chunks/bundle-DJ-85RBu.js.map +0 -1
- package/chunks/bundle-DU1sAKMN.js.map +0 -1
- package/chunks/bundle-DVw9N5gr.js.map +0 -1
- package/chunks/bundle-Dg7p2p52.js.map +0 -1
- package/chunks/bundle-DjgD9t7D.js.map +0 -1
- package/chunks/bundle-DmPACCke.js.map +0 -1
- package/chunks/bundle-DqzqAw0N.js.map +0 -1
- package/chunks/bundle-EgY839OD.js.map +0 -1
- package/chunks/bundle-HB10teHo.js.map +0 -1
- package/chunks/bundle-KgsD7sHP.js.map +0 -1
- package/chunks/bundle-Kmel75IS.js.map +0 -1
- package/chunks/bundle-SR6DLu-t.js.map +0 -1
- package/chunks/bundle-TgWo1p5X.js.map +0 -1
- package/chunks/bundle-VcVV1LMj.js.map +0 -1
- package/chunks/bundle-XUXMq2yd.js.map +0 -1
- package/chunks/bundle-_1Q-aBYk.js.map +0 -1
- package/chunks/bundle-ac7nQTxZ.js.map +0 -1
- package/chunks/bundle-mRKEMtyQ.js.map +0 -1
- package/chunks/bundle-o68clRDX.js.map +0 -1
- package/chunks/bundle-qGxP6Pc7.js.map +0 -1
- package/chunks/bundle-xoAyfPjv.js.map +0 -1
- package/cjs/chunks/bundle-2reRLh0Z.js.map +0 -1
- package/cjs/chunks/bundle-2yFiF6kQ.js.map +0 -1
- package/cjs/chunks/bundle-4dIM0G6u.js.map +0 -1
- package/cjs/chunks/bundle-8FWQICxW.js.map +0 -1
- package/cjs/chunks/bundle-B4AwmBQ0.js.map +0 -1
- package/cjs/chunks/bundle-B7JquFRf.js.map +0 -1
- package/cjs/chunks/bundle-B9G9UO0N.js.map +0 -1
- package/cjs/chunks/bundle-BANgPmax.js.map +0 -1
- package/cjs/chunks/bundle-BFNNhVuo.js.map +0 -1
- package/cjs/chunks/bundle-BV94CSp2.js.map +0 -1
- package/cjs/chunks/bundle-Bbj1TT0N.js.map +0 -1
- package/cjs/chunks/bundle-Bcu5UBFA.js.map +0 -1
- package/cjs/chunks/bundle-BcxjlS_X.js.map +0 -1
- package/cjs/chunks/bundle-BklTloRx.js.map +0 -1
- package/cjs/chunks/bundle-BrHJysNQ.js.map +0 -1
- package/cjs/chunks/bundle-C-Pbefnh.js.map +0 -1
- package/cjs/chunks/bundle-C0u1Gb8j.js.map +0 -1
- package/cjs/chunks/bundle-C1fJTf8W.js.map +0 -1
- package/cjs/chunks/bundle-C4sIJSvk.js.map +0 -1
- package/cjs/chunks/bundle-C5sCB5rF.js.map +0 -1
- package/cjs/chunks/bundle-C7U0khPf.js.map +0 -1
- package/cjs/chunks/bundle-C9VTfZtr.js.map +0 -1
- package/cjs/chunks/bundle-CDUcNozj.js.map +0 -1
- package/cjs/chunks/bundle-CDgSCAgm.js.map +0 -1
- package/cjs/chunks/bundle-CH1WsALE.js.map +0 -1
- package/cjs/chunks/bundle-CIUrH5DI.js.map +0 -1
- package/cjs/chunks/bundle-CNehdWqB.js.map +0 -1
- package/cjs/chunks/bundle-CNkd73Vf.js.map +0 -1
- package/cjs/chunks/bundle-COj1aep9.js.map +0 -1
- package/cjs/chunks/bundle-CaEBgffR.js.map +0 -1
- package/cjs/chunks/bundle-CaEowufh.js.map +0 -1
- package/cjs/chunks/bundle-CbnAVv_A.js.map +0 -1
- package/cjs/chunks/bundle-CbsHyoPp.js.map +0 -1
- package/cjs/chunks/bundle-CjM-npDV.js.map +0 -1
- package/cjs/chunks/bundle-CmqcgK7J.js.map +0 -1
- package/cjs/chunks/bundle-Cn14koTY.js +0 -13
- package/cjs/chunks/bundle-Cn14koTY.js.map +0 -1
- package/cjs/chunks/bundle-Cse4am5b.js.map +0 -1
- package/cjs/chunks/bundle-CxQgUFNw.js.map +0 -1
- package/cjs/chunks/bundle-CxZ2AmTw.js.map +0 -1
- package/cjs/chunks/bundle-D-pddCuD.js.map +0 -1
- package/cjs/chunks/bundle-D1uX57dT.js.map +0 -1
- package/cjs/chunks/bundle-D6AviDBu.js.map +0 -1
- package/cjs/chunks/bundle-D7M5mSdn.js.map +0 -1
- package/cjs/chunks/bundle-D98gyQCw.js.map +0 -1
- package/cjs/chunks/bundle-DBzEFTnR.js.map +0 -1
- package/cjs/chunks/bundle-DDwMNEy3.js.map +0 -1
- package/cjs/chunks/bundle-DOD1PhSm.js.map +0 -1
- package/cjs/chunks/bundle-DPnRAyp8.js.map +0 -1
- package/cjs/chunks/bundle-DTzTjsP9.js.map +0 -1
- package/cjs/chunks/bundle-DY9u_IFU.js.map +0 -1
- package/cjs/chunks/bundle-DYS35hRn.js.map +0 -1
- package/cjs/chunks/bundle-DYVejIVZ.js.map +0 -1
- package/cjs/chunks/bundle-Dc2t5oT1.js.map +0 -1
- package/cjs/chunks/bundle-Dgk9FZdP.js.map +0 -1
- package/cjs/chunks/bundle-EG6qbvOb.js.map +0 -1
- package/cjs/chunks/bundle-E_Je42lT.js.map +0 -1
- package/cjs/chunks/bundle-EwIUxN8I.js.map +0 -1
- package/cjs/chunks/bundle-QK-CXstg.js.map +0 -1
- package/cjs/chunks/bundle-Rn1REAku.js.map +0 -1
- package/cjs/chunks/bundle-W39lK1Kk.js.map +0 -1
- package/cjs/chunks/bundle-nAjjdr8R.js.map +0 -1
- package/cjs/chunks/bundle-pbdB8Hjo.js.map +0 -1
- package/cjs/chunks/bundle-sUHIAQuV.js.map +0 -1
- package/cjs/chunks/bundle-uvDH5Qcq.js.map +0 -1
- package/cjs/chunks/bundle-yl9X8uaX.js.map +0 -1
- package/cjs/chunks/bundle-zzky2WM3.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
|
@@ -8,6 +8,10 @@ var ComponentType;
|
|
|
8
8
|
ComponentType["TextButton"] = "textButton";
|
|
9
9
|
ComponentType["ImageButton"] = "imageButton";
|
|
10
10
|
})(ComponentType || (ComponentType = {}));
|
|
11
|
+
var CompositeComponentType;
|
|
12
|
+
(function (CompositeComponentType) {
|
|
13
|
+
CompositeComponentType["Carousel"] = "carouselView";
|
|
14
|
+
})(CompositeComponentType || (CompositeComponentType = {}));
|
|
11
15
|
|
|
12
16
|
// -------- Set property mapper
|
|
13
17
|
const MAPPER = () => undefined;
|
|
@@ -20,6 +24,7 @@ const createParser = (params) => {
|
|
|
20
24
|
mapImageProps: (params === null || params === void 0 ? void 0 : params.mapImageProps) || defaultMapper,
|
|
21
25
|
mapTextButtonProps: (params === null || params === void 0 ? void 0 : params.mapTextButtonProps) || defaultMapper,
|
|
22
26
|
mapImageButtonProps: (params === null || params === void 0 ? void 0 : params.mapImageButtonProps) || defaultMapper,
|
|
27
|
+
mapCarouselProps: (params === null || params === void 0 ? void 0 : params.mapCarouselProps) || defaultMapper,
|
|
23
28
|
};
|
|
24
29
|
return {
|
|
25
30
|
parse(item, options) {
|
|
@@ -39,6 +44,9 @@ const createParser = (params) => {
|
|
|
39
44
|
case ComponentType.ImageButton: {
|
|
40
45
|
return { properties: mapper.mapImageButtonProps(item, options) };
|
|
41
46
|
}
|
|
47
|
+
case CompositeComponentType.Carousel: {
|
|
48
|
+
return { properties: mapper.mapCarouselProps(item, options) };
|
|
49
|
+
}
|
|
42
50
|
default:
|
|
43
51
|
return { properties: undefined };
|
|
44
52
|
}
|
|
@@ -48,13 +56,14 @@ const createParser = (params) => {
|
|
|
48
56
|
|
|
49
57
|
const FRAGMENT = ({ children }) => React__default.createElement(React__default.Fragment, null, children);
|
|
50
58
|
function createRenderer(params) {
|
|
51
|
-
var _a, _b, _c, _d, _e;
|
|
59
|
+
var _a, _b, _c, _d, _e, _f;
|
|
52
60
|
return {
|
|
53
61
|
box: ((_a = params === null || params === void 0 ? void 0 : params.views) === null || _a === void 0 ? void 0 : _a.box) || FRAGMENT,
|
|
54
62
|
text: ((_b = params === null || params === void 0 ? void 0 : params.views) === null || _b === void 0 ? void 0 : _b.text) || FRAGMENT,
|
|
55
63
|
image: ((_c = params === null || params === void 0 ? void 0 : params.views) === null || _c === void 0 ? void 0 : _c.image) || FRAGMENT,
|
|
56
64
|
imageButton: ((_d = params === null || params === void 0 ? void 0 : params.views) === null || _d === void 0 ? void 0 : _d.imageButton) || FRAGMENT,
|
|
57
65
|
textButton: ((_e = params === null || params === void 0 ? void 0 : params.views) === null || _e === void 0 ? void 0 : _e.textButton) || FRAGMENT,
|
|
66
|
+
carouselView: ((_f = params === null || params === void 0 ? void 0 : params.views) === null || _f === void 0 ? void 0 : _f.carouselView) || FRAGMENT,
|
|
58
67
|
};
|
|
59
68
|
}
|
|
60
69
|
|
|
@@ -168,10 +177,8 @@ const createMessageTemplate = (opts) => {
|
|
|
168
177
|
const UnknownMessage = opts.UnknownMessage || (() => null);
|
|
169
178
|
const parser = opts.parser || createParser();
|
|
170
179
|
const renderer = opts.renderer || createRenderer();
|
|
171
|
-
const MessageTemplateBase = (
|
|
172
|
-
|
|
173
|
-
const renderItems = props.templateItems;
|
|
174
|
-
const parentLayout = (_a = props.parentLayout) !== null && _a !== void 0 ? _a : defaultProperties.box.layout;
|
|
180
|
+
const MessageTemplateBase = ({ templateItems, parentLayout = defaultProperties.box.layout, isRoot = false, }) => {
|
|
181
|
+
const renderItems = templateItems;
|
|
175
182
|
return (React__default.createElement(React__default.Fragment, null, renderItems.map((item, index, siblings) => {
|
|
176
183
|
const { properties } = parser.parse(item, { parentLayout, elemIdx: index, siblings });
|
|
177
184
|
const props = {
|
|
@@ -181,6 +188,16 @@ const createMessageTemplate = (opts) => {
|
|
|
181
188
|
siblings,
|
|
182
189
|
};
|
|
183
190
|
switch (item.type) {
|
|
191
|
+
// CompositeComponent should be top level component
|
|
192
|
+
case CompositeComponentType.Carousel: {
|
|
193
|
+
if (!isRoot) {
|
|
194
|
+
throw new Error('Cannot parse template item as Carousel if the template item is not the root.');
|
|
195
|
+
}
|
|
196
|
+
if (!item.items || !Array.isArray(item.items) || item.items.length === 0) {
|
|
197
|
+
throw new Error('Cannot parse template item as Carousel if carousel has no items.');
|
|
198
|
+
}
|
|
199
|
+
return (React__default.createElement(renderer.carouselView, Object.assign({}, item, props), item.items.map((items, index) => (React__default.createElement(MessageTemplateBase, { key: index, templateItems: items || [], parentLayout: parentLayout })))));
|
|
200
|
+
}
|
|
184
201
|
case ComponentType.Box: {
|
|
185
202
|
return (React__default.createElement(renderer.box, Object.assign({}, item, props),
|
|
186
203
|
React__default.createElement(MessageTemplateBase, { templateItems: item.items || [], parentLayout: item.layout })));
|
|
@@ -209,7 +226,7 @@ const createMessageTemplate = (opts) => {
|
|
|
209
226
|
const items = setTemplateItemId(templateItems);
|
|
210
227
|
return (React__default.createElement(SizeContextProvider, null,
|
|
211
228
|
React__default.createElement(Container, null,
|
|
212
|
-
React__default.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items }))));
|
|
229
|
+
React__default.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items, isRoot: true }))));
|
|
213
230
|
},
|
|
214
231
|
MessageTemplateBase,
|
|
215
232
|
};
|
|
@@ -1011,6 +1028,312 @@ const alignInFlex = (align) => {
|
|
|
1011
1028
|
],
|
|
1012
1029
|
},
|
|
1013
1030
|
});
|
|
1031
|
+
({
|
|
1032
|
+
'version': 1,
|
|
1033
|
+
'body': {
|
|
1034
|
+
'items': [
|
|
1035
|
+
{
|
|
1036
|
+
'elementId': 'root',
|
|
1037
|
+
'type': 'box',
|
|
1038
|
+
'layout': 'column',
|
|
1039
|
+
'width': {
|
|
1040
|
+
'type': 'flex',
|
|
1041
|
+
'value': FlexSizeSpecValue.FillParent,
|
|
1042
|
+
},
|
|
1043
|
+
'height': {
|
|
1044
|
+
'type': 'flex',
|
|
1045
|
+
'value': FlexSizeSpecValue.WrapContent,
|
|
1046
|
+
},
|
|
1047
|
+
'items': [
|
|
1048
|
+
{
|
|
1049
|
+
'type': 'text',
|
|
1050
|
+
'viewStyle': {
|
|
1051
|
+
'backgroundColor': '#a0c0ffff',
|
|
1052
|
+
'margin': {
|
|
1053
|
+
'top': 16,
|
|
1054
|
+
'bottom': 16,
|
|
1055
|
+
'left': 16,
|
|
1056
|
+
'right': 16,
|
|
1057
|
+
},
|
|
1058
|
+
'padding': {
|
|
1059
|
+
'top': 16,
|
|
1060
|
+
'bottom': 16,
|
|
1061
|
+
'left': 16,
|
|
1062
|
+
'right': 16,
|
|
1063
|
+
},
|
|
1064
|
+
},
|
|
1065
|
+
'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
|
|
1066
|
+
'textStyle': {
|
|
1067
|
+
'size': 14,
|
|
1068
|
+
'color': '#222121e0',
|
|
1069
|
+
'weight': 'normal',
|
|
1070
|
+
},
|
|
1071
|
+
'maxTextLines': 5,
|
|
1072
|
+
'width': {
|
|
1073
|
+
'type': 'flex',
|
|
1074
|
+
'value': FlexSizeSpecValue.FillParent,
|
|
1075
|
+
},
|
|
1076
|
+
'height': {
|
|
1077
|
+
'type': 'flex',
|
|
1078
|
+
'value': 1,
|
|
1079
|
+
},
|
|
1080
|
+
'align': {
|
|
1081
|
+
'horizontal': 'left',
|
|
1082
|
+
'vertical': 'top',
|
|
1083
|
+
},
|
|
1084
|
+
'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
'type': 'imageButton',
|
|
1088
|
+
'viewStyle': {
|
|
1089
|
+
margin: {
|
|
1090
|
+
left: 24,
|
|
1091
|
+
right: 12,
|
|
1092
|
+
},
|
|
1093
|
+
},
|
|
1094
|
+
'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
|
|
1095
|
+
'height': { 'type': 'fixed', 'value': 250 },
|
|
1096
|
+
'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
|
|
1097
|
+
'imageStyle': { 'contentMode': 'aspectFill' },
|
|
1098
|
+
'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
|
|
1099
|
+
'action': { 'data': 'www.naver.com' },
|
|
1100
|
+
},
|
|
1101
|
+
],
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
},
|
|
1105
|
+
});
|
|
1106
|
+
|
|
1107
|
+
const PADDING_WIDTH = 24;
|
|
1108
|
+
const CONTENT_LEFT_WIDTH = 40;
|
|
1109
|
+
const SWIPE_THRESHOLD = 15;
|
|
1110
|
+
const LAST_ITEM_RIGHT_SNAP_THRESHOLD = 100;
|
|
1111
|
+
const GAP_DEFAULT = 8;
|
|
1112
|
+
/**
|
|
1113
|
+
* fixed sized template items should use its child width.
|
|
1114
|
+
* Whereas flex sized template items should use its parent's width.
|
|
1115
|
+
* @param item
|
|
1116
|
+
*/
|
|
1117
|
+
function shouldRenderAsFixed(item) {
|
|
1118
|
+
var _a;
|
|
1119
|
+
return ((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.type) === 'fixed';
|
|
1120
|
+
}
|
|
1121
|
+
function CarouselItem({ item, defaultWidth }) {
|
|
1122
|
+
return (React__default.createElement("div", { style: shouldRenderAsFixed(item) ? { width: 'fit-content' } : { minWidth: defaultWidth, width: '100%' } }, item));
|
|
1123
|
+
}
|
|
1124
|
+
const Carousel = React__default.memo(({ children, gap = GAP_DEFAULT }) => {
|
|
1125
|
+
var _a, _b;
|
|
1126
|
+
const carouselRef = useRef(null);
|
|
1127
|
+
const screenWidth = window.innerWidth;
|
|
1128
|
+
const defaultItemWidth = (_b = (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
|
|
1129
|
+
const itemWidths = children.map((item) => {
|
|
1130
|
+
var _a;
|
|
1131
|
+
if (shouldRenderAsFixed(item)) {
|
|
1132
|
+
return (_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.value;
|
|
1133
|
+
}
|
|
1134
|
+
return defaultItemWidth;
|
|
1135
|
+
});
|
|
1136
|
+
const allItemsWidth = itemWidths.reduce((prev, curr) => prev + gap + curr);
|
|
1137
|
+
const lastItemWidth = itemWidths[itemWidths.length - 1];
|
|
1138
|
+
const isLastItemNarrow = lastItemWidth <= LAST_ITEM_RIGHT_SNAP_THRESHOLD;
|
|
1139
|
+
const isLastTwoItemsFitScreen = getIsLastTwoItemsFitScreen();
|
|
1140
|
+
const itemPositions = getEachItemPositions();
|
|
1141
|
+
const [draggingInfo, setDraggingInfo] = useState({
|
|
1142
|
+
scrolling: false,
|
|
1143
|
+
dragging: false,
|
|
1144
|
+
startPos: null,
|
|
1145
|
+
offset: 0,
|
|
1146
|
+
translateX: 0,
|
|
1147
|
+
currentIndex: 0,
|
|
1148
|
+
});
|
|
1149
|
+
const handleMouseDown = (event) => {
|
|
1150
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: false, dragging: true, startPos: {
|
|
1151
|
+
x: event.clientX,
|
|
1152
|
+
y: event.clientY,
|
|
1153
|
+
}, offset: 0 }));
|
|
1154
|
+
};
|
|
1155
|
+
const handleMouseMove = (event) => {
|
|
1156
|
+
if (!draggingInfo.dragging || !draggingInfo.startPos)
|
|
1157
|
+
return;
|
|
1158
|
+
const currentX = event.clientX;
|
|
1159
|
+
const newOffset = currentX - draggingInfo.startPos.x;
|
|
1160
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
|
|
1161
|
+
};
|
|
1162
|
+
const handleMouseUp = () => {
|
|
1163
|
+
if (!draggingInfo.dragging)
|
|
1164
|
+
return;
|
|
1165
|
+
handleDragEnd();
|
|
1166
|
+
};
|
|
1167
|
+
const blockScroll = () => {
|
|
1168
|
+
if (carouselRef.current) {
|
|
1169
|
+
carouselRef.current.style.touchAction = 'pan-x';
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
const unblockScroll = () => {
|
|
1173
|
+
if (carouselRef.current) {
|
|
1174
|
+
carouselRef.current.style.touchAction = 'pan-y';
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
const handleTouchStart = (event) => {
|
|
1178
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: false, dragging: false, startPos: {
|
|
1179
|
+
x: event.touches[0].clientX,
|
|
1180
|
+
y: event.touches[0].clientY,
|
|
1181
|
+
}, offset: 0 }));
|
|
1182
|
+
};
|
|
1183
|
+
const handleTouchMove = (event) => {
|
|
1184
|
+
if (!draggingInfo.startPos || draggingInfo.scrolling)
|
|
1185
|
+
return;
|
|
1186
|
+
const startPos = draggingInfo.startPos;
|
|
1187
|
+
const [touchMoveX, touchMoveY] = [event.touches[0].clientX, event.touches[0].clientY];
|
|
1188
|
+
const [deltaX, deltaY] = [Math.abs(touchMoveX - startPos.x), Math.abs(touchMoveY - startPos.y)];
|
|
1189
|
+
const newOffset = touchMoveX - startPos.x;
|
|
1190
|
+
if (newOffset === draggingInfo.offset)
|
|
1191
|
+
return;
|
|
1192
|
+
if (draggingInfo.dragging) {
|
|
1193
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
|
|
1194
|
+
return;
|
|
1195
|
+
}
|
|
1196
|
+
if (deltaY > deltaX) {
|
|
1197
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { scrolling: true }));
|
|
1198
|
+
}
|
|
1199
|
+
else {
|
|
1200
|
+
blockScroll();
|
|
1201
|
+
setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { dragging: true, offset: newOffset }));
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
const getNewDraggingInfo = (props = {}) => {
|
|
1205
|
+
const { newTranslateX, nextIndex } = props;
|
|
1206
|
+
const { translateX, currentIndex } = draggingInfo;
|
|
1207
|
+
return {
|
|
1208
|
+
scrolling: false,
|
|
1209
|
+
dragging: false,
|
|
1210
|
+
startPos: null,
|
|
1211
|
+
offset: 0,
|
|
1212
|
+
translateX: newTranslateX !== null && newTranslateX !== void 0 ? newTranslateX : translateX,
|
|
1213
|
+
currentIndex: nextIndex !== null && nextIndex !== void 0 ? nextIndex : currentIndex,
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
const handleDragEnd = () => {
|
|
1217
|
+
const offset = draggingInfo.offset;
|
|
1218
|
+
const absOffset = Math.abs(offset);
|
|
1219
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
1220
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
// If dragged to left, next index should be to the right
|
|
1224
|
+
const currentIndex = draggingInfo.currentIndex;
|
|
1225
|
+
if (offset < 0 && currentIndex < children.length - 1) {
|
|
1226
|
+
const nextIndex = currentIndex + 1;
|
|
1227
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1228
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1229
|
+
nextIndex,
|
|
1230
|
+
}));
|
|
1231
|
+
// If dragged to right, next index should be to the left
|
|
1232
|
+
}
|
|
1233
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
1234
|
+
const nextIndex = currentIndex - 1;
|
|
1235
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1236
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1237
|
+
nextIndex,
|
|
1238
|
+
}));
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1242
|
+
}
|
|
1243
|
+
};
|
|
1244
|
+
const handleTouchEnd = () => {
|
|
1245
|
+
const { offset, currentIndex } = draggingInfo;
|
|
1246
|
+
const absOffset = Math.abs(offset);
|
|
1247
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
1248
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1251
|
+
// If dragged to left, next index should be to the right
|
|
1252
|
+
if (offset < 0 && currentIndex < children.length - 1) {
|
|
1253
|
+
const nextIndex = currentIndex + 1;
|
|
1254
|
+
/**
|
|
1255
|
+
* This is special logic for "더 보기" button for Socar use-case.
|
|
1256
|
+
* The button will have a small width (less than 50px).
|
|
1257
|
+
* We want to include this button in the view and snap to right padding wall IFF !isLastTwoItemsFitScreen.
|
|
1258
|
+
*/
|
|
1259
|
+
if (isLastItemNarrow) {
|
|
1260
|
+
if (isLastTwoItemsFitScreen) {
|
|
1261
|
+
if (nextIndex !== children.length - 1) {
|
|
1262
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1263
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1264
|
+
nextIndex,
|
|
1265
|
+
}));
|
|
1266
|
+
}
|
|
1267
|
+
else {
|
|
1268
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
else if (nextIndex !== children.length - 1) {
|
|
1272
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1273
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1274
|
+
nextIndex,
|
|
1275
|
+
}));
|
|
1276
|
+
}
|
|
1277
|
+
else {
|
|
1278
|
+
const translateWidth = itemPositions[nextIndex].start - lastItemWidth;
|
|
1279
|
+
const rightEmptyWidth = screenWidth - (allItemsWidth + translateWidth + PADDING_WIDTH + CONTENT_LEFT_WIDTH);
|
|
1280
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1281
|
+
newTranslateX: translateWidth + rightEmptyWidth,
|
|
1282
|
+
nextIndex,
|
|
1283
|
+
}));
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
else {
|
|
1287
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1288
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1289
|
+
nextIndex,
|
|
1290
|
+
}));
|
|
1291
|
+
}
|
|
1292
|
+
// If dragged to right, next index should be to the left
|
|
1293
|
+
}
|
|
1294
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
1295
|
+
const nextIndex = currentIndex - 1;
|
|
1296
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
1297
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
1298
|
+
nextIndex,
|
|
1299
|
+
}));
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
1303
|
+
}
|
|
1304
|
+
if (draggingInfo.dragging) {
|
|
1305
|
+
unblockScroll();
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
function getCurrentTranslateX() {
|
|
1309
|
+
return draggingInfo.translateX + draggingInfo.offset;
|
|
1310
|
+
}
|
|
1311
|
+
function getIsLastTwoItemsFitScreen() {
|
|
1312
|
+
const restItemsWidth = itemWidths.slice(-2).reduce((prev, curr) => prev + gap + curr);
|
|
1313
|
+
const restTotalWidth = PADDING_WIDTH + CONTENT_LEFT_WIDTH + restItemsWidth;
|
|
1314
|
+
return restTotalWidth <= screenWidth;
|
|
1315
|
+
}
|
|
1316
|
+
function getEachItemPositions() {
|
|
1317
|
+
let accumulator = 0;
|
|
1318
|
+
return itemWidths.map((itemWidth, i) => {
|
|
1319
|
+
if (i > 0) {
|
|
1320
|
+
accumulator -= gap;
|
|
1321
|
+
}
|
|
1322
|
+
const itemPosition = {
|
|
1323
|
+
start: accumulator,
|
|
1324
|
+
end: accumulator - itemWidth,
|
|
1325
|
+
};
|
|
1326
|
+
accumulator -= itemWidth;
|
|
1327
|
+
return itemPosition;
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
return (React__default.createElement("div", { ref: carouselRef, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, className: "sb-message-template__carousel", style: {
|
|
1331
|
+
cursor: draggingInfo.dragging ? 'grabbing' : 'grab',
|
|
1332
|
+
transition: draggingInfo.dragging ? 'none' : 'transform 0.5s ease',
|
|
1333
|
+
transform: `translateX(${getCurrentTranslateX()}px)`,
|
|
1334
|
+
gap: gap,
|
|
1335
|
+
} }, children.map((item, index) => (React__default.createElement(CarouselItem, { key: index + '', item: item, defaultWidth: defaultItemWidth + 'px' })))));
|
|
1336
|
+
});
|
|
1014
1337
|
|
|
1015
1338
|
var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
|
|
1016
1339
|
var t = {};
|
|
@@ -1376,7 +1699,7 @@ function setBorderStyle(styles, borderWidth, borderColor, radius) {
|
|
|
1376
1699
|
}
|
|
1377
1700
|
}
|
|
1378
1701
|
function setViewStyle(styles, props) {
|
|
1379
|
-
var _a, _b, _c, _d;
|
|
1702
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1380
1703
|
const { viewStyle } = props;
|
|
1381
1704
|
if ((_a = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _a === void 0 ? void 0 : _a.top)
|
|
1382
1705
|
styles['marginTop'] = Number(viewStyle.margin.top);
|
|
@@ -1386,6 +1709,9 @@ function setViewStyle(styles, props) {
|
|
|
1386
1709
|
styles['marginLeft'] = Number(viewStyle.margin.left);
|
|
1387
1710
|
if ((_d = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _d === void 0 ? void 0 : _d.right)
|
|
1388
1711
|
styles['marginRight'] = Number(viewStyle.margin.right);
|
|
1712
|
+
const marginHorizontal = Number((_e = styles.marginLeft) !== null && _e !== void 0 ? _e : '0') + Number((_f = styles.marginRight) !== null && _f !== void 0 ? _f : '0');
|
|
1713
|
+
if (marginHorizontal > 0 && styles.width === '100%')
|
|
1714
|
+
styles.width = `calc(100% - ${marginHorizontal}px)`;
|
|
1389
1715
|
if (viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.backgroundColor)
|
|
1390
1716
|
styles['backgroundColor'] = viewStyle.backgroundColor;
|
|
1391
1717
|
// use JSON.stringify to escape special characters in image URL
|
|
@@ -1614,6 +1940,9 @@ const renderer = createRenderer({
|
|
|
1614
1940
|
return (React__default.createElement(ActionHandler, { className: "sb-message-template__image-container sb-message-template__image-button", elementId: props.elementId, style: props.parsedProperties, props: props },
|
|
1615
1941
|
React__default.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 })));
|
|
1616
1942
|
},
|
|
1943
|
+
carouselView(props) {
|
|
1944
|
+
return React__default.createElement(Carousel, { gap: props.spacing }, props.children);
|
|
1945
|
+
},
|
|
1617
1946
|
},
|
|
1618
1947
|
});
|
|
1619
1948
|
const parser = createParser({
|
|
@@ -1653,6 +1982,11 @@ const parser = createParser({
|
|
|
1653
1982
|
setImageAspectRatio(styles, props);
|
|
1654
1983
|
return styles;
|
|
1655
1984
|
},
|
|
1985
|
+
mapCarouselProps(props, options) {
|
|
1986
|
+
const styles = getDefaultStyles();
|
|
1987
|
+
setViewProps(styles, props, options);
|
|
1988
|
+
return styles;
|
|
1989
|
+
},
|
|
1656
1990
|
});
|
|
1657
1991
|
createMessageTemplate({
|
|
1658
1992
|
renderer,
|
|
@@ -1662,9 +1996,7 @@ createMessageTemplate({
|
|
|
1662
1996
|
display: 'flex',
|
|
1663
1997
|
flexDirection: 'column',
|
|
1664
1998
|
maxWidth: 400,
|
|
1665
|
-
backgroundColor: '#cecece',
|
|
1666
1999
|
marginBottom: 24,
|
|
1667
|
-
borderRadius: '8px',
|
|
1668
2000
|
} }, children));
|
|
1669
2001
|
},
|
|
1670
2002
|
});
|
|
@@ -1686,4 +2018,4 @@ function MessageTemplate(_a) {
|
|
|
1686
2018
|
}
|
|
1687
2019
|
|
|
1688
2020
|
export { MessageProvider as M, MessageTemplate as a };
|
|
1689
|
-
//# sourceMappingURL=bundle-
|
|
2021
|
+
//# sourceMappingURL=bundle-DX1OveAN.js.map
|