@eka-care/medassist-widget-embed 0.0.1 → 0.0.3
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.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -15
- package/dist/src/medassist-widget.css +1 -1
- package/dist/src/medassist-widget.js +36 -17
- package/dist/src/medassist-widget.js.map +1 -1
- package/index.ts +32 -15
- package/package.json +1 -1
- package/src/medassist-widget.css +1 -1
- package/src/medassist-widget.js +36 -17
- package/src/medassist-widget.js.map +1 -1
- package/test.html +8 -14
package/test.html
CHANGED
|
@@ -8,23 +8,17 @@
|
|
|
8
8
|
<p>This page loads fast because the chatbot widget is lazy-loaded.</p>
|
|
9
9
|
|
|
10
10
|
<eka-medassist-widget
|
|
11
|
-
agent-id="MDY4YWE2NGMtNjdiNi00MjhlLTk3NGUtM2Q2NWMwMmQ5Yjg2IzEyMzQ1Njcx"
|
|
11
|
+
agent-id="MDY4YWE2NGMtNjdiNi00MjhlLTk3NGUtM2Q2NWMwMmQ5Yjg2IzEyMzQ1Njcx"
|
|
12
|
+
icon-url="./test/bot.png"></eka-medassist-widget>
|
|
12
13
|
|
|
13
14
|
<!-- <script
|
|
14
|
-
src="https://
|
|
15
|
+
src="https://unpkg.com/@eka-care/medassist-widget-embed@latest/dist/index.js"
|
|
15
16
|
async></script> -->
|
|
16
|
-
<!-- <script src="./dist/index.js" data-widget-assets="local" async></script> -->
|
|
17
|
-
<script src="./dist/index.js" async></script>
|
|
18
17
|
|
|
19
|
-
<!--
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
console.log('Host site changing the icon-url attribute live.');
|
|
25
|
-
widget.setAttribute('icon-url', 'https://images.unsplash.com/photo-1598921820696-2679f223f66c?w=60&h=60&fit=crop');
|
|
26
|
-
}
|
|
27
|
-
}, 5000);
|
|
28
|
-
</script> -->
|
|
18
|
+
<!-- for local development -->
|
|
19
|
+
<script src="./dist/index.js" data-widget-assets="local" async></script>
|
|
20
|
+
|
|
21
|
+
<!-- for local development with production js and css links -->
|
|
22
|
+
<!-- <script src="./dist/index.js" async></script> -->
|
|
29
23
|
</body>
|
|
30
24
|
</html>
|