@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
@@ -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";
@@ -39,7 +41,7 @@ export declare class MessagesDataSource implements DataSource {
39
41
  getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
40
42
  getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
41
43
  getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
42
- getReceiptClass(status?: number): "wait" | "error" | "read" | "delivered" | "sent" | undefined;
44
+ getReceiptClass(status?: number): "error" | "wait" | "read" | "delivered" | "sent" | undefined;
43
45
  /**
44
46
  * Function to get receipt for message bubble
45
47
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "dependencies": {
@@ -1,27 +0,0 @@
1
- /**
2
- * Represents the configuration for a calendar object.
3
- */
4
- export declare class CalendarObject {
5
- /** Custom formatting for dates that fall on the same day. */
6
- sameDay?: string;
7
- /** Custom formatting for dates that fall on the previous day. */
8
- lastDay?: string;
9
- /** Custom formatting for dates within the last week. */
10
- lastWeek?: string;
11
- /** Custom formatting for dates that do not fit other categories. */
12
- otherDays?: string;
13
- /**
14
- * Relative time formatting for specific time units.
15
- */
16
- relativeTime?: {
17
- /** Formatting for minutes (singular). */
18
- minute?: string;
19
- /** Formatting for minutes (plural). */
20
- minutes?: string;
21
- /** Formatting for hours (singular). */
22
- hour?: string;
23
- /** Formatting for hours (plural). */
24
- hours?: string;
25
- };
26
- constructor(calendaObject: CalendarObject);
27
- }
@@ -1,37 +0,0 @@
1
- import { CalendarObject } from "./CalendarObject";
2
- /**
3
- * Represents the configuration for date and time localization.
4
- */
5
- export interface DateLocaleConfig {
6
- /** Format string for displaying dates. */
7
- dateFormat?: string;
8
- /** Format string for displaying time. */
9
- timeFormat?: string;
10
- /** Format string for displaying both date and time. */
11
- dateTimeFormat?: string;
12
- /** Custom relative time formatting defined using a CalendarObject. */
13
- relativeTimeFormat?: CalendarObject;
14
- }
15
- /**
16
- * Represents the localization settings for an application or component.
17
- */
18
- export interface LocalisationSettings {
19
- /** The language code (e.g., 'en', 'fr') for the current localization. */
20
- language?: string;
21
- /** Object containing key-value pairs for translations in the current language. */
22
- translationsForLanguage?: {
23
- [key: string]: any;
24
- };
25
- /** Whether to disable automatic language detection. */
26
- disableAutoDetection?: boolean;
27
- /** The fallback language code to use if the primary language is not available. */
28
- fallbackLanguage?: string;
29
- /** Whether to disable localization for date and time values. */
30
- disableDateTimeLocalisation?: boolean;
31
- /** The timezone for date and time formatting. */
32
- timezone?: string;
33
- /** Custom calendar formatting defined using a CalendarObject. */
34
- calendarObject?: CalendarObject;
35
- /** Function to handle missing translation keys. */
36
- missingKeyHandler?: (key: string) => string;
37
- }