@mxmweb/aichat 1.4.14 → 1.4.16
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.
|
@@ -31,11 +31,12 @@ interface CustomComponents {
|
|
|
31
31
|
interface GientechChatAdopterProps {
|
|
32
32
|
token: string;
|
|
33
33
|
url?: string;
|
|
34
|
+
CSRFToken?: string;
|
|
34
35
|
styles?: AiChatStyles;
|
|
35
36
|
eventsEmit?: (eventName: string, data: any) => void;
|
|
36
37
|
CustomComponents?: CustomComponents;
|
|
37
38
|
senderConfig?: SenderConfig;
|
|
38
39
|
[key: string]: any;
|
|
39
40
|
}
|
|
40
|
-
export default function withGientechChatAdopter(WrappedComponent?: typeof AiChat): ({ token, url, styles, eventsEmit, ...rest }: GientechChatAdopterProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default function withGientechChatAdopter(WrappedComponent?: typeof AiChat): ({ token, url, styles, CSRFToken, eventsEmit, ...rest }: GientechChatAdopterProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
42
|
export {};
|
|
@@ -18,9 +18,10 @@ export declare enum StatusType {
|
|
|
18
18
|
Done = 2,
|
|
19
19
|
Error = 3
|
|
20
20
|
}
|
|
21
|
-
declare const AichatUseController: ({ baseUrl, token, setChatData, activeSessionId, setAppStatus, setConversationList, }: {
|
|
21
|
+
declare const AichatUseController: ({ baseUrl, token, CSRFToken, setChatData, activeSessionId, setAppStatus, setConversationList, }: {
|
|
22
22
|
baseUrl: string;
|
|
23
23
|
token: string;
|
|
24
|
+
CSRFToken?: string;
|
|
24
25
|
setChatData: (arg: any[] | ((prev: any[]) => any[])) => void;
|
|
25
26
|
activeSessionId: string | undefined;
|
|
26
27
|
setAppStatus: React.Dispatch<React.SetStateAction<AppStatusManager>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const handleFeedBack: (config: {
|
|
2
2
|
url: string;
|
|
3
3
|
token: string;
|
|
4
|
+
CSRFToken?: string;
|
|
4
5
|
}, data: {
|
|
5
6
|
restult: number;
|
|
6
7
|
queryId: string;
|
|
@@ -8,6 +9,7 @@ export declare const handleFeedBack: (config: {
|
|
|
8
9
|
export declare const handleCancelFeedBack: (config: {
|
|
9
10
|
url: string;
|
|
10
11
|
token: string;
|
|
12
|
+
CSRFToken?: string;
|
|
11
13
|
}, data: {
|
|
12
14
|
queryId: string;
|
|
13
15
|
}, cb: () => void) => Promise<void>;
|
|
@@ -18,6 +20,7 @@ export declare const getFeedbackList: (config: {
|
|
|
18
20
|
export declare const handleRename: (config: {
|
|
19
21
|
url: string;
|
|
20
22
|
token: string;
|
|
23
|
+
CSRFToken?: string;
|
|
21
24
|
}, data: {
|
|
22
25
|
label: string;
|
|
23
26
|
sessionId: string;
|
|
@@ -25,12 +28,14 @@ export declare const handleRename: (config: {
|
|
|
25
28
|
export declare const handleDeleteConversation: (config: {
|
|
26
29
|
url: string;
|
|
27
30
|
token: string;
|
|
31
|
+
CSRFToken?: string;
|
|
28
32
|
}, data: {
|
|
29
33
|
sessionId: string;
|
|
30
34
|
}, cb: (arg: any) => void) => Promise<void>;
|
|
31
35
|
export declare const handleCreateConversation: (config: {
|
|
32
36
|
url: string;
|
|
33
37
|
token: string;
|
|
38
|
+
CSRFToken?: string;
|
|
34
39
|
}, data: {
|
|
35
40
|
label: string;
|
|
36
41
|
sessionId: string;
|
|
@@ -40,6 +45,7 @@ export declare const handleCreateConversation: (config: {
|
|
|
40
45
|
export declare const removeFilefromTempUpload: (config: {
|
|
41
46
|
url: string;
|
|
42
47
|
token: string;
|
|
48
|
+
CSRFToken?: string;
|
|
43
49
|
}, params: {
|
|
44
50
|
uid: string;
|
|
45
51
|
queryId?: string;
|