@cometchat/chat-uikit-react 5.0.6 → 5.0.8
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 +78 -77
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +4 -4
- package/dist/styles/CometChatConversationSummary.css +2 -2
- package/dist/styles/CometChatEditPreview.css +3 -0
- package/dist/styles/CometChatFileBubble.css +4 -4
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +8 -1
- package/dist/styles/CometChatMessageInformation.css +2 -2
- package/dist/styles/CometChatMessageList.css +25 -18
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -16
- package/dist/styles/CometChatReactionList.css +1 -1
- package/dist/styles/CometChatSmartReplies.css +2 -2
- package/dist/styles/CreatePolls.css +8 -1
- package/dist/styles/StickersKeyboard.css +2 -2
- package/dist/styles/components/CometChatAudioBubble.css +4 -4
- package/dist/styles/components/CometChatConversationSummary.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +3 -0
- package/dist/styles/components/CometChatFileBubble.css +4 -4
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +8 -1
- package/dist/styles/components/CometChatMessageInformation.css +2 -2
- package/dist/styles/components/CometChatMessageList.css +25 -18
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -16
- package/dist/styles/components/CometChatReactionList.css +1 -1
- package/dist/styles/components/CometChatSmartReplies.css +2 -2
- package/dist/styles/components/CreatePolls.css +8 -1
- package/dist/styles/components/StickersKeyboard.css +2 -2
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +1 -1
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +15 -0
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +10 -0
- package/dist/types/events/CometChatUIEvents.d.ts +2 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +3 -2
- package/dist/types/utils/DataSource.d.ts +1 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -1
- package/dist/types/utils/MessageReceiptUtils.d.ts +3 -30
- package/dist/types/utils/MessageUtils.d.ts +4 -3
- package/dist/types/utils/MessagesDataSource.d.ts +2 -2
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
|
@@ -19,22 +19,6 @@
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.cometchat-reaction-info__tooltip {
|
|
23
|
-
width: 32px;
|
|
24
|
-
height: 6px;
|
|
25
|
-
background: var(--cometchat-static-black, #141414);
|
|
26
|
-
-webkit-mask: url("../../assets/tooltip.svg") center center no-repeat;
|
|
27
|
-
-webkit-mask-size: contain;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.cometchat-reaction-info__tooltip-side {
|
|
31
|
-
width: 6px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
background: var(--cometchat-static-black, #141414);
|
|
34
|
-
-webkit-mask: url("../../assets/tooltip-side.svg") center center no-repeat;
|
|
35
|
-
-webkit-mask-size: contain;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
22
|
.cometchat-reaction-info__emoji-text {
|
|
39
23
|
display: flex;
|
|
40
24
|
flex-direction: column;
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.cometchat-smart-replies__header-close-button {
|
|
37
|
-
mask: url("../../assets/close.svg");
|
|
38
|
-
-webkit-mask: url("../../assets/close.svg");
|
|
37
|
+
mask: url("../../assets/close.svg") center center no-repeat;
|
|
38
|
+
-webkit-mask: url("../../assets/close.svg") center center no-repeat;
|
|
39
39
|
background-color: var(--cometchat-icon-color-primary, #141414);
|
|
40
40
|
width: 20px;
|
|
41
41
|
height: 20px;
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.cometchat-create-poll__button {
|
|
176
|
-
width:
|
|
176
|
+
width: 100%;
|
|
177
177
|
height: 40px;
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
bottom: 0px;
|
|
237
237
|
border-top: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
238
238
|
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px) var(--cometchat-padding-5) var(--cometchat-padding-4, 16px);
|
|
239
|
+
width: 100%;
|
|
239
240
|
|
|
240
241
|
}
|
|
241
242
|
|
|
@@ -290,4 +291,10 @@
|
|
|
290
291
|
.cometchat-create-poll__body-options-add-button-disabled{
|
|
291
292
|
color: var(--cometchat-text-color-disabled, #DCDCDC);
|
|
292
293
|
font: var(--cometchat-font-caption1-medium);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@media (max-width: 768px) {
|
|
297
|
+
.cometchat-create-poll{
|
|
298
|
+
width: 360px;
|
|
299
|
+
}
|
|
293
300
|
}
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
.cometchat-sticker-keyboard__empty-view-icon {
|
|
166
166
|
width: 60px;
|
|
167
167
|
height: 60px;
|
|
168
|
-
-webkit-mask-image: url("../../assets/sticker.svg");
|
|
169
|
-
mask-image: url("../../assets/sticker.svg");
|
|
168
|
+
-webkit-mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
169
|
+
mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
170
170
|
-webkit-mask-size: 100%;
|
|
171
171
|
mask-size: 100%;
|
|
172
172
|
-webkit-mask-repeat: no-repeat;
|
|
@@ -17,6 +17,7 @@ interface PopoverProps {
|
|
|
17
17
|
disableBackgroundInteraction?: boolean;
|
|
18
18
|
useParentContainer?: boolean;
|
|
19
19
|
useParentHeight?: boolean;
|
|
20
|
+
showTooltip?: boolean;
|
|
20
21
|
}
|
|
21
22
|
declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
|
|
22
23
|
openPopover: () => void;
|
|
@@ -4,7 +4,7 @@ import { DatePatterns, SelectionMode, States } from "../../Enums/Enums";
|
|
|
4
4
|
import { CometChatOption } from "../../modals";
|
|
5
5
|
interface ConversationsProps {
|
|
6
6
|
/**
|
|
7
|
-
* Disables the display of message read
|
|
7
|
+
* Disables the display of message read Receipts.
|
|
8
8
|
*
|
|
9
9
|
* @remarks If set to `true`, the receipt status of the sent message won't be displayed.
|
|
10
10
|
* @defaultValue `false`
|
|
@@ -37,6 +37,7 @@ type Args = {
|
|
|
37
37
|
text: string;
|
|
38
38
|
getCurrentInput: Function;
|
|
39
39
|
isPartOfCurrentChatForUIEvent: (message: CometChat.BaseMessage) => boolean | undefined;
|
|
40
|
+
textMessageToEdit: CometChat.TextMessage | null;
|
|
40
41
|
};
|
|
41
42
|
export declare function useCometChatMessageComposer(args: Args): void;
|
|
42
43
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CometChatMessageTemplate } from "../../modals";
|
|
2
|
+
import { CometChatTextFormatter } from "../../formatters";
|
|
1
3
|
interface MessageInformationProps {
|
|
2
4
|
message: CometChat.BaseMessage;
|
|
3
5
|
onClose?: () => void;
|
|
@@ -6,6 +8,19 @@ interface MessageInformationProps {
|
|
|
6
8
|
* @param error - CometChatException object representing the error.
|
|
7
9
|
*/
|
|
8
10
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
11
|
+
/**
|
|
12
|
+
* Template for customizing the appearance of the message.
|
|
13
|
+
*/
|
|
14
|
+
template?: CometChatMessageTemplate;
|
|
15
|
+
/**
|
|
16
|
+
* Hides the visibility of receipt in the Message Information.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
hideReceipts?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
22
|
+
*/
|
|
23
|
+
textFormatters?: CometChatTextFormatter[];
|
|
9
24
|
}
|
|
10
25
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
26
|
export { CometChatMessageInformation };
|
package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
|
+
import { CometChatTextFormatter } from "../../formatters";
|
|
3
4
|
interface ThreadedMessagePreviewProps {
|
|
4
5
|
/**
|
|
5
6
|
* Hides the visibility of the date header.
|
|
@@ -38,6 +39,15 @@ interface ThreadedMessagePreviewProps {
|
|
|
38
39
|
* @returns void
|
|
39
40
|
*/
|
|
40
41
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
42
|
+
/**
|
|
43
|
+
* Hides the visibility of receipt in the Thread Header.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
hideReceipts?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
49
|
+
*/
|
|
50
|
+
textFormatters?: CometChatTextFormatter[];
|
|
41
51
|
}
|
|
42
52
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
53
|
export { CometChatThreadedMessagePreview };
|
|
@@ -29,12 +29,14 @@ export interface IOpenChat {
|
|
|
29
29
|
}
|
|
30
30
|
export interface IShowOngoingCall {
|
|
31
31
|
child: any;
|
|
32
|
+
message?: CometChat.CustomMessage;
|
|
32
33
|
}
|
|
33
34
|
export interface IPanel {
|
|
34
35
|
child?: any;
|
|
35
36
|
configuration?: any;
|
|
36
37
|
message?: CometChat.BaseMessage;
|
|
37
38
|
position?: PanelAlignment;
|
|
39
|
+
composerId?: ComposerId;
|
|
38
40
|
}
|
|
39
41
|
export interface IModal {
|
|
40
42
|
child?: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageOption } from "./CometChatMessageOption";
|
|
3
3
|
import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
|
|
4
|
+
import { CometChatTextFormatter } from "../formatters";
|
|
4
5
|
/**
|
|
5
6
|
* CometChatMessageTemplate is a pre-defined structure for creating message views
|
|
6
7
|
* that can be used as a starting point or blueprint for creating message views,
|
|
@@ -19,7 +20,7 @@ declare class CometChatMessageTemplate {
|
|
|
19
20
|
* and Video bubble based on the type of the message.
|
|
20
21
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
21
22
|
*/
|
|
22
|
-
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
|
|
23
|
+
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
|
|
23
24
|
/**
|
|
24
25
|
* Custom component to customize the complete message bubble.
|
|
25
26
|
* By default, headerView, contentView and footerView collectively form a message bubble.
|
|
@@ -48,7 +49,7 @@ declare class CometChatMessageTemplate {
|
|
|
48
49
|
* By default, it displays the receipt and the timestamp.
|
|
49
50
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
50
51
|
*/
|
|
51
|
-
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
52
|
+
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => Element | JSX.Element | null) | null;
|
|
52
53
|
/**
|
|
53
54
|
* List of available actions that any user can perform on a message, like reacting,
|
|
54
55
|
* editing or deleting a message.
|
|
@@ -17,7 +17,7 @@ export declare abstract class DataSource {
|
|
|
17
17
|
abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
18
18
|
abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
19
19
|
abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
|
|
20
|
-
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
20
|
+
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
|
|
21
21
|
abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
|
|
22
22
|
abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
23
23
|
abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
@@ -18,7 +18,7 @@ export declare abstract class DataSourceDecorator implements DataSource {
|
|
|
18
18
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
19
19
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
20
20
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
21
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
21
|
+
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): JSX.Element | Element | null;
|
|
22
22
|
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX.Element | Element | null;
|
|
23
23
|
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
|
|
24
24
|
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Receipts } from "../Enums/Enums";
|
|
1
2
|
/**
|
|
2
3
|
* Utility class for handling message receipt statuses.
|
|
3
4
|
* It is used in CometChatConversations and CometChatMessageList components.
|
|
@@ -10,35 +11,7 @@ export declare class MessageReceiptUtils {
|
|
|
10
11
|
* the corresponding receipt icon.
|
|
11
12
|
*
|
|
12
13
|
* @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
|
|
13
|
-
* @returns {
|
|
14
|
+
* @returns {Receipts} - The receipt status icon.
|
|
14
15
|
*/
|
|
15
|
-
static getReceiptStatus: (messageObject: CometChat.BaseMessage) =>
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Enum representing different receipt statuses for a message.
|
|
19
|
-
*
|
|
20
|
-
* @readonly
|
|
21
|
-
* @enum {number}
|
|
22
|
-
*/
|
|
23
|
-
export declare enum receipts {
|
|
24
|
-
/**
|
|
25
|
-
* Status indicating that the message is waiting to be processed.
|
|
26
|
-
*/
|
|
27
|
-
wait = 0,
|
|
28
|
-
/**
|
|
29
|
-
* Status indicating that the message has been sent.
|
|
30
|
-
*/
|
|
31
|
-
sent = 1,
|
|
32
|
-
/**
|
|
33
|
-
* Status indicating that the message has been delivered.
|
|
34
|
-
*/
|
|
35
|
-
delivered = 2,
|
|
36
|
-
/**
|
|
37
|
-
* Status indicating that the message has been read.
|
|
38
|
-
*/
|
|
39
|
-
read = 3,
|
|
40
|
-
/**
|
|
41
|
-
* Status indicating that an error occurred with the message.
|
|
42
|
-
*/
|
|
43
|
-
error = 4
|
|
16
|
+
static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
|
|
44
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MessageBubbleAlignment } from "../Enums/Enums";
|
|
2
2
|
import { CometChatMessageTemplate } from "../modals";
|
|
3
|
+
import { CometChatTextFormatter } from "../formatters";
|
|
3
4
|
/**
|
|
4
5
|
* Utility class for handling message display and styling.
|
|
5
6
|
* It is used in CometChatMessageInformation component.
|
|
@@ -12,7 +13,7 @@ export declare class MessageUtils {
|
|
|
12
13
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
13
14
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
14
15
|
*/
|
|
15
|
-
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
16
|
+
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]): any;
|
|
16
17
|
/**
|
|
17
18
|
* Retrieves the content view for a message based on the provided template.
|
|
18
19
|
*
|
|
@@ -20,7 +21,7 @@ export declare class MessageUtils {
|
|
|
20
21
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
21
22
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
22
23
|
*/
|
|
23
|
-
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
24
|
+
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, hideReceipts?: boolean): any;
|
|
24
25
|
/**
|
|
25
26
|
* Retrieves the bubble wrapper for a message based on the provided template.
|
|
26
27
|
*
|
|
@@ -38,7 +39,7 @@ export declare class MessageUtils {
|
|
|
38
39
|
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble (left or right).
|
|
39
40
|
* @returns {JSX.Element} - The message bubble component.
|
|
40
41
|
*/
|
|
41
|
-
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment): any;
|
|
42
|
+
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[]): any;
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* @param {(CometChat.User | CometChat.GroupMember | any)} user
|
|
@@ -47,14 +47,14 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
47
47
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
48
48
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
49
49
|
*/
|
|
50
|
-
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage,
|
|
50
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
|
|
51
51
|
/**
|
|
52
52
|
* Function to get status and date for message bubble
|
|
53
53
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
54
54
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
55
55
|
*/
|
|
56
56
|
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
57
|
-
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment,
|
|
57
|
+
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => import("react/jsx-runtime").JSX.Element | null;
|
|
58
58
|
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
59
59
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
60
60
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* It is used in CometChatIncomingCall component.
|
|
4
4
|
*/
|
|
5
5
|
export declare class StorageUtils {
|
|
6
|
+
private static isWindowListenerAttached;
|
|
7
|
+
private static storageKeyToRemove;
|
|
8
|
+
private static handleBeforeUnload;
|
|
6
9
|
/**
|
|
7
10
|
* Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
|
|
8
11
|
* @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
|
|
@@ -47,4 +47,5 @@ export declare function processFileForAudio(file: File): Promise<File>;
|
|
|
47
47
|
export declare function formatDateFromTimestamp(timestamp: number): string;
|
|
48
48
|
export declare function isMobileDevice(): boolean;
|
|
49
49
|
export declare function fireClickEvent(): void;
|
|
50
|
+
export declare const decodeHTML: (input: string) => string;
|
|
50
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.js",
|
|
8
|
+
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
|
+
},
|
|
6
10
|
"dependencies": {
|
|
7
|
-
"@cometchat/chat-sdk-javascript": "^4.0.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.0.12",
|
|
8
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
9
13
|
"rxjs": "^7.8.1"
|
|
10
14
|
},
|