sceyt-chat-react-uikit 1.8.4-beta.1 → 1.8.4-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/chevron_down_search.svg +3 -0
- package/assets/svg/search-messages.svg +3 -0
- package/assets/svg/search-view.svg +3 -0
- package/components/Attachment/index.d.ts +2 -1
- package/components/ChatHeader/index.d.ts +4 -1
- package/components/Message/OGMetadata/index.d.ts +2 -1
- package/components/MessagesSearch/index.d.ts +6 -0
- package/components/VideoPlayer/index.d.ts +2 -1
- package/components/VideoPreview/index.d.ts +1 -0
- package/components/index.d.ts +3 -1
- package/index.js +3225 -2184
- package/index.modern.js +3224 -2185
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.16303 5.89779C2.84355 5.62395 2.36256 5.66095 2.08871 5.98043C1.81487 6.29992 1.85186 6.78091 2.17135 7.05475L7.50468 11.6262C7.79001 11.8707 8.21104 11.8707 8.49637 11.6262L13.8297 7.05475C14.1492 6.78091 14.1862 6.29992 13.9123 5.98043C13.6385 5.66095 13.1575 5.62395 12.838 5.89779L8.00053 10.0442L3.16303 5.89779Z" fill="#818C99"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.25 0C11.2541 0 14.5 3.24594 14.5 7.25C14.5 8.89122 13.9547 10.4051 13.0353 11.6202L17.2071 15.7929C17.5976 16.1834 17.5976 16.8166 17.2071 17.2071C16.8166 17.5976 16.1834 17.5976 15.7929 17.2071L11.6202 13.0353C10.4051 13.9547 8.89122 14.5 7.25 14.5C3.24594 14.5 0 11.2541 0 7.25C0 3.24594 3.24594 0 7.25 0ZM7.25 2C4.3505 2 2 4.3505 2 7.25C2 10.1495 4.3505 12.5 7.25 12.5C10.1495 12.5 12.5 10.1495 12.5 7.25C12.5 4.3505 10.1495 2 7.25 2Z" fill="#818C99"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.1442 2.6665C18.9307 2.6665 23.6217 7.35598 23.6217 13.1407C23.6217 15.518 22.8294 17.7104 21.4945 19.4683L28.9155 26.8956C29.4732 27.4537 29.4726 28.358 28.9144 28.9154C28.3561 29.4729 27.4515 29.4723 26.8938 28.9143L19.4737 21.4884C17.7153 22.823 15.5222 23.615 13.1442 23.615C7.35767 23.615 2.66675 18.9255 2.66675 13.1407C2.66675 7.35598 7.35767 2.6665 13.1442 2.6665ZM13.1442 5.52296C8.93582 5.52296 5.52421 8.93353 5.52421 13.1407C5.52421 17.3479 8.93582 20.7585 13.1442 20.7585C17.3526 20.7585 20.7642 17.3479 20.7642 13.1407C20.7642 8.93353 17.3526 5.52296 13.1442 5.52296Z" fill="#0DBD8B"/>
|
|
3
|
+
</svg>
|
|
@@ -26,8 +26,9 @@ interface AttachmentPops {
|
|
|
26
26
|
channelId?: string;
|
|
27
27
|
incoming?: boolean;
|
|
28
28
|
viewOnce?: boolean;
|
|
29
|
+
onlyVideoImage?: boolean;
|
|
29
30
|
}
|
|
30
|
-
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 }: AttachmentPops) => React.JSX.Element>;
|
|
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>;
|
|
31
32
|
export default _default;
|
|
32
33
|
export declare const SizeProgress: import("styled-components").StyledComponent<"span", any, {
|
|
33
34
|
color: string;
|
|
@@ -21,6 +21,9 @@ interface IProps {
|
|
|
21
21
|
infoIconOrder?: number;
|
|
22
22
|
customActionsOrder?: number;
|
|
23
23
|
showPhoneNumber?: boolean;
|
|
24
|
+
showSearchMessages?: boolean;
|
|
25
|
+
searchMessagesIcon?: JSX.Element;
|
|
26
|
+
searchMessagesIconOrder?: number;
|
|
24
27
|
}
|
|
25
|
-
export default function ChatHeader({ infoIcon, backgroundColor, titleColor, avatarBorderRadius, memberInfoTextColor, memberInfoFontSize, memberInfoLineHeight, mobileBackButtonClicked, MobileBackButton, showMemberInfo, avatarSize, avatarTextSize, borderBottom, titleFontSize, titleLineHeight, CustomActions, backButtonOrder, channelInfoOrder, infoIconOrder, customActionsOrder, showPhoneNumber }: IProps): React.JSX.Element;
|
|
28
|
+
export default function ChatHeader({ infoIcon, backgroundColor, titleColor, avatarBorderRadius, memberInfoTextColor, memberInfoFontSize, memberInfoLineHeight, mobileBackButtonClicked, MobileBackButton, showMemberInfo, avatarSize, avatarTextSize, borderBottom, titleFontSize, titleLineHeight, CustomActions, backButtonOrder, channelInfoOrder, infoIconOrder, customActionsOrder, showPhoneNumber, showSearchMessages, searchMessagesIcon, searchMessagesIconOrder }: IProps): React.JSX.Element;
|
|
26
29
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAttachment, IOGMetadata } from '../../../types';
|
|
3
3
|
export declare const isDescriptionOnlySymbol: (description: string | undefined) => boolean;
|
|
4
|
-
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, isInviteLink,
|
|
4
|
+
declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitle, ogShowDescription, ogShowFavicon, order, maxWidth, maxHeight, ogContainerBorderRadius, ogContainerPadding, ogContainerClassName, ogContainerShowBackground, ogContainerBackground, infoPadding, ogContainerMargin, target, isInviteLink, onClick }: {
|
|
5
5
|
attachments: IAttachment[];
|
|
6
6
|
state: string;
|
|
7
7
|
incoming: boolean;
|
|
@@ -26,6 +26,7 @@ declare const OGMetadata: ({ attachments, state, incoming, ogShowUrl, ogShowTitl
|
|
|
26
26
|
ogContainerMargin?: string | undefined;
|
|
27
27
|
target?: string | undefined;
|
|
28
28
|
isInviteLink?: boolean | undefined;
|
|
29
|
+
onClick?: (() => void) | undefined;
|
|
29
30
|
metadataGetSuccessCallback?: ((url: string, success: boolean, hasImage: boolean, metadata: IOGMetadata | null) => void) | undefined;
|
|
30
31
|
}) => React.JSX.Element | null;
|
|
31
32
|
export { OGMetadata };
|
|
@@ -4,6 +4,7 @@ interface IVideoPlayerProps {
|
|
|
4
4
|
videoFileId?: string;
|
|
5
5
|
activeFileId?: string;
|
|
6
6
|
onMouseDown?: (e: React.MouseEvent) => void;
|
|
7
|
+
readyToPlay: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare const VideoPlayer: ({ src, videoFileId, activeFileId, onMouseDown }: IVideoPlayerProps) => React.JSX.Element;
|
|
9
|
+
declare const VideoPlayer: ({ src, videoFileId, activeFileId, onMouseDown, readyToPlay }: IVideoPlayerProps) => React.JSX.Element;
|
|
9
10
|
export default VideoPlayer;
|
|
@@ -14,6 +14,7 @@ interface IVideoPreviewProps {
|
|
|
14
14
|
isDetailsView?: boolean;
|
|
15
15
|
setVideoIsReadyToSend?: (attachmentId: string) => void;
|
|
16
16
|
downloading: boolean;
|
|
17
|
+
onlyVideoImage?: boolean;
|
|
17
18
|
}
|
|
18
19
|
declare const VideoPreview: React.NamedExoticComponent<IVideoPreviewProps>;
|
|
19
20
|
export default VideoPreview;
|
package/components/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import MessageList from './Messages';
|
|
|
7
7
|
import SendMessage from './SendMessageInput';
|
|
8
8
|
import ChannelDetails from './ChannelDetailsContainer';
|
|
9
9
|
import MessagesScrollToBottomButton from './MessagesScrollToBottomButton';
|
|
10
|
+
import MessagesSearch from './MessagesSearch';
|
|
10
11
|
import MessagesScrollToUnreadMentionsButton from './MessagesScrollToUnreadMentionsButton';
|
|
11
12
|
import CreateChannel from './../common/popups/createChannel';
|
|
12
13
|
import ChannelSearch from './ChannelList/ChannelSearch';
|
|
@@ -18,9 +19,10 @@ import DropDown from '../common/dropdown';
|
|
|
18
19
|
import { THEME_COLORS } from '../UIHelper/constants';
|
|
19
20
|
import { OGMetadata } from './Message/OGMetadata';
|
|
20
21
|
import PollMessage from './Message/PollMessage';
|
|
22
|
+
import ForwardMessagePopup from 'common/popups/forwardMessage';
|
|
21
23
|
import { createOrGetDirectChannel, switchChannelActiveChannel, handleSendMessage, handleGetMessage, blockUsers, unBlockUsers } from 'helpers/methods';
|
|
22
24
|
import { MESSAGE_TYPE } from 'types/enum';
|
|
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, blockUsers, unBlockUsers };
|
|
25
|
+
export { SceytChat, ChannelList, Channel, Chat, ChatHeader, MessageList, SendMessage, ChannelDetails, MessagesScrollToBottomButton, MessagesScrollToUnreadMentionsButton, MessagesSearch, CreateChannel, ChannelSearch, Avatar, DropDown, Attachment, PollMessage, OGMetadata, EmojisPopup, FrequentlyEmojis, SceytChatUIKitTheme, ThemeMode, THEME_COLORS, MESSAGE_TYPE, handleSendMessage, handleGetMessage, createOrGetDirectChannel, switchChannelActiveChannel, blockUsers, unBlockUsers, ForwardMessagePopup };
|
|
24
26
|
declare global {
|
|
25
27
|
interface Window {
|
|
26
28
|
sceytTabNotifications: any;
|