@satek-team-intern/chatbot-widget 0.10.2 → 0.10.3

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.
@@ -1,13 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { ChatUser, ChatConversation } from '../../../types';
3
2
  interface AddMemberProps {
4
- isOpen: boolean;
5
3
  onClose: () => void;
6
- group: ChatConversation | null;
7
- members: ChatUser[];
8
- currentChatMembers: ChatUser[];
9
- onAddMember: (chatId: number, memberId: number) => Promise<void>;
10
- primaryColor?: string;
11
4
  }
12
5
  export declare const AddMember: FC<AddMemberProps>;
13
6
  export {};
@@ -1,7 +1,5 @@
1
- import { ChatUser } from '../../../types';
2
- export declare const AppSideBar: ({ setIsThemeModalOpen, currentUser, activeTab, setActiveTab, }: {
1
+ export declare const AppSideBar: ({ setIsThemeModalOpen, activeTab, setActiveTab, }: {
3
2
  setIsThemeModalOpen: (open: boolean) => void;
4
- currentUser: ChatUser;
5
3
  activeTab: "chats" | "contacts";
6
4
  setActiveTab: (tab: "chats" | "contacts") => void;
7
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { ChatConversation, ChatUser } from '../../../types';
2
+ import { ChatConversation } from '../../../types';
3
3
  interface SideBarInfoChatProps {
4
- currentUser: ChatUser | null;
5
4
  onClose: () => void;
6
5
  onAddMember: () => void;
7
6
  onUpdateGroup?: (chat: ChatConversation) => void;
@@ -2,7 +2,6 @@ import { FC, MouseEvent } from 'react';
2
2
  import { ChatConversation } from '../../../types';
3
3
  interface ChatListProps {
4
4
  chats: ChatConversation[];
5
- selectedChat: ChatConversation | null;
6
5
  onSelectChat: (chat: ChatConversation) => void;
7
6
  onRemoveChat: (chatId: number, e: MouseEvent<HTMLDivElement>) => void;
8
7
  onUpdateGroup?: (chat: ChatConversation) => void;
@@ -1,8 +1,4 @@
1
- interface ChatInputProps {
2
- primaryColor?: string;
3
- }
4
1
  export interface ChatInputHandle {
5
2
  processPastedFiles: (files: FileList) => void;
6
3
  }
7
- export declare const ChatInput: import('react').ForwardRefExoticComponent<ChatInputProps & import('react').RefAttributes<ChatInputHandle>>;
8
- export {};
4
+ export declare const ChatInput: import('react').ForwardRefExoticComponent<import('react').RefAttributes<ChatInputHandle>>;
@@ -1,7 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ChatUser } from '../../../types';
3
2
  interface ContactListProps {
4
- members: ChatUser[];
5
3
  onMessageClick: (memberId: string) => void;
6
4
  }
7
5
  export declare const ContactList: FC<ContactListProps>;
@@ -1,2 +1,2 @@
1
1
  import { AuthInfo } from '../../types';
2
- export declare const useChat: (chatKey: string, authInfo: AuthInfo, workspace?: string) => void;
2
+ export declare const useChat: (chatKey: string, authInfo: AuthInfo, workspace: string) => void;
@@ -2,7 +2,7 @@ export type WidgetMode = 'closed' | 'popup' | 'fullpage';
2
2
  export interface AuthInfo {
3
3
  code: string;
4
4
  name: string;
5
- avatar: string;
5
+ avatar?: string;
6
6
  phone?: string;
7
7
  email: string;
8
8
  }
@@ -41,11 +41,11 @@ export interface WidgetFeature {
41
41
  customizations?: WidgetCustomizationOptions[];
42
42
  }
43
43
  export interface ChatWidgetProps {
44
- chatKey: string;
45
44
  title?: string;
46
- workspace?: string;
45
+ workspace: string;
47
46
  logoUrl?: string;
48
47
  primaryColor?: string;
49
48
  auth: AuthInfo;
49
+ chatKey: string;
50
50
  features?: WidgetFeature;
51
51
  }
@@ -2,3 +2,4 @@ export * from './chat.utils';
2
2
  export * from './format.utils';
3
3
  export * from './voice.utils';
4
4
  export * from './file.utils';
5
+ export * from './validate.utils';
@@ -0,0 +1 @@
1
+ export declare const isStandardUrl: (urlString: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satek-team-intern/chatbot-widget",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
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",