@cometchat/chat-uikit-react 6.3.6 → 6.3.7

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.
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6.0385 17.4997L4.0365 19.5015C3.752 19.7861 3.42475 19.8506 3.05475 19.695C2.68492 19.5391 2.5 19.2586 2.5 18.8535V4.30747C2.5 3.8023 2.675 3.37472 3.025 3.02472C3.375 2.67472 3.80258 2.49972 4.30775 2.49972H13.4808C13.6936 2.49972 13.8734 2.57472 14.0203 2.72472C14.1671 2.87472 14.2372 3.05614 14.2308 3.26897C14.2244 3.4753 14.1494 3.64872 14.0057 3.78922C13.8622 3.92955 13.6873 3.99972 13.4808 3.99972H4.30775C4.23075 3.99972 4.16025 4.0318 4.09625 4.09597C4.03208 4.15997 4 4.23047 4 4.30747V17.3845L5.4 15.9997H19.6923C19.7693 15.9997 19.8398 15.9676 19.9038 15.9035C19.9679 15.8395 20 15.769 20 15.692V8.97097C20 8.75814 20.0718 8.57989 20.2155 8.43622C20.359 8.29272 20.5372 8.22097 20.75 8.22097C20.9628 8.22097 21.141 8.29272 21.2845 8.43622C21.4282 8.57989 21.5 8.75814 21.5 8.97097V15.692C21.5 16.1971 21.325 16.6247 20.975 16.9747C20.625 17.3247 20.1974 17.4997 19.6923 17.4997H6.0385ZM19 6.23047C18.2372 6.23047 17.5882 5.96289 17.053 5.42772C16.5177 4.89239 16.25 4.2433 16.25 3.48047C16.25 2.71764 16.5177 2.06864 17.053 1.53347C17.5882 0.998135 18.2372 0.730469 19 0.730469C19.7628 0.730469 20.4118 0.998135 20.947 1.53347C21.4823 2.06864 21.75 2.71764 21.75 3.48047C21.75 4.2433 21.4823 4.89239 20.947 5.42772C20.4118 5.96289 19.7628 6.23047 19 6.23047ZM4 4.30747V16.692V3.99972V4.30747Z" fill="#A1A1A1"/>
3
+ </svg>
package/dist/index.d.ts CHANGED
@@ -1428,6 +1428,7 @@ interface additionalParamsOptions {
1428
1428
  hideDeleteMessageOption?: boolean;
1429
1429
  hideMessagePrivatelyOption?: boolean;
1430
1430
  hideCopyMessageOption?: boolean;
1431
+ hideMarkAsUnreadOption?: boolean;
1431
1432
  hideMessageInfoOption?: boolean;
1432
1433
  hideFlagMessageOption?: boolean;
1433
1434
  }
@@ -1440,6 +1441,7 @@ declare class MessagesDataSource implements DataSource {
1440
1441
  getSendMessagePrivatelyOption(): CometChatActionsIcon;
1441
1442
  getCopyOption(): CometChatActionsIcon;
1442
1443
  getMessageInfoOption(): CometChatActionsIcon;
1444
+ getMarkAsUnreadOption(): CometChatActionsIcon;
1443
1445
  getReportOption(): CometChatActionsIcon;
1444
1446
  isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
1445
1447
  getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
@@ -4488,6 +4490,11 @@ interface MessageListProps {
4488
4490
  * @default false
4489
4491
  */
4490
4492
  hideMessageInfoOption?: boolean;
4493
+ /**
4494
+ * Shows the option to mark messages as unread.
4495
+ * @default false
4496
+ */
4497
+ showMarkAsUnreadOption?: boolean;
4491
4498
  /**
4492
4499
  * Hides avatars for messages.
4493
4500
  * @default false
@@ -4498,6 +4505,11 @@ interface MessageListProps {
4498
4505
  * @default false
4499
4506
  */
4500
4507
  hideGroupActionMessages?: boolean;
4508
+ /**
4509
+ * If set to true, the message list will start from unread messages.
4510
+ * @default false
4511
+ */
4512
+ startFromUnreadMessages?: boolean;
4501
4513
  /**
4502
4514
  * Unique identifier of the parent message for displaying threaded conversations.
4503
4515
  */
@@ -4538,7 +4550,7 @@ interface MessageListProps {
4538
4550
  scrollToBottomOnNewMessages?: boolean;
4539
4551
  /**
4540
4552
  * Specifies how many message options are visible in the main menu by default.
4541
- * @default 2
4553
+ * @default 3
4542
4554
  */
4543
4555
  quickOptionsCount?: number;
4544
4556
  /**
@@ -4946,6 +4958,7 @@ declare class CometChatUIKitConstants {
4946
4958
  translateMessage: "translate";
4947
4959
  reactToMessage: "react";
4948
4960
  messageInformation: "messageInformation";
4961
+ markAsUnread: "markAsUnread";
4949
4962
  flagMessage: "flagMessage";
4950
4963
  copyMessage: "copy";
4951
4964
  shareMessage: "share";
@@ -5149,6 +5162,8 @@ declare class CometChatCallEvents {
5149
5162
  */
5150
5163
  declare class CometChatConversationEvents {
5151
5164
  static ccConversationDeleted: Subject<CometChat.Conversation>;
5165
+ static ccUpdateConversation: Subject<CometChat.Conversation>;
5166
+ static ccMarkConversationAsRead: Subject<CometChat.Conversation>;
5152
5167
  /**
5153
5168
  * Publishes a conversation event.
5154
5169
  * @param {Subject<CometChat.Conversation>} event - The event to publish.