@clikvn/agent-widget-embedded 1.1.10-dev-04 → 1.1.10-dev-06
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.html +2 -2
- package/dist/simplifiedRegister.d.ts +53 -0
- package/dist/simplifiedRegister.d.ts.map +1 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/dist/window.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/index.html +54 -54
package/dist/window.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../src/window.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../src/window.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EAEhB,MAAM,YAAY,CAAC;AAIpB,eAAO,MAAM,UAAU,UACd,eAAe,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,SAoB/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,UACxB,eAAe,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,SA6B/D,CAAC;AAEF,eAAO,MAAM,OAAO,YAEnB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;IAClD,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB,CAAC;AAQF,eAAO,MAAM,iBAAiB;wBAtErB,eAAe,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE;kCAuBvD,eAAe,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE;;CAmD9D,CAAC;AAEH,eAAO,MAAM,0BAA0B,UAAW,WAAW,SAG5D,CAAC"}
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="vi">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>Clik Agent Widget - Dev</title>
|
|
7
|
-
<style>
|
|
8
|
-
html,
|
|
9
|
-
body {
|
|
10
|
-
height: 100%;
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
<script type="module">
|
|
21
|
-
import Agent from 'http://localhost:3000/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
|
|
22
|
-
Agent.initWidget({
|
|
23
|
-
apiHost: 'https://ci-api.clik.vn/chatbot',
|
|
24
|
-
agentId: 'fe4cf6a9-fa43-4986-bc6f-df67092568c6',
|
|
25
|
-
overrideConfig: {
|
|
26
|
-
chatId: 'f6a855d2-7edc-4fb8-9dd3-74204aa1e2a2',
|
|
27
|
-
skipSuggestion: true,
|
|
28
|
-
overrideConfig: {
|
|
29
|
-
vars: {
|
|
30
|
-
TOUR_CODE: 'TOUR_K9EK76KTX7K4',
|
|
31
|
-
LANGUAGE: 'VN',
|
|
32
|
-
CLIK_GRAPHQL_API: 'https://api.clik.vn/graphql',
|
|
33
|
-
CLIK_VIRTUALTOUR_API: 'https://api.clik.vn/vt360',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
listeners: {
|
|
38
|
-
ON_LINK_CLICK: console.log,
|
|
39
|
-
},
|
|
40
|
-
theme: {
|
|
41
|
-
simplified: true,
|
|
42
|
-
autoCloseAudioPlayer: true,
|
|
43
|
-
hideAudioMetadata: true,
|
|
44
|
-
},
|
|
45
|
-
onLoaded: (tool) => {
|
|
46
|
-
window.tool = tool;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
</script>
|
|
50
|
-
</head>
|
|
51
|
-
<body>
|
|
52
|
-
<clik-agent-widget></clik-agent-widget>
|
|
53
|
-
</body>
|
|
54
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="vi">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Clik Agent Widget - Dev</title>
|
|
7
|
+
<style>
|
|
8
|
+
html,
|
|
9
|
+
body {
|
|
10
|
+
height: 100%;
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<script type="module">
|
|
21
|
+
import Agent from 'http://localhost:3000/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
|
|
22
|
+
Agent.initWidget({
|
|
23
|
+
apiHost: 'https://ci-api.clik.vn/chatbot',
|
|
24
|
+
agentId: 'fe4cf6a9-fa43-4986-bc6f-df67092568c6',
|
|
25
|
+
overrideConfig: {
|
|
26
|
+
chatId: 'f6a855d2-7edc-4fb8-9dd3-74204aa1e2a2',
|
|
27
|
+
skipSuggestion: true,
|
|
28
|
+
overrideConfig: {
|
|
29
|
+
vars: {
|
|
30
|
+
TOUR_CODE: 'TOUR_K9EK76KTX7K4',
|
|
31
|
+
LANGUAGE: 'VN',
|
|
32
|
+
CLIK_GRAPHQL_API: 'https://api.clik.vn/graphql',
|
|
33
|
+
CLIK_VIRTUALTOUR_API: 'https://api.clik.vn/vt360',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
listeners: {
|
|
38
|
+
ON_LINK_CLICK: console.log,
|
|
39
|
+
},
|
|
40
|
+
theme: {
|
|
41
|
+
simplified: true,
|
|
42
|
+
autoCloseAudioPlayer: true,
|
|
43
|
+
hideAudioMetadata: true,
|
|
44
|
+
},
|
|
45
|
+
onLoaded: (tool) => {
|
|
46
|
+
window.tool = tool;
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
</script>
|
|
50
|
+
</head>
|
|
51
|
+
<body>
|
|
52
|
+
<clik-agent-widget></clik-agent-widget>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|