@sendbird/uikit-react 3.13.3 → 3.13.5-rc.0
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 +77 -77
- package/CHANGELOG.md +16 -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 +24 -25
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +22 -23
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +20 -20
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +22 -23
- package/ChannelSettings.js.map +1 -1
- 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 +27 -24
- 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 +18 -19
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +19 -20
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +19 -20
- package/OpenChannelSettings.js.map +1 -1
- 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-BXpzbAbi.js → bundle-2CB9cbyK.js} +3 -3
- package/chunks/bundle-2CB9cbyK.js.map +1 -0
- package/chunks/{bundle-WrvoTlHQ.js → bundle-B1Lu9lTG.js} +1 -1
- package/chunks/bundle-B1Lu9lTG.js.map +1 -0
- package/chunks/{bundle-BOrV2z_R.js → bundle-B4d2T-Ji.js} +11 -19
- package/chunks/bundle-B4d2T-Ji.js.map +1 -0
- package/chunks/{bundle-DlHudqve.js → bundle-B5yqKCqj.js} +1 -1
- package/chunks/bundle-B5yqKCqj.js.map +1 -0
- package/chunks/{bundle-Di7baNGv.js → bundle-B6WHOoiH.js} +1 -1
- package/chunks/bundle-B6WHOoiH.js.map +1 -0
- package/chunks/{bundle-BAsn0CBE.js → bundle-B8_-CU-h.js} +1 -1
- package/chunks/bundle-B8_-CU-h.js.map +1 -0
- package/chunks/{bundle-VttuSapS.js → bundle-B9Bm593o.js} +10 -10
- package/chunks/{bundle-VttuSapS.js.map → bundle-B9Bm593o.js.map} +1 -1
- package/chunks/{bundle-CJ9_QDKY.js → bundle-BEq-7pEp.js} +1 -1
- package/chunks/bundle-BEq-7pEp.js.map +1 -0
- package/chunks/{bundle-IuZ6uyzU.js → bundle-BIXwglsl.js} +1 -1
- package/chunks/bundle-BIXwglsl.js.map +1 -0
- package/chunks/{bundle-BpDuHeEB.js → bundle-BMwchPGm.js} +4 -4
- package/chunks/bundle-BMwchPGm.js.map +1 -0
- package/chunks/{bundle-CjW6ZQ1k.js → bundle-BV3BzfO4.js} +10 -10
- package/chunks/bundle-BV3BzfO4.js.map +1 -0
- package/chunks/{bundle-CP1hwfFC.js → bundle-BV6yG1Q1.js} +1 -1
- package/chunks/bundle-BV6yG1Q1.js.map +1 -0
- package/chunks/{bundle-j5EP0k3D.js → bundle-BWPwzSCb.js} +3 -3
- package/chunks/bundle-BWPwzSCb.js.map +1 -0
- package/chunks/{bundle-CLqgMCvn.js → bundle-BazICRW7.js} +1 -1
- package/chunks/bundle-BazICRW7.js.map +1 -0
- package/chunks/{bundle-CVFMpKJZ.js → bundle-BhyGIt3n.js} +4 -4
- package/chunks/{bundle-CVFMpKJZ.js.map → bundle-BhyGIt3n.js.map} +1 -1
- package/chunks/{bundle-CfZFWZM3.js → bundle-BpZHRVFG.js} +3 -3
- package/chunks/{bundle-CfZFWZM3.js.map → bundle-BpZHRVFG.js.map} +1 -1
- package/chunks/{bundle-CilkBcv-.js → bundle-BrPRjJ0m.js} +2 -2
- package/chunks/bundle-BrPRjJ0m.js.map +1 -0
- package/chunks/{bundle-DHp0VTVS.js → bundle-BrdyFeU8.js} +1 -1
- package/chunks/bundle-BrdyFeU8.js.map +1 -0
- package/chunks/{bundle-CkInAxxb.js → bundle-C429AP16.js} +1 -1
- package/chunks/bundle-C429AP16.js.map +1 -0
- package/chunks/{bundle-BIvhXCoF.js → bundle-CF5ILwVb.js} +1 -1
- package/chunks/bundle-CF5ILwVb.js.map +1 -0
- package/chunks/{bundle-CS4RK0T7.js → bundle-CJ9ZgW3O.js} +8 -8
- package/chunks/{bundle-CS4RK0T7.js.map → bundle-CJ9ZgW3O.js.map} +1 -1
- package/chunks/{bundle-C2vpr4DU.js → bundle-CKzaHQYV.js} +3 -3
- package/chunks/{bundle-C2vpr4DU.js.map → bundle-CKzaHQYV.js.map} +1 -1
- package/chunks/{bundle-aE9efllI.js → bundle-COFs5JRF.js} +2 -2
- package/chunks/bundle-COFs5JRF.js.map +1 -0
- package/chunks/{bundle-DNq8IoOw.js → bundle-CSUG2Jsp.js} +7 -7
- package/chunks/{bundle-DNq8IoOw.js.map → bundle-CSUG2Jsp.js.map} +1 -1
- package/chunks/{bundle-DIEAFe_F.js → bundle-CSb883DP.js} +2 -2
- package/chunks/bundle-CSb883DP.js.map +1 -0
- package/chunks/{bundle-ts_i6oEg.js → bundle-CT2oSHgF.js} +1 -1
- package/chunks/bundle-CT2oSHgF.js.map +1 -0
- package/chunks/{bundle-DPhbbRZE.js → bundle-CWc03_e6.js} +3 -3
- package/chunks/bundle-CWc03_e6.js.map +1 -0
- package/chunks/{bundle-D3OeBr-9.js → bundle-CYgwb9VZ.js} +1 -1
- package/chunks/bundle-CYgwb9VZ.js.map +1 -0
- package/chunks/{bundle-oLhQai93.js → bundle-CcReb7HG.js} +2 -2
- package/chunks/bundle-CcReb7HG.js.map +1 -0
- package/chunks/{bundle-Ds2X6Fjs.js → bundle-CeazJdXf.js} +10 -10
- package/chunks/bundle-CeazJdXf.js.map +1 -0
- package/chunks/{bundle-BMvaJoQA.js → bundle-CjrC1nIR.js} +5 -5
- package/chunks/{bundle-BMvaJoQA.js.map → bundle-CjrC1nIR.js.map} +1 -1
- package/chunks/{bundle-DuNr1Njk.js → bundle-Cjx44IEO.js} +1 -1
- package/chunks/bundle-Cjx44IEO.js.map +1 -0
- package/chunks/{bundle-BxBdkxXV.js → bundle-CoRDMAPz.js} +1 -1
- package/chunks/{bundle-BxBdkxXV.js.map → bundle-CoRDMAPz.js.map} +1 -1
- package/chunks/{bundle-COR7gPrO.js → bundle-Cpgaa2QN.js} +3 -3
- package/chunks/{bundle-COR7gPrO.js.map → bundle-Cpgaa2QN.js.map} +1 -1
- package/chunks/{bundle-D47WMGAq.js → bundle-CvFR8emy.js} +342 -10
- package/chunks/bundle-CvFR8emy.js.map +1 -0
- package/chunks/{bundle-HsrPpAtd.js → bundle-Cz1RHbaK.js} +2 -2
- package/chunks/bundle-Cz1RHbaK.js.map +1 -0
- package/chunks/{bundle-DoJNLxY9.js → bundle-D0-N42A3.js} +1 -1
- package/chunks/bundle-D0-N42A3.js.map +1 -0
- package/chunks/{bundle-GRqvZZ2N.js → bundle-D2cpAH7S.js} +3 -3
- package/chunks/bundle-D2cpAH7S.js.map +1 -0
- package/chunks/{bundle-BntzGGYb.js → bundle-D6WFbNam.js} +1 -1
- package/chunks/bundle-D6WFbNam.js.map +1 -0
- package/chunks/{bundle-DQnpJfyk.js → bundle-D6slzVtq.js} +3 -3
- package/chunks/bundle-D6slzVtq.js.map +1 -0
- package/chunks/{bundle-DaQK1Cox.js → bundle-D7MBXSdL.js} +1 -1
- package/chunks/{bundle-DaQK1Cox.js.map → bundle-D7MBXSdL.js.map} +1 -1
- package/chunks/{bundle-5HwGq_hd.js → bundle-DAFxRwZA.js} +4 -4
- package/chunks/{bundle-5HwGq_hd.js.map → bundle-DAFxRwZA.js.map} +1 -1
- package/chunks/{bundle-C6fuKmVo.js → bundle-DCDj9cBa.js} +4 -4
- package/chunks/bundle-DCDj9cBa.js.map +1 -0
- package/chunks/{bundle-Dypl_pLH.js → bundle-DEXxljeg.js} +2 -2
- package/chunks/{bundle-Dypl_pLH.js.map → bundle-DEXxljeg.js.map} +1 -1
- package/chunks/{bundle-B8HW06Fl.js → bundle-DFtNvoFc.js} +1 -1
- package/chunks/bundle-DFtNvoFc.js.map +1 -0
- package/chunks/{bundle-DBzkkIf1.js → bundle-DIm3jhUf.js} +2 -2
- package/chunks/{bundle-DBzkkIf1.js.map → bundle-DIm3jhUf.js.map} +1 -1
- package/chunks/{bundle-DqNfXH8L.js → bundle-DJomGmJW.js} +2 -2
- package/chunks/bundle-DJomGmJW.js.map +1 -0
- package/chunks/{bundle-CT3xDvIx.js → bundle-DJtmx5ZB.js} +1 -1
- package/chunks/bundle-DJtmx5ZB.js.map +1 -0
- package/chunks/{bundle-CYtZF1xr.js → bundle-DKokSoOr.js} +11 -11
- package/chunks/{bundle-CYtZF1xr.js.map → bundle-DKokSoOr.js.map} +1 -1
- package/chunks/{bundle-CmdUup8N.js → bundle-DRBA7pOF.js} +14 -14
- package/chunks/{bundle-CmdUup8N.js.map → bundle-DRBA7pOF.js.map} +1 -1
- package/chunks/{bundle-CCUBCV04.js → bundle-DTJmJKI-.js} +6 -6
- package/chunks/bundle-DTJmJKI-.js.map +1 -0
- package/chunks/{bundle-BHOxoDJO.js → bundle-DTtxLQBf.js} +1 -1
- package/chunks/{bundle-BHOxoDJO.js.map → bundle-DTtxLQBf.js.map} +1 -1
- package/chunks/{bundle-CIhbNReG.js → bundle-DWqTnOMC.js} +3 -3
- package/chunks/bundle-DWqTnOMC.js.map +1 -0
- package/chunks/{bundle-BlHQV-25.js → bundle-DayUsjVk.js} +1 -1
- package/chunks/bundle-DayUsjVk.js.map +1 -0
- package/chunks/{bundle-CZYvKysu.js → bundle-Dbuyvbkx.js} +1 -1
- package/chunks/bundle-Dbuyvbkx.js.map +1 -0
- package/chunks/{bundle-DYJilNov.js → bundle-DgTHmlAs.js} +1 -1
- package/chunks/bundle-DgTHmlAs.js.map +1 -0
- package/chunks/{bundle-rl7Rvf_6.js → bundle-DixvA1wh.js} +10 -10
- package/chunks/bundle-DixvA1wh.js.map +1 -0
- package/chunks/{bundle-aJhoAKLH.js → bundle-DjqTZjkj.js} +6 -6
- package/chunks/bundle-DjqTZjkj.js.map +1 -0
- package/chunks/{bundle-BkM4cdOJ.js → bundle-DkipNSGW.js} +5 -5
- package/chunks/bundle-DkipNSGW.js.map +1 -0
- package/chunks/{bundle-CIO0N9hp.js → bundle-DotbTgK1.js} +1 -1
- package/chunks/bundle-DotbTgK1.js.map +1 -0
- package/chunks/{bundle-Bm_WZS3a.js → bundle-Dt0QAf1h.js} +2 -2
- package/chunks/{bundle-Bm_WZS3a.js.map → bundle-Dt0QAf1h.js.map} +1 -1
- package/chunks/{bundle-CMKCY3ba.js → bundle-DtZFfgt5.js} +3 -3
- package/chunks/{bundle-CMKCY3ba.js.map → bundle-DtZFfgt5.js.map} +1 -1
- package/chunks/{bundle-yNfnN0a6.js → bundle-Dy6J2FME.js} +1 -1
- package/chunks/bundle-Dy6J2FME.js.map +1 -0
- package/chunks/{bundle-C6ZXjQ1L.js → bundle-HFtcdrtS.js} +1 -1
- package/chunks/bundle-HFtcdrtS.js.map +1 -0
- package/chunks/{bundle-D6kFzMhH.js → bundle-JM8paPd8.js} +5 -5
- package/chunks/{bundle-D6kFzMhH.js.map → bundle-JM8paPd8.js.map} +1 -1
- package/chunks/{bundle-SvqLmXeF.js → bundle-JOYu_bJA.js} +6 -6
- package/chunks/bundle-JOYu_bJA.js.map +1 -0
- package/chunks/{bundle-fvRtOX6P.js → bundle-Jp0FAvez.js} +5 -5
- package/chunks/bundle-Jp0FAvez.js.map +1 -0
- package/chunks/{bundle-CAki7JUf.js → bundle-VAaqXBXR.js} +1 -1
- package/chunks/bundle-VAaqXBXR.js.map +1 -0
- package/chunks/{bundle-DTywBX7q.js → bundle-Y22L0ujf.js} +4 -4
- package/chunks/{bundle-DTywBX7q.js.map → bundle-Y22L0ujf.js.map} +1 -1
- package/chunks/{bundle-Dj4HLKX0.js → bundle-atjHJy7O.js} +10 -10
- package/chunks/bundle-atjHJy7O.js.map +1 -0
- package/chunks/{bundle-D45e30Hl.js → bundle-cFwxkyJc.js} +4 -4
- package/chunks/bundle-cFwxkyJc.js.map +1 -0
- package/chunks/{bundle-CVDtzU3E.js → bundle-ejaEZZx2.js} +1 -1
- package/chunks/{bundle-CVDtzU3E.js.map → bundle-ejaEZZx2.js.map} +1 -1
- package/chunks/{bundle-DEqxoG9B.js → bundle-iSRI1q4Z.js} +1 -1
- package/chunks/bundle-iSRI1q4Z.js.map +1 -0
- package/chunks/bundle-ivF6R_pQ.js +16 -0
- package/chunks/bundle-ivF6R_pQ.js.map +1 -0
- package/chunks/{bundle-DI3fL4Xw.js → bundle-l3lwcum3.js} +3 -3
- package/chunks/{bundle-DI3fL4Xw.js.map → bundle-l3lwcum3.js.map} +1 -1
- package/chunks/{bundle-BVGlC_pg.js → bundle-lUf6HzQ1.js} +1 -1
- package/chunks/bundle-lUf6HzQ1.js.map +1 -0
- package/chunks/{bundle-BX0LQWqY.js → bundle-py7VIZyb.js} +3 -3
- package/chunks/bundle-py7VIZyb.js.map +1 -0
- package/chunks/{bundle-jd7__XU_.js → bundle-q-Um8ZaL.js} +7 -7
- package/chunks/bundle-q-Um8ZaL.js.map +1 -0
- package/chunks/{bundle-DxdGwARh.js → bundle-sYSBqyLA.js} +3 -3
- package/chunks/{bundle-DxdGwARh.js.map → bundle-sYSBqyLA.js.map} +1 -1
- package/chunks/{bundle-4a9M9y8N.js → bundle-u61WxT34.js} +1 -1
- package/chunks/{bundle-4a9M9y8N.js.map → bundle-u61WxT34.js.map} +1 -1
- package/chunks/{bundle-1ymLj4Og.js → bundle-vrEu-XlY.js} +1 -1
- package/chunks/bundle-vrEu-XlY.js.map +1 -0
- package/cjs/App.js +77 -77
- 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 +22 -23
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +22 -23
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- 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 +22 -23
- package/cjs/ChannelSettings.js.map +1 -1
- 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 +27 -24
- 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 +18 -19
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -20
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +19 -20
- package/cjs/OpenChannelSettings.js.map +1 -1
- 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-BiEQOJHh.js → bundle-0Resflq2.js} +1 -1
- package/cjs/chunks/bundle-0Resflq2.js.map +1 -0
- package/cjs/chunks/{bundle-HOuE7syZ.js → bundle-2xKFe-Ve.js} +1 -1
- package/cjs/chunks/{bundle-HOuE7syZ.js.map → bundle-2xKFe-Ve.js.map} +1 -1
- package/cjs/chunks/{bundle-CAyt7i0X.js → bundle-5bh75rnQ.js} +1 -1
- package/cjs/chunks/bundle-5bh75rnQ.js.map +1 -0
- package/cjs/chunks/{bundle-DcVYwXP-.js → bundle-B-nDgVPB.js} +1 -1
- package/cjs/chunks/bundle-B-nDgVPB.js.map +1 -0
- package/cjs/chunks/{bundle-D_qbYkHk.js → bundle-B0BbNBmF.js} +1 -1
- package/cjs/chunks/{bundle-D_qbYkHk.js.map → bundle-B0BbNBmF.js.map} +1 -1
- package/cjs/chunks/{bundle-CN0vR-TH.js → bundle-B1Bz43P7.js} +2 -2
- package/cjs/chunks/{bundle-CN0vR-TH.js.map → bundle-B1Bz43P7.js.map} +1 -1
- package/cjs/chunks/{bundle-Dm7xuKwW.js → bundle-B5NcBaC6.js} +10 -10
- package/cjs/chunks/{bundle-Dm7xuKwW.js.map → bundle-B5NcBaC6.js.map} +1 -1
- package/cjs/chunks/{bundle-S09sS9Ub.js → bundle-B8pX7K7r.js} +1 -1
- package/cjs/chunks/bundle-B8pX7K7r.js.map +1 -0
- package/cjs/chunks/{bundle-BnTCpa1X.js → bundle-BBfqqwQ0.js} +10 -10
- package/cjs/chunks/bundle-BBfqqwQ0.js.map +1 -0
- package/cjs/chunks/{bundle-C1j0QNr3.js → bundle-BCyC04Kb.js} +5 -5
- package/cjs/chunks/bundle-BCyC04Kb.js.map +1 -0
- package/cjs/chunks/{bundle-DkGYX29W.js → bundle-BKgpGWUf.js} +3 -3
- package/cjs/chunks/bundle-BKgpGWUf.js.map +1 -0
- package/cjs/chunks/{bundle-CfEubbCT.js → bundle-BLWsJ9Zq.js} +2 -2
- package/cjs/chunks/bundle-BLWsJ9Zq.js.map +1 -0
- package/cjs/chunks/{bundle-BJjQQMo0.js → bundle-BLn8BGWi.js} +4 -4
- package/cjs/chunks/bundle-BLn8BGWi.js.map +1 -0
- package/cjs/chunks/{bundle-ChQ3Q-GS.js → bundle-BMqB-Nzb.js} +7 -7
- package/cjs/chunks/bundle-BMqB-Nzb.js.map +1 -0
- package/cjs/chunks/{bundle-CQiNKK2y.js → bundle-BPTvzYgs.js} +2 -2
- package/cjs/chunks/bundle-BPTvzYgs.js.map +1 -0
- package/cjs/chunks/{bundle-prE7SKQr.js → bundle-BRK_iLdr.js} +1 -1
- package/cjs/chunks/{bundle-prE7SKQr.js.map → bundle-BRK_iLdr.js.map} +1 -1
- package/cjs/chunks/{bundle-BSLZ5pEu.js → bundle-BRvKbtEh.js} +3 -3
- package/cjs/chunks/bundle-BRvKbtEh.js.map +1 -0
- package/cjs/chunks/{bundle-HXyGAP9T.js → bundle-BSCAuA6F.js} +1 -1
- package/cjs/chunks/bundle-BSCAuA6F.js.map +1 -0
- package/cjs/chunks/{bundle-Vn-fJ6dU.js → bundle-BU-xcu3d.js} +4 -4
- package/cjs/chunks/{bundle-Vn-fJ6dU.js.map → bundle-BU-xcu3d.js.map} +1 -1
- package/cjs/chunks/{bundle-knUfDzC9.js → bundle-BVxNTTFv.js} +14 -14
- package/cjs/chunks/{bundle-knUfDzC9.js.map → bundle-BVxNTTFv.js.map} +1 -1
- package/cjs/chunks/{bundle-BO1-msX2.js → bundle-BayeWNAn.js} +1 -1
- package/cjs/chunks/bundle-BayeWNAn.js.map +1 -0
- package/cjs/chunks/{bundle-YUHup5bR.js → bundle-BbCdMlQ_.js} +1 -1
- package/cjs/chunks/bundle-BbCdMlQ_.js.map +1 -0
- package/cjs/chunks/{bundle-DOmB6XkC.js → bundle-BbwD3Siw.js} +11 -19
- package/cjs/chunks/bundle-BbwD3Siw.js.map +1 -0
- package/cjs/chunks/{bundle-CXaKbxhR.js → bundle-BnbE0VPS.js} +5 -5
- package/cjs/chunks/bundle-BnbE0VPS.js.map +1 -0
- package/cjs/chunks/{bundle-2ATovRxE.js → bundle-BpGto-VH.js} +4 -4
- package/cjs/chunks/bundle-BpGto-VH.js.map +1 -0
- package/cjs/chunks/{bundle-r8oxykjl.js → bundle-BpsIsSmx.js} +10 -10
- package/cjs/chunks/bundle-BpsIsSmx.js.map +1 -0
- package/cjs/chunks/{bundle-P5AI1HkP.js → bundle-Bvo2lM-1.js} +1 -1
- package/cjs/chunks/bundle-Bvo2lM-1.js.map +1 -0
- package/cjs/chunks/{bundle-BXQqL0gU.js → bundle-BzvUKJmt.js} +1 -1
- package/cjs/chunks/bundle-BzvUKJmt.js.map +1 -0
- package/cjs/chunks/{bundle-d3t3a2vc.js → bundle-C2xspb1o.js} +1 -1
- package/cjs/chunks/bundle-C2xspb1o.js.map +1 -0
- package/cjs/chunks/{bundle-_D9xt-bK.js → bundle-CB6zogb0.js} +1 -1
- package/cjs/chunks/bundle-CB6zogb0.js.map +1 -0
- package/cjs/chunks/{bundle-C36gEKFp.js → bundle-CKh9vzRx.js} +2 -2
- package/cjs/chunks/bundle-CKh9vzRx.js.map +1 -0
- package/cjs/chunks/{bundle-B3Lu20wG.js → bundle-CLnbrskP.js} +1 -1
- package/cjs/chunks/bundle-CLnbrskP.js.map +1 -0
- package/cjs/chunks/{bundle-D1mv8BUm.js → bundle-CQiBbMVx.js} +1 -1
- package/cjs/chunks/bundle-CQiBbMVx.js.map +1 -0
- package/cjs/chunks/{bundle-QsOyTCMH.js → bundle-CSNvXpxZ.js} +5 -5
- package/cjs/chunks/{bundle-QsOyTCMH.js.map → bundle-CSNvXpxZ.js.map} +1 -1
- package/cjs/chunks/{bundle-Bpm6PJIl.js → bundle-CSYTynpK.js} +7 -7
- package/cjs/chunks/bundle-CSYTynpK.js.map +1 -0
- package/cjs/chunks/{bundle-DKspFBdx.js → bundle-CTuDU3Ox.js} +1 -1
- package/cjs/chunks/bundle-CTuDU3Ox.js.map +1 -0
- package/cjs/chunks/{bundle-BBdLSx_x.js → bundle-CWQ1BgO7.js} +3 -3
- package/cjs/chunks/{bundle-BBdLSx_x.js.map → bundle-CWQ1BgO7.js.map} +1 -1
- package/cjs/chunks/{bundle-urLzDFXK.js → bundle-CXJSL5lM.js} +1 -1
- package/cjs/chunks/bundle-CXJSL5lM.js.map +1 -0
- package/cjs/chunks/{bundle-CfRX00vQ.js → bundle-CdhGI7aS.js} +1 -1
- package/cjs/chunks/bundle-CdhGI7aS.js.map +1 -0
- package/cjs/chunks/{bundle-B7TedQKS.js → bundle-Cg05N2zR.js} +2 -2
- package/cjs/chunks/bundle-Cg05N2zR.js.map +1 -0
- package/cjs/chunks/{bundle-BElidCBa.js → bundle-Cg8PEl8Z.js} +5 -5
- package/cjs/chunks/bundle-Cg8PEl8Z.js.map +1 -0
- package/cjs/chunks/{bundle-CXDp72cg.js → bundle-CgL5Uk4d.js} +10 -10
- package/cjs/chunks/bundle-CgL5Uk4d.js.map +1 -0
- package/cjs/chunks/{bundle-CKC-b4Bw.js → bundle-Ch5MqKuj.js} +3 -3
- package/cjs/chunks/bundle-Ch5MqKuj.js.map +1 -0
- package/cjs/chunks/{bundle-DskQULoR.js → bundle-ClurePCq.js} +2 -2
- package/cjs/chunks/{bundle-DskQULoR.js.map → bundle-ClurePCq.js.map} +1 -1
- package/cjs/chunks/{bundle-DRT94QO5.js → bundle-CoywlMwU.js} +4 -4
- package/cjs/chunks/bundle-CoywlMwU.js.map +1 -0
- package/cjs/chunks/{bundle-DiER49ZF.js → bundle-CrXeRN3z.js} +1 -1
- package/cjs/chunks/bundle-CrXeRN3z.js.map +1 -0
- package/cjs/chunks/{bundle-D_RomXCz.js → bundle-Cwr3gYts.js} +1 -1
- package/cjs/chunks/bundle-Cwr3gYts.js.map +1 -0
- package/cjs/chunks/{bundle-BpwSTA3F.js → bundle-Cx8ZK18S.js} +1 -1
- package/cjs/chunks/bundle-Cx8ZK18S.js.map +1 -0
- package/cjs/chunks/{bundle-pVDX6G_q.js → bundle-CxvQDl7f.js} +3 -3
- package/cjs/chunks/bundle-CxvQDl7f.js.map +1 -0
- package/cjs/chunks/{bundle-QSgOdsGM.js → bundle-D-jz1czK.js} +1 -1
- package/cjs/chunks/bundle-D-jz1czK.js.map +1 -0
- package/cjs/chunks/{bundle-BBS4PSSm.js → bundle-D1zKgsap.js} +1 -1
- package/cjs/chunks/bundle-D1zKgsap.js.map +1 -0
- package/cjs/chunks/{bundle-BzBRoraS.js → bundle-D7119Tu2.js} +1 -1
- package/cjs/chunks/bundle-D7119Tu2.js.map +1 -0
- package/cjs/chunks/{bundle-DdS-jEnE.js → bundle-D9We6TyC.js} +3 -3
- package/cjs/chunks/bundle-D9We6TyC.js.map +1 -0
- package/cjs/chunks/{bundle-p3gZAjMS.js → bundle-DAyGXrwI.js} +1 -1
- package/cjs/chunks/bundle-DAyGXrwI.js.map +1 -0
- package/cjs/chunks/{bundle-DvduWWQk.js → bundle-DFkMChBA.js} +3 -3
- package/cjs/chunks/bundle-DFkMChBA.js.map +1 -0
- package/cjs/chunks/{bundle-Bc6y_vRE.js → bundle-DJqK0cd_.js} +1 -1
- package/cjs/chunks/bundle-DJqK0cd_.js.map +1 -0
- package/cjs/chunks/bundle-DKlmHmNQ.js +18 -0
- package/cjs/chunks/bundle-DKlmHmNQ.js.map +1 -0
- package/cjs/chunks/{bundle-Tx6vw4BY.js → bundle-DOGq2iE2.js} +3 -3
- package/cjs/chunks/{bundle-Tx6vw4BY.js.map → bundle-DOGq2iE2.js.map} +1 -1
- package/cjs/chunks/{bundle-DtroGUKx.js → bundle-DOxKg1gJ.js} +3 -3
- package/cjs/chunks/{bundle-DtroGUKx.js.map → bundle-DOxKg1gJ.js.map} +1 -1
- package/cjs/chunks/{bundle-B_BPxhrG.js → bundle-DSdcgyxt.js} +6 -6
- package/cjs/chunks/bundle-DSdcgyxt.js.map +1 -0
- package/cjs/chunks/{bundle-DuHJq3hs.js → bundle-DVbl1hzb.js} +10 -10
- package/cjs/chunks/bundle-DVbl1hzb.js.map +1 -0
- package/cjs/chunks/{bundle-tbYf0yOX.js → bundle-DVkhqKSm.js} +1 -1
- package/cjs/chunks/bundle-DVkhqKSm.js.map +1 -0
- package/cjs/chunks/{bundle-VIGS3UfE.js → bundle-DWckSTe6.js} +2 -2
- package/cjs/chunks/bundle-DWckSTe6.js.map +1 -0
- package/cjs/chunks/{bundle-BJD09510.js → bundle-DgnoCWfd.js} +6 -6
- package/cjs/chunks/bundle-DgnoCWfd.js.map +1 -0
- package/cjs/chunks/{bundle-CEcY1I0M.js → bundle-DhO0gH2r.js} +8 -8
- package/cjs/chunks/{bundle-CEcY1I0M.js.map → bundle-DhO0gH2r.js.map} +1 -1
- package/cjs/chunks/{bundle-DIfKPcm_.js → bundle-DisEhAL8.js} +1 -1
- package/cjs/chunks/bundle-DisEhAL8.js.map +1 -0
- package/cjs/chunks/{bundle-1FXPxsfD.js → bundle-Dpz7XwYt.js} +1 -1
- package/cjs/chunks/bundle-Dpz7XwYt.js.map +1 -0
- package/cjs/chunks/{bundle-DsDhHgmF.js → bundle-DwoFFaAV.js} +2 -2
- package/cjs/chunks/bundle-DwoFFaAV.js.map +1 -0
- package/cjs/chunks/{bundle-BXEAjuTY.js → bundle-Dx3tT3we.js} +1 -1
- package/cjs/chunks/bundle-Dx3tT3we.js.map +1 -0
- package/cjs/chunks/{bundle-DmPl_3ye.js → bundle-GM59fNjX.js} +2 -2
- package/cjs/chunks/bundle-GM59fNjX.js.map +1 -0
- package/cjs/chunks/{bundle-CoTIkHcU.js → bundle-H3u2mQH9.js} +4 -4
- package/cjs/chunks/bundle-H3u2mQH9.js.map +1 -0
- package/cjs/chunks/{bundle-CEiDcA9X.js → bundle-K7QJ3VXV.js} +342 -10
- package/cjs/chunks/bundle-K7QJ3VXV.js.map +1 -0
- package/cjs/chunks/{bundle-8uCH3epo.js → bundle-SRva1u80.js} +11 -11
- package/cjs/chunks/{bundle-8uCH3epo.js.map → bundle-SRva1u80.js.map} +1 -1
- package/cjs/chunks/{bundle-B-njjZtk.js → bundle-VgJs6iNk.js} +3 -3
- package/cjs/chunks/bundle-VgJs6iNk.js.map +1 -0
- package/cjs/chunks/{bundle-CbATYgnP.js → bundle-aBFt-WU0.js} +3 -3
- package/cjs/chunks/bundle-aBFt-WU0.js.map +1 -0
- package/cjs/chunks/{bundle-BNCNRHux.js → bundle-aBhNLFP5.js} +3 -3
- package/cjs/chunks/bundle-aBhNLFP5.js.map +1 -0
- package/cjs/chunks/{bundle-kzleXCM7.js → bundle-bD8iDUoV.js} +6 -6
- package/cjs/chunks/bundle-bD8iDUoV.js.map +1 -0
- package/cjs/chunks/{bundle-vxdq428L.js → bundle-hmNx7DKG.js} +1 -1
- package/cjs/chunks/bundle-hmNx7DKG.js.map +1 -0
- package/cjs/chunks/{bundle-IVxSH9N4.js → bundle-nzxSPIfX.js} +1 -1
- package/cjs/chunks/bundle-nzxSPIfX.js.map +1 -0
- package/cjs/chunks/{bundle-DeOn9o6F.js → bundle-oHyY26hz.js} +3 -3
- package/cjs/chunks/bundle-oHyY26hz.js.map +1 -0
- package/cjs/chunks/{bundle-CncTMWLv.js → bundle-rqZQtqiY.js} +4 -4
- package/cjs/chunks/{bundle-CncTMWLv.js.map → bundle-rqZQtqiY.js.map} +1 -1
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +81 -81
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/ui/Accordion.js +28 -36
- package/cjs/ui/Accordion.js.map +1 -1
- package/cjs/ui/AccordionGroup.js +47 -11
- package/cjs/ui/AccordionGroup.js.map +1 -1
- 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 +19 -18
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- 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 +14 -14
- 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 +45 -18
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +81 -81
- 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/modules/ChannelSettings/components/ModerationPanel/index.d.ts +1 -1
- package/types/ui/Accordion/Accordion.d.ts +10 -0
- package/types/ui/Accordion/AccordionGroup.d.ts +15 -5
- package/types/ui/Accordion/index.d.ts +6 -12
- 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 +28 -39
- package/ui/Accordion.js.map +1 -1
- package/ui/AccordionGroup.js +43 -12
- package/ui/AccordionGroup.js.map +1 -1
- 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 +19 -18
- package/ui/OGMessageItemBody.js.map +1 -1
- 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 +14 -14
- 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-BOrV2z_R.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 +0 -12
- 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 +0 -15
- 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-DOmB6XkC.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-K7QJ3VXV.js.map
|