@@ -26,22 +26,14 @@ export interface AppProps {
2626 profileUrl ?: SendbirdProviderProps [ 'profileUrl' ] ;
2727 dateLocale ?: SendbirdProviderProps [ 'dateLocale' ] ;
2828 config ?: SendbirdProviderProps [ 'config' ] ;
29- isReactionEnabled ?: SendbirdProviderProps [ 'isReactionEnabled' ] ;
30- isMentionEnabled ?: SendbirdProviderProps [ 'isMentionEnabled' ] ;
31- isVoiceMessageEnabled ?: SendbirdProviderProps [ 'isVoiceMessageEnabled' ] ;
3229 voiceRecord ?: SendbirdProviderProps [ 'voiceRecord' ] ;
33- replyType ?: SendbirdProviderProps [ 'replyType' ] ;
3430 isMultipleFilesMessageEnabled ?: SendbirdProviderProps [ 'isMultipleFilesMessageEnabled' ] ;
3531 colorSet ?: SendbirdProviderProps [ 'colorSet' ] ;
3632 stringSet ?: SendbirdProviderProps [ 'stringSet' ] ;
3733 allowProfileEdit ?: SendbirdProviderProps [ 'allowProfileEdit' ] ;
38- disableUserProfile ?: SendbirdProviderProps [ 'disableUserProfile' ] ;
3934 disableMarkAsDelivered ?: SendbirdProviderProps [ 'disableMarkAsDelivered' ] ;
4035 renderUserProfile ?: SendbirdProviderProps [ 'renderUserProfile' ] ;
41- showSearchIcon ?: SendbirdProviderProps [ 'showSearchIcon' ] ;
4236 imageCompression ?: SendbirdProviderProps [ 'imageCompression' ] ;
43- isTypingIndicatorEnabledOnChannelList ?: SendbirdProviderProps [ 'isTypingIndicatorEnabledOnChannelList' ] ;
44- isMessageReceiptStatusEnabledOnChannelList ?: SendbirdProviderProps [ 'isMessageReceiptStatusEnabledOnChannelList' ] ;
4537 uikitOptions ?: SendbirdProviderProps [ 'uikitOptions' ] ;
4638 isUserIdUsedForNickname ?: SendbirdProviderProps [ 'isUserIdUsedForNickname' ] ;
4739 sdkInitParams ?: SendbirdProviderProps [ 'sdkInitParams' ] ;
@@ -57,6 +49,23 @@ export interface AppProps {
5749 * If this option is enabled, it uses legacy modules (Channel, ChannelList) that are not applied local caching.
5850 * */
5951 enableLegacyChannelModules ?: boolean ;
52+
53+ /** @deprecated Please use `uikitOptions.common.enableUsingDefaultUserProfile` instead * */
54+ disableUserProfile ?: SendbirdProviderProps [ 'disableUserProfile' ] ;
55+ /** @deprecated Please use `uikitOptions.groupChannel.replyType` instead * */
56+ replyType ?: SendbirdProviderProps [ 'replyType' ] ;
57+ /** @deprecated Please use `uikitOptions.groupChannel.enableReactions` instead * */
58+ isReactionEnabled ?: SendbirdProviderProps [ 'isReactionEnabled' ] ;
59+ /** @deprecated Please use `uikitOptions.groupChannel.enableMention` instead * */
60+ isMentionEnabled ?: SendbirdProviderProps [ 'isMentionEnabled' ] ;
61+ /** @deprecated Please use `uikitOptions.groupChannel.enableVoiceMessage` instead * */
62+ isVoiceMessageEnabled ?: SendbirdProviderProps [ 'isVoiceMessageEnabled' ] ;
63+ /** @deprecated Please use `uikitOptions.groupChannelList.enableTypingIndicator` instead * */
64+ isTypingIndicatorEnabledOnChannelList ?: SendbirdProviderProps [ 'isTypingIndicatorEnabledOnChannelList' ] ;
65+ /** @deprecated Please use `uikitOptions.groupChannelList.enableMessageReceiptStatus` instead * */
66+ isMessageReceiptStatusEnabledOnChannelList ?: SendbirdProviderProps [ 'isMessageReceiptStatusEnabledOnChannelList' ] ;
67+ /** @deprecated Please use `uikitOptions.groupChannelSettings.enableMessageSearch` instead * */
68+ showSearchIcon ?: SendbirdProviderProps [ 'showSearchIcon' ] ;
6069}
6170
6271export default function App ( props : AppProps ) {
@@ -86,6 +95,9 @@ export default function App(props: AppProps) {
8695 sdkInitParams,
8796 customExtensionParams,
8897 eventHandlers,
98+ isMultipleFilesMessageEnabled,
99+ isUserIdUsedForNickname = true ,
100+ enableLegacyChannelModules = false ,
89101 uikitOptions,
90102 // The below configs are duplicates of the Dashboard UIKit Configs.
91103 // Since their default values will be set in the Sendbird component,
@@ -96,11 +108,8 @@ export default function App(props: AppProps) {
96108 replyType,
97109 disableUserProfile,
98110 isVoiceMessageEnabled,
99- isMultipleFilesMessageEnabled,
100111 isTypingIndicatorEnabledOnChannelList,
101112 isMessageReceiptStatusEnabledOnChannelList,
102- isUserIdUsedForNickname = true ,
103- enableLegacyChannelModules = false ,
104113 } = props ;
105114 const [ currentChannel , setCurrentChannel ] = useState ( null ) ;
106115
@@ -120,18 +129,19 @@ export default function App(props: AppProps) {
120129 userListQuery = { userListQuery }
121130 config = { config }
122131 colorSet = { colorSet }
123- disableUserProfile = { disableUserProfile }
124132 disableMarkAsDelivered = { disableMarkAsDelivered }
125133 renderUserProfile = { renderUserProfile }
126134 imageCompression = { imageCompression }
127- isReactionEnabled = { isReactionEnabled }
128- isMentionEnabled = { isMentionEnabled }
129- isVoiceMessageEnabled = { isVoiceMessageEnabled }
130135 isMultipleFilesMessageEnabled = { isMultipleFilesMessageEnabled }
131136 voiceRecord = { voiceRecord }
132137 onUserProfileMessage = { ( channel ) => {
133138 setCurrentChannel ( channel ) ;
134139 } }
140+ uikitOptions = { uikitOptions }
141+ isUserIdUsedForNickname = { isUserIdUsedForNickname }
142+ sdkInitParams = { sdkInitParams }
143+ customExtensionParams = { customExtensionParams }
144+ eventHandlers = { eventHandlers }
135145 isTypingIndicatorEnabledOnChannelList = {
136146 isTypingIndicatorEnabledOnChannelList
137147 }
@@ -140,23 +150,22 @@ export default function App(props: AppProps) {
140150 }
141151 replyType = { replyType }
142152 showSearchIcon = { showSearchIcon }
143- uikitOptions = { uikitOptions }
144- isUserIdUsedForNickname = { isUserIdUsedForNickname }
145- sdkInitParams = { sdkInitParams }
146- customExtensionParams = { customExtensionParams }
147- eventHandlers = { eventHandlers }
153+ disableUserProfile = { disableUserProfile }
154+ isReactionEnabled = { isReactionEnabled }
155+ isMentionEnabled = { isMentionEnabled }
156+ isVoiceMessageEnabled = { isVoiceMessageEnabled }
148157 >
149158 < AppLayout
150- isReactionEnabled = { isReactionEnabled }
151- replyType = { replyType }
152- showSearchIcon = { showSearchIcon }
153159 isMessageGroupingEnabled = { isMessageGroupingEnabled }
154160 allowProfileEdit = { allowProfileEdit }
155161 onProfileEditSuccess = { onProfileEditSuccess }
156162 disableAutoSelect = { disableAutoSelect }
157163 currentChannel = { currentChannel }
158164 setCurrentChannel = { setCurrentChannel }
159165 enableLegacyChannelModules = { enableLegacyChannelModules }
166+ isReactionEnabled = { isReactionEnabled }
167+ replyType = { replyType }
168+ showSearchIcon = { showSearchIcon }
160169 />
161170 </ Sendbird >
162171 ) ;
0 commit comments