@mypatientspace/chatbot-widget 1.0.52 → 1.0.53

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
@@ -161,6 +161,7 @@ ChatbotWidgetDemo.update(config); // Update configuration
161
161
  fabIcon: '/avatar.png',
162
162
  placeholder: 'Ask me anything...',
163
163
  position: 'bottom-left',
164
+ colorMode: 'system', // 'light', 'dark', or 'system' (auto-detect)
164
165
  quickActions: ['I need help', 'Book appointment'],
165
166
  theme: {
166
167
  // All color properties are optional - only set what you want to change
@@ -395,6 +396,7 @@ const ChatScreen = () => {
395
396
  | `assistantId` | `string` | No | Specific assistant ID to use |
396
397
  | `contextPatientId` | `string` | No | Patient context for the chat |
397
398
  | `loadHistory` | `boolean` | No | Load previous chat history (default: true) |
399
+ | `colorMode` | `'light' \| 'dark' \| 'system'` | No | Color mode for the widget (default: 'light') |
398
400
  | `theme` | `ThemeConfig` | No | Custom theme (see Theme Configuration below) |
399
401
  | `position` | `'bottom-right' \| 'bottom-left'` | No | FAB button position |
400
402
  | `containerSelector` | `string` | No | CSS selector for embedded container |
@@ -479,6 +481,7 @@ interface ThemeConfig {
479
481
  | `headerIcon` | https://web.mypatientspace.com/img/logo-symbol.png |
480
482
  | `fabIcon` | https://web.mypatientspace.com/img/logo-symbol.png |
481
483
  | `position` | "bottom-right" |
484
+ | `colorMode` | "light" |
482
485
  | `loadHistory` | true |
483
486
  | `containerSelector` | undefined (creates container in body) |
484
487
  | `floatingMode` | false (embedded is default) |