@cometchat/chat-uikit-react 4.3.29 → 4.3.30

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.
Files changed (244) hide show
  1. package/package.json +3 -3
  2. package/dist/assets/Audio-Call.svg +0 -11
  3. package/dist/assets/Audio-Call2x.svg +0 -11
  4. package/dist/assets/Copy.svg +0 -17
  5. package/dist/assets/IncomingAudio.svg +0 -5
  6. package/dist/assets/IncomingVideo.svg +0 -6
  7. package/dist/assets/Info.svg +0 -13
  8. package/dist/assets/InfoSimpleIcon.svg +0 -4
  9. package/dist/assets/LoadingIcon.svg +0 -15
  10. package/dist/assets/Locked.svg +0 -10
  11. package/dist/assets/MissedAudio.svg +0 -5
  12. package/dist/assets/MissedVideo.svg +0 -6
  13. package/dist/assets/More.svg +0 -9
  14. package/dist/assets/More@2x.svg +0 -9
  15. package/dist/assets/OutgoingAudio.svg +0 -5
  16. package/dist/assets/OutgoingVideo.svg +0 -6
  17. package/dist/assets/Plus-1.svg +0 -12
  18. package/dist/assets/Private.svg +0 -10
  19. package/dist/assets/StartConversation.svg +0 -13
  20. package/dist/assets/Stickers.svg +0 -16
  21. package/dist/assets/Video-call.svg +0 -12
  22. package/dist/assets/Video-call2x.svg +0 -12
  23. package/dist/assets/VideoCall2xIcon.svg +0 -12
  24. package/dist/assets/addreaction.svg +0 -9
  25. package/dist/assets/ai-bot.svg +0 -3
  26. package/dist/assets/ai-empty.svg +0 -22
  27. package/dist/assets/ai-error.svg +0 -3
  28. package/dist/assets/attachment-file.svg +0 -14
  29. package/dist/assets/audio-file.svg +0 -12
  30. package/dist/assets/backbutton.svg +0 -12
  31. package/dist/assets/close.svg +0 -12
  32. package/dist/assets/close2x.svg +0 -12
  33. package/dist/assets/collaborativedocument.svg +0 -13
  34. package/dist/assets/collaborativewhiteboard.svg +0 -12
  35. package/dist/assets/create-button.svg +0 -12
  36. package/dist/assets/delete.svg +0 -15
  37. package/dist/assets/deleteicon.svg +0 -15
  38. package/dist/assets/down-arrow.svg +0 -1
  39. package/dist/assets/download.svg +0 -13
  40. package/dist/assets/editicon.svg +0 -14
  41. package/dist/assets/heart-reaction.png +0 -0
  42. package/dist/assets/heart.svg +0 -11
  43. package/dist/assets/increase-size.svg +0 -6
  44. package/dist/assets/loading.svg +0 -16
  45. package/dist/assets/mention-icon.svg +0 -11
  46. package/dist/assets/message-delivered.svg +0 -5
  47. package/dist/assets/message-read.svg +0 -5
  48. package/dist/assets/message-sent.svg +0 -9
  49. package/dist/assets/mic.svg +0 -11
  50. package/dist/assets/more-icon.svg +0 -9
  51. package/dist/assets/photolibrary.svg +0 -11
  52. package/dist/assets/placeholder.png +0 -0
  53. package/dist/assets/plus-rotated.svg +0 -13
  54. package/dist/assets/plus.svg +0 -13
  55. package/dist/assets/polls.svg +0 -14
  56. package/dist/assets/reduce-size.svg +0 -6
  57. package/dist/assets/search.svg +0 -4
  58. package/dist/assets/send-message-in-private.svg +0 -6
  59. package/dist/assets/send.svg +0 -12
  60. package/dist/assets/side-arrow.svg +0 -1
  61. package/dist/assets/smileys.svg +0 -16
  62. package/dist/assets/spinner.svg +0 -15
  63. package/dist/assets/stipop.svg +0 -9
  64. package/dist/assets/stop.svg +0 -1
  65. package/dist/assets/thread-arrow.svg +0 -1
  66. package/dist/assets/threadIndicatorIcon.svg +0 -11
  67. package/dist/assets/threadicon.svg +0 -14
  68. package/dist/assets/translation.svg +0 -16
  69. package/dist/assets/video.svg +0 -12
  70. package/dist/assets/wait.svg +0 -4
  71. package/dist/assets/warning-small.svg +0 -5
  72. package/dist/index.d.ts +0 -3366
  73. package/dist/index.js +0 -17
  74. package/dist/index.js.map +0 -1
  75. package/dist/types/AI/AIAssistBot/AIAssistBotChatView.d.ts +0 -10
  76. package/dist/types/AI/AIAssistBot/AIAssistBotDecorator.d.ts +0 -22
  77. package/dist/types/AI/AIAssistBot/AIAssistBotExtension.d.ts +0 -8
  78. package/dist/types/AI/AIAssistBot/AIAssistBotOptionsView.d.ts +0 -11
  79. package/dist/types/AI/AIAssistBot/style.d.ts +0 -37
  80. package/dist/types/AI/AIAssistBot/utils.d.ts +0 -5
  81. package/dist/types/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -20
  82. package/dist/types/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  83. package/dist/types/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -9
  84. package/dist/types/AI/AIConversationStarter/style.d.ts +0 -26
  85. package/dist/types/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  86. package/dist/types/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  87. package/dist/types/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -10
  88. package/dist/types/AI/AIConversationSummary/style.d.ts +0 -28
  89. package/dist/types/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -25
  90. package/dist/types/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  91. package/dist/types/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -12
  92. package/dist/types/AI/AISmartReplies/style.d.ts +0 -28
  93. package/dist/types/Calling/CallingExtension.d.ts +0 -8
  94. package/dist/types/Calling/CallingExtensionDecorator.d.ts +0 -75
  95. package/dist/types/Calling/CometChatCallButtons/hooks.d.ts +0 -3
  96. package/dist/types/Calling/CometChatCallButtons/index.d.ts +0 -19
  97. package/dist/types/Calling/CometChatCallButtons/style.d.ts +0 -28
  98. package/dist/types/Calling/CometChatCallLogDetails/hooks.d.ts +0 -2
  99. package/dist/types/Calling/CometChatCallLogDetails/index.d.ts +0 -17
  100. package/dist/types/Calling/CometChatCallLogDetails/style.d.ts +0 -21
  101. package/dist/types/Calling/CometChatCallLogHistory/hooks.d.ts +0 -2
  102. package/dist/types/Calling/CometChatCallLogHistory/index.d.ts +0 -27
  103. package/dist/types/Calling/CometChatCallLogHistory/style.d.ts +0 -41
  104. package/dist/types/Calling/CometChatCallLogParticipants/index.d.ts +0 -19
  105. package/dist/types/Calling/CometChatCallLogParticipants/style.d.ts +0 -31
  106. package/dist/types/Calling/CometChatCallLogRecordings/index.d.ts +0 -21
  107. package/dist/types/Calling/CometChatCallLogRecordings/style.d.ts +0 -35
  108. package/dist/types/Calling/CometChatCallLogs/hooks.d.ts +0 -2
  109. package/dist/types/Calling/CometChatCallLogs/index.d.ts +0 -37
  110. package/dist/types/Calling/CometChatCallLogs/style.d.ts +0 -37
  111. package/dist/types/Calling/CometChatCallLogsWithDetails/hooks.d.ts +0 -4
  112. package/dist/types/Calling/CometChatCallLogsWithDetails/index.d.ts +0 -10
  113. package/dist/types/Calling/CometChatCallLogsWithDetails/style.d.ts +0 -13
  114. package/dist/types/Calling/CometChatIncomingCall/hooks.d.ts +0 -2
  115. package/dist/types/Calling/CometChatIncomingCall/index.d.ts +0 -19
  116. package/dist/types/Calling/CometChatIncomingCall/style.d.ts +0 -72
  117. package/dist/types/Calling/CometChatOngoingCall/hooks.d.ts +0 -2
  118. package/dist/types/Calling/CometChatOngoingCall/index.d.ts +0 -15
  119. package/dist/types/Calling/CometChatOngoingCall/style.d.ts +0 -2
  120. package/dist/types/Calling/CometChatOutgoingCall/hooks.d.ts +0 -2
  121. package/dist/types/Calling/CometChatOutgoingCall/index.d.ts +0 -16
  122. package/dist/types/Calling/CometChatOutgoingCall/style.d.ts +0 -39
  123. package/dist/types/Calling/Utils/CallDetailsUtils.d.ts +0 -11
  124. package/dist/types/Calling/Utils/CallingDetailsUtils.d.ts +0 -7
  125. package/dist/types/Calling/Utils/utils.d.ts +0 -7
  126. package/dist/types/CometChatAddMembers/hooks.d.ts +0 -11
  127. package/dist/types/CometChatAddMembers/index.d.ts +0 -229
  128. package/dist/types/CometChatAddMembers/style.d.ts +0 -13
  129. package/dist/types/CometChatBannedMembers/controller.d.ts +0 -37
  130. package/dist/types/CometChatBannedMembers/hooks.d.ts +0 -17
  131. package/dist/types/CometChatBannedMembers/index.d.ts +0 -228
  132. package/dist/types/CometChatBannedMembers/style.d.ts +0 -19
  133. package/dist/types/CometChatContacts/index.d.ts +0 -22
  134. package/dist/types/CometChatContacts/style.d.ts +0 -20
  135. package/dist/types/CometChatConversations/controller.d.ts +0 -74
  136. package/dist/types/CometChatConversations/hooks.d.ts +0 -22
  137. package/dist/types/CometChatConversations/index.d.ts +0 -344
  138. package/dist/types/CometChatConversations/style.d.ts +0 -29
  139. package/dist/types/CometChatConversationsWithMessages/hooks.d.ts +0 -2
  140. package/dist/types/CometChatConversationsWithMessages/index.d.ts +0 -15
  141. package/dist/types/CometChatConversationsWithMessages/style.d.ts +0 -87
  142. package/dist/types/CometChatCustomHooks.d.ts +0 -27
  143. package/dist/types/CometChatDetails/hooks.d.ts +0 -17
  144. package/dist/types/CometChatDetails/index.d.ts +0 -186
  145. package/dist/types/CometChatDetails/style.d.ts +0 -40
  146. package/dist/types/CometChatGroupMembers/controller.d.ts +0 -38
  147. package/dist/types/CometChatGroupMembers/hooks.d.ts +0 -22
  148. package/dist/types/CometChatGroupMembers/index.d.ts +0 -281
  149. package/dist/types/CometChatGroupMembers/style.d.ts +0 -24
  150. package/dist/types/CometChatGroups/controller.d.ts +0 -44
  151. package/dist/types/CometChatGroups/hooks.d.ts +0 -15
  152. package/dist/types/CometChatGroups/index.d.ts +0 -215
  153. package/dist/types/CometChatGroups/style.d.ts +0 -11
  154. package/dist/types/CometChatGroupsWithMessages/hooks.d.ts +0 -3
  155. package/dist/types/CometChatGroupsWithMessages/index.d.ts +0 -14
  156. package/dist/types/CometChatGroupsWithMessages/style.d.ts +0 -874
  157. package/dist/types/CometChatMessageComposer/hooks.d.ts +0 -65
  158. package/dist/types/CometChatMessageComposer/index.d.ts +0 -221
  159. package/dist/types/CometChatMessageComposer/style.d.ts +0 -92
  160. package/dist/types/CometChatMessageHeader/hooks.d.ts +0 -3
  161. package/dist/types/CometChatMessageHeader/index.d.ts +0 -29
  162. package/dist/types/CometChatMessageHeader/style.d.ts +0 -56
  163. package/dist/types/CometChatMessageInformation/index.d.ts +0 -29
  164. package/dist/types/CometChatMessageInformation/style.d.ts +0 -48
  165. package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +0 -58
  166. package/dist/types/CometChatMessageList/controller.d.ts +0 -48
  167. package/dist/types/CometChatMessageList/style.d.ts +0 -237
  168. package/dist/types/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
  169. package/dist/types/CometChatMessages/hooks.d.ts +0 -2
  170. package/dist/types/CometChatMessages/index.d.ts +0 -25
  171. package/dist/types/CometChatMessages/style.d.ts +0 -26
  172. package/dist/types/CometChatThemeContext.d.ts +0 -5
  173. package/dist/types/CometChatThreadedMessages/hooks.d.ts +0 -2
  174. package/dist/types/CometChatThreadedMessages/index.d.ts +0 -19
  175. package/dist/types/CometChatThreadedMessages/style.d.ts +0 -21
  176. package/dist/types/CometChatTransferOwnership/hooks.d.ts +0 -7
  177. package/dist/types/CometChatTransferOwnership/index.d.ts +0 -163
  178. package/dist/types/CometChatTransferOwnership/style.d.ts +0 -17
  179. package/dist/types/CometChatUserMemberWrapper/index.d.ts +0 -25
  180. package/dist/types/CometChatUsers/controller.d.ts +0 -34
  181. package/dist/types/CometChatUsers/hooks.d.ts +0 -18
  182. package/dist/types/CometChatUsers/index.d.ts +0 -260
  183. package/dist/types/CometChatUsers/style.d.ts +0 -11
  184. package/dist/types/CometChatUsersWithMessages/hooks.d.ts +0 -2
  185. package/dist/types/CometChatUsersWithMessages/index.d.ts +0 -12
  186. package/dist/types/CometChatUsersWithMessages/style.d.ts +0 -70
  187. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -18
  188. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -8
  189. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -21
  190. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -18
  191. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -8
  192. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -21
  193. package/dist/types/Extensions/ImageModeration/ImageModerationConfiguration.d.ts +0 -15
  194. package/dist/types/Extensions/ImageModeration/ImageModerationExtension.d.ts +0 -8
  195. package/dist/types/Extensions/ImageModeration/ImageModerationExtensionDecorator.d.ts +0 -26
  196. package/dist/types/Extensions/LinkPreview/LinkPreviewConfiguration.d.ts +0 -8
  197. package/dist/types/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -8
  198. package/dist/types/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -24
  199. package/dist/types/Extensions/MessageTranslation/MessageTranslationConfiguration.d.ts +0 -14
  200. package/dist/types/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -8
  201. package/dist/types/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -19
  202. package/dist/types/Extensions/Polls/PollsConfiguration.d.ts +0 -29
  203. package/dist/types/Extensions/Polls/PollsExtension.d.ts +0 -8
  204. package/dist/types/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -26
  205. package/dist/types/Extensions/SmartReplies/SmartRepliesConfiguration.d.ts +0 -8
  206. package/dist/types/Extensions/SmartReplies/SmartRepliesExtension.d.ts +0 -9
  207. package/dist/types/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +0 -35
  208. package/dist/types/Extensions/Stickers/StickersConfiguration.d.ts +0 -14
  209. package/dist/types/Extensions/Stickers/StickersExtension.d.ts +0 -8
  210. package/dist/types/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -27
  211. package/dist/types/Extensions/TextModerator/TextModeratorExtension.d.ts +0 -6
  212. package/dist/types/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +0 -8
  213. package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -5
  214. package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -8
  215. package/dist/types/Shared/CometChatUIKit/CometChatUIKit.d.ts +0 -42
  216. package/dist/types/Shared/Framework/AIExtensionDataSource.d.ts +0 -6
  217. package/dist/types/Shared/Framework/ChatConfigurator.d.ts +0 -8
  218. package/dist/types/Shared/Framework/DataSource.d.ts +0 -56
  219. package/dist/types/Shared/Framework/DataSourceDecorator.d.ts +0 -59
  220. package/dist/types/Shared/Framework/ExtensionsDataSource.d.ts +0 -6
  221. package/dist/types/Shared/Utils/MessageUtils.d.ts +0 -16
  222. package/dist/types/Shared/Utils/MessagesDataSource.d.ts +0 -92
  223. package/dist/types/Shared/Views/CometChatButton/hooks.d.ts +0 -11
  224. package/dist/types/Shared/Views/CometChatButton/index.d.ts +0 -19
  225. package/dist/types/Shared/Views/CometChatCheckbox/hooks.d.ts +0 -9
  226. package/dist/types/Shared/Views/CometChatCheckbox/index.d.ts +0 -13
  227. package/dist/types/Shared/Views/CometChatContextMenu/index.d.ts +0 -13
  228. package/dist/types/Shared/Views/CometChatContextMenu/style.d.ts +0 -28
  229. package/dist/types/Shared/Views/CometChatList/hooks.d.ts +0 -20
  230. package/dist/types/Shared/Views/CometChatList/index.d.ts +0 -151
  231. package/dist/types/Shared/Views/CometChatList/style.d.ts +0 -18
  232. package/dist/types/Shared/Views/CometChatListItem/hooks.d.ts +0 -9
  233. package/dist/types/Shared/Views/CometChatListItem/index.d.ts +0 -29
  234. package/dist/types/Shared/Views/CometChatMenuList/hooks.d.ts +0 -12
  235. package/dist/types/Shared/Views/CometChatMenuList/index.d.ts +0 -13
  236. package/dist/types/Shared/Views/CometChatMessageBubble/index.d.ts +0 -22
  237. package/dist/types/Shared/Views/CometChatMessageBubble/style.d.ts +0 -22
  238. package/dist/types/Shared/Views/CometChatRadioButton/hooks.d.ts +0 -9
  239. package/dist/types/Shared/Views/CometChatRadioButton/index.d.ts +0 -13
  240. package/dist/types/Shared/Views/CometChatTabs/TabsStyle.d.ts +0 -31
  241. package/dist/types/Shared/Views/CometChatTabs/index.d.ts +0 -11
  242. package/dist/types/Shared/Views/CometChatTabs/style.d.ts +0 -42
  243. package/dist/types/Shared/Views/LitElementsWrapper/LitElementsWrapper.d.ts +0 -49
  244. package/dist/types/index.d.ts +0 -84
