@cometchat/chat-uikit-react 6.0.2 → 6.0.4
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 +71 -57
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +4 -4
- package/dist/styles/CometChatConversationStarter.css +2 -1
- 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/CometChatMediaRecorder.css +76 -4
- package/dist/styles/CometChatMessageBubble.css +4 -1
- package/dist/styles/CometChatMessageComposer.css +20 -3
- package/dist/styles/CometChatMessageInformation.css +6 -2
- package/dist/styles/CometChatMessageList.css +41 -24
- package/dist/styles/CometChatOngoingCall.css +2 -2
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -15
- package/dist/styles/CometChatReactionList.css +3 -4
- package/dist/styles/CometChatSmartReplies.css +2 -2
- package/dist/styles/CometChatThreadHeader.css +1 -1
- 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/CometChatConversationStarter.css +2 -1
- 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/CometChatMediaRecorder.css +76 -4
- package/dist/styles/components/CometChatMessageBubble.css +4 -1
- package/dist/styles/components/CometChatMessageComposer.css +20 -3
- package/dist/styles/components/CometChatMessageInformation.css +6 -2
- package/dist/styles/components/CometChatMessageList.css +41 -24
- package/dist/styles/components/CometChatOngoingCall.css +2 -2
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -15
- package/dist/styles/components/CometChatReactionList.css +3 -4
- package/dist/styles/components/CometChatSmartReplies.css +2 -2
- package/dist/styles/components/CometChatThreadHeader.css +1 -1
- package/dist/styles/components/CreatePolls.css +8 -1
- package/dist/styles/components/StickersKeyboard.css +2 -2
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
- package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
- package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
- package/dist/types/events/CometChatUIEvents.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
- package/dist/types/utils/DataSource.d.ts +1 -0
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +8 -6
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
- package/rollup.config.js +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
2
3
|
import { CometChatTextFormatter } from "../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
3
4
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
1
3
|
import { DataSource } from "./DataSource";
|
|
2
4
|
import { additionalParams } from "./ConversationUtils";
|
|
3
5
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
@@ -54,14 +56,14 @@ export declare class MessagesDataSource implements DataSource {
|
|
|
54
56
|
getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
|
|
55
57
|
today: string;
|
|
56
58
|
yesterday: string;
|
|
57
|
-
lastWeek?: string;
|
|
59
|
+
lastWeek?: string | undefined;
|
|
58
60
|
otherDays: string;
|
|
59
61
|
relativeTime?: {
|
|
60
|
-
minute?: string;
|
|
61
|
-
minutes?: string;
|
|
62
|
-
hour?: string;
|
|
63
|
-
hours?: string;
|
|
64
|
-
};
|
|
62
|
+
minute?: string | undefined;
|
|
63
|
+
minutes?: string | undefined;
|
|
64
|
+
hour?: string | undefined;
|
|
65
|
+
hours?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
65
67
|
};
|
|
66
68
|
/**
|
|
67
69
|
* Function to get status and date for message bubble
|
|
@@ -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.
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
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.11",
|
|
8
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
9
13
|
"rxjs": "^7.8.1"
|
|
10
14
|
},
|
package/rollup.config.js
CHANGED
|
@@ -44,7 +44,7 @@ export default [
|
|
|
44
44
|
}),
|
|
45
45
|
terser(),
|
|
46
46
|
],
|
|
47
|
-
external: ["react", "react-dom", "@cometchat/chat-sdk-javascript", "@cometchat/calls-sdk-javascript"],
|
|
47
|
+
external: ["react", "react-dom","react/jsx-runtime", "@cometchat/chat-sdk-javascript", "@cometchat/calls-sdk-javascript"],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
input: "src/index.ts",
|