@cometchat/chat-uikit-react 6.3.3 → 6.3.5

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 (27) hide show
  1. package/dist/assets/Profile.png +0 -0
  2. package/dist/assets/warning_neutral.svg +3 -0
  3. package/dist/index.d.ts +135 -40
  4. package/dist/index.js +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/styles/CometChatFlagMessageDialog.css +207 -0
  7. package/dist/styles/CometChatMessageComposer.css +5 -7
  8. package/dist/styles/CometChatMessageList.css +7 -2
  9. package/dist/styles/CometChatUserMemberWrapper.css +25 -0
  10. package/dist/styles/components/CometChatFlagMessageDialog.css +207 -0
  11. package/dist/styles/components/CometChatMessageComposer.css +5 -7
  12. package/dist/styles/components/CometChatMessageList.css +7 -2
  13. package/dist/styles/components/CometChatUserMemberWrapper.css +25 -0
  14. package/dist/styles/components/index.css +2 -0
  15. package/dist/styles/index.css +2 -0
  16. package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +1 -0
  17. package/dist/types/components/CometChatFlagMessageDialog/CometChatFlagMessageDialog.d.ts +29 -0
  18. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +21 -0
  19. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +2 -1
  20. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +10 -0
  21. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +15 -1
  22. package/dist/types/constants/CometChatUIKitConstants.d.ts +1 -0
  23. package/dist/types/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +22 -5
  24. package/dist/types/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +3 -2
  25. package/dist/types/index.d.ts +1 -0
  26. package/dist/types/utils/MessagesDataSource.d.ts +2 -0
  27. package/package.json +2 -2
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.9982 16.918C12.2447 16.918 12.4485 16.8384 12.6095 16.6792C12.7706 16.5201 12.8512 16.3172 12.8512 16.0707C12.8512 15.8244 12.7716 15.6206 12.6125 15.4595C12.4533 15.2985 12.2506 15.218 12.0042 15.218C11.7577 15.218 11.554 15.2976 11.393 15.4567C11.2318 15.6159 11.1512 15.8186 11.1512 16.065C11.1512 16.3113 11.2308 16.5151 11.39 16.6762C11.5491 16.8374 11.7519 16.918 11.9982 16.918ZM12.0625 13.118C12.2828 13.118 12.4693 13.0409 12.622 12.8867C12.7748 12.7326 12.8512 12.5443 12.8512 12.322V7.75547C12.8512 7.53964 12.7736 7.35439 12.6185 7.19972C12.4633 7.04522 12.2774 6.96797 12.0607 6.96797C11.8377 6.96797 11.6498 7.04522 11.497 7.19972C11.3443 7.35439 11.268 7.53964 11.268 7.75547V12.322C11.268 12.5443 11.3453 12.7326 11.5 12.8867C11.6546 13.0409 11.8421 13.118 12.0625 13.118ZM12.0067 21.8345C10.6494 21.8345 9.37347 21.5754 8.17897 21.0572C6.98447 20.5389 5.94305 19.8347 5.05472 18.9447C4.16622 18.0546 3.46297 17.0128 2.94497 15.8195C2.42697 14.626 2.16797 13.3508 2.16797 11.994C2.16797 10.6356 2.42705 9.35889 2.94522 8.16372C3.46355 6.96839 4.16772 5.92789 5.05772 5.04222C5.94789 4.15655 6.98964 3.45605 8.18297 2.94072C9.37647 2.42555 10.6516 2.16797 12.0085 2.16797C13.3668 2.16797 14.6436 2.42639 15.839 2.94322C17.0343 3.45989 18.0748 4.16122 18.9605 5.04722C19.846 5.93322 20.5464 6.9738 21.0617 8.16897C21.5769 9.36414 21.8345 10.6397 21.8345 11.9957C21.8345 13.3531 21.5767 14.629 21.0612 15.8235C20.5457 17.018 19.8444 18.0584 18.9572 18.9447C18.0699 19.8311 17.0286 20.5343 15.8335 21.0545C14.6383 21.5745 13.3627 21.8345 12.0067 21.8345ZM12.009 20.2512C14.2955 20.2512 16.2408 19.4466 17.845 17.8372C19.4491 16.2279 20.2512 14.28 20.2512 11.9935C20.2512 9.70697 19.4504 7.76164 17.8487 6.15747C16.2469 4.5533 14.2979 3.75122 12.0017 3.75122C9.72089 3.75122 7.77555 4.55205 6.16572 6.15372C4.55605 7.75555 3.75122 9.70455 3.75122 12.0007C3.75122 14.2816 4.55589 16.2269 6.16522 17.8367C7.77455 19.4464 9.72247 20.2512 12.009 20.2512Z" fill="#A1A1A1"/>
3
+ </svg>
package/dist/index.d.ts CHANGED
@@ -338,7 +338,7 @@ interface MentionsProps {
338
338
  * @param user - The clicked user (CometChat.User) or group member (CometChat.GroupMember)
339
339
  * @returns void
340
340
  */
341
- onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
341
+ onItemClick?: (user: CometChat.User | CometChat.GroupMember | null) => void;
342
342
  /**
343
343
  * A custom view to render each user or group member item in the list.
344
344
  *
@@ -386,6 +386,20 @@ interface MentionsProps {
386
386
  * @defaultValue `false`
387
387
  */
388
388
  showScrollbar?: boolean;
389
+ /**
390
+ * Disables the mentions functionality in the message composer.
391
+ * @defaultValue `false`
392
+ */
393
+ disableMentions?: boolean;
394
+ /**
395
+ * Boolean to show or hide '@all' mention option in the mentions list.
396
+ * @defaultValue `false`
397
+ */
398
+ disableMentionAll?: boolean;
399
+ /** The mentionAll label for the app used to render "@all" mentions
400
+ * @defaultValue "all"
401
+ */
402
+ mentionAllLabel?: string;
389
403
  }
