@cagent/chat-embedding-core 0.0.21 → 0.0.22
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/components/Bot.d.ts +2 -0
- package/dist/features/sso/ssoSession.d.ts +12 -0
- package/dist/web.d.ts +2 -0
- package/dist/web.js +1 -1
- package/dist/window.d.ts +1 -0
- package/package.json +1 -1
- package/public/popup.html +6 -111
package/dist/window.d.ts
CHANGED
package/package.json
CHANGED
package/public/popup.html
CHANGED
|
@@ -8,119 +8,14 @@
|
|
|
8
8
|
<body>
|
|
9
9
|
<h1>Popup embed test page</h1>
|
|
10
10
|
|
|
11
|
-
<!-- <script type="module">
|
|
12
|
-
import Chatbot from "https://cdn.jsdelivr.net/npm/@cagent/chat-embedding-core/dist/web.js"
|
|
13
|
-
Chatbot.init({
|
|
14
|
-
chatflowid: "0d123af8-47e3-4caa-a428-b68e2a4ea984",
|
|
15
|
-
apiHost: "https://staging-tester-cagent-backend.3hhgm5.easypanel.host",
|
|
16
|
-
})
|
|
17
|
-
</script> -->
|
|
18
11
|
<script type="module">
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/* Chatflow Config */
|
|
25
|
-
},
|
|
26
|
-
observersConfig: {
|
|
27
|
-
/* Observers Config */
|
|
28
|
-
},
|
|
29
|
-
theme: {
|
|
30
|
-
button: {
|
|
31
|
-
backgroundColor: '#3B81F6',
|
|
32
|
-
right: 20,
|
|
33
|
-
bottom: 20,
|
|
34
|
-
size: 48,
|
|
35
|
-
dragAndDrop: true,
|
|
36
|
-
iconColor: 'white',
|
|
37
|
-
customIconSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
|
|
38
|
-
autoWindowOpen: {
|
|
39
|
-
autoOpen: true,
|
|
40
|
-
openDelay: 2,
|
|
41
|
-
autoOpenOnMobile: false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
tooltip: {
|
|
45
|
-
showTooltip: true,
|
|
46
|
-
tooltipMessage: 'Hi There 👋!',
|
|
47
|
-
tooltipBackgroundColor: 'black',
|
|
48
|
-
tooltipTextColor: 'white',
|
|
49
|
-
tooltipFontSize: 16
|
|
50
|
-
},
|
|
51
|
-
disclaimer: {
|
|
52
|
-
title: 'Disclaimer',
|
|
53
|
-
message: "By using this chatbot, you agree to the <a target=\"_blank\" href=\"#\">Terms & Condition</a>",
|
|
54
|
-
textColor: 'black',
|
|
55
|
-
buttonColor: '#3b82f6',
|
|
56
|
-
buttonText: 'Start Chatting',
|
|
57
|
-
buttonTextColor: 'white',
|
|
58
|
-
blurredBackgroundColor: 'rgba(0, 0, 0, 0.4)',
|
|
59
|
-
backgroundColor: 'white'
|
|
60
|
-
},
|
|
61
|
-
customCSS: ``,
|
|
62
|
-
chatWindow: {
|
|
63
|
-
showTitle: true,
|
|
64
|
-
showAgentMessages: true,
|
|
65
|
-
title: 'Agent Studio Bot',
|
|
66
|
-
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
|
|
67
|
-
welcomeMessage: 'Hello! This is custom welcome message',
|
|
68
|
-
errorMessage: 'This is a custom error message',
|
|
69
|
-
backgroundColor: '#ffffff',
|
|
70
|
-
backgroundImage: 'enter image path or link',
|
|
71
|
-
height: 700,
|
|
72
|
-
width: 400,
|
|
73
|
-
fontSize: 16,
|
|
74
|
-
starterPrompts: [
|
|
75
|
-
"What is a bot?",
|
|
76
|
-
"Who are you?"
|
|
77
|
-
],
|
|
78
|
-
starterPromptFontSize: 15,
|
|
79
|
-
clearChatOnReload: false,
|
|
80
|
-
sourceDocsTitle: 'Sources:',
|
|
81
|
-
renderHTML: true,
|
|
82
|
-
botMessage: {
|
|
83
|
-
backgroundColor: '#f7f8ff',
|
|
84
|
-
textColor: '#303235',
|
|
85
|
-
showAvatar: true,
|
|
86
|
-
avatarSrc: 'https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/parroticon.png'
|
|
87
|
-
},
|
|
88
|
-
userMessage: {
|
|
89
|
-
backgroundColor: '#3B81F6',
|
|
90
|
-
textColor: '#ffffff',
|
|
91
|
-
showAvatar: true,
|
|
92
|
-
avatarSrc: 'https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png'
|
|
93
|
-
},
|
|
94
|
-
textInput: {
|
|
95
|
-
placeholder: 'Type your question',
|
|
96
|
-
backgroundColor: '#ffffff',
|
|
97
|
-
textColor: '#303235',
|
|
98
|
-
sendButtonColor: '#3B81F6',
|
|
99
|
-
maxChars: 50,
|
|
100
|
-
maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
|
|
101
|
-
autoFocus: true,
|
|
102
|
-
sendMessageSound: true,
|
|
103
|
-
sendSoundLocation: 'send_message.mp3',
|
|
104
|
-
receiveMessageSound: true,
|
|
105
|
-
receiveSoundLocation: 'receive_message.mp3'
|
|
106
|
-
},
|
|
107
|
-
feedback: {
|
|
108
|
-
color: '#303235'
|
|
109
|
-
},
|
|
110
|
-
dateTimeToggle: {
|
|
111
|
-
date: true,
|
|
112
|
-
time: true
|
|
113
|
-
},
|
|
114
|
-
footer: {
|
|
115
|
-
textColor: '#303235',
|
|
116
|
-
text: 'Powered by',
|
|
117
|
-
company: 'Agent Studio',
|
|
118
|
-
companyLink: '#'
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
})
|
|
12
|
+
import Chatbot from "./web.js"
|
|
13
|
+
Chatbot.init({
|
|
14
|
+
chatflowid: "b38a8ab3-1a92-4555-b9f3-77493a265563",
|
|
15
|
+
apiHost: "https://gov.cagent.cmcts.ai",
|
|
16
|
+
})
|
|
123
17
|
</script>
|
|
124
18
|
|
|
19
|
+
|
|
125
20
|
</body>
|
|
126
21
|
</html>
|