@@ -1,215 +0,0 @@
1
- import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
- import { CSSProperties, JSX } from "react";
3
- import { CometChatOption, SelectionMode, States, TitleAlignment } from "@cometchat/uikit-resources";
4
- import { GroupsStyle } from "@cometchat/uikit-shared";
5
- interface IGroupsProps {
6
- /**
7
- * Custom view to render on the top-right of the component
8
- */
9
- menus?: JSX.Element;
10
- /**
11
- * Title of the component
12
- *
13
- * @defaultValue `localize("GROUPS")`
14
- */
15
- title?: string;
16
- /**
17
- * Alignment of the `title` text
18
- *
19
- * @defaultValue `TitleAlignment.left`
20
- */
21
- titleAlignment?: TitleAlignment;
22
- /**
23
- * Text to be displayed when the search input has no value
24
- *
25
- * @defaultValue `localize("SEARCH")`
26
- */
27
- searchPlaceholderText?: string;
28
- /**
29
- * Image URL for the search icon to use in the search bar
30
- *
31
- * @defaultValue `./assets/search.svg`
32
- */
33
- searchIconURL?: string;
34
- /**
35
- * Hide the search bar
36
- *
37
- * @defaulValue `false`
38
- */
39
- hideSearch?: boolean;
40
- /**
41
- * Request builder to fetch groups
42
- *
43
- * @remarks
44
- * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
45
- * the search keyword of this request builder is set to the text in the search input
46
- *
47
- * @defaultValue Default request builder having the limit set to 30
48
- */
49
- groupsRequestBuilder?: CometChat.GroupsRequestBuilder;
50
- /**
51
- * Request builder with search parameters to fetch groups
52
- *
53
- * @remarks
54
- * If the search input is not empty,
55
- * the search keyword of this request builder is set to the text in the search input
56
- */
57
- searchRequestBuilder?: CometChat.GroupsRequestBuilder;
58
- /**
59
- * Function to call whenever the component encounters an error
60
- */
61
- onError?: ((error: CometChat.CometChatException) => void) | null;
62
- /**
63
- * Custom list item view to be rendered for each group in the fetched list
64
- */
65
- listItemView?: (group: CometChat.Group) => JSX.Element;
66
- /**
67
- * Hide the separator at the bottom of the default list item view
68
- *
69
- * @defaultValue `false`
70
- */
71
- hideSeparator?: boolean;
72
- /**
73
- * Custom subtitle view to be rendered for each group in the fetched list
74
- *
75
- * @remarks
76
- * This prop is used if `listItemView` prop is not provided
77
- */
78
- subtitleView?: (group: CometChat.Group) => JSX.Element;
79
- /**
80
- * List of actions available on mouse over on the default list item component
81
- */
82
- options?: (group: CometChat.Group) => CometChatOption[];
83
- /**
84
- * Selection mode to use for the default tail view
85
- *
86
- * @remarks
87
- * This prop is used if `listItemView` prop is not provided.
88
- *
89
- * @defaultValue `SelectionMode.none`
90
- */
91
- selectionMode?: SelectionMode;
92
- /**
93
- * Function to call when a group from the fetched list is selected
94
- *
95
- * @remarks
96
- * This prop is used if `selectionMode` prop is not `SelectionMode.none`
97
- */
98
- onSelect?: (group: CometChat.Group, selected: boolean) => void;
99
- /**
100
- * Function to call on click of the default list item view of a group
101
- */
102
- onItemClick?: (group: CometChat.Group) => void;
103
- /**
104
- * Group to highlight
105
- *
106
- * @remarks
107
- * This prop is used if `listItemView` prop is not provided
108
- */
109
- activeGroup?: CometChat.Group;
110
- /**
111
- * Image URL for the default loading view
112
- *
113
- * @defaultValue `./assets/spinner.svg`
114
- */
115
- loadingIconURL?: string;
116
- /**
117
- * Custom view for the loading state of the component
118
- */
119
- loadingStateView?: JSX.Element;
120
- /**
121
- * Text to display in the default empty view
122
- *
123
- * @defaultValue `localize("NO_GROUPS_FOUND")`
124
- */
125
- emptyStateText?: string;
126
- /**
127
- * Custom view for the empty state of the component
128
- */
129
- emptyStateView?: JSX.Element;
130
- /**
131
- * Text to display in the default error view
132
- *
133
- * @defaultValue `localize("SOMETHING_WRONG")`
134
- */
135
- errorStateText?: string;
136
- /**
137
- * Custom view for the error state of the component
138
- */
139
- errorStateView?: JSX.Element;
140
- /**
141
- * Hide error view
142
- *
143
- * @remarks
144
- * If set to true, hides the default and the custom error view
145
- *
146
- * @defaultValue `false`
147
- */
148
- hideError?: boolean;
149
- /**
150
- * Image URL for the status indicator icon in the default list item view of a password-protected group
151
- *
152
- * @defaultValue `./assets/locked.svg`
153
- */
154
- passwordGroupIcon?: string;
155
- /**
156
- * Image URL for the status indicator icon in the default list item view of a private group
157
- *
158
- * @defaultValue `./assets/private.svg`
159
- */
160
- privateGroupIcon?: string;
161
- /**
162
- * Styles to apply to the status indicator component of the default list item view
163
- */
164
- statusIndicatorStyle?: CSSProperties;
165
- /**
166
- * Styles to apply to the avatar component of the default list item view
167
- */
168
- avatarStyle?: AvatarStyle;
169
- /**
170
- * Styles to apply to the default list item view
171
- */
172
- listItemStyle?: ListItemStyle;
173
- /**
174
- * Styles to apply to this component
175
- */
176
- groupsStyle?: GroupsStyle;
177
- }
178
- export type Action = {
179
- type: "appendGroups";
180
- groups: CometChat.Group[];
181
- removeOldGroups?: boolean;
182
- } | {
183
- type: "setGroupList";
184
- groupList: CometChat.Group[];
185
- } | {
186
- type: "setFetchState";
187
- fetchState: States;
188
- } | {
189
- type: "updateGroup";
190
- group: CometChat.Group;
191
- } | {
192
- type: "updateGroupForSDKEvents";
193
- group: CometChat.Group;
194
- newScope?: CometChat.GroupMemberScope;
195
- newCount?: number;
196
- hasJoined?: boolean;
197
- addGroup?: boolean;
198
- } | {
199
- type: "removeGroup";
200
- guid: string;
201
- } | {
202
- type: "prependGroup";
203
- group: CometChat.Group;
204
- } | {
205
- type: "setSearchText";
206
- searchText: string;
207
- } | {
208
- type: "setIsFirstReload";
209
- isFirstReload: boolean;
210
- };
211
- /**
212
- * Renders a scrollable list of groups that has been created in a CometChat app
213
- */
214
- export declare function CometChatGroups(props: IGroupsProps): import("react/jsx-runtime").JSX.Element;
215
- export {};
@@ -1,11 +0,0 @@
1
- import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
- import { CSSProperties } from "react";
3
- import { CometChatTheme } from "@cometchat/uikit-resources";
4
- import { GroupsStyle } from "@cometchat/uikit-shared";
5
- export declare function groupsWrapperStyle(groupsStyleObject: GroupsStyle | undefined, theme: CometChatTheme): CSSProperties;
6
- export declare function menusStyle(): CSSProperties;
7
- export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | undefined): CSSProperties;
8
- export declare function avatarStyle(avatarStyleObject: AvatarStyle | undefined, theme: CometChatTheme): AvatarStyle;
9
- export declare function listItemStyle(listItemStyleObject: ListItemStyle | undefined, groupsStyleObject: GroupsStyle | undefined, theme: CometChatTheme): ListItemStyle;
10
- export declare function groupsStyle(groupsStyleObject: GroupsStyle | undefined, theme: CometChatTheme): GroupsStyle;
11
- export declare function subtitleStyle(groupsStyleObject: GroupsStyle | undefined, theme: CometChatTheme): CSSProperties;
@@ -1,3 +0,0 @@
1
- import { MessagesConfiguration } from "@cometchat/uikit-shared";
2
- declare function Hooks(loggedInUser: any, setLoggedInUser: Function, subscribeToEvents: Function, onErrorCallback: Function, isMobileView: any, joinGroupConfiguration: any, group: any, setActiveGroup: any, messagesConfiguration: MessagesConfiguration | undefined, onBack: Function, createGroupElement: any, createGroupButtonRef: any, openCreateGroup: Function, closeCreateGroup: Function, joinGroupElement: any, onGroupJoined: Function, createGroupConfigCreateClick: ((group: CometChat.Group) => void) | null | undefined, joinGroupConfigOnError: ((error: any) => void) | null | undefined, joinGroupConfigJoinClick: ((group: CometChat.Group, password: string) => void) | null | undefined): void;
3
- export { Hooks };
@@ -1,14 +0,0 @@
1
- import { CreateGroupConfiguration, GroupsConfiguration, JoinGroupConfiguration, MessagesConfiguration, WithMessagesStyle } from "@cometchat/uikit-shared";
2
- interface IGroupsWithMessagesProps {
3
- group?: CometChat.Group;
4
- isMobileView?: boolean;
5
- messageText?: string;
6
- groupsWithMessagesStyle?: WithMessagesStyle;
7
- messagesConfiguration?: MessagesConfiguration;
8
- groupsConfiguration?: GroupsConfiguration;
9
- createGroupConfiguration?: CreateGroupConfiguration;
10
- joinGroupConfiguration?: JoinGroupConfiguration;
11
- onError?: ((error: CometChat.CometChatException) => void) | null;
12
- }
13
- declare const CometChatGroupsWithMessages: (props: IGroupsWithMessagesProps) => import("react/jsx-runtime").JSX.Element;
14
- export { CometChatGroupsWithMessages };