sceyt-chat-react-uikit 1.7.5-beta.9 → 1.7.6-beta.1
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/components/Message/Message.types.d.ts +3 -22
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/MessageBody/index.d.ts +4 -23
- package/components/Message/OGMetadata/index.d.ts +2 -1
- package/components/Messages/MessageList/index.d.ts +3 -17
- package/components/Messages/index.d.ts +2 -17
- package/index.js +2754 -2209
- package/index.modern.js +2754 -2209
- package/messageUtils/index.d.ts +3 -1
- package/package.json +1 -1
- package/types/index.d.ts +36 -15
package/messageUtils/index.d.ts
CHANGED
|
@@ -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, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target }: {
|
|
11
|
+
declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target, isInviteLink, onInviteLinkClick }: {
|
|
12
12
|
text: string;
|
|
13
13
|
message: any;
|
|
14
14
|
contactsMap?: IContactsMap | undefined;
|
|
@@ -21,5 +21,7 @@ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts,
|
|
|
21
21
|
shouldOpenUserProfileForMention?: boolean | undefined;
|
|
22
22
|
unsupportedMessage?: boolean | undefined;
|
|
23
23
|
target?: string | undefined;
|
|
24
|
+
isInviteLink?: boolean | undefined;
|
|
25
|
+
onInviteLinkClick?: ((key: string) => void) | undefined;
|
|
24
26
|
}) => any;
|
|
25
27
|
export { MessageStatusIcon, MessageTextFormat };
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -108,6 +108,17 @@ export interface IPollVote {
|
|
|
108
108
|
createdAt: number;
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
+
export interface IChangedVotes {
|
|
112
|
+
addedVotes: IPollVote[];
|
|
113
|
+
removedVotes: IPollVote[];
|
|
114
|
+
}
|
|
115
|
+
export interface IVoteDetails {
|
|
116
|
+
votesPerOption: {
|
|
117
|
+
[key: string]: number;
|
|
118
|
+
};
|
|
119
|
+
votes: IPollVote[];
|
|
120
|
+
ownVotes: IPollVote[];
|
|
121
|
+
}
|
|
111
122
|
export interface IPollDetails {
|
|
112
123
|
id: string;
|
|
113
124
|
name: string;
|
|
@@ -116,26 +127,13 @@ export interface IPollDetails {
|
|
|
116
127
|
anonymous: boolean;
|
|
117
128
|
allowMultipleVotes: boolean;
|
|
118
129
|
allowVoteRetract: boolean;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
votes: IPollVote[];
|
|
123
|
-
ownVotes: IPollVote[];
|
|
130
|
+
changedVotes?: IChangedVotes;
|
|
131
|
+
voteDetails: IVoteDetails;
|
|
124
132
|
createdAt: number;
|
|
125
133
|
updatedAt: number;
|
|
126
134
|
closedAt: number;
|
|
127
135
|
closed: boolean;
|
|
128
136
|
}
|
|
129
|
-
export interface IPollVoteParams {
|
|
130
|
-
channelId: string;
|
|
131
|
-
messageId: string;
|
|
132
|
-
pollId: string;
|
|
133
|
-
optionId: string[];
|
|
134
|
-
}
|
|
135
|
-
export interface IPollUpdateParams {
|
|
136
|
-
channelId: string;
|
|
137
|
-
pollId: string;
|
|
138
|
-
}
|
|
139
137
|
export interface IMessage {
|
|
140
138
|
id: string;
|
|
141
139
|
tid?: string;
|
|
@@ -325,4 +323,27 @@ export interface ILabels {
|
|
|
325
323
|
receivedBy?: string;
|
|
326
324
|
displayedBy?: string;
|
|
327
325
|
}
|
|
326
|
+
export interface OGMetadataProps {
|
|
327
|
+
maxWidth?: number;
|
|
328
|
+
maxHeight?: number;
|
|
329
|
+
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
330
|
+
ogShowUrl?: boolean;
|
|
331
|
+
ogShowTitle?: boolean;
|
|
332
|
+
ogShowDescription?: boolean;
|
|
333
|
+
ogShowFavicon?: boolean;
|
|
334
|
+
order?: {
|
|
335
|
+
image?: number;
|
|
336
|
+
title?: number;
|
|
337
|
+
description?: number;
|
|
338
|
+
link?: number;
|
|
339
|
+
};
|
|
340
|
+
ogContainerBorderRadius?: string | number;
|
|
341
|
+
ogContainerPadding?: string;
|
|
342
|
+
ogContainerClassName?: string;
|
|
343
|
+
ogContainerShowBackground?: boolean;
|
|
344
|
+
ogContainerBackground?: string;
|
|
345
|
+
infoPadding?: string;
|
|
346
|
+
isInviteLink?: boolean;
|
|
347
|
+
target?: string;
|
|
348
|
+
}
|
|
328
349
|
export {};
|