sceyt-chat-react-uikit 1.8.8-beta.2 → 1.8.8-beta.4
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/Channel/index.test.d.ts +1 -0
- package/index.js +512 -406
- package/index.modern.js +512 -406
- package/package.json +1 -1
- package/types/index.d.ts +7 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -82,6 +82,12 @@ export interface IMarker {
|
|
|
82
82
|
createdAt: Date;
|
|
83
83
|
user: IUser | null;
|
|
84
84
|
}
|
|
85
|
+
export interface IMessageListMarker {
|
|
86
|
+
messageIds: string[];
|
|
87
|
+
user: IUser | null;
|
|
88
|
+
name?: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
}
|
|
85
91
|
export interface IPollOption {
|
|
86
92
|
id: string;
|
|
87
93
|
name: string;
|
|
@@ -225,7 +231,7 @@ export interface IChannel {
|
|
|
225
231
|
mute: (_muteExpireTime: number) => Promise<IChannel>;
|
|
226
232
|
unmute: () => Promise<IChannel>;
|
|
227
233
|
markMessagesAsReceived: (_messageIds: string[]) => Promise<void>;
|
|
228
|
-
markMessagesAsDisplayed: (_messageIds: string[]) => Promise<void>;
|
|
234
|
+
markMessagesAsDisplayed: (_messageIds: string[]) => Promise<IMessageListMarker | void>;
|
|
229
235
|
startTyping: () => void;
|
|
230
236
|
stopTyping: () => void;
|
|
231
237
|
sendMessage: (message: any) => Promise<any>;
|