@headwai/chat-bubble 8.3.1 → 8.3.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/CHANGELOG.md +12 -0
- package/README.md +12 -0
- package/dist-widget/chat-bubble.js +65 -65
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [8.3.3] - 2026-05-11
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Configurable error message
|
|
10
|
+
|
|
11
|
+
## [8.3.2] - 2026-03-05
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- e2e playwright tests for HeadwAI ONE and Open WebUI
|
|
16
|
+
|
|
5
17
|
## [8.3.1] - 2026-02-17
|
|
6
18
|
|
|
7
19
|
### Changed
|
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ Add the HeadwAI Chat Bubble to the respective .html file.
|
|
|
49
49
|
disclaimerMessage: 'Please accept our terms before using this service.',
|
|
50
50
|
infoTitle: 'Support Information',
|
|
51
51
|
infoMessage: 'For help, contact support@example.com',
|
|
52
|
+
errorMessage: 'An error occurred, please try again.',
|
|
52
53
|
};
|
|
53
54
|
</script>
|
|
54
55
|
</head>
|
|
@@ -116,6 +117,7 @@ For multiple instances use data attributes of the `<div>` tag for configuration
|
|
|
116
117
|
data-chat-bubble-disclaimer-message="Please accept our terms before using this service"
|
|
117
118
|
data-chat-bubble-info-title="Support Information"
|
|
118
119
|
data-chat-bubble-info-message="For help, contact support@example.com"
|
|
120
|
+
data-chat-bubble-error-message="An error occurred, please try again."
|
|
119
121
|
></div>
|
|
120
122
|
|
|
121
123
|
<!-- Another HeadwAI Chat Bubble with different config -->
|
|
@@ -238,6 +240,15 @@ The title displayed in the chat window header at the top of the chat interface.
|
|
|
238
240
|
chatTitle: 'Customer Support';
|
|
239
241
|
```
|
|
240
242
|
|
|
243
|
+
#### `errorMessage`
|
|
244
|
+
|
|
245
|
+
**Type:** `string` | **Default:** Translation-based (`'Error, please try again.'` in English, `'Fehler, bitte versuchen Sie es erneut.'` in German)
|
|
246
|
+
The error message displayed in the chat when the API connection fails or a request error occurs.
|
|
247
|
+
|
|
248
|
+
```javascript
|
|
249
|
+
errorMessage: 'Something went wrong, please try again.';
|
|
250
|
+
```
|
|
251
|
+
|
|
241
252
|
#### `locale`
|
|
242
253
|
|
|
243
254
|
**Type:** `string` | **Default:** Auto-detected from browser
|
|
@@ -708,6 +719,7 @@ When using data attributes for multiple HeadwAI Chat Bubbles, convert camelCase
|
|
|
708
719
|
- `enableSpeechBubbleHint` → `data-chat-bubble-enable-speech-bubble-hint`
|
|
709
720
|
- `speechBubbleHintBackgroundColor` → `data-chat-bubble-speech-bubble-hint-background-color`
|
|
710
721
|
- `speechBubbleHintTextColor` → `data-chat-bubble-speech-bubble-hint-text-color`
|
|
722
|
+
- `errorMessage` → `data-chat-bubble-error-message`
|
|
711
723
|
|
|
712
724
|
## Troubleshooting
|
|
713
725
|
|