@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.
Files changed (35) hide show
  1. package/dist/index.d.ts +11 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatAudioBubble.css +4 -4
  5. package/dist/styles/CometChatConversationSummary.css +2 -2
  6. package/dist/styles/CometChatEditPreview.css +3 -0
  7. package/dist/styles/CometChatFileBubble.css +4 -4
  8. package/dist/styles/CometChatFullScreenViewer.css +2 -2
  9. package/dist/styles/CometChatMessageComposer.css +1 -1
  10. package/dist/styles/CometChatMessageInformation.css +2 -2
  11. package/dist/styles/CometChatMessageList.css +26 -18
  12. package/dist/styles/CometChatPopover.css +19 -0
  13. package/dist/styles/CometChatReactionInfo.css +0 -15
  14. package/dist/styles/CometChatSmartReplies.css +2 -2
  15. package/dist/styles/CreatePolls.css +8 -1
  16. package/dist/styles/StickersKeyboard.css +2 -2
  17. package/dist/styles/components/CometChatAudioBubble.css +4 -4
  18. package/dist/styles/components/CometChatConversationSummary.css +2 -2
  19. package/dist/styles/components/CometChatEditPreview.css +3 -0
  20. package/dist/styles/components/CometChatFileBubble.css +4 -4
  21. package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
  22. package/dist/styles/components/CometChatMessageComposer.css +1 -1
  23. package/dist/styles/components/CometChatMessageInformation.css +2 -2
  24. package/dist/styles/components/CometChatMessageList.css +26 -18
  25. package/dist/styles/components/CometChatPopover.css +19 -0
  26. package/dist/styles/components/CometChatReactionInfo.css +0 -15
  27. package/dist/styles/components/CometChatSmartReplies.css +2 -2
  28. package/dist/styles/components/CreatePolls.css +8 -1
  29. package/dist/styles/components/StickersKeyboard.css +2 -2
  30. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
  31. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  32. package/dist/types/events/CometChatUIEvents.d.ts +1 -0
  33. package/dist/types/utils/Storage.d.ts +3 -0
  34. package/dist/types/utils/util.d.ts +1 -0
  35. package/package.json +6 -2
@@ -173,7 +173,7 @@
173
173
  }
174
174
 
175
175
  .cometchat-create-poll__button {
176
- width: 388px;
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 };
@@ -35,6 +35,7 @@ export interface IPanel {
35
35
  configuration?: any;
36
36
  message?: CometChat.BaseMessage;
37
37
  position?: PanelAlignment;
38
+ composerId?: ComposerId;
38
39
  }
39
40
  export interface IModal {
40
41
  child?: any;
@@ -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.
@@ -51,4 +51,5 @@ export declare function sanitizeCalendarObject(calendarObject?: CalendarObject):
51
51
  [k: string]: any;
52
52
  };
53
53
  export declare function fireClickEvent(): void;
54
+ export declare const decodeHTML: (input: string) => string;
54
55
  export {};
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "6.0.3",
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.10",
11
+ "@cometchat/chat-sdk-javascript": "^4.0.11",
8
12
  "@rollup/plugin-json": "^6.1.0",
9
13
  "rxjs": "^7.8.1"
10
14
  },