@sendbird/uikit-react 3.15.13 → 3.15.14
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 +115 -270
- package/App.js.map +1 -1
- package/CHANGELOG.md +39 -0
- package/Channel/components/ChannelHeader.js +32 -40
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +77 -76
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +31 -35
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +6 -5
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +68 -67
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +48 -50
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageInputWrapper.js +48 -50
- package/Channel/components/MessageInputWrapper.js.map +1 -1
- package/Channel/components/MessageList.js +74 -70
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +31 -36
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +31 -41
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +11 -7
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +8 -7
- package/Channel/components/UnreadCount.js.map +1 -1
- package/Channel/context.js +71 -39
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +20 -22
- package/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/Channel/utils/compareMessagesForGrouping.js +16 -18
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/Channel/utils/getMessagePartsInfo.js +13 -14
- package/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/Channel.js +77 -76
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +214 -45
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +16 -11
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +205 -138
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +39 -41
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +17 -18
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +14 -27
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +212 -81
- package/ChannelList.js.map +1 -1
- package/ChannelSettings/components/ChannelProfile.js +28 -32
- package/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingMenuList.js +15 -28
- package/ChannelSettings/components/ChannelSettingMenuList.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsHeader.js +16 -10
- package/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsMenuItem.js +2 -2
- package/ChannelSettings/components/ChannelSettingsUI.js +49 -50
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +23 -31
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +25 -28
- package/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/ChannelSettings/components/ModerationPanel.js +33 -33
- package/ChannelSettings/components/UserListItem.js +26 -29
- package/ChannelSettings/components/UserListItem.js.map +1 -1
- package/ChannelSettings/components/UserPanel.js +35 -35
- package/ChannelSettings/context.js +11 -173
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings/hooks/useMenuList.js +33 -33
- package/ChannelSettings.js +52 -52
- package/CreateChannel/components/CreateChannelUI.js +214 -45
- package/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/CreateChannel/components/InviteUsers.js +215 -153
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +216 -85
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +221 -6
- package/CreateChannel/context.js.map +1 -1
- package/CreateChannel.js +213 -39
- package/CreateChannel.js.map +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +16 -24
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +9 -4
- package/CreateOpenChannel/context.js.map +1 -1
- package/CreateOpenChannel.js +16 -24
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +27 -35
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile/context.js +1 -1
- package/EditUserProfile.js +16 -25
- package/EditUserProfile.js.map +1 -1
- package/GroupChannel/components/FileViewer.js +34 -36
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +6 -5
- package/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/GroupChannel/components/GroupChannelHeader.js +31 -37
- package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/GroupChannel/components/GroupChannelUI.js +73 -70
- package/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/GroupChannel/components/Message.js +67 -63
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +49 -48
- package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/GroupChannel/components/MessageList.js +76 -71
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +32 -34
- package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/GroupChannel/components/SuggestedMentionList.js +18 -13
- package/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/GroupChannel/components/TypingIndicator.js +14 -10
- package/GroupChannel/components/TypingIndicator.js.map +1 -1
- package/GroupChannel/components/UnreadCount.js +8 -7
- package/GroupChannel/components/UnreadCount.js.map +1 -1
- package/GroupChannel/context.js +19 -513
- package/GroupChannel/context.js.map +1 -1
- package/GroupChannel.js +71 -68
- package/GroupChannel.js.map +1 -1
- package/GroupChannelList/components/AddGroupChannel.js +214 -45
- package/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListHeader.js +17 -13
- package/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListItem.js +39 -40
- package/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListUI.js +211 -115
- package/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/GroupChannelList/components/GroupChannelPreviewAction.js +18 -20
- package/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/GroupChannelList/context.js +13 -118
- package/GroupChannelList/context.js.map +1 -1
- package/GroupChannelList.js +209 -72
- package/GroupChannelList.js.map +1 -1
- package/MessageSearch/components/MessageSearchUI.js +24 -23
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +9 -280
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +24 -20
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -4
- package/OpenChannel/components/FrozenChannelNotification.js.map +1 -1
- package/OpenChannel/components/OpenChannelHeader.js +23 -29
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +31 -33
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +45 -44
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +54 -52
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +49 -48
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +21 -27
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +47 -46
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +20 -28
- package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/OpenChannelList/context.js +9 -5
- package/OpenChannelList/context.js.map +1 -1
- package/OpenChannelList.js +18 -26
- package/OpenChannelList.js.map +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +23 -31
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +24 -32
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +33 -34
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +37 -41
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +22 -23
- package/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/OpenChannelSettings/context.js +16 -35
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +27 -28
- package/OpenChannelSettings.js.map +1 -1
- package/SendbirdProvider.js +486 -914
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +71 -68
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +42 -39
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +8 -7
- package/Thread/components/ThreadHeader.js.map +1 -1
- package/Thread/components/ThreadList.js +67 -63
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +77 -76
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +67 -67
- package/Thread/components/ThreadUI.js +74 -72
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context/types.js +0 -1
- package/Thread/context/types.js.map +1 -1
- package/Thread/context.js +20 -1335
- package/Thread/context.js.map +1 -1
- package/Thread.js +70 -68
- package/Thread.js.map +1 -1
- package/VoicePlayer/context.js +9 -6
- package/VoicePlayer/context.js.map +1 -1
- package/VoicePlayer/useVoicePlayer.js +17 -22
- package/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/VoiceRecorder/context.js +127 -22
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +16 -22
- package/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/chunks/{bundle-MkyS3j4-.js → bundle--1cImOGd.js} +1 -1
- package/chunks/bundle--1cImOGd.js.map +1 -0
- package/chunks/{bundle-BBowfNDO.js → bundle-4w9Y7uxA.js} +1 -1
- package/chunks/bundle-4w9Y7uxA.js.map +1 -0
- package/chunks/{bundle-ryUmMhVP.js → bundle-B5_aP8LE.js} +1 -1
- package/chunks/{bundle-ryUmMhVP.js.map → bundle-B5_aP8LE.js.map} +1 -1
- package/chunks/{bundle-C7jYHvwG.js → bundle-B8Grfnrx.js} +2 -2
- package/chunks/{bundle-C7jYHvwG.js.map → bundle-B8Grfnrx.js.map} +1 -1
- package/chunks/{bundle-BP1DBRft.js → bundle-BCGcsRu2.js} +5 -5
- package/chunks/{bundle-BP1DBRft.js.map → bundle-BCGcsRu2.js.map} +1 -1
- package/chunks/{bundle-Crm9sJrW.js → bundle-BFJ4ctRk.js} +8 -8
- package/chunks/{bundle-Crm9sJrW.js.map → bundle-BFJ4ctRk.js.map} +1 -1
- package/chunks/{bundle-LWpHaUiZ.js → bundle-BGj68IUE.js} +9 -7
- package/chunks/bundle-BGj68IUE.js.map +1 -0
- package/chunks/{bundle-V4PrrT67.js → bundle-BQnpPj5l.js} +13 -13
- package/chunks/bundle-BQnpPj5l.js.map +1 -0
- package/chunks/{bundle-CDjVXDOc.js → bundle-BTxw_tIt.js} +1 -1
- package/chunks/bundle-BTxw_tIt.js.map +1 -0
- package/{cjs/chunks/bundle-DE5YH8Q-.js → chunks/bundle-BYOddwmS.js} +2 -32
- package/chunks/{bundle-CIN9yQRB.js.map → bundle-BYOddwmS.js.map} +1 -1
- package/chunks/{bundle-gQ2a8Eki.js → bundle-BYqblmEM.js} +4 -19
- package/chunks/bundle-BYqblmEM.js.map +1 -0
- package/chunks/bundle-Bc6hXWJF.js +190 -0
- package/chunks/bundle-Bc6hXWJF.js.map +1 -0
- package/chunks/{bundle-Dpdq7qeD.js → bundle-BciLDE6M.js} +1 -1
- package/chunks/bundle-BciLDE6M.js.map +1 -0
- package/chunks/bundle-BfEYq-V8.js +9 -0
- package/chunks/bundle-BfEYq-V8.js.map +1 -0
- package/chunks/bundle-BkZBhjs8.js +209 -0
- package/chunks/bundle-BkZBhjs8.js.map +1 -0
- package/chunks/{bundle-JYgg9UJ5.js → bundle-BoZwl2OL.js} +23 -23
- package/chunks/{bundle-JYgg9UJ5.js.map → bundle-BoZwl2OL.js.map} +1 -1
- package/chunks/{bundle-CMuwfYDs.js → bundle-BqREbgmR.js} +17 -17
- package/chunks/{bundle-CMuwfYDs.js.map → bundle-BqREbgmR.js.map} +1 -1
- package/chunks/{bundle-Dskg5qjd.js → bundle-BqjbaVLO.js} +1 -1
- package/chunks/bundle-BqjbaVLO.js.map +1 -0
- package/chunks/{bundle-DjgT6gu4.js → bundle-C3VM5eS8.js} +1 -1
- package/chunks/bundle-C3VM5eS8.js.map +1 -0
- package/chunks/bundle-C4OmfIXk.js +2920 -0
- package/chunks/bundle-C4OmfIXk.js.map +1 -0
- package/chunks/bundle-C5Pz6wMm.js +38 -0
- package/chunks/bundle-C5Pz6wMm.js.map +1 -0
- package/chunks/{bundle-Dvg19muo.js → bundle-C60pq62Y.js} +6 -6
- package/chunks/bundle-C60pq62Y.js.map +1 -0
- package/chunks/{bundle-LPNnEgGp.js → bundle-C6Hk5xTT.js} +1 -1
- package/chunks/bundle-C6Hk5xTT.js.map +1 -0
- package/chunks/{bundle-yLTgHCRG.js → bundle-C8TP-mjp.js} +2 -2
- package/chunks/{bundle-yLTgHCRG.js.map → bundle-C8TP-mjp.js.map} +1 -1
- package/chunks/{bundle-DLlgZtQy.js → bundle-CBOpPuMW.js} +5 -5
- package/chunks/{bundle-DLlgZtQy.js.map → bundle-CBOpPuMW.js.map} +1 -1
- package/chunks/{bundle-DUTyBaXr.js → bundle-CDcu1I4f.js} +7 -2
- package/chunks/bundle-CDcu1I4f.js.map +1 -0
- package/chunks/{bundle-BXE5p6Kc.js → bundle-CEE3GJSk.js} +14 -13
- package/chunks/{bundle-BXE5p6Kc.js.map → bundle-CEE3GJSk.js.map} +1 -1
- package/chunks/{bundle-BL_0pgq0.js → bundle-CF8V-ET_.js} +17 -16
- package/chunks/{bundle-BL_0pgq0.js.map → bundle-CF8V-ET_.js.map} +1 -1
- package/chunks/{bundle-DaKZZ13Y.js → bundle-CFXaZ31h.js} +1 -1
- package/chunks/bundle-CFXaZ31h.js.map +1 -0
- package/chunks/{bundle-D5-VMB5f.js → bundle-CGOt5cwH.js} +13 -12
- package/chunks/{bundle-D5-VMB5f.js.map → bundle-CGOt5cwH.js.map} +1 -1
- package/chunks/{bundle-eYHtE5ry.js → bundle-CJmXP56m.js} +3 -3
- package/chunks/bundle-CJmXP56m.js.map +1 -0
- package/chunks/{bundle-3aUfVJHj.js → bundle-CQAiZVNS.js} +8 -9
- package/chunks/bundle-CQAiZVNS.js.map +1 -0
- package/chunks/{bundle-2kzSicIw.js → bundle-CSDZhWAY.js} +3 -3
- package/chunks/{bundle-2kzSicIw.js.map → bundle-CSDZhWAY.js.map} +1 -1
- package/chunks/{bundle-4W3uBGU3.js → bundle-CTkGIdt8.js} +1 -1
- package/chunks/bundle-CTkGIdt8.js.map +1 -0
- package/chunks/bundle-CVS5Kfg_.js +1108 -0
- package/chunks/bundle-CVS5Kfg_.js.map +1 -0
- package/chunks/{bundle-DrHsf0sP.js → bundle-CYGowmbA.js} +4 -4
- package/chunks/bundle-CYGowmbA.js.map +1 -0
- package/chunks/{bundle-CZsW3iP9.js → bundle-CYXfk28D.js} +2 -2
- package/chunks/bundle-CYXfk28D.js.map +1 -0
- package/chunks/{bundle-BR3O1lZq.js → bundle-C_ngoQD_.js} +1 -1
- package/chunks/bundle-C_ngoQD_.js.map +1 -0
- package/chunks/{bundle-DYeeW5nS.js → bundle-CgLhYjm5.js} +7 -14
- package/chunks/bundle-CgLhYjm5.js.map +1 -0
- package/chunks/bundle-CinANGYQ.js +260 -0
- package/chunks/bundle-CinANGYQ.js.map +1 -0
- package/chunks/{bundle-P-vXuw8U.js → bundle-Cn2czFA-.js} +1 -1
- package/chunks/bundle-Cn2czFA-.js.map +1 -0
- package/chunks/{bundle-5-21Jk06.js → bundle-CrQTAewk.js} +16 -20
- package/chunks/bundle-CrQTAewk.js.map +1 -0
- package/chunks/{bundle-CJBs1h8R.js → bundle-CuP5OWwY.js} +16 -16
- package/chunks/{bundle-CJBs1h8R.js.map → bundle-CuP5OWwY.js.map} +1 -1
- package/chunks/{bundle-Er6ifVzM.js → bundle-CwHldvb8.js} +1 -1
- package/chunks/{bundle-Er6ifVzM.js.map → bundle-CwHldvb8.js.map} +1 -1
- package/chunks/bundle-D4BlmM5H.js +661 -0
- package/chunks/bundle-D4BlmM5H.js.map +1 -0
- package/chunks/{bundle-BE58pe-0.js → bundle-D6CBeFkE.js} +8 -8
- package/chunks/bundle-D6CBeFkE.js.map +1 -0
- package/chunks/{bundle-C1U8wE49.js → bundle-D8xAej93.js} +2 -2
- package/chunks/bundle-D8xAej93.js.map +1 -0
- package/chunks/{bundle-DCbJaskZ.js → bundle-DDZn5buS.js} +3 -2
- package/chunks/bundle-DDZn5buS.js.map +1 -0
- package/chunks/{bundle-Ci2fMtNJ.js → bundle-DED6q4Ti.js} +1 -2
- package/chunks/bundle-DED6q4Ti.js.map +1 -0
- package/chunks/{bundle-TGosz9cX.js → bundle-DS6Kt7YS.js} +1 -1
- package/chunks/bundle-DS6Kt7YS.js.map +1 -0
- package/chunks/{bundle-_-FiwcfQ.js → bundle-DT1VcdMs.js} +2 -2
- package/chunks/{bundle-_-FiwcfQ.js.map → bundle-DT1VcdMs.js.map} +1 -1
- package/chunks/{bundle-DvcOxLrR.js → bundle-DTYj03OD.js} +3 -3
- package/chunks/bundle-DTYj03OD.js.map +1 -0
- package/chunks/{bundle-C9dF4QVS.js → bundle-DXneAdAp.js} +1 -1
- package/chunks/bundle-DXneAdAp.js.map +1 -0
- package/chunks/{bundle-Dl9NVsui.js → bundle-DYBTopZK.js} +1 -1
- package/chunks/{bundle-Dl9NVsui.js.map → bundle-DYBTopZK.js.map} +1 -1
- package/chunks/{bundle-BP1CB0js.js → bundle-DZJe3dCn.js} +1 -1
- package/chunks/bundle-DZJe3dCn.js.map +1 -0
- package/chunks/{bundle-_sFl37fA.js → bundle-D_SH0JG9.js} +6 -7
- package/chunks/{bundle-CTE4m7bC.js.map → bundle-D_SH0JG9.js.map} +1 -1
- package/chunks/{bundle-Deel9XzY.js → bundle-D_tSqvX6.js} +3 -3
- package/chunks/bundle-D_tSqvX6.js.map +1 -0
- package/chunks/{bundle-BH8ohfFx.js → bundle-Dd7rgmeQ.js} +8 -8
- package/chunks/{bundle-BH8ohfFx.js.map → bundle-Dd7rgmeQ.js.map} +1 -1
- package/chunks/bundle-De-3zaYV.js +4 -0
- package/chunks/bundle-De-3zaYV.js.map +1 -0
- package/chunks/{bundle-CbEyAimK.js → bundle-DgFzcADJ.js} +4 -4
- package/chunks/bundle-DgFzcADJ.js.map +1 -0
- package/chunks/{bundle-BiPxcZtH.js → bundle-DgpfIrde.js} +1 -1
- package/chunks/bundle-DgpfIrde.js.map +1 -0
- package/chunks/{bundle-Bzt5nDi4.js → bundle-Dhf37wzM.js} +4 -4
- package/chunks/{bundle-Bzt5nDi4.js.map → bundle-Dhf37wzM.js.map} +1 -1
- package/chunks/{bundle-CTE4m7bC.js → bundle-DhzrKzt2.js} +5 -5
- package/{cjs/chunks/bundle-ChVeqDIG.js.map → chunks/bundle-DhzrKzt2.js.map} +1 -1
- package/chunks/{bundle-CzdrQ_Yq.js → bundle-Djq12iSf.js} +1 -1
- package/chunks/bundle-Djq12iSf.js.map +1 -0
- package/chunks/bundle-Dkmv9H3b.js +149 -0
- package/chunks/bundle-Dkmv9H3b.js.map +1 -0
- package/chunks/{bundle-k6zcGkBp.js → bundle-Do9UFGCD.js} +4 -4
- package/chunks/bundle-Do9UFGCD.js.map +1 -0
- package/chunks/{bundle-BMygDCXK.js → bundle-Dp_oW1ks.js} +1 -1
- package/chunks/bundle-Dp_oW1ks.js.map +1 -0
- package/chunks/{bundle-DWrM1EW4.js → bundle-DqR5RvpV.js} +4 -4
- package/chunks/bundle-DqR5RvpV.js.map +1 -0
- package/chunks/bundle-Dupd7RPQ.js +740 -0
- package/chunks/bundle-Dupd7RPQ.js.map +1 -0
- package/chunks/{bundle-BAQj91eb.js → bundle-DvsR4u7y.js} +9 -8
- package/chunks/bundle-DvsR4u7y.js.map +1 -0
- package/chunks/{bundle-DCX2mqfp.js → bundle-DwLTEVMK.js} +8 -22
- package/{cjs/chunks/bundle-DpyxKl7F.js.map → chunks/bundle-DwLTEVMK.js.map} +1 -1
- package/chunks/{bundle-90vsNbxW.js → bundle-Dx4-1s0A.js} +1 -1
- package/chunks/bundle-Dx4-1s0A.js.map +1 -0
- package/chunks/{bundle-BeUKuH7h.js → bundle-Dy1IZ181.js} +3 -3
- package/chunks/{bundle-BeUKuH7h.js.map → bundle-Dy1IZ181.js.map} +1 -1
- package/chunks/{bundle-DImSV9VW.js → bundle-HspRRkmy.js} +3 -3
- package/chunks/bundle-HspRRkmy.js.map +1 -0
- package/chunks/bundle-I25ah_Bv.js +257 -0
- package/chunks/{bundle-DCX2mqfp.js.map → bundle-I25ah_Bv.js.map} +1 -1
- package/chunks/{bundle-CDvvzlad.js → bundle-L60pJMdf.js} +6 -5
- package/chunks/bundle-L60pJMdf.js.map +1 -0
- package/chunks/bundle-LnGQMQVt.js +65 -0
- package/chunks/bundle-LnGQMQVt.js.map +1 -0
- package/chunks/{bundle-DkviGBGz.js → bundle-Ob7Cw3V-.js} +2 -2
- package/chunks/bundle-Ob7Cw3V-.js.map +1 -0
- package/chunks/{bundle-C6-Ix-Lk.js → bundle-QCH8CZT8.js} +8 -7
- package/{cjs/chunks/bundle-DUanoG7J.js.map → chunks/bundle-QCH8CZT8.js.map} +1 -1
- package/chunks/bundle-WJtiC3BL.js +12 -0
- package/chunks/bundle-WJtiC3BL.js.map +1 -0
- package/chunks/{bundle-Cq6wCLlD.js → bundle-WsWZ-SJW.js} +15 -15
- package/chunks/{bundle-Cq6wCLlD.js.map → bundle-WsWZ-SJW.js.map} +1 -1
- package/chunks/{bundle-pOZPN8hk.js → bundle-Y2KBbxRr.js} +1 -1
- package/chunks/{bundle-pOZPN8hk.js.map → bundle-Y2KBbxRr.js.map} +1 -1
- package/chunks/{bundle-BI2YMBw_.js → bundle-YbXrJewH.js} +60 -6
- package/chunks/bundle-YbXrJewH.js.map +1 -0
- package/chunks/{bundle-CcHvUx-a.js → bundle-fYlljM7o.js} +11 -10
- package/chunks/{bundle-CcHvUx-a.js.map → bundle-fYlljM7o.js.map} +1 -1
- package/chunks/{bundle-BFqR1X1Q.js → bundle-jhdKInOw.js} +1 -1
- package/chunks/bundle-jhdKInOw.js.map +1 -0
- package/chunks/bundle-l_QLKq1Y.js +24 -0
- package/chunks/bundle-l_QLKq1Y.js.map +1 -0
- package/chunks/{bundle-B2dhmpsj.js → bundle-nmIRAkKg.js} +14 -14
- package/chunks/{bundle-B2dhmpsj.js.map → bundle-nmIRAkKg.js.map} +1 -1
- package/chunks/{bundle-jw_xHmHg.js → bundle-tFnb24Id.js} +3 -2
- package/chunks/bundle-tFnb24Id.js.map +1 -0
- package/chunks/{bundle-DRyEkedz.js → bundle-uthnB1Zu.js} +28 -24
- package/chunks/{bundle-DRyEkedz.js.map → bundle-uthnB1Zu.js.map} +1 -1
- package/chunks/{bundle-DfDrbjM5.js → bundle-yKqHFFfz.js} +1 -1
- package/chunks/bundle-yKqHFFfz.js.map +1 -0
- package/chunks/{bundle-CLonR-iH.js → bundle-zOZq2Vpt.js} +8 -7
- package/chunks/{bundle-CLonR-iH.js.map → bundle-zOZq2Vpt.js.map} +1 -1
- package/cjs/App.js +116 -271
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +32 -40
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +77 -76
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +31 -35
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +6 -5
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +68 -67
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +48 -50
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageInputWrapper.js +48 -50
- package/cjs/Channel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +74 -70
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +31 -36
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +31 -41
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +11 -7
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +8 -7
- package/cjs/Channel/components/UnreadCount.js.map +1 -1
- package/cjs/Channel/context.js +153 -121
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +21 -23
- package/cjs/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +8 -8
- package/cjs/Channel/utils/compareMessagesForGrouping.js +16 -18
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/cjs/Channel/utils/getMessagePartsInfo.js +13 -14
- package/cjs/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/cjs/Channel.js +77 -76
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +216 -47
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +16 -11
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +206 -139
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +39 -41
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +17 -18
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +14 -27
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +213 -82
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +28 -32
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingMenuList.js +15 -28
- package/cjs/ChannelSettings/components/ChannelSettingMenuList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +16 -10
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsMenuItem.js +2 -2
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +48 -49
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +23 -31
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +25 -28
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/cjs/ChannelSettings/components/ModerationPanel.js +33 -33
- package/cjs/ChannelSettings/components/UserListItem.js +26 -29
- package/cjs/ChannelSettings/components/UserListItem.js.map +1 -1
- package/cjs/ChannelSettings/components/UserPanel.js +34 -34
- package/cjs/ChannelSettings/context.js +14 -175
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings/hooks/useMenuList.js +33 -33
- package/cjs/ChannelSettings.js +53 -53
- package/cjs/CreateChannel/components/CreateChannelUI.js +215 -46
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/cjs/CreateChannel/components/InviteUsers.js +216 -154
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +217 -86
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +225 -8
- package/cjs/CreateChannel/context.js.map +1 -1
- package/cjs/CreateChannel.js +214 -40
- package/cjs/CreateChannel.js.map +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +16 -24
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +9 -4
- package/cjs/CreateOpenChannel/context.js.map +1 -1
- package/cjs/CreateOpenChannel.js +16 -24
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +27 -35
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile/context.js +1 -1
- package/cjs/EditUserProfile.js +16 -25
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/GroupChannel/components/FileViewer.js +34 -36
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +6 -5
- package/cjs/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelHeader.js +32 -38
- package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelUI.js +74 -71
- package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/cjs/GroupChannel/components/Message.js +67 -63
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +48 -47
- package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/GroupChannel/components/MessageList.js +75 -70
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +32 -34
- package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/GroupChannel/components/SuggestedMentionList.js +18 -13
- package/cjs/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/GroupChannel/components/TypingIndicator.js +14 -10
- package/cjs/GroupChannel/components/TypingIndicator.js.map +1 -1
- package/cjs/GroupChannel/components/UnreadCount.js +8 -7
- package/cjs/GroupChannel/components/UnreadCount.js.map +1 -1
- package/cjs/GroupChannel/context.js +25 -520
- package/cjs/GroupChannel/context.js.map +1 -1
- package/cjs/GroupChannel.js +72 -69
- package/cjs/GroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/AddGroupChannel.js +216 -47
- package/cjs/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +17 -13
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +39 -40
- package/cjs/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +213 -117
- package/cjs/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +18 -20
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/cjs/GroupChannelList/context.js +19 -121
- package/cjs/GroupChannelList/context.js.map +1 -1
- package/cjs/GroupChannelList.js +211 -74
- package/cjs/GroupChannelList.js.map +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +24 -23
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +17 -285
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +25 -21
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -4
- package/cjs/OpenChannel/components/FrozenChannelNotification.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelHeader.js +23 -29
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +31 -33
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +45 -44
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +54 -52
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +49 -48
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +21 -27
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +47 -46
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +20 -28
- package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/cjs/OpenChannelList/context.js +9 -5
- package/cjs/OpenChannelList/context.js.map +1 -1
- package/cjs/OpenChannelList.js +18 -26
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +23 -31
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +24 -32
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +33 -34
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +37 -41
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +22 -23
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/cjs/OpenChannelSettings/context.js +16 -35
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +27 -28
- package/cjs/OpenChannelSettings.js.map +1 -1
- package/cjs/SendbirdProvider.js +486 -915
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +71 -68
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +42 -39
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +8 -7
- package/cjs/Thread/components/ThreadHeader.js.map +1 -1
- package/cjs/Thread/components/ThreadList.js +67 -63
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +77 -76
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +67 -67
- package/cjs/Thread/components/ThreadUI.js +74 -72
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context/types.js +0 -1
- package/cjs/Thread/context/types.js.map +1 -1
- package/cjs/Thread/context.js +26 -1337
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +71 -69
- package/cjs/Thread.js.map +1 -1
- package/cjs/VoicePlayer/context.js +9 -6
- package/cjs/VoicePlayer/context.js.map +1 -1
- package/cjs/VoicePlayer/useVoicePlayer.js +18 -23
- package/cjs/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/cjs/VoiceRecorder/context.js +130 -25
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +17 -23
- package/cjs/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/cjs/chunks/{bundle-BpThX3wu.js → bundle-4kO4nPo9.js} +5 -5
- package/{chunks/bundle-BI2YMBw_.js.map → cjs/chunks/bundle-4kO4nPo9.js.map} +1 -1
- package/cjs/chunks/bundle-AAO7jUU2.js +2932 -0
- package/cjs/chunks/bundle-AAO7jUU2.js.map +1 -0
- package/cjs/chunks/{bundle-ChDTEa9-.js → bundle-B-Smxy4L.js} +1 -1
- package/cjs/chunks/bundle-B-Smxy4L.js.map +1 -0
- package/cjs/chunks/{bundle-BA6Cum_9.js → bundle-B0UICprZ.js} +3 -3
- package/cjs/chunks/{bundle-BA6Cum_9.js.map → bundle-B0UICprZ.js.map} +1 -1
- package/cjs/chunks/{bundle-BOCivP7e.js → bundle-B1NPGl_q.js} +2 -2
- package/cjs/chunks/bundle-B1NPGl_q.js.map +1 -0
- package/cjs/chunks/{bundle-Bu4cmOCm.js → bundle-B2KoWBOt.js} +1 -1
- package/cjs/chunks/bundle-B2KoWBOt.js.map +1 -0
- package/cjs/chunks/{bundle-D30swLTX.js → bundle-B2xIXbEG.js} +3 -3
- package/cjs/chunks/bundle-B2xIXbEG.js.map +1 -0
- package/cjs/chunks/bundle-B7URG8PR.js +1119 -0
- package/cjs/chunks/bundle-B7URG8PR.js.map +1 -0
- package/cjs/chunks/{bundle-BOSyMutC.js → bundle-B9BY1g5d.js} +2 -2
- package/cjs/chunks/{bundle-BOSyMutC.js.map → bundle-B9BY1g5d.js.map} +1 -1
- package/cjs/chunks/{bundle-DpyxKl7F.js → bundle-BEbBkdwl.js} +16 -20
- package/{chunks/bundle-3aUfVJHj.js.map → cjs/chunks/bundle-BEbBkdwl.js.map} +1 -1
- package/cjs/chunks/{bundle-D6fimwV5.js → bundle-BFKxvlzn.js} +8 -8
- package/cjs/chunks/bundle-BFKxvlzn.js.map +1 -0
- package/cjs/chunks/{bundle-XANrnOqB.js → bundle-BIrmQghI.js} +1 -2
- package/cjs/chunks/bundle-BIrmQghI.js.map +1 -0
- package/cjs/chunks/{bundle-R7sVfaA9.js → bundle-BLQ7t6yE.js} +9 -8
- package/cjs/chunks/bundle-BLQ7t6yE.js.map +1 -0
- package/cjs/chunks/{bundle-BFFRQpby.js → bundle-BOb4newg.js} +8 -8
- package/cjs/chunks/bundle-BOb4newg.js.map +1 -0
- package/cjs/chunks/{bundle-Dq5LRxGL.js → bundle-BPGU6BH2.js} +11 -10
- package/cjs/chunks/bundle-BPGU6BH2.js.map +1 -0
- package/cjs/chunks/{bundle-DWfeFlxG.js → bundle-BPWJgESF.js} +1 -1
- package/cjs/chunks/bundle-BPWJgESF.js.map +1 -0
- package/cjs/chunks/{bundle-s1cLz65w.js → bundle-BUGwK1WK.js} +1 -1
- package/cjs/chunks/bundle-BUGwK1WK.js.map +1 -0
- package/{chunks/bundle-CIN9yQRB.js → cjs/chunks/bundle-BV7y6VDn.js} +3 -22
- package/cjs/chunks/{bundle-DE5YH8Q-.js.map → bundle-BV7y6VDn.js.map} +1 -1
- package/cjs/chunks/{bundle-D4NkDFD-.js → bundle-BWtBhW43.js} +11 -10
- package/cjs/chunks/{bundle-sZREfKpL.js.map → bundle-BWtBhW43.js.map} +1 -1
- package/cjs/chunks/{bundle-Bua7cUR6.js → bundle-BX4VESNC.js} +16 -16
- package/cjs/chunks/{bundle-Bua7cUR6.js.map → bundle-BX4VESNC.js.map} +1 -1
- package/cjs/chunks/{bundle-BL1sGjVd.js → bundle-BXvzT2m9.js} +1 -1
- package/cjs/chunks/bundle-BXvzT2m9.js.map +1 -0
- package/cjs/chunks/{bundle-n_Z6yPjx.js → bundle-BcgWN8U2.js} +6 -7
- package/cjs/chunks/bundle-BcgWN8U2.js.map +1 -0
- package/cjs/chunks/{bundle-BSfpBazH.js → bundle-Bd-cNaJc.js} +3 -3
- package/cjs/chunks/bundle-Bd-cNaJc.js.map +1 -0
- package/cjs/chunks/{bundle-LNbeYHuL.js → bundle-BeI9AozB.js} +24 -24
- package/cjs/chunks/{bundle-LNbeYHuL.js.map → bundle-BeI9AozB.js.map} +1 -1
- package/cjs/chunks/{bundle-bfd2VoyQ.js → bundle-BfhkRB7U.js} +26 -25
- package/cjs/chunks/{bundle-bfd2VoyQ.js.map → bundle-BfhkRB7U.js.map} +1 -1
- package/cjs/chunks/{bundle-JpIugjtL.js → bundle-BqAUDzGx.js} +3 -3
- package/cjs/chunks/bundle-BqAUDzGx.js.map +1 -0
- package/cjs/chunks/{bundle-QF_AmnwV.js → bundle-Bqahh-7Q.js} +8 -7
- package/cjs/chunks/{bundle-D4NkDFD-.js.map → bundle-Bqahh-7Q.js.map} +1 -1
- package/cjs/chunks/{bundle-m5OpCHlj.js → bundle-Bx1_cAVo.js} +8 -22
- package/cjs/chunks/bundle-Bx1_cAVo.js.map +1 -0
- package/cjs/chunks/{bundle-CuWm0vby.js → bundle-C1G0SKDq.js} +1 -1
- package/cjs/chunks/{bundle-CuWm0vby.js.map → bundle-C1G0SKDq.js.map} +1 -1
- package/cjs/chunks/{bundle-B3LOu7kN.js → bundle-C4t_1F0C.js} +4 -3
- package/cjs/chunks/bundle-C4t_1F0C.js.map +1 -0
- package/cjs/chunks/{bundle-C3_KfqSN.js → bundle-C8MACRPO.js} +1 -1
- package/cjs/chunks/bundle-C8MACRPO.js.map +1 -0
- package/cjs/chunks/{bundle-COBYaK8T.js → bundle-CBLzrxjV.js} +4 -4
- package/cjs/chunks/{bundle-COBYaK8T.js.map → bundle-CBLzrxjV.js.map} +1 -1
- package/cjs/chunks/{bundle-DX3sBwvt.js → bundle-CCXodf32.js} +29 -25
- package/{chunks/bundle-MyLy9AIu.js.map → cjs/chunks/bundle-CCXodf32.js.map} +1 -1
- package/cjs/chunks/{bundle-BZd597ep.js → bundle-CG2rv5Ij.js} +1 -1
- package/cjs/chunks/bundle-CG2rv5Ij.js.map +1 -0
- package/cjs/chunks/{bundle-DHPSwRDh.js → bundle-CLL-nCFU.js} +4 -4
- package/cjs/chunks/bundle-CLL-nCFU.js.map +1 -0
- package/cjs/chunks/bundle-CLXojdVj.js +761 -0
- package/cjs/chunks/bundle-CLXojdVj.js.map +1 -0
- package/cjs/chunks/bundle-CMpha6Ac.js +152 -0
- package/cjs/chunks/bundle-CMpha6Ac.js.map +1 -0
- package/cjs/chunks/{bundle-B2zio8XF.js → bundle-CPeZ4wPf.js} +1 -1
- package/cjs/chunks/bundle-CPeZ4wPf.js.map +1 -0
- package/cjs/chunks/{bundle-BbpZ1Xe-.js → bundle-CXHWkhsI.js} +2 -2
- package/cjs/chunks/{bundle-BbpZ1Xe-.js.map → bundle-CXHWkhsI.js.map} +1 -1
- package/cjs/chunks/{bundle-DYjhaLRW.js → bundle-CaNXlSAv.js} +9 -7
- package/cjs/chunks/bundle-CaNXlSAv.js.map +1 -0
- package/cjs/chunks/bundle-CcVLRLk8.js +217 -0
- package/{chunks/bundle-5-21Jk06.js.map → cjs/chunks/bundle-CcVLRLk8.js.map} +1 -1
- package/cjs/chunks/{bundle-vf5ayidG.js → bundle-CdtZVJ6y.js} +17 -17
- package/cjs/chunks/{bundle-vf5ayidG.js.map → bundle-CdtZVJ6y.js.map} +1 -1
- package/cjs/chunks/{bundle-Aw-PHA-I.js → bundle-CgCnWqE5.js} +1 -1
- package/cjs/chunks/bundle-CgCnWqE5.js.map +1 -0
- package/cjs/chunks/bundle-ChpcAmBg.js +40 -0
- package/cjs/chunks/bundle-ChpcAmBg.js.map +1 -0
- package/cjs/chunks/bundle-CpzjjrHg.js +201 -0
- package/cjs/chunks/bundle-CpzjjrHg.js.map +1 -0
- package/cjs/chunks/{bundle-Khwf-z37.js → bundle-Cq2Y8hPN.js} +9 -9
- package/cjs/chunks/bundle-Cq2Y8hPN.js.map +1 -0
- package/cjs/chunks/{bundle-nWxq3V_Q.js → bundle-CqFqMb6S.js} +3 -3
- package/cjs/chunks/bundle-CqFqMb6S.js.map +1 -0
- package/cjs/chunks/{bundle-YTiDKoON.js → bundle-CvQwksvR.js} +1 -1
- package/cjs/chunks/bundle-CvQwksvR.js.map +1 -0
- package/cjs/chunks/{bundle-CNvRk1Z6.js → bundle-Cwboa2Wr.js} +1 -1
- package/cjs/chunks/bundle-Cwboa2Wr.js.map +1 -0
- package/cjs/chunks/{bundle-D1slQ3hS.js → bundle-CxoFSSXv.js} +1 -1
- package/cjs/chunks/bundle-CxoFSSXv.js.map +1 -0
- package/cjs/chunks/{bundle-B5aEwfu1.js → bundle-CyQD5TkW.js} +1 -1
- package/cjs/chunks/bundle-CyQD5TkW.js.map +1 -0
- package/cjs/chunks/{bundle-S-XkXH4q.js → bundle-CzJX13Yl.js} +2 -2
- package/cjs/chunks/bundle-CzJX13Yl.js.map +1 -0
- package/cjs/chunks/{bundle-DkDRIPJe.js → bundle-CzdU1g3S.js} +6 -5
- package/cjs/chunks/bundle-CzdU1g3S.js.map +1 -0
- package/cjs/chunks/{bundle-XxCVYLKy.js → bundle-D2TXT2xX.js} +8 -9
- package/cjs/chunks/bundle-D2TXT2xX.js.map +1 -0
- package/cjs/chunks/{bundle-DuSS5Dmw.js → bundle-D4Il5UXX.js} +1 -1
- package/cjs/chunks/bundle-D4Il5UXX.js.map +1 -0
- package/cjs/chunks/{bundle-CfUeEOi0.js → bundle-D5wxUmg4.js} +14 -14
- package/cjs/chunks/bundle-D5wxUmg4.js.map +1 -0
- package/cjs/chunks/{bundle-DTD48j2K.js → bundle-D7YiKR6i.js} +7 -17
- package/cjs/chunks/bundle-D7YiKR6i.js.map +1 -0
- package/cjs/chunks/{bundle-DL3fuSPu.js → bundle-DAVPwIxJ.js} +1 -1
- package/cjs/chunks/bundle-DAVPwIxJ.js.map +1 -0
- package/cjs/chunks/bundle-DDNdw3A9.js +32 -0
- package/cjs/chunks/bundle-DDNdw3A9.js.map +1 -0
- package/cjs/chunks/bundle-DJOukqkN.js +672 -0
- package/cjs/chunks/bundle-DJOukqkN.js.map +1 -0
- package/cjs/chunks/{bundle-sZREfKpL.js → bundle-DK39NcVd.js} +7 -6
- package/{chunks/bundle-C6-Ix-Lk.js.map → cjs/chunks/bundle-DK39NcVd.js.map} +1 -1
- package/cjs/chunks/{bundle-D-kYFL1Z.js → bundle-DNjcGEfJ.js} +1 -1
- package/cjs/chunks/bundle-DNjcGEfJ.js.map +1 -0
- package/cjs/chunks/{bundle-Cq5LKFhE.js → bundle-DQNu-S6D.js} +7 -1
- package/cjs/chunks/bundle-DQNu-S6D.js.map +1 -0
- package/cjs/chunks/{bundle-Clz7RiTn.js → bundle-Da973hrK.js} +1 -1
- package/cjs/chunks/bundle-Da973hrK.js.map +1 -0
- package/cjs/chunks/{bundle-B0uIbH1T.js → bundle-DeyX1dvY.js} +4 -19
- package/cjs/chunks/bundle-DeyX1dvY.js.map +1 -0
- package/cjs/chunks/bundle-DlOFss3p.js +11 -0
- package/cjs/chunks/bundle-DlOFss3p.js.map +1 -0
- package/cjs/chunks/bundle-Dn0hi6OJ.js +7 -0
- package/cjs/chunks/bundle-Dn0hi6OJ.js.map +1 -0
- package/cjs/chunks/bundle-Dn7m9LzR.js +187 -0
- package/cjs/chunks/bundle-Dn7m9LzR.js.map +1 -0
- package/cjs/chunks/{bundle-B5-vaN7x.js → bundle-DptJHWLW.js} +17 -16
- package/cjs/chunks/{bundle-DeLEOQNO.js.map → bundle-DptJHWLW.js.map} +1 -1
- package/cjs/chunks/{bundle-BcIrmepz.js → bundle-DsZL8mH-.js} +1 -1
- package/cjs/chunks/bundle-DsZL8mH-.js.map +1 -0
- package/cjs/chunks/{bundle-A5UoPEJO.js → bundle-DwVBqZFY.js} +4 -4
- package/cjs/chunks/bundle-DwVBqZFY.js.map +1 -0
- package/cjs/chunks/{bundle-DzEGN4bG.js → bundle-EhtiN7UV.js} +1 -1
- package/cjs/chunks/bundle-EhtiN7UV.js.map +1 -0
- package/cjs/chunks/{bundle-WqJcr9PX.js → bundle-FJtjwZwh.js} +4 -4
- package/cjs/chunks/{bundle-WqJcr9PX.js.map → bundle-FJtjwZwh.js.map} +1 -1
- package/cjs/chunks/{bundle-BBgc3koD.js → bundle-G4J-OWth.js} +15 -14
- package/cjs/chunks/{bundle-BBgc3koD.js.map → bundle-G4J-OWth.js.map} +1 -1
- package/cjs/chunks/{bundle-qMxPIH0k.js → bundle-L8U6SolV.js} +6 -6
- package/cjs/chunks/bundle-L8U6SolV.js.map +1 -0
- package/cjs/chunks/bundle-LI9JjqG2.js +263 -0
- package/cjs/chunks/bundle-LI9JjqG2.js.map +1 -0
- package/cjs/chunks/{bundle-DeLEOQNO.js → bundle-THfLGJxy.js} +5 -5
- package/cjs/chunks/{bundle-B5-vaN7x.js.map → bundle-THfLGJxy.js.map} +1 -1
- package/cjs/chunks/{bundle-Bhf_RRfA.js → bundle-UKqK7ytZ.js} +1 -1
- package/cjs/chunks/bundle-UKqK7ytZ.js.map +1 -0
- package/cjs/chunks/{bundle-ChVeqDIG.js → bundle-Y1fPW7ES.js} +13 -13
- package/{chunks/bundle-_sFl37fA.js.map → cjs/chunks/bundle-Y1fPW7ES.js.map} +1 -1
- package/cjs/chunks/bundle-YeW89zsR.js +76 -0
- package/cjs/chunks/bundle-YeW89zsR.js.map +1 -0
- package/cjs/chunks/{bundle-DmO3Qtot.js → bundle-aMt_60_o.js} +1 -1
- package/cjs/chunks/{bundle-DmO3Qtot.js.map → bundle-aMt_60_o.js.map} +1 -1
- package/cjs/chunks/{bundle-Bc_sQb3i.js → bundle-de2DEYPS.js} +5 -5
- package/cjs/chunks/bundle-de2DEYPS.js.map +1 -0
- package/cjs/chunks/{bundle-BAF8GaDh.js → bundle-dfqZUdij.js} +1 -1
- package/cjs/chunks/bundle-dfqZUdij.js.map +1 -0
- package/cjs/chunks/bundle-j0RMwIZ5.js +270 -0
- package/cjs/chunks/bundle-j0RMwIZ5.js.map +1 -0
- package/cjs/chunks/{bundle-DHZYT5M_.js → bundle-kPv1Olqr.js} +1 -1
- package/cjs/chunks/bundle-kPv1Olqr.js.map +1 -0
- package/cjs/chunks/{bundle-DUanoG7J.js → bundle-nPNv9ATU.js} +5 -5
- package/cjs/chunks/bundle-nPNv9ATU.js.map +1 -0
- package/cjs/chunks/{bundle-BfjugOIp.js → bundle-swpo7Z_P.js} +4 -4
- package/cjs/chunks/bundle-swpo7Z_P.js.map +1 -0
- package/cjs/chunks/{bundle-DVc6YedH.js → bundle-vEi_Cfco.js} +4 -4
- package/cjs/chunks/bundle-vEi_Cfco.js.map +1 -0
- package/cjs/chunks/{bundle-BloKh_k7.js → bundle-yU9Mr2pS.js} +1 -1
- package/cjs/chunks/bundle-yU9Mr2pS.js.map +1 -0
- package/cjs/chunks/{bundle-6UD0H-nz.js → bundle-ys65nyET.js} +14 -14
- package/cjs/chunks/bundle-ys65nyET.js.map +1 -0
- package/cjs/chunks/{bundle-ByQJ042a.js → bundle-za5uPkdP.js} +1 -1
- package/cjs/chunks/bundle-za5uPkdP.js.map +1 -0
- package/cjs/hooks/useConnectionState.js +8 -5
- package/cjs/hooks/useConnectionState.js.map +1 -1
- package/cjs/hooks/useLocalization.js +4 -3
- package/cjs/hooks/useLocalization.js.map +1 -1
- package/cjs/hooks/useModal.js +56 -24
- package/cjs/hooks/useModal.js.map +1 -1
- package/cjs/index.js +119 -127
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/ui/Accordion.js +2 -2
- package/cjs/ui/AccordionGroup.js +1 -1
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +5 -4
- package/cjs/ui/Badge.js.map +1 -1
- package/cjs/ui/BottomSheet.js +19 -25
- package/cjs/ui/BottomSheet.js.map +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +5 -5
- package/cjs/ui/ConnectionStatus.js +6 -5
- package/cjs/ui/ConnectionStatus.js.map +1 -1
- package/cjs/ui/ContextMenu.js +16 -14
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +27 -28
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +10 -8
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +20 -16
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +22 -23
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Header.js +6 -6
- 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 +4 -4
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +2 -2
- package/cjs/ui/MentionLabel.js +24 -27
- package/cjs/ui/MentionLabel.js.map +1 -1
- package/cjs/ui/MentionUserLabel.js +2 -2
- package/cjs/ui/MessageContent.js +48 -45
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +15 -22
- package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/cjs/ui/MessageFeedbackModal.js +15 -22
- package/cjs/ui/MessageFeedbackModal.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +26 -22
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +15 -13
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +16 -14
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageMenu.js +17 -15
- package/cjs/ui/MessageMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +17 -15
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +12 -11
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +15 -13
- package/cjs/ui/MessageStatus.js.map +1 -1
- package/cjs/ui/MessageTemplate.js +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +15 -21
- package/cjs/ui/MobileFeedbackMenu.js.map +1 -1
- package/cjs/ui/MobileMenu.js +21 -23
- package/cjs/ui/MobileMenu.js.map +1 -1
- package/cjs/ui/Modal.js +13 -21
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +24 -26
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -7
- package/cjs/ui/OpenChannelAvatar.js.map +1 -1
- package/cjs/ui/OpenchannelConversationHeader.js +8 -7
- package/cjs/ui/OpenchannelConversationHeader.js.map +1 -1
- package/cjs/ui/OpenchannelFileMessage.js +24 -26
- package/cjs/ui/OpenchannelFileMessage.js.map +1 -1
- package/cjs/ui/OpenchannelOGMessage.js +26 -28
- package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +23 -25
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/cjs/ui/OpenchannelUserMessage.js +25 -27
- package/cjs/ui/OpenchannelUserMessage.js.map +1 -1
- package/cjs/ui/PlaceHolder.js +6 -5
- package/cjs/ui/PlaceHolder.js.map +1 -1
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/ProgressBar.js +1 -1
- package/cjs/ui/QuoteMessage.js +12 -10
- package/cjs/ui/QuoteMessage.js.map +1 -1
- package/cjs/ui/QuoteMessageInput.js +12 -10
- package/cjs/ui/QuoteMessageInput.js.map +1 -1
- 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 +21 -17
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +24 -27
- package/cjs/ui/TextMessageItemBody.js.map +1 -1
- package/cjs/ui/ThreadReplies.js +8 -7
- package/cjs/ui/ThreadReplies.js.map +1 -1
- package/cjs/ui/ThumbnailMessageItemBody.js +10 -9
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Toggle.js +8 -5
- package/cjs/ui/Toggle.js.map +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 +10 -8
- package/cjs/ui/UnknownMessageItemBody.js.map +1 -1
- package/cjs/ui/UserListItem.js +28 -31
- package/cjs/ui/UserListItem.js.map +1 -1
- package/cjs/ui/UserListItemMenu.js +17 -15
- package/cjs/ui/UserListItemMenu.js.map +1 -1
- package/cjs/ui/UserProfile.js +19 -32
- package/cjs/ui/UserProfile.js.map +1 -1
- package/cjs/ui/VoiceMessageInput.js +9 -8
- package/cjs/ui/VoiceMessageInput.js.map +1 -1
- package/cjs/ui/VoiceMessageItemBody.js +16 -21
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/Word.js +21 -24
- package/cjs/ui/Word.js.map +1 -1
- package/cjs/utils/message/isVoiceMessage.js +6 -5
- package/cjs/utils/message/isVoiceMessage.js.map +1 -1
- package/dist/index.css +113 -113
- package/hooks/useConnectionState.js +8 -5
- package/hooks/useConnectionState.js.map +1 -1
- package/hooks/useLocalization.js +4 -3
- package/hooks/useLocalization.js.map +1 -1
- package/hooks/useModal.js +55 -22
- package/hooks/useModal.js.map +1 -1
- package/index.js +116 -125
- package/index.js.map +1 -1
- package/package.json +15 -33
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +3 -3
- package/types/hooks/useDeepCompareEffect.d.ts +24 -0
- package/types/hooks/useStore.d.ts +14 -0
- package/types/hooks/useThrottleCallback.d.ts +0 -7
- package/types/index.d.ts +3 -2
- package/types/lib/MediaQueryContext.d.ts +1 -1
- package/types/lib/Sendbird/context/SendbirdContext.d.ts +18 -0
- package/types/lib/Sendbird/context/SendbirdProvider.d.ts +4 -0
- package/types/lib/Sendbird/context/hooks/useSendbird.d.ts +32 -0
- package/types/lib/Sendbird/context/hooks/useSendbirdStateContext.d.ts +3 -0
- package/types/lib/Sendbird/context/initialState.d.ts +2 -0
- package/types/lib/Sendbird/index.d.ts +16 -0
- package/types/lib/{types.d.ts → Sendbird/types.d.ts} +167 -102
- package/types/lib/Sendbird/utils.d.ts +28 -0
- package/types/lib/emojiManager.d.ts +2 -3
- package/types/lib/hooks/schedulerFactory.d.ts +1 -1
- package/types/lib/hooks/useMarkAsDeliveredScheduler.d.ts +1 -1
- package/types/lib/hooks/useMarkAsReadScheduler.d.ts +1 -1
- package/types/lib/hooks/useMessageTemplateUtils.d.ts +10 -5
- package/types/lib/selectors.d.ts +37 -37
- package/types/lib/utils/uikitConfigMapper.d.ts +1 -1
- package/types/modules/App/types.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useGetChannel.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleReconnect.d.ts +1 -2
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +1 -2
- package/types/modules/Channel/context/hooks/useHandleUploadFiles.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollDownCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendMultipleFilesMessage.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useToggleReactionCallback.d.ts +16 -8
- package/types/modules/Channel/context/utils.d.ts +1 -1
- package/types/modules/ChannelList/context/hooks/useActiveChannelUrl.d.ts +1 -2
- package/types/modules/ChannelList/context/hooks/useFetchChannelList.d.ts +1 -1
- package/types/modules/ChannelList/utils.d.ts +1 -1
- package/types/modules/ChannelSettings/components/ChannelSettingsUI/index.d.ts +2 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/BannedUsersModal.d.ts +1 -1
- package/types/modules/ChannelSettings/components/ModerationPanel/MutedMembersModal.d.ts +1 -1
- package/types/modules/ChannelSettings/context/ChannelSettingsProvider.d.ts +23 -38
- package/types/modules/ChannelSettings/context/hooks/useChannelHandler.d.ts +10 -0
- package/types/modules/ChannelSettings/context/hooks/useSetChannel.d.ts +10 -0
- package/types/modules/ChannelSettings/context/index.d.ts +3 -0
- package/types/modules/ChannelSettings/context/types.d.ts +40 -0
- package/types/modules/ChannelSettings/context/useChannelSettings.d.ts +11 -0
- package/types/modules/ChannelSettings/index.d.ts +1 -1
- package/types/modules/CreateChannel/components/InviteUsers/utils.d.ts +1 -1
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +36 -9
- package/types/modules/CreateChannel/context/index.d.ts +2 -0
- package/types/modules/CreateChannel/context/useCreateChannel.d.ts +11 -0
- package/types/modules/CreateChannel/utils.d.ts +1 -1
- package/types/modules/CreateOpenChannel/context/CreateOpenChannelProvider.d.ts +1 -2
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageList/getMessagePartsInfo.d.ts +3 -1
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +64 -55
- package/types/modules/GroupChannel/context/hooks/useGroupChannel.d.ts +23 -0
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +4 -10
- package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +0 -2
- package/types/modules/GroupChannel/context/index.d.ts +2 -0
- package/types/modules/GroupChannel/context/types.d.ts +80 -0
- package/types/modules/GroupChannel/index.d.ts +1 -1
- package/types/modules/GroupChannelList/context/GroupChannelListProvider.d.ts +36 -4
- package/types/modules/GroupChannelList/context/index.d.ts +2 -0
- package/types/modules/GroupChannelList/context/useGroupChannelList.d.ts +8 -0
- package/types/modules/Message/hooks/useDirtyGetMentions.d.ts +1 -1
- package/types/modules/MessageSearch/context/MessageSearchProvider.d.ts +51 -24
- package/types/modules/MessageSearch/context/hooks/useGetSearchedMessages.d.ts +2 -8
- package/types/modules/MessageSearch/context/hooks/useMessageSearch.d.ts +21 -0
- package/types/modules/MessageSearch/context/hooks/useScrollCallback.d.ts +2 -9
- package/types/modules/MessageSearch/context/hooks/useSearchStringEffect.d.ts +1 -7
- package/types/modules/MessageSearch/context/hooks/useSetChannel.d.ts +2 -7
- package/types/modules/MessageSearch/context/index.d.ts +2 -0
- package/types/modules/OpenChannel/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useFileUploadCallback.d.ts +1 -3
- package/types/modules/OpenChannel/context/hooks/useHandleChannelEvents.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useInitialMessagesFetch.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useScrollCallback.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useSendMessageCallback.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useSetChannel.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useUpdateMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/utils.d.ts +1 -1
- package/types/modules/OpenChannelList/context/OpenChannelListInterfaces.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/createChannelListQuery.d.ts +1 -2
- package/types/modules/OpenChannelList/context/hooks/useFetchNextCallback.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useRefreshOpenChannelList.d.ts +1 -2
- package/types/modules/OpenChannelList/context/hooks/useSetupOpenChannelList.d.ts +1 -2
- package/types/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.d.ts +1 -1
- package/types/modules/Thread/context/ThreadProvider.d.ts +110 -22
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useGetAllEmoji.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useGetChannel.d.ts +2 -7
- package/types/modules/Thread/context/hooks/useGetParentMessage.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useHandleChannelEvents.d.ts +2 -4
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -3
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +5 -3
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/hooks/useSetCurrentUserId.d.ts +6 -0
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +14 -7
- package/types/modules/Thread/context/hooks/useToggleReactionsCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +4 -3
- package/types/modules/Thread/context/index.d.ts +2 -0
- package/types/modules/Thread/context/useThread.d.ts +64 -0
- package/types/modules/Thread/types.d.ts +8 -0
- package/types/ui/FileMessageItemBody/index.d.ts +1 -1
- package/types/ui/MessageContent/MessageBody/index.d.ts +3 -3
- package/types/ui/MessageContent/index.d.ts +1 -1
- package/types/ui/MessageInput/messageInputUtils.d.ts +3 -3
- package/types/ui/MultipleFilesMessageItemBody/index.d.ts +1 -1
- package/types/utils/color.d.ts +0 -1
- package/types/utils/compressImages.d.ts +1 -2
- package/types/utils/getIsReactionEnabled.d.ts +2 -2
- package/types/utils/index.d.ts +2 -26
- package/types/utils/messages.d.ts +7 -6
- package/types/utils/storeManager.d.ts +10 -0
- package/types/utils/utils.d.ts +5 -0
- package/ui/Accordion.js +2 -2
- package/ui/AccordionGroup.js +1 -1
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -4
- package/ui/Badge.js.map +1 -1
- package/ui/BottomSheet.js +19 -25
- package/ui/BottomSheet.js.map +1 -1
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -5
- package/ui/ConnectionStatus.js.map +1 -1
- package/ui/ContextMenu.js +16 -14
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +26 -27
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FallbackTemplateMessageItemBody.tsx.js +10 -8
- package/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/ui/FileMessageItemBody.js +20 -16
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +22 -23
- package/ui/FileViewer.js.map +1 -1
- package/ui/Header.js +6 -6
- 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 +4 -4
- package/ui/Loader.js +2 -2
- package/ui/LoadingTemplateMessageItemBody.tsx.js +2 -2
- package/ui/MentionLabel.js +24 -27
- package/ui/MentionLabel.js.map +1 -1
- package/ui/MentionUserLabel.js +2 -2
- package/ui/MessageContent.js +48 -45
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +15 -22
- package/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/ui/MessageFeedbackModal.js +15 -22
- package/ui/MessageFeedbackModal.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +24 -20
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +15 -13
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +16 -14
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageMenu.js +17 -15
- package/ui/MessageMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +17 -15
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +12 -11
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +15 -13
- package/ui/MessageStatus.js.map +1 -1
- package/ui/MessageTemplate.js +1 -1
- package/ui/MobileFeedbackMenu.js +15 -21
- package/ui/MobileFeedbackMenu.js.map +1 -1
- package/ui/MobileMenu.js +21 -23
- package/ui/MobileMenu.js.map +1 -1
- package/ui/Modal.js +13 -21
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +24 -26
- package/ui/OGMessageItemBody.js.map +1 -1
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -7
- package/ui/OpenChannelAvatar.js.map +1 -1
- package/ui/OpenchannelConversationHeader.js +8 -7
- package/ui/OpenchannelConversationHeader.js.map +1 -1
- package/ui/OpenchannelFileMessage.js +24 -26
- package/ui/OpenchannelFileMessage.js.map +1 -1
- package/ui/OpenchannelOGMessage.js +26 -28
- package/ui/OpenchannelOGMessage.js.map +1 -1
- package/ui/OpenchannelThumbnailMessage.js +23 -25
- package/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/ui/OpenchannelUserMessage.js +25 -27
- package/ui/OpenchannelUserMessage.js.map +1 -1
- package/ui/PlaceHolder.js +6 -5
- package/ui/PlaceHolder.js.map +1 -1
- package/ui/PlaybackTime.js +3 -3
- package/ui/ProgressBar.js +1 -1
- package/ui/QuoteMessage.js +12 -10
- package/ui/QuoteMessage.js.map +1 -1
- package/ui/QuoteMessageInput.js +12 -10
- package/ui/QuoteMessageInput.js.map +1 -1
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TemplateMessageItemBody.js +21 -17
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +24 -27
- package/ui/TextMessageItemBody.js.map +1 -1
- package/ui/ThreadReplies.js +8 -7
- package/ui/ThreadReplies.js.map +1 -1
- package/ui/ThumbnailMessageItemBody.js +10 -9
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Toggle.js +8 -5
- package/ui/Toggle.js.map +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +10 -8
- package/ui/UnknownMessageItemBody.js.map +1 -1
- package/ui/UserListItem.js +28 -31
- package/ui/UserListItem.js.map +1 -1
- package/ui/UserListItemMenu.js +18 -16
- package/ui/UserListItemMenu.js.map +1 -1
- package/ui/UserProfile.js +19 -32
- package/ui/UserProfile.js.map +1 -1
- package/ui/VoiceMessageInput.js +9 -8
- package/ui/VoiceMessageInput.js.map +1 -1
- package/ui/VoiceMessageItemBody.js +16 -21
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/Word.js +21 -24
- package/ui/Word.js.map +1 -1
- package/utils/message/isVoiceMessage.js +6 -5
- package/utils/message/isVoiceMessage.js.map +1 -1
- package/chunks/bundle-4W3uBGU3.js.map +0 -1
- package/chunks/bundle-90vsNbxW.js.map +0 -1
- package/chunks/bundle-BAQj91eb.js.map +0 -1
- package/chunks/bundle-BBowfNDO.js.map +0 -1
- package/chunks/bundle-BE58pe-0.js.map +0 -1
- package/chunks/bundle-BFqR1X1Q.js.map +0 -1
- package/chunks/bundle-BMygDCXK.js.map +0 -1
- package/chunks/bundle-BP1CB0js.js.map +0 -1
- package/chunks/bundle-BR3O1lZq.js.map +0 -1
- package/chunks/bundle-BWM5xqIs.js +0 -57
- package/chunks/bundle-BWM5xqIs.js.map +0 -1
- package/chunks/bundle-BiPxcZtH.js.map +0 -1
- package/chunks/bundle-Bk5X1tDl.js +0 -8
- package/chunks/bundle-Bk5X1tDl.js.map +0 -1
- package/chunks/bundle-C1U8wE49.js.map +0 -1
- package/chunks/bundle-C9dF4QVS.js.map +0 -1
- package/chunks/bundle-CB5ZFhrW.js +0 -9
- package/chunks/bundle-CB5ZFhrW.js.map +0 -1
- package/chunks/bundle-CDjVXDOc.js.map +0 -1
- package/chunks/bundle-CDvvzlad.js.map +0 -1
- package/chunks/bundle-CHzQIw7_.js +0 -43
- package/chunks/bundle-CHzQIw7_.js.map +0 -1
- package/chunks/bundle-CZsW3iP9.js.map +0 -1
- package/chunks/bundle-CbEyAimK.js.map +0 -1
- package/chunks/bundle-Ci2fMtNJ.js.map +0 -1
- package/chunks/bundle-Ctm0h0rU.js +0 -12
- package/chunks/bundle-Ctm0h0rU.js.map +0 -1
- package/chunks/bundle-Cu4bYcMG.js +0 -67
- package/chunks/bundle-Cu4bYcMG.js.map +0 -1
- package/chunks/bundle-CzdrQ_Yq.js.map +0 -1
- package/chunks/bundle-DCbJaskZ.js.map +0 -1
- package/chunks/bundle-DImSV9VW.js.map +0 -1
- package/chunks/bundle-DUTyBaXr.js.map +0 -1
- package/chunks/bundle-DWrM1EW4.js.map +0 -1
- package/chunks/bundle-DYeeW5nS.js.map +0 -1
- package/chunks/bundle-DaKZZ13Y.js.map +0 -1
- package/chunks/bundle-Deel9XzY.js.map +0 -1
- package/chunks/bundle-DfDrbjM5.js.map +0 -1
- package/chunks/bundle-DjgT6gu4.js.map +0 -1
- package/chunks/bundle-DkviGBGz.js.map +0 -1
- package/chunks/bundle-Dpdq7qeD.js.map +0 -1
- package/chunks/bundle-DrHsf0sP.js.map +0 -1
- package/chunks/bundle-Dskg5qjd.js.map +0 -1
- package/chunks/bundle-DtycZWOo.js +0 -20
- package/chunks/bundle-DtycZWOo.js.map +0 -1
- package/chunks/bundle-DvcOxLrR.js.map +0 -1
- package/chunks/bundle-Dvg19muo.js.map +0 -1
- package/chunks/bundle-LPNnEgGp.js.map +0 -1
- package/chunks/bundle-LWpHaUiZ.js.map +0 -1
- package/chunks/bundle-MkyS3j4-.js.map +0 -1
- package/chunks/bundle-MrMJJXf2.js +0 -34
- package/chunks/bundle-MrMJJXf2.js.map +0 -1
- package/chunks/bundle-MyLy9AIu.js +0 -367
- package/chunks/bundle-P-vXuw8U.js.map +0 -1
- package/chunks/bundle-TGosz9cX.js.map +0 -1
- package/chunks/bundle-V4PrrT67.js.map +0 -1
- package/chunks/bundle-eYHtE5ry.js.map +0 -1
- package/chunks/bundle-gQ2a8Eki.js.map +0 -1
- package/chunks/bundle-jw_xHmHg.js.map +0 -1
- package/chunks/bundle-k6zcGkBp.js.map +0 -1
- package/cjs/chunks/bundle-4i5ybSGL.js +0 -107
- package/cjs/chunks/bundle-4i5ybSGL.js.map +0 -1
- package/cjs/chunks/bundle-6UD0H-nz.js.map +0 -1
- package/cjs/chunks/bundle-A5UoPEJO.js.map +0 -1
- package/cjs/chunks/bundle-Aw-PHA-I.js.map +0 -1
- package/cjs/chunks/bundle-B0uIbH1T.js.map +0 -1
- package/cjs/chunks/bundle-B2zio8XF.js.map +0 -1
- package/cjs/chunks/bundle-B3LOu7kN.js.map +0 -1
- package/cjs/chunks/bundle-B5aEwfu1.js.map +0 -1
- package/cjs/chunks/bundle-BAF8GaDh.js.map +0 -1
- package/cjs/chunks/bundle-BFFRQpby.js.map +0 -1
- package/cjs/chunks/bundle-BFPhV1oD.js +0 -10
- package/cjs/chunks/bundle-BFPhV1oD.js.map +0 -1
- package/cjs/chunks/bundle-BFXyNnQ0.js +0 -11
- package/cjs/chunks/bundle-BFXyNnQ0.js.map +0 -1
- package/cjs/chunks/bundle-BL1sGjVd.js.map +0 -1
- package/cjs/chunks/bundle-BOCivP7e.js.map +0 -1
- package/cjs/chunks/bundle-BSfpBazH.js.map +0 -1
- package/cjs/chunks/bundle-BUuEhLl0.js +0 -26
- package/cjs/chunks/bundle-BUuEhLl0.js.map +0 -1
- package/cjs/chunks/bundle-BZd597ep.js.map +0 -1
- package/cjs/chunks/bundle-BcIrmepz.js.map +0 -1
- package/cjs/chunks/bundle-Bc_sQb3i.js.map +0 -1
- package/cjs/chunks/bundle-BfjugOIp.js.map +0 -1
- package/cjs/chunks/bundle-Bhf_RRfA.js.map +0 -1
- package/cjs/chunks/bundle-BloKh_k7.js.map +0 -1
- package/cjs/chunks/bundle-BpThX3wu.js.map +0 -1
- package/cjs/chunks/bundle-Bu4cmOCm.js.map +0 -1
- package/cjs/chunks/bundle-ByQJ042a.js.map +0 -1
- package/cjs/chunks/bundle-C3_KfqSN.js.map +0 -1
- package/cjs/chunks/bundle-CNvRk1Z6.js.map +0 -1
- package/cjs/chunks/bundle-CT3qZJLT.js +0 -36
- package/cjs/chunks/bundle-CT3qZJLT.js.map +0 -1
- package/cjs/chunks/bundle-CYAm3mYC.js +0 -50
- package/cjs/chunks/bundle-CYAm3mYC.js.map +0 -1
- package/cjs/chunks/bundle-CfUeEOi0.js.map +0 -1
- package/cjs/chunks/bundle-ChDTEa9-.js.map +0 -1
- package/cjs/chunks/bundle-Clz7RiTn.js.map +0 -1
- package/cjs/chunks/bundle-Cq5LKFhE.js.map +0 -1
- package/cjs/chunks/bundle-D-kYFL1Z.js.map +0 -1
- package/cjs/chunks/bundle-D1slQ3hS.js.map +0 -1
- package/cjs/chunks/bundle-D30swLTX.js.map +0 -1
- package/cjs/chunks/bundle-D6fimwV5.js.map +0 -1
- package/cjs/chunks/bundle-D7uROwt_.js +0 -73
- package/cjs/chunks/bundle-D7uROwt_.js.map +0 -1
- package/cjs/chunks/bundle-DHPSwRDh.js.map +0 -1
- package/cjs/chunks/bundle-DHZYT5M_.js.map +0 -1
- package/cjs/chunks/bundle-DL3fuSPu.js.map +0 -1
- package/cjs/chunks/bundle-DQy9DqFO.js +0 -84
- package/cjs/chunks/bundle-DQy9DqFO.js.map +0 -1
- package/cjs/chunks/bundle-DTD48j2K.js.map +0 -1
- package/cjs/chunks/bundle-DVc6YedH.js.map +0 -1
- package/cjs/chunks/bundle-DWfeFlxG.js.map +0 -1
- package/cjs/chunks/bundle-DX3sBwvt.js.map +0 -1
- package/cjs/chunks/bundle-DYjhaLRW.js.map +0 -1
- package/cjs/chunks/bundle-DkDRIPJe.js.map +0 -1
- package/cjs/chunks/bundle-Dq5LRxGL.js.map +0 -1
- package/cjs/chunks/bundle-DuSS5Dmw.js.map +0 -1
- package/cjs/chunks/bundle-DzEGN4bG.js.map +0 -1
- package/cjs/chunks/bundle-JpIugjtL.js.map +0 -1
- package/cjs/chunks/bundle-Khwf-z37.js.map +0 -1
- package/cjs/chunks/bundle-Ol1CxgYk.js +0 -385
- package/cjs/chunks/bundle-Ol1CxgYk.js.map +0 -1
- package/cjs/chunks/bundle-QF_AmnwV.js.map +0 -1
- package/cjs/chunks/bundle-R7sVfaA9.js.map +0 -1
- package/cjs/chunks/bundle-S-XkXH4q.js.map +0 -1
- package/cjs/chunks/bundle-XANrnOqB.js.map +0 -1
- package/cjs/chunks/bundle-XxCVYLKy.js.map +0 -1
- package/cjs/chunks/bundle-YTiDKoON.js.map +0 -1
- package/cjs/chunks/bundle-m5OpCHlj.js.map +0 -1
- package/cjs/chunks/bundle-nWxq3V_Q.js.map +0 -1
- package/cjs/chunks/bundle-n_Z6yPjx.js.map +0 -1
- package/cjs/chunks/bundle-qMxPIH0k.js.map +0 -1
- package/cjs/chunks/bundle-s1cLz65w.js.map +0 -1
- package/cjs/useSendbirdStateContext.js +0 -27
- package/cjs/useSendbirdStateContext.js.map +0 -1
- package/cjs/withSendbird.js +0 -33
- package/cjs/withSendbird.js.map +0 -1
- package/types/hooks/useAppendDomNode.d.ts +0 -2
- package/types/hooks/useSendbirdStateContext.d.ts +0 -3
- package/types/lib/Sendbird.d.ts +0 -67
- package/types/lib/SendbirdSdkContext.d.ts +0 -12
- package/types/lib/SendbirdState.d.ts +0 -7
- package/types/lib/dux/appInfo/actionTypes.d.ts +0 -26
- package/types/lib/dux/appInfo/initialState.d.ts +0 -23
- package/types/lib/dux/appInfo/reducers.d.ts +0 -3
- package/types/lib/dux/appInfo/utils.d.ts +0 -7
- package/types/lib/dux/sdk/actionTypes.d.ts +0 -16
- package/types/lib/dux/sdk/initialState.d.ts +0 -9
- package/types/lib/dux/sdk/reducers.d.ts +0 -3
- package/types/lib/dux/user/actionTypes.d.ts +0 -14
- package/types/lib/dux/user/initialState.d.ts +0 -8
- package/types/lib/dux/user/reducers.d.ts +0 -3
- package/types/lib/hooks/useConnect/__test__/data.mocks.d.ts +0 -16
- package/types/lib/hooks/useConnect/connect.d.ts +0 -2
- package/types/lib/hooks/useConnect/disconnectSdk.d.ts +0 -2
- package/types/lib/hooks/useConnect/index.d.ts +0 -2
- package/types/lib/hooks/useConnect/setupConnection.d.ts +0 -22
- package/types/lib/hooks/useConnect/types.d.ts +0 -47
- package/types/modules/GroupChannel/context/hooks/useToggleReactionCallback.d.ts +0 -4
- package/types/modules/MessageSearch/context/dux/actionTypes.d.ts +0 -8
- package/types/modules/MessageSearch/context/dux/initialState.d.ts +0 -14
- package/types/modules/MessageSearch/context/dux/reducers.d.ts +0 -7
- package/types/modules/Thread/context/dux/actionTypes.d.ts +0 -38
- package/types/modules/Thread/context/dux/initialState.d.ts +0 -22
- package/types/modules/Thread/context/dux/reducer.d.ts +0 -8
- package/useSendbirdStateContext.js +0 -22
- package/useSendbirdStateContext.js.map +0 -1
- package/withSendbird.js +0 -24
- package/withSendbird.js.map +0 -1
package/cjs/SendbirdProvider.js
CHANGED
|
@@ -2,644 +2,116 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('./chunks/bundle-
|
|
5
|
+
var _tslib = require('./chunks/bundle-CxoFSSXv.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var uikitTools = require('@sendbird/uikit-tools');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var resolvedReplyType = require('./chunks/bundle-CG2rv5Ij.js');
|
|
9
|
+
var VoicePlayer_context = require('./chunks/bundle-DK39NcVd.js');
|
|
10
|
+
var VoiceRecorder_context = require('./VoiceRecorder/context.js');
|
|
11
|
+
var MediaQueryContext = require('./chunks/bundle-CyQD5TkW.js');
|
|
12
|
+
var LocalizationContext = require('./chunks/bundle-DDNdw3A9.js');
|
|
13
|
+
var hooks_useModal = require('./hooks/useModal.js');
|
|
14
|
+
var utils = require('./chunks/bundle-DQNu-S6D.js');
|
|
15
|
+
var index = require('./chunks/bundle-B2KoWBOt.js');
|
|
16
|
+
var colorMapper = require('./chunks/bundle-CMpha6Ac.js');
|
|
10
17
|
var cssVars = require('css-vars-ponyfill');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var MediaQueryContext = require('./chunks/bundle-B5aEwfu1.js');
|
|
22
|
-
var stringSet = require('./chunks/bundle-DzEGN4bG.js');
|
|
23
|
-
var consts = require('./chunks/bundle-BloKh_k7.js');
|
|
24
|
-
var resolvedReplyType = require('./chunks/bundle-BZd597ep.js');
|
|
25
|
-
var ui_ContextMenu = require('./chunks/bundle-QF_AmnwV.js');
|
|
26
|
-
var useSendbirdStateContext = require('./useSendbirdStateContext.js');
|
|
18
|
+
var consts = require('./chunks/bundle-yU9Mr2pS.js');
|
|
19
|
+
var useMarkAsDeliveredScheduler = require('./chunks/bundle-ys65nyET.js');
|
|
20
|
+
var stringSet = require('./chunks/bundle-EhtiN7UV.js');
|
|
21
|
+
var ui_ContextMenu = require('./chunks/bundle-Bqahh-7Q.js');
|
|
22
|
+
var useSendbird = require('./chunks/bundle-LI9JjqG2.js');
|
|
23
|
+
var SendbirdContext = require('./chunks/bundle-AAO7jUU2.js');
|
|
24
|
+
var useDeepCompareEffect = require('./chunks/bundle-ChpcAmBg.js');
|
|
25
|
+
var ui_Modal = require('./chunks/bundle-YeW89zsR.js');
|
|
26
|
+
require('./chunks/bundle-dfqZUdij.js');
|
|
27
|
+
require('./chunks/bundle-BV7y6VDn.js');
|
|
27
28
|
require('react-dom');
|
|
28
29
|
require('./ui/IconButton.js');
|
|
29
30
|
require('./ui/Button.js');
|
|
30
|
-
require('./chunks/bundle-
|
|
31
|
+
require('./chunks/bundle-B0UICprZ.js');
|
|
31
32
|
require('./ui/Icon.js');
|
|
32
|
-
require('./chunks/bundle-
|
|
33
|
-
require('
|
|
34
|
-
require('
|
|
35
|
-
require('
|
|
33
|
+
require('./chunks/bundle-BUGwK1WK.js');
|
|
34
|
+
require('@sendbird/chat');
|
|
35
|
+
require('@sendbird/chat/groupChannel');
|
|
36
|
+
require('@sendbird/chat/openChannel');
|
|
37
|
+
require('./chunks/bundle-Dn0hi6OJ.js');
|
|
36
38
|
require('./ui/SortByRow.js');
|
|
39
|
+
require('./chunks/bundle-D7YiKR6i.js');
|
|
40
|
+
require('./utils/message/getOutgoingMessageState.js');
|
|
41
|
+
require('./chunks/bundle-C1G0SKDq.js');
|
|
37
42
|
|
|
38
43
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
39
44
|
|
|
40
45
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
41
46
|
var cssVars__default = /*#__PURE__*/_interopDefaultCompat(cssVars);
|
|
42
|
-
var SendbirdChat__default = /*#__PURE__*/_interopDefaultCompat(SendbirdChat);
|
|
43
|
-
|
|
44
|
-
var DEFAULT_COLOR_SET = {
|
|
45
|
-
'--sendbird-dark-primary-500': '#4d2aa6',
|
|
46
|
-
'--sendbird-dark-primary-400': '#6440C4',
|
|
47
|
-
'--sendbird-dark-primary-300': '#7B53EF',
|
|
48
|
-
'--sendbird-dark-primary-200': '#9E8CF5',
|
|
49
|
-
'--sendbird-dark-primary-100': '#E2DFFF',
|
|
50
|
-
'--sendbird-dark-secondary-500': '#007A7A',
|
|
51
|
-
'--sendbird-dark-secondary-400': '#189A8D',
|
|
52
|
-
'--sendbird-dark-secondary-300': '#2EBA9F',
|
|
53
|
-
'--sendbird-dark-secondary-200': '#6FD6BE',
|
|
54
|
-
'--sendbird-dark-secondary-100': '#AEF2DC',
|
|
55
|
-
'--sendbird-dark-information-100': '#b2d9ff',
|
|
56
|
-
'--sendbird-dark-error-500': '#A30E2D',
|
|
57
|
-
'--sendbird-dark-error-400': '#C11F41',
|
|
58
|
-
'--sendbird-dark-error-300': '#E53157',
|
|
59
|
-
'--sendbird-dark-error-200': '#FF6183',
|
|
60
|
-
'--sendbird-dark-error-100': '#FFABBD',
|
|
61
|
-
'--sendbird-dark-background-700': '#000000',
|
|
62
|
-
'--sendbird-dark-background-600': '#161616',
|
|
63
|
-
'--sendbird-dark-background-500': '#2C2C2C',
|
|
64
|
-
'--sendbird-dark-background-400': '#393939',
|
|
65
|
-
'--sendbird-dark-background-300': '#A8A8A8',
|
|
66
|
-
'--sendbird-dark-background-200': '#D9D9D9',
|
|
67
|
-
'--sendbird-dark-background-100': '#F0F0F0',
|
|
68
|
-
'--sendbird-dark-background-50': '#FFFFFF',
|
|
69
|
-
'--sendbird-dark-overlay': 'rgba(0, 0, 0, 0.32)',
|
|
70
|
-
'--sendbird-dark-onlight-01': 'rgba(0, 0, 0, 0.88)',
|
|
71
|
-
'--sendbird-dark-onlight-02': 'rgba(0, 0, 0, 0.50)',
|
|
72
|
-
'--sendbird-dark-onlight-03': 'rgba(0, 0, 0, 0.38)',
|
|
73
|
-
'--sendbird-dark-onlight-04': 'rgba(0, 0, 0, 0.12)',
|
|
74
|
-
'--sendbird-dark-ondark-01': 'rgba(255, 255, 255, 0.88)',
|
|
75
|
-
'--sendbird-dark-ondark-02': 'rgba(255, 255, 255, 0.50)',
|
|
76
|
-
'--sendbird-dark-ondark-03': 'rgba(255, 255, 255, 0.38)',
|
|
77
|
-
'--sendbird-dark-ondark-04': 'rgba(255, 255, 255, 0.12)',
|
|
78
|
-
'--sendbird-dark-shadow-01': '0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12)',
|
|
79
|
-
'--sendbird-dark-shadow-02': '0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12)',
|
|
80
|
-
'--sendbird-dark-shadow-03': '0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12)',
|
|
81
|
-
'--sendbird-dark-shadow-04': '0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12)',
|
|
82
|
-
'--sendbird-dark-shadow-message-input': '0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
|
83
|
-
'--sendbird-light-primary-500': '#4d2aa6',
|
|
84
|
-
'--sendbird-light-primary-400': '#6440C4',
|
|
85
|
-
'--sendbird-light-primary-300': '#7B53EF',
|
|
86
|
-
'--sendbird-light-primary-200': '#9E8CF5',
|
|
87
|
-
'--sendbird-light-primary-100': '#E2DFFF',
|
|
88
|
-
'--sendbird-light-secondary-500': '#007A7A',
|
|
89
|
-
'--sendbird-light-secondary-400': '#189A8D',
|
|
90
|
-
'--sendbird-light-secondary-300': '#2EBA9F',
|
|
91
|
-
'--sendbird-light-secondary-200': '#6FD6BE',
|
|
92
|
-
'--sendbird-light-secondary-100': '#AEF2DC',
|
|
93
|
-
'--sendbird-light-information-100': '#b2d9ff',
|
|
94
|
-
'--sendbird-light-error-500': '#A30E2D',
|
|
95
|
-
'--sendbird-light-error-400': '#C11F41',
|
|
96
|
-
'--sendbird-light-error-300': '#E53157',
|
|
97
|
-
'--sendbird-light-error-200': '#FF6183',
|
|
98
|
-
'--sendbird-light-error-100': '#FFABBD',
|
|
99
|
-
'--sendbird-light-background-700': '#000000',
|
|
100
|
-
'--sendbird-light-background-600': '#161616',
|
|
101
|
-
'--sendbird-light-background-500': '#2C2C2C',
|
|
102
|
-
'--sendbird-light-background-400': '#393939',
|
|
103
|
-
'--sendbird-light-background-300': '#A8A8A8',
|
|
104
|
-
'--sendbird-light-background-200': '#D9D9D9',
|
|
105
|
-
'--sendbird-light-background-100': '#F0F0F0',
|
|
106
|
-
'--sendbird-light-background-50': ' #FFFFFF',
|
|
107
|
-
'--sendbird-light-overlay': 'rgba(0, 0, 0, 0.32)',
|
|
108
|
-
'--sendbird-light-onlight-01': 'rgba(0, 0, 0, 0.88)',
|
|
109
|
-
'--sendbird-light-onlight-02': 'rgba(0, 0, 0, 0.50)',
|
|
110
|
-
'--sendbird-light-onlight-03': 'rgba(0, 0, 0, 0.38)',
|
|
111
|
-
'--sendbird-light-onlight-04': 'rgba(0, 0, 0, 0.12)',
|
|
112
|
-
'--sendbird-light-ondark-01': 'rgba(255, 255, 255, 0.88)',
|
|
113
|
-
'--sendbird-light-ondark-02': 'rgba(255, 255, 255, 0.50)',
|
|
114
|
-
'--sendbird-light-ondark-03': 'rgba(255, 255, 255, 0.38)',
|
|
115
|
-
'--sendbird-light-ondark-04': 'rgba(255, 255, 255, 0.12)',
|
|
116
|
-
'--sendbird-light-shadow-01': '0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12)',
|
|
117
|
-
'--sendbird-light-shadow-02': '0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12)',
|
|
118
|
-
'--sendbird-light-shadow-03': '0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12)',
|
|
119
|
-
'--sendbird-light-shadow-04': '0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12)',
|
|
120
|
-
'--sendbird-light-shadow-message-input': '0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
|
121
|
-
};
|
|
122
|
-
var isEmpty = function (obj) {
|
|
123
|
-
if (obj === null || obj === undefined) {
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
for (var prop in obj) {
|
|
127
|
-
if (obj.hasOwnProperty(prop)) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return JSON.stringify(obj) === JSON.stringify({});
|
|
132
|
-
};
|
|
133
|
-
var useTheme = function (overrides) {
|
|
134
|
-
React.useLayoutEffect(function () {
|
|
135
|
-
if (!isEmpty(overrides)) {
|
|
136
|
-
var variables = _tslib.__assign(_tslib.__assign({}, DEFAULT_COLOR_SET), ui_Modal.mapColorKeys(overrides));
|
|
137
|
-
cssVars__default.default({ variables: variables });
|
|
138
|
-
}
|
|
139
|
-
}, [overrides]);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
var SDK_ACTIONS = {
|
|
143
|
-
INIT_SDK: 'INIT_SDK',
|
|
144
|
-
SET_SDK_LOADING: 'SET_SDK_LOADING',
|
|
145
|
-
RESET_SDK: 'RESET_SDK',
|
|
146
|
-
SDK_ERROR: 'SDK_ERROR',
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var initialState$2 = {
|
|
150
|
-
initialized: false,
|
|
151
|
-
loading: false,
|
|
152
|
-
sdk: {},
|
|
153
|
-
error: false,
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
function reducer$2(state, action) {
|
|
157
|
-
return index.K(action)
|
|
158
|
-
.with({ type: SDK_ACTIONS.SET_SDK_LOADING }, function (_a) {
|
|
159
|
-
var payload = _a.payload;
|
|
160
|
-
return _tslib.__assign(_tslib.__assign({}, state), { initialized: false, loading: payload });
|
|
161
|
-
})
|
|
162
|
-
.with({ type: SDK_ACTIONS.SDK_ERROR }, function () {
|
|
163
|
-
return _tslib.__assign(_tslib.__assign({}, state), { initialized: false, loading: false, error: true });
|
|
164
|
-
})
|
|
165
|
-
.with({ type: SDK_ACTIONS.INIT_SDK }, function (_a) {
|
|
166
|
-
var payload = _a.payload;
|
|
167
|
-
return {
|
|
168
|
-
sdk: payload,
|
|
169
|
-
initialized: true,
|
|
170
|
-
loading: false,
|
|
171
|
-
error: false,
|
|
172
|
-
};
|
|
173
|
-
})
|
|
174
|
-
.with({ type: SDK_ACTIONS.RESET_SDK }, function () {
|
|
175
|
-
return initialState$2;
|
|
176
|
-
})
|
|
177
|
-
.otherwise(function () {
|
|
178
|
-
return state;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
47
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
48
|
+
function uikitConfigMapper(_a) {
|
|
49
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
|
|
50
|
+
var legacyConfig = _a.legacyConfig, _9 = _a.uikitOptions, uikitOptions = _9 === void 0 ? {} : _9;
|
|
51
|
+
var replyType = legacyConfig.replyType, isMentionEnabled = legacyConfig.isMentionEnabled, isReactionEnabled = legacyConfig.isReactionEnabled, disableUserProfile = legacyConfig.disableUserProfile, isVoiceMessageEnabled = legacyConfig.isVoiceMessageEnabled, isTypingIndicatorEnabledOnChannelList = legacyConfig.isTypingIndicatorEnabledOnChannelList, isMessageReceiptStatusEnabledOnChannelList = legacyConfig.isMessageReceiptStatusEnabledOnChannelList, showSearchIcon = legacyConfig.showSearchIcon;
|
|
52
|
+
return {
|
|
53
|
+
common: {
|
|
54
|
+
enableUsingDefaultUserProfile: (_c = (_b = uikitOptions.common) === null || _b === void 0 ? void 0 : _b.enableUsingDefaultUserProfile) !== null && _c !== void 0 ? _c : (typeof disableUserProfile === 'boolean' ? !disableUserProfile : undefined),
|
|
55
|
+
},
|
|
56
|
+
groupChannel: {
|
|
57
|
+
enableOgtag: (_d = uikitOptions.groupChannel) === null || _d === void 0 ? void 0 : _d.enableOgtag,
|
|
58
|
+
enableMention: (_f = (_e = uikitOptions.groupChannel) === null || _e === void 0 ? void 0 : _e.enableMention) !== null && _f !== void 0 ? _f : isMentionEnabled,
|
|
59
|
+
enableReactions: (_h = (_g = uikitOptions.groupChannel) === null || _g === void 0 ? void 0 : _g.enableReactions) !== null && _h !== void 0 ? _h : isReactionEnabled,
|
|
60
|
+
enableReactionsSupergroup: (_j = uikitOptions.groupChannel) === null || _j === void 0 ? void 0 : _j.enableReactionsSupergroup,
|
|
61
|
+
enableTypingIndicator: (_k = uikitOptions.groupChannel) === null || _k === void 0 ? void 0 : _k.enableTypingIndicator,
|
|
62
|
+
enableVoiceMessage: (_m = (_l = uikitOptions.groupChannel) === null || _l === void 0 ? void 0 : _l.enableVoiceMessage) !== null && _m !== void 0 ? _m : isVoiceMessageEnabled,
|
|
63
|
+
replyType: (_p = (_o = uikitOptions.groupChannel) === null || _o === void 0 ? void 0 : _o.replyType) !== null && _p !== void 0 ? _p : (replyType != null ? resolvedReplyType.getCaseResolvedReplyType(replyType).lowerCase : undefined),
|
|
64
|
+
threadReplySelectType: (_q = uikitOptions.groupChannel) === null || _q === void 0 ? void 0 : _q.threadReplySelectType,
|
|
65
|
+
input: {
|
|
66
|
+
enableDocument: (_s = (_r = uikitOptions.groupChannel) === null || _r === void 0 ? void 0 : _r.input) === null || _s === void 0 ? void 0 : _s.enableDocument,
|
|
67
|
+
},
|
|
68
|
+
typingIndicatorTypes: (_t = uikitOptions.groupChannel) === null || _t === void 0 ? void 0 : _t.typingIndicatorTypes,
|
|
69
|
+
enableFeedback: (_u = uikitOptions.groupChannel) === null || _u === void 0 ? void 0 : _u.enableFeedback,
|
|
70
|
+
enableSuggestedReplies: (_v = uikitOptions.groupChannel) === null || _v === void 0 ? void 0 : _v.enableSuggestedReplies,
|
|
71
|
+
showSuggestedRepliesFor: (_w = uikitOptions.groupChannel) === null || _w === void 0 ? void 0 : _w.showSuggestedRepliesFor,
|
|
72
|
+
suggestedRepliesDirection: (_x = uikitOptions.groupChannel) === null || _x === void 0 ? void 0 : _x.suggestedRepliesDirection,
|
|
73
|
+
enableMarkdownForUserMessage: (_y = uikitOptions.groupChannel) === null || _y === void 0 ? void 0 : _y.enableMarkdownForUserMessage,
|
|
74
|
+
enableFormTypeMessage: (_z = uikitOptions.groupChannel) === null || _z === void 0 ? void 0 : _z.enableFormTypeMessage,
|
|
75
|
+
},
|
|
76
|
+
groupChannelList: {
|
|
77
|
+
enableTypingIndicator: (_1 = (_0 = uikitOptions.groupChannelList) === null || _0 === void 0 ? void 0 : _0.enableTypingIndicator) !== null && _1 !== void 0 ? _1 : isTypingIndicatorEnabledOnChannelList,
|
|
78
|
+
enableMessageReceiptStatus: (_3 = (_2 = uikitOptions.groupChannelList) === null || _2 === void 0 ? void 0 : _2.enableMessageReceiptStatus) !== null && _3 !== void 0 ? _3 : isMessageReceiptStatusEnabledOnChannelList,
|
|
79
|
+
},
|
|
80
|
+
groupChannelSettings: {
|
|
81
|
+
enableMessageSearch: (_5 = (_4 = uikitOptions.groupChannelSettings) === null || _4 === void 0 ? void 0 : _4.enableMessageSearch) !== null && _5 !== void 0 ? _5 : showSearchIcon,
|
|
82
|
+
},
|
|
83
|
+
openChannel: {
|
|
84
|
+
enableOgtag: (_6 = uikitOptions.openChannel) === null || _6 === void 0 ? void 0 : _6.enableOgtag,
|
|
85
|
+
input: {
|
|
86
|
+
enableDocument: (_8 = (_7 = uikitOptions.openChannel) === null || _7 === void 0 ? void 0 : _7.input) === null || _8 === void 0 ? void 0 : _8.enableDocument,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
208
90
|
}
|
|
209
91
|
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
function reducer(state, action) {
|
|
218
|
-
return index.K(action)
|
|
219
|
-
.with({ type: APP_INFO_ACTIONS.INITIALIZE_MESSAGE_TEMPLATES_INFO }, function (_a) {
|
|
220
|
-
var payload = _a.payload;
|
|
221
|
-
return {
|
|
222
|
-
messageTemplatesInfo: payload,
|
|
223
|
-
waitingTemplateKeysMap: {},
|
|
224
|
-
};
|
|
225
|
-
})
|
|
226
|
-
.with({ type: APP_INFO_ACTIONS.UPSERT_MESSAGE_TEMPLATES }, function (_a) {
|
|
227
|
-
var payload = _a.payload;
|
|
228
|
-
var templatesInfo = state.messageTemplatesInfo;
|
|
229
|
-
if (!templatesInfo)
|
|
230
|
-
return state; // Not initialized. Ignore.
|
|
231
|
-
var waitingTemplateKeysMap = _tslib.__assign({}, state.waitingTemplateKeysMap);
|
|
232
|
-
payload.forEach(function (templatesMapData) {
|
|
233
|
-
var key = templatesMapData.key, template = templatesMapData.template;
|
|
234
|
-
templatesInfo.templatesMap[key] = template;
|
|
235
|
-
delete waitingTemplateKeysMap[key];
|
|
236
|
-
});
|
|
237
|
-
return _tslib.__assign(_tslib.__assign({}, state), { waitingTemplateKeysMap: waitingTemplateKeysMap, messageTemplatesInfo: templatesInfo });
|
|
238
|
-
})
|
|
239
|
-
.with({ type: APP_INFO_ACTIONS.UPSERT_WAITING_TEMPLATE_KEYS }, function (_a) {
|
|
240
|
-
var payload = _a.payload;
|
|
241
|
-
var keys = payload.keys, requestedAt = payload.requestedAt;
|
|
242
|
-
var waitingTemplateKeysMap = _tslib.__assign({}, state.waitingTemplateKeysMap);
|
|
243
|
-
keys.forEach(function (key) {
|
|
244
|
-
var _a, _b;
|
|
245
|
-
waitingTemplateKeysMap[key] = {
|
|
246
|
-
erroredMessageIds: (_b = (_a = waitingTemplateKeysMap[key]) === null || _a === void 0 ? void 0 : _a.erroredMessageIds) !== null && _b !== void 0 ? _b : [],
|
|
247
|
-
requestedAt: requestedAt,
|
|
248
|
-
};
|
|
92
|
+
var uikitConfigStorage = {
|
|
93
|
+
getItem: function (key) {
|
|
94
|
+
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
95
|
+
var _a;
|
|
96
|
+
return _tslib.__generator(this, function (_b) {
|
|
97
|
+
return [2 /*return*/, (_a = localStorage.getItem(key)) !== null && _a !== void 0 ? _a : null];
|
|
98
|
+
});
|
|
249
99
|
});
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
keys.forEach(function (key) {
|
|
257
|
-
var waitingTemplateKeyData = waitingTemplateKeysMap[key];
|
|
258
|
-
if (waitingTemplateKeyData && waitingTemplateKeyData.erroredMessageIds.indexOf(messageId) === -1) {
|
|
259
|
-
waitingTemplateKeyData.erroredMessageIds.push(messageId);
|
|
260
|
-
}
|
|
100
|
+
},
|
|
101
|
+
setItem: function (key, value) {
|
|
102
|
+
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
103
|
+
return _tslib.__generator(this, function (_a) {
|
|
104
|
+
return [2 /*return*/, localStorage.setItem(key, value)];
|
|
105
|
+
});
|
|
261
106
|
});
|
|
262
|
-
|
|
263
|
-
})
|
|
264
|
-
.otherwise(function () {
|
|
265
|
-
return state;
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
var initialState = {
|
|
270
|
-
waitingTemplateKeysMap: {},
|
|
107
|
+
},
|
|
271
108
|
};
|
|
272
109
|
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
sdkDispatcher({ type: SDK_ACTIONS.SET_SDK_LOADING, payload: true });
|
|
279
|
-
if (sdk === null || sdk === void 0 ? void 0 : sdk.disconnectWebSocket) {
|
|
280
|
-
sdk.disconnectWebSocket()
|
|
281
|
-
.then(function () {
|
|
282
|
-
sdkDispatcher({ type: SDK_ACTIONS.RESET_SDK });
|
|
283
|
-
userDispatcher({ type: actionTypes.USER_ACTIONS.RESET_USER });
|
|
284
|
-
})
|
|
285
|
-
.finally(function () {
|
|
286
|
-
resolve(true);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
resolve(true);
|
|
291
|
-
}
|
|
292
|
-
})];
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
var APP_VERSION_STRING = '3.15.13';
|
|
298
|
-
var INIT_SDK = SDK_ACTIONS.INIT_SDK, SET_SDK_LOADING = SDK_ACTIONS.SET_SDK_LOADING, RESET_SDK = SDK_ACTIONS.RESET_SDK, SDK_ERROR = SDK_ACTIONS.SDK_ERROR;
|
|
299
|
-
var INIT_USER = actionTypes.USER_ACTIONS.INIT_USER, UPDATE_USER_INFO = actionTypes.USER_ACTIONS.UPDATE_USER_INFO, RESET_USER = actionTypes.USER_ACTIONS.RESET_USER;
|
|
300
|
-
function getMissingParamError(_a) {
|
|
301
|
-
var userId = _a.userId, appId = _a.appId;
|
|
302
|
-
return "SendbirdProvider | useConnect/setupConnection/Connection failed UserId: ".concat(userId, " or appId: ").concat(appId, " missing");
|
|
303
|
-
}
|
|
304
|
-
function getConnectSbError(error) {
|
|
305
|
-
return "SendbirdProvider | useConnect/setupConnection/Connection failed. ".concat((error === null || error === void 0 ? void 0 : error.code) || '', " ").concat((error === null || error === void 0 ? void 0 : error.message) || '');
|
|
306
|
-
}
|
|
307
|
-
function setUpConnection(_a) {
|
|
308
|
-
return _tslib.__awaiter(this, arguments, void 0, function (_b) {
|
|
309
|
-
var errorMessage;
|
|
310
|
-
var _this = this;
|
|
311
|
-
var _c, _d;
|
|
312
|
-
var logger = _b.logger, sdkDispatcher = _b.sdkDispatcher, userDispatcher = _b.userDispatcher, initDashboardConfigs = _b.initDashboardConfigs, userId = _b.userId, appId = _b.appId, isNewApp = _b.isNewApp, customApiHost = _b.customApiHost, customWebSocketHost = _b.customWebSocketHost, configureSession = _b.configureSession, nickname = _b.nickname, profileUrl = _b.profileUrl, accessToken = _b.accessToken, isUserIdUsedForNickname = _b.isUserIdUsedForNickname, sdkInitParams = _b.sdkInitParams, customExtensionParams = _b.customExtensionParams, _e = _b.isMobile, isMobile = _e === void 0 ? false : _e, eventHandlers = _b.eventHandlers, initializeMessageTemplatesInfo = _b.initializeMessageTemplatesInfo;
|
|
313
|
-
return _tslib.__generator(this, function (_f) {
|
|
314
|
-
(_c = logger.info) === null || _c === void 0 ? void 0 : _c.call(logger, 'SendbirdProvider | useConnect/setupConnection/init', { userId: userId, appId: appId });
|
|
315
|
-
sdkDispatcher({ type: SET_SDK_LOADING, payload: true });
|
|
316
|
-
if (!userId || !appId) {
|
|
317
|
-
errorMessage = getMissingParamError({ userId: userId, appId: appId });
|
|
318
|
-
(_d = logger.error) === null || _d === void 0 ? void 0 : _d.call(logger, errorMessage);
|
|
319
|
-
sdkDispatcher({ type: SDK_ERROR });
|
|
320
|
-
return [2 /*return*/, Promise.reject(errorMessage)];
|
|
321
|
-
}
|
|
322
|
-
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
323
|
-
var _a;
|
|
324
|
-
(_a = logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, "SendbirdProvider | useConnect/setupConnection/connect connecting using ".concat(accessToken !== null && accessToken !== void 0 ? accessToken : userId));
|
|
325
|
-
var sdk = initSDK({ appId: appId, customApiHost: customApiHost, customWebSocketHost: customWebSocketHost, isNewApp: isNewApp, sdkInitParams: sdkInitParams });
|
|
326
|
-
var sessionHandler = typeof configureSession === 'function' ? configureSession(sdk) : undefined;
|
|
327
|
-
setupSDK(sdk, { logger: logger, sessionHandler: sessionHandler, customExtensionParams: customExtensionParams, isMobile: isMobile });
|
|
328
|
-
sdk
|
|
329
|
-
.connect(userId, accessToken)
|
|
330
|
-
.then(function (user) { return onConnected(user); })
|
|
331
|
-
.catch(function (error) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
332
|
-
var sessionToken, user, error_1;
|
|
333
|
-
var _a;
|
|
334
|
-
return _tslib.__generator(this, function (_b) {
|
|
335
|
-
switch (_b.label) {
|
|
336
|
-
case 0:
|
|
337
|
-
if (!(shouldRetryWithValidSessionToken(error) && sessionHandler)) return [3 /*break*/, 6];
|
|
338
|
-
_b.label = 1;
|
|
339
|
-
case 1:
|
|
340
|
-
_b.trys.push([1, 5, , 6]);
|
|
341
|
-
return [4 /*yield*/, new Promise(sessionHandler.onSessionTokenRequired)];
|
|
342
|
-
case 2:
|
|
343
|
-
sessionToken = _b.sent();
|
|
344
|
-
if (!sessionToken) return [3 /*break*/, 4];
|
|
345
|
-
(_a = logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, "SendbirdProvider | useConnect/setupConnection/connect retry connect with valid session token: ".concat(sessionToken.slice(0, 10) + '...'));
|
|
346
|
-
return [4 /*yield*/, sdk.connect(userId, sessionToken)];
|
|
347
|
-
case 3:
|
|
348
|
-
user = _b.sent();
|
|
349
|
-
return [2 /*return*/, onConnected(user)];
|
|
350
|
-
case 4: return [3 /*break*/, 6];
|
|
351
|
-
case 5:
|
|
352
|
-
error_1 = _b.sent();
|
|
353
|
-
// NOTE: Filter out the error from `onSessionTokenRequired`.
|
|
354
|
-
if (error_1 instanceof SendbirdChat.SendbirdError) {
|
|
355
|
-
// connect in offline mode
|
|
356
|
-
// if (sdk.isCacheEnabled && sdk.currentUser) return onConnected(sdk.currentUser);
|
|
357
|
-
return [2 /*return*/, onConnectFailed(error_1)];
|
|
358
|
-
}
|
|
359
|
-
return [3 /*break*/, 6];
|
|
360
|
-
case 6: return [2 /*return*/, onConnectFailed(error)];
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}); });
|
|
364
|
-
var onConnected = function (user) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
365
|
-
var error_2, error_3, updateParams, updatedUser;
|
|
366
|
-
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
367
|
-
return _tslib.__generator(this, function (_k) {
|
|
368
|
-
switch (_k.label) {
|
|
369
|
-
case 0:
|
|
370
|
-
(_b = logger.info) === null || _b === void 0 ? void 0 : _b.call(logger, 'SendbirdProvider | useConnect/setupConnection/onConnected', user);
|
|
371
|
-
sdkDispatcher({ type: INIT_SDK, payload: sdk });
|
|
372
|
-
userDispatcher({ type: INIT_USER, payload: user });
|
|
373
|
-
_k.label = 1;
|
|
374
|
-
case 1:
|
|
375
|
-
_k.trys.push([1, 3, , 4]);
|
|
376
|
-
return [4 /*yield*/, initializeMessageTemplatesInfo(sdk)];
|
|
377
|
-
case 2:
|
|
378
|
-
_k.sent();
|
|
379
|
-
return [3 /*break*/, 4];
|
|
380
|
-
case 3:
|
|
381
|
-
error_2 = _k.sent();
|
|
382
|
-
(_c = logger.error) === null || _c === void 0 ? void 0 : _c.call(logger, 'SendbirdProvider | useConnect/setupConnection/upsertMessageTemplateListInLocalStorage failed', { error: error_2 });
|
|
383
|
-
return [3 /*break*/, 4];
|
|
384
|
-
case 4:
|
|
385
|
-
_k.trys.push([4, 6, , 7]);
|
|
386
|
-
return [4 /*yield*/, initDashboardConfigs(sdk)];
|
|
387
|
-
case 5:
|
|
388
|
-
_k.sent();
|
|
389
|
-
(_d = logger.info) === null || _d === void 0 ? void 0 : _d.call(logger, 'SendbirdProvider | useConnect/setupConnection/getUIKitConfiguration success');
|
|
390
|
-
return [3 /*break*/, 7];
|
|
391
|
-
case 6:
|
|
392
|
-
error_3 = _k.sent();
|
|
393
|
-
(_e = logger.error) === null || _e === void 0 ? void 0 : _e.call(logger, 'SendbirdProvider | useConnect/setupConnection/getUIKitConfiguration failed', { error: error_3 });
|
|
394
|
-
return [3 /*break*/, 7];
|
|
395
|
-
case 7:
|
|
396
|
-
_k.trys.push([7, 10, , 11]);
|
|
397
|
-
if (!((nickname !== user.nickname || profileUrl !== user.profileUrl) && !(index.isTextuallyNull(nickname) && index.isTextuallyNull(profileUrl)))) return [3 /*break*/, 9];
|
|
398
|
-
(_f = logger.info) === null || _f === void 0 ? void 0 : _f.call(logger, 'SendbirdProvider | useConnect/setupConnection/updateCurrentUserInfo', { nickname: nickname, profileUrl: profileUrl });
|
|
399
|
-
updateParams = {
|
|
400
|
-
nickname: nickname || user.nickname || (isUserIdUsedForNickname ? user.userId : ''),
|
|
401
|
-
profileUrl: profileUrl || user.profileUrl,
|
|
402
|
-
};
|
|
403
|
-
return [4 /*yield*/, sdk.updateCurrentUserInfo(updateParams)];
|
|
404
|
-
case 8:
|
|
405
|
-
updatedUser = _k.sent();
|
|
406
|
-
(_g = logger.info) === null || _g === void 0 ? void 0 : _g.call(logger, 'SendbirdProvider | useConnect/setupConnection/updateCurrentUserInfo success', updateParams);
|
|
407
|
-
userDispatcher({ type: UPDATE_USER_INFO, payload: updatedUser });
|
|
408
|
-
_k.label = 9;
|
|
409
|
-
case 9: return [3 /*break*/, 11];
|
|
410
|
-
case 10:
|
|
411
|
-
_k.sent();
|
|
412
|
-
return [3 /*break*/, 11];
|
|
413
|
-
case 11:
|
|
414
|
-
resolve();
|
|
415
|
-
(_j = (_h = eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.connection) === null || _h === void 0 ? void 0 : _h.onConnected) === null || _j === void 0 ? void 0 : _j.call(_h, user);
|
|
416
|
-
return [2 /*return*/];
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
}); };
|
|
420
|
-
var onConnectFailed = function (e) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
421
|
-
var errorMessage;
|
|
422
|
-
var _a, _b, _c, _d;
|
|
423
|
-
return _tslib.__generator(this, function (_e) {
|
|
424
|
-
switch (_e.label) {
|
|
425
|
-
case 0:
|
|
426
|
-
if (!(sdk.isCacheEnabled && shouldClearCache(e))) return [3 /*break*/, 2];
|
|
427
|
-
(_a = logger.error) === null || _a === void 0 ? void 0 : _a.call(logger, "SendbirdProvider | useConnect/setupConnection/connect clear cache [".concat(e.code, "/").concat(e.message, "]"));
|
|
428
|
-
return [4 /*yield*/, sdk.clearCachedData()];
|
|
429
|
-
case 1:
|
|
430
|
-
_e.sent();
|
|
431
|
-
_e.label = 2;
|
|
432
|
-
case 2:
|
|
433
|
-
errorMessage = getConnectSbError(e);
|
|
434
|
-
(_b = logger.error) === null || _b === void 0 ? void 0 : _b.call(logger, errorMessage, { e: e, appId: appId, userId: userId });
|
|
435
|
-
userDispatcher({ type: RESET_USER });
|
|
436
|
-
sdkDispatcher({ type: RESET_SDK });
|
|
437
|
-
sdkDispatcher({ type: SDK_ERROR });
|
|
438
|
-
reject(errorMessage);
|
|
439
|
-
(_d = (_c = eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.connection) === null || _c === void 0 ? void 0 : _c.onFailed) === null || _d === void 0 ? void 0 : _d.call(_c, e);
|
|
440
|
-
return [2 /*return*/];
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
}); };
|
|
444
|
-
})];
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Initializes the Sendbird SDK with the provided parameters.
|
|
450
|
-
* */
|
|
451
|
-
function initSDK(_a) {
|
|
452
|
-
var appId = _a.appId, _b = _a.isNewApp, isNewApp = _b === void 0 ? false : _b, customApiHost = _a.customApiHost, customWebSocketHost = _a.customWebSocketHost, _c = _a.sdkInitParams, sdkInitParams = _c === void 0 ? {} : _c;
|
|
453
|
-
// eslint-disable-next-line prefer-object-spread -- not to break the existing types
|
|
454
|
-
var params = Object.assign({}, {
|
|
455
|
-
appId: appId,
|
|
456
|
-
modules: [new groupChannel.GroupChannelModule(), new openChannel.OpenChannelModule()],
|
|
457
|
-
newInstance: isNewApp,
|
|
458
|
-
localCacheEnabled: true,
|
|
459
|
-
}, sdkInitParams);
|
|
460
|
-
if (customApiHost)
|
|
461
|
-
params.customApiHost = customApiHost;
|
|
462
|
-
if (customWebSocketHost)
|
|
463
|
-
params.customWebSocketHost = customWebSocketHost;
|
|
464
|
-
return SendbirdChat__default.default.init(params);
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Sets up the Sendbird SDK after initialization.
|
|
468
|
-
* Configures necessary settings, adds extensions, sets the platform, and configures the session handler if provided.
|
|
469
|
-
*/
|
|
470
|
-
function setupSDK(sdk, params) {
|
|
471
|
-
var _a, _b;
|
|
472
|
-
var logger = params.logger, sessionHandler = params.sessionHandler, isMobile = params.isMobile, customExtensionParams = params.customExtensionParams;
|
|
473
|
-
(_a = logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, 'SendbirdProvider | useConnect/setupConnection/setVersion', { version: APP_VERSION_STRING });
|
|
474
|
-
sdk.addExtension('sb_uikit', APP_VERSION_STRING);
|
|
475
|
-
sdk.addSendbirdExtensions([{ product: SendbirdChat.SendbirdProduct.UIKIT_CHAT, version: APP_VERSION_STRING, platform: SendbirdChat.SendbirdPlatform === null || SendbirdChat.SendbirdPlatform === void 0 ? void 0 : SendbirdChat.SendbirdPlatform.JS }], { platform: isMobile ? SendbirdChat.DeviceOsPlatform.MOBILE_WEB : SendbirdChat.DeviceOsPlatform.WEB }, customExtensionParams);
|
|
476
|
-
if (sessionHandler) {
|
|
477
|
-
(_b = logger.info) === null || _b === void 0 ? void 0 : _b.call(logger, 'SendbirdProvider | useConnect/setupConnection/configureSession', sessionHandler);
|
|
478
|
-
sdk.setSessionHandler(sessionHandler);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
function shouldClearCache(error) {
|
|
482
|
-
if (!(error instanceof SendbirdChat.SendbirdError))
|
|
483
|
-
return false;
|
|
484
|
-
return [
|
|
485
|
-
SendbirdChat.SendbirdErrorCode.USER_AUTH_DEACTIVATED,
|
|
486
|
-
SendbirdChat.SendbirdErrorCode.USER_AUTH_DELETED_OR_NOT_FOUND,
|
|
487
|
-
SendbirdChat.SendbirdErrorCode.SESSION_TOKEN_EXPIRED,
|
|
488
|
-
SendbirdChat.SendbirdErrorCode.SESSION_REVOKED,
|
|
489
|
-
].includes(error.code);
|
|
490
|
-
}
|
|
491
|
-
function shouldRetryWithValidSessionToken(error) {
|
|
492
|
-
if (!(error instanceof SendbirdChat.SendbirdError))
|
|
493
|
-
return false;
|
|
494
|
-
return [
|
|
495
|
-
SendbirdChat.SendbirdErrorCode.SESSION_TOKEN_EXPIRED,
|
|
496
|
-
/**
|
|
497
|
-
* Note: INVALID_TOKEN has been added arbitrarily due to legacy constraints
|
|
498
|
-
*
|
|
499
|
-
* In the useEffect of the useConnect hook, authentication is being performed
|
|
500
|
-
* but changes of the `accessToken` is not being detected.
|
|
501
|
-
* `disconnectSdk` is called when connect is called redundantly for the same user ID, causing issues, so `accessToken` has been excluded form the deps.
|
|
502
|
-
*
|
|
503
|
-
* In case the `accessToken` is missed, an additional attempt to connect is made
|
|
504
|
-
* */
|
|
505
|
-
SendbirdChat.SendbirdErrorCode.INVALID_TOKEN,
|
|
506
|
-
].includes(error.code);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
function connect(_a) {
|
|
510
|
-
return _tslib.__awaiter(this, arguments, void 0, function (_b) {
|
|
511
|
-
var logger = _b.logger, sdkDispatcher = _b.sdkDispatcher, userDispatcher = _b.userDispatcher, appInfoDispatcher = _b.appInfoDispatcher, initDashboardConfigs = _b.initDashboardConfigs, userId = _b.userId, appId = _b.appId, _c = _b.isNewApp, isNewApp = _c === void 0 ? false : _c, customApiHost = _b.customApiHost, customWebSocketHost = _b.customWebSocketHost, configureSession = _b.configureSession, nickname = _b.nickname, profileUrl = _b.profileUrl, accessToken = _b.accessToken, sdk = _b.sdk, sdkInitParams = _b.sdkInitParams, customExtensionParams = _b.customExtensionParams, isMobile = _b.isMobile, eventHandlers = _b.eventHandlers, isUserIdUsedForNickname = _b.isUserIdUsedForNickname, initializeMessageTemplatesInfo = _b.initializeMessageTemplatesInfo;
|
|
512
|
-
return _tslib.__generator(this, function (_d) {
|
|
513
|
-
switch (_d.label) {
|
|
514
|
-
case 0: return [4 /*yield*/, disconnectSdk({
|
|
515
|
-
logger: logger,
|
|
516
|
-
sdkDispatcher: sdkDispatcher,
|
|
517
|
-
userDispatcher: userDispatcher,
|
|
518
|
-
sdk: sdk,
|
|
519
|
-
})];
|
|
520
|
-
case 1:
|
|
521
|
-
_d.sent();
|
|
522
|
-
return [4 /*yield*/, setUpConnection({
|
|
523
|
-
logger: logger,
|
|
524
|
-
sdkDispatcher: sdkDispatcher,
|
|
525
|
-
userDispatcher: userDispatcher,
|
|
526
|
-
appInfoDispatcher: appInfoDispatcher,
|
|
527
|
-
initDashboardConfigs: initDashboardConfigs,
|
|
528
|
-
userId: userId,
|
|
529
|
-
appId: appId,
|
|
530
|
-
isNewApp: isNewApp,
|
|
531
|
-
customApiHost: customApiHost,
|
|
532
|
-
customWebSocketHost: customWebSocketHost,
|
|
533
|
-
configureSession: configureSession,
|
|
534
|
-
nickname: nickname,
|
|
535
|
-
profileUrl: profileUrl,
|
|
536
|
-
accessToken: accessToken,
|
|
537
|
-
sdkInitParams: sdkInitParams,
|
|
538
|
-
customExtensionParams: customExtensionParams,
|
|
539
|
-
isMobile: isMobile,
|
|
540
|
-
eventHandlers: eventHandlers,
|
|
541
|
-
isUserIdUsedForNickname: isUserIdUsedForNickname,
|
|
542
|
-
initializeMessageTemplatesInfo: initializeMessageTemplatesInfo,
|
|
543
|
-
})];
|
|
544
|
-
case 2:
|
|
545
|
-
_d.sent();
|
|
546
|
-
return [2 /*return*/];
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
function useConnect(triggerTypes, staticTypes) {
|
|
553
|
-
var _this = this;
|
|
554
|
-
var userId = triggerTypes.userId, appId = triggerTypes.appId, accessToken = triggerTypes.accessToken, isMobile = triggerTypes.isMobile, isUserIdUsedForNickname = triggerTypes.isUserIdUsedForNickname;
|
|
555
|
-
var logger = staticTypes.logger, nickname = staticTypes.nickname, profileUrl = staticTypes.profileUrl, configureSession = staticTypes.configureSession, customApiHost = staticTypes.customApiHost, customWebSocketHost = staticTypes.customWebSocketHost, sdk = staticTypes.sdk, sdkDispatcher = staticTypes.sdkDispatcher, userDispatcher = staticTypes.userDispatcher, appInfoDispatcher = staticTypes.appInfoDispatcher, initDashboardConfigs = staticTypes.initDashboardConfigs, sdkInitParams = staticTypes.sdkInitParams, customExtensionParams = staticTypes.customExtensionParams, eventHandlers = staticTypes.eventHandlers, initializeMessageTemplatesInfo = staticTypes.initializeMessageTemplatesInfo;
|
|
556
|
-
// Note: This is a workaround to prevent the creation of multiple SDK instances when React strict mode is enabled.
|
|
557
|
-
var connectDeps = React.useRef({
|
|
558
|
-
appId: '',
|
|
559
|
-
userId: '',
|
|
560
|
-
});
|
|
561
|
-
React.useEffect(function () {
|
|
562
|
-
var _a;
|
|
563
|
-
(_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, 'SendbirdProvider | useConnect/useEffect', { userId: userId, appId: appId, accessToken: accessToken });
|
|
564
|
-
var isNewApp = connectDeps.current.appId !== appId;
|
|
565
|
-
if (connectDeps.current.appId === appId && connectDeps.current.userId === userId) {
|
|
566
|
-
return;
|
|
567
|
-
}
|
|
568
|
-
else {
|
|
569
|
-
connectDeps.current = { appId: appId, userId: userId };
|
|
570
|
-
}
|
|
571
|
-
connect({
|
|
572
|
-
userId: userId,
|
|
573
|
-
appId: appId,
|
|
574
|
-
isNewApp: isNewApp,
|
|
575
|
-
accessToken: accessToken,
|
|
576
|
-
logger: logger,
|
|
577
|
-
nickname: nickname,
|
|
578
|
-
profileUrl: profileUrl,
|
|
579
|
-
configureSession: configureSession,
|
|
580
|
-
customApiHost: customApiHost,
|
|
581
|
-
customWebSocketHost: customWebSocketHost,
|
|
582
|
-
sdk: sdk,
|
|
583
|
-
sdkDispatcher: sdkDispatcher,
|
|
584
|
-
userDispatcher: userDispatcher,
|
|
585
|
-
appInfoDispatcher: appInfoDispatcher,
|
|
586
|
-
initDashboardConfigs: initDashboardConfigs,
|
|
587
|
-
isUserIdUsedForNickname: isUserIdUsedForNickname,
|
|
588
|
-
sdkInitParams: sdkInitParams,
|
|
589
|
-
customExtensionParams: customExtensionParams,
|
|
590
|
-
isMobile: isMobile,
|
|
591
|
-
eventHandlers: eventHandlers,
|
|
592
|
-
initializeMessageTemplatesInfo: initializeMessageTemplatesInfo,
|
|
593
|
-
}).catch(function (error) {
|
|
594
|
-
var _a;
|
|
595
|
-
(_a = logger === null || logger === void 0 ? void 0 : logger.error) === null || _a === void 0 ? void 0 : _a.call(logger, 'SendbirdProvider | useConnect/useEffect', error);
|
|
596
|
-
});
|
|
597
|
-
}, [userId, appId]);
|
|
598
|
-
var reconnect = React.useCallback(function () { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
599
|
-
var error_1;
|
|
600
|
-
var _a, _b;
|
|
601
|
-
return _tslib.__generator(this, function (_c) {
|
|
602
|
-
switch (_c.label) {
|
|
603
|
-
case 0:
|
|
604
|
-
(_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, 'SendbirdProvider | useConnect/reconnect/useCallback', { sdk: sdk });
|
|
605
|
-
_c.label = 1;
|
|
606
|
-
case 1:
|
|
607
|
-
_c.trys.push([1, 3, , 4]);
|
|
608
|
-
return [4 /*yield*/, connect({
|
|
609
|
-
userId: userId,
|
|
610
|
-
appId: appId,
|
|
611
|
-
accessToken: accessToken,
|
|
612
|
-
logger: logger,
|
|
613
|
-
nickname: nickname,
|
|
614
|
-
profileUrl: profileUrl,
|
|
615
|
-
configureSession: configureSession,
|
|
616
|
-
customApiHost: customApiHost,
|
|
617
|
-
customWebSocketHost: customWebSocketHost,
|
|
618
|
-
sdk: sdk,
|
|
619
|
-
sdkDispatcher: sdkDispatcher,
|
|
620
|
-
userDispatcher: userDispatcher,
|
|
621
|
-
appInfoDispatcher: appInfoDispatcher,
|
|
622
|
-
initDashboardConfigs: initDashboardConfigs,
|
|
623
|
-
isUserIdUsedForNickname: isUserIdUsedForNickname,
|
|
624
|
-
sdkInitParams: sdkInitParams,
|
|
625
|
-
customExtensionParams: customExtensionParams,
|
|
626
|
-
isMobile: isMobile,
|
|
627
|
-
eventHandlers: eventHandlers,
|
|
628
|
-
initializeMessageTemplatesInfo: initializeMessageTemplatesInfo,
|
|
629
|
-
})];
|
|
630
|
-
case 2:
|
|
631
|
-
_c.sent();
|
|
632
|
-
return [3 /*break*/, 4];
|
|
633
|
-
case 3:
|
|
634
|
-
error_1 = _c.sent();
|
|
635
|
-
(_b = logger === null || logger === void 0 ? void 0 : logger.error) === null || _b === void 0 ? void 0 : _b.call(logger, 'SendbirdProvider | useConnect/reconnect/useCallback', error_1);
|
|
636
|
-
return [3 /*break*/, 4];
|
|
637
|
-
case 4: return [2 /*return*/];
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
}); }, [sdk]);
|
|
641
|
-
return reconnect;
|
|
642
|
-
}
|
|
110
|
+
var VoiceMessageProvider = function (_a) {
|
|
111
|
+
var children = _a.children;
|
|
112
|
+
return (React__default.default.createElement(VoicePlayer_context.VoicePlayerProvider, null,
|
|
113
|
+
React__default.default.createElement(VoiceRecorder_context.VoiceRecorderProvider, null, children)));
|
|
114
|
+
};
|
|
643
115
|
|
|
644
116
|
// Logger, pretty much explains it
|
|
645
117
|
// in SendbirdProvider
|
|
@@ -702,100 +174,107 @@ var LoggerFactory = function (lvl, customInterface) {
|
|
|
702
174
|
return _tslib.__assign({}, accumulator);
|
|
703
175
|
}, getDefaultLogger());
|
|
704
176
|
};
|
|
705
|
-
// TODO: Make this to hook, useLogger
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
177
|
+
// TODO: Make this to hook, useLogger
|
|
178
|
+
|
|
179
|
+
var DEFAULT_COLOR_SET = {
|
|
180
|
+
'--sendbird-dark-primary-500': '#4d2aa6',
|
|
181
|
+
'--sendbird-dark-primary-400': '#6440C4',
|
|
182
|
+
'--sendbird-dark-primary-300': '#7B53EF',
|
|
183
|
+
'--sendbird-dark-primary-200': '#9E8CF5',
|
|
184
|
+
'--sendbird-dark-primary-100': '#E2DFFF',
|
|
185
|
+
'--sendbird-dark-secondary-500': '#007A7A',
|
|
186
|
+
'--sendbird-dark-secondary-400': '#189A8D',
|
|
187
|
+
'--sendbird-dark-secondary-300': '#2EBA9F',
|
|
188
|
+
'--sendbird-dark-secondary-200': '#6FD6BE',
|
|
189
|
+
'--sendbird-dark-secondary-100': '#AEF2DC',
|
|
190
|
+
'--sendbird-dark-information-100': '#b2d9ff',
|
|
191
|
+
'--sendbird-dark-error-500': '#A30E2D',
|
|
192
|
+
'--sendbird-dark-error-400': '#C11F41',
|
|
193
|
+
'--sendbird-dark-error-300': '#E53157',
|
|
194
|
+
'--sendbird-dark-error-200': '#FF6183',
|
|
195
|
+
'--sendbird-dark-error-100': '#FFABBD',
|
|
196
|
+
'--sendbird-dark-background-700': '#000000',
|
|
197
|
+
'--sendbird-dark-background-600': '#161616',
|
|
198
|
+
'--sendbird-dark-background-500': '#2C2C2C',
|
|
199
|
+
'--sendbird-dark-background-400': '#393939',
|
|
200
|
+
'--sendbird-dark-background-300': '#A8A8A8',
|
|
201
|
+
'--sendbird-dark-background-200': '#D9D9D9',
|
|
202
|
+
'--sendbird-dark-background-100': '#F0F0F0',
|
|
203
|
+
'--sendbird-dark-background-50': '#FFFFFF',
|
|
204
|
+
'--sendbird-dark-overlay': 'rgba(0, 0, 0, 0.32)',
|
|
205
|
+
'--sendbird-dark-onlight-01': 'rgba(0, 0, 0, 0.88)',
|
|
206
|
+
'--sendbird-dark-onlight-02': 'rgba(0, 0, 0, 0.50)',
|
|
207
|
+
'--sendbird-dark-onlight-03': 'rgba(0, 0, 0, 0.38)',
|
|
208
|
+
'--sendbird-dark-onlight-04': 'rgba(0, 0, 0, 0.12)',
|
|
209
|
+
'--sendbird-dark-ondark-01': 'rgba(255, 255, 255, 0.88)',
|
|
210
|
+
'--sendbird-dark-ondark-02': 'rgba(255, 255, 255, 0.50)',
|
|
211
|
+
'--sendbird-dark-ondark-03': 'rgba(255, 255, 255, 0.38)',
|
|
212
|
+
'--sendbird-dark-ondark-04': 'rgba(255, 255, 255, 0.12)',
|
|
213
|
+
'--sendbird-dark-shadow-01': '0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12)',
|
|
214
|
+
'--sendbird-dark-shadow-02': '0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12)',
|
|
215
|
+
'--sendbird-dark-shadow-03': '0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12)',
|
|
216
|
+
'--sendbird-dark-shadow-04': '0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12)',
|
|
217
|
+
'--sendbird-dark-shadow-message-input': '0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
|
218
|
+
'--sendbird-light-primary-500': '#4d2aa6',
|
|
219
|
+
'--sendbird-light-primary-400': '#6440C4',
|
|
220
|
+
'--sendbird-light-primary-300': '#7B53EF',
|
|
221
|
+
'--sendbird-light-primary-200': '#9E8CF5',
|
|
222
|
+
'--sendbird-light-primary-100': '#E2DFFF',
|
|
223
|
+
'--sendbird-light-secondary-500': '#007A7A',
|
|
224
|
+
'--sendbird-light-secondary-400': '#189A8D',
|
|
225
|
+
'--sendbird-light-secondary-300': '#2EBA9F',
|
|
226
|
+
'--sendbird-light-secondary-200': '#6FD6BE',
|
|
227
|
+
'--sendbird-light-secondary-100': '#AEF2DC',
|
|
228
|
+
'--sendbird-light-information-100': '#b2d9ff',
|
|
229
|
+
'--sendbird-light-error-500': '#A30E2D',
|
|
230
|
+
'--sendbird-light-error-400': '#C11F41',
|
|
231
|
+
'--sendbird-light-error-300': '#E53157',
|
|
232
|
+
'--sendbird-light-error-200': '#FF6183',
|
|
233
|
+
'--sendbird-light-error-100': '#FFABBD',
|
|
234
|
+
'--sendbird-light-background-700': '#000000',
|
|
235
|
+
'--sendbird-light-background-600': '#161616',
|
|
236
|
+
'--sendbird-light-background-500': '#2C2C2C',
|
|
237
|
+
'--sendbird-light-background-400': '#393939',
|
|
238
|
+
'--sendbird-light-background-300': '#A8A8A8',
|
|
239
|
+
'--sendbird-light-background-200': '#D9D9D9',
|
|
240
|
+
'--sendbird-light-background-100': '#F0F0F0',
|
|
241
|
+
'--sendbird-light-background-50': ' #FFFFFF',
|
|
242
|
+
'--sendbird-light-overlay': 'rgba(0, 0, 0, 0.32)',
|
|
243
|
+
'--sendbird-light-onlight-01': 'rgba(0, 0, 0, 0.88)',
|
|
244
|
+
'--sendbird-light-onlight-02': 'rgba(0, 0, 0, 0.50)',
|
|
245
|
+
'--sendbird-light-onlight-03': 'rgba(0, 0, 0, 0.38)',
|
|
246
|
+
'--sendbird-light-onlight-04': 'rgba(0, 0, 0, 0.12)',
|
|
247
|
+
'--sendbird-light-ondark-01': 'rgba(255, 255, 255, 0.88)',
|
|
248
|
+
'--sendbird-light-ondark-02': 'rgba(255, 255, 255, 0.50)',
|
|
249
|
+
'--sendbird-light-ondark-03': 'rgba(255, 255, 255, 0.38)',
|
|
250
|
+
'--sendbird-light-ondark-04': 'rgba(255, 255, 255, 0.12)',
|
|
251
|
+
'--sendbird-light-shadow-01': '0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12)',
|
|
252
|
+
'--sendbird-light-shadow-02': '0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12)',
|
|
253
|
+
'--sendbird-light-shadow-03': '0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12)',
|
|
254
|
+
'--sendbird-light-shadow-04': '0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12)',
|
|
255
|
+
'--sendbird-light-shadow-message-input': '0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)',
|
|
256
|
+
};
|
|
257
|
+
var isEmpty = function (obj) {
|
|
258
|
+
if (obj === null || obj === undefined) {
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
261
|
+
for (var prop in obj) {
|
|
262
|
+
if (obj.hasOwnProperty(prop)) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return JSON.stringify(obj) === JSON.stringify({});
|
|
711
267
|
};
|
|
712
|
-
|
|
713
|
-
function
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
return {
|
|
718
|
-
common: {
|
|
719
|
-
enableUsingDefaultUserProfile: (_c = (_b = uikitOptions.common) === null || _b === void 0 ? void 0 : _b.enableUsingDefaultUserProfile) !== null && _c !== void 0 ? _c : (typeof disableUserProfile === 'boolean' ? !disableUserProfile : undefined),
|
|
720
|
-
},
|
|
721
|
-
groupChannel: {
|
|
722
|
-
enableOgtag: (_d = uikitOptions.groupChannel) === null || _d === void 0 ? void 0 : _d.enableOgtag,
|
|
723
|
-
enableMention: (_f = (_e = uikitOptions.groupChannel) === null || _e === void 0 ? void 0 : _e.enableMention) !== null && _f !== void 0 ? _f : isMentionEnabled,
|
|
724
|
-
enableReactions: (_h = (_g = uikitOptions.groupChannel) === null || _g === void 0 ? void 0 : _g.enableReactions) !== null && _h !== void 0 ? _h : isReactionEnabled,
|
|
725
|
-
enableReactionsSupergroup: (_j = uikitOptions.groupChannel) === null || _j === void 0 ? void 0 : _j.enableReactionsSupergroup,
|
|
726
|
-
enableTypingIndicator: (_k = uikitOptions.groupChannel) === null || _k === void 0 ? void 0 : _k.enableTypingIndicator,
|
|
727
|
-
enableVoiceMessage: (_m = (_l = uikitOptions.groupChannel) === null || _l === void 0 ? void 0 : _l.enableVoiceMessage) !== null && _m !== void 0 ? _m : isVoiceMessageEnabled,
|
|
728
|
-
replyType: (_p = (_o = uikitOptions.groupChannel) === null || _o === void 0 ? void 0 : _o.replyType) !== null && _p !== void 0 ? _p : (replyType != null ? resolvedReplyType.getCaseResolvedReplyType(replyType).lowerCase : undefined),
|
|
729
|
-
threadReplySelectType: (_q = uikitOptions.groupChannel) === null || _q === void 0 ? void 0 : _q.threadReplySelectType,
|
|
730
|
-
input: {
|
|
731
|
-
enableDocument: (_s = (_r = uikitOptions.groupChannel) === null || _r === void 0 ? void 0 : _r.input) === null || _s === void 0 ? void 0 : _s.enableDocument,
|
|
732
|
-
},
|
|
733
|
-
typingIndicatorTypes: (_t = uikitOptions.groupChannel) === null || _t === void 0 ? void 0 : _t.typingIndicatorTypes,
|
|
734
|
-
enableFeedback: (_u = uikitOptions.groupChannel) === null || _u === void 0 ? void 0 : _u.enableFeedback,
|
|
735
|
-
enableSuggestedReplies: (_v = uikitOptions.groupChannel) === null || _v === void 0 ? void 0 : _v.enableSuggestedReplies,
|
|
736
|
-
showSuggestedRepliesFor: (_w = uikitOptions.groupChannel) === null || _w === void 0 ? void 0 : _w.showSuggestedRepliesFor,
|
|
737
|
-
suggestedRepliesDirection: (_x = uikitOptions.groupChannel) === null || _x === void 0 ? void 0 : _x.suggestedRepliesDirection,
|
|
738
|
-
enableMarkdownForUserMessage: (_y = uikitOptions.groupChannel) === null || _y === void 0 ? void 0 : _y.enableMarkdownForUserMessage,
|
|
739
|
-
enableFormTypeMessage: (_z = uikitOptions.groupChannel) === null || _z === void 0 ? void 0 : _z.enableFormTypeMessage,
|
|
740
|
-
},
|
|
741
|
-
groupChannelList: {
|
|
742
|
-
enableTypingIndicator: (_1 = (_0 = uikitOptions.groupChannelList) === null || _0 === void 0 ? void 0 : _0.enableTypingIndicator) !== null && _1 !== void 0 ? _1 : isTypingIndicatorEnabledOnChannelList,
|
|
743
|
-
enableMessageReceiptStatus: (_3 = (_2 = uikitOptions.groupChannelList) === null || _2 === void 0 ? void 0 : _2.enableMessageReceiptStatus) !== null && _3 !== void 0 ? _3 : isMessageReceiptStatusEnabledOnChannelList,
|
|
744
|
-
},
|
|
745
|
-
groupChannelSettings: {
|
|
746
|
-
enableMessageSearch: (_5 = (_4 = uikitOptions.groupChannelSettings) === null || _4 === void 0 ? void 0 : _4.enableMessageSearch) !== null && _5 !== void 0 ? _5 : showSearchIcon,
|
|
747
|
-
},
|
|
748
|
-
openChannel: {
|
|
749
|
-
enableOgtag: (_6 = uikitOptions.openChannel) === null || _6 === void 0 ? void 0 : _6.enableOgtag,
|
|
750
|
-
input: {
|
|
751
|
-
enableDocument: (_8 = (_7 = uikitOptions.openChannel) === null || _7 === void 0 ? void 0 : _7.input) === null || _8 === void 0 ? void 0 : _8.enableDocument,
|
|
752
|
-
},
|
|
753
|
-
},
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
function useMarkAsReadScheduler(_a, _b) {
|
|
758
|
-
var isConnected = _a.isConnected;
|
|
759
|
-
var logger = _b.logger;
|
|
760
|
-
var markAsReadScheduler = React.useMemo(function () { return useMarkAsDeliveredScheduler.schedulerFactory({
|
|
761
|
-
logger: logger,
|
|
762
|
-
cb: function (channel) {
|
|
763
|
-
try {
|
|
764
|
-
channel.markAsRead();
|
|
765
|
-
}
|
|
766
|
-
catch (error) {
|
|
767
|
-
logger.warning('Channel: Mark as delivered failed', { channel: channel, error: error });
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
}); }, []);
|
|
771
|
-
React.useEffect(function () {
|
|
772
|
-
// for simplicity, we clear the queue when the connection is lost
|
|
773
|
-
if (!isConnected) {
|
|
774
|
-
markAsReadScheduler.clear();
|
|
268
|
+
var useTheme = function (overrides) {
|
|
269
|
+
React.useLayoutEffect(function () {
|
|
270
|
+
if (!isEmpty(overrides)) {
|
|
271
|
+
var variables = _tslib.__assign(_tslib.__assign({}, DEFAULT_COLOR_SET), colorMapper.mapColorKeys(overrides));
|
|
272
|
+
cssVars__default.default({ variables: variables });
|
|
775
273
|
}
|
|
776
|
-
}, [
|
|
777
|
-
useMarkAsDeliveredScheduler.useUnmount(function () { markAsReadScheduler.clear(); });
|
|
778
|
-
return markAsReadScheduler;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
var uikitConfigStorage = {
|
|
782
|
-
getItem: function (key) {
|
|
783
|
-
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
784
|
-
var _a;
|
|
785
|
-
return _tslib.__generator(this, function (_b) {
|
|
786
|
-
return [2 /*return*/, (_a = localStorage.getItem(key)) !== null && _a !== void 0 ? _a : null];
|
|
787
|
-
});
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
setItem: function (key, value) {
|
|
791
|
-
return _tslib.__awaiter(this, void 0, void 0, function () {
|
|
792
|
-
return _tslib.__generator(this, function (_a) {
|
|
793
|
-
return [2 /*return*/, localStorage.setItem(key, value)];
|
|
794
|
-
});
|
|
795
|
-
});
|
|
796
|
-
},
|
|
274
|
+
}, [overrides]);
|
|
797
275
|
};
|
|
798
276
|
|
|
277
|
+
var MESSAGE_TEMPLATES_FETCH_LIMIT = 20;
|
|
799
278
|
/**
|
|
800
279
|
* Takes JSON parsed template and then returns processed message template for storing it in global state.
|
|
801
280
|
*/
|
|
@@ -813,14 +292,12 @@ var getProcessedTemplatesMap = function (parsedTemplates) {
|
|
|
813
292
|
});
|
|
814
293
|
return processedTemplates;
|
|
815
294
|
};
|
|
816
|
-
|
|
817
|
-
var MESSAGE_TEMPLATES_FETCH_LIMIT = 20;
|
|
818
|
-
var INITIALIZE_MESSAGE_TEMPLATES_INFO = APP_INFO_ACTIONS.INITIALIZE_MESSAGE_TEMPLATES_INFO, UPSERT_MESSAGE_TEMPLATES = APP_INFO_ACTIONS.UPSERT_MESSAGE_TEMPLATES, UPSERT_WAITING_TEMPLATE_KEYS = APP_INFO_ACTIONS.UPSERT_WAITING_TEMPLATE_KEYS, MARK_ERROR_WAITING_TEMPLATE_KEYS = APP_INFO_ACTIONS.MARK_ERROR_WAITING_TEMPLATE_KEYS;
|
|
819
295
|
function useMessageTemplateUtils(_a) {
|
|
820
296
|
var _this = this;
|
|
821
|
-
var
|
|
297
|
+
var _b;
|
|
298
|
+
var sdk = _a.sdk, logger = _a.logger, appInfoStore = _a.appInfoStore, actions = _a.actions;
|
|
822
299
|
var messageTemplatesInfo = appInfoStore === null || appInfoStore === void 0 ? void 0 : appInfoStore.messageTemplatesInfo;
|
|
823
|
-
var getCachedTemplate = function (key) {
|
|
300
|
+
var getCachedTemplate = React.useCallback(function (key) {
|
|
824
301
|
var _a, _b;
|
|
825
302
|
if (!messageTemplatesInfo)
|
|
826
303
|
return null;
|
|
@@ -830,7 +307,7 @@ function useMessageTemplateUtils(_a) {
|
|
|
830
307
|
cachedTemplate = (_b = cachedMessageTemplates[key]) !== null && _b !== void 0 ? _b : null;
|
|
831
308
|
}
|
|
832
309
|
return cachedTemplate;
|
|
833
|
-
};
|
|
310
|
+
}, [appInfoStore === null || appInfoStore === void 0 ? void 0 : appInfoStore.messageTemplatesInfo]);
|
|
834
311
|
/**
|
|
835
312
|
* Fetches a single message template by given key and then
|
|
836
313
|
* returns processed template for updating templates info in global state.
|
|
@@ -886,7 +363,7 @@ function useMessageTemplateUtils(_a) {
|
|
|
886
363
|
token: sdkMessageTemplateToken,
|
|
887
364
|
templatesMap: getProcessedTemplatesMap(parsedTemplates),
|
|
888
365
|
};
|
|
889
|
-
|
|
366
|
+
actions.initMessageTemplateInfo({ payload: newMessageTemplatesInfo });
|
|
890
367
|
localStorage.setItem(consts.CACHED_MESSAGE_TEMPLATES_TOKEN_KEY, sdkMessageTemplateToken);
|
|
891
368
|
localStorage.setItem(consts.CACHED_MESSAGE_TEMPLATES_KEY, JSON.stringify(parsedTemplates));
|
|
892
369
|
return [3 /*break*/, 3];
|
|
@@ -899,7 +376,7 @@ function useMessageTemplateUtils(_a) {
|
|
|
899
376
|
token: sdkMessageTemplateToken,
|
|
900
377
|
templatesMap: getProcessedTemplatesMap(parsedTemplates),
|
|
901
378
|
};
|
|
902
|
-
|
|
379
|
+
actions.initMessageTemplateInfo({ payload: newMessageTemplatesInfo });
|
|
903
380
|
}
|
|
904
381
|
_b.label = 3;
|
|
905
382
|
case 3: return [2 /*return*/];
|
|
@@ -910,21 +387,14 @@ function useMessageTemplateUtils(_a) {
|
|
|
910
387
|
* If given message is a template message with template key and if the key does not exist in the cache,
|
|
911
388
|
* update the cache by fetching the template.
|
|
912
389
|
*/
|
|
913
|
-
var updateMessageTemplatesInfo = function (templateKeys, messageId, requestedAt) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
914
|
-
var
|
|
390
|
+
var updateMessageTemplatesInfo = React.useCallback(function (templateKeys, messageId, requestedAt) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
391
|
+
var newParsedTemplates, hasMore, token, result, e_1, cachedMessageTemplates, parsedTemplates_1, existingKeys_1;
|
|
915
392
|
var _a;
|
|
916
393
|
return _tslib.__generator(this, function (_b) {
|
|
917
394
|
switch (_b.label) {
|
|
918
395
|
case 0:
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
type: UPSERT_WAITING_TEMPLATE_KEYS,
|
|
922
|
-
payload: {
|
|
923
|
-
keys: templateKeys,
|
|
924
|
-
requestedAt: requestedAt,
|
|
925
|
-
},
|
|
926
|
-
});
|
|
927
|
-
newParsedTemplates_1 = [];
|
|
396
|
+
actions.upsertWaitingTemplateKeys({ keys: templateKeys, requestedAt: requestedAt });
|
|
397
|
+
newParsedTemplates = [];
|
|
928
398
|
_b.label = 1;
|
|
929
399
|
case 1:
|
|
930
400
|
_b.trys.push([1, 5, , 6]);
|
|
@@ -939,7 +409,7 @@ function useMessageTemplateUtils(_a) {
|
|
|
939
409
|
case 3:
|
|
940
410
|
result = _b.sent();
|
|
941
411
|
result.templates.forEach(function (newTemplate) {
|
|
942
|
-
|
|
412
|
+
newParsedTemplates.push(JSON.parse(newTemplate.template));
|
|
943
413
|
});
|
|
944
414
|
hasMore = result.hasMore;
|
|
945
415
|
token = result.token;
|
|
@@ -950,12 +420,12 @@ function useMessageTemplateUtils(_a) {
|
|
|
950
420
|
(_a = logger === null || logger === void 0 ? void 0 : logger.error) === null || _a === void 0 ? void 0 : _a.call(logger, 'Sendbird | fetchProcessedMessageTemplates failed', e_1, templateKeys);
|
|
951
421
|
return [3 /*break*/, 6];
|
|
952
422
|
case 6:
|
|
953
|
-
if (
|
|
423
|
+
if (newParsedTemplates.length > 0) {
|
|
954
424
|
cachedMessageTemplates = localStorage.getItem(consts.CACHED_MESSAGE_TEMPLATES_KEY);
|
|
955
425
|
if (cachedMessageTemplates) {
|
|
956
426
|
parsedTemplates_1 = JSON.parse(cachedMessageTemplates);
|
|
957
427
|
existingKeys_1 = parsedTemplates_1.map(function (parsedTemplate) { return parsedTemplate.key; });
|
|
958
|
-
|
|
428
|
+
newParsedTemplates.forEach(function (newParsedTemplate) {
|
|
959
429
|
if (!existingKeys_1.includes(newParsedTemplate.key)) {
|
|
960
430
|
parsedTemplates_1.push(newParsedTemplate);
|
|
961
431
|
}
|
|
@@ -963,12 +433,11 @@ function useMessageTemplateUtils(_a) {
|
|
|
963
433
|
localStorage.setItem(consts.CACHED_MESSAGE_TEMPLATES_KEY, JSON.stringify(parsedTemplates_1));
|
|
964
434
|
}
|
|
965
435
|
else {
|
|
966
|
-
localStorage.setItem(consts.CACHED_MESSAGE_TEMPLATES_KEY, JSON.stringify([
|
|
436
|
+
localStorage.setItem(consts.CACHED_MESSAGE_TEMPLATES_KEY, JSON.stringify([newParsedTemplates]));
|
|
967
437
|
}
|
|
968
438
|
// Update memory
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
payload: newParsedTemplates_1.map(function (newParsedTemplate) {
|
|
439
|
+
actions.upsertMessageTemplates({
|
|
440
|
+
payload: newParsedTemplates.map(function (newParsedTemplate) {
|
|
972
441
|
return {
|
|
973
442
|
key: newParsedTemplate.key,
|
|
974
443
|
template: getProcessedTemplate(newParsedTemplate),
|
|
@@ -977,19 +446,19 @@ function useMessageTemplateUtils(_a) {
|
|
|
977
446
|
});
|
|
978
447
|
}
|
|
979
448
|
else {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
keys: templateKeys,
|
|
984
|
-
messageId: messageId,
|
|
985
|
-
},
|
|
449
|
+
actions.markErrorWaitingTemplateKeys({
|
|
450
|
+
keys: templateKeys,
|
|
451
|
+
messageId: messageId,
|
|
986
452
|
});
|
|
987
453
|
}
|
|
988
|
-
|
|
989
|
-
case 7: return [2 /*return*/];
|
|
454
|
+
return [2 /*return*/];
|
|
990
455
|
}
|
|
991
456
|
});
|
|
992
|
-
}); }
|
|
457
|
+
}); }, [
|
|
458
|
+
actions.upsertMessageTemplates,
|
|
459
|
+
actions.upsertWaitingTemplateKeys,
|
|
460
|
+
(_b = sdk === null || sdk === void 0 ? void 0 : sdk.message) === null || _b === void 0 ? void 0 : _b.getMessageTemplatesByToken,
|
|
461
|
+
]);
|
|
993
462
|
return {
|
|
994
463
|
getCachedTemplate: getCachedTemplate,
|
|
995
464
|
updateMessageTemplatesInfo: updateMessageTemplatesInfo,
|
|
@@ -1010,98 +479,86 @@ var useHTMLTextDirection = function (direction) {
|
|
|
1010
479
|
}, [direction]);
|
|
1011
480
|
};
|
|
1012
481
|
|
|
1013
|
-
function
|
|
1014
|
-
var
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
482
|
+
function useMarkAsReadScheduler(_a, _b) {
|
|
483
|
+
var isConnected = _a.isConnected;
|
|
484
|
+
var logger = _b.logger;
|
|
485
|
+
var markAsReadScheduler = React.useMemo(function () { return useMarkAsDeliveredScheduler.schedulerFactory({
|
|
486
|
+
logger: logger,
|
|
487
|
+
cb: function (channel) {
|
|
488
|
+
try {
|
|
489
|
+
channel.markAsRead();
|
|
490
|
+
}
|
|
491
|
+
catch (error) {
|
|
492
|
+
logger.warning('Channel: Mark as delivered failed', { channel: channel, error: error });
|
|
493
|
+
}
|
|
1024
494
|
},
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
openChannel: {
|
|
1035
|
-
channel: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.openChannel,
|
|
1036
|
-
},
|
|
1037
|
-
} },
|
|
1038
|
-
React__default.default.createElement(SendbirdSDK, _tslib.__assign({}, props))));
|
|
495
|
+
}); }, []);
|
|
496
|
+
React.useEffect(function () {
|
|
497
|
+
// for simplicity, we clear the queue when the connection is lost
|
|
498
|
+
if (!isConnected) {
|
|
499
|
+
markAsReadScheduler.clear();
|
|
500
|
+
}
|
|
501
|
+
}, [isConnected]);
|
|
502
|
+
useMarkAsDeliveredScheduler.useUnmount(function () { markAsReadScheduler.clear(); });
|
|
503
|
+
return markAsReadScheduler;
|
|
1039
504
|
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* SendbirdContext - Manager
|
|
508
|
+
*/
|
|
509
|
+
var SendbirdContextManager = function (_a) {
|
|
510
|
+
var _b;
|
|
511
|
+
var appId = _a.appId, userId = _a.userId, accessToken = _a.accessToken, customApiHost = _a.customApiHost, customWebSocketHost = _a.customWebSocketHost, configureSession = _a.configureSession, _c = _a.theme, theme = _c === void 0 ? 'light' : _c, _d = _a.config, config = _d === void 0 ? {} : _d, _e = _a.nickname, nickname = _e === void 0 ? '' : _e, colorSet = _a.colorSet, _f = _a.profileUrl, profileUrl = _f === void 0 ? '' : _f, voiceRecord = _a.voiceRecord, userListQuery = _a.userListQuery, _g = _a.imageCompression, imageCompression = _g === void 0 ? {} : _g, _h = _a.allowProfileEdit, allowProfileEdit = _h === void 0 ? false : _h, _j = _a.disableMarkAsDelivered, disableMarkAsDelivered = _j === void 0 ? false : _j, renderUserProfile = _a.renderUserProfile, _onUserProfileMessage = _a.onUserProfileMessage, _onStartDirectMessage = _a.onStartDirectMessage, _k = _a.isUserIdUsedForNickname, isUserIdUsedForNickname = _k === void 0 ? true : _k, sdkInitParams = _a.sdkInitParams, customExtensionParams = _a.customExtensionParams, _l = _a.isMultipleFilesMessageEnabled, isMultipleFilesMessageEnabled = _l === void 0 ? false : _l, eventHandlers = _a.eventHandlers, _m = _a.htmlTextDirection, htmlTextDirection = _m === void 0 ? 'ltr' : _m, _o = _a.forceLeftToRightMessageLayout, forceLeftToRightMessageLayout = _o === void 0 ? false : _o;
|
|
1043
512
|
var onStartDirectMessage = _onStartDirectMessage !== null && _onStartDirectMessage !== void 0 ? _onStartDirectMessage : _onUserProfileMessage;
|
|
1044
|
-
var
|
|
513
|
+
var _p = config.logLevel, logLevel = _p === void 0 ? '' : _p, _q = config.userMention, userMention = _q === void 0 ? {} : _q, _r = config.isREMUnitEnabled, isREMUnitEnabled = _r === void 0 ? false : _r, customPubSub = config.pubSub;
|
|
1045
514
|
var isMobile = MediaQueryContext.useMediaQueryContext().isMobile;
|
|
1046
|
-
var
|
|
1047
|
-
var pubSub = React.useState(
|
|
1048
|
-
var
|
|
1049
|
-
var
|
|
1050
|
-
var
|
|
1051
|
-
var
|
|
515
|
+
var _s = React.useState(LoggerFactory(logLevel)), logger = _s[0], setLogger = _s[1];
|
|
516
|
+
var pubSub = React.useState(customPubSub !== null && customPubSub !== void 0 ? customPubSub : index.pubSubFactory())[0];
|
|
517
|
+
var _t = SendbirdContext.useSendbirdStore(), state = _t.state, updateState = _t.updateState;
|
|
518
|
+
var actions = useSendbird.useSendbird().actions;
|
|
519
|
+
var _u = state.stores, sdkStore = _u.sdkStore, appInfoStore = _u.appInfoStore;
|
|
520
|
+
var _v = uikitTools.useUIKitConfig(), configs = _v.configs, configsWithAppAttr = _v.configsWithAppAttr, initDashboardConfigs = _v.initDashboardConfigs;
|
|
1052
521
|
var sdkInitialized = sdkStore.initialized;
|
|
1053
522
|
var sdk = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.sdk;
|
|
1054
|
-
var
|
|
523
|
+
var _w = (_b = sdk === null || sdk === void 0 ? void 0 : sdk.appInfo) !== null && _b !== void 0 ? _b : {}, uploadSizeLimit = _w.uploadSizeLimit, multipleFilesMessageFileCountLimit = _w.multipleFilesMessageFileCountLimit;
|
|
1055
524
|
useTheme(colorSet);
|
|
1056
|
-
var
|
|
525
|
+
var _x = useMessageTemplateUtils({
|
|
1057
526
|
sdk: sdk,
|
|
1058
527
|
logger: logger,
|
|
1059
528
|
appInfoStore: appInfoStore,
|
|
1060
|
-
|
|
1061
|
-
}), getCachedTemplate =
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
appInfoDispatcher: appInfoDispatcher,
|
|
1085
|
-
initDashboardConfigs: initDashboardConfigs,
|
|
1086
|
-
eventHandlers: eventHandlers,
|
|
1087
|
-
initializeMessageTemplatesInfo: initializeMessageTemplatesInfo,
|
|
1088
|
-
});
|
|
529
|
+
actions: actions,
|
|
530
|
+
}), getCachedTemplate = _x.getCachedTemplate, updateMessageTemplatesInfo = _x.updateMessageTemplatesInfo, initializeMessageTemplatesInfo = _x.initializeMessageTemplatesInfo;
|
|
531
|
+
// Reconnect when necessary
|
|
532
|
+
React.useEffect(function () {
|
|
533
|
+
actions.connect({
|
|
534
|
+
appId: appId,
|
|
535
|
+
userId: userId,
|
|
536
|
+
accessToken: accessToken,
|
|
537
|
+
isUserIdUsedForNickname: isUserIdUsedForNickname,
|
|
538
|
+
isMobile: isMobile,
|
|
539
|
+
logger: logger,
|
|
540
|
+
nickname: nickname,
|
|
541
|
+
profileUrl: profileUrl,
|
|
542
|
+
configureSession: configureSession,
|
|
543
|
+
customApiHost: customApiHost,
|
|
544
|
+
customWebSocketHost: customWebSocketHost,
|
|
545
|
+
sdkInitParams: sdkInitParams,
|
|
546
|
+
customExtensionParams: customExtensionParams,
|
|
547
|
+
initDashboardConfigs: initDashboardConfigs,
|
|
548
|
+
eventHandlers: eventHandlers,
|
|
549
|
+
initializeMessageTemplatesInfo: initializeMessageTemplatesInfo,
|
|
550
|
+
});
|
|
551
|
+
}, [appId, userId]);
|
|
552
|
+
// Disconnect on unmount
|
|
1089
553
|
useMarkAsDeliveredScheduler.useUnmount(function () {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
logger: logger,
|
|
1093
|
-
sdkDispatcher: sdkDispatcher,
|
|
1094
|
-
userDispatcher: userDispatcher,
|
|
1095
|
-
sdk: sdk,
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
}, [sdk.disconnectWebSocket]);
|
|
554
|
+
actions.disconnect({ logger: logger });
|
|
555
|
+
});
|
|
1099
556
|
// to create a pubsub to communicate between parent and child
|
|
1100
557
|
React.useEffect(function () {
|
|
1101
558
|
setLogger(LoggerFactory(logLevel));
|
|
1102
559
|
}, [logLevel]);
|
|
1103
560
|
// should move to reducer
|
|
1104
|
-
var
|
|
561
|
+
var _y = React.useState(theme), currentTheme = _y[0], setCurrentTheme = _y[1];
|
|
1105
562
|
React.useEffect(function () {
|
|
1106
563
|
setCurrentTheme(theme);
|
|
1107
564
|
}, [theme]);
|
|
@@ -1140,9 +597,6 @@ var SendbirdSDK = function (_a) {
|
|
|
1140
597
|
var isOnline = useMarkAsDeliveredScheduler.useOnlineStatus(sdkStore.sdk, logger);
|
|
1141
598
|
var markAsReadScheduler = useMarkAsReadScheduler({ isConnected: isOnline }, { logger: logger });
|
|
1142
599
|
var markAsDeliveredScheduler = useMarkAsDeliveredScheduler.useMarkAsDeliveredScheduler({ isConnected: isOnline }, { logger: logger });
|
|
1143
|
-
var localeStringSet = React__default.default.useMemo(function () {
|
|
1144
|
-
return _tslib.__assign(_tslib.__assign({}, stringSet.getStringSet('en')), stringSet$1);
|
|
1145
|
-
}, [stringSet$1]);
|
|
1146
600
|
/**
|
|
1147
601
|
* Feature Configuration - TODO
|
|
1148
602
|
* This will be moved into the UIKitConfigProvider, aftering Dashboard applies
|
|
@@ -1152,110 +606,227 @@ var SendbirdSDK = function (_a) {
|
|
|
1152
606
|
}, [multipleFilesMessageFileCountLimit]);
|
|
1153
607
|
// Emoji Manager
|
|
1154
608
|
var emojiManager = React.useMemo(function () {
|
|
1155
|
-
return new
|
|
609
|
+
return new colorMapper.EmojiManager({
|
|
1156
610
|
sdk: sdk,
|
|
1157
611
|
logger: logger,
|
|
1158
612
|
});
|
|
1159
613
|
}, [sdkStore.initialized]);
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
614
|
+
var uikitConfigs = React.useMemo(function () { return ({
|
|
615
|
+
common: {
|
|
616
|
+
enableUsingDefaultUserProfile: configs.common.enableUsingDefaultUserProfile,
|
|
617
|
+
},
|
|
618
|
+
groupChannel: {
|
|
619
|
+
enableOgtag: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableOgtag,
|
|
620
|
+
enableTypingIndicator: configs.groupChannel.channel.enableTypingIndicator,
|
|
621
|
+
enableReactions: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactions,
|
|
622
|
+
enableMention: configs.groupChannel.channel.enableMention,
|
|
623
|
+
replyType: configs.groupChannel.channel.replyType,
|
|
624
|
+
threadReplySelectType: configs.groupChannel.channel.threadReplySelectType,
|
|
625
|
+
enableVoiceMessage: configs.groupChannel.channel.enableVoiceMessage,
|
|
626
|
+
enableDocument: configs.groupChannel.channel.input.enableDocument,
|
|
627
|
+
typingIndicatorTypes: configs.groupChannel.channel.typingIndicatorTypes,
|
|
628
|
+
enableFeedback: configs.groupChannel.channel.enableFeedback,
|
|
629
|
+
enableSuggestedReplies: configs.groupChannel.channel.enableSuggestedReplies,
|
|
630
|
+
showSuggestedRepliesFor: configs.groupChannel.channel.showSuggestedRepliesFor,
|
|
631
|
+
suggestedRepliesDirection: configs.groupChannel.channel.suggestedRepliesDirection,
|
|
632
|
+
enableMarkdownForUserMessage: configs.groupChannel.channel.enableMarkdownForUserMessage,
|
|
633
|
+
enableFormTypeMessage: configs.groupChannel.channel.enableFormTypeMessage,
|
|
634
|
+
enableReactionsSupergroup: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactionsSupergroup,
|
|
635
|
+
},
|
|
636
|
+
groupChannelList: {
|
|
637
|
+
enableTypingIndicator: configs.groupChannel.channelList.enableTypingIndicator,
|
|
638
|
+
enableMessageReceiptStatus: configs.groupChannel.channelList.enableMessageReceiptStatus,
|
|
639
|
+
},
|
|
640
|
+
groupChannelSettings: {
|
|
641
|
+
enableMessageSearch: sdkInitialized && configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,
|
|
642
|
+
},
|
|
643
|
+
openChannel: {
|
|
644
|
+
enableOgtag: sdkInitialized && configsWithAppAttr(sdk).openChannel.channel.enableOgtag,
|
|
645
|
+
enableDocument: configs.openChannel.channel.input.enableDocument,
|
|
646
|
+
},
|
|
647
|
+
}); }, [
|
|
648
|
+
sdkInitialized,
|
|
649
|
+
configs.common,
|
|
650
|
+
configs.groupChannel.channel,
|
|
651
|
+
configs.groupChannel.channelList,
|
|
652
|
+
configs.groupChannel.setting,
|
|
653
|
+
configs.openChannel.channel,
|
|
654
|
+
]);
|
|
655
|
+
var storeState = React.useMemo(function () { return ({
|
|
656
|
+
stores: {
|
|
657
|
+
sdkStore: state.stores.sdkStore,
|
|
658
|
+
userStore: state.stores.userStore,
|
|
659
|
+
appInfoStore: state.stores.appInfoStore,
|
|
660
|
+
},
|
|
661
|
+
}); }, [
|
|
662
|
+
state.stores.sdkStore,
|
|
663
|
+
state.stores.userStore,
|
|
664
|
+
state.stores.appInfoStore,
|
|
665
|
+
]);
|
|
666
|
+
var uikitUploadSizeLimit = React.useMemo(function () { return (uploadSizeLimit !== null && uploadSizeLimit !== void 0 ? uploadSizeLimit : consts.DEFAULT_UPLOAD_SIZE_LIMIT); }, [uploadSizeLimit, consts.DEFAULT_UPLOAD_SIZE_LIMIT]);
|
|
667
|
+
var configImageCompression = React.useMemo(function () { return (_tslib.__assign({ compressionRate: 0.7, outputFormat: 'preserve' }, imageCompression)); }, [imageCompression]);
|
|
668
|
+
var configVoiceRecord = React.useMemo(function () {
|
|
669
|
+
var _a, _b;
|
|
670
|
+
return ({
|
|
671
|
+
maxRecordingTime: (_a = voiceRecord === null || voiceRecord === void 0 ? void 0 : voiceRecord.maxRecordingTime) !== null && _a !== void 0 ? _a : consts.VOICE_RECORDER_DEFAULT_MAX,
|
|
672
|
+
minRecordingTime: (_b = voiceRecord === null || voiceRecord === void 0 ? void 0 : voiceRecord.minRecordingTime) !== null && _b !== void 0 ? _b : consts.VOICE_RECORDER_DEFAULT_MIN,
|
|
673
|
+
});
|
|
674
|
+
}, [
|
|
675
|
+
voiceRecord === null || voiceRecord === void 0 ? void 0 : voiceRecord.maxRecordingTime,
|
|
676
|
+
voiceRecord === null || voiceRecord === void 0 ? void 0 : voiceRecord.minRecordingTime,
|
|
677
|
+
]);
|
|
678
|
+
var configUserMention = React.useMemo(function () { return ({
|
|
679
|
+
maxMentionCount: (userMention === null || userMention === void 0 ? void 0 : userMention.maxMentionCount) || 10,
|
|
680
|
+
maxSuggestionCount: (userMention === null || userMention === void 0 ? void 0 : userMention.maxSuggestionCount) || 15,
|
|
681
|
+
}); }, [
|
|
682
|
+
userMention === null || userMention === void 0 ? void 0 : userMention.maxMentionCount,
|
|
683
|
+
userMention === null || userMention === void 0 ? void 0 : userMention.maxSuggestionCount,
|
|
684
|
+
]);
|
|
685
|
+
var deprecatedConfigs = React.useMemo(function () { return ({
|
|
686
|
+
disableUserProfile: !configs.common.enableUsingDefaultUserProfile,
|
|
687
|
+
isReactionEnabled: sdkInitialized && configsWithAppAttr(sdk).groupChannel.channel.enableReactions,
|
|
688
|
+
isMentionEnabled: configs.groupChannel.channel.enableMention,
|
|
689
|
+
isVoiceMessageEnabled: configs.groupChannel.channel.enableVoiceMessage,
|
|
690
|
+
replyType: resolvedReplyType.getCaseResolvedReplyType(configs.groupChannel.channel.replyType).upperCase,
|
|
691
|
+
isTypingIndicatorEnabledOnChannelList: configs.groupChannel.channelList.enableTypingIndicator,
|
|
692
|
+
isMessageReceiptStatusEnabledOnChannelList: configs.groupChannel.channelList.enableMessageReceiptStatus,
|
|
693
|
+
showSearchIcon: sdkInitialized && configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,
|
|
694
|
+
}); }, [
|
|
695
|
+
sdkInitialized,
|
|
696
|
+
configsWithAppAttr,
|
|
697
|
+
configs.common.enableUsingDefaultUserProfile,
|
|
698
|
+
configs.groupChannel.channel.enableReactions,
|
|
699
|
+
configs.groupChannel.channel.enableMention,
|
|
700
|
+
configs.groupChannel.channel.enableVoiceMessage,
|
|
701
|
+
configs.groupChannel.channel.replyType,
|
|
702
|
+
configs.groupChannel.channelList.enableTypingIndicator,
|
|
703
|
+
configs.groupChannel.channelList.enableMessageReceiptStatus,
|
|
704
|
+
configs.groupChannel.setting.enableMessageSearch,
|
|
705
|
+
]);
|
|
706
|
+
var configState = React.useMemo(function () { return ({
|
|
707
|
+
config: _tslib.__assign(_tslib.__assign({ disableMarkAsDelivered: disableMarkAsDelivered, renderUserProfile: renderUserProfile, onStartDirectMessage: onStartDirectMessage, onUserProfileMessage: onStartDirectMessage, // legacy of onStartDirectMessage
|
|
708
|
+
allowProfileEdit: allowProfileEdit, isOnline: isOnline, userId: userId, appId: appId, accessToken: accessToken, theme: currentTheme, setCurrentTheme: setCurrentTheme, setCurrenttheme: setCurrentTheme, // deprecated: typo
|
|
709
|
+
isMultipleFilesMessageEnabled: isMultipleFilesMessageEnabled, uikitMultipleFilesMessageLimit: uikitMultipleFilesMessageLimit, logger: logger, pubSub: pubSub, userListQuery: userListQuery, htmlTextDirection: htmlTextDirection, forceLeftToRightMessageLayout: forceLeftToRightMessageLayout, markAsReadScheduler: markAsReadScheduler, markAsDeliveredScheduler: markAsDeliveredScheduler, uikitUploadSizeLimit: uikitUploadSizeLimit, imageCompression: configImageCompression, voiceRecord: configVoiceRecord, userMention: configUserMention }, uikitConfigs), deprecatedConfigs),
|
|
710
|
+
}); }, [
|
|
711
|
+
disableMarkAsDelivered,
|
|
712
|
+
renderUserProfile,
|
|
713
|
+
onStartDirectMessage,
|
|
714
|
+
allowProfileEdit,
|
|
715
|
+
isOnline,
|
|
716
|
+
userId,
|
|
717
|
+
appId,
|
|
718
|
+
accessToken,
|
|
719
|
+
currentTheme,
|
|
720
|
+
setCurrentTheme,
|
|
721
|
+
isMultipleFilesMessageEnabled,
|
|
722
|
+
uikitMultipleFilesMessageLimit,
|
|
723
|
+
logger,
|
|
724
|
+
pubSub,
|
|
725
|
+
userListQuery,
|
|
726
|
+
htmlTextDirection,
|
|
727
|
+
forceLeftToRightMessageLayout,
|
|
728
|
+
markAsReadScheduler,
|
|
729
|
+
markAsDeliveredScheduler,
|
|
730
|
+
uikitUploadSizeLimit,
|
|
731
|
+
configImageCompression,
|
|
732
|
+
configVoiceRecord,
|
|
733
|
+
configUserMention,
|
|
734
|
+
uikitConfigs,
|
|
735
|
+
deprecatedConfigs,
|
|
736
|
+
]);
|
|
737
|
+
var utilsState = React.useMemo(function () { return ({
|
|
738
|
+
utils: {
|
|
739
|
+
updateMessageTemplatesInfo: updateMessageTemplatesInfo,
|
|
740
|
+
getCachedTemplate: getCachedTemplate,
|
|
741
|
+
},
|
|
742
|
+
}); }, [
|
|
743
|
+
updateMessageTemplatesInfo,
|
|
744
|
+
getCachedTemplate,
|
|
745
|
+
]);
|
|
746
|
+
useDeepCompareEffect.useDeepCompareEffect(function () {
|
|
747
|
+
updateState(_tslib.__assign(_tslib.__assign(_tslib.__assign(_tslib.__assign({}, storeState), utilsState), configState), { eventHandlers: eventHandlers, emojiManager: emojiManager }));
|
|
748
|
+
}, [
|
|
749
|
+
storeState,
|
|
750
|
+
configState,
|
|
751
|
+
eventHandlers,
|
|
752
|
+
emojiManager,
|
|
753
|
+
utilsState,
|
|
754
|
+
]);
|
|
755
|
+
return null;
|
|
756
|
+
};
|
|
757
|
+
var InternalSendbirdProvider = function (_a) {
|
|
758
|
+
var children = _a.children, stringSet$1 = _a.stringSet, breakpoint = _a.breakpoint, dateLocale = _a.dateLocale;
|
|
759
|
+
var storeRef = React.useRef(SendbirdContext.createStore(SendbirdContext.initialState));
|
|
760
|
+
var localeStringSet = React.useMemo(function () {
|
|
761
|
+
return _tslib.__assign(_tslib.__assign({}, stringSet.getStringSet('en')), stringSet$1);
|
|
762
|
+
}, [stringSet$1]);
|
|
763
|
+
return (React__default.default.createElement(SendbirdContext.SendbirdContext.Provider, { value: storeRef.current },
|
|
764
|
+
React__default.default.createElement(MediaQueryContext.MediaQueryProvider, { logger: storeRef.current.getState().config.logger, breakpoint: breakpoint },
|
|
1250
765
|
React__default.default.createElement(LocalizationContext.LocalizationProvider, { stringSet: localeStringSet, dateLocale: dateLocale },
|
|
1251
766
|
React__default.default.createElement(VoiceMessageProvider, null,
|
|
1252
|
-
React__default.default.createElement(
|
|
767
|
+
React__default.default.createElement(hooks_useModal.GlobalModalProvider, null, children)))),
|
|
1253
768
|
React__default.default.createElement(ui_ContextMenu.EmojiReactionListRoot, null),
|
|
1254
769
|
React__default.default.createElement(ui_Modal.ModalRoot, null),
|
|
1255
770
|
React__default.default.createElement(ui_ContextMenu.MenuRoot, null)));
|
|
1256
771
|
};
|
|
772
|
+
var SendbirdContextProvider = function (props) {
|
|
773
|
+
var children = props.children;
|
|
774
|
+
return (React__default.default.createElement(InternalSendbirdProvider, { stringSet: props.stringSet, breakpoint: props.breakpoint, dateLocale: props.dateLocale },
|
|
775
|
+
React__default.default.createElement(SendbirdContextManager, _tslib.__assign({}, props)),
|
|
776
|
+
children));
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
// For Exportation
|
|
780
|
+
var SendbirdProvider = function (props) {
|
|
781
|
+
var localConfigs = uikitConfigMapper({
|
|
782
|
+
legacyConfig: {
|
|
783
|
+
replyType: props.replyType,
|
|
784
|
+
isMentionEnabled: props.isMentionEnabled,
|
|
785
|
+
isReactionEnabled: props.isReactionEnabled,
|
|
786
|
+
disableUserProfile: props.disableUserProfile,
|
|
787
|
+
isVoiceMessageEnabled: props.isVoiceMessageEnabled,
|
|
788
|
+
isTypingIndicatorEnabledOnChannelList: props.isTypingIndicatorEnabledOnChannelList,
|
|
789
|
+
isMessageReceiptStatusEnabledOnChannelList: props.isMessageReceiptStatusEnabledOnChannelList,
|
|
790
|
+
showSearchIcon: props.showSearchIcon,
|
|
791
|
+
},
|
|
792
|
+
uikitOptions: props.uikitOptions,
|
|
793
|
+
});
|
|
794
|
+
return (React__default.default.createElement(uikitTools.UIKitConfigProvider, { storage: uikitConfigStorage, localConfigs: {
|
|
795
|
+
common: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.common,
|
|
796
|
+
groupChannel: {
|
|
797
|
+
channel: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.groupChannel,
|
|
798
|
+
channelList: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.groupChannelList,
|
|
799
|
+
setting: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.groupChannelSettings,
|
|
800
|
+
},
|
|
801
|
+
openChannel: {
|
|
802
|
+
channel: localConfigs === null || localConfigs === void 0 ? void 0 : localConfigs.openChannel,
|
|
803
|
+
},
|
|
804
|
+
} },
|
|
805
|
+
React__default.default.createElement(SendbirdContextProvider, _tslib.__assign({}, props))));
|
|
806
|
+
};
|
|
807
|
+
var withSendbirdContext = function (OriginalComponent, mapStoreToProps) {
|
|
808
|
+
var ContextAwareComponent = function (props) {
|
|
809
|
+
var _a = useSendbird.useSendbird(), state = _a.state, actions = _a.actions;
|
|
810
|
+
var context = _tslib.__assign(_tslib.__assign({}, state), actions);
|
|
811
|
+
if (!mapStoreToProps || typeof mapStoreToProps !== 'function') {
|
|
812
|
+
// eslint-disable-next-line no-console
|
|
813
|
+
console.warn('Second parameter to withSendbirdContext must be a pure function');
|
|
814
|
+
}
|
|
815
|
+
var mergedProps = (mapStoreToProps && typeof mapStoreToProps === 'function')
|
|
816
|
+
? _tslib.__assign(_tslib.__assign({}, mapStoreToProps(context)), props) : _tslib.__assign(_tslib.__assign({}, context), props);
|
|
817
|
+
return React__default.default.createElement(React__default.default.Fragment, null,
|
|
818
|
+
React__default.default.createElement(OriginalComponent, _tslib.__assign({}, mergedProps)));
|
|
819
|
+
};
|
|
820
|
+
var componentName = OriginalComponent.displayName || OriginalComponent.name || 'Component';
|
|
821
|
+
ContextAwareComponent.displayName = "SendbirdAware".concat(componentName);
|
|
822
|
+
return ContextAwareComponent;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* @deprecated This function is deprecated. Use `useSendbirdStateContext` instead.
|
|
826
|
+
* */
|
|
827
|
+
var withSendBird = withSendbirdContext;
|
|
1257
828
|
|
|
1258
|
-
exports.useSendbirdStateContext = useSendbirdStateContext.useSendbirdStateContext;
|
|
1259
829
|
exports.SendbirdProvider = SendbirdProvider;
|
|
1260
830
|
exports.default = SendbirdProvider;
|
|
831
|
+
exports.withSendBird = withSendBird;
|
|
1261
832
|
//# sourceMappingURL=SendbirdProvider.js.map
|