@cometchat/chat-uikit-react 5.0.9 → 5.0.11

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 (39) hide show
  1. package/dist/index.d.ts +99 -0
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatActionSheet.css +0 -5
  5. package/dist/styles/CometChatChangeScope.css +0 -5
  6. package/dist/styles/CometChatEmojiKeyboard.css +0 -7
  7. package/dist/styles/CometChatGroupMembers.css +6 -3
  8. package/dist/styles/CometChatList.css +2 -2
  9. package/dist/styles/CometChatMessageComposer.css +33 -0
  10. package/dist/styles/CometChatMessageHeader.css +16 -12
  11. package/dist/styles/CometChatMessageInformation.css +7 -8
  12. package/dist/styles/CometChatMessageList.css +14 -0
  13. package/dist/styles/CometChatReactionList.css +0 -7
  14. package/dist/styles/CometChatThreadedMessagePreview.css +5 -0
  15. package/dist/styles/StickersKeyboard.css +0 -23
  16. package/dist/styles/components/CometChatActionSheet.css +0 -5
  17. package/dist/styles/components/CometChatChangeScope.css +0 -5
  18. package/dist/styles/components/CometChatEmojiKeyboard.css +0 -7
  19. package/dist/styles/components/CometChatGroupMembers.css +6 -3
  20. package/dist/styles/components/CometChatList.css +2 -2
  21. package/dist/styles/components/CometChatMessageComposer.css +33 -0
  22. package/dist/styles/components/CometChatMessageHeader.css +16 -12
  23. package/dist/styles/components/CometChatMessageInformation.css +7 -8
  24. package/dist/styles/components/CometChatMessageList.css +14 -0
  25. package/dist/styles/components/CometChatReactionList.css +0 -7
  26. package/dist/styles/components/CometChatThreadedMessagePreview.css +5 -0
  27. package/dist/styles/components/StickersKeyboard.css +0 -23
  28. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +5 -0
  29. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +5 -0
  30. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +5 -0
  31. package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +5 -0
  32. package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +5 -0
  33. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  34. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  35. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
  36. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +5 -0
  37. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +48 -0
  38. package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +6 -0
  39. package/package.json +8 -7
package/dist/index.d.ts CHANGED
@@ -300,16 +300,64 @@ declare enum MentionsVisibility {
300
300
  }
301
301
 
302
302
  interface MentionsProps {
303
+ /**
304
+ * Determines the type of list to display - either users or group members.
305
+ * @defaultValue `UserMemberListType.users`
306
+ */
303
307
  userMemberListType?: UserMemberListType;
308
+ /**
309
+ * Callback function invoked when a user or group member item is clicked.
310
+ * @param user - The clicked user (CometChat.User) or group member (CometChat.GroupMember)
311
+ * @returns void
312
+ */
304
313
  onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
314
+ /**
315
+ * A custom view to render each user or group member item in the list.
316
+ *
317
+ * @param item - An instance of CometChat.User or CometChat.GroupMember to be rendered
318
+ * @returns A JSX element representing the custom item view
319
+ */
305
320
  itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
321
+ /**
322
+ * The search keyword used to filter users or group members.
323
+ */
306
324
  searchKeyword?: string;
325
+ /**
326
+ * The group instance for which to display group members.
327
+ */
307
328
  group?: CometChat.Group;
329
+ /**
330
+ * A custom view to render the subtitle for each user or group member item.
331
+ * @param item - An instance of CometChat.User or CometChat.GroupMember
332
+ * @returns A JSX element representing the custom subtitle view
333
+ */
308
334
  subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
335
+ /**
336
+ * A request builder to fetch users with custom parameters.
337
+ */
309
338
  usersRequestBuilder?: CometChat.UsersRequestBuilder;
339
+ /**
340
+ * Callback function invoked when the list is empty (no users or group members found).
341
+ *
342
+ * @returns void
343
+ */
310
344
  onEmpty?: () => void;
345
+ /**
346
+ * A request builder to fetch group members with custom parameters.
347
+ */
311
348
  groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
349
+ /**
350
+ * Callback function invoked when an error occurs while fetching users or group members.
351
+ *
352
+ * @returns void
353
+ */
312
354
  onError?: () => void;
355
+ /**
356
+ * Controls the visibility of the scrollbar in the list.
357
+ *
358
+ * @defaultValue `false`
359
+ */
360
+ showScrollbar?: boolean;
313
361
  }
314
362
  declare function CometChatUserMemberWrapper(props: MentionsProps): react_jsx_runtime.JSX.Element;
315
363
 
@@ -7741,6 +7789,11 @@ interface ListProps<T> {
7741
7789
  * @defaultValue `""`
7742
7790
  */
7743
7791
  title?: string;
7792
+ /**
7793
+ * Controls the visibility of the scrollbar in the list.
7794
+ * @defaultValue `false`
7795
+ */
7796
+ showScrollbar?: boolean;
7744
7797
  }
