@cometchat/chat-uikit-react 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/missedCallIcon.svg +10 -0
- package/dist/index.d.ts +85 -45
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallLogs.css +2 -2
- package/dist/styles/CometChatMessageInformation.css +3 -1
- package/dist/styles/CometChatMessageList.css +5 -2
- package/dist/styles/PollsBubble.css +5 -1
- package/dist/styles/StickersKeyboard.css +2 -5
- package/dist/styles/components/CometChatCallLogs.css +2 -2
- package/dist/styles/components/CometChatMessageInformation.css +3 -1
- package/dist/styles/components/CometChatMessageList.css +5 -2
- package/dist/styles/components/PollsBubble.css +5 -1
- package/dist/styles/components/StickersKeyboard.css +2 -5
- package/dist/styles/components/index.css +3 -1
- package/dist/styles/index.css +3 -1
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +2 -0
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +9 -6
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +0 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -1
- package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -1
- package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
- package/dist/types/modals/CometChatActionsView.d.ts +0 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +1 -0
- package/dist/types/utils/DataSource.d.ts +9 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
- package/dist/types/utils/MessagesDataSource.d.ts +15 -8
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Base_Icon">
|
|
3
|
+
<mask id="mask0_10861_545568" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16">
|
|
4
|
+
<rect id="Bounding box" width="16" height="16" fill="#D9D9D9"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<g mask="url(#mask0_10861_545568)">
|
|
7
|
+
<path id="call_missed" d="M3.33325 6.68044V9.46777C3.33325 9.60966 3.28536 9.72844 3.18959 9.82411C3.09392 9.91988 2.97514 9.96777 2.83325 9.96777C2.69136 9.96777 2.57259 9.91988 2.47692 9.82411C2.38114 9.72844 2.33325 9.60966 2.33325 9.46777V5.57027C2.33325 5.3985 2.39075 5.25511 2.50575 5.14011C2.62064 5.02522 2.76403 4.96777 2.93592 4.96777H6.83325C6.97514 4.96777 7.09392 5.01561 7.18959 5.11127C7.28536 5.20705 7.33325 5.32588 7.33325 5.46777C7.33325 5.60966 7.28536 5.72844 7.18959 5.82411C7.09392 5.91988 6.97514 5.96777 6.83325 5.96777H4.03575L7.88459 9.81644C7.92303 9.85488 7.97214 9.87411 8.03192 9.87411C8.09181 9.87411 8.14097 9.85488 8.17942 9.81644L12.6191 5.37677C12.7183 5.27755 12.8344 5.22861 12.9673 5.22994C13.1001 5.23116 13.2183 5.2835 13.3218 5.38694C13.4183 5.49038 13.4683 5.6075 13.4718 5.73827C13.4751 5.86905 13.4251 5.98611 13.3218 6.08944L8.88575 10.5254C8.76531 10.6459 8.63031 10.7352 8.48075 10.7933C8.33109 10.8515 8.18147 10.8806 8.03192 10.8806C7.88236 10.8806 7.73281 10.8515 7.58325 10.7933C7.4337 10.7352 7.29864 10.6459 7.17809 10.5254L3.33325 6.68044Z" fill="#F44649"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -494,6 +493,7 @@ declare class CometChatLocalize {
|
|
|
494
493
|
* @returns {string} Formatted date string.
|
|
495
494
|
*/
|
|
496
495
|
static formatDate(timestamp: number, calendarObject: CalendarObject): string;
|
|
496
|
+
private static isYesterday;
|
|
497
497
|
}
|
|
498
498
|
declare const getLocalizedString: (str: string) => any;
|
|
499
499
|
|
|
@@ -1284,20 +1284,20 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1284
1284
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
1285
1285
|
getCopyOption(): CometChatActionsIcon;
|
|
1286
1286
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
1287
|
-
isSentByMe(loggedInUser: CometChat
|
|
1288
|
-
getTextMessageOptions(loggedInUser: CometChat
|
|
1289
|
-
getIsSentByMe(message: CometChat
|
|
1290
|
-
getImageMessageOptions(loggedInUser: CometChat
|
|
1291
|
-
getVideoMessageOptions(loggedInUser: CometChat
|
|
1292
|
-
getAudioMessageOptions(loggedInUser: CometChat
|
|
1293
|
-
getFileMessageOptions(loggedInUser: CometChat
|
|
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
1294
|
getReceiptClass(status?: number): "error" | "wait" | "read" | "delivered" | "sent" | undefined;
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Function to get receipt for message bubble
|
|
1297
1297
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
1298
1298
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
1299
1299
|
*/
|
|
1300
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
1300
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Function for displaying the timestamp next to messages.
|
|
1303
1303
|
* @returns CalendarObject
|
|
@@ -1305,23 +1305,23 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1305
1305
|
getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
|
|
1306
1306
|
today: string;
|
|
1307
1307
|
yesterday: string;
|
|
1308
|
-
lastWeek?: string
|
|
1308
|
+
lastWeek?: string;
|
|
1309
1309
|
otherDays: string;
|
|
1310
1310
|
relativeTime?: {
|
|
1311
|
-
minute?: string
|
|
1312
|
-
minutes?: string
|
|
1313
|
-
hour?: string
|
|
1314
|
-
hours?: string
|
|
1315
|
-
}
|
|
1311
|
+
minute?: string;
|
|
1312
|
+
minutes?: string;
|
|
1313
|
+
hour?: string;
|
|
1314
|
+
hours?: string;
|
|
1315
|
+
};
|
|
1316
1316
|
};
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Function to get status and date for message bubble
|
|
1319
1319
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
1320
1320
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
1321
1321
|
*/
|
|
1322
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
1323
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
1324
|
-
getBottomView(_messageObject: CometChat
|
|
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;
|
|
1325
1325
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
1326
1326
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
1327
1327
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -1332,25 +1332,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1332
1332
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
1333
1333
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
1334
1334
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
1335
|
-
getMessageOptions(loggedInUser: CometChat
|
|
1336
|
-
getCommonOptions(loggedInUser: CometChat
|
|
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>;
|
|
1337
1337
|
getAllMessageTypes(): Array<string>;
|
|
1338
1338
|
addList(): string;
|
|
1339
1339
|
getAllMessageCategories(additionalConfigurations?: {
|
|
1340
1340
|
hideGroupActionMessages?: boolean;
|
|
1341
1341
|
}): Array<string>;
|
|
1342
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
1342
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
1343
1343
|
getId(): string;
|
|
1344
|
-
getTextMessageContentView(message: CometChat
|
|
1345
|
-
getAudioMessageContentView(message: CometChat
|
|
1346
|
-
getFileMessageContentView(message: CometChat
|
|
1347
|
-
getImageMessageContentView(message: CometChat
|
|
1348
|
-
getVideoMessageContentView(message: CometChat
|
|
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;
|
|
1349
1349
|
getActionMessage(message: any): string;
|
|
1350
|
-
getDeleteMessageBubble(message: CometChat
|
|
1351
|
-
getGroupActionBubble(message: CometChat
|
|
1352
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
1353
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat
|
|
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;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Function to check mimeType and return the iconUrl of that type
|
|
1356
1356
|
* @param mimeType
|
|
@@ -1363,16 +1363,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1363
1363
|
* @returns
|
|
1364
1364
|
*/
|
|
1365
1365
|
getFileSize: (sizeInBytes: number) => string;
|
|
1366
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
1367
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
1368
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat
|
|
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;
|
|
1369
1369
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
1370
1370
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
1371
1371
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
1372
1372
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
1373
1373
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
1374
|
-
getLastConversationMessage(conversation: CometChat
|
|
1375
|
-
getAuxiliaryHeaderMenu(user?: CometChat
|
|
1374
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
1375
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Adds styled @ for every mention in the text by matching uid
|
|
1378
1378
|
*
|
|
@@ -1380,12 +1380,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1380
1380
|
* @param {string} subtitle
|
|
1381
1381
|
* @returns {void}
|
|
1382
1382
|
*/
|
|
1383
|
-
getMentionsFormattedText(message: CometChat
|
|
1383
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
1384
1384
|
mentionsTargetElement: MentionsTargetElement;
|
|
1385
1385
|
}): string;
|
|
1386
1386
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
1387
1387
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
1388
1388
|
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;
|
|
1392
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
1393
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
1394
|
+
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;
|
|
1389
1398
|
}
|
|
1390
1399
|
|
|
1391
1400
|
/**
|
|
@@ -1909,6 +1918,15 @@ declare abstract class DataSource {
|
|
|
1909
1918
|
abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
|
|
1910
1919
|
abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
|
|
1911
1920
|
abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
|
|
1921
|
+
abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1922
|
+
abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1923
|
+
abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1924
|
+
abstract getFormMessageTemplate(): CometChatMessageTemplate;
|
|
1925
|
+
abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
1926
|
+
abstract getCardMessageTemplate(): CometChatMessageTemplate;
|
|
1927
|
+
abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1928
|
+
abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1929
|
+
abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1912
1930
|
}
|
|
1913
1931
|
|
|
1914
1932
|
interface CometChatUiKit {
|
|
@@ -2104,6 +2122,15 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2104
2122
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
2105
2123
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
2106
2124
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
2125
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2126
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2127
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2128
|
+
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
2129
|
+
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
2130
|
+
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
2131
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2132
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2133
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
2107
2134
|
}
|
|
2108
2135
|
|
|
2109
2136
|
interface ListProps<T> {
|
|
@@ -2955,7 +2982,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2955
2982
|
* @param group - Optional group object.
|
|
2956
2983
|
* @returns An array of auxiliary options.
|
|
2957
2984
|
*/
|
|
2958
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
2985
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
2959
2986
|
/**
|
|
2960
2987
|
* Creates the sticker auxiliary button component.
|
|
2961
2988
|
* @param id - A map containing relevant IDs.
|
|
@@ -2964,7 +2991,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2964
2991
|
* @param group - Optional group object.
|
|
2965
2992
|
* @returns The JSX element for the sticker auxiliary button.
|
|
2966
2993
|
*/
|
|
2967
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
2994
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
2968
2995
|
/**
|
|
2969
2996
|
* Sends a sticker message.
|
|
2970
2997
|
* @param event - The event object containing sticker details.
|
|
@@ -2974,14 +3001,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2974
3001
|
* Sends a sticker message.
|
|
2975
3002
|
* @param event - The event object containing sticker details.
|
|
2976
3003
|
*/
|
|
2977
|
-
getSticker(message: CometChat
|
|
3004
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
2978
3005
|
/**
|
|
2979
3006
|
* Creates a JSX element for displaying the sticker message content.
|
|
2980
3007
|
* @param stickerMessage - The custom message containing sticker data.
|
|
2981
3008
|
* @param _theme - The theme object for styling.
|
|
2982
3009
|
* @returns The JSX element for the sticker message content.
|
|
2983
3010
|
*/
|
|
2984
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
3011
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
2985
3012
|
/**
|
|
2986
3013
|
* Creates a sticker message template.
|
|
2987
3014
|
* @param _theme - The theme object for styling.
|
|
@@ -3017,7 +3044,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
3017
3044
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
3018
3045
|
* @returns A string representing the last message.
|
|
3019
3046
|
*/
|
|
3020
|
-
getLastConversationMessage(conversation: CometChat
|
|
3047
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
3021
3048
|
}
|
|
3022
3049
|
|
|
3023
3050
|
/**
|
|
@@ -4433,6 +4460,7 @@ declare class CometChatUIKitConstants {
|
|
|
4433
4460
|
custom: string;
|
|
4434
4461
|
action: string;
|
|
4435
4462
|
call: string;
|
|
4463
|
+
interactive: string;
|
|
4436
4464
|
}>;
|
|
4437
4465
|
static MessageTypes: Readonly<{
|
|
4438
4466
|
text: string;
|
|
@@ -4443,6 +4471,10 @@ declare class CometChatUIKitConstants {
|
|
|
4443
4471
|
delete: "delete";
|
|
4444
4472
|
edited: "edited";
|
|
4445
4473
|
groupMember: "groupMember";
|
|
4474
|
+
form: "form";
|
|
4475
|
+
card: "card";
|
|
4476
|
+
customInteractive: "customInteractive";
|
|
4477
|
+
scheduler: "scheduler";
|
|
4446
4478
|
}>;
|
|
4447
4479
|
static groupMemberAction: Readonly<{
|
|
4448
4480
|
ROLE: "role";
|
|
@@ -4525,7 +4557,6 @@ declare class CometChatUIKitConstants {
|
|
|
4525
4557
|
CUSTOM_MESSAGE_RECEIVED: "onCustomMessageReceived";
|
|
4526
4558
|
TRANSIENT_MESSAGE_RECEIVED: "onTransientMessageReceived";
|
|
4527
4559
|
INTERACTIVE_MESSAGE_RECEIVED: "onInteractiveMessageReceived";
|
|
4528
|
-
INTERACTION_GOAL_COMPLETED: "onInteractionGoalCompleted";
|
|
4529
4560
|
DELIVERY: "delivery";
|
|
4530
4561
|
READ: "read";
|
|
4531
4562
|
APP_SYSTEM: "app_system";
|
|
@@ -4760,6 +4791,10 @@ declare class CometChatMessageEvents {
|
|
|
4760
4791
|
static onMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
4761
4792
|
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
4762
4793
|
static onMessageReactionRemoved: Subject<CometChat.ReactionEvent>;
|
|
4794
|
+
static onCustomInteractiveMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
4795
|
+
static onFormMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
4796
|
+
static onCardMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
4797
|
+
static onSchedulerMessageReceived: Subject<CometChat.InteractiveMessage>;
|
|
4763
4798
|
}
|
|
4764
4799
|
/**
|
|
4765
4800
|
* Interface for message-related events
|
|
@@ -4951,6 +4986,8 @@ interface ContextMenuProps {
|
|
|
4951
4986
|
onOptionClicked?: (option: CometChatActionsIcon | CometChatActionsView | CometChatOption) => void;
|
|
4952
4987
|
placement?: Placement$1;
|
|
4953
4988
|
closeOnOutsideClick?: boolean;
|
|
4989
|
+
disableBackgroundInteraction?: boolean;
|
|
4990
|
+
useParentContainer?: boolean;
|
|
4954
4991
|
}
|
|
4955
4992
|
/**
|
|
4956
4993
|
* CometChatContextMenu is a composite component used to display menu data in required format.
|
|
@@ -5013,6 +5050,8 @@ interface PopoverProps {
|
|
|
5013
5050
|
content: ReactNode;
|
|
5014
5051
|
childClickHandler?: (openContent: Function, event: Event) => void;
|
|
5015
5052
|
onOutsideClick?: () => void;
|
|
5053
|
+
disableBackgroundInteraction?: boolean;
|
|
5054
|
+
useParentContainer?: boolean;
|
|
5016
5055
|
}
|
|
5017
5056
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
5018
5057
|
openPopover: () => void;
|
|
@@ -5767,6 +5806,7 @@ declare function isMobileDevice(): boolean;
|
|
|
5767
5806
|
declare function sanitizeCalendarObject(calendarObject?: CalendarObject): {
|
|
5768
5807
|
[k: string]: any;
|
|
5769
5808
|
};
|
|
5809
|
+
declare function fireClickEvent(): void;
|
|
5770
5810
|
|
|
5771
5811
|
/**
|
|
5772
5812
|
* Utility class for managing local storage with change detection capabilities.
|
|
@@ -5937,7 +5977,7 @@ declare class CometChatUIKitUtility {
|
|
|
5937
5977
|
* @param messageObject - The message object containing extensions.
|
|
5938
5978
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
5939
5979
|
*/
|
|
5940
|
-
static getExtensionData(messageObject: CometChat
|
|
5980
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
5941
5981
|
/**
|
|
5942
5982
|
* Checks for extension data in a message.
|
|
5943
5983
|
*
|
|
@@ -5945,7 +5985,7 @@ declare class CometChatUIKitUtility {
|
|
|
5945
5985
|
* @param extensionKey - The extension key to look for.
|
|
5946
5986
|
* @returns The extension data if found.
|
|
5947
5987
|
*/
|
|
5948
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
5988
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
5949
5989
|
/**
|
|
5950
5990
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
5951
5991
|
*
|
|
@@ -5991,4 +6031,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
5991
6031
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
5992
6032
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
5993
6033
|
|
|
5994
|
-
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, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, type LocalizationSettings, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getLocalizedString, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
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, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, type LocalizationSettings, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getLocalizedString, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|