@cometchat/chat-uikit-react 4.3.18 → 4.3.20

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.
@@ -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: CometChat.Group;
14
+ group?: CometChat.Group | null;
21
15
  }
22
- type ICallButtonsProps = ICallButtonsUserProps | ICallButtonsGroupProps;
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: 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(contactsStyle: ContactsStyle, theme: CometChatTheme): ButtonStyle;
11
+ export declare function closeBtnStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): ButtonStyle;
12
12
  export declare function submitBtnWrapperStyle(): CSSProperties;
13
- export declare function submitBtnStyle(contactsStyle: ContactsStyle | null, theme: CometChatTheme): any;
14
- export declare function contactsHeaderStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): HeaderStyle;
15
- export declare function contactsWrapperStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): WrapperStyle;
16
- export declare function getContactsStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): CSSProperties;
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(contactsStyle: ContactsStyle, theme: CometChatTheme): TabsStyle;
19
- export declare const getTabItemStyling: (contactsStyle: ContactsStyle, theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean) => TabItemStyle;
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
  */
@@ -188,6 +188,13 @@ export type Action = {
188
188
  } | {
189
189
  type: "updateGroup";
190
190
  group: CometChat.Group;
191
+ } | {
192
+ type: "updateGroupForSDKEvents";
193
+ group: CometChat.Group;
194
+ newScope?: CometChat.GroupMemberScope;
195
+ newCount?: number;
196
+ hasJoined?: boolean;
197
+ addGroup?: boolean;
191
198
  } | {
192
199
  type: "removeGroup";
193
200
  guid: string;
@@ -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.18",
3
+ "version": "4.3.20",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "peerDependencies": {
7
- "@cometchat/chat-sdk-javascript": "^4.0.9",
8
- "@cometchat/uikit-elements": "^4.3.14",
9
- "@cometchat/uikit-resources": "^4.3.11",
10
- "@cometchat/uikit-shared": "^4.3.16"
7
+ "@cometchat/chat-sdk-javascript": "^4.0.10",
8
+ "@cometchat/uikit-elements": "^4.3.16",
9
+ "@cometchat/uikit-resources": "^4.3.12",
10
+ "@cometchat/uikit-shared": "^4.3.18"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@babel/cli": "^7.17.0",