@cometchat/chat-uikit-react 5.0.1 → 5.0.2
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.
- package/dist/index.d.ts +76 -137
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatUsers.css +22 -27
- package/dist/styles/components/CometChatUsers.css +22 -27
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +2 -1
- package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +8 -1
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +1 -27
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -3
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -8
- package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
- package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +9 -1
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +0 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +12 -58
- package/dist/types/utils/CalendarObject.d.ts +27 -0
- package/dist/types/utils/DataSource.d.ts +0 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +0 -1
- package/dist/types/utils/Interface.d.ts +37 -0
- package/dist/types/utils/MessagesDataSource.d.ts +0 -2
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
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,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
|
3
2
|
import { CometChatTextFormatter } from "../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
4
3
|
import { CometChatUrlsFormatter } from "../formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter";
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
1
|
import { DataSource } from "./DataSource";
|
|
4
2
|
import { additionalParams } from "./ConversationUtils";
|
|
5
3
|
import { CometChatMentionsFormatter } from "../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"dependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": "^18.2.0",
|
|
32
32
|
"rollup": "^3.23.0",
|
|
33
33
|
"rollup-plugin-copy": "^3.4.0",
|
|
34
|
-
"rollup-plugin-dts": "^
|
|
34
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
35
35
|
"rollup-plugin-postcss": "^4.0.2",
|
|
36
36
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
37
|
"tslib": "^2.5.2",
|