@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.
Files changed (69) hide show
  1. package/dist/index.d.ts +71 -57
  2. package/dist/index.js +1 -10
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatAudioBubble.css +4 -4
  5. package/dist/styles/CometChatConversationStarter.css +2 -1
  6. package/dist/styles/CometChatConversationSummary.css +2 -2
  7. package/dist/styles/CometChatEditPreview.css +3 -0
  8. package/dist/styles/CometChatFileBubble.css +4 -4
  9. package/dist/styles/CometChatFullScreenViewer.css +2 -2
  10. package/dist/styles/CometChatMediaRecorder.css +76 -4
  11. package/dist/styles/CometChatMessageBubble.css +4 -1
  12. package/dist/styles/CometChatMessageComposer.css +20 -3
  13. package/dist/styles/CometChatMessageInformation.css +6 -2
  14. package/dist/styles/CometChatMessageList.css +41 -24
  15. package/dist/styles/CometChatOngoingCall.css +2 -2
  16. package/dist/styles/CometChatPopover.css +19 -0
  17. package/dist/styles/CometChatReactionInfo.css +0 -15
  18. package/dist/styles/CometChatReactionList.css +3 -4
  19. package/dist/styles/CometChatSmartReplies.css +2 -2
  20. package/dist/styles/CometChatThreadHeader.css +1 -1
  21. package/dist/styles/CreatePolls.css +8 -1
  22. package/dist/styles/StickersKeyboard.css +2 -2
  23. package/dist/styles/components/CometChatAudioBubble.css +4 -4
  24. package/dist/styles/components/CometChatConversationStarter.css +2 -1
  25. package/dist/styles/components/CometChatConversationSummary.css +2 -2
  26. package/dist/styles/components/CometChatEditPreview.css +3 -0
  27. package/dist/styles/components/CometChatFileBubble.css +4 -4
  28. package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
  29. package/dist/styles/components/CometChatMediaRecorder.css +76 -4
  30. package/dist/styles/components/CometChatMessageBubble.css +4 -1
  31. package/dist/styles/components/CometChatMessageComposer.css +20 -3
  32. package/dist/styles/components/CometChatMessageInformation.css +6 -2
  33. package/dist/styles/components/CometChatMessageList.css +41 -24
  34. package/dist/styles/components/CometChatOngoingCall.css +2 -2
  35. package/dist/styles/components/CometChatPopover.css +19 -0
  36. package/dist/styles/components/CometChatReactionInfo.css +0 -15
  37. package/dist/styles/components/CometChatReactionList.css +3 -4
  38. package/dist/styles/components/CometChatSmartReplies.css +2 -2
  39. package/dist/styles/components/CometChatThreadHeader.css +1 -1
  40. package/dist/styles/components/CreatePolls.css +8 -1
  41. package/dist/styles/components/StickersKeyboard.css +2 -2
  42. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
  43. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  44. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
  45. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
  46. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  47. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +2 -0
  48. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
  49. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
  50. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
  51. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
  52. package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
  53. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  54. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
  55. package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
  56. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
  57. package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
  58. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
  59. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
  60. package/dist/types/events/CometChatUIEvents.d.ts +1 -0
  61. package/dist/types/modals/CometChatActionsView.d.ts +1 -0
  62. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
  63. package/dist/types/utils/DataSource.d.ts +1 -0
  64. package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
  65. package/dist/types/utils/MessagesDataSource.d.ts +8 -6
  66. package/dist/types/utils/Storage.d.ts +3 -0
  67. package/dist/types/utils/util.d.ts +1 -0
  68. package/package.json +6 -2
  69. package/rollup.config.js +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
2
3
  /**
3
4
  * Class representing a Thumbnail Generation extension decorator.
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatActions } from "./CometChatActions";
2
3
  /**
3
4
  * CometChatActionsView is a pre-defined structure for creating actions
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageOption } from "./CometChatMessageOption";
2
3
  import { MessageBubbleAlignment } from "../Enums/Enums";
3
4
  import { CalendarObject } from "../utils/CalendarObject";
@@ -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,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSource } from "./DataSource";
2
3
  import { ComposerId } from "./MessagesDataSource";
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.
@@ -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.2",
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
  },
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",