@cometchat/chat-uikit-react 6.0.2 → 6.0.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 +61 -57
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatConversationStarter.css +2 -1
- package/dist/styles/CometChatMediaRecorder.css +76 -4
- package/dist/styles/CometChatMessageBubble.css +4 -1
- package/dist/styles/CometChatMessageComposer.css +19 -2
- package/dist/styles/CometChatMessageInformation.css +4 -0
- package/dist/styles/CometChatMessageList.css +15 -6
- package/dist/styles/CometChatOngoingCall.css +2 -2
- package/dist/styles/CometChatReactionList.css +3 -4
- package/dist/styles/CometChatThreadHeader.css +1 -1
- package/dist/styles/components/CometChatConversationStarter.css +2 -1
- package/dist/styles/components/CometChatMediaRecorder.css +76 -4
- package/dist/styles/components/CometChatMessageBubble.css +4 -1
- package/dist/styles/components/CometChatMessageComposer.css +19 -2
- package/dist/styles/components/CometChatMessageInformation.css +4 -0
- package/dist/styles/components/CometChatMessageList.css +15 -6
- package/dist/styles/components/CometChatOngoingCall.css +2 -2
- package/dist/styles/components/CometChatReactionList.css +3 -4
- package/dist/styles/components/CometChatThreadHeader.css +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
- package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
- package/dist/types/utils/DataSource.d.ts +1 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +8 -6
- package/package.json +1 -1
- package/rollup.config.js +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
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';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -1284,20 +1285,20 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1284
1285
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
1285
1286
|
getCopyOption(): CometChatActionsIcon;
|
|
1286
1287
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
1287
|
-
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
1288
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1289
|
-
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
1290
|
-
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1291
|
-
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1292
|
-
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1293
|
-
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1294
|
-
getReceiptClass(status?: number): "error" | "
|
|
1288
|
+
isSentByMe(loggedInUser: CometChat$1.User, message: CometChat$1.BaseMessage): boolean;
|
|
1289
|
+
getTextMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1290
|
+
getIsSentByMe(message: CometChat$1.BaseMessage): boolean;
|
|
1291
|
+
getImageMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1292
|
+
getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1293
|
+
getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1294
|
+
getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1295
|
+
getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
|
|
1295
1296
|
/**
|
|
1296
1297
|
* Function to get receipt for message bubble
|
|
1297
1298
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
1298
1299
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
1299
1300
|
*/
|
|
1300
|
-
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
1301
|
+
getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
1301
1302
|
/**
|
|
1302
1303
|
* Function for displaying the timestamp next to messages.
|
|
1303
1304
|
* @returns CalendarObject
|
|
@@ -1305,23 +1306,23 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1305
1306
|
getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
|
|
1306
1307
|
today: string;
|
|
1307
1308
|
yesterday: string;
|
|
1308
|
-
lastWeek?: string;
|
|
1309
|
+
lastWeek?: string | undefined;
|
|
1309
1310
|
otherDays: string;
|
|
1310
1311
|
relativeTime?: {
|
|
1311
|
-
minute?: string;
|
|
1312
|
-
minutes?: string;
|
|
1313
|
-
hour?: string;
|
|
1314
|
-
hours?: string;
|
|
1315
|
-
};
|
|
1312
|
+
minute?: string | undefined;
|
|
1313
|
+
minutes?: string | undefined;
|
|
1314
|
+
hour?: string | undefined;
|
|
1315
|
+
hours?: string | undefined;
|
|
1316
|
+
} | undefined;
|
|
1316
1317
|
};
|
|
1317
1318
|
/**
|
|
1318
1319
|
* Function to get status and date for message bubble
|
|
1319
1320
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
1320
1321
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
1321
1322
|
*/
|
|
1322
|
-
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
|
|
1323
|
-
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
|
|
1324
|
-
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
1323
|
+
getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
|
|
1324
|
+
getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipt?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
|
|
1325
|
+
getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
1325
1326
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
1326
1327
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
1327
1328
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -1332,25 +1333,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1332
1333
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
1333
1334
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
1334
1335
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
1335
|
-
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1336
|
-
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1336
|
+
getMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1337
|
+
getCommonOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1337
1338
|
getAllMessageTypes(): Array<string>;
|
|
1338
1339
|
addList(): string;
|
|
1339
1340
|
getAllMessageCategories(additionalConfigurations?: {
|
|
1340
1341
|
hideGroupActionMessages?: boolean;
|
|
1341
1342
|
}): Array<string>;
|
|
1342
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
1343
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
|
|
1343
1344
|
getId(): string;
|
|
1344
|
-
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
1345
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1346
|
-
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1347
|
-
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1348
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1345
|
+
getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
|
|
1346
|
+
getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1347
|
+
getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1348
|
+
getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1349
|
+
getVideoMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1349
1350
|
getActionMessage(message: any): string;
|
|
1350
|
-
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
1351
|
-
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
1352
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
1353
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1351
|
+
getDeleteMessageBubble(message: CometChat$1.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
1352
|
+
getGroupActionBubble(message: CometChat$1.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
1353
|
+
getTextMessageBubble(messageText: string, message: CometChat$1.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
1354
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1354
1355
|
/**
|
|
1355
1356
|
* Function to check mimeType and return the iconUrl of that type
|
|
1356
1357
|
* @param mimeType
|
|
@@ -1363,16 +1364,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1363
1364
|
* @returns
|
|
1364
1365
|
*/
|
|
1365
1366
|
getFileSize: (sizeInBytes: number) => string;
|
|
1366
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1367
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
1368
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
1367
|
+
getFileMessageBubble(fileUrl: string, message: CometChat$1.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1368
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat$1.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
1369
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat$1.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
1369
1370
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
1370
1371
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
1371
1372
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
1372
1373
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
1373
1374
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
1374
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
1375
|
-
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
1375
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations: additionalParams): string;
|
|
1376
|
+
getAuxiliaryHeaderMenu(user?: CometChat$1.User, group?: CometChat$1.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
1376
1377
|
/**
|
|
1377
1378
|
* Adds styled @ for every mention in the text by matching uid
|
|
1378
1379
|
*
|
|
@@ -1380,21 +1381,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1380
1381
|
* @param {string} subtitle
|
|
1381
1382
|
* @returns {void}
|
|
1382
1383
|
*/
|
|
1383
|
-
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
1384
|
+
getMentionsFormattedText(message: CometChat$1.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
1384
1385
|
mentionsTargetElement: MentionsTargetElement;
|
|
1385
1386
|
}): string;
|
|
1386
1387
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
1387
1388
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
1388
1389
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
1389
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1390
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1391
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1390
|
+
getFormMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1391
|
+
getSchedulerMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1392
|
+
getCardMessageBubble(message: CometChat$1.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1392
1393
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
1393
1394
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
1394
1395
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
1395
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1396
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1397
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1396
|
+
getFormMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1397
|
+
getSchedulerMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1398
|
+
getCardMessageContentView(message: CometChat$1.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1398
1399
|
}
|
|
1399
1400
|
|
|
1400
1401
|
/**
|
|
@@ -2653,7 +2654,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
2653
2654
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
2654
2655
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
2655
2656
|
*/
|
|
2656
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
2657
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
|
|
2657
2658
|
/**
|
|
2658
2659
|
* Retrieves the style for the link preview wrapper.
|
|
2659
2660
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -2747,7 +2748,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
2747
2748
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
2748
2749
|
* @returns {JSX.Element} The content view for the text message.
|
|
2749
2750
|
*/
|
|
2750
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
2751
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): JSX.Element | Element;
|
|
2751
2752
|
/**
|
|
2752
2753
|
* Checks if an option with the specified ID already exists in the options list.
|
|
2753
2754
|
*
|
|
@@ -2954,9 +2955,6 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2954
2955
|
* @default false
|
|
2955
2956
|
*/
|
|
2956
2957
|
showStickerKeyboard: boolean;
|
|
2957
|
-
private id;
|
|
2958
|
-
private user?;
|
|
2959
|
-
private group?;
|
|
2960
2958
|
/**
|
|
2961
2959
|
* Constructs a new instance of StickersExtensionDecorator.
|
|
2962
2960
|
* @param dataSource - The data source to be decorated.
|
|
@@ -2982,7 +2980,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2982
2980
|
* @param group - Optional group object.
|
|
2983
2981
|
* @returns An array of auxiliary options.
|
|
2984
2982
|
*/
|
|
2985
|
-
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
2983
|
+
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): react_jsx_runtime.JSX.Element;
|
|
2986
2984
|
/**
|
|
2987
2985
|
* Creates the sticker auxiliary button component.
|
|
2988
2986
|
* @param id - A map containing relevant IDs.
|
|
@@ -2991,24 +2989,24 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2991
2989
|
* @param group - Optional group object.
|
|
2992
2990
|
* @returns The JSX element for the sticker auxiliary button.
|
|
2993
2991
|
*/
|
|
2994
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
2992
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group) => react_jsx_runtime.JSX.Element;
|
|
2995
2993
|
/**
|
|
2996
2994
|
* Sends a sticker message.
|
|
2997
2995
|
* @param event - The event object containing sticker details.
|
|
2998
2996
|
*/
|
|
2999
|
-
sendSticker(event: any, closeSticker: Function): void;
|
|
2997
|
+
sendSticker(event: any, closeSticker: Function, id: ComposerId): void;
|
|
3000
2998
|
/**
|
|
3001
2999
|
* Sends a sticker message.
|
|
3002
3000
|
* @param event - The event object containing sticker details.
|
|
3003
3001
|
*/
|
|
3004
|
-
getSticker(message: CometChat.CustomMessage): any;
|
|
3002
|
+
getSticker(message: CometChat$1.CustomMessage): any;
|
|
3005
3003
|
/**
|
|
3006
3004
|
* Creates a JSX element for displaying the sticker message content.
|
|
3007
3005
|
* @param stickerMessage - The custom message containing sticker data.
|
|
3008
3006
|
* @param _theme - The theme object for styling.
|
|
3009
3007
|
* @returns The JSX element for the sticker message content.
|
|
3010
3008
|
*/
|
|
3011
|
-
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
3009
|
+
getStickerMessageContentView(stickerMessage: CometChat$1.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
3012
3010
|
/**
|
|
3013
3011
|
* Creates a sticker message template.
|
|
3014
3012
|
* @param _theme - The theme object for styling.
|
|
@@ -3044,7 +3042,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
3044
3042
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
3045
3043
|
* @returns A string representing the last message.
|
|
3046
3044
|
*/
|
|
3047
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
3045
|
+
getLastConversationMessage(conversation: CometChat$1.Conversation, loggedInUser: CometChat$1.User, additionalConfigurations?: any): string;
|
|
3048
3046
|
}
|
|
3049
3047
|
|
|
3050
3048
|
/**
|
|
@@ -5052,6 +5050,7 @@ interface PopoverProps {
|
|
|
5052
5050
|
onOutsideClick?: () => void;
|
|
5053
5051
|
disableBackgroundInteraction?: boolean;
|
|
5054
5052
|
useParentContainer?: boolean;
|
|
5053
|
+
useParentHeight?: boolean;
|
|
5055
5054
|
}
|
|
5056
5055
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
5057
5056
|
openPopover: () => void;
|
|
@@ -5078,6 +5077,7 @@ interface ListItemProps {
|
|
|
5078
5077
|
trailingView?: ReactNode;
|
|
5079
5078
|
titleView?: ReactNode;
|
|
5080
5079
|
leadingView?: ReactNode;
|
|
5080
|
+
stopEventPropagation?: boolean;
|
|
5081
5081
|
}
|
|
5082
5082
|
declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
5083
5083
|
|
|
@@ -5484,7 +5484,10 @@ declare function createElement(tagName: string, content?: TreeNode, container?:
|
|
|
5484
5484
|
|
|
5485
5485
|
declare const dom_createElement: typeof createElement;
|
|
5486
5486
|
declare namespace dom {
|
|
5487
|
-
export {
|
|
5487
|
+
export {
|
|
5488
|
+
dom_createElement as createElement,
|
|
5489
|
+
createElement as default,
|
|
5490
|
+
};
|
|
5488
5491
|
}
|
|
5489
5492
|
|
|
5490
5493
|
type PlayerOptions = {
|
|
@@ -5977,7 +5980,7 @@ declare class CometChatUIKitUtility {
|
|
|
5977
5980
|
* @param messageObject - The message object containing extensions.
|
|
5978
5981
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
5979
5982
|
*/
|
|
5980
|
-
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
5983
|
+
static getExtensionData(messageObject: CometChat$1.BaseMessage): string;
|
|
5981
5984
|
/**
|
|
5982
5985
|
* Checks for extension data in a message.
|
|
5983
5986
|
*
|
|
@@ -5985,7 +5988,7 @@ declare class CometChatUIKitUtility {
|
|
|
5985
5988
|
* @param extensionKey - The extension key to look for.
|
|
5986
5989
|
* @returns The extension data if found.
|
|
5987
5990
|
*/
|
|
5988
|
-
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
5991
|
+
static checkMessageForExtensionsData: (message: CometChat$1.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
5989
5992
|
/**
|
|
5990
5993
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
5991
5994
|
*
|
|
@@ -6031,4 +6034,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
6031
6034
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
6032
6035
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
6033
6036
|
|
|
6034
|
-
export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, 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, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods,
|
|
6037
|
+
export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, 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, 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, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getLocalizedString, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
6038
|
+
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };
|