@cometchat/chat-uikit-react 5.0.2 → 5.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 (33) hide show
  1. package/dist/index.d.ts +326 -265
  2. package/dist/index.js +2 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatAudioBubble.css +1 -0
  5. package/dist/styles/CometChatOutgoingCall.css +1 -1
  6. package/dist/styles/CometChatUsers.css +1 -1
  7. package/dist/styles/components/CometChatAudioBubble.css +1 -0
  8. package/dist/styles/components/CometChatOutgoingCall.css +1 -1
  9. package/dist/styles/components/CometChatUsers.css +1 -1
  10. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +1 -0
  11. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  12. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +1 -0
  13. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  14. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -0
  15. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -0
  16. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -0
  17. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -0
  18. package/dist/types/components/CometChatConversations/controller.d.ts +1 -0
  19. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -0
  20. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +1 -0
  21. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -0
  22. package/dist/types/components/CometChatUsers/controller.d.ts +1 -0
  23. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +1 -0
  24. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +1 -0
  25. package/dist/types/modals/CometChatActionsView.d.ts +1 -0
  26. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -0
  27. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +288 -228
  28. package/dist/types/utils/DataSource.d.ts +1 -0
  29. package/dist/types/utils/DataSourceDecorator.d.ts +1 -0
  30. package/dist/types/utils/MessagesDataSource.d.ts +3 -1
  31. package/package.json +1 -1
  32. package/dist/types/utils/CalendarObject.d.ts +0 -27
  33. package/dist/types/utils/Interface.d.ts +0 -37
@@ -35,6 +35,7 @@
35
35
  display: flex;
36
36
  align-items: center;
37
37
  justify-content: center;
38
+ z-index: 1;
38
39
  }
39
40
 
40
41
  /* Container for download progress circle (24x24 size) */
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  /* Avatar size adjustment for smaller screens */
92
- .cometchat-outgoing-call__avatar .cometchat-avatar {
92
+ .cometchat-outgoing-call .cometchat-outgoing-call__avatar .cometchat .cometchat-avatar {
93
93
  width: 120px;
94
94
  height: 120px;
95
95
  }
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  .cometchat-users__shimmer-item-title {
92
- width: calc(100% - 64px);
92
+ width: 50%;
93
93
  height: 22px;
94
94
  flex-shrink: 0;
95
95
  border-radius: var(--cometchat-radius-2, 8px);
@@ -35,6 +35,7 @@
35
35
  display: flex;
36
36
  align-items: center;
37
37
  justify-content: center;
38
+ z-index: 1;
38
39
  }
39
40
 
40
41
  /* Container for download progress circle (24x24 size) */
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  /* Avatar size adjustment for smaller screens */
92
- .cometchat-outgoing-call__avatar .cometchat-avatar {
92
+ .cometchat-outgoing-call .cometchat-outgoing-call__avatar .cometchat .cometchat-avatar {
93
93
  width: 120px;
94
94
  height: 120px;
95
95
  }
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  .cometchat-users__shimmer-item-title {
92
- width: calc(100% - 64px);
92
+ width: 50%;
93
93
  height: 22px;
94
94
  flex-shrink: 0;
95
95
  border-radius: var(--cometchat-radius-2, 8px);
@@ -1,3 +1,4 @@
1
+ import { BaseMessage, CometChat } from "@cometchat/chat-sdk-javascript";
1
2
  interface MessageExtensionType {
2
3
  hasXSS?: string;
3
4
  sanitized_text?: string;
@@ -31,8 +31,8 @@ declare class WebAudioPlayer extends EventEmitter<WebAudioPlayerEvents> {
31
31
  constructor(audioContext?: AudioContext);
32
32
  /** Subscribe to an event. Returns an unsubscribe function. */
33
33
  addEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void, options?: {
34
- once?: boolean;
35
- }) => () => void;
34
+ once?: boolean | undefined;
35
+ } | undefined) => () => void;
36
36
  /** Unsubscribe from an event */
37
37
  removeEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void) => void;
38
38
  load(): Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatEmoji, CometChatEmojiCategory } from "./CometChatEmoji";
2
3
  export declare const useCometChatEmojiKeyboard: ({ emojiData, }: {
3
4
  emojiData: CometChatEmojiCategory[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
2
3
  import { MessageBubbleAlignment } from "../../../Enums/Enums";
3
4
  /**Interface defining the structure for MessageBubbleProps */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatePatterns } from "../../../Enums/Enums";
2
3
  interface CallLogsProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
2
3
  interface IncomingCallProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Props interface for the outgoing call component
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare class OutgoingCallConfiguration {
2
3
  disableSoundForCalls?: boolean;
3
4
  customSoundForCalls?: string;
@@ -1,3 +1,4 @@
1
+ import { CometChat } from '@cometchat/chat-sdk-javascript';
1
2
  type Args = {
2
3
  conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
3
4
  errorHandler: (error: unknown, source?: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageTemplate } from "../../modals";
2
3
  import { DatePatterns, MessageListAlignment } from "../../Enums/Enums";
3
4
  import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CometChatMessageTemplate } from "../../modals";
2
3
  interface ThreadedMessagePreviewProps {
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UserMemberListType } from '../../Enums/Enums';
2
3
  export interface MentionsProps {
3
4
  userMemberListType?: UserMemberListType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Args = {
2
3
  searchText: string;
3
4
  usersRequestBuilder: CometChat.UsersRequestBuilder | null;
@@ -1,3 +1,4 @@
1
+ import { CometChat } from "@cometchat/chat-sdk-javascript";
1
2
  import { DataSource } from "../../../utils/DataSource";
2
3
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
4
  import { ComposerId } from "../../../utils/MessagesDataSource";
@@ -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.
@@ -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 { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
3
4
  /**