@cometchat/chat-uikit-react 5.0.0 → 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 (39) hide show
  1. package/dist/assets/image_placeholder.png +0 -0
  2. package/dist/assets/placeholder.png +0 -0
  3. package/dist/index.d.ts +420 -134
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/styles/CometChatUsers.css +22 -27
  7. package/dist/styles/components/CometChatUsers.css +22 -27
  8. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
  9. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  10. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +2 -1
  11. package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +8 -1
  12. package/dist/types/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +1 -0
  13. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +1 -27
  14. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
  15. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -3
  16. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
  17. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
  18. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
  19. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
  20. package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
  21. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
  22. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -1
  23. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -8
  24. package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
  25. package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +9 -1
  26. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
  27. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
  28. package/dist/types/constants/CometChatUIKitConstants.d.ts +7 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/dist/types/modals/CometChatActionsView.d.ts +0 -1
  31. package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
  32. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +12 -58
  33. package/dist/types/utils/CalendarObject.d.ts +27 -0
  34. package/dist/types/utils/DataSource.d.ts +0 -1
  35. package/dist/types/utils/DataSourceDecorator.d.ts +0 -1
  36. package/dist/types/utils/Interface.d.ts +37 -0
  37. package/dist/types/utils/MessagesDataSource.d.ts +1 -3
  38. package/dist/types/utils/util.d.ts +18 -0
  39. 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>;
6799
- getReceiptClass(status?: number): "wait" | "read" | "error" | "delivered" | "sent" | undefined;
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>;
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;
@@ -10528,6 +10463,7 @@ interface ImageBubbleProps {
10528
10463
  src: string;
10529
10464
  }) => void;
10530
10465
  isSentByMe?: boolean;
10466
+ disableLoadingState?: boolean;
10531
10467
  }
10532
10468
  declare const CometChatImageBubble: (props: ImageBubbleProps) => react_jsx_runtime.JSX.Element;
10533
10469
 
@@ -10535,8 +10471,15 @@ declare const CometChatImageBubble: (props: ImageBubbleProps) => react_jsx_runti
10535
10471
  * Props for the CometChatFullScreenViewer component.
10536
10472
  */
