@satek-team-intern/chatbot-widget 0.10.5 → 0.10.6

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.
@@ -4,9 +4,6 @@ interface UpdateGroupProps {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
6
  group: ChatConversation | null;
7
- removeMember?: (chatId: number, memberId: number) => Promise<void>;
8
- onUpdate: (chatId: number, name: string, avatar?: string | File) => Promise<void>;
9
- primaryColor?: string;
10
7
  }
11
8
  export declare const UpdateGroup: FC<UpdateGroupProps>;
12
9
  export {};
@@ -0,0 +1,5 @@
1
+ import { ChatUser } from '../../../types';
2
+ import { FC } from 'react';
3
+ export declare const AvatarFallback: FC<{
4
+ member: ChatUser;
5
+ }>;
@@ -1,3 +1,3 @@
1
1
  export * from './ChatAvatar';
2
2
  export * from './ToastContainer';
3
- export * from './MemberAvatarFallBack';
3
+ export * from './AvatarFallBack';
@@ -1,11 +1,8 @@
1
- import { FC, MouseEvent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { ChatConversation } from '../../../types';
3
3
  interface ChatListProps {
4
4
  chats: ChatConversation[];
5
5
  onSelectChat: (chat: ChatConversation) => void;
6
- onRemoveChat: (chatId: number, e: MouseEvent<HTMLDivElement>) => void;
7
- onUpdateGroup?: (chat: ChatConversation) => void;
8
- onAddMemberClick?: (chat: ChatConversation) => void;
9
6
  }
10
7
  export declare const ChatList: FC<ChatListProps>;
11
8
  export {};
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { ChatConversation, ChatUser } from '../../../types';
3
+ interface ChatListItemProps {
4
+ chat: ChatConversation;
5
+ onSelectChat: (chat: ChatConversation) => void;
6
+ onAvatarClick: (user: ChatUser, isOnline: boolean) => void;
7
+ }
8
+ export declare const ChatListItem: FC<ChatListItemProps>;
9
+ export {};
@@ -3,7 +3,6 @@ import { ChatConversation } from '../../../types';
3
3
  interface GroupListProps {
4
4
  groups: ChatConversation[];
5
5
  onGroupClick: (group: ChatConversation) => void;
6
- currentUserId?: number;
7
6
  }
8
7
  export declare const GroupList: FC<GroupListProps>;
9
8
  export {};
@@ -1,7 +1,8 @@
1
1
  import { FC } from 'react';
2
- import { ChatMessage } from '../../../types';
2
+ import { ChatMessage, ChatUser } from '../../../types';
3
3
  interface MessageItemProps {
4
4
  message: ChatMessage;
5
+ onHandleClick: (user: ChatUser) => void;
5
6
  }
6
7
  export declare const MessageItem: FC<MessageItemProps>;
7
8
  export {};
@@ -5,3 +5,4 @@ export * from './GroupList';
5
5
  export * from './MessageFiles';
6
6
  export * from './MessageItem';
7
7
  export * from './MessageList';
8
+ export * from './ChatListItem';
@@ -12,6 +12,7 @@ export interface FeatureAnalysis {
12
12
  hasAttachment: boolean;
13
13
  hasMultipleAttachments: boolean;
14
14
  hasGroupChat: boolean;
15
+ hasSingleChat: boolean;
15
16
  hasChangeColor: boolean;
16
17
  hasMultipleLanguages: boolean;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satek-team-intern/chatbot-widget",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "A widget chatbot can be integrated into any website, providing a seamless and interactive user experience. It is designed to be easily embedded and customizable, allowing businesses to engage with their customers effectively.",
5
5
  "author": "Satek Team",
6
6
  "license": "MIT",