@schmitech/chatbot-widget 0.4.14 → 0.4.15

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
@@ -158,7 +158,7 @@ window.addEventListener('load', function() {
158
158
  ],
159
159
 
160
160
  // Optional: Customize length limits for suggested questions
161
- maxSuggestedQuestionLength: 60, // Display length limit (default: 50)
161
+ maxSuggestedQuestionLength: 60, // Display length limit (default: 120)
162
162
  maxSuggestedQuestionQueryLength: 300, // Query length limit (default: 200)
163
163
 
164
164
  // Theme configuration
@@ -185,14 +185,15 @@ window.addEventListener('load', function() {
185
185
  message: {
186
186
  user: '#4f46e5', // User message bubble color
187
187
  userText: '#ffffff', // User message text color
188
- assistant: '#f8fafc' // Assistant message bubble color
188
+ assistant: '#f8fafc', // Assistant message bubble color
189
+ assistantText: '#374151' // Assistant message text color
189
190
  },
190
191
 
191
192
  // Suggested questions styling
192
193
  suggestedQuestions: {
193
- background: '#fff7ed', // Background color
194
- hoverBackground: '#ffedd5', // Hover background color
195
- text: '#4338ca' // Text color
194
+ background: '#f3f4f6', // Background color
195
+ text: '#1f2937', // Text color
196
+ highlightedBackground: '#fef3c7' // Hover background color
196
197
  },
197
198
 
198
199
  // Chat button styling
@@ -228,8 +229,8 @@ window.addEventListener('load', function() {
228
229
  | `containerSelector` | string | CSS selector for custom container (defaults to bottom-right corner) |
229
230
  | `header` | object | Widget header configuration |
230
231
  | `welcome` | object | Welcome message configuration |
231
- | `suggestedQuestions` | array | Array of suggested question buttons (max 50 chars per question, max 200 chars per query) |
232
- | `maxSuggestedQuestionLength` | number | Maximum display length for suggested question text (default: 50) |
232
+ | `suggestedQuestions` | array | Array of suggested question buttons (max 120 chars per question, max 200 chars per query) |
233
+ | `maxSuggestedQuestionLength` | number | Maximum display length for suggested question text (default: 120) |
233
234
  | `maxSuggestedQuestionQueryLength` | number | Maximum length for suggested question queries sent to API (default: 200) |
234
235
  | `theme` | object | Theme customization options |
235
236
  | `icon` | string | Widget icon type |
@@ -381,13 +382,14 @@ theme: {
381
382
  },
382
383
  message: {
383
384
  user: string; // User message bubble color
384
- assistant: string; // Assistant message bubble color
385
385
  userText: string; // User message text color
386
+ assistant: string; // Assistant message bubble color
387
+ assistantText?: string; // Assistant message text color (optional)
386
388
  },
387
389
  suggestedQuestions: {
388
390
  background: string; // Suggested questions background
389
- hoverBackground: string; // Suggested questions hover background
390
391
  text: string; // Suggested questions text color
392
+ highlightedBackground: string; // Suggested questions hover background
391
393
  },
392
394
  chatButton: {
393
395
  background: string; // Chat button background
@@ -422,7 +424,7 @@ The widget provides flexible length controls for suggested questions:
422
424
  ### Display Length (`maxSuggestedQuestionLength`)
423
425
  - Controls how much text is shown on the suggestion buttons
424
426
  - Default: 120 characters
425
- - Text longer than this limit will be truncated with "..."
427
+ - Text longer than this limit will be truncated with "..."
426
428
  - Example: "This is a very long question that will be truncated..."
427
429
 
428
430
  ### Query Length (`maxSuggestedQuestionQueryLength`)
@@ -523,7 +525,7 @@ theme: {
523
525
  query: string; // Question to send when clicked (truncated based on maxSuggestedQuestionQueryLength)
524
526
  }
525
527
  ],
526
- maxSuggestedQuestionLength?: number; // Display length limit (default: 50)
528
+ maxSuggestedQuestionLength?: number; // Display length limit (default: 120)
527
529
  maxSuggestedQuestionQueryLength?: number; // Query length limit (default: 200)
528
530
  theme: { /* theme object */ }
529
531
  }