sceyt-chat-react-uikit 1.7.5-beta.8 → 1.7.5
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/dots_vertica.svg +8 -0
- package/assets/svg/endVote.svg +4 -0
- package/assets/svg/filled-checkbox.svg +3 -0
- package/assets/svg/poll.svg +3 -0
- package/assets/svg/retractVote.svg +4 -0
- package/components/Avatar/index.d.ts +2 -2
- package/components/Channel/index.d.ts +3 -1
- package/components/Message/Message.types.d.ts +9 -22
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/MessageBody/index.d.ts +8 -23
- package/components/Message/OGMetadata/index.d.ts +2 -1
- package/components/Message/PollMessage/index.d.ts +7 -0
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +9 -17
- package/components/Messages/index.d.ts +8 -17
- package/components/SendMessageInput/Poll/CreatePollPopup.d.ts +18 -0
- package/components/SendMessageInput/index.d.ts +9 -0
- package/components/index.d.ts +2 -1
- package/index.js +7152 -4282
- package/index.modern.js +7152 -4283
- package/messageUtils/index.d.ts +3 -1
- package/package.json +1 -1
- package/types/index.d.ts +78 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.5 3C6.5 3.82843 5.82843 4.5 5 4.5C4.17157 4.5 3.5 3.82843 3.5 3C3.5 2.17157 4.17157 1.5 5 1.5C5.82843 1.5 6.5 2.17157 6.5 3Z" fill="#757D8B"/>
|
|
3
|
+
<path d="M6.5 8C6.5 8.82843 5.82843 9.5 5 9.5C4.17157 9.5 3.5 8.82843 3.5 8C3.5 7.17157 4.17157 6.5 5 6.5C5.82843 6.5 6.5 7.17157 6.5 8Z" fill="#757D8B"/>
|
|
4
|
+
<path d="M6.5 13C6.5 13.8284 5.82843 14.5 5 14.5C4.17157 14.5 3.5 13.8284 3.5 13C3.5 12.1716 4.17157 11.5 5 11.5C5.82843 11.5 6.5 12.1716 6.5 13Z" fill="#757D8B"/>
|
|
5
|
+
<path d="M12.5 3C12.5 3.82843 11.8284 4.5 11 4.5C10.1716 4.5 9.5 3.82843 9.5 3C9.5 2.17157 10.1716 1.5 11 1.5C11.8284 1.5 12.5 2.17157 12.5 3Z" fill="#757D8B"/>
|
|
6
|
+
<path d="M12.5 8C12.5 8.82843 11.8284 9.5 11 9.5C10.1716 9.5 9.5 8.82843 9.5 8C9.5 7.17157 10.1716 6.5 11 6.5C11.8284 6.5 12.5 7.17157 12.5 8Z" fill="#757D8B"/>
|
|
7
|
+
<path d="M12.5 13C12.5 13.8284 11.8284 14.5 11 14.5C10.1716 14.5 9.5 13.8284 9.5 13C9.5 12.1716 10.1716 11.5 11 11.5C11.8284 11.5 12.5 12.1716 12.5 13Z" fill="#757D8B"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.2649 6.8024C11.5707 6.49662 12.0663 6.49662 12.3721 6.8024C12.6779 7.10818 12.6779 7.60383 12.3721 7.90961L8.77061 11.5111C8.46483 11.8169 7.96918 11.8169 7.66339 11.5111L5.62713 9.47561C5.32154 9.16995 5.32174 8.67419 5.62713 8.3684C5.93291 8.06262 6.42933 8.06262 6.73511 8.3684L8.217 9.85029L11.2649 6.8024Z" fill="#818C99"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.9873 1.875C11.7279 1.87499 12.3313 1.87477 12.821 1.91476C13.3263 1.95605 13.7793 2.04396 14.2011 2.25885C14.8641 2.59666 15.4033 3.13587 15.7411 3.79886C15.956 4.22069 16.0439 4.6737 16.0852 5.17905C16.1252 5.6687 16.125 6.2721 16.125 7.01268V10.9873C16.125 11.7279 16.1252 12.3313 16.0852 12.821C16.0439 13.3263 15.956 13.7793 15.7411 14.2011C15.4033 14.8641 14.8641 15.4033 14.2011 15.7411C13.7793 15.956 13.3263 16.0439 12.821 16.0852C12.3313 16.1252 11.7279 16.125 10.9873 16.125H7.01268C6.2721 16.125 5.6687 16.1252 5.17905 16.0852C4.6737 16.0439 4.22069 15.956 3.79886 15.7411C3.13587 15.4033 2.59666 14.8641 2.25885 14.2011C2.04396 13.7793 1.95605 13.3263 1.91476 12.821C1.87477 12.3313 1.87499 11.7279 1.875 10.9873V7.01268C1.87499 6.2721 1.87477 5.6687 1.91476 5.17905C1.95605 4.6737 2.04396 4.22069 2.25885 3.79886C2.59666 3.13587 3.13587 2.59666 3.79886 2.25885C4.22069 2.04396 4.6737 1.95605 5.17905 1.91476C5.6687 1.87477 6.2721 1.87499 7.01268 1.875H10.9873ZM7.0425 3.441C6.26214 3.441 5.72368 3.44128 5.30598 3.47541C4.8976 3.5088 4.67349 3.57064 4.50922 3.65434C4.14117 3.84196 3.84196 4.14117 3.65434 4.50922C3.57064 4.67349 3.5088 4.8976 3.47541 5.30598C3.44128 5.72368 3.441 6.26214 3.441 7.0425V10.9575C3.441 11.7379 3.44128 12.2763 3.47541 12.694C3.5088 13.1024 3.57064 13.3265 3.65434 13.4908C3.84196 13.8588 4.14117 14.158 4.50922 14.3457C4.67349 14.4294 4.8976 14.4912 5.30598 14.5246C5.72368 14.5587 6.26214 14.559 7.0425 14.559H10.9575C11.7379 14.559 12.2763 14.5587 12.694 14.5246C13.1024 14.4912 13.3265 14.4294 13.4908 14.3457C13.8588 14.158 14.158 13.8588 14.3457 13.4908C14.4294 13.3265 14.4912 13.1024 14.5246 12.694C14.5587 12.2763 14.559 11.7379 14.559 10.9575V7.0425C14.559 6.26214 14.5587 5.72368 14.5246 5.30598C14.4912 4.8976 14.4294 4.67349 14.3457 4.50922C14.158 4.14117 13.8588 3.84196 13.4908 3.65434C13.3265 3.57064 13.1024 3.5088 12.694 3.47541C12.2763 3.44128 11.7379 3.441 10.9575 3.441H7.0425Z" fill="#818C99"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.16699 0C14.2295 0.000176264 18.333 4.10449 18.333 9.16699C18.3328 14.2293 14.2293 18.3328 9.16699 18.333C4.10449 18.333 0.000176268 14.2295 0 9.16699C0 4.10438 4.10438 0 9.16699 0ZM13.957 5.9043C13.6316 5.57903 13.1037 5.57892 12.7783 5.9043L7.6377 11.043L5.55371 8.95898C5.22837 8.63429 4.70125 8.63418 4.37598 8.95898C4.05083 9.28438 4.05079 9.81232 4.37598 10.1377L7.04883 12.8115C7.37417 13.1369 7.90208 13.1367 8.22754 12.8115L13.957 7.08203C14.2821 6.75666 14.2821 6.22967 13.957 5.9043Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4.5 6.00037C5.32843 6.00037 6 6.67194 6 7.50037V13.5004C6 14.3288 5.32843 15.0004 4.5 15.0004C3.67157 15.0004 3 14.3288 3 13.5004V7.50037C3 6.67194 3.67157 6.00037 4.5 6.00037ZM13.5 8.25037C14.3284 8.25037 15 8.92194 15 9.75037V13.5004C15 14.3288 14.3284 15.0004 13.5 15.0004C12.6716 15.0004 12 14.3288 12 13.5004V9.75037C12 8.92194 12.6716 8.25037 13.5 8.25037ZM9 1.50037C9.82843 1.50037 10.5 2.17194 10.5 3.00037V13.5004C10.5 14.3288 9.82843 15.0004 9 15.0004C8.17157 15.0004 7.5 14.3288 7.5 13.5004V3.00037C7.5 2.17194 8.17157 1.50037 9 1.50037Z" fill="#818C99"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.9983 1.875C11.7436 1.87499 12.3485 1.87492 12.8389 1.91498C13.3446 1.9563 13.7944 2.04359 14.2121 2.25635C14.6161 2.46222 14.974 2.74364 15.2677 3.08211C15.5384 3.39403 15.505 3.86622 15.1931 4.13698C14.8812 4.40769 14.409 4.37428 14.1383 4.0624C13.97 3.86844 13.7647 3.70751 13.5332 3.58955C13.3615 3.50208 13.1306 3.43956 12.7174 3.40579C12.2955 3.37132 11.7523 3.37043 10.9683 3.37043H7.03173C6.24774 3.37043 5.70455 3.37132 5.28258 3.40579C4.86944 3.43956 4.6385 3.50208 4.46682 3.58955C4.08912 3.78202 3.78202 4.08912 3.58955 4.46682C3.50208 4.6385 3.43956 4.86944 3.40579 5.28258C3.37132 5.70455 3.37043 6.24774 3.37043 7.03173V10.9683C3.37043 11.7523 3.37132 12.2955 3.40579 12.7174C3.43956 13.1306 3.50208 13.3615 3.58955 13.5332C3.78202 13.9109 4.08912 14.218 4.46682 14.4104C4.6385 14.4979 4.86944 14.5604 5.28258 14.5942C5.70455 14.6287 6.24774 14.6296 7.03173 14.6296H10.9683C11.7523 14.6296 12.2955 14.6287 12.7174 14.5942C13.1306 14.5604 13.3615 14.4979 13.5332 14.4104C13.9109 14.218 14.218 13.9109 14.4104 13.5332C14.493 13.3712 14.5532 13.1557 14.5881 12.7835C14.6266 12.3723 14.9918 12.07 15.403 12.1085C15.8141 12.1471 16.1164 12.5116 16.0781 12.9227C16.034 13.3941 15.9448 13.8173 15.7436 14.2121C15.4078 14.8713 14.8713 15.4078 14.2121 15.7436C13.7944 15.9564 13.3446 16.0437 12.8389 16.085C12.3485 16.1251 11.7436 16.125 10.9983 16.125H7.00174C6.25643 16.125 5.6515 16.1251 5.1611 16.085C4.65543 16.0437 4.20559 15.9564 3.78792 15.7436C3.12869 15.4078 2.59225 14.8713 2.25635 14.2121C2.04359 13.7944 1.9563 13.3446 1.91498 12.8389C1.87492 12.3485 1.87499 11.7436 1.875 10.9983V7.00174C1.87499 6.25643 1.87492 5.6515 1.91498 5.1611C1.9563 4.65543 2.04359 4.20559 2.25635 3.78792C2.59225 3.12869 3.12869 2.59225 3.78792 2.25635C4.20559 2.04359 4.65543 1.9563 5.1611 1.91498C5.6515 1.87492 6.25643 1.87499 7.00174 1.875H10.9983Z" fill="#818C99"/>
|
|
3
|
+
<path d="M15.3777 5.81155C15.7906 5.81176 16.125 6.1467 16.125 6.55965V8.21269C16.125 9.49525 15.0856 10.5352 13.8031 10.5354H8.40644L9.59894 11.691C9.89562 11.9784 9.90326 12.4515 9.61585 12.7482C9.32848 13.0448 8.85537 13.0524 8.55868 12.7651L6.03913 10.3247C5.89371 10.1839 5.81157 9.98977 5.81155 9.78731C5.81154 9.58483 5.89371 9.39077 6.03913 9.24988L8.55868 6.80953C8.85529 6.52216 9.32841 6.52918 9.61585 6.82567C9.90328 7.12235 9.89562 7.59619 9.59894 7.88362L8.40644 9.03921H13.8031C14.2594 9.039 14.6295 8.66909 14.6296 8.21269V6.55965C14.6296 6.14657 14.9646 5.81155 15.3777 5.81155Z" fill="#818C99"/>
|
|
4
|
+
</svg>
|
|
@@ -4,7 +4,7 @@ interface IProps {
|
|
|
4
4
|
name: string;
|
|
5
5
|
size?: number;
|
|
6
6
|
textSize?: number;
|
|
7
|
-
marginAuto?:
|
|
7
|
+
marginAuto?: string;
|
|
8
8
|
setDefaultAvatar?: boolean;
|
|
9
9
|
DefaultAvatar?: JSX.Element;
|
|
10
10
|
DeletedIcon?: JSX.Element;
|
|
@@ -19,7 +19,7 @@ interface ContainerProps {
|
|
|
19
19
|
avatarName: string;
|
|
20
20
|
textSize?: number;
|
|
21
21
|
isImage?: boolean;
|
|
22
|
-
marginAuto?:
|
|
22
|
+
marginAuto?: string;
|
|
23
23
|
border?: string;
|
|
24
24
|
borderRadius?: string;
|
|
25
25
|
cursorPointer?: boolean;
|
|
@@ -108,7 +108,9 @@ export declare const LastMessageText: import("styled-components").StyledComponen
|
|
|
108
108
|
noBody?: boolean | undefined;
|
|
109
109
|
deletedMessage?: boolean | undefined;
|
|
110
110
|
}, never>;
|
|
111
|
-
export declare const LastMessageDescription: import("styled-components").StyledComponent<"div", any, {
|
|
111
|
+
export declare const LastMessageDescription: import("styled-components").StyledComponent<"div", any, {
|
|
112
|
+
poll?: boolean | undefined;
|
|
113
|
+
}, never>;
|
|
112
114
|
export declare const ChannelStatus: import("styled-components").StyledComponent<"div", any, {
|
|
113
115
|
color: string;
|
|
114
116
|
}, never>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab } from '../../types';
|
|
1
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ITabsStyles, IListItemStyles, ILabels, MessageInfoTab, OGMetadataProps } from '../../types';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
export interface IMessageActions {
|
|
4
4
|
message: IMessage;
|
|
5
5
|
channel: IChannel;
|
|
6
6
|
handleSetMessageForEdit?: () => void;
|
|
7
|
+
handleRetractVote?: () => void;
|
|
8
|
+
handleEndVote?: () => void;
|
|
7
9
|
handleResendMessage?: () => void;
|
|
8
10
|
handleOpenDeleteMessage?: () => void;
|
|
9
11
|
handleOpenForwardMessage?: () => void;
|
|
@@ -40,6 +42,8 @@ interface ICustomMessageItem {
|
|
|
40
42
|
messageTextRef: any;
|
|
41
43
|
emojisPopupPosition: string;
|
|
42
44
|
handleSetMessageForEdit?: () => void;
|
|
45
|
+
handleRetractVote?: () => void;
|
|
46
|
+
handleEndVote?: () => void;
|
|
43
47
|
handleResendMessage?: () => void;
|
|
44
48
|
handleOpenDeleteMessage?: () => void;
|
|
45
49
|
handleOpenForwardMessage?: () => void;
|
|
@@ -60,6 +64,7 @@ interface ICustomMessageItem {
|
|
|
60
64
|
isThreadMessage?: boolean;
|
|
61
65
|
handleOpenUserProfile: (user: IUser) => void;
|
|
62
66
|
unsupportedMessage: boolean;
|
|
67
|
+
onInviteLinkClick?: (key: string) => void;
|
|
63
68
|
}
|
|
64
69
|
export interface IMessageProps {
|
|
65
70
|
message: IMessage;
|
|
@@ -118,6 +123,8 @@ export interface IMessageProps {
|
|
|
118
123
|
starIcon?: JSX.Element;
|
|
119
124
|
staredIcon?: JSX.Element;
|
|
120
125
|
reportIcon?: JSX.Element;
|
|
126
|
+
retractVoteIcon?: JSX.Element;
|
|
127
|
+
endVoteIcon?: JSX.Element;
|
|
121
128
|
openFrequentlyUsedReactions?: boolean;
|
|
122
129
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
123
130
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
@@ -195,27 +202,7 @@ export interface IMessageProps {
|
|
|
195
202
|
messageTextLineHeight?: string;
|
|
196
203
|
messageTimeColorOnAttachment?: string;
|
|
197
204
|
shouldOpenUserProfileForMention?: boolean;
|
|
198
|
-
ogMetadataProps?:
|
|
199
|
-
maxWidth?: number;
|
|
200
|
-
maxHeight?: number;
|
|
201
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
202
|
-
ogShowUrl?: boolean;
|
|
203
|
-
ogShowTitle?: boolean;
|
|
204
|
-
ogShowDescription?: boolean;
|
|
205
|
-
ogShowFavicon?: boolean;
|
|
206
|
-
order?: {
|
|
207
|
-
image?: number;
|
|
208
|
-
title?: number;
|
|
209
|
-
description?: number;
|
|
210
|
-
link?: number;
|
|
211
|
-
};
|
|
212
|
-
ogContainerBorderRadius?: string | number;
|
|
213
|
-
ogContainerPadding?: string;
|
|
214
|
-
ogContainerClassName?: string;
|
|
215
|
-
ogContainerShowBackground?: boolean;
|
|
216
|
-
ogContainerBackground?: string;
|
|
217
|
-
infoPadding?: string;
|
|
218
|
-
};
|
|
205
|
+
ogMetadataProps?: OGMetadataProps;
|
|
219
206
|
showInfoMessageProps?: {
|
|
220
207
|
togglePopup?: () => void;
|
|
221
208
|
labels?: ILabels;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function MessageActions({ editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, deleteIcon, selectIcon, infoIcon, allowEditDeleteIncomingMessage, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIcon, forwardIconOrder, deleteIconOrder, selectIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, infoIconTooltipText, reportIconTooltipText, myRole, isIncoming, messageActionIconsColor, handleOpenEmojis }: any): React.JSX.Element;
|
|
2
|
+
export default function MessageActions({ isPollMessage, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, showMessageReaction, showEditMessage, showCopyMessage, showReplyMessage, showReplyMessageInThread, showForwardMessage, showDeleteMessage, showSelectMessage, showReportMessage, showInfoMessage, infoIconOrder, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, retractVoteIcon, endVoteIcon, deleteIcon, selectIcon, infoIcon, allowEditDeleteIncomingMessage, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIcon, forwardIconOrder, deleteIconOrder, selectIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, infoIconTooltipText, reportIconTooltipText, myRole, isIncoming, messageActionIconsColor, handleOpenEmojis }: any): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMessage, IUser } from 'types';
|
|
2
|
+
import { IAttachment, IChannel, IMessage, IUser, OGMetadataProps } from 'types';
|
|
3
3
|
import { IMessageActions, IMessageStyles } from '../Message.types';
|
|
4
4
|
interface IMessageBodyProps {
|
|
5
5
|
message: IMessage;
|
|
@@ -52,6 +52,8 @@ interface IMessageBodyProps {
|
|
|
52
52
|
starIcon?: JSX.Element;
|
|
53
53
|
staredIcon?: JSX.Element;
|
|
54
54
|
reportIcon?: JSX.Element;
|
|
55
|
+
retractVoteIcon?: JSX.Element;
|
|
56
|
+
endVoteIcon?: JSX.Element;
|
|
55
57
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
56
58
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
57
59
|
emojisContainerBorderRadius?: string;
|
|
@@ -109,6 +111,8 @@ interface IMessageBodyProps {
|
|
|
109
111
|
messageTextLineHeight?: string;
|
|
110
112
|
messageActionsShow?: boolean;
|
|
111
113
|
setMessageActionsShow: (state: boolean) => void;
|
|
114
|
+
handleRetractVote: () => void;
|
|
115
|
+
handleEndVote: () => void;
|
|
112
116
|
closeMessageActions: () => void;
|
|
113
117
|
handleToggleForwardMessagePopup: () => void;
|
|
114
118
|
handleToggleInfoMessagePopupOpen: () => void;
|
|
@@ -132,28 +136,9 @@ interface IMessageBodyProps {
|
|
|
132
136
|
messageTextRef: React.RefObject<HTMLSpanElement>;
|
|
133
137
|
handleOpenUserProfile: (user: IUser) => void;
|
|
134
138
|
shouldOpenUserProfileForMention?: boolean;
|
|
135
|
-
ogMetadataProps?:
|
|
136
|
-
maxWidth?: number;
|
|
137
|
-
maxHeight?: number;
|
|
138
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
139
|
-
ogShowUrl?: boolean;
|
|
140
|
-
ogShowTitle?: boolean;
|
|
141
|
-
ogShowDescription?: boolean;
|
|
142
|
-
ogShowFavicon?: boolean;
|
|
143
|
-
order?: {
|
|
144
|
-
image?: number;
|
|
145
|
-
title?: number;
|
|
146
|
-
description?: number;
|
|
147
|
-
link?: number;
|
|
148
|
-
};
|
|
149
|
-
ogContainerBorderRadius?: string | number;
|
|
150
|
-
ogContainerPadding?: string;
|
|
151
|
-
ogContainerClassName?: string;
|
|
152
|
-
ogContainerShowBackground?: boolean;
|
|
153
|
-
ogContainerBackground?: string;
|
|
154
|
-
infoPadding?: string;
|
|
155
|
-
};
|
|
139
|
+
ogMetadataProps?: OGMetadataProps;
|
|
156
140
|
unsupportedMessage: boolean;
|
|
141
|
+
onInviteLinkClick?: (key: string) => void;
|
|
157
142
|
}
|
|
158
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, isUnreadMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, infoIcon, selectIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, infoIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, messageTimeColorOnAttachment, fileAttachmentsIcon, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, selectedMessagesMap, contactsMap, theme, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention, ogMetadataProps, unsupportedMessage }: IMessageBodyProps) => React.JSX.Element>;
|
|
143
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, isUnreadMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, infoIcon, selectIcon, retractVoteIcon, endVoteIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, infoIconOrder, selectIconOrder, starIconOrder, reportIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, messageTimeColorOnAttachment, fileAttachmentsIcon, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, selectedMessagesMap, contactsMap, theme, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, handleRetractVote, handleEndVote, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention, ogMetadataProps, unsupportedMessage, onInviteLinkClick }: IMessageBodyProps) => React.JSX.Element>;
|
|
159
144
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAttachment } from '../../../types';
|
|
3
|
-
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, metadataGetSuccessCallback }: {
|
|
3
|
+
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, isInviteLink, metadataGetSuccessCallback }: {
|
|
4
4
|
attachments: IAttachment[];
|
|
5
5
|
state: string;
|
|
6
6
|
incoming: boolean;
|
|
@@ -24,6 +24,7 @@ declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitl
|
|
|
24
24
|
infoPadding?: string | undefined;
|
|
25
25
|
ogContainerMargin?: string | undefined;
|
|
26
26
|
target?: string | undefined;
|
|
27
|
+
isInviteLink?: boolean | undefined;
|
|
27
28
|
metadataGetSuccessCallback?: ((url: string, success: boolean, hasImage: boolean) => void) | undefined;
|
|
28
29
|
}) => React.JSX.Element;
|
|
29
30
|
export { OGMetadata };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMessageProps } from './Message.types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, prevMessage, nextMessage, setLastVisibleMessageId, isUnreadMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, messageWidthPercent, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showOwnAvatar, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, hoverBackground, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, selectIcon, starIcon, staredIcon, reportIcon, reactionIconOrder, openFrequentlyUsedReactions, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, selectIconOrder, starIconOrder, reportIconOrder, infoIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, fileAttachmentsIcon, reactionsDisplayCount, showEachReactionCount, showTotalReactionCount, reactionItemBorder, reactionItemBorderRadius, reactionItemBackground, reactionItemPadding, reactionItemMargin, reactionsFontSize, reactionsContainerBoxShadow, reactionsContainerBorder, reactionsContainerBorderRadius, reactionsContainerBackground, reactionsContainerPadding, reactionsContainerTopPosition, reactionsDetailsPopupBorderRadius, reactionsDetailsPopupHeaderItemsStyle, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, sameUserMessageSpacing, differentUserMessageSpacing, selectedMessagesMap, contactsMap, openedMessageMenuId, tabIsActive, connectionStatus, theme, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, ogMetadataProps, showInfoMessageProps }: IMessageProps) => React.JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, CustomMessageItem, handleScrollToRepliedMessage, handleMediaItemClick, stopScrolling, isPendingMessage, prevMessage, nextMessage, setLastVisibleMessageId, isUnreadMessage, unreadMessageId, isThreadMessage, fontFamily, ownMessageOnRightSide, messageWidthPercent, showSenderNameOnDirectChannel, showSenderNameOnGroupChannel, showSenderNameOnOwnMessages, messageStatusAndTimePosition, messageStatusDisplayingType, outgoingMessageStyles, incomingMessageStyles, ownRepliedMessageBackground, incomingRepliedMessageBackground, showOwnAvatar, showMessageStatus, showMessageTimeAndStatusOnlyOnHover, showMessageTime, showMessageStatusForEachMessage, showMessageTimeForEachMessage, hoverBackground, messageReaction, editMessage, copyMessage, replyMessage, replyMessageInThread, deleteMessage, selectMessage, showInfoMessage, allowEditDeleteIncomingMessage, forwardMessage, reportMessage, reactionIcon, editIcon, copyIcon, replyIcon, replyInThreadIcon, forwardIcon, deleteIcon, selectIcon, starIcon, staredIcon, reportIcon, retractVoteIcon, endVoteIcon, reactionIconOrder, openFrequentlyUsedReactions, editIconOrder, copyIconOrder, replyIconOrder, replyInThreadIconOrder, forwardIconOrder, deleteIconOrder, selectIconOrder, starIconOrder, reportIconOrder, infoIconOrder, reactionIconTooltipText, editIconTooltipText, copyIconTooltipText, replyIconTooltipText, replyInThreadIconTooltipText, forwardIconTooltipText, deleteIconTooltipText, selectIconTooltipText, starIconTooltipText, reportIconTooltipText, infoIconTooltipText, messageActionIconsColor, messageStatusSize, messageStatusColor, messageReadStatusColor, messageStateFontSize, messageStateColor, messageTimeFontSize, messageTimeColor, messageStatusAndTimeLineHeight, fileAttachmentsIcon, reactionsDisplayCount, showEachReactionCount, showTotalReactionCount, reactionItemBorder, reactionItemBorderRadius, reactionItemBackground, reactionItemPadding, reactionItemMargin, reactionsFontSize, reactionsContainerBoxShadow, reactionsContainerBorder, reactionsContainerBorderRadius, reactionsContainerBackground, reactionsContainerPadding, reactionsContainerTopPosition, reactionsDetailsPopupBorderRadius, reactionsDetailsPopupHeaderItemsStyle, fileAttachmentsBoxWidth, fileAttachmentsBoxBorder, fileAttachmentsTitleColor, fileAttachmentsSizeColor, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, emojisCategoryIconsPosition, emojisContainerBorderRadius, fixEmojiCategoriesTitleOnTop, sameUserMessageSpacing, differentUserMessageSpacing, selectedMessagesMap, contactsMap, openedMessageMenuId, tabIsActive, connectionStatus, theme, messageTextFontSize, messageTextLineHeight, messageTimeColorOnAttachment, shouldOpenUserProfileForMention, ogMetadataProps, showInfoMessageProps }: IMessageProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles } from '../../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -33,6 +33,8 @@ interface MessagesProps {
|
|
|
33
33
|
handleReportMessage?: () => void;
|
|
34
34
|
handleOpenEmojis?: () => void;
|
|
35
35
|
handleReplyMessage?: () => void;
|
|
36
|
+
handleRetractVote?: () => void;
|
|
37
|
+
handleEndVote?: () => void;
|
|
36
38
|
isThreadMessage?: boolean;
|
|
37
39
|
rtlDirection?: boolean;
|
|
38
40
|
}>;
|
|
@@ -50,6 +52,8 @@ interface MessagesProps {
|
|
|
50
52
|
messageTextRef: any;
|
|
51
53
|
emojisPopupPosition: string;
|
|
52
54
|
handleSetMessageForEdit?: () => void;
|
|
55
|
+
handleRetractVote?: () => void;
|
|
56
|
+
handleEndVote?: () => void;
|
|
53
57
|
handleResendMessage?: () => void;
|
|
54
58
|
handleOpenDeleteMessage?: () => void;
|
|
55
59
|
handleOpenForwardMessage?: () => void;
|
|
@@ -69,6 +73,7 @@ interface MessagesProps {
|
|
|
69
73
|
handleOpenUserProfile: (user: IUser) => void;
|
|
70
74
|
isThreadMessage?: boolean;
|
|
71
75
|
unsupportedMessage: boolean;
|
|
76
|
+
onInviteLinkClick?: (key: string) => void;
|
|
72
77
|
}>;
|
|
73
78
|
messageReaction?: boolean;
|
|
74
79
|
editMessage?: boolean;
|
|
@@ -90,6 +95,8 @@ interface MessagesProps {
|
|
|
90
95
|
starIcon?: JSX.Element;
|
|
91
96
|
staredIcon?: JSX.Element;
|
|
92
97
|
reportIcon?: JSX.Element;
|
|
98
|
+
retractVoteIcon?: JSX.Element;
|
|
99
|
+
endVoteIcon?: JSX.Element;
|
|
93
100
|
messageStatusSize?: string;
|
|
94
101
|
messageStatusColor?: string;
|
|
95
102
|
messageReadStatusColor?: string;
|
|
@@ -196,22 +203,7 @@ interface MessagesProps {
|
|
|
196
203
|
tabsStyles?: ITabsStyles;
|
|
197
204
|
listItemStyles?: IListItemStyles;
|
|
198
205
|
};
|
|
199
|
-
ogMetadataProps?:
|
|
200
|
-
maxWidth?: number;
|
|
201
|
-
maxHeight?: number;
|
|
202
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
203
|
-
ogShowUrl?: boolean;
|
|
204
|
-
ogShowTitle?: boolean;
|
|
205
|
-
ogShowDescription?: boolean;
|
|
206
|
-
ogShowFavicon?: boolean;
|
|
207
|
-
order?: {
|
|
208
|
-
image?: number;
|
|
209
|
-
title?: number;
|
|
210
|
-
description?: number;
|
|
211
|
-
link?: number;
|
|
212
|
-
};
|
|
213
|
-
infoPadding?: string;
|
|
214
|
-
};
|
|
206
|
+
ogMetadataProps?: OGMetadataProps;
|
|
215
207
|
}
|
|
216
208
|
declare const MessageList: React.FC<MessagesProps>;
|
|
217
209
|
export default MessageList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles } from '../../types';
|
|
2
|
+
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../types';
|
|
3
3
|
import { IAttachmentProperties, IMessageStyles } from '../Message/Message.types';
|
|
4
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
5
5
|
interface MessagesProps {
|
|
@@ -33,6 +33,8 @@ interface MessagesProps {
|
|
|
33
33
|
handleOpenEmojis?: () => void;
|
|
34
34
|
handleSelectMessage?: () => void;
|
|
35
35
|
handleReplyMessage?: () => void;
|
|
36
|
+
handleRetractVote?: () => void;
|
|
37
|
+
handleEndVote?: () => void;
|
|
36
38
|
isThreadMessage?: boolean;
|
|
37
39
|
rtlDirection?: boolean;
|
|
38
40
|
}>;
|
|
@@ -67,6 +69,8 @@ interface MessagesProps {
|
|
|
67
69
|
handleScrollToRepliedMessage: (messageId: string) => void;
|
|
68
70
|
handleMediaItemClick?: (attachment: IAttachment) => void;
|
|
69
71
|
isThreadMessage?: boolean;
|
|
72
|
+
handleRetractVote?: () => void;
|
|
73
|
+
handleEndVote?: () => void;
|
|
70
74
|
}>;
|
|
71
75
|
showOwnAvatar?: boolean;
|
|
72
76
|
messageReaction?: boolean;
|
|
@@ -90,6 +94,8 @@ interface MessagesProps {
|
|
|
90
94
|
starIcon?: JSX.Element;
|
|
91
95
|
staredIcon?: JSX.Element;
|
|
92
96
|
reportIcon?: JSX.Element;
|
|
97
|
+
retractVoteIcon?: JSX.Element;
|
|
98
|
+
endVoteIcon?: JSX.Element;
|
|
93
99
|
openFrequentlyUsedReactions?: boolean;
|
|
94
100
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
95
101
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
@@ -195,22 +201,7 @@ interface MessagesProps {
|
|
|
195
201
|
tabsStyles?: ITabsStyles;
|
|
196
202
|
listItemStyles?: IListItemStyles;
|
|
197
203
|
};
|
|
198
|
-
ogMetadataProps?:
|
|
199
|
-
maxWidth?: number;
|
|
200
|
-
maxHeight?: number;
|
|
201
|
-
ogLayoutOrder?: 'link-first' | 'og-first';
|
|
202
|
-
ogShowUrl?: boolean;
|
|
203
|
-
ogShowTitle?: boolean;
|
|
204
|
-
ogShowDescription?: boolean;
|
|
205
|
-
ogShowFavicon?: boolean;
|
|
206
|
-
order?: {
|
|
207
|
-
image?: number;
|
|
208
|
-
title?: number;
|
|
209
|
-
description?: number;
|
|
210
|
-
link?: number;
|
|
211
|
-
};
|
|
212
|
-
infoPadding?: string;
|
|
213
|
-
};
|
|
204
|
+
ogMetadataProps?: OGMetadataProps;
|
|
214
205
|
}
|
|
215
206
|
declare const MessagesContainer: React.FC<MessagesProps>;
|
|
216
207
|
export default MessagesContainer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IPollOption {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
interface IProps {
|
|
7
|
+
togglePopup: () => void;
|
|
8
|
+
onCreate?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
|
|
9
|
+
name: string;
|
|
10
|
+
options: IPollOption[];
|
|
11
|
+
anonymous: boolean;
|
|
12
|
+
allowMultipleVotes: boolean;
|
|
13
|
+
allowVoteRetract: boolean;
|
|
14
|
+
id: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const CreatePollPopup: ({ togglePopup, onCreate }: IProps) => React.JSX.Element;
|
|
18
|
+
export default CreatePollPopup;
|
|
@@ -68,6 +68,15 @@ interface SendMessageProps {
|
|
|
68
68
|
placeholderText?: string;
|
|
69
69
|
placeholderTextColor?: string;
|
|
70
70
|
audioRecordingMaxDuration?: number;
|
|
71
|
+
pollOptions?: {
|
|
72
|
+
showAddPoll?: boolean;
|
|
73
|
+
choosePollText?: string;
|
|
74
|
+
pollOptions?: {
|
|
75
|
+
id: string;
|
|
76
|
+
text: string;
|
|
77
|
+
votes: number;
|
|
78
|
+
}[];
|
|
79
|
+
};
|
|
71
80
|
}
|
|
72
81
|
declare const SendMessageInput: React.FC<SendMessageProps>;
|
|
73
82
|
export default SendMessageInput;
|
package/components/index.d.ts
CHANGED
|
@@ -17,9 +17,10 @@ import FrequentlyEmojis from './Emojis/frequentlyEmojis';
|
|
|
17
17
|
import DropDown from '../common/dropdown';
|
|
18
18
|
import { THEME_COLORS } from '../UIHelper/constants';
|
|
19
19
|
import { OGMetadata } from './Message/OGMetadata';
|
|
20
|
+
import PollMessage from './Message/PollMessage';
|
|
20
21
|
import { createOrGetDirectChannel, switchChannelActiveChannel, handleSendMessage, handleGetMessage } from 'helpers/methods';
|
|
21
22
|
import { MESSAGE_TYPE } from 'types/enum';
|
|
22
|
-
export { SceytChat, ChannelList, Channel, Chat, ChatHeader, MessageList, SendMessage, ChannelDetails, MessagesScrollToBottomButton, MessagesScrollToUnreadMentionsButton, CreateChannel, ChannelSearch, Avatar, DropDown, Attachment, OGMetadata, EmojisPopup, FrequentlyEmojis, SceytChatUIKitTheme, ThemeMode, THEME_COLORS, MESSAGE_TYPE, handleSendMessage, handleGetMessage, createOrGetDirectChannel, switchChannelActiveChannel };
|
|
23
|
+
export { SceytChat, ChannelList, Channel, Chat, ChatHeader, MessageList, SendMessage, ChannelDetails, MessagesScrollToBottomButton, MessagesScrollToUnreadMentionsButton, CreateChannel, ChannelSearch, Avatar, DropDown, Attachment, PollMessage, OGMetadata, EmojisPopup, FrequentlyEmojis, SceytChatUIKitTheme, ThemeMode, THEME_COLORS, MESSAGE_TYPE, handleSendMessage, handleGetMessage, createOrGetDirectChannel, switchChannelActiveChannel };
|
|
23
24
|
declare global {
|
|
24
25
|
interface Window {
|
|
25
26
|
sceytTabNotifications: any;
|