@cometchat/chat-uikit-react 6.0.2 → 6.0.3

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 (45) hide show
  1. package/dist/index.d.ts +61 -57
  2. package/dist/index.js +1 -10
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatConversationStarter.css +2 -1
  5. package/dist/styles/CometChatMediaRecorder.css +76 -4
  6. package/dist/styles/CometChatMessageBubble.css +4 -1
  7. package/dist/styles/CometChatMessageComposer.css +19 -2
  8. package/dist/styles/CometChatMessageInformation.css +4 -0
  9. package/dist/styles/CometChatMessageList.css +15 -6
  10. package/dist/styles/CometChatOngoingCall.css +2 -2
  11. package/dist/styles/CometChatReactionList.css +3 -4
  12. package/dist/styles/CometChatThreadHeader.css +1 -1
  13. package/dist/styles/components/CometChatConversationStarter.css +2 -1
  14. package/dist/styles/components/CometChatMediaRecorder.css +76 -4
  15. package/dist/styles/components/CometChatMessageBubble.css +4 -1
  16. package/dist/styles/components/CometChatMessageComposer.css +19 -2
  17. package/dist/styles/components/CometChatMessageInformation.css +4 -0
  18. package/dist/styles/components/CometChatMessageList.css +15 -6
  19. package/dist/styles/components/CometChatOngoingCall.css +2 -2
  20. package/dist/styles/components/CometChatReactionList.css +3 -4
  21. package/dist/styles/components/CometChatThreadHeader.css +1 -1
  22. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
  23. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  24. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
  25. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +1 -0
  26. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  27. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
  28. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
  29. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
  30. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
  31. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
  32. package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
  33. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
  34. package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +1 -0
  35. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
  36. package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
  37. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -4
  38. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
  39. package/dist/types/modals/CometChatActionsView.d.ts +1 -0
  40. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
  41. package/dist/types/utils/DataSource.d.ts +1 -0
  42. package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
  43. package/dist/types/utils/MessagesDataSource.d.ts +8 -6
  44. package/package.json +1 -1
  45. package/rollup.config.js +1 -1
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "dependencies": {
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",