sceyt-chat-react-uikit 1.8.7 → 1.8.8-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.
@@ -8,6 +8,10 @@ declare const MessageStatusIcon: ({ messageStatus, messageStatusDisplayingType,
8
8
  readIconColor?: string | undefined;
9
9
  accentColor?: string | undefined;
10
10
  }) => React.JSX.Element;
11
+ declare function extractUrlMatches(text: string): Array<{
12
+ text: string;
13
+ url: string;
14
+ }> | null;
11
15
  declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts, isLastMessage, asSampleText, accentColor, textSecondary, onMentionNameClick, shouldOpenUserProfileForMention, unsupportedMessage, target, isInviteLink, onInviteLinkClick }: {
12
16
  text: string;
13
17
  message: any;
@@ -24,4 +28,4 @@ declare const MessageTextFormat: ({ text, message, contactsMap, getFromContacts,
24
28
  isInviteLink?: boolean | undefined;
25
29
  onInviteLinkClick?: ((key: string) => void) | undefined;
26
30
  }) => any;
27
- export { MessageStatusIcon, MessageTextFormat };
31
+ export { MessageStatusIcon, MessageTextFormat, extractUrlMatches };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.8.7",
3
+ "version": "1.8.8-beta.10",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",
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;
@@ -219,13 +225,14 @@ export interface IChannel {
219
225
  deleteAllMessages: (forEveryone?: boolean) => Promise<void>;
220
226
  hide: () => Promise<boolean>;
221
227
  unhide: () => Promise<boolean>;
228
+ markAsRead: () => Promise<IChannel>;
222
229
  markAsUnRead: () => Promise<IChannel>;
223
230
  pin: () => Promise<IChannel>;
224
231
  unpin: () => Promise<IChannel>;
225
232
  mute: (_muteExpireTime: number) => Promise<IChannel>;
226
233
  unmute: () => Promise<IChannel>;
227
234
  markMessagesAsReceived: (_messageIds: string[]) => Promise<void>;
228
- markMessagesAsDisplayed: (_messageIds: string[]) => Promise<void>;
235
+ markMessagesAsDisplayed: (_messageIds: string[]) => Promise<IMessageListMarker | void>;
229
236
  startTyping: () => void;
230
237
  stopTyping: () => void;
231
238
  sendMessage: (message: any) => Promise<any>;