390
404
  declare function CometChatUserMemberWrapper(props: MentionsProps): react_jsx_runtime.JSX.Element;
391
405
 
@@ -1415,6 +1429,7 @@ interface additionalParamsOptions {
1415
1429
  hideMessagePrivatelyOption?: boolean;
1416
1430
  hideCopyMessageOption?: boolean;
1417
1431
  hideMessageInfoOption?: boolean;
1432
+ hideFlagMessageOption?: boolean;
1418
1433
  }
1419
1434
  declare class MessagesDataSource implements DataSource {
1420
1435
  getEditOption(): CometChatActionsIcon;
@@ -1425,6 +1440,7 @@ declare class MessagesDataSource implements DataSource {
1425
1440
  getSendMessagePrivatelyOption(): CometChatActionsIcon;
1426
1441
  getCopyOption(): CometChatActionsIcon;
1427
1442
  getMessageInfoOption(): CometChatActionsIcon;
1443
+ getReportOption(): CometChatActionsIcon;
1428
1444
  isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
1429
1445
  getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
1430
1446
  getIsSentByMe(message: CometChat.BaseMessage): boolean;
@@ -1493,7 +1509,7 @@ declare class MessagesDataSource implements DataSource {
1493
1509
  }): Array<string>;
1494
1510
  getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
1495
1511
  getId(): string;
1496
- getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX$1.Element | Element;
1512
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX$1.Element;
1497
1513
  getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1498
1514
  getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1499
1515
  getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
@@ -1729,9 +1745,10 @@ declare abstract class CometChatTextFormatter {
1729
1745
  * @param {string|null} inputText - The text to format.
1730
1746
  * @return {string|void} - The original or formatted input text, or void if editing was done based on cursor position.
1731
1747
  */
1732
- getFormattedText(inputText: string | null, params: {
1748
+ getFormattedText(inputText: string, params: {
1733
1749
  mentionsTargetElement: MentionsTargetElement;
1734
1750
  }): string | void;
1751
+ getFormattedTextForEntity(entity: any): void;
1735
1752
  /**
1736
1753
  * Sets the message object.
1737
1754
  *
@@ -1777,7 +1794,7 @@ declare abstract class CometChatTextFormatter {
1777
1794
  * @param {string|null} inputText - The text to apply regex match.
1778
1795
  * @return {string} - The replaced text.
1779
1796
  */
1780
- protected onRegexMatch(inputText?: string | null): string;
1797
+ protected onRegexMatch(inputText?: string | null, entity?: any): string;
1781
1798
  /**
1782
1799
  * Debounce function.
1783
1800
  * @param {Function} func - The function to debounce.
@@ -1846,6 +1863,7 @@ declare class CometChatMentionsFormatter extends CometChatTextFormatter {
1846
1863
  * List of users for mentions.
1847
1864
  */
1848
1865
  private cometChatUserGroupMembers;
1866
+ private mentionedChannels;
1849
1867
  /**
1850
1868
  * Mapping of CSS classes for mentions.
1851
1869
  */
@@ -1944,6 +1962,20 @@ declare class CometChatMentionsFormatter extends CometChatTextFormatter {
1944
1962
  */
1945
1963
  setCometChatUserGroupMembers(CometChatUserGroupMembers: Array<CometChat.User | CometChat.GroupMember>): void;
1946
1964
  resetCometChatUserGroupMembers(): void;
1965
+ /**
1966
+ * Retrieves the mentioned channels.
1967
+ * @returns {string[]} - The current mentioned channels.
1968
+ */
1969
+ getCometChatMentionedChannels(): string[];
1970
+ /**
1971
+ * Sets the mentioned channels.
1972
+ * @param {string[]} mentionAllLabels - The mentionAll labels to be set as mentioned channels.
1973
+ */
1974
+ setCometChatMentionedChannels(mentionAllLabels: string[]): void;
1975
+ /**
1976
+ * Resets the mentioned channels.
1977
+ */
1978
+ resetCometChatMentionedChannels(): void;
1947
1979
  /**
1948
1980
  * Sets the callback function for handling key down events.
1949
1981
  *
@@ -1968,12 +2000,13 @@ declare class CometChatMentionsFormatter extends CometChatTextFormatter {
1968
2000
  stopTracking(): void;
1969
2001
  /**
1970
2002
  * Formats the input text if provided, otherwise edits the text at the cursor position.
1971
- * @param {string|null} inputText - The input text to be formatted.
2003
+ * @param {string} inputText - The input text to be formatted.
1972
2004
  * @returns {string|void} - The formatted input text, or void if inputText is not provided.
1973
2005
  */
1974
- getFormattedText(inputText: string | null, params?: {
2006
+ getFormattedText(inputText: string, params?: {
1975
2007
  mentionsTargetElement: MentionsTargetElement;
1976
2008
  }): string | void;
2009
+ getFormattedTextForEntity(entity: CometChat.User | CometChat.GroupMember | string): void;
1977
2010
  /**
1978
2011
  * This function adds the mention span to the input text.
1979
2012
  * @param {string} inputText - The input text where the span needs to be added.
@@ -2023,12 +2056,13 @@ declare class CometChatMentionsFormatter extends CometChatTextFormatter {
2023
2056
  */
2024
2057
  protected addAtCaretPosition(newHtml: string, currentCaretPosition: Selection, currentRange: Range): void;
2025
2058
  /**
2026
- * Matches the regex with the given inputText and replaces the matched text with respective spans
2059
+ * Matches the regex with the given inputText and replaces the matched text with respective spans of the provided entity
2027
2060
  *
2028
- * @param {string | null} inputText - The text in which the regex patterns needs to be matched
2061
+ * @param {string} inputText - The text in which the regex patterns needs to be matched
2062
+ * @param {CometChat.User | CometChat.GroupMember | string} entity - The entity to be used for replacing the matched text
2029
2063
  * @return {string} - The text after replacing the matched text with spans
2030
2064
  */
2031
- onRegexMatch(inputText?: string | null): string;
2065
+ onRegexMatch(inputText: string, entity: CometChat.User | CometChat.GroupMember | string): string;
2032
2066
  /**
2033
2067
  * Retrieves the original text after replacing mentions span with UIDs
2034
2068
  *
@@ -2266,17 +2300,17 @@ declare abstract class DataSourceDecorator implements DataSource {
2266
2300
  getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2267
2301
  getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2268
2302
  getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2269
- getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): JSX$1.Element | Element | null;
2270
- getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element | null;
2271
- getReplyView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, onReplyPreviewClick?: (messageToReply: CometChat.BaseMessage) => void, textFormatters?: CometChatTextFormatter[]): JSX$1.Element | Element | null;
2272
- getFooterView(message: CometChat.BaseMessage): JSX$1.Element | Element | null;
2303
+ getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX$1.Element | null;
2304
+ getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element | null;
2305
+ getReplyView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, onReplyPreviewClick?: (messageToReply: CometChat.BaseMessage) => void, textFormatters?: CometChatTextFormatter[]): Element | JSX$1.Element | null;
2306
+ getFooterView(message: CometChat.BaseMessage): Element | JSX$1.Element | null;
2273
2307
  getMessagePreviewSubtitle(message: CometChat.BaseMessage, textFormatters?: CometChatTextFormatter[], _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
2274
2308
  getMessagePreviewTitle(message: CometChat.BaseMessage, _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
2275
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2276
- getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2277
- getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2278
- getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2279
- getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2309
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2310
+ getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2311
+ getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2312
+ getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2313
+ getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2280
2314
  getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2281
2315
  getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2282
2316
  getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
@@ -2296,32 +2330,32 @@ declare abstract class DataSourceDecorator implements DataSource {
2296
2330
  getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
2297
2331
  getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
2298
2332
  getId(): string;
2299
- getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2300
- getGroupActionBubble(message: CometChat.BaseMessage): JSX$1.Element | Element;
2301
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2302
- getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2303
- getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2304
- getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2305
- getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2306
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2307
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2308
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2309
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2333
+ getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2334
+ getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX$1.Element;
2335
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2336
+ getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2337
+ getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2338
+ getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2339
+ getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2340
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2341
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2342
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2343
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2310
2344
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2311
2345
  getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
2312
2346
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2313
2347
  getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
2314
2348
  getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
2315
2349
  getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
2316
- getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2317
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2318
- getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2350
+ getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2351
+ getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2352
+ getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2319
2353
  getFormMessageTemplate(): CometChatMessageTemplate;
2320
2354
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
2321
2355
  getCardMessageTemplate(): CometChatMessageTemplate;
2322
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2323
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2324
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2356
+ getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2357
+ getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2358
+ getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2325
2359
  }
2326
2360
 
2327
2361
  interface ListProps<T> {
@@ -2876,7 +2910,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
2876
2910
  * @param {any} [additionalConfigurations] - Additional configurations for formatting.
2877
2911
  * @returns {JSX.Element} The JSX element representing the message content view.
2878
2912
  */
2879
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2913
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React__default.JSX.Element;
2880
2914
  /**
2881
2915
  * Retrieves the style for the link preview wrapper.
2882
2916
  * @returns {object} The style object for the link preview wrapper.
@@ -2970,7 +3004,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
2970
3004
  * @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
2971
3005
  * @returns {JSX.Element} The content view for the text message.
2972
3006
  */
2973
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
3007
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React.JSX.Element;
2974
3008
  /**
2975
3009
  * Checks if an option with the specified ID already exists in the options list.
2976
3010
  *
@@ -3315,7 +3349,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3315
3349
  * @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
3316
3350
  * @returns {React.ReactNode} The rendered image message bubble.
3317
3351
  */
3318
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
3352
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | React.JSX.Element;
3319
3353
  /**
3320
3354
  * Provides the video message bubble with support for thumbnail generation.
3321
3355
  * It checks for a thumbnail URL in the message metadata and uses it if available.
@@ -3326,7 +3360,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3326
3360
  * @param {Function} [onClick] - Optional click event handler.
3327
3361
  * @returns {React.ReactNode} The rendered video message bubble.
3328
3362
  */
3329
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
3363
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | React.JSX.Element;
3330
3364
  }
3331
3365
 
3332
3366
  declare class CallingExtensionDecorator extends DataSourceDecorator {
@@ -4229,6 +4263,27 @@ interface MessageComposerProps {
4229
4263
  * @defaultValue ""
4230
4264
  */
4231
4265
  placeholderText?: string;
4266
+ /**
4267
+ * Boolean to show or hide "@all" mention functionality in group chats.
4268
+ * @defaultValue `false`
4269
+ */
4270
+ disableMentionAll?: boolean;
4271
+ /** The mentionAll label for the app used to render "@all" mentions
4272
+ * @defaultValue "all"
4273
+ */
4274
+ mentionAllLabel?: string;
4275
+ /**
4276
+ * Custom request builder for mentions user list.
4277
+ * @defaultValue `undefined` - Uses default internal request builder.
4278
+ *
4279
+ */
4280
+ mentionsUsersRequestBuilder?: CometChat.UsersRequestBuilder;
4281
+ /**
4282
+ * Custom request builder for mentions group members list.
4283
+ * @defaultValue `undefined` - Uses default internal request builder
4284
+ *
4285
+ */
4286
+ mentionsGroupMembersRequestBuilder?: CometChat.GroupMembersRequestBuilder;
4232
4287
  }
4233
4288
  /**
4234
4289
  * Renders a message composer to send messages to a user or group of a CometChat App
@@ -4586,6 +4641,16 @@ interface MessageListProps {
4586
4641
  * @defaultValue `false`
4587
4642
  */
4588
4643
  isAgentChat?: boolean;
4644
+ /**
4645
+ * hides the "Flag Message" option from message actions menu
4646
+ * @defaultValue `false`
4647
+ */
4648
+ hideFlagMessageOption?: boolean;
4649
+ /**
4650
+ * hides the remark text area in the flag dialog
4651
+ * @defaultValue `false`
4652
+ */
4653
+ hideFlagRemarkField?: boolean;
4589
4654
  }
4590
4655
  declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
4591
4656
 
@@ -4791,6 +4856,35 @@ interface MessageInformationProps {
4791
4856
  }
4792
4857
  declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
4793
4858
 
4859
+ interface CometChatFlagMessageDialogProps {
4860
+ message: CometChat.BaseMessage;
4861
+ /**
4862
+ * Callback triggered when the dialog is closed.
4863
+ * @returns void
4864
+ */
4865
+ onClose?: () => void;
4866
+ /**
4867
+ * Callback triggered when an error occurs when trying to flag a message.
4868
+ * @param error - An instance of `CometChat.CometChatException` representing the error.
4869
+ * @returns void
4870
+ */
4871
+ onError?: ((error: CometChat.CometChatException) => void) | null;
4872
+ /**
4873
+ * Callback triggered when the flag report is submitted.
4874
+ * @param messageId - ID of the message being flagged.
4875
+ * @param reasonId - ID of the reason for flagging the message.
4876
+ * @param remark - Optional remark provided by the user.
4877
+ * @returns A promise that resolves to a boolean indicating the success of the flagging operation.
4878
+ */
4879
+ onSubmit?: (messageId: string, reasonId: string, remark?: string) => Promise<boolean>;
4880
+ /**
4881
+ * Boolean to hide the remark input field.
4882
+ * @defaultValue `false`
4883
+ */
4884
+ hideFlagRemarkField?: boolean;
4885
+ }
4886
+ declare const CometChatFlagMessageDialog: (props: CometChatFlagMessageDialogProps) => react_jsx_runtime.JSX.Element;
4887
+
4794
4888
  declare class CometChatUIKitConstants {
4795
4889
  static MessageCategory: Readonly<{
4796
4890
  message: string;
@@ -4852,6 +4946,7 @@ declare class CometChatUIKitConstants {
4852
4946
  translateMessage: "translate";
4853
4947
  reactToMessage: "react";
4854
4948
  messageInformation: "messageInformation";
4949
+ flagMessage: "flagMessage";
4855
4950
  copyMessage: "copy";
4856
4951
  shareMessage: "share";
4857
4952
  forwardMessage: "forward";
@@ -6900,5 +6995,5 @@ interface CometChatAIAssistantChatHistoryProps {
6900
6995
  }
6901
6996
  declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
6902
6997
 
6903
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessagePreview, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, 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, createMessageCopy, createMessageCopyFromBaseMessage, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, emitStreamingState, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject, sanitizeHtmlStringToFragment, setAIAssistantTools, setStreamSpeed, shouldShowCustomMimeTypes, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6998
+ export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFlagMessageDialog, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessagePreview, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, 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, createMessageCopy, createMessageCopyFromBaseMessage, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, emitStreamingState, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject, sanitizeHtmlStringToFragment, setAIAssistantTools, setStreamSpeed, shouldShowCustomMimeTypes, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6904
6999
  export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };