@mindly/ui-components 3.19.1 → 3.20.1

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,7 +8,7 @@ declare type ChatListItemProps = {
8
8
  status?: 'sent' | 'viewed';
9
9
  time?: number;
10
10
  timeZone?: string;
11
- lastMessageType?: 'text' | 'file' | 'image' | 'video';
11
+ lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
12
12
  };
13
13
  declare const _default: React.NamedExoticComponent<ChatListItemProps>;
14
14
  export default _default;
@@ -4,7 +4,7 @@ export declare const MessageInfo: import("styled-components").StyledComponent<"d
4
4
  export declare const UserName: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const MessageStatus: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  declare type TextMessageProps = {
7
- lastMessageType: 'text' | 'file' | 'image' | 'video';
7
+ lastMessageType: 'text' | 'file' | 'image' | 'video' | 'system';
8
8
  };
9
9
  export declare const LastMessage: import("styled-components").StyledComponent<"div", any, TextMessageProps, never>;
10
10
  export declare const BadgeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -5,7 +5,7 @@ declare type ChatMessageProps = {
5
5
  time: number;
6
6
  timeZone?: string;
7
7
  status?: 'loading' | 'sent' | 'viewed';
8
- messageType?: 'text' | 'file' | 'image' | 'video';
8
+ messageType?: 'text' | 'file' | 'image' | 'video' | 'system';
9
9
  onFileClick?: (type: 'file' | 'image', link: string) => void;
10
10
  fileInfo?: {
11
11
  originalName: string;
@@ -1,6 +1,6 @@
1
1
  declare type MessageWrapperProps = {
2
2
  position: 'left' | 'right';
3
- messageType: 'text' | 'file' | 'image' | 'video';
3
+ messageType: 'text' | 'file' | 'image' | 'video' | 'system';
4
4
  };
5
5
  export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, MessageWrapperProps, never>;
6
6
  export declare const TextMessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
package/dist/index.d.ts CHANGED
@@ -480,7 +480,7 @@ declare type ChatListItemProps = {
480
480
  status?: 'sent' | 'viewed';
481
481
  time?: number;
482
482
  timeZone?: string;
483
- lastMessageType?: 'text' | 'file' | 'image' | 'video';
483
+ lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
484
484
  };
485
485
  declare const _default$8: React.NamedExoticComponent<ChatListItemProps>;
486
486
 
@@ -490,7 +490,7 @@ declare type ChatMessageProps = {
490
490
  time: number;
491
491
  timeZone?: string;
492
492
  status?: 'loading' | 'sent' | 'viewed';
493
- messageType?: 'text' | 'file' | 'image' | 'video';
493
+ messageType?: 'text' | 'file' | 'image' | 'video' | 'system';
494
494
  onFileClick?: (type: 'file' | 'image', link: string) => void;
495
495
  fileInfo?: {
496
496
  originalName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.19.1",
3
+ "version": "3.20.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -34,6 +34,7 @@
34
34
  "agora-rtc-sdk-ng": "^4.12.2",
35
35
  "auto": "^10.32.0",
36
36
  "date-fns": "^2.28.0",
37
+ "html-react-parser": "^3.0.4",
37
38
  "luxon": "^2.4.0",
38
39
  "react": "^17.0.2",
39
40
  "react-countdown": "^2.3.2",