@clikvn/agent-widget-embedded 1.1.8-dev-06 → 1.1.8-dev-08
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/.idea/clik-ai-chatbot-embedded.iml +9 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +36 -0
- package/.idea/jsLinters/eslint.xml +7 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/CLAUDE.md +169 -169
- package/README.md +20 -20
- package/base.json +21 -21
- package/dist/components/Chat/AudioPlayerSimple.d.ts +9 -0
- package/dist/components/Chat/AudioPlayerSimple.d.ts.map +1 -0
- package/dist/components/Chat/MultimodalInputSimple.d.ts +22 -0
- package/dist/components/Chat/MultimodalInputSimple.d.ts.map +1 -0
- package/dist/components/Chat/Sidebar.d.ts +8 -0
- package/dist/components/Chat/Sidebar.d.ts.map +1 -0
- package/dist/hooks/useChat.d.ts.map +1 -1
- package/dist/index.html +71 -67
- package/dist/serve.json +11 -0
- package/dist/types/bot.type.d.ts +1 -0
- package/dist/types/bot.type.d.ts.map +1 -1
- package/dist/web.css +3680 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/docs/agent-response-trace/agentflow.txt +62 -62
- package/docs/agent-response-trace/chatflow.txt +26 -26
- package/docs/brand-ui-command-actions-tools.md +269 -269
- package/package.json +1 -1
- package/public/index.html +54 -54
- package/rollup.config.js +67 -67
- package/tailwind.config.cjs +145 -145
package/dist/index.html
CHANGED
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<meta charset="UTF-8"
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
</
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Title</title>
|
|
7
|
+
<script type="module">
|
|
8
|
+
import Agent from 'http://localhost:51747/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
|
|
9
|
+
Agent.initWidget({
|
|
10
|
+
apiHost: 'https://ci-api.clik.vn/chatbot',
|
|
11
|
+
agentId: 'fe4cf6a9-fa43-4986-bc6f-df67092568c6',
|
|
12
|
+
overrideConfig: {
|
|
13
|
+
chatId: 'f6a855d2-7edc-4fb8-9dd3-74204aa1e2a2',
|
|
14
|
+
skipSuggestion: true,
|
|
15
|
+
overrideConfig: {
|
|
16
|
+
vars: {
|
|
17
|
+
TOUR_CODE: 'TOUR_K9EK76KTX7K4',
|
|
18
|
+
LANGUAGE: 'VN',
|
|
19
|
+
CLIK_GRAPHQL_API: 'https://api.clik.vn/graphql',
|
|
20
|
+
CLIK_VIRTUALTOUR_API: 'https://api.clik.vn/vt360'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
listeners: {
|
|
25
|
+
ON_LINK_CLICK: console.log,
|
|
26
|
+
ON_CLICK: (arg) => {
|
|
27
|
+
console.log('ON_CLICK', arg);
|
|
28
|
+
},
|
|
29
|
+
'ON_START_RECORDING': () => {
|
|
30
|
+
console.log('ON_START_RECORDING');
|
|
31
|
+
},
|
|
32
|
+
'ON_CANCEL_RECORDING': () => {
|
|
33
|
+
console.log('ON_CANCEL_RECORDING');
|
|
34
|
+
},
|
|
35
|
+
'ON_FINISHED_RECORDING': () => {
|
|
36
|
+
console.log('ON_FINISHED_RECORDING');
|
|
37
|
+
},
|
|
38
|
+
'ON_SUBMIT_MESSAGE': () => {
|
|
39
|
+
console.log('ON_SUBMIT_MESSAGE');
|
|
40
|
+
},
|
|
41
|
+
'ON_FINISHED_SUBMITTING_MESSAGE': () => {
|
|
42
|
+
console.log('ON_FINISHED_SUBMITTING_MESSAGE');
|
|
43
|
+
},
|
|
44
|
+
'ON_PLAY_AUDIO': () => {
|
|
45
|
+
console.log('ON_PLAY_AUDIO');
|
|
46
|
+
},
|
|
47
|
+
'ON_PAUSE_AUDIO': () => {
|
|
48
|
+
console.log('ON_PAUSE_AUDIO');
|
|
49
|
+
},
|
|
50
|
+
'ON_ENDED_AUDIO': () => {
|
|
51
|
+
console.log('ON_ENDED_AUDIO');
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
theme: {
|
|
55
|
+
modeButtonChat: true,
|
|
56
|
+
simplified: true,
|
|
57
|
+
autoCloseAudioPlayer: true,
|
|
58
|
+
hideAudioMetadata: true,
|
|
59
|
+
noAutoplayMessage: true
|
|
60
|
+
},
|
|
61
|
+
onLoaded: (tool) => {
|
|
62
|
+
console.log('Chatbot loaded!!!');
|
|
63
|
+
window.tool = tool;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
</script>
|
|
67
|
+
</head>
|
|
68
|
+
<body style="background-color: #717182">
|
|
69
|
+
<clik-agent-widget></clik-agent-widget>
|
|
70
|
+
</body>
|
|
71
|
+
</html>
|
package/dist/serve.json
ADDED
package/dist/types/bot.type.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot.type.d.ts","sourceRoot":"","sources":["../../src/types/bot.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"bot.type.d.ts","sourceRoot":"","sources":["../../src/types/bot.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|