@cometchat/chat-uikit-react 4.3.18 → 4.3.19
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/assets/message-delivered.svg +4 -3
- package/dist/assets/message-read.svg +4 -3
- package/dist/index.d.ts +23 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/Calling/CometChatCallButtons/index.d.ts +2 -9
- package/dist/types/CometChatContacts/index.d.ts +1 -1
- package/dist/types/CometChatContacts/style.d.ts +7 -7
- package/dist/types/CometChatConversations/index.d.ts +14 -0
- package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +6 -0
- package/package.json +3 -3
|
@@ -10,15 +10,8 @@ interface ICallButtonsBaseProps {
|
|
|
10
10
|
onVoiceCallClick?: () => void;
|
|
11
11
|
onVideoCallClick?: () => void;
|
|
12
12
|
onError?: (error: CometChat.CometChatException) => void;
|
|
13
|
-
}
|
|
14
|
-
interface ICallButtonsUserProps extends ICallButtonsBaseProps {
|
|
15
|
-
user: CometChat.User;
|
|
16
|
-
group?: CometChat.Group | null;
|
|
17
|
-
}
|
|
18
|
-
interface ICallButtonsGroupProps extends ICallButtonsBaseProps {
|
|
19
13
|
user?: CometChat.User | null;
|
|
20
|
-
group
|
|
14
|
+
group?: CometChat.Group | null;
|
|
21
15
|
}
|
|
22
|
-
|
|
23
|
-
declare const CometChatCallButtons: (props: ICallButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const CometChatCallButtons: (props: ICallButtonsBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
17
|
export { CometChatCallButtons };
|
|
@@ -15,7 +15,7 @@ interface ContactsProps {
|
|
|
15
15
|
hideSubmitButton?: boolean;
|
|
16
16
|
selectionLimit?: number;
|
|
17
17
|
tabVisibility?: TabsVisibility;
|
|
18
|
-
contactsStyle
|
|
18
|
+
contactsStyle?: ContactsStyle;
|
|
19
19
|
selectionMode?: SelectionMode;
|
|
20
20
|
}
|
|
21
21
|
declare const CometChatContacts: (props: ContactsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,13 +8,13 @@ type ButtonStyle = CSSProperties & {
|
|
|
8
8
|
type HeaderStyle = CSSProperties;
|
|
9
9
|
type WrapperStyle = CSSProperties;
|
|
10
10
|
type ContentStyle = CSSProperties;
|
|
11
|
-
export declare function closeBtnStyle(
|
|
11
|
+
export declare function closeBtnStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): ButtonStyle;
|
|
12
12
|
export declare function submitBtnWrapperStyle(): CSSProperties;
|
|
13
|
-
export declare function submitBtnStyle(
|
|
14
|
-
export declare function contactsHeaderStyle(
|
|
15
|
-
export declare function contactsWrapperStyle(
|
|
16
|
-
export declare function getContactsStyle(
|
|
13
|
+
export declare function submitBtnStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle | null): any;
|
|
14
|
+
export declare function contactsHeaderStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): HeaderStyle;
|
|
15
|
+
export declare function contactsWrapperStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): WrapperStyle;
|
|
16
|
+
export declare function getContactsStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): CSSProperties;
|
|
17
17
|
export declare function contactsContentStyle(): ContentStyle;
|
|
18
|
-
export declare function getTabsStyle(
|
|
19
|
-
export declare const getTabItemStyling: (
|
|
18
|
+
export declare function getTabsStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): TabsStyle;
|
|
19
|
+
export declare const getTabItemStyling: (theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean, contactsStyle?: ContactsStyle) => TabItemStyle;
|
|
20
20
|
export {};
|
|
@@ -70,6 +70,11 @@ interface IConversationsProps {
|
|
|
70
70
|
* @defaultValue `SelectionMode.none`
|
|
71
71
|
*/
|
|
72
72
|
selectionMode?: SelectionMode;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated
|
|
75
|
+
*
|
|
76
|
+
* This property is deprecated as of version 4.3.19 due to newer property 'hideReceipt'. It will be removed in subsequent versions.
|
|
77
|
+
*/
|
|
73
78
|
/**
|
|
74
79
|
* Disable receipt status
|
|
75
80
|
*
|
|
@@ -79,6 +84,15 @@ interface IConversationsProps {
|
|
|
79
84
|
* @defaultValue `false`
|
|
80
85
|
*/
|
|
81
86
|
disableReceipt?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* hide receipt status
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* If set to true, the receipt status of the message won't be displayed
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue `false`
|
|
94
|
+
*/
|
|
95
|
+
hideReceipt?: boolean;
|
|
82
96
|
/**
|
|
83
97
|
* List of actions available on mouse over on the default list item component
|
|
84
98
|
*/
|
|
@@ -11,7 +11,13 @@ interface IMessageListProps {
|
|
|
11
11
|
emptyStateView?: any;
|
|
12
12
|
errorStateView?: any;
|
|
13
13
|
loadingStateView?: any;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*
|
|
17
|
+
* This property is deprecated as of version 4.3.19 due to newer property 'hideReceipt'. It will be removed in subsequent versions.
|
|
18
|
+
*/
|
|
14
19
|
disableReceipt?: boolean;
|
|
20
|
+
hideReceipt?: boolean;
|
|
15
21
|
disableSoundForMessages?: boolean;
|
|
16
22
|
customSoundForMessages?: string;
|
|
17
23
|
readIcon?: string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.19",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@cometchat/chat-sdk-javascript": "^4.0.9",
|
|
8
|
-
"@cometchat/uikit-elements": "^4.3.
|
|
8
|
+
"@cometchat/uikit-elements": "^4.3.15",
|
|
9
9
|
"@cometchat/uikit-resources": "^4.3.11",
|
|
10
|
-
"@cometchat/uikit-shared": "^4.3.
|
|
10
|
+
"@cometchat/uikit-shared": "^4.3.17"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/cli": "^7.17.0",
|