@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/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" icon-url="./test/bot.png"></eka-medassist-widget>
11
+ agent-id="MDY4YWE2NGMtNjdiNi00MjhlLTk3NGUtM2Q2NWMwMmQ5Yjg2IzEyMzQ1Njcx"
12
+ icon-url="./test/bot.png"></eka-medassist-widget>
12
13
 
13
14
  <!-- <script
14
- src="https://cdn.jsdelivr.net/npm/@eka-care/medassist-widget-embed@latest/dist/index.js"
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
- <!-- <script>
20
- // Example of the host page changing the attribute after 5 seconds
21
- setTimeout(() => {
22
- const widget = document.querySelector('my-chatbot-widget');
23
- if (widget) {
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>