@cometchat/chat-uikit-react 6.3.1 → 6.3.3
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.
- package/dist/index.d.ts +68 -42
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +21 -0
- package/dist/styles/CometChatAIAssistantMessageBubble.css +21 -4
- package/dist/styles/CometChatSearch.css +4 -1
- package/dist/styles/CometChatStreamMessageBubble.css +21 -5
- package/dist/styles/components/CometChatAIAssistantChat.css +21 -0
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +21 -4
- package/dist/styles/components/CometChatSearch.css +4 -1
- package/dist/styles/components/CometChatStreamMessageBubble.css +21 -5
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +4 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +21 -0
- package/dist/types/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +1 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -0
- package/dist/types/services/stream-message.service.d.ts +1 -0
- package/dist/types/utils/util.d.ts +5 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -658,6 +658,11 @@ declare class UIKitSettings {
|
|
|
658
658
|
* @type {ExtensionsDataSource}
|
|
659
659
|
*/
|
|
660
660
|
readonly callingExtension?: CallingExtension;
|
|
661
|
+
/**
|
|
662
|
+
* Storage mode for persisting data.
|
|
663
|
+
* @type {CometChat.StorageMode}
|
|
664
|
+
*/
|
|
665
|
+
readonly storageMode: CometChat.StorageMode;
|
|
661
666
|
/**
|
|
662
667
|
* Private constructor to initialize the settings using the provided builder.
|
|
663
668
|
* @param {UIKitSettingsBuilder} builder - The builder instance containing the settings configuration.
|
|
@@ -719,6 +724,11 @@ declare class UIKitSettings {
|
|
|
719
724
|
* @returns {ExtensionsDataSource[]}
|
|
720
725
|
*/
|
|
721
726
|
getCallsExtension(): ExtensionsDataSource;
|
|
727
|
+
/**
|
|
728
|
+
* Retrieves the storage mode.
|
|
729
|
+
* @returns {CometChat.StorageMode} The storage mode.
|
|
730
|
+
*/
|
|
731
|
+
getStorageMode(): CometChat.StorageMode;
|
|
722
732
|
}
|
|
723
733
|
declare class UIKitSettingsBuilder {
|
|
724
734
|
/**
|
|
@@ -787,6 +797,11 @@ declare class UIKitSettingsBuilder {
|
|
|
787
797
|
* @type {string}
|
|
788
798
|
*/
|
|
789
799
|
clientHost?: string;
|
|
800
|
+
/**
|
|
801
|
+
* Storage mode for persisting data.
|
|
802
|
+
* @type {CometChat.StorageMode}
|
|
803
|
+
*/
|
|
804
|
+
storageMode?: CometChat.StorageMode;
|
|
790
805
|
/**
|
|
791
806
|
* Builds and returns an instance of UIKitSettings.
|
|
792
807
|
* @returns {UIKitSettings} A new instance of UIKitSettings with the specified configuration.
|
|
@@ -863,6 +878,12 @@ declare class UIKitSettingsBuilder {
|
|
|
863
878
|
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
864
879
|
*/
|
|
865
880
|
setCallsExtension(callingExtension: CallingExtension): UIKitSettingsBuilder;
|
|
881
|
+
/**
|
|
882
|
+
* Sets the storage mode.
|
|
883
|
+
* @param {CometChat.StorageMode} storageMode - The storage mode.
|
|
884
|
+
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
885
|
+
*/
|
|
886
|
+
setStorageMode(storageMode: CometChat.StorageMode): UIKitSettingsBuilder;
|
|
866
887
|
}
|
|
867
888
|
|
|
868
889
|
/**
|
|
@@ -1472,7 +1493,7 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1472
1493
|
}): Array<string>;
|
|
1473
1494
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
|
|
1474
1495
|
getId(): string;
|
|
1475
|
-
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams):
|
|
1496
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX$1.Element | Element;
|
|
1476
1497
|
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
1477
1498
|
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
1478
1499
|
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
|
|
@@ -2245,17 +2266,17 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2245
2266
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2246
2267
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2247
2268
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2248
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean):
|
|
2249
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment):
|
|
2250
|
-
getReplyView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, onReplyPreviewClick?: (messageToReply: CometChat.BaseMessage) => void, textFormatters?: CometChatTextFormatter[]):
|
|
2251
|
-
getFooterView(message: CometChat.BaseMessage):
|
|
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;
|
|
2252
2273
|
getMessagePreviewSubtitle(message: CometChat.BaseMessage, textFormatters?: CometChatTextFormatter[], _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
|
|
2253
2274
|
getMessagePreviewTitle(message: CometChat.BaseMessage, _alignment?: MessageBubbleAlignment): JSX$1.Element | null;
|
|
2254
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2255
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2256
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2257
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2258
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
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;
|
|
2259
2280
|
getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
2260
2281
|
getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
2261
2282
|
getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
@@ -2275,32 +2296,32 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2275
2296
|
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
2276
2297
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group, messageToReply?: CometChat.BaseMessage | null, closeReplyPreview?: () => void): JSX$1.Element | undefined;
|
|
2277
2298
|
getId(): string;
|
|
2278
|
-
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment):
|
|
2279
|
-
getGroupActionBubble(message: CometChat.BaseMessage):
|
|
2280
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2281
|
-
getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2282
|
-
getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2283
|
-
getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2284
|
-
getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2285
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2286
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2287
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
2288
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
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;
|
|
2289
2310
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
|
|
2290
2311
|
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
|
|
2291
2312
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
2292
2313
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
2293
2314
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
2294
2315
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
2295
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2296
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2297
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
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;
|
|
2298
2319
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
2299
2320
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
2300
2321
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
2301
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2302
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2303
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
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;
|
|
2304
2325
|
}
|
|
2305
2326
|
|
|
2306
2327
|
interface ListProps<T> {
|
|
@@ -2855,7 +2876,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
2855
2876
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
2856
2877
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
2857
2878
|
*/
|
|
2858
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
2879
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
2859
2880
|
/**
|
|
2860
2881
|
* Retrieves the style for the link preview wrapper.
|
|
2861
2882
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -2949,7 +2970,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
2949
2970
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
2950
2971
|
* @returns {JSX.Element} The content view for the text message.
|
|
2951
2972
|
*/
|
|
2952
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element |
|
|
2973
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
|
|
2953
2974
|
/**
|
|
2954
2975
|
* Checks if an option with the specified ID already exists in the options list.
|
|
2955
2976
|
*
|
|
@@ -3294,7 +3315,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3294
3315
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
3295
3316
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
3296
3317
|
*/
|
|
3297
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function):
|
|
3318
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
|
|
3298
3319
|
/**
|
|
3299
3320
|
* Provides the video message bubble with support for thumbnail generation.
|
|
3300
3321
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -3305,7 +3326,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3305
3326
|
* @param {Function} [onClick] - Optional click event handler.
|
|
3306
3327
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
3307
3328
|
*/
|
|
3308
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function):
|
|
3329
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
|
|
3309
3330
|
}
|
|
3310
3331
|
|
|
3311
3332
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -4929,6 +4950,11 @@ declare class CometChatUIKitConstants {
|
|
|
4929
4950
|
changeScope: "changeScope";
|
|
4930
4951
|
groupMembers: "groupMembers";
|
|
4931
4952
|
}>;
|
|
4953
|
+
static mimeTypes: Readonly<{
|
|
4954
|
+
audio: "audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg";
|
|
4955
|
+
video: "video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt";
|
|
4956
|
+
image: "image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr";
|
|
4957
|
+
}>;
|
|
4932
4958
|
static streamMessageTypes: Readonly<{
|
|
4933
4959
|
run_started: string;
|
|
4934
4960
|
text_message_start: string;
|
|
@@ -6142,7 +6168,6 @@ declare const currentAudioPlayer: {
|
|
|
6142
6168
|
* Function to stop current media playback.
|
|
6143
6169
|
*/
|
|
6144
6170
|
declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
|
|
6145
|
-
declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
|
|
6146
6171
|
declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
|
|
6147
6172
|
/**
|
|
6148
6173
|
* Function to check if the current browser is safari.
|
|
@@ -6187,12 +6212,14 @@ declare const useDebouncedCallback: (callback: () => void, delay: number) => {
|
|
|
6187
6212
|
cleanup: () => void;
|
|
6188
6213
|
};
|
|
6189
6214
|
declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
|
|
6215
|
+
declare function createMessageCopyFromBaseMessage(msg: CometChat.BaseMessage, user: CometChat.User | undefined): CometChat.BaseMessage;
|
|
6190
6216
|
declare function isDarkMode(): boolean;
|
|
6191
6217
|
/**
|
|
6192
|
-
*
|
|
6193
|
-
*
|
|
6218
|
+
* @function shouldShowCustomMimeTypes
|
|
6219
|
+
* @description Returns true if the device is running either iOS (iPhone, iPad, iPod) or macOS.
|
|
6220
|
+
* @returns {boolean} True if the device is an Apple device (iOS or macOS), false otherwise.
|
|
6194
6221
|
*/
|
|
6195
|
-
declare const
|
|
6222
|
+
declare const shouldShowCustomMimeTypes: () => boolean;
|
|
6196
6223
|
|
|
6197
6224
|
/**
|
|
6198
6225
|
* Utility class for managing local storage with change detection capabilities.
|
|
@@ -6398,13 +6425,11 @@ declare class CometChatUIKitUtility {
|
|
|
6398
6425
|
*/
|
|
6399
6426
|
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
6400
6427
|
/**
|
|
6401
|
-
*
|
|
6402
|
-
*
|
|
6403
|
-
* @
|
|
6404
|
-
* @param whitelistRegExes - A list of regular expressions to match allowed tags.
|
|
6405
|
-
* @returns The sanitized HTML string.
|
|
6428
|
+
* Process and sanitize text to escape dangerous HTML while preserving mention formatting
|
|
6429
|
+
* @param text The text string that may contain HTML and mentions
|
|
6430
|
+
* @returns Sanitized string with dangerous HTML escaped but mentions preserved
|
|
6406
6431
|
*/
|
|
6407
|
-
static
|
|
6432
|
+
static sanitizeText(text: string): string;
|
|
6408
6433
|
static convertBlobToWav: (audioBlob: {
|
|
6409
6434
|
arrayBuffer: () => any;
|
|
6410
6435
|
}) => Promise<{
|
|
@@ -6830,6 +6855,7 @@ declare const setAIAssistantTools: (actions: CometChatAIAssistantTools) => void;
|
|
|
6830
6855
|
* Unsubscribes from the message processor and resets accumulated content
|
|
6831
6856
|
*/
|
|
6832
6857
|
declare const stopStreamingMessage: () => void;
|
|
6858
|
+
declare const emitStreamingState: (state: boolean) => void;
|
|
6833
6859
|
|
|
6834
6860
|
interface CometChatStreamMessageBubbleProps {
|
|
6835
6861
|
message?: CometChat.AIAssistantBaseEvent;
|
|
@@ -6874,5 +6900,5 @@ interface CometChatAIAssistantChatHistoryProps {
|
|
|
6874
6900
|
}
|
|
6875
6901
|
declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
6876
6902
|
|
|
6877
|
-
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, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject,
|
|
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 };
|
|
6878
6904
|
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };
|