sceyt-chat-react-uikit 1.9.0-beta.5 → 1.9.0-beta.7
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/Attachment/index.d.ts +19 -1
- package/components/Message/Message.types.d.ts +8 -0
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/MessageBody/index.d.ts +5 -1
- package/components/Message/MessagePopups/index.d.ts +4 -0
- package/components/Message/hooks/useMessageState.d.ts +2 -0
- package/components/Messages/MessageList/index.d.ts +8 -0
- package/components/Messages/PinnedMessagesBanner.d.ts +6 -0
- package/components/Messages/index.d.ts +2 -0
- package/components/VideoPreview/index.d.ts +9 -0
- package/index.js +2639 -1199
- package/index.modern.js +2639 -1199
- package/package.json +1 -1
- package/types/index.d.ts +8 -0
|
@@ -17,6 +17,7 @@ interface AttachmentPops {
|
|
|
17
17
|
imageMinWidth?: string;
|
|
18
18
|
closeMessageActions?: (state: boolean) => void;
|
|
19
19
|
fileAttachmentWidth?: number;
|
|
20
|
+
fileSvgSize?: number;
|
|
20
21
|
imageAttachmentMaxWidth?: number;
|
|
21
22
|
imageAttachmentMaxHeight?: number;
|
|
22
23
|
videoAttachmentMaxWidth?: number;
|
|
@@ -28,8 +29,24 @@ interface AttachmentPops {
|
|
|
28
29
|
viewOnce?: boolean;
|
|
29
30
|
onlyVideoImage?: boolean;
|
|
30
31
|
}
|
|
31
|
-
declare const _default: React.MemoExoticComponent<({ attachment, isPreview, removeSelected, isRepliedMessage, borderRadius, handleMediaItemClick, setVideoIsReadyToSend, selectedFileAttachmentsIcon, backgroundColor, selectedFileAttachmentsBoxBorder, selectedFileAttachmentsTitleColor, selectedFileAttachmentsSizeColor, isDetailsView, imageMinWidth, closeMessageActions, fileAttachmentWidth, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, messageType, messagePlayed, channelId, incoming, viewOnce, onlyVideoImage }: AttachmentPops) => React.JSX.Element>;
|
|
32
|
+
declare const _default: React.MemoExoticComponent<({ attachment, isPreview, removeSelected, isRepliedMessage, borderRadius, handleMediaItemClick, setVideoIsReadyToSend, selectedFileAttachmentsIcon, backgroundColor, selectedFileAttachmentsBoxBorder, selectedFileAttachmentsTitleColor, selectedFileAttachmentsSizeColor, isDetailsView, imageMinWidth, closeMessageActions, fileAttachmentWidth, fileSvgSize, imageAttachmentMaxWidth, imageAttachmentMaxHeight, videoAttachmentMaxWidth, videoAttachmentMaxHeight, messageType, messagePlayed, channelId, incoming, viewOnce, onlyVideoImage }: AttachmentPops) => React.JSX.Element>;
|
|
32
33
|
export default _default;
|
|
34
|
+
export declare const AttachmentImgCont: import("styled-components").StyledComponent<"div", any, {
|
|
35
|
+
isPreview: boolean;
|
|
36
|
+
backgroundColor?: string | undefined;
|
|
37
|
+
ref?: any;
|
|
38
|
+
borderRadius?: string | undefined;
|
|
39
|
+
imgIsLoaded?: boolean | undefined;
|
|
40
|
+
isRepliedMessage?: boolean | undefined;
|
|
41
|
+
withPrefix?: boolean | undefined;
|
|
42
|
+
fitTheContainer?: boolean | undefined;
|
|
43
|
+
width?: number | undefined;
|
|
44
|
+
height?: number | undefined;
|
|
45
|
+
}, never>;
|
|
46
|
+
export declare const FileThumbnail: import("styled-components").StyledComponent<"img", any, any, never>;
|
|
47
|
+
export declare const FileThumbnailSkeleton: import("styled-components").StyledComponent<"div", any, {
|
|
48
|
+
color: string;
|
|
49
|
+
}, never>;
|
|
33
50
|
export declare const SizeProgress: import("styled-components").StyledComponent<"span", any, {
|
|
34
51
|
color: string;
|
|
35
52
|
}, never>;
|
|
@@ -42,6 +59,7 @@ export declare const AttachmentFile: import("styled-components").StyledComponent
|
|
|
42
59
|
border?: string | undefined;
|
|
43
60
|
width?: number | undefined;
|
|
44
61
|
borderColor: string;
|
|
62
|
+
fileSvgSize?: number | undefined;
|
|
45
63
|
}, never>;
|
|
46
64
|
export declare const AttachmentImg: import("styled-components").StyledComponent<"img", any, {
|
|
47
65
|
absolute?: boolean | undefined;
|
|
@@ -14,6 +14,10 @@ export interface IMessageActions {
|
|
|
14
14
|
handleOpenEmojis?: () => void;
|
|
15
15
|
handleSelectMessage?: (event?: any) => void;
|
|
16
16
|
handleReplyMessage?: () => void;
|
|
17
|
+
handleOpenPinMessage?: () => void;
|
|
18
|
+
handleUnpinMessage?: () => void;
|
|
19
|
+
pinnedMessage?: any;
|
|
20
|
+
isPinned?: boolean;
|
|
17
21
|
isThreadMessage?: boolean;
|
|
18
22
|
rtlDirection?: boolean;
|
|
19
23
|
openBelow?: boolean;
|
|
@@ -55,6 +59,10 @@ interface ICustomMessageItem {
|
|
|
55
59
|
handleOpenInfoMessage?: () => void;
|
|
56
60
|
handleOpenEmojis?: () => void;
|
|
57
61
|
handleReplyMessage?: (threadReply?: boolean) => void;
|
|
62
|
+
handleOpenPinMessage?: () => void;
|
|
63
|
+
handleUnpinMessage?: () => void;
|
|
64
|
+
pinnedMessage?: any;
|
|
65
|
+
isPinned?: boolean;
|
|
58
66
|
handleMouseEnter: () => void;
|
|
59
67
|
handleMouseLeave: () => void;
|
|
60
68
|
closeMessageActions?: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function MessageActions({ isPollMessage, allowVoteRetract, isViewOnceMessage, pollClosed, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, openBelow, 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;
|
|
2
|
+
export default function MessageActions({ isPollMessage, allowVoteRetract, isViewOnceMessage, pollClosed, editModeToggle, channel, handleResendMessage, handleOpenDeleteMessage, handleOpenForwardMessage, handleCopyMessage, handleReportMessage, messageStatus, handleSelectMessage, handleRetractVote, handleEndVote, handleReplyMessage, handleOpenInfoMessage, isThreadMessage, rtlDirection, openBelow, 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, handleOpenPinMessage, handleUnpinMessage, pinnedMessage, isPinned }: any): React.JSX.Element;
|
|
@@ -117,6 +117,10 @@ interface IMessageBodyProps {
|
|
|
117
117
|
handleToggleForwardMessagePopup: () => void;
|
|
118
118
|
handleToggleInfoMessagePopupOpen: () => void;
|
|
119
119
|
handleReplyMessage: (rely: boolean) => void;
|
|
120
|
+
handleOpenPinMessage: () => void;
|
|
121
|
+
handleUnpinMessage: () => void;
|
|
122
|
+
pinnedMessage?: any;
|
|
123
|
+
isPinned?: boolean;
|
|
120
124
|
handleToggleDeleteMessagePopup: () => void;
|
|
121
125
|
handleToggleReportPopupOpen: () => void;
|
|
122
126
|
handleResendMessage: () => void;
|
|
@@ -142,5 +146,5 @@ interface IMessageBodyProps {
|
|
|
142
146
|
ifLatestAndHasNotPreview: boolean;
|
|
143
147
|
collapsedLinesLimit?: number;
|
|
144
148
|
}
|
|
145
|
-
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, 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, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, messageActionsBelow, 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, collapsedLinesLimit, ifLatestAndHasNotPreview }: IMessageBodyProps) => React.JSX.Element>;
|
|
149
|
+
declare const _default: React.MemoExoticComponent<({ message, channel, MessageActionsMenu, handleScrollToRepliedMessage, handleMediaItemClick, isPendingMessage, prevMessage, nextMessage, 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, messageTextFontSize, messageTextLineHeight, handleToggleForwardMessagePopup, handleToggleInfoMessagePopupOpen, messageActionsShow, messageActionsBelow, handleRetractVote, handleEndVote, closeMessageActions, handleDeletePendingMessage, handleReplyMessage, handleOpenPinMessage, handleUnpinMessage, pinnedMessage, isPinned, handleToggleDeleteMessagePopup, handleToggleReportPopupOpen, handleResendMessage, handleOpenEmojis, emojisPopupOpen, setEmojisPopupOpen, emojisPopupPosition, frequentlyEmojisOpen, handleCopyMessage, toggleEditMode, handleSelectMessage, handleMouseEnter, handleMouseLeave, handleReactionAddDelete, handleCreateChat, messageTextRef, handleOpenUserProfile, shouldOpenUserProfileForMention, ogMetadataProps, unsupportedMessage, onInviteLinkClick, collapsedLinesLimit, ifLatestAndHasNotPreview }: IMessageBodyProps) => React.JSX.Element>;
|
|
146
150
|
export default _default;
|
|
@@ -7,6 +7,7 @@ interface MessagePopupsProps {
|
|
|
7
7
|
deletePopupOpen: boolean;
|
|
8
8
|
forwardPopupOpen: boolean;
|
|
9
9
|
infoPopupOpen: boolean;
|
|
10
|
+
pinPopupOpen: boolean;
|
|
10
11
|
showEndVoteConfirmPopup: boolean;
|
|
11
12
|
allowEditDeleteIncomingMessage?: boolean;
|
|
12
13
|
showInfoMessageProps?: any;
|
|
@@ -22,6 +23,9 @@ interface MessagePopupsProps {
|
|
|
22
23
|
onEndVote: () => void;
|
|
23
24
|
onToggleEndVotePopup: () => void;
|
|
24
25
|
onOpenUserProfile: (user?: any) => void;
|
|
26
|
+
onTogglePinPopup: () => void;
|
|
27
|
+
onPinMessage: (scope: number) => void;
|
|
28
|
+
canPinForAll: boolean;
|
|
25
29
|
}
|
|
26
30
|
declare const MessagePopups: React.FC<MessagePopupsProps>;
|
|
27
31
|
export default MessagePopups;
|
|
@@ -4,6 +4,7 @@ export interface MessageState {
|
|
|
4
4
|
deletePopupOpen: boolean;
|
|
5
5
|
forwardPopupOpen: boolean;
|
|
6
6
|
infoPopupOpen: boolean;
|
|
7
|
+
pinPopupOpen: boolean;
|
|
7
8
|
messageActionsShow: boolean;
|
|
8
9
|
showEndVoteConfirmPopup: boolean;
|
|
9
10
|
emojisPopupOpen: boolean;
|
|
@@ -22,6 +23,7 @@ export interface MessageStateSetters {
|
|
|
22
23
|
setDeletePopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
23
24
|
setForwardPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
24
25
|
setInfoPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
26
|
+
setPinPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
25
27
|
setMessageActionsShow: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
26
28
|
setShowEndVoteConfirmPopup: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
27
29
|
setEmojisPopupOpen: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
@@ -35,6 +35,9 @@ interface MessagesProps {
|
|
|
35
35
|
handleReplyMessage?: () => void;
|
|
36
36
|
handleRetractVote?: () => void;
|
|
37
37
|
handleEndVote?: () => void;
|
|
38
|
+
handleOpenPinMessage?: () => void;
|
|
39
|
+
handleUnpinMessage?: () => void;
|
|
40
|
+
pinnedMessage?: any;
|
|
38
41
|
isThreadMessage?: boolean;
|
|
39
42
|
rtlDirection?: boolean;
|
|
40
43
|
}>;
|
|
@@ -62,6 +65,9 @@ interface MessagesProps {
|
|
|
62
65
|
handleSelectMessage?: () => void;
|
|
63
66
|
handleOpenEmojis?: () => void;
|
|
64
67
|
handleReplyMessage?: () => void;
|
|
68
|
+
handleOpenPinMessage?: () => void;
|
|
69
|
+
handleUnpinMessage?: () => void;
|
|
70
|
+
pinnedMessage?: any;
|
|
65
71
|
handleMouseEnter: () => void;
|
|
66
72
|
handleMouseLeave: () => void;
|
|
67
73
|
closeMessageActions?: () => void;
|
|
@@ -98,6 +104,8 @@ interface MessagesProps {
|
|
|
98
104
|
reportIcon?: JSX.Element;
|
|
99
105
|
retractVoteIcon?: JSX.Element;
|
|
100
106
|
endVoteIcon?: JSX.Element;
|
|
107
|
+
/** Replaces the default pin icon in the pinned-messages banner. */
|
|
108
|
+
pinnedMessageIcon?: JSX.Element;
|
|
101
109
|
messageStatusSize?: string;
|
|
102
110
|
messageStatusColor?: string;
|
|
103
111
|
messageReadStatusColor?: string;
|
|
@@ -97,6 +97,8 @@ interface MessagesProps {
|
|
|
97
97
|
reportIcon?: JSX.Element;
|
|
98
98
|
retractVoteIcon?: JSX.Element;
|
|
99
99
|
endVoteIcon?: JSX.Element;
|
|
100
|
+
/** Replaces the default pin icon in the pinned-messages banner. */
|
|
101
|
+
pinnedMessageIcon?: JSX.Element;
|
|
100
102
|
openFrequentlyUsedReactions?: boolean;
|
|
101
103
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
102
104
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
@@ -19,6 +19,15 @@ interface IVideoPreviewProps {
|
|
|
19
19
|
}
|
|
20
20
|
declare const VideoPreview: React.NamedExoticComponent<IVideoPreviewProps>;
|
|
21
21
|
export default VideoPreview;
|
|
22
|
+
export declare const Component: import("styled-components").StyledComponent<"div", any, {
|
|
23
|
+
isPreview?: boolean | undefined;
|
|
24
|
+
isRepliedMessage?: boolean | undefined;
|
|
25
|
+
isDetailsView?: boolean | undefined;
|
|
26
|
+
width?: string | undefined;
|
|
27
|
+
height?: string | undefined;
|
|
28
|
+
borderRadius?: string | undefined;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
}, never>;
|
|
22
31
|
export declare const AttachmentFile: import("styled-components").StyledComponent<"div", any, {
|
|
23
32
|
isPrevious?: boolean | undefined;
|
|
24
33
|
borderRadius?: string | undefined;
|