@headwai/chat-bubble 1.0.1 → 1.0.2
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 +2 -0
- package/dist/icons/favicon.svg +9 -0
- package/dist/index.iife.js +84 -73
- package/dist/index.js +3932 -3498
- package/dist/index.umd.cjs +84 -73
- package/dist/style.css +1 -1
- package/dist-widget/chat-bubble.css +1 -1
- package/dist-widget/chat-bubble.js +84 -73
- package/dist-widget/icons/favicon.svg +9 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ VITE_CHAT_BUBBLE_MAX_MESSAGES=0
|
|
|
71
71
|
# UI Configuration
|
|
72
72
|
VITE_CHAT_BUBBLE_PLACEHOLDER_TEXT=Welcome to the chat!
|
|
73
73
|
VITE_CHAT_BUBBLE_DEMO_MODE=false
|
|
74
|
+
VITE_CHAT_BUBBLE_FAVICON_PATH=/icons/favicon.svg
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
## Usage
|
|
@@ -454,6 +455,7 @@ dist-widget/ # Standalone widget (Options 1 & 2)
|
|
|
454
455
|
| `VITE_CHAT_BUBBLE_MAX_MESSAGES` | Maximum messages in conversation history | `0` (unlimited) | ❌ |
|
|
455
456
|
| `VITE_CHAT_BUBBLE_PLACEHOLDER_TEXT` | Chat input placeholder text | `Type your message...` | ❌ |
|
|
456
457
|
| `VITE_CHAT_BUBBLE_DEMO_MODE` | Enable demo mode | `false` | ❌ |
|
|
458
|
+
| `VITE_CHAT_BUBBLE_FAVICON_PATH` | Path to favicon/icon for chat toggle button | `/icons/favicon.svg` | ❌ |
|
|
457
459
|
|
|
458
460
|
## API Compatibility
|
|
459
461
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 314.6457 314.6457">
|
|
3
|
+
<path d="M154.6988,312.7649C15.7605,269.2769,1.4766,105.0702.0081,71.7664c-.1559-3.5354,1.938-6.7841,5.2624-8.1581L153.9777,2.1453c2.139-.8841,4.5512-.8841,6.6903,0l148.7071,61.4631c3.3244,1.374,5.4182,4.6227,5.2624,8.1581-1.4685,33.3036-15.7523,197.5104-154.6907,240.9984-1.6985.5316-3.5495.5316-5.248,0h0Z" fill="#002b53"/>
|
|
4
|
+
<g>
|
|
5
|
+
<path d="M158.9429,217.83l35.7915,35.7915c.8926.8926.8926,2.3419,0,3.2345l-35.7915,35.7915c-.8926.8926-2.3419.8926-3.2345,0l-36.398-36.398c-.5578-.5578-.5578-1.4637,0-2.0216l36.398-36.398c.8926-.8926,2.3419-.8926,3.2345,0h0Z" fill="#f8ae4e"/>
|
|
6
|
+
<path d="M274.4005,177.1874l-9.7408,9.7408-104.8815-104.8814c-1.3471-1.3471-3.5311-1.3471-4.8782,0l-104.8962,104.8962-9.7586-9.7586c-10.7768-10.7767-10.7768-28.2493,0-39.0261L154.8822,23.5214c1.3471-1.3471,3.5311-1.3471,4.8782,0l114.64,114.64c10.7768,10.7767,10.7768,28.2493,0,39.0261h.0001Z" fill="#79bd6f"/>
|
|
7
|
+
<path d="M230.4944,221.0845l-14.6352,14.6352-56.0902-56.0901c-1.3471-1.3471-3.5311-1.3471-4.8782,0l-56.1073,56.1073-14.6361-14.6361c-8.0826-8.0826-8.0826-21.187,0-29.2696l70.7425-70.7425c1.3471-1.3471,3.5311-1.3471,4.8782,0l70.7262,70.7262c8.0826,8.0826,8.0826,21.187,0,29.2696h0Z" fill="#d1d834"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|