sceyt-chat-react-uikit 1.9.1-beta.13 → 1.9.1-beta.14
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/ChannelDetails/DetailsTab/Files/index.d.ts +1 -4
- package/components/ChannelDetails/DetailsTab/Links/index.d.ts +1 -4
- package/components/ChannelDetails/DetailsTab/Media/index.d.ts +1 -4
- package/components/ChannelDetails/DetailsTab/Members/index.d.ts +1 -4
- package/components/ChannelDetails/DetailsTab/Voices/index.d.ts +1 -4
- package/components/ChannelDetails/DetailsTab/index.d.ts +1 -3
- package/components/ChannelDetails/index.d.ts +1 -1
- package/components/ChannelDetailsContainer/index.d.ts +1 -4
- package/components/ChannelList/index.d.ts +0 -3
- package/components/Messages/MessageList/index.d.ts +0 -3
- package/components/Messages/MessageList/useChatController.d.ts +1 -3
- package/components/Messages/index.d.ts +0 -3
- package/components/SendMessageInput/MentionsPlugin/index.d.ts +1 -2
- package/components/index.d.ts +1 -2
- package/index.js +1564 -1907
- package/index.modern.js +1564 -1907
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
3
2
|
interface IProps {
|
|
4
|
-
/** Replaces the default "Unable to load files" view shown when the first load fails with a retryable error. */
|
|
5
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
6
3
|
channelId: string;
|
|
7
4
|
filePreviewIcon?: JSX.Element;
|
|
8
5
|
filePreviewHoverIcon?: JSX.Element;
|
|
@@ -15,5 +12,5 @@ interface IProps {
|
|
|
15
12
|
fileSizeFontSize?: string;
|
|
16
13
|
fileSizeLineHeight?: string;
|
|
17
14
|
}
|
|
18
|
-
declare const Files: ({ channelId,
|
|
15
|
+
declare const Files: ({ channelId, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight }: IProps) => React.JSX.Element;
|
|
19
16
|
export default Files;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
3
2
|
interface IProps {
|
|
4
|
-
/** Replaces the default "Unable to load links" view shown when the first load fails with a retryable error. */
|
|
5
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
6
3
|
channelId: string;
|
|
7
4
|
linkPreviewIcon?: JSX.Element;
|
|
8
5
|
linkPreviewHoverIcon?: JSX.Element;
|
|
@@ -10,5 +7,5 @@ interface IProps {
|
|
|
10
7
|
linkPreviewColor?: string;
|
|
11
8
|
linkPreviewHoverBackgroundColor?: string;
|
|
12
9
|
}
|
|
13
|
-
declare const Links: ({ channelId,
|
|
10
|
+
declare const Links: ({ channelId, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
14
11
|
export default Links;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
3
2
|
import { IChannel } from '../../../../types';
|
|
4
3
|
interface IProps {
|
|
5
|
-
/** Replaces the default "Unable to load media" view shown when the first load fails with a retryable error. */
|
|
6
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
7
4
|
channel: IChannel;
|
|
8
5
|
}
|
|
9
|
-
declare const Media: ({ channel
|
|
6
|
+
declare const Media: ({ channel }: IProps) => React.JSX.Element;
|
|
10
7
|
export default Media;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { IChannel, IMember } from '../../../../types';
|
|
4
3
|
interface IProps {
|
|
5
4
|
channel: IChannel;
|
|
6
5
|
members: IMember[];
|
|
7
6
|
checkActionPermission: (permission: string) => boolean;
|
|
8
|
-
/** Replaces the default "Unable to load members" view shown when the first load fails with a retryable error. */
|
|
9
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
10
7
|
showChangeMemberRole?: boolean;
|
|
11
8
|
showMakeMemberAdmin?: boolean;
|
|
12
9
|
showKickMember?: boolean;
|
|
@@ -19,5 +16,5 @@ interface IProps {
|
|
|
19
16
|
memberPresenceFontSize?: string;
|
|
20
17
|
QRCodeIcon?: JSX.Element;
|
|
21
18
|
}
|
|
22
|
-
declare const Members: ({ channel, members, checkActionPermission,
|
|
19
|
+
declare const Members: ({ channel, members, checkActionPermission, showChangeMemberRole, showMakeMemberAdmin, showKickMember, showKickAndBlockMember, hoverBackgroundColor, addMemberFontSize, addMemberIcon, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, QRCodeIcon }: IProps) => React.JSX.Element;
|
|
23
20
|
export default Members;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
3
2
|
interface IProps {
|
|
4
|
-
/** Replaces the default "Unable to load voice messages" view shown when the first load fails with a retryable error. */
|
|
5
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
6
3
|
channelId: string;
|
|
7
4
|
voicePreviewPlayIcon?: JSX.Element;
|
|
8
5
|
voicePreviewPlayHoverIcon?: JSX.Element;
|
|
@@ -12,5 +9,5 @@ interface IProps {
|
|
|
12
9
|
voicePreviewDateAndTimeColor?: string;
|
|
13
10
|
voicePreviewHoverBackgroundColor?: string;
|
|
14
11
|
}
|
|
15
|
-
declare const Voices: ({ channelId,
|
|
12
|
+
declare const Voices: ({ channelId, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
16
13
|
export default Voices;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../common/LoadErrorState';
|
|
3
2
|
import { IChannel } from '../../../types';
|
|
4
3
|
interface IProps {
|
|
5
4
|
channel: IChannel;
|
|
6
5
|
activeTab: string;
|
|
7
6
|
setActiveTab: (activeTab: string) => void;
|
|
8
7
|
checkActionPermission: (permission: string) => boolean;
|
|
9
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
10
8
|
linkPreviewIcon?: JSX.Element;
|
|
11
9
|
linkPreviewHoverIcon?: JSX.Element;
|
|
12
10
|
linkPreviewTitleColor?: string;
|
|
@@ -46,5 +44,5 @@ interface IProps {
|
|
|
46
44
|
onTabChange?: () => void;
|
|
47
45
|
QRCodeIcon?: JSX.Element;
|
|
48
46
|
}
|
|
49
|
-
declare const DetailsTab: ({ channel, activeTab, checkActionPermission,
|
|
47
|
+
declare const DetailsTab: ({ channel, activeTab, checkActionPermission, setActiveTab, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight, showChangeMemberRole, showKickMember, showKickAndBlockMember, showMakeMemberAdmin, memberHoverBackgroundColor, addMemberFontSize, addMemberIcon, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, borderColor, tabItemsFontSize, tabItemsLineHeight, tabItemsMinWidth, onTabChange, QRCodeIcon }: IProps) => React.JSX.Element;
|
|
50
48
|
export default DetailsTab;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDetailsProps } from '../ChannelDetailsContainer';
|
|
3
|
-
declare const Details: ({ detailsTitleText, editDetailsTitleText, detailsTitleFontSize, size, channelNameFontSize, channelNameLineHeight, channelAvatarSize, channelAvatarTextSize, channelMembersFontSize, channelMembersLineHeight, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, channelEditIcon, channelEditIconTopPosition, channelEditIconRightPosition, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, unpinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, deleteChannelIcon, showDeleteChannel, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon,
|
|
3
|
+
declare const Details: ({ detailsTitleText, editDetailsTitleText, detailsTitleFontSize, size, channelNameFontSize, channelNameLineHeight, channelAvatarSize, channelAvatarTextSize, channelMembersFontSize, channelMembersLineHeight, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, channelEditIcon, channelEditIconTopPosition, channelEditIconRightPosition, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, unpinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, deleteChannelIcon, showDeleteChannel, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, showKickMember, showKickAndBlockMember, showMakeMemberAdmin, memberHoverBackgroundColor, addMemberFontSize, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, actionItemsFontSize, addMemberIcon, tabItemsFontSize, tabItemsLineHeight, tabItemsMinWidth, backgroundColor, bordersColor, showPhoneNumber, QRCodeIcon, commonGroupsOrder, commonGroupsIcon, commonGroupsIconColor, commonGroupsTextColor, showGroupsInCommon }: IDetailsProps) => React.JSX.Element;
|
|
4
4
|
export default Details;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
3
2
|
import { MuteTime } from '../../types';
|
|
4
3
|
export interface IDetailsProps {
|
|
5
4
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -91,8 +90,6 @@ export interface IDetailsProps {
|
|
|
91
90
|
voicePreviewTitleColor?: string;
|
|
92
91
|
voicePreviewDateAndTimeColor?: string;
|
|
93
92
|
voicePreviewHoverBackgroundColor?: string;
|
|
94
|
-
/** Replaces the default "Unable to load ..." view shown when a details tab's first load fails with a retryable error. */
|
|
95
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
96
93
|
filePreviewIcon?: JSX.Element;
|
|
97
94
|
filePreviewHoverIcon?: JSX.Element;
|
|
98
95
|
filePreviewTitleColor?: string;
|
|
@@ -127,5 +124,5 @@ export interface IDetailsProps {
|
|
|
127
124
|
commonGroupsTextColor?: string;
|
|
128
125
|
showGroupsInCommon?: boolean;
|
|
129
126
|
}
|
|
130
|
-
declare const ChannelDetailsContainer: ({ size, detailsTitleText, editDetailsTitleText, detailsTitleFontSize, channelNameFontSize, channelNameLineHeight, channelAvatarSize, channelAvatarTextSize, channelMembersFontSize, channelMembersLineHeight, channelEditIcon, channelEditIconTopPosition, channelEditIconRightPosition, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, unpinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, showDeleteChannel, deleteChannelIcon, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon,
|
|
127
|
+
declare const ChannelDetailsContainer: ({ size, detailsTitleText, editDetailsTitleText, detailsTitleFontSize, channelNameFontSize, channelNameLineHeight, channelAvatarSize, channelAvatarTextSize, channelMembersFontSize, channelMembersLineHeight, channelEditIcon, channelEditIconTopPosition, channelEditIconRightPosition, showAboutChannel, showAboutChannelTitle, avatarAndNameDirection, editChannelSaveButtonBackgroundColor, editChannelSaveButtonTextColor, editChannelCancelButtonBackgroundColor, editChannelCancelButtonTextColor, showMuteUnmuteNotifications, muteUnmuteNotificationsOrder, muteNotificationIcon, unmuteNotificationIcon, muteNotificationIconColor, unmuteNotificationIconColor, muteUnmuteNotificationSwitcherColor, muteUnmuteNotificationTextColor, timeOptionsToMuteNotifications, showStarredMessages, starredMessagesOrder, staredMessagesIcon, staredMessagesIconColor, staredMessagesTextColor, showPinChannel, pinChannelOrder, pinChannelIcon, unpinChannelIcon, pinChannelIconColor, pinChannelTextColor, showMarkAsReadUnread, markAsReadUnreadOrder, markAsReadIcon, markAsUnreadIcon, markAsReadIconColor, markAsUnreadIconColor, markAsReadUnreadTextColor, showLeaveChannel, leaveChannelOrder, leaveChannelIcon, leaveChannelIconColor, leaveChannelTextColor, showReportChannel, reportChannelIcon, reportChannelOrder, reportChannelIconColor, reportChannelTextColor, showDeleteChannel, deleteChannelIcon, deleteChannelIconColor, deleteChannelTextColor, deleteChannelOrder, showBlockAndLeaveChannel, showBlockUser, blockAndLeaveChannelIcon, blockAndLeaveChannelIconColor, blockAndLeaveChannelTextColor, unblockUserIcon, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight, showClearHistory, clearHistoryOrder, clearHistoryIcon, clearHistoryTextColor, showDeleteAllMessages, deleteAllMessagesOrder, deleteAllMessagesIcon, deleteAllMessagesTextColor, showChangeMemberRole, memberHoverBackgroundColor, addMemberFontSize, addMemberIcon, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, showKickMember, showKickAndBlockMember, backgroundColor, actionItemsFontSize, tabItemsFontSize, tabItemsLineHeight, tabItemsMinWidth, bordersColor, showPhoneNumber, QRCodeIcon, commonGroupsOrder, commonGroupsIcon, commonGroupsIconColor, commonGroupsTextColor, showGroupsInCommon }: IDetailsProps) => React.JSX.Element;
|
|
131
128
|
export default ChannelDetailsContainer;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { IChannel, IContact, IMessage, IUser } from '../../types';
|
|
3
|
-
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
4
3
|
interface IChannelListProps {
|
|
5
4
|
List?: FC<{
|
|
6
5
|
channels: IChannel[];
|
|
@@ -21,8 +20,6 @@ interface IChannelListProps {
|
|
|
21
20
|
setSelectedChannel?: (channel: IChannel) => void;
|
|
22
21
|
createChatWithContact?: (contact: IContact) => void;
|
|
23
22
|
}>;
|
|
24
|
-
/** Replaces the default "Unable to load channels" view shown when the first load fails with a retryable error. */
|
|
25
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
26
23
|
className?: string;
|
|
27
24
|
Profile?: JSX.Element;
|
|
28
25
|
CreateChannel?: JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../../common/LoadErrorState';
|
|
3
2
|
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../../types';
|
|
4
3
|
import { IAttachmentProperties, IMessageStyles } from '../../Message/Message.types';
|
|
5
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
@@ -114,8 +113,6 @@ interface MessagesProps {
|
|
|
114
113
|
renderPinnedMessagePreview?: (message: IMessage, context: {
|
|
115
114
|
placement: 'banner' | 'system';
|
|
116
115
|
}) => React.ReactNode | null | undefined;
|
|
117
|
-
/** Replaces the default "Unable to load messages" view shown when the first load fails with a retryable error. */
|
|
118
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
119
116
|
messageStatusSize?: string;
|
|
120
117
|
messageStatusColor?: string;
|
|
121
118
|
messageReadStatusColor?: string;
|
|
@@ -29,7 +29,6 @@ export interface UseChatControllerParams {
|
|
|
29
29
|
messages: IMessage[];
|
|
30
30
|
channel: IChannel;
|
|
31
31
|
openAtLatest?: boolean;
|
|
32
|
-
messagesLoadFailedChannelId?: string | null;
|
|
33
32
|
hasPrevMessages: boolean;
|
|
34
33
|
hasNextMessages: boolean;
|
|
35
34
|
loadingPrevMessages: number | null;
|
|
@@ -51,8 +50,7 @@ export interface UseChatControllerParams {
|
|
|
51
50
|
tabIsActive?: boolean;
|
|
52
51
|
}
|
|
53
52
|
export declare const formatMessageDateLabel: (message: IMessage) => string;
|
|
54
|
-
export declare function useChatController({ messages, channel, openAtLatest,
|
|
55
|
-
retryInitialLoad: () => void;
|
|
53
|
+
export declare function useChatController({ messages, channel, openAtLatest, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, visibleMessagesMap, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
56
54
|
scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
57
55
|
setLastVisibleMessageId: (message: IMessage) => void;
|
|
58
56
|
handleScrollToRepliedMessage: (itemId: string, smooth?: boolean) => Promise<void>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
3
2
|
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../types';
|
|
4
3
|
import { IAttachmentProperties, IMessageStyles } from '../Message/Message.types';
|
|
5
4
|
import { HiddenMessageProperty } from 'types/enum';
|
|
@@ -107,8 +106,6 @@ interface MessagesProps {
|
|
|
107
106
|
renderPinnedMessagePreview?: (message: IMessage, context: {
|
|
108
107
|
placement: 'banner' | 'system';
|
|
109
108
|
}) => React.ReactNode | null | undefined;
|
|
110
|
-
/** Replaces the default "Unable to load messages" view shown when the first load fails with a retryable error. */
|
|
111
|
-
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
112
109
|
openFrequentlyUsedReactions?: boolean;
|
|
113
110
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
114
111
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin';
|
|
3
3
|
import { IContactsMap, IMember } from '../../../types';
|
|
4
4
|
export declare class MentionTypeaheadOption extends MenuOption {
|
|
@@ -8,7 +8,6 @@ export declare class MentionTypeaheadOption extends MenuOption {
|
|
|
8
8
|
avatarUrl?: string;
|
|
9
9
|
constructor(name: string, id: string, presence?: any, avatarUrl?: string);
|
|
10
10
|
}
|
|
11
|
-
export declare function MentionsContainer({ queryString, options, selectedIndex, selectOptionAndCleanUp, setHighlightedIndex, channelId, alignLeft, handleLeftOffset }: any): React.JSX.Element;
|
|
12
11
|
export default function MentionsPlugin({ contactsMap, userId, getFromContacts, setMentionMember, members, channelId }: {
|
|
13
12
|
contactsMap: IContactsMap;
|
|
14
13
|
userId: string;
|
package/components/index.d.ts
CHANGED
|
@@ -20,10 +20,9 @@ import { THEME_COLORS } from '../UIHelper/constants';
|
|
|
20
20
|
import { OGMetadata } from './Message/OGMetadata';
|
|
21
21
|
import PollMessage from './Message/PollMessage';
|
|
22
22
|
import ForwardMessagePopup, { IForwardMessageNote, IForwardPreviewMessage } from 'common/popups/forwardMessage';
|
|
23
|
-
import { CustomLoadErrorStateComponent, ILoadErrorStateProps } from 'common/LoadErrorState';
|
|
24
23
|
import { createOrGetDirectChannel, switchChannelActiveChannel, handleSendMessage, handleGetMessage, blockUsers, unBlockUsers } from 'helpers/methods';
|
|
25
24
|
import { MESSAGE_TYPE } from 'types/enum';
|
|
26
|
-
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, IForwardMessageNote, IForwardPreviewMessage
|
|
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, IForwardMessageNote, IForwardPreviewMessage };
|
|
27
26
|
declare global {
|
|
28
27
|
interface Window {
|
|
29
28
|
sceytTabNotifications: any;
|