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.
- package/assets/svg/arrowDown.svg +3 -0
- package/components/Attachment/index.d.ts +2 -1
- package/components/AudioRecord/index.d.ts +2 -1
- package/components/Avatar/index.d.ts +1 -0
- package/components/Channel/index.d.ts +3 -0
- package/components/ChannelDetails/DetailsTab/Voices/voiceItem.d.ts +2 -1
- package/components/ChannelList/ContactItem/index.d.ts +1 -0
- package/components/ChatContainer/index.d.ts +2 -2
- package/components/Message/Message.types.d.ts +2 -0
- package/components/Message/MessageBody/index.d.ts +3 -1
- package/components/Message/OGMetadata/index.d.ts +7 -0
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +5 -2
- package/components/Messages/index.d.ts +1 -0
- package/components/MessagesScrollToBottomButton/index.d.ts +1 -0
- package/components/MessagesScrollToUnreadMentionsButton/index.d.ts +21 -0
- package/components/index.d.ts +3 -1
- package/index.js +8622 -6807
- package/index.modern.js +8623 -6809
- package/messageUtils/index.d.ts +4 -2
- package/package.json +1 -1
- package/types/index.d.ts +23 -0
package/messageUtils/index.d.ts
CHANGED
|
@@ -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
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 {
|