7745
7798
  /**
7746
7799
  * Renders a list component that can display a title, search bar,
@@ -8839,6 +8892,11 @@ interface CallLogsProps {
8839
8892
  * @returns A JSX element to be rendered as the trailing view.
8840
8893
  */
8841
8894
  trailingView?: (call: any) => JSX.Element;
8895
+ /**
8896
+ * Controls the visibility of the scrollbar in the list.
8897
+ * @defaultValue `false`
8898
+ */
8899
+ showScrollbar?: boolean;
8842
8900
  }
8843
8901
  declare const CometChatCallLogs: (props: CallLogsProps) => react_jsx_runtime.JSX.Element;
8844
8902
 
@@ -8990,6 +9048,11 @@ interface ConversationsProps {
8990
9048
  * @returns A JSX element to be rendered as the trailing view.
8991
9049
  */
8992
9050
  trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
9051
+ /**
9052
+ * Controls the visibility of the scrollbar in the list.
9053
+ * @defaultValue `false`
9054
+ */
9055
+ showScrollbar?: boolean;
8993
9056
  }
8994
9057
  /**
8995
9058
  * Renders a scrollable list of conversations that has been created in a CometChat app
@@ -9150,6 +9213,11 @@ interface GroupMembersProps {
9150
9213
  * @returns A JSX element to be rendered as the trailing view.
9151
9214
  */
9152
9215
  trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
9216
+ /**
9217
+ * Controls the visibility of the scrollbar in the list.
9218
+ * @defaultValue `false`
9219
+ */
9220
+ showScrollbar?: boolean;
9153
9221
  }
9154
9222
  declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
9155
9223
 
@@ -9273,6 +9341,11 @@ interface GroupsProps {
9273
9341
  * @returns A JSX element to be rendered as the trailing view.
9274
9342
  */
9275
9343
  trailingView?: (group: CometChat.Group) => JSX.Element;
9344
+ /**
9345
+ * Controls the visibility of the scrollbar in the list.
9346
+ * @defaultValue `false`
9347
+ */
9348
+ showScrollbar?: boolean;
9276
9349
  }
9277
9350
  /**
9278
9351
  * Renders a scrollable list of groups that has been created in a CometChat app
@@ -9449,6 +9522,11 @@ interface MessageComposerProps {
9449
9522
  * A custom header section displayed at the top of the message composer, often used for media previews or additional information.
9450
9523
  */
9451
9524
  headerView?: JSX.Element;
9525
+ /**
9526
+ * Controls the visibility of the scrollbar in the list.
9527
+ * @defaultValue `false`
9528
+ */
9529
+ showScrollbar?: boolean;
9452
9530
  }
9453
9531
  /**
9454
9532
  * Renders a message composer to send messages to a user or group of a CometChat App
@@ -9753,6 +9831,11 @@ interface MessageListProps {
9753
9831
  * A custom footer view component for the message list.
9754
9832
  */
9755
9833
  footerView?: JSX.Element;
9834
+ /**
9835
+ * Controls the visibility of the scrollbar in the list.
9836
+ * @defaultValue `false`
9837
+ */
9838
+ showScrollbar?: boolean;
9756
9839
  }
9757
9840
  declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
9758
9841
 
@@ -9909,6 +9992,12 @@ interface UsersProps {
9909
9992
  * @returns A JSX element to be rendered as the trailing view.
9910
9993
  */
9911
9994
  trailingView?: (user: CometChat.User) => JSX.Element;
9995
+ /**
9996
+ * Controls the visibility of the scrollbar in the list list.
9997
+ *
9998
+ * @defaultValue `false`
9999
+ */
10000
+ showScrollbar?: boolean;
9912
10001
  }
9913
10002
  /**
9914
10003
  * Renders a scrollable list of users that has been created in a CometChat app
@@ -9936,6 +10025,11 @@ interface MessageInformationProps {
9936
10025
  * Array of text formatters for custom styling or formatting of message text bubbles.
9937
10026
  */
9938
10027
  textFormatters?: CometChatTextFormatter[];
10028
+ /**
10029
+ * Controls the visibility of the scrollbar in the list.
10030
+ * @defaultValue `false`
10031
+ */
10032
+ showScrollbar?: boolean;
9939
10033
  }
9940
10034
  declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
9941
10035
 
@@ -11360,6 +11454,11 @@ interface ThreadedMessagePreviewProps {
11360
11454
  * Array of text formatters for custom styling or formatting of message text bubbles.
11361
11455
  */
11362
11456
  textFormatters?: CometChatTextFormatter[];
11457
+ /**
11458
+ * Controls the visibility of the scrollbar in the list.
11459
+ * @defaultValue `false`
11460
+ */
11461
+ showScrollbar?: boolean;
11363
11462
  }
11364
11463
  declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => react_jsx_runtime.JSX.Element;
11365
11464