sceyt-chat-react-uikit 1.6.8 → 1.6.9

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IContactsMap } from '../types';
2
+ import { IContactsMap, IUser } from '../types';
3
3
  declare const MessageStatusIcon: ({ messageStatus, messageStatusDisplayingType, color, readIconColor, size, accentColor }: {
4
4
  messageStatus: string;
5
5
  messageStatusDisplayingType?: string | undefined;
@@ -8,7 +8,7 @@ declare const MessageStatusIcon: ({ messageStatus, messageStatusDisplayingType,
8
8
  readIconColor?: string | undefined;
9
9
  accentColor?: string | undefined;
10
10
  }) => React.JSX.Element;
11
- declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary }: {
11
+ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention }: {
12
12
  text: string;
13
13
  message: any;
14
14
  contactsMap?: IContactsMap | undefined;
@@ -17,5 +17,7 @@ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts,
17
17
  asSampleText?: boolean | undefined;
18
18
  accentColor: string;
19
19
  textSecondary: string;
20
+ onMentionNameClick?: ((user: IUser) => void) | undefined;
21
+ shouldOpenUserProfileForMention?: boolean | undefined;
20
22
  }) => any;
21
23
  export { MessageStatusIcon, MessageTextFormat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -158,6 +158,7 @@ export interface IChannel {
158
158
  members: IMember[];
159
159
  newReactions: IReaction[];
160
160
  lastReactedMessage?: IMessage;
161
+ mentionsIds?: string[];
161
162
  delete: () => Promise<void>;
162
163
  deleteAllMessages: (forEveryone?: boolean) => Promise<void>;
163
164
  hide: () => Promise<boolean>;