10537
10473
  interface FullScreenViewerProps {
10538
- /** 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
+ * */
10539
10478
  URL?: string;
10479
+ /**
10480
+ * URL of the image to be displayed
10481
+ */
10482
+ url?: string;
10540
10483
  /** Placeholder image URL */
10541
10484
  placeholderImage?: string;
10542
10485
  /** Callback function when the close button is clicked */
@@ -10863,6 +10806,349 @@ declare class MessageUtils {
10863
10806
  getActionMessage(message: CometChat.Action): string;
10864
10807
  }
10865
10808
 
10809
+ type GeneralEventTypes = {
10810
+ [EventName: string]: unknown[];
10811
+ };
10812
+ type EventListener<EventTypes extends GeneralEventTypes, EventName extends keyof EventTypes> = (...args: EventTypes[EventName]) => void;
10813
+ /** A simple event emitter that can be used to listen to and emit events. */
10814
+ declare class EventEmitter<EventTypes extends GeneralEventTypes> {
10815
+ private listeners;
10816
+ /** Subscribe to an event. Returns an unsubscribe function. */
10817
+ on<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>, options?: {
10818
+ once?: boolean;
10819
+ }): () => void;
10820
+ /** Unsubscribe from an event */
10821
+ un<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): void;
10822
+ /** Subscribe to an event only once */
10823
+ once<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): () => void;
10824
+ /** Clear all events */
10825
+ unAll(): void;
10826
+ /** Emit an event */
10827
+ protected emit<EventName extends keyof EventTypes>(eventName: EventName, ...args: EventTypes[EventName]): void;
10828
+ }
10829
+
10830
+ type BasePluginEvents = {
10831
+ destroy: [];
10832
+ };
10833
+ type GenericPlugin = BasePlugin<BasePluginEvents, unknown>;
10834
+ /** Base class for wavesurfer plugins */
10835
+ declare class BasePlugin<EventTypes extends BasePluginEvents, Options> extends EventEmitter<EventTypes> {
10836
+ protected wavesurfer?: WaveSurfer;
10837
+ protected subscriptions: (() => void)[];
10838
+ protected options: Options;
10839
+ /** Create a plugin instance */
10840
+ constructor(options: Options);
10841
+ /** Called after this.wavesurfer is available */
10842
+ protected onInit(): void;
10843
+ /** Do not call directly, only called by WavesSurfer internally */
10844
+ _init(wavesurfer: WaveSurfer): void;
10845
+ /** Destroy the plugin and unsubscribe from all events */
10846
+ destroy(): void;
10847
+ }
10848
+
10849
+ type TreeNode = {
10850
+ [key: string]: string | number | boolean | CSSStyleDeclaration | TreeNode | Node;
10851
+ } & {
10852
+ xmlns?: string;
10853
+ style?: Partial<CSSStyleDeclaration>;
10854
+ textContent?: string | Node;
10855
+ children?: TreeNode;
10856
+ };
10857
+ declare function createElement(tagName: string, content: TreeNode & {
10858
+ xmlns: string;
10859
+ }, container?: Node): SVGElement;
10860
+ declare function createElement(tagName: string, content?: TreeNode, container?: Node): HTMLElement;
10861
+
10862
+ declare const dom_createElement: typeof createElement;
10863
+ declare namespace dom {
10864
+ export { dom_createElement as createElement, createElement as default };
10865
+ }
10866
+
10867
+ type PlayerOptions = {
10868
+ media?: HTMLMediaElement;
10869
+ mediaControls?: boolean;
10870
+ autoplay?: boolean;
10871
+ playbackRate?: number;
10872
+ };
10873
+ declare class Player<T extends GeneralEventTypes> extends EventEmitter<T> {
10874
+ protected media: HTMLMediaElement;
10875
+ private isExternalMedia;
10876
+ constructor(options: PlayerOptions);
10877
+ protected onMediaEvent<K extends keyof HTMLElementEventMap>(event: K, callback: (ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
10878
+ protected getSrc(): string;
10879
+ private revokeSrc;
10880
+ private canPlayType;
10881
+ protected setSrc(url: string, blob?: Blob): void;
10882
+ protected destroy(): void;
10883
+ protected setMediaElement(element: HTMLMediaElement): void;
10884
+ /** Start playing the audio */
10885
+ play(): Promise<void>;
10886
+ /** Pause the audio */
10887
+ pause(): void;
10888
+ /** Check if the audio is playing */
10889
+ isPlaying(): boolean;
10890
+ /** Jump to a specific time in the audio (in seconds) */
10891
+ setTime(time: number): void;
10892
+ /** Get the duration of the audio in seconds */
10893
+ getDuration(): number;
10894
+ /** Get the current audio position in seconds */
10895
+ getCurrentTime(): number;
10896
+ /** Get the audio volume */
10897
+ getVolume(): number;
10898
+ /** Set the audio volume */
10899
+ setVolume(volume: number): void;
10900
+ /** Get the audio muted state */
10901
+ getMuted(): boolean;
10902
+ /** Mute or unmute the audio */
10903
+ setMuted(muted: boolean): void;
10904
+ /** Get the playback speed */
10905
+ getPlaybackRate(): number;
10906
+ /** Check if the audio is seeking */
10907
+ isSeeking(): boolean;
10908
+ /** Set the playback speed, pass an optional false to NOT preserve the pitch */
10909
+ setPlaybackRate(rate: number, preservePitch?: boolean): void;
10910
+ /** Get the HTML media element */
10911
+ getMediaElement(): HTMLMediaElement;
10912
+ /** Set a sink id to change the audio output device */
10913
+ setSinkId(sinkId: string): Promise<void>;
10914
+ }
10915
+
10916
+ type WaveSurferOptions = {
10917
+ /** Required: an HTML element or selector where the waveform will be rendered */
10918
+ container: HTMLElement | string;
10919
+ /** The height of the waveform in pixels, or "auto" to fill the container height */
10920
+ height?: number | 'auto';
10921
+ /** The width of the waveform in pixels or any CSS value; defaults to 100% */
10922
+ width?: number | string;
10923
+ /** The color of the waveform */
10924
+ waveColor?: string | string[] | CanvasGradient;
10925
+ /** The color of the progress mask */
10926
+ progressColor?: string | string[] | CanvasGradient;
10927
+ /** The color of the playpack cursor */
10928
+ cursorColor?: string;
10929
+ /** The cursor width */
10930
+ cursorWidth?: number;
10931
+ /** If set, the waveform will be rendered with bars like this: ▁ ▂ ▇ ▃ ▅ ▂ */
10932
+ barWidth?: number;
10933
+ /** Spacing between bars in pixels */
10934
+ barGap?: number;
10935
+ /** Rounded borders for bars */
10936
+ barRadius?: number;
10937
+ /** A vertical scaling factor for the waveform */
10938
+ barHeight?: number;
10939
+ /** Vertical bar alignment */
10940
+ barAlign?: 'top' | 'bottom';
10941
+ /** Minimum pixels per second of audio (i.e. the zoom level) */
10942
+ minPxPerSec?: number;
10943
+ /** Stretch the waveform to fill the container, true by default */
10944
+ fillParent?: boolean;
10945
+ /** Audio URL */
10946
+ url?: string;
10947
+ /** Pre-computed audio data, arrays of floats for each channel */
10948
+ peaks?: Array<Float32Array | number[]>;
10949
+ /** Pre-computed audio duration in seconds */
10950
+ duration?: number;
10951
+ /** Use an existing media element instead of creating one */
10952
+ media?: HTMLMediaElement;
10953
+ /** Whether to show default audio element controls */
10954
+ mediaControls?: boolean;
10955
+ /** Play the audio on load */
10956
+ autoplay?: boolean;
10957
+ /** Pass false to disable clicks on the waveform */
10958
+ interact?: boolean;
10959
+ /** Allow to drag the cursor to seek to a new position. If an object with `debounceTime` is provided instead
10960
+ * then `dragToSeek` will also be true. If `true` the default is 200ms
10961
+ */
10962
+ dragToSeek?: boolean | {
10963
+ debounceTime: number;
10964
+ };
10965
+ /** Hide the scrollbar */
10966
+ hideScrollbar?: boolean;
10967
+ /** Audio rate, i.e. the playback speed */
10968
+ audioRate?: number;
10969
+ /** Automatically scroll the container to keep the current position in viewport */
10970
+ autoScroll?: boolean;
10971
+ /** If autoScroll is enabled, keep the cursor in the center of the waveform during playback */
10972
+ autoCenter?: boolean;
10973
+ /** Decoding sample rate. Doesn't affect the playback. Defaults to 8000 */
10974
+ sampleRate?: number;
10975
+ /** Render each audio channel as a separate waveform */
10976
+ splitChannels?: Array<Partial<WaveSurferOptions> & {
10977
+ overlay?: boolean;
10978
+ }>;
10979
+ /** Stretch the waveform to the full height */
10980
+ normalize?: boolean;
10981
+ /** The list of plugins to initialize on start */
10982
+ plugins?: GenericPlugin[];
10983
+ /** Custom render function */
10984
+ renderFunction?: (peaks: Array<Float32Array | number[]>, ctx: CanvasRenderingContext2D) => void;
10985
+ /** Options to pass to the fetch method */
10986
+ fetchParams?: RequestInit;
10987
+ /** Playback "backend" to use, defaults to MediaElement */
10988
+ backend?: 'WebAudio' | 'MediaElement';
10989
+ /** Nonce for CSP if necessary */
10990
+ cspNonce?: string;
10991
+ };
10992
+ declare const defaultOptions: {
10993
+ waveColor: string;
10994
+ progressColor: string;
10995
+ cursorWidth: number;
10996
+ minPxPerSec: number;
10997
+ fillParent: boolean;
10998
+ interact: boolean;
10999
+ dragToSeek: boolean;
11000
+ autoScroll: boolean;
11001
+ autoCenter: boolean;
11002
+ sampleRate: number;
11003
+ };
11004
+ type WaveSurferEvents = {
11005
+ /** After wavesurfer is created */
11006
+ init: [];
11007
+ /** When audio starts loading */
11008
+ load: [url: string];
11009
+ /** During audio loading */
11010
+ loading: [percent: number];
11011
+ /** When the audio has been decoded */
11012
+ decode: [duration: number];
11013
+ /** When the audio is both decoded and can play */
11014
+ ready: [duration: number];
11015
+ /** When visible waveform is drawn */
11016
+ redraw: [];
11017
+ /** When all audio channel chunks of the waveform have drawn */
11018
+ redrawcomplete: [];
11019
+ /** When the audio starts playing */
11020
+ play: [];
11021
+ /** When the audio pauses */
11022
+ pause: [];
11023
+ /** When the audio finishes playing */
11024
+ finish: [];
11025
+ /** On audio position change, fires continuously during playback */
11026
+ timeupdate: [currentTime: number];
11027
+ /** An alias of timeupdate but only when the audio is playing */
11028
+ audioprocess: [currentTime: number];
11029
+ /** When the user seeks to a new position */
11030
+ seeking: [currentTime: number];
11031
+ /** When the user interacts with the waveform (i.g. clicks or drags on it) */
11032
+ interaction: [newTime: number];
11033
+ /** When the user clicks on the waveform */
11034
+ click: [relativeX: number, relativeY: number];
11035
+ /** When the user double-clicks on the waveform */
11036
+ dblclick: [relativeX: number, relativeY: number];
11037
+ /** When the user drags the cursor */
11038
+ drag: [relativeX: number];
11039
+ /** When the user starts dragging the cursor */
11040
+ dragstart: [relativeX: number];
11041
+ /** When the user ends dragging the cursor */
11042
+ dragend: [relativeX: number];
11043
+ /** When the waveform is scrolled (panned) */
11044
+ scroll: [visibleStartTime: number, visibleEndTime: number, scrollLeft: number, scrollRight: number];
11045
+ /** When the zoom level changes */
11046
+ zoom: [minPxPerSec: number];
11047
+ /** Just before the waveform is destroyed so you can clean up your events */
11048
+ destroy: [];
11049
+ /** When source file is unable to be fetched, decoded, or an error is thrown by media element */
11050
+ error: [error: Error];
11051
+ };
11052
+ declare class WaveSurfer extends Player<WaveSurferEvents> {
11053
+ options: WaveSurferOptions & typeof defaultOptions;
11054
+ private renderer;
11055
+ private timer;
11056
+ private plugins;
11057
+ private decodedData;
11058
+ protected subscriptions: Array<() => void>;
11059
+ protected mediaSubscriptions: Array<() => void>;
11060
+ protected abortController: AbortController | null;
11061
+ static readonly BasePlugin: typeof BasePlugin;
11062
+ static readonly dom: typeof dom;
11063
+ /** Create a new WaveSurfer instance */
11064
+ static create(options: WaveSurferOptions): WaveSurfer;
11065
+ /** Create a new WaveSurfer instance */
11066
+ constructor(options: WaveSurferOptions);
11067
+ private updateProgress;
11068
+ private initTimerEvents;
11069
+ private initPlayerEvents;
11070
+ private initRendererEvents;
11071
+ private initPlugins;
11072
+ private unsubscribePlayerEvents;
11073
+ /** Set new wavesurfer options and re-render it */
11074
+ setOptions(options: Partial<WaveSurferOptions>): void;
11075
+ /** Register a wavesurfer plugin */
11076
+ registerPlugin<T extends GenericPlugin>(plugin: T): T;
11077
+ /** For plugins only: get the waveform wrapper div */
11078
+ getWrapper(): HTMLElement;
11079
+ /** For plugins only: get the scroll container client width */
11080
+ getWidth(): number;
11081
+ /** Get the current scroll position in pixels */
11082
+ getScroll(): number;
11083
+ /** Set the current scroll position in pixels */
11084
+ setScroll(pixels: number): void;
11085
+ /** Move the start of the viewing window to a specific time in the audio (in seconds) */
11086
+ setScrollTime(time: number): void;
11087
+ /** Get all registered plugins */
11088
+ getActivePlugins(): GenericPlugin[];
11089
+ private loadAudio;
11090
+ /** Load an audio file by URL, with optional pre-decoded audio data */
11091
+ load(url: string, channelData?: WaveSurferOptions['peaks'], duration?: number): Promise<void>;
11092
+ /** Load an audio blob */
11093
+ loadBlob(blob: Blob, channelData?: WaveSurferOptions['peaks'], duration?: number): Promise<void>;
11094
+ /** Zoom the waveform by a given pixels-per-second factor */
11095
+ zoom(minPxPerSec: number): void;
11096
+ /** Get the decoded audio data */
11097
+ getDecodedData(): AudioBuffer | null;
11098
+ /** Get decoded peaks */
11099
+ exportPeaks({ channels, maxLength, precision }?: {
11100
+ channels?: number | undefined;
11101
+ maxLength?: number | undefined;
11102
+ precision?: number | undefined;
11103
+ }): Array<number[]>;
11104
+ /** Get the duration of the audio in seconds */
11105
+ getDuration(): number;
11106
+ /** Toggle if the waveform should react to clicks */
11107
+ toggleInteraction(isInteractive: boolean): void;
11108
+ /** Jump to a specific time in the audio (in seconds) */
11109
+ setTime(time: number): void;
11110
+ /** Seek to a percentage of audio as [0..1] (0 = beginning, 1 = end) */
11111
+ seekTo(progress: number): void;
11112
+ /** Play or pause the audio */
11113
+ playPause(): Promise<void>;
11114
+ /** Stop the audio and go to the beginning */
11115
+ stop(): void;
11116
+ /** Skip N or -N seconds from the current position */
11117
+ skip(seconds: number): void;
11118
+ /** Empty the waveform */
11119
+ empty(): void;
11120
+ /** Set HTML media element */
11121
+ setMediaElement(element: HTMLMediaElement): void;
11122
+ /**
11123
+ * Export the waveform image as a data-URI or a blob.
11124
+ *
11125
+ * @param format The format of the exported image, can be `image/png`, `image/jpeg`, `image/webp` or any other format supported by the browser.
11126
+ * @param quality The quality of the exported image, for `image/jpeg` or `image/webp`. Must be between 0 and 1.
11127
+ * @param type The type of the exported image, can be `dataURL` (default) or `blob`.
11128
+ * @returns A promise that resolves with an array of data-URLs or blobs, one for each canvas element.
11129
+ */
11130
+ exportImage(format: string, quality: number, type: 'dataURL'): Promise<string[]>;
11131
+ exportImage(format: string, quality: number, type: 'blob'): Promise<Blob[]>;
11132
+ /** Unmount wavesurfer */
11133
+ destroy(): void;
11134
+ }
11135
+
11136
+ interface MediaPlayer {
11137
+ video?: HTMLVideoElement | null;
11138
+ mediaRecorder?: MediaRecorder | null;
11139
+ }
11140
+ /**
11141
+ * storing current media which is being played.
11142
+ */
11143
+ declare const currentMediaPlayer: MediaPlayer;
11144
+ declare const currentAudioPlayer: {
11145
+ instance: WaveSurfer | null;
11146
+ setIsPlaying: ((isPlaying: boolean) => void) | null;
11147
+ };
11148
+ /**
11149
+ * Function to stop current media playback.
11150
+ */
11151
+ declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
10866
11152
  declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
10867
11153
  declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
10868
11154
  /**
@@ -11056,7 +11342,7 @@ declare class CometChatUIKitUtility {
11056
11342
  * @param messageObject - The message object containing extensions.
11057
11343
  * @returns The sanitized message text if available, otherwise the original text.
11058
11344
  */
11059
- static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
11345
+ static getExtensionData(messageObject: CometChat.BaseMessage): string;
11060
11346
  /**
11061
11347
  * Checks for extension data in a message.
11062
11348
  *
@@ -11064,7 +11350,7 @@ declare class CometChatUIKitUtility {
11064
11350
  * @param extensionKey - The extension key to look for.
11065
11351
  * @returns The extension data if found.
11066
11352
  */
11067
- static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
11353
+ static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
11068
11354
  /**
11069
11355
  * Sanitizes an HTML string by escaping tags not matching the whitelist.
11070
11356
  *
@@ -11110,4 +11396,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
11110
11396
  declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
11111
11397
  declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
11112
11398
 
11113
- 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, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, 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 };