@cometchat/chat-uikit-react 6.0.3 → 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 +11 -1
- 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 +1 -1
- package/dist/styles/CometChatMessageInformation.css +2 -2
- package/dist/styles/CometChatMessageList.css +26 -18
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -15
- 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 +1 -1
- package/dist/styles/components/CometChatMessageInformation.css +2 -2
- package/dist/styles/components/CometChatMessageList.css +26 -18
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -15
- 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/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/events/CometChatUIEvents.d.ts +1 -0
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
|
@@ -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
|
}
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
.cometchat-sticker-keyboard__empty-view-icon {
|
|
169
169
|
width: 60px;
|
|
170
170
|
height: 60px;
|
|
171
|
-
-webkit-mask-image: url("../../assets/sticker.svg");
|
|
172
|
-
mask-image: url("../../assets/sticker.svg");
|
|
171
|
+
-webkit-mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
172
|
+
mask-image: url("../../assets/sticker.svg") center center no-repeat;
|
|
173
173
|
-webkit-mask-size: 100%;
|
|
174
174
|
mask-size: 100%;
|
|
175
175
|
-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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CometChatMessageTemplate } from "../../modals";
|
|
1
2
|
import { CalendarObject } from "../../utils/CalendarObject";
|
|
2
3
|
interface MessageInformationProps {
|
|
3
4
|
message: CometChat.BaseMessage;
|
|
@@ -15,6 +16,10 @@ interface MessageInformationProps {
|
|
|
15
16
|
* Format for the timestamp displayed next to messages.
|
|
16
17
|
*/
|
|
17
18
|
messageSentAtDateTimeFormat?: CalendarObject;
|
|
19
|
+
/**
|
|
20
|
+
* Template for customizing the appearance of the message.
|
|
21
|
+
*/
|
|
22
|
+
template?: CometChatMessageTemplate;
|
|
18
23
|
}
|
|
19
24
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
25
|
export { CometChatMessageInformation };
|
|
@@ -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
|
},
|