sceyt-chat-react-uikit 1.9.1-beta.12 → 1.9.1-beta.13
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 +4 -1
- package/components/ChannelDetails/DetailsTab/Links/index.d.ts +4 -1
- package/components/ChannelDetails/DetailsTab/Media/index.d.ts +4 -1
- package/components/ChannelDetails/DetailsTab/Members/index.d.ts +4 -1
- package/components/ChannelDetails/DetailsTab/Voices/index.d.ts +4 -1
- package/components/ChannelDetails/DetailsTab/index.d.ts +3 -1
- package/components/ChannelDetails/index.d.ts +1 -1
- package/components/ChannelDetailsContainer/index.d.ts +4 -1
- package/components/ChannelList/index.d.ts +3 -0
- package/components/Messages/MessageList/index.d.ts +3 -0
- package/components/Messages/MessageList/useChatController.d.ts +3 -1
- package/components/Messages/index.d.ts +3 -0
- package/components/SendMessageInput/MentionsPlugin/index.d.ts +2 -1
- package/components/index.d.ts +2 -1
- package/index.js +1923 -1571
- package/index.modern.js +1923 -1571
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
2
3
|
interface IProps {
|
|
4
|
+
/** Replaces the default "Unable to load files" view shown when the first load fails with a retryable error. */
|
|
5
|
+
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
3
6
|
channelId: string;
|
|
4
7
|
filePreviewIcon?: JSX.Element;
|
|
5
8
|
filePreviewHoverIcon?: JSX.Element;
|
|
@@ -12,5 +15,5 @@ interface IProps {
|
|
|
12
15
|
fileSizeFontSize?: string;
|
|
13
16
|
fileSizeLineHeight?: string;
|
|
14
17
|
}
|
|
15
|
-
declare const Files: ({ channelId, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight }: IProps) => React.JSX.Element;
|
|
18
|
+
declare const Files: ({ channelId, CustomLoadErrorState, filePreviewIcon, filePreviewHoverIcon, filePreviewTitleColor, filePreviewSizeColor, filePreviewHoverBackgroundColor, filePreviewDownloadIcon, fileNameFontSize, fileNameLineHeight, fileSizeFontSize, fileSizeLineHeight }: IProps) => React.JSX.Element;
|
|
16
19
|
export default Files;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
2
3
|
interface IProps {
|
|
4
|
+
/** Replaces the default "Unable to load links" view shown when the first load fails with a retryable error. */
|
|
5
|
+
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
3
6
|
channelId: string;
|
|
4
7
|
linkPreviewIcon?: JSX.Element;
|
|
5
8
|
linkPreviewHoverIcon?: JSX.Element;
|
|
@@ -7,5 +10,5 @@ interface IProps {
|
|
|
7
10
|
linkPreviewColor?: string;
|
|
8
11
|
linkPreviewHoverBackgroundColor?: string;
|
|
9
12
|
}
|
|
10
|
-
declare const Links: ({ channelId, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
13
|
+
declare const Links: ({ channelId, CustomLoadErrorState, linkPreviewIcon, linkPreviewHoverIcon, linkPreviewTitleColor, linkPreviewColor, linkPreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
11
14
|
export default Links;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
2
3
|
import { IChannel } from '../../../../types';
|
|
3
4
|
interface IProps {
|
|
5
|
+
/** Replaces the default "Unable to load media" view shown when the first load fails with a retryable error. */
|
|
6
|
+
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
4
7
|
channel: IChannel;
|
|
5
8
|
}
|
|
6
|
-
declare const Media: ({ channel }: IProps) => React.JSX.Element;
|
|
9
|
+
declare const Media: ({ channel, CustomLoadErrorState }: IProps) => React.JSX.Element;
|
|
7
10
|
export default Media;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { IChannel, IMember } from '../../../../types';
|
|
3
4
|
interface IProps {
|
|
4
5
|
channel: IChannel;
|
|
5
6
|
members: IMember[];
|
|
6
7
|
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;
|
|
7
10
|
showChangeMemberRole?: boolean;
|
|
8
11
|
showMakeMemberAdmin?: boolean;
|
|
9
12
|
showKickMember?: boolean;
|
|
@@ -16,5 +19,5 @@ interface IProps {
|
|
|
16
19
|
memberPresenceFontSize?: string;
|
|
17
20
|
QRCodeIcon?: JSX.Element;
|
|
18
21
|
}
|
|
19
|
-
declare const Members: ({ channel, members, checkActionPermission, showChangeMemberRole, showMakeMemberAdmin, showKickMember, showKickAndBlockMember, hoverBackgroundColor, addMemberFontSize, addMemberIcon, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, QRCodeIcon }: IProps) => React.JSX.Element;
|
|
22
|
+
declare const Members: ({ channel, members, checkActionPermission, CustomLoadErrorState, showChangeMemberRole, showMakeMemberAdmin, showKickMember, showKickAndBlockMember, hoverBackgroundColor, addMemberFontSize, addMemberIcon, memberNameFontSize, memberAvatarSize, memberPresenceFontSize, QRCodeIcon }: IProps) => React.JSX.Element;
|
|
20
23
|
export default Members;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../../common/LoadErrorState';
|
|
2
3
|
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;
|
|
3
6
|
channelId: string;
|
|
4
7
|
voicePreviewPlayIcon?: JSX.Element;
|
|
5
8
|
voicePreviewPlayHoverIcon?: JSX.Element;
|
|
@@ -9,5 +12,5 @@ interface IProps {
|
|
|
9
12
|
voicePreviewDateAndTimeColor?: string;
|
|
10
13
|
voicePreviewHoverBackgroundColor?: string;
|
|
11
14
|
}
|
|
12
|
-
declare const Voices: ({ channelId, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
15
|
+
declare const Voices: ({ channelId, CustomLoadErrorState, voicePreviewPlayIcon, voicePreviewPlayHoverIcon, voicePreviewPauseIcon, voicePreviewPauseHoverIcon, voicePreviewTitleColor, voicePreviewDateAndTimeColor, voicePreviewHoverBackgroundColor }: IProps) => React.JSX.Element;
|
|
13
16
|
export default Voices;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../common/LoadErrorState';
|
|
2
3
|
import { IChannel } from '../../../types';
|
|
3
4
|
interface IProps {
|
|
4
5
|
channel: IChannel;
|
|
5
6
|
activeTab: string;
|
|
6
7
|
setActiveTab: (activeTab: string) => void;
|
|
7
8
|
checkActionPermission: (permission: string) => boolean;
|
|
9
|
+
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
8
10
|
linkPreviewIcon?: JSX.Element;
|
|
9
11
|
linkPreviewHoverIcon?: JSX.Element;
|
|
10
12
|
linkPreviewTitleColor?: string;
|
|
@@ -44,5 +46,5 @@ interface IProps {
|
|
|
44
46
|
onTabChange?: () => void;
|
|
45
47
|
QRCodeIcon?: JSX.Element;
|
|
46
48
|
}
|
|
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;
|
|
49
|
+
declare const DetailsTab: ({ channel, activeTab, checkActionPermission, CustomLoadErrorState, 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;
|
|
48
50
|
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, 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;
|
|
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, CustomLoadErrorState, 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,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
2
3
|
import { MuteTime } from '../../types';
|
|
3
4
|
export interface IDetailsProps {
|
|
4
5
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -90,6 +91,8 @@ export interface IDetailsProps {
|
|
|
90
91
|
voicePreviewTitleColor?: string;
|
|
91
92
|
voicePreviewDateAndTimeColor?: string;
|
|
92
93
|
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;
|
|
93
96
|
filePreviewIcon?: JSX.Element;
|
|
94
97
|
filePreviewHoverIcon?: JSX.Element;
|
|
95
98
|
filePreviewTitleColor?: string;
|
|
@@ -124,5 +127,5 @@ export interface IDetailsProps {
|
|
|
124
127
|
commonGroupsTextColor?: string;
|
|
125
128
|
showGroupsInCommon?: boolean;
|
|
126
129
|
}
|
|
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;
|
|
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, CustomLoadErrorState, 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;
|
|
128
131
|
export default ChannelDetailsContainer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { IChannel, IContact, IMessage, IUser } from '../../types';
|
|
3
|
+
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
3
4
|
interface IChannelListProps {
|
|
4
5
|
List?: FC<{
|
|
5
6
|
channels: IChannel[];
|
|
@@ -20,6 +21,8 @@ interface IChannelListProps {
|
|
|
20
21
|
setSelectedChannel?: (channel: IChannel) => void;
|
|
21
22
|
createChatWithContact?: (contact: IContact) => void;
|
|
22
23
|
}>;
|
|
24
|
+
/** Replaces the default "Unable to load channels" view shown when the first load fails with a retryable error. */
|
|
25
|
+
CustomLoadErrorState?: CustomLoadErrorStateComponent;
|
|
23
26
|
className?: string;
|
|
24
27
|
Profile?: JSX.Element;
|
|
25
28
|
CreateChannel?: JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../../common/LoadErrorState';
|
|
2
3
|
import { IAttachment, IChannel, IMarker, IMessage, IUser, ILabels, MessageInfoTab, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../../types';
|
|
3
4
|
import { IAttachmentProperties, IMessageStyles } from '../../Message/Message.types';
|
|
4
5
|
import { HiddenMessageProperty } from 'types/enum';
|
|
@@ -113,6 +114,8 @@ interface MessagesProps {
|
|
|
113
114
|
renderPinnedMessagePreview?: (message: IMessage, context: {
|
|
114
115
|
placement: 'banner' | 'system';
|
|
115
116
|
}) => 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;
|
|
116
119
|
messageStatusSize?: string;
|
|
117
120
|
messageStatusColor?: string;
|
|
118
121
|
messageReadStatusColor?: string;
|
|
@@ -29,6 +29,7 @@ export interface UseChatControllerParams {
|
|
|
29
29
|
messages: IMessage[];
|
|
30
30
|
channel: IChannel;
|
|
31
31
|
openAtLatest?: boolean;
|
|
32
|
+
messagesLoadFailedChannelId?: string | null;
|
|
32
33
|
hasPrevMessages: boolean;
|
|
33
34
|
hasNextMessages: boolean;
|
|
34
35
|
loadingPrevMessages: number | null;
|
|
@@ -50,7 +51,8 @@ export interface UseChatControllerParams {
|
|
|
50
51
|
tabIsActive?: boolean;
|
|
51
52
|
}
|
|
52
53
|
export declare const formatMessageDateLabel: (message: IMessage) => string;
|
|
53
|
-
export declare function useChatController({ messages, channel, openAtLatest, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, visibleMessagesMap, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
54
|
+
export declare function useChatController({ messages, channel, openAtLatest, messagesLoadFailedChannelId, hasPrevMessages, hasNextMessages, loadingPrevMessages, loadingNextMessages, connectionStatus, scrollToNewMessage, scrollToMentionedMessage, showScrollToNewMessageButton, unreadScrollTo, unreadMessageId, visibleMessagesMap, selectedMessagesMap, allowEditDeleteIncomingMessage, tabIsActive, dispatch }: UseChatControllerParams): {
|
|
55
|
+
retryInitialLoad: () => void;
|
|
54
56
|
scrollRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
55
57
|
setLastVisibleMessageId: (message: IMessage) => void;
|
|
56
58
|
handleScrollToRepliedMessage: (itemId: string, smooth?: boolean) => Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { CustomLoadErrorStateComponent } from '../../common/LoadErrorState';
|
|
2
3
|
import { IAttachment, IChannel, IMarker, IMessage, IUser, MessageInfoTab, ILabels, ITabsStyles, IListItemStyles, OGMetadataProps } from '../../types';
|
|
3
4
|
import { IAttachmentProperties, IMessageStyles } from '../Message/Message.types';
|
|
4
5
|
import { HiddenMessageProperty } from 'types/enum';
|
|
@@ -106,6 +107,8 @@ interface MessagesProps {
|
|
|
106
107
|
renderPinnedMessagePreview?: (message: IMessage, context: {
|
|
107
108
|
placement: 'banner' | 'system';
|
|
108
109
|
}) => 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;
|
|
109
112
|
openFrequentlyUsedReactions?: boolean;
|
|
110
113
|
fixEmojiCategoriesTitleOnTop?: boolean;
|
|
111
114
|
emojisCategoryIconsPosition?: 'top' | 'bottom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from '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,6 +8,7 @@ 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;
|
|
11
12
|
export default function MentionsPlugin({ contactsMap, userId, getFromContacts, setMentionMember, members, channelId }: {
|
|
12
13
|
contactsMap: IContactsMap;
|
|
13
14
|
userId: string;
|
package/components/index.d.ts
CHANGED
|
@@ -20,9 +20,10 @@ 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';
|
|
23
24
|
import { createOrGetDirectChannel, switchChannelActiveChannel, handleSendMessage, handleGetMessage, blockUsers, unBlockUsers } from 'helpers/methods';
|
|
24
25
|
import { MESSAGE_TYPE } from 'types/enum';
|
|
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 };
|
|
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, CustomLoadErrorStateComponent, ILoadErrorStateProps };
|
|
26
27
|
declare global {
|
|
27
28
|
interface Window {
|
|
28
29
|
sceytTabNotifications: any;
|