sceyt-chat-react-uikit 1.5.2 → 1.5.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/README.md +2 -2
- package/assets/svg/addAttachment.svg +1 -1
- package/assets/svg/addChat.svg +1 -1
- package/assets/svg/addMember.svg +1 -1
- package/assets/svg/arrowLeft.svg +2 -2
- package/assets/svg/avatar.svg +1 -1
- package/assets/svg/blockChannel.svg +1 -1
- package/assets/svg/bold.svg +5 -0
- package/assets/svg/cancel.svg +2 -2
- package/assets/svg/checkCircle.svg +5 -0
- package/assets/svg/close.svg +2 -2
- package/assets/svg/deleteChannel.svg +1 -1
- package/assets/svg/deleteUpload.svg +2 -2
- package/assets/svg/fileIcon.svg +3 -5
- package/assets/svg/italic.svg +5 -0
- package/assets/svg/linkIcon.svg +1 -1
- package/assets/svg/markAsRead.svg +2 -2
- package/assets/svg/markAsUnread.svg +6 -0
- package/assets/svg/mono.svg +5 -0
- package/assets/svg/noMessagesIcon.svg +9 -0
- package/assets/svg/notifications.svg +2 -7
- package/assets/svg/pause.svg +1 -1
- package/assets/svg/pauseRecord.svg +5 -0
- package/assets/svg/play.svg +1 -1
- package/assets/svg/playRecord.svg +2 -2
- package/assets/svg/selectionIcon.svg +5 -0
- package/assets/svg/strikethrough.svg +8 -0
- package/assets/svg/underline.svg +8 -0
- package/assets/svg/unmuteNotifications.svg +4 -0
- package/components/Attachment/index.d.ts +7 -6
- package/components/AudioRecord/index.d.ts +8 -1
- package/components/Avatar/index.d.ts +2 -0
- package/components/Channel/index.d.ts +17 -5
- package/components/ChannelDetails/Actions/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Files/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Media/index.d.ts +3 -2
- package/components/ChannelDetails/DetailsTab/Members/change-member-role/index.d.ts +2 -1
- package/components/ChannelDetails/DetailsTab/Members/index.d.ts +3 -2
- package/components/ChannelDetails/DetailsTab/Voices/voiceItem.d.ts +1 -3
- package/components/ChannelDetails/DetailsTab/index.d.ts +2 -1
- package/components/ChannelDetails/EditChannel/index.d.ts +2 -1
- package/components/ChannelDetails/index.d.ts +1 -1
- package/components/ChannelDetailsContainer/index.d.ts +5 -1
- package/components/ChannelList/ChannelSearch/index.d.ts +3 -0
- package/components/ChannelList/ContactItem/index.d.ts +29 -0
- package/components/ChannelList/CreateChannelButton/index.d.ts +1 -0
- package/components/ChannelList/index.d.ts +28 -16
- package/components/ChatContainer/index.d.ts +13 -5
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/TextFormat/index.d.ts +19 -0
- package/components/Message/index.d.ts +37 -5
- package/components/MessageDivider/index.d.ts +3 -2
- package/components/Messages/MessageList/index.d.ts +166 -0
- package/components/Messages/SystemMessage/index.d.ts +31 -0
- package/components/Messages/index.d.ts +26 -20
- package/components/MessagesScrollToBottomButton/index.d.ts +2 -0
- package/components/Profile/EditProfile/index.d.ts +2 -0
- package/components/Profile/index.d.ts +3 -0
- package/components/SceytChat/index.d.ts +2 -1
- package/components/SceytChat/styled.d.ts +1 -1
- package/components/SendMessageInput/EditMessagePlugin/index.d.ts +8 -0
- package/components/SendMessageInput/EmojiNode/index.d.ts +18 -0
- package/components/SendMessageInput/EmojisPlugin/index.d.ts +15 -0
- package/components/SendMessageInput/FloatingTextFormatToolbarPlugin/index.d.ts +10 -0
- package/components/SendMessageInput/FormatMessagePlugin/index.d.ts +2 -0
- package/components/SendMessageInput/MentionNode/index.d.ts +22 -0
- package/components/SendMessageInput/MentionsPlugin/index.d.ts +26 -0
- package/components/SendMessageInput/index.d.ts +5 -4
- package/components/VideoPreview/index.d.ts +6 -4
- package/components/index.d.ts +3 -3
- package/index.js +15996 -9027
- package/package.json +6 -3
- package/types/attachment/index.d.ts +1 -1
- package/types/index.d.ts +46 -27
- package/assets/svg/markAsUnRead.svg +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sceyt-chat-react-uikit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "Interactive React UI Components for Sceyt Chat.",
|
|
5
5
|
"author": "Sceyt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"prettier": "2.7.1",
|
|
67
67
|
"react-scripts": "5.0.1",
|
|
68
68
|
"typescript": "4.8.2",
|
|
69
|
-
"wavesurfer.js": "6.2.0",
|
|
70
69
|
"webpack-cli": "^5.0.1"
|
|
71
70
|
},
|
|
72
71
|
"files": [
|
|
@@ -79,6 +78,9 @@
|
|
|
79
78
|
"package.json"
|
|
80
79
|
],
|
|
81
80
|
"dependencies": {
|
|
81
|
+
"@lexical/offset": "^0.12.2",
|
|
82
|
+
"@lexical/react": "^0.12.2",
|
|
83
|
+
"lexical": "^0.12.2",
|
|
82
84
|
"linkify-it": "^4.0.1",
|
|
83
85
|
"react-easy-crop": "^4.6.2",
|
|
84
86
|
"mic-recorder-to-mp3": "^2.2.2",
|
|
@@ -89,6 +91,7 @@
|
|
|
89
91
|
"react-redux": "^8.0.2",
|
|
90
92
|
"redux": "^4.2.0",
|
|
91
93
|
"redux-saga": "^1.1.3",
|
|
92
|
-
"wavesurfer.js": "^6.6.3"
|
|
94
|
+
"wavesurfer.js": "^6.6.3",
|
|
95
|
+
"react-circular-progressbar": "^2.1.0"
|
|
93
96
|
}
|
|
94
97
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IUser {
|
|
|
7
7
|
firstName: string;
|
|
8
8
|
lastName: string;
|
|
9
9
|
avatarUrl?: string;
|
|
10
|
-
|
|
10
|
+
state: string;
|
|
11
11
|
blocked?: boolean;
|
|
12
12
|
presence?: {
|
|
13
13
|
state: string;
|
|
@@ -28,17 +28,19 @@ export interface ICreateChannel {
|
|
|
28
28
|
}
|
|
29
29
|
export interface IAttachment {
|
|
30
30
|
id?: string;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
messageId: string;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
metadata?: any;
|
|
33
35
|
url: any;
|
|
36
|
+
size: number;
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
upload: boolean;
|
|
39
|
+
user?: IUser;
|
|
40
|
+
tid?: string;
|
|
34
41
|
attachmentUrl: string;
|
|
35
|
-
type: string;
|
|
36
|
-
name: string;
|
|
37
42
|
data: any;
|
|
38
|
-
|
|
39
|
-
title?: string;
|
|
40
|
-
metadata?: any;
|
|
41
|
-
user: IUser;
|
|
43
|
+
cachedUrl?: string;
|
|
42
44
|
}
|
|
43
45
|
declare class AttachmentBuilder {
|
|
44
46
|
url: string;
|
|
@@ -61,28 +63,45 @@ export interface IReaction {
|
|
|
61
63
|
messageId: string;
|
|
62
64
|
user: IUser;
|
|
63
65
|
}
|
|
66
|
+
export interface IBodyAttribute {
|
|
67
|
+
type: string;
|
|
68
|
+
metadata: string;
|
|
69
|
+
offset: number;
|
|
70
|
+
length: number;
|
|
71
|
+
}
|
|
64
72
|
export interface IMessage {
|
|
65
73
|
id: string;
|
|
66
74
|
tid?: string;
|
|
67
75
|
body: string;
|
|
68
76
|
user: IUser;
|
|
69
|
-
createdAt: Date
|
|
70
|
-
updatedAt?: Date
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
updatedAt?: Date;
|
|
71
79
|
type: string;
|
|
72
80
|
deliveryStatus: string;
|
|
73
|
-
|
|
81
|
+
markerTotals: {
|
|
82
|
+
name: string;
|
|
83
|
+
count: number;
|
|
84
|
+
}[];
|
|
85
|
+
userMarkers: {
|
|
86
|
+
name: string;
|
|
87
|
+
messageId: string;
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
user: IUser | null;
|
|
90
|
+
}[];
|
|
74
91
|
incoming: boolean;
|
|
75
92
|
metadata: any;
|
|
76
93
|
state: string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
94
|
+
userReactions: IReaction[] | [];
|
|
95
|
+
reactionTotals: {
|
|
96
|
+
key: string;
|
|
97
|
+
count: number;
|
|
98
|
+
score: number;
|
|
99
|
+
}[];
|
|
82
100
|
attachments: IAttachment[] | [];
|
|
83
101
|
mentionedUsers: IUser[];
|
|
84
102
|
requestedMentionUserIds: string[] | null;
|
|
85
|
-
|
|
103
|
+
parentMessage?: IMessage | null;
|
|
104
|
+
bodyAttributes: IBodyAttribute[] | [];
|
|
86
105
|
parentId?: string;
|
|
87
106
|
repliedInThread?: boolean;
|
|
88
107
|
replyCount?: number;
|
|
@@ -112,11 +131,11 @@ export interface IChannel {
|
|
|
112
131
|
memberCount: number;
|
|
113
132
|
messageCount: number;
|
|
114
133
|
createdBy: IUser;
|
|
115
|
-
|
|
134
|
+
userRole: string;
|
|
116
135
|
unread: boolean;
|
|
117
136
|
newMessageCount: number;
|
|
118
137
|
newMentionCount: number;
|
|
119
|
-
|
|
138
|
+
newReactedMessageCount: number;
|
|
120
139
|
hidden: boolean;
|
|
121
140
|
archived: boolean;
|
|
122
141
|
muted: boolean;
|
|
@@ -125,20 +144,24 @@ export interface IChannel {
|
|
|
125
144
|
lastReceivedMsgId: string;
|
|
126
145
|
lastDisplayedMsgId: string;
|
|
127
146
|
messageRetentionPeriod?: number;
|
|
147
|
+
isMockChannel?: boolean;
|
|
148
|
+
isLinkedChannel?: boolean;
|
|
149
|
+
backToLinkedChannel?: boolean;
|
|
150
|
+
linkedFrom?: string;
|
|
128
151
|
lastMessage: IMessage;
|
|
129
152
|
messages: IMessage[];
|
|
130
153
|
members: IMember[];
|
|
131
154
|
newReactions: IReaction[];
|
|
132
155
|
lastReactedMessage?: IMessage;
|
|
133
156
|
delete: () => Promise<void>;
|
|
134
|
-
deleteAllMessages: (
|
|
157
|
+
deleteAllMessages: (forEveryone?: boolean) => Promise<void>;
|
|
135
158
|
hide: () => Promise<boolean>;
|
|
136
159
|
unhide: () => Promise<boolean>;
|
|
137
160
|
markAsUnRead: () => Promise<IChannel>;
|
|
138
161
|
mute: (_muteExpireTime: number) => Promise<IChannel>;
|
|
139
162
|
unmute: () => Promise<IChannel>;
|
|
140
|
-
|
|
141
|
-
|
|
163
|
+
markMessagesAsReceived: (_messageIds: string[]) => Promise<void>;
|
|
164
|
+
markMessagesAsDisplayed: (_messageIds: string[]) => Promise<void>;
|
|
142
165
|
startTyping: () => void;
|
|
143
166
|
stopTyping: () => void;
|
|
144
167
|
sendMessage: (message: any) => Promise<any>;
|
|
@@ -163,10 +186,6 @@ export interface IMedia extends IAttachment {
|
|
|
163
186
|
user: IUser;
|
|
164
187
|
updatedAt: Date;
|
|
165
188
|
}
|
|
166
|
-
export interface ICustomChannelItemProps {
|
|
167
|
-
channel: IChannel;
|
|
168
|
-
setActiveChannel: (channel: IChannel) => void;
|
|
169
|
-
}
|
|
170
189
|
export interface IMarker {
|
|
171
190
|
messageIds: string[];
|
|
172
191
|
user: IUser;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.7784 8.51594C17.1421 8.95254 16.3717 9.20801 15.5417 9.20801C13.3556 9.20801 11.5834 7.4358 11.5834 5.24967C11.5834 4.19857 11.9931 3.24316 12.6615 2.53441C11.8385 2.24208 10.9527 2.08301 10.0299 2.08301C5.67418 2.08301 2.14315 5.62742 2.14315 9.99967C2.14315 11.3588 2.48433 12.6379 3.0854 13.7553L2.11751 16.8735C1.94269 17.4367 2.46849 17.9659 3.03004 17.792L6.073 16.8493C7.23609 17.5278 8.58781 17.9163 10.0299 17.9163C14.3857 17.9163 17.9167 14.372 17.9167 9.99967C17.9167 9.49254 17.8692 8.99656 17.7784 8.51594Z" fill="CurrentColor"/>
|
|
3
|
-
<circle cx="15.5417" cy="5.25" r="1.875" fill="CurrentColor" stroke="CurrentColor"/>
|
|
4
|
-
</svg>
|