intellinum-chatbot 1.0.0
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/dist/index.css +37 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +1019 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +980 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +45 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* src/atoms/CustomLoading/customLoading.css */
|
|
2
|
+
.typing-dots {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
width: max-content;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
}
|
|
9
|
+
.typing-dots span {
|
|
10
|
+
width: 8px;
|
|
11
|
+
height: 8px;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
animation: typing 1.5s infinite ease-in-out;
|
|
14
|
+
}
|
|
15
|
+
.typing-dots span:nth-child(1) {
|
|
16
|
+
animation-delay: 0s;
|
|
17
|
+
background-color: #24315e;
|
|
18
|
+
}
|
|
19
|
+
.typing-dots span:nth-child(2) {
|
|
20
|
+
animation-delay: 0.2s;
|
|
21
|
+
background-color: #f37c21;
|
|
22
|
+
}
|
|
23
|
+
.typing-dots span:nth-child(3) {
|
|
24
|
+
animation-delay: 0.4s;
|
|
25
|
+
background-color: #189dd8;
|
|
26
|
+
}
|
|
27
|
+
@keyframes typing {
|
|
28
|
+
0%, 80%, 100% {
|
|
29
|
+
transform: scale(0);
|
|
30
|
+
opacity: 0.5;
|
|
31
|
+
}
|
|
32
|
+
40% {
|
|
33
|
+
transform: scale(1);
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/CustomLoading/customLoading.css"],"sourcesContent":[".typing-dots {\r\n display: flex;\r\n align-items: center;\r\n gap: 4px;\r\n /* height: 40px; */\r\n width: max-content;\r\n margin: 0 auto;\r\n}\r\n\r\n.typing-dots span {\r\n width: 8px;\r\n height: 8px;\r\n border-radius: 50%;\r\n animation: typing 1.5s infinite ease-in-out;\r\n}\r\n\r\n.typing-dots span:nth-child(1) {\r\n animation-delay: 0s;\r\n background-color: #24315e;\r\n}\r\n\r\n.typing-dots span:nth-child(2) {\r\n animation-delay: 0.2s;\r\n background-color: #f37c21;\r\n}\r\n\r\n.typing-dots span:nth-child(3) {\r\n animation-delay: 0.4s;\r\n background-color: #189dd8;\r\n}\r\n\r\n@keyframes typing {\r\n 0%,\r\n 80%,\r\n 100% {\r\n transform: scale(0);\r\n opacity: 0.5;\r\n }\r\n 40% {\r\n transform: scale(1);\r\n opacity: 1;\r\n }\r\n}\r\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK;AAEL,SAAO;AACP,UAAQ,EAAE;AACZ;AAEA,CATC,YASY;AACX,SAAO;AACP,UAAQ;AACR,iBAAe;AACf,aAAW,OAAO,KAAK,SAAS;AAClC;AAEA,CAhBC,YAgBY,IAAI;AACf,mBAAiB;AACjB,oBAAkB;AACpB;AAEA,CArBC,YAqBY,IAAI;AACf,mBAAiB;AACjB,oBAAkB;AACpB;AAEA,CA1BC,YA0BY,IAAI;AACf,mBAAiB;AACjB,oBAAkB;AACpB;AAEA,WAlBa;AAmBX;AAGE,eAAW,MAAM;AACjB,aAAS;AACX;AACA;AACE,eAAW,MAAM;AACjB,aAAS;AACX;AACF;","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React$1 from 'react';
|
|
3
|
+
|
|
4
|
+
type Props$5 = {};
|
|
5
|
+
declare const IntellinumChat: (props: Props$5) => react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type Props$4 = {};
|
|
8
|
+
declare const ChatSender: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type Props$3 = {
|
|
11
|
+
data: {
|
|
12
|
+
id: number;
|
|
13
|
+
date: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
declare const ChatHistory: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
type Props$2 = {};
|
|
20
|
+
declare const SuggestionChat: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
type ChatType = {
|
|
23
|
+
jobId: string;
|
|
24
|
+
conversationId: string;
|
|
25
|
+
status: string;
|
|
26
|
+
workflowCode: string;
|
|
27
|
+
createDate: string;
|
|
28
|
+
endDate: string;
|
|
29
|
+
output: string;
|
|
30
|
+
input: string;
|
|
31
|
+
};
|
|
32
|
+
type ChatContextType = {
|
|
33
|
+
chatHistories: any[];
|
|
34
|
+
setChatHistories: React.Dispatch<React.SetStateAction<any>>;
|
|
35
|
+
chats: ChatType[];
|
|
36
|
+
setChats: React.Dispatch<React.SetStateAction<ChatType[]>>;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
39
|
+
isLoadingResponse: boolean;
|
|
40
|
+
setIsLoadingResponse: React.Dispatch<React.SetStateAction<boolean>>;
|
|
41
|
+
disallowChattingMessage: string;
|
|
42
|
+
setDisallowChattingMessage: React.Dispatch<React.SetStateAction<string>>;
|
|
43
|
+
handleNewChat: () => void;
|
|
44
|
+
handleSendChat: (message: string) => Promise<void>;
|
|
45
|
+
handleResponseChat: () => void;
|
|
46
|
+
handleChangeTopic: () => void;
|
|
47
|
+
handleAttachFile: () => void;
|
|
48
|
+
handleDeleteChat: () => void;
|
|
49
|
+
handleGetHistoryChat: () => void;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type Props$1 = {
|
|
53
|
+
onResponseChat?: (output: ChatType) => void;
|
|
54
|
+
};
|
|
55
|
+
declare const Chatting: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
type Props = {
|
|
58
|
+
ORACLE_TOKEN_URL: string;
|
|
59
|
+
ORACLE_BASE_URL: string;
|
|
60
|
+
ORACLE_CLIENT_ID: string;
|
|
61
|
+
ORACLE_CLIENT_SECRET: string;
|
|
62
|
+
ORACLE_SCOPE: string;
|
|
63
|
+
PROXY_URL: string;
|
|
64
|
+
WORKFLOW_CODE: string;
|
|
65
|
+
children: React$1.ReactNode;
|
|
66
|
+
};
|
|
67
|
+
declare function ChatProvider(props: Props): react_jsx_runtime.JSX.Element;
|
|
68
|
+
declare const useChat: () => ChatContextType;
|
|
69
|
+
|
|
70
|
+
export { ChatHistory, ChatProvider, ChatSender, Chatting, SuggestionChat, IntellinumChat as default, useChat };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React$1 from 'react';
|
|
3
|
+
|
|
4
|
+
type Props$5 = {};
|
|
5
|
+
declare const IntellinumChat: (props: Props$5) => react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type Props$4 = {};
|
|
8
|
+
declare const ChatSender: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type Props$3 = {
|
|
11
|
+
data: {
|
|
12
|
+
id: number;
|
|
13
|
+
date: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
declare const ChatHistory: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
type Props$2 = {};
|
|
20
|
+
declare const SuggestionChat: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
type ChatType = {
|
|
23
|
+
jobId: string;
|
|
24
|
+
conversationId: string;
|
|
25
|
+
status: string;
|
|
26
|
+
workflowCode: string;
|
|
27
|
+
createDate: string;
|
|
28
|
+
endDate: string;
|
|
29
|
+
output: string;
|
|
30
|
+
input: string;
|
|
31
|
+
};
|
|
32
|
+
type ChatContextType = {
|
|
33
|
+
chatHistories: any[];
|
|
34
|
+
setChatHistories: React.Dispatch<React.SetStateAction<any>>;
|
|
35
|
+
chats: ChatType[];
|
|
36
|
+
setChats: React.Dispatch<React.SetStateAction<ChatType[]>>;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
39
|
+
isLoadingResponse: boolean;
|
|
40
|
+
setIsLoadingResponse: React.Dispatch<React.SetStateAction<boolean>>;
|
|
41
|
+
disallowChattingMessage: string;
|
|
42
|
+
setDisallowChattingMessage: React.Dispatch<React.SetStateAction<string>>;
|
|
43
|
+
handleNewChat: () => void;
|
|
44
|
+
handleSendChat: (message: string) => Promise<void>;
|
|
45
|
+
handleResponseChat: () => void;
|
|
46
|
+
handleChangeTopic: () => void;
|
|
47
|
+
handleAttachFile: () => void;
|
|
48
|
+
handleDeleteChat: () => void;
|
|
49
|
+
handleGetHistoryChat: () => void;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type Props$1 = {
|
|
53
|
+
onResponseChat?: (output: ChatType) => void;
|
|
54
|
+
};
|
|
55
|
+
declare const Chatting: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
type Props = {
|
|
58
|
+
ORACLE_TOKEN_URL: string;
|
|
59
|
+
ORACLE_BASE_URL: string;
|
|
60
|
+
ORACLE_CLIENT_ID: string;
|
|
61
|
+
ORACLE_CLIENT_SECRET: string;
|
|
62
|
+
ORACLE_SCOPE: string;
|
|
63
|
+
PROXY_URL: string;
|
|
64
|
+
WORKFLOW_CODE: string;
|
|
65
|
+
children: React$1.ReactNode;
|
|
66
|
+
};
|
|
67
|
+
declare function ChatProvider(props: Props): react_jsx_runtime.JSX.Element;
|
|
68
|
+
declare const useChat: () => ChatContextType;
|
|
69
|
+
|
|
70
|
+
export { ChatHistory, ChatProvider, ChatSender, Chatting, SuggestionChat, IntellinumChat as default, useChat };
|