sceyt-chat-react-uikit 1.6.8 → 1.6.9-beta.10

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-beta.10",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -79,6 +79,7 @@ export interface IMessage {
79
79
  tid?: string;
80
80
  body: string;
81
81
  user: IUser;
82
+ channelId: string;
82
83
  createdAt: Date;
83
84
  updatedAt?: Date;
84
85
  type: string;
@@ -158,6 +159,7 @@ export interface IChannel {
158
159
  members: IMember[];
159
160
  newReactions: IReaction[];
160
161
  lastReactedMessage?: IMessage;
162
+ mentionsIds?: string[];
161
163
  delete: () => Promise<void>;
162
164
  deleteAllMessages: (forEveryone?: boolean) => Promise<void>;
163
165
  hide: () => Promise<boolean>;
@@ -215,6 +217,27 @@ export interface IContact {
215
217
  export interface IContactsMap {
216
218
  [key: string]: IContact;
217
219
  }
220
+ export interface IOGMetadata {
221
+ id: string;
222
+ url: string;
223
+ og: {
224
+ audio: {
225
+ url: string;
226
+ }[];
227
+ description: string;
228
+ favicon: {
229
+ url: string;
230
+ };
231
+ image: {
232
+ url: string;
233
+ }[];
234
+ localeAlternate: any[];
235
+ title: string;
236
+ video: {
237
+ url: string;
238
+ }[];
239
+ };
240
+ }
218
241
  export declare type MuteTime = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 24;
219
242
  export declare type ICustomAvatarColors = [string, string, string, string, string, string];
220
243
  export interface ChannelQueryParams {