@cometchat/chat-uikit-react 5.0.6 → 5.0.7

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 +13 -3
  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 +25 -18
  12. package/dist/styles/CometChatPopover.css +19 -0
  13. package/dist/styles/CometChatReactionInfo.css +0 -16
  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 +25 -18
  25. package/dist/styles/components/CometChatPopover.css +19 -0
  26. package/dist/styles/components/CometChatReactionInfo.css +0 -16
  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
  }
@@ -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;
@@ -1,3 +1,4 @@
1
+ import { CometChatMessageTemplate } from "../../modals";
1
2
  interface MessageInformationProps {
2
3
  message: CometChat.BaseMessage;
3
4
  onClose?: () => void;
@@ -6,6 +7,10 @@ interface MessageInformationProps {
6
7
  * @param error - CometChatException object representing the error.
7
8
  */
8
9
  onError?: ((error: CometChat.CometChatException) => void) | null;
10
+ /**
11
+ * Template for customizing the appearance of the message.
12
+ */
13
+ template?: CometChatMessageTemplate;
9
14
  }
10
15
  declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
11
16
  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.
@@ -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.6",
3
+ "version": "5.0.7",
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
  },