@cometchat/chat-uikit-react 6.0.0 → 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 +87 -46
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +1 -0
- package/dist/styles/CometChatCallLogs.css +2 -2
- package/dist/styles/CometChatMessageInformation.css +3 -1
- package/dist/styles/CometChatMessageList.css +5 -2
- package/dist/styles/CometChatOutgoingCall.css +1 -1
- package/dist/styles/PollsBubble.css +5 -1
- package/dist/styles/StickersKeyboard.css +2 -5
- package/dist/styles/components/CometChatAudioBubble.css +1 -0
- 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/CometChatOutgoingCall.css +1 -1
- 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 +2 -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 +16 -9
- 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
|
/**
|
|
@@ -456,6 +455,7 @@ declare class CometChatLocalize {
|
|
|
456
455
|
* @returns {string} Localized string.
|
|
457
456
|
*/
|
|
458
457
|
static getLocalizedString: (str: string) => any;
|
|
458
|
+
private static getDefaultTimeZone;
|
|
459
459
|
/**
|
|
460
460
|
* Initializes localization settings (v2).
|
|
461
461
|
* @param {LocalizationSettings} settings - Localization settings.
|
|
@@ -493,6 +493,7 @@ declare class CometChatLocalize {
|
|
|
493
493
|
* @returns {string} Formatted date string.
|
|
494
494
|
*/
|
|
495
495
|
static formatDate(timestamp: number, calendarObject: CalendarObject): string;
|
|
496
|
+
private static isYesterday;
|
|
496
497
|
}
|
|
497
498
|
declare const getLocalizedString: (str: string) => any;
|
|
498
499
|
|
|
@@ -1283,20 +1284,20 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1283
1284
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
1284
1285
|
getCopyOption(): CometChatActionsIcon;
|
|
1285
1286
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
1286
|
-
isSentByMe(loggedInUser: CometChat
|
|
1287
|
-
getTextMessageOptions(loggedInUser: CometChat
|
|
1288
|
-
getIsSentByMe(message: CometChat
|
|
1289
|
-
getImageMessageOptions(loggedInUser: CometChat
|
|
1290
|
-
getVideoMessageOptions(loggedInUser: CometChat
|
|
1291
|
-
getAudioMessageOptions(loggedInUser: CometChat
|
|
1292
|
-
getFileMessageOptions(loggedInUser: CometChat
|
|
1293
|
-
getReceiptClass(status?: number): "
|
|
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" | "wait" | "read" | "delivered" | "sent" | undefined;
|
|
1294
1295
|
/**
|
|
1295
1296
|
* Function to get receipt for message bubble
|
|
1296
1297
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
1297
1298
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
1298
1299
|
*/
|
|
1299
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
1300
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipt?: boolean) => JSX.Element | null;
|
|
1300
1301
|
/**
|
|
1301
1302
|
* Function for displaying the timestamp next to messages.
|
|
1302
1303
|
* @returns CalendarObject
|
|
@@ -1304,23 +1305,23 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1304
1305
|
getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
|
|
1305
1306
|
today: string;
|
|
1306
1307
|
yesterday: string;
|
|
1307
|
-
lastWeek?: string
|
|
1308
|
+
lastWeek?: string;
|
|
1308
1309
|
otherDays: string;
|
|
1309
1310
|
relativeTime?: {
|
|
1310
|
-
minute?: string
|
|
1311
|
-
minutes?: string
|
|
1312
|
-
hour?: string
|
|
1313
|
-
hours?: string
|
|
1314
|
-
}
|
|
1311
|
+
minute?: string;
|
|
1312
|
+
minutes?: string;
|
|
1313
|
+
hour?: string;
|
|
1314
|
+
hours?: string;
|
|
1315
|
+
};
|
|
1315
1316
|
};
|
|
1316
1317
|
/**
|
|
1317
1318
|
* Function to get status and date for message bubble
|
|
1318
1319
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
1319
1320
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
1320
1321
|
*/
|
|
1321
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
1322
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
1323
|
-
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;
|
|
1324
1325
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
1325
1326
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
1326
1327
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -1331,25 +1332,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1331
1332
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
1332
1333
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
1333
1334
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
1334
|
-
getMessageOptions(loggedInUser: CometChat
|
|
1335
|
-
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>;
|
|
1336
1337
|
getAllMessageTypes(): Array<string>;
|
|
1337
1338
|
addList(): string;
|
|
1338
1339
|
getAllMessageCategories(additionalConfigurations?: {
|
|
1339
1340
|
hideGroupActionMessages?: boolean;
|
|
1340
1341
|
}): Array<string>;
|
|
1341
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
1342
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
1342
1343
|
getId(): string;
|
|
1343
|
-
getTextMessageContentView(message: CometChat
|
|
1344
|
-
getAudioMessageContentView(message: CometChat
|
|
1345
|
-
getFileMessageContentView(message: CometChat
|
|
1346
|
-
getImageMessageContentView(message: CometChat
|
|
1347
|
-
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;
|
|
1348
1349
|
getActionMessage(message: any): string;
|
|
1349
|
-
getDeleteMessageBubble(message: CometChat
|
|
1350
|
-
getGroupActionBubble(message: CometChat
|
|
1351
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
1352
|
-
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;
|
|
1353
1354
|
/**
|
|
1354
1355
|
* Function to check mimeType and return the iconUrl of that type
|
|
1355
1356
|
* @param mimeType
|
|
@@ -1362,16 +1363,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1362
1363
|
* @returns
|
|
1363
1364
|
*/
|
|
1364
1365
|
getFileSize: (sizeInBytes: number) => string;
|
|
1365
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
1366
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
1367
|
-
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;
|
|
1368
1369
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
1369
1370
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
1370
1371
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
1371
1372
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
1372
1373
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
1373
|
-
getLastConversationMessage(conversation: CometChat
|
|
1374
|
-
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[];
|
|
1375
1376
|
/**
|
|
1376
1377
|
* Adds styled @ for every mention in the text by matching uid
|
|
1377
1378
|
*
|
|
@@ -1379,12 +1380,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1379
1380
|
* @param {string} subtitle
|
|
1380
1381
|
* @returns {void}
|
|
1381
1382
|
*/
|
|
1382
|
-
getMentionsFormattedText(message: CometChat
|
|
1383
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
1383
1384
|
mentionsTargetElement: MentionsTargetElement;
|
|
1384
1385
|
}): string;
|
|
1385
1386
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
1386
1387
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
1387
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;
|
|
1388
1398
|
}
|
|
1389
1399
|
|
|
1390
1400
|
/**
|
|
@@ -1908,6 +1918,15 @@ declare abstract class DataSource {
|
|
|
1908
1918
|
abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
|
|
1909
1919
|
abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
|
|
1910
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;
|
|
1911
1930
|
}
|
|
1912
1931
|
|
|
1913
1932
|
interface CometChatUiKit {
|
|
@@ -2103,6 +2122,15 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2103
2122
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
2104
2123
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
2105
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;
|
|
2106
2134
|
}
|
|
2107
2135
|
|
|
2108
2136
|
interface ListProps<T> {
|
|
@@ -2954,7 +2982,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2954
2982
|
* @param group - Optional group object.
|
|
2955
2983
|
* @returns An array of auxiliary options.
|
|
2956
2984
|
*/
|
|
2957
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
2985
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
2958
2986
|
/**
|
|
2959
2987
|
* Creates the sticker auxiliary button component.
|
|
2960
2988
|
* @param id - A map containing relevant IDs.
|
|
@@ -2963,7 +2991,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2963
2991
|
* @param group - Optional group object.
|
|
2964
2992
|
* @returns The JSX element for the sticker auxiliary button.
|
|
2965
2993
|
*/
|
|
2966
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
2994
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
2967
2995
|
/**
|
|
2968
2996
|
* Sends a sticker message.
|
|
2969
2997
|
* @param event - The event object containing sticker details.
|
|
@@ -2973,14 +3001,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2973
3001
|
* Sends a sticker message.
|
|
2974
3002
|
* @param event - The event object containing sticker details.
|
|
2975
3003
|
*/
|
|
2976
|
-
getSticker(message: CometChat
|
|
3004
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
2977
3005
|
/**
|
|
2978
3006
|
* Creates a JSX element for displaying the sticker message content.
|
|
2979
3007
|
* @param stickerMessage - The custom message containing sticker data.
|
|
2980
3008
|
* @param _theme - The theme object for styling.
|
|
2981
3009
|
* @returns The JSX element for the sticker message content.
|
|
2982
3010
|
*/
|
|
2983
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
3011
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
2984
3012
|
/**
|
|
2985
3013
|
* Creates a sticker message template.
|
|
2986
3014
|
* @param _theme - The theme object for styling.
|
|
@@ -3016,7 +3044,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
3016
3044
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
3017
3045
|
* @returns A string representing the last message.
|
|
3018
3046
|
*/
|
|
3019
|
-
getLastConversationMessage(conversation: CometChat
|
|
3047
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
3020
3048
|
}
|
|
3021
3049
|
|
|
3022
3050
|
/**
|
|
@@ -4432,6 +4460,7 @@ declare class CometChatUIKitConstants {
|
|
|
4432
4460
|
custom: string;
|
|
4433
4461
|
action: string;
|
|
4434
4462
|
call: string;
|
|
4463
|
+
interactive: string;
|
|
4435
4464
|
}>;
|
|
4436
4465
|
static MessageTypes: Readonly<{
|
|
4437
4466
|
text: string;
|
|
@@ -4442,6 +4471,10 @@ declare class CometChatUIKitConstants {
|
|
|
4442
4471
|
delete: "delete";
|
|
4443
4472
|
edited: "edited";
|
|
4444
4473
|
groupMember: "groupMember";
|
|
4474
|
+
form: "form";
|
|
4475
|
+
card: "card";
|
|
4476
|
+
customInteractive: "customInteractive";
|
|
4477
|
+
scheduler: "scheduler";
|
|
4445
4478
|
}>;
|
|
4446
4479
|
static groupMemberAction: Readonly<{
|
|
4447
4480
|
ROLE: "role";
|
|
@@ -4524,7 +4557,6 @@ declare class CometChatUIKitConstants {
|
|
|
4524
4557
|
CUSTOM_MESSAGE_RECEIVED: "onCustomMessageReceived";
|
|
4525
4558
|
TRANSIENT_MESSAGE_RECEIVED: "onTransientMessageReceived";
|
|
4526
4559
|
INTERACTIVE_MESSAGE_RECEIVED: "onInteractiveMessageReceived";
|
|
4527
|
-
INTERACTION_GOAL_COMPLETED: "onInteractionGoalCompleted";
|
|
4528
4560
|
DELIVERY: "delivery";
|
|
4529
4561
|
READ: "read";
|
|
4530
4562
|
APP_SYSTEM: "app_system";
|
|
@@ -4759,6 +4791,10 @@ declare class CometChatMessageEvents {
|
|
|
4759
4791
|
static onMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
4760
4792
|
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
4761
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>;
|
|
4762
4798
|
}
|
|
4763
4799
|
/**
|
|
4764
4800
|
* Interface for message-related events
|
|
@@ -4950,6 +4986,8 @@ interface ContextMenuProps {
|
|
|
4950
4986
|
onOptionClicked?: (option: CometChatActionsIcon | CometChatActionsView | CometChatOption) => void;
|
|
4951
4987
|
placement?: Placement$1;
|
|
4952
4988
|
closeOnOutsideClick?: boolean;
|
|
4989
|
+
disableBackgroundInteraction?: boolean;
|
|
4990
|
+
useParentContainer?: boolean;
|
|
4953
4991
|
}
|
|
4954
4992
|
/**
|
|
4955
4993
|
* CometChatContextMenu is a composite component used to display menu data in required format.
|
|
@@ -5012,6 +5050,8 @@ interface PopoverProps {
|
|
|
5012
5050
|
content: ReactNode;
|
|
5013
5051
|
childClickHandler?: (openContent: Function, event: Event) => void;
|
|
5014
5052
|
onOutsideClick?: () => void;
|
|
5053
|
+
disableBackgroundInteraction?: boolean;
|
|
5054
|
+
useParentContainer?: boolean;
|
|
5015
5055
|
}
|
|
5016
5056
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
5017
5057
|
openPopover: () => void;
|
|
@@ -5766,6 +5806,7 @@ declare function isMobileDevice(): boolean;
|
|
|
5766
5806
|
declare function sanitizeCalendarObject(calendarObject?: CalendarObject): {
|
|
5767
5807
|
[k: string]: any;
|
|
5768
5808
|
};
|
|
5809
|
+
declare function fireClickEvent(): void;
|
|
5769
5810
|
|
|
5770
5811
|
/**
|
|
5771
5812
|
* Utility class for managing local storage with change detection capabilities.
|
|
@@ -5936,7 +5977,7 @@ declare class CometChatUIKitUtility {
|
|
|
5936
5977
|
* @param messageObject - The message object containing extensions.
|
|
5937
5978
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
5938
5979
|
*/
|
|
5939
|
-
static getExtensionData(messageObject: CometChat
|
|
5980
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
5940
5981
|
/**
|
|
5941
5982
|
* Checks for extension data in a message.
|
|
5942
5983
|
*
|
|
@@ -5944,7 +5985,7 @@ declare class CometChatUIKitUtility {
|
|
|
5944
5985
|
* @param extensionKey - The extension key to look for.
|
|
5945
5986
|
* @returns The extension data if found.
|
|
5946
5987
|
*/
|
|
5947
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
5988
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
5948
5989
|
/**
|
|
5949
5990
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
5950
5991
|
*
|
|
@@ -5990,4 +6031,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
5990
6031
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
5991
6032
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
5992
6033
|
|
|
5993
|
-
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 };
|