@cometchat/chat-uikit-react 5.0.1 → 5.0.2

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 (35) hide show
  1. package/dist/index.d.ts +76 -137
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatUsers.css +22 -27
  5. package/dist/styles/components/CometChatUsers.css +22 -27
  6. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
  7. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  8. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +2 -1
  9. package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +8 -1
  10. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +1 -27
  11. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
  12. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -3
  13. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
  14. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
  15. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
  16. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
  17. package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
  18. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
  19. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -1
  20. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -8
  21. package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
  22. package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +9 -1
  23. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
  24. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
  25. package/dist/types/constants/CometChatUIKitConstants.d.ts +7 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/types/modals/CometChatActionsView.d.ts +0 -1
  28. package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
  29. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +12 -58
  30. package/dist/types/utils/CalendarObject.d.ts +27 -0
  31. package/dist/types/utils/DataSource.d.ts +0 -1
  32. package/dist/types/utils/DataSourceDecorator.d.ts +0 -1
  33. package/dist/types/utils/Interface.d.ts +37 -0
  34. package/dist/types/utils/MessagesDataSource.d.ts +0 -2
  35. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
- import React__default, { CSSProperties, JSX as JSX$1, ReactNode, FC } from 'react';
2
+ import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
5
- import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
6
5
  import { Subject } from 'rxjs';
7
6
 
8
7
  /**
@@ -302,19 +301,13 @@ declare enum MentionsVisibility {
302
301
  interface MentionsProps {
303
302
  userMemberListType?: UserMemberListType;
304
303
  onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
305
- listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
306
- statusIndicatorStyle?: CSSProperties;
304
+ itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
307
305
  searchKeyword?: string;
308
306
  group?: CometChat.Group;
309
307
  subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
310
308
  usersRequestBuilder?: CometChat.UsersRequestBuilder;
311
- disableUsersPresence?: boolean;
312
- hideSeparator?: boolean;
313
- loadingStateView?: JSX.Element;
314
309
  onEmpty?: () => void;
315
310
  groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
316
- loadingIconUrl?: string;
317
- disableLoadingState?: boolean;
318
311
  onError?: () => void;
319
312
  }
320
313
  declare function CometChatUserMemberWrapper(props: MentionsProps): react_jsx_runtime.JSX.Element;
@@ -916,10 +909,6 @@ declare class CometChatLocalize {
916
909
  ADD_MEMBERS: string;
917
910
  SEND_MESSAGE: string;
918
911
  UNBLOCK_USER: string;
919
- /**
920
- * Returns rtl or ltr based on the active language
921
- * @returns {String} the direction of the active langauge
922
- */
923
912
  BLOCK_USER: string;
924
913
  DELETE_AND_EXIT: string;
925
914
  LEAVE_GROUP: string;
@@ -1296,11 +1285,7 @@ declare class CometChatLocalize {
1296
1285
  TYPING: string;
1297
1286
  IS_TYPING: string;
1298
1287
  CLOSE: string;
1299
- ENTER_GROUP_NAME: string; /**
1300
- * Accepts the string to localize and return the localized string
1301
- * @param {String} str
1302
- * @returns {String} localized str
1303
- */
1288
+ ENTER_GROUP_NAME: string;
1304
1289
  ADD_MEMBERS: string;
1305
1290
  SEND_MESSAGE: string;
1306
1291
  UNBLOCK_USER: string;
@@ -2005,7 +1990,7 @@ declare class CometChatLocalize {
2005
1990
  SEARCH_EMOJI: string;
2006
1991
  WOULD__YOU_LIKE_TO_DELETE_THIS_CONVERSATION: string;
2007
1992
  GROUPS: string;
2008
- WRONG_FILE_TYPE: string; /**Properties and constants */
1993
+ WRONG_FILE_TYPE: string;
2009
1994
  SHARED: string;
2010
1995
  SOUND_MANAGER: string;
2011
1996
  THEME: string;
@@ -2072,9 +2057,7 @@ declare class CometChatLocalize {
2072
2057
  MISSED_VIDEO_CALL: string;
2073
2058
  CUSTOM_MESSAGE_POLL: string;
2074
2059
  CUSTOM_MESSAGE_STICKER: string;
2075
- CUSTOM_MESSAGE_DOCUMENT: string; /**
2076
- * Sets the default lannguage if no language is passed in init method
2077
- */
2060
+ CUSTOM_MESSAGE_DOCUMENT: string;
2078
2061
  CUSTOM_MESSAGE_WHITEBOARD: string;
2079
2062
  ONLINE: string;
2080
2063
  ADMINISTRATOR: string;
@@ -2483,9 +2466,7 @@ declare class CometChatLocalize {
2483
2466
  MEMBER: string;
2484
2467
  EDITED: string;
2485
2468
  TODAY: string;
2486
- YESTERDAY: string; /**
2487
- * Sets the default lannguage if no language is passed in init method
2488
- */
2469
+ YESTERDAY: string;
2489
2470
  SUNDAY: string;
2490
2471
  MONDAY: string;
2491
2472
  TUESDAY: string;
@@ -2797,7 +2778,6 @@ declare class CometChatLocalize {
2797
2778
  GROUPS: string;
2798
2779
  WRONG_FILE_TYPE: string;
2799
2780
  SHARED: string;
2800
- /**Properties and constants */
2801
2781
  SOUND_MANAGER: string;
2802
2782
  THEME: string;
2803
2783
  DELETE_MSG_TEXT: string;
@@ -2826,7 +2806,7 @@ declare class CometChatLocalize {
2826
2806
  PASSWORD: string;
2827
2807
  CONTINUE: string;
2828
2808
  NO_CHATS_SELECTED: string;
2829
- NO_USERS_SELECTED: string; /**Override resources */
2809
+ NO_USERS_SELECTED: string;
2830
2810
  NO_GROUPS_SELECTED: string;
2831
2811
  SELECT_DAY: string;
2832
2812
  SELECT_TIME: string;
@@ -2836,10 +2816,7 @@ declare class CometChatLocalize {
2836
2816
  GROUP_PASSWORD_BLANK: string;
2837
2817
  GROUP_NAME_BLANK: string;
2838
2818
  GROUP_TYPE_BLANK: string;
2839
- DELETE_CONVERSATION: string; /**
2840
- * Returns the browser language
2841
- * @returns {String} browser langauge i.e. en-US
2842
- */
2819
+ DELETE_CONVERSATION: string;
2843
2820
  ADD_TO_CHAT: string;
2844
2821
  MORE: string;
2845
2822
  COPY: string;
@@ -2847,10 +2824,7 @@ declare class CometChatLocalize {
2847
2824
  MESSAGE_IMAGE: string;
2848
2825
  MESSAGE_FILE: string;
2849
2826
  MESSAGE_VIDEO: string;
2850
- MESSAGE_AUDIO: string; /**
2851
- * Returns the language code
2852
- * @returns {String} language code i.e. en
2853
- */
2827
+ MESSAGE_AUDIO: string;
2854
2828
  CUSTOM_MESSAGE: string;
2855
2829
  SELECT_A_DATE: string;
2856
2830
  TIME_ZONE: string;
@@ -2911,10 +2885,6 @@ declare class CometChatLocalize {
2911
2885
  LOADING: string;
2912
2886
  REPLY: string;
2913
2887
  REPLIES: string;
2914
- /**
2915
- * Returns rtl or ltr based on the active language
2916
- * @returns {String} the direction of the active langauge
2917
- */
2918
2888
  AI: string;
2919
2889
  SMART_REPLIES: string;
2920
2890
  CONVERSATION_STARTER: string;
@@ -4021,20 +3991,10 @@ declare class CometChatLocalize {
4021
3991
  SELECT_TIME: string;
4022
3992
  NO_CALLS_SELECTED: string;
4023
3993
  SELECT__GROUP: string;
4024
- /**
4025
- * Initializes localization with the specified language and custom resources.
4026
- * @param {string} [language=""] - The language code to set.
4027
- * @param {object} [resources={}] - Custom translations to override defaults.
4028
- */
4029
3994
  SELECT__USER: string;
4030
3995
  GROUP_PASSWORD_BLANK: string;
4031
3996
  GROUP_NAME_BLANK: string;
4032
3997
  GROUP_TYPE_BLANK: string;
4033
- /**
4034
- * Initializes localization with the specified language and custom resources.
4035
- * @param {string} [language=""] - The language code to set.
4036
- * @param {object} [resources={}] - Custom translations to override defaults.
4037
- */
4038
3998
  DELETE_CONVERSATION: string;
4039
3999
  ADD_TO_CHAT: string;
4040
4000
  MORE: string;
@@ -4076,10 +4036,7 @@ declare class CometChatLocalize {
4076
4036
  PREFERENCES: string;
4077
4037
  MEMBERS: string;
4078
4038
  MEMBER: string;
4079
- EDITED: string; /**
4080
- * Returns the language code
4081
- * @returns {String} language code i.e. en
4082
- */
4039
+ EDITED: string;
4083
4040
  TODAY: string;
4084
4041
  YESTERDAY: string;
4085
4042
  SUNDAY: string;
@@ -4446,7 +4403,7 @@ declare class CometChatLocalize {
4446
4403
  MEETING_SCHEDULED: string;
4447
4404
  SOMETHING_WRONG: string;
4448
4405
  MEETING_SLOT_BOOK: string;
4449
- MEETING_BOOK_NEW_SLOT: string; /**Override resources */
4406
+ MEETING_BOOK_NEW_SLOT: string;
4450
4407
  MEETING_NO_SLOTS_AVAILABLE: string;
4451
4408
  MEETING_TRY_DIFFERENT_DATE: string;
4452
4409
  NO_TIME_SLOTS_AVAILABLE: string;
@@ -4803,11 +4760,7 @@ declare class CometChatLocalize {
4803
4760
  CONVERSATIONS: string;
4804
4761
  CONVERSATION_LIST: string;
4805
4762
  MESSAGES: string;
4806
- MESSAGE_HEADER: string; /**
4807
- * Initializes localization with the specified language and custom resources.
4808
- * @param {string} [language=""] - The language code to set.
4809
- * @param {object} [resources={}] - Custom translations to override defaults.
4810
- */
4763
+ MESSAGE_HEADER: string;
4811
4764
  MESSAGE_LIST: string;
4812
4765
  MESSAGE_COMPOSER: string;
4813
4766
  USERS_WITH_MESSAGES: string;
@@ -4887,10 +4840,7 @@ declare class CometChatLocalize {
4887
4840
  SEND_MESSAGE: string;
4888
4841
  UNBLOCK_USER: string;
4889
4842
  BLOCK_USER: string;
4890
- DELETE_AND_EXIT: string; /**
4891
- * Returns true if the active language is rtl otherwise return false
4892
- * @returns {Boolean} whether the language is rtl or not
4893
- */
4843
+ DELETE_AND_EXIT: string;
4894
4844
  LEAVE_GROUP: string;
4895
4845
  CREATE_GROUP: string;
4896
4846
  SHARED_MEDIA: string;
@@ -5237,10 +5187,7 @@ declare class CometChatLocalize {
5237
5187
  SELECT_A_DATE: string;
5238
5188
  TIME_ZONE: string;
5239
5189
  MEETING_SCHEDULED: string;
5240
- SOMETHING_WRONG: string; /**
5241
- * Returns the active language. Return fallback language if translation is not available for the active language
5242
- * @returns {String} active language
5243
- */
5190
+ SOMETHING_WRONG: string;
5244
5191
  MEETING_SLOT_BOOK: string;
5245
5192
  MEETING_BOOK_NEW_SLOT: string;
5246
5193
  MEETING_NO_SLOTS_AVAILABLE: string;
@@ -6789,28 +6736,28 @@ declare class MessagesDataSource implements DataSource {
6789
6736
  getSendMessagePrivatelyOption(): CometChatActionsIcon;
6790
6737
  getCopyOption(): CometChatActionsIcon;
6791
6738
  getMessageInfoOption(): CometChatActionsIcon;
6792
- isSentByMe(loggedInUser: CometChat$1.User, message: CometChat$1.BaseMessage): boolean;
6793
- getTextMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6794
- getIsSentByMe(message: CometChat$1.BaseMessage): boolean;
6795
- getImageMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6796
- getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6797
- getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6798
- getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6739
+ isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
6740
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6741
+ getIsSentByMe(message: CometChat.BaseMessage): boolean;
6742
+ getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6743
+ getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6744
+ getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6745
+ getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
6799
6746
  getReceiptClass(status?: number): "wait" | "error" | "read" | "delivered" | "sent" | undefined;
6800
6747
  /**
6801
6748
  * Function to get receipt for message bubble
6802
6749
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
6803
6750
  * @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
6804
6751
  */
6805
- getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
6752
+ getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
6806
6753
  /**
6807
6754
  * Function to get status and date for message bubble
6808
6755
  * @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
6809
6756
  * @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
6810
6757
  */
6811
- getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
6812
- getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
6813
- getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
6758
+ getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
6759
+ getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
6760
+ getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
6814
6761
  getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
6815
6762
  getAudioMessageTemplate(): CometChatMessageTemplate;
6816
6763
  getVideoMessageTemplate(): CometChatMessageTemplate;
@@ -6821,25 +6768,25 @@ declare class MessagesDataSource implements DataSource {
6821
6768
  getFileMessageTemplate(): CometChatMessageTemplate;
6822
6769
  getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
6823
6770
  getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
6824
- getMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6825
- getCommonOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6771
+ getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6772
+ getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
6826
6773
  getAllMessageTypes(): Array<string>;
6827
6774
  addList(): string;
6828
6775
  getAllMessageCategories(additionalConfigurations?: {
6829
6776
  hideGroupActionMessages?: boolean;
6830
6777
  }): Array<string>;
6831
- getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
6778
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
6832
6779
  getId(): string;
6833
- getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
6834
- getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6835
- getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6836
- getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6837
- getVideoMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6780
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
6781
+ getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6782
+ getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6783
+ getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6784
+ getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
6838
6785
  getActionMessage(message: any): string;
6839
- getDeleteMessageBubble(message: CometChat$1.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
6840
- getGroupActionBubble(message: CometChat$1.BaseMessage): react_jsx_runtime.JSX.Element;
6841
- getTextMessageBubble(messageText: string, message: CometChat$1.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
6842
- getAudioMessageBubble(audioUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
6786
+ getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
6787
+ getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
6788
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
6789
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
6843
6790
  /**
6844
6791
  * Function to check mimeType and return the iconUrl of that type
6845
6792
  * @param mimeType
@@ -6852,16 +6799,16 @@ declare class MessagesDataSource implements DataSource {
6852
6799
  * @returns
6853
6800
  */
6854
6801
  getFileSize: (sizeInBytes: number) => string;
6855
- getFileMessageBubble(fileUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
6856
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat$1.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
6857
- getVideoMessageBubble(videoUrl: string, message: CometChat$1.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
6802
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
6803
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
6804
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
6858
6805
  imageAttachmentOption(): CometChatMessageComposerAction;
6859
6806
  videoAttachmentOption(): CometChatMessageComposerAction;
6860
6807
  audioAttachmentOption(): CometChatMessageComposerAction;
6861
6808
  fileAttachmentOption(): CometChatMessageComposerAction;
6862
6809
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
6863
- getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations: additionalParams): string;
6864
- getAuxiliaryHeaderMenu(user?: CometChat$1.User, group?: CometChat$1.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
6810
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
6811
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
6865
6812
  /**
6866
6813
  * Adds styled @ for every mention in the text by matching uid
6867
6814
  *
@@ -6869,7 +6816,7 @@ declare class MessagesDataSource implements DataSource {
6869
6816
  * @param {string} subtitle
6870
6817
  * @returns {void}
6871
6818
  */
6872
- getMentionsFormattedText(message: CometChat$1.TextMessage, subtitle: string, mentionsFormatterParams: {
6819
+ getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
6873
6820
  mentionsTargetElement: MentionsTargetElement;
6874
6821
  }): string;
6875
6822
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
@@ -7602,12 +7549,6 @@ interface ListProps<T> {
7602
7549
  * @defaultValue `""`
7603
7550
  */
7604
7551
  headerView?: JSX$1.Element;
7605
- /**
7606
- * Alignment of the `title` text
7607
- *
7608
- * @defaultValue `TitleAlignment.left`
7609
- */
7610
- titleAlignment?: TitleAlignment;
7611
7552
  /**
7612
7553
  * Hide the search bar
7613
7554
  *
@@ -7627,10 +7568,6 @@ interface ListProps<T> {
7627
7568
  * This function will only be called after 500ms of the search input text change
7628
7569
  */
7629
7570
  onSearch?: (searchStr: string) => void;
7630
- /**
7631
- * Image URL for the search icon to use in the search bar
7632
- */
7633
- searchIconURL?: string;
7634
7571
  /**
7635
7572
  * Text to be displayed when the search input has no value
7636
7573
  *
@@ -7685,10 +7622,6 @@ interface ListProps<T> {
7685
7622
  * Custom view for the loading state of the component
7686
7623
  */
7687
7624
  loadingView?: JSX$1.Element;
7688
- /**
7689
- * Image URL for the default loading view
7690
- */
7691
- loadingIconURL?: string;
7692
7625
  /**
7693
7626
  * Hide error view
7694
7627
  *
@@ -7702,22 +7635,10 @@ interface ListProps<T> {
7702
7635
  * Custom view for the error state of the component
7703
7636
  */
7704
7637
  errorView?: JSX$1.Element;
7705
- /**
7706
- * Text to display in the default error view
7707
- *
7708
- * @defaultValue `"ERROR"`
7709
- */
7710
- errorStateText?: string;
7711
7638
  /**
7712
7639
  * Custom view for the empty state of the component
7713
7640
  */
7714
7641
  emptyView?: JSX$1.Element;
7715
- /**
7716
- * Text to display in the default empty view
7717
- *
7718
- * @defaultValue `"EMPTY"`
7719
- */
7720
- emptyStateText?: string;
7721
7642
  /**
7722
7643
  * Set the scrollbar to the bottom-most position of the scrollable list
7723
7644
  *
@@ -8388,6 +8309,15 @@ declare class PollsExtensionDecorator extends DataSourceDecorator {
8388
8309
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
8389
8310
  }
8390
8311
 
8312
+ interface PollOptions {
8313
+ id: string;
8314
+ selectedByLoggedInUser?: boolean;
8315
+ text: string;
8316
+ votersObj?: CometChat.User[];
8317
+ count: number;
8318
+ percent: string;
8319
+ }
8320
+
8391
8321
  /**
8392
8322
  * The StickersExtension class extends the ExtensionsDataSource and is responsible for
8393
8323
  * configuring and adding the Stickers extension to the chat application.
@@ -8461,7 +8391,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
8461
8391
  * @param group - Optional group object.
8462
8392
  * @returns An array of auxiliary options.
8463
8393
  */
8464
- getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): react_jsx_runtime.JSX.Element;
8394
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
8465
8395
  /**
8466
8396
  * Creates the sticker auxiliary button component.
8467
8397
  * @param id - A map containing relevant IDs.
@@ -8470,7 +8400,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
8470
8400
  * @param group - Optional group object.
8471
8401
  * @returns The JSX element for the sticker auxiliary button.
8472
8402
  */
8473
- getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group) => react_jsx_runtime.JSX.Element;
8403
+ getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
8474
8404
  /**
8475
8405
  * Sends a sticker message.
8476
8406
  * @param event - The event object containing sticker details.
@@ -8480,14 +8410,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
8480
8410
  * Sends a sticker message.
8481
8411
  * @param event - The event object containing sticker details.
8482
8412
  */
8483
- getSticker(message: CometChat$1.CustomMessage): any;
8413
+ getSticker(message: CometChat.CustomMessage): any;
8484
8414
  /**
8485
8415
  * Creates a JSX element for displaying the sticker message content.
8486
8416
  * @param stickerMessage - The custom message containing sticker data.
8487
8417
  * @param _theme - The theme object for styling.
8488
8418
  * @returns The JSX element for the sticker message content.
8489
8419
  */
8490
- getStickerMessageContentView(stickerMessage: CometChat$1.CustomMessage): react_jsx_runtime.JSX.Element;
8420
+ getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
8491
8421
  /**
8492
8422
  * Creates a sticker message template.
8493
8423
  * @param _theme - The theme object for styling.
@@ -8523,7 +8453,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
8523
8453
  * @param additionalConfigurations - Additional configurations, if any.
8524
8454
  * @returns A string representing the last message.
8525
8455
  */
8526
- getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations?: any): string;
8456
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
8527
8457
  }
8528
8458
 
8529
8459
  /**
@@ -10046,6 +9976,13 @@ declare class CometChatUIKitConstants {
10046
9976
  usersLimit: 30;
10047
9977
  groupsLimit: 30;
10048
9978
  }>;
9979
+ static radioNames: Readonly<{
9980
+ conversations: "conversations";
9981
+ users: "users";
9982
+ groups: "groups";
9983
+ changeScope: "changeScope";
9984
+ groupMembers: "groupMembers";
9985
+ }>;
10049
9986
  }
10050
9987
 
10051
9988
  declare class CometChatUtilityConstants {
@@ -10488,10 +10425,8 @@ interface PopoverProps {
10488
10425
  debounceOnHover?: number;
10489
10426
  children: ReactNode;
10490
10427
  content: ReactNode;
10491
- hasToolTip?: boolean;
10492
10428
  childClickHandler?: (openContent: Function, event: Event) => void;
10493
10429
  onOutsideClick?: () => void;
10494
- overrideStyleProps?: CSSProperties;
10495
10430
  }
10496
10431
  declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
10497
10432
  openPopover: () => void;
@@ -10536,8 +10471,15 @@ declare const CometChatImageBubble: (props: ImageBubbleProps) => react_jsx_runti
10536
10471
  * Props for the CometChatFullScreenViewer component.
10537
10472
  */
10538
10473
  interface FullScreenViewerProps {
10539
- /** URL of the image to be displayed */
10474
+ /**
10475
+ * @deprecated
10476
+ * Use 'url' prop instead. This prop is deprecated and will be removed in future versions.
10477
+ * */
10540
10478
  URL?: string;
10479
+ /**
10480
+ * URL of the image to be displayed
10481
+ */
10482
+ url?: string;
10541
10483
  /** Placeholder image URL */
10542
10484
  placeholderImage?: string;
10543
10485
  /** Callback function when the close button is clicked */
@@ -10919,10 +10861,7 @@ declare function createElement(tagName: string, content?: TreeNode, container?:
10919
10861
 
10920
10862
  declare const dom_createElement: typeof createElement;
10921
10863
  declare namespace dom {
10922
- export {
10923
- dom_createElement as createElement,
10924
- createElement as default,
10925
- };
10864
+ export { dom_createElement as createElement, createElement as default };
10926
10865
  }
10927
10866
 
10928
10867
  type PlayerOptions = {
@@ -11403,7 +11342,7 @@ declare class CometChatUIKitUtility {
11403
11342
  * @param messageObject - The message object containing extensions.
11404
11343
  * @returns The sanitized message text if available, otherwise the original text.
11405
11344
  */
11406
- static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
11345
+ static getExtensionData(messageObject: CometChat.BaseMessage): string;
11407
11346
  /**
11408
11347
  * Checks for extension data in a message.
11409
11348
  *
@@ -11411,7 +11350,7 @@ declare class CometChatUIKitUtility {
11411
11350
  * @param extensionKey - The extension key to look for.
11412
11351
  * @returns The extension data if found.
11413
11352
  */
11414
- static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
11353
+ static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
11415
11354
  /**
11416
11355
  * Sanitizes an HTML string by escaping tags not matching the whitelist.
11417
11356
  *
@@ -11457,4 +11396,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
11457
11396
  declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
11458
11397
  declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
11459
11398
 
11460
- export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
11399
+ export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };