@8wave/ai-elements 0.35.0 → 0.37.0

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/README.md CHANGED
@@ -36,7 +36,10 @@ Then use the element anywhere in your HTML:
36
36
  ### Via CDN (no bundler)
37
37
 
38
38
  ```html
39
- <script type="module" src="https://unpkg.com/@8wave/ai-elements"></script>
39
+ <!-- unpkg -->
40
+ <script type="module" async src="https://unpkg.com/@8wave/ai-elements"></script>
41
+ <!-- or jsDelivr -->
42
+ <!-- <script type="module" async src="https://cdn.jsdelivr.net/npm/@8wave/ai-elements"></script> -->
40
43
 
41
44
  <floating-chat-widget
42
45
  organization-slug="your-org-slug"
@@ -56,7 +59,7 @@ Then use the element anywhere in your HTML:
56
59
 
57
60
  1. On mount the component automatically signs in as an anonymous user via the 8wave Auth service.
58
61
  2. Once authenticated it fetches the agent configuration (name, interface colors, etc.) from the public API.
59
- 3. A circular floating button appears in the bottom-right corner, styled with the agent's `mainColor` and `secondaryColor`.
62
+ 3. A circular floating button appears in the bottom-right corner, styled with the agent's `mainColor`.
60
63
  4. Clicking the button toggles the chat panel open/closed.
61
64
  5. All styles are encapsulated inside a Shadow DOM — no CSS leaks in or out.
62
65