@satek-team-intern/chatbot-widget 0.10.2 → 0.10.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/README.md +1 -1
- package/dist/chatbot-widget.es.js +821 -1040
- package/dist/chatbot-widget.umd.js +13 -10
- package/dist/src/assets/Icons.d.ts +1 -1
- package/dist/src/components/modals/AddMember.d.ts +0 -7
- package/dist/src/components/sidebar/AppSideBar.d.ts +1 -3
- package/dist/src/components/sidebar/ChatInfoPanel.d.ts +1 -2
- package/dist/src/components/sidebar/ChatList.d.ts +0 -1
- package/dist/src/components/view/ChatInput.d.ts +1 -5
- package/dist/src/components/view/ContactList.d.ts +0 -2
- package/dist/src/hooks/useChat.d.ts +1 -1
- package/dist/src/types/types.d.ts +3 -3
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/validate.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ export declare const SortASCIcon: import('react').ForwardRefExoticComponent<Omit
|
|
|
38
38
|
export declare const SortDESCIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
39
39
|
export declare const LikeIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
40
40
|
export declare const LoveIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
41
|
-
export declare const
|
|
41
|
+
export declare const DeleteIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
42
42
|
export declare const RevokeMessageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
43
43
|
export declare const SeenIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
44
44
|
export declare const LanguageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -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
|
-
|
|
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
|
|
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<
|
|
8
|
-
export {};
|
|
4
|
+
export declare const ChatInput: import('react').ForwardRefExoticComponent<import('react').RefAttributes<ChatInputHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AuthInfo } from '../../types';
|
|
2
|
-
export declare const useChat: (chatKey: string, authInfo: AuthInfo, workspace
|
|
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
|
|
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
|
|
45
|
+
workspace: string;
|
|
47
46
|
logoUrl?: string;
|
|
48
47
|
primaryColor?: string;
|
|
49
48
|
auth: AuthInfo;
|
|
49
|
+
chatKey: string;
|
|
50
50
|
features?: WidgetFeature;
|
|
51
51
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "0.10.4",
|
|
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",
|