@mypatientspace/chatbot-widget 1.0.46 → 1.0.48
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 +5 -1
- package/dist/mypatientspace-demo.es.js +1975 -1982
- package/dist/mypatientspace-demo.umd.js +85 -90
- package/dist/mypatientspace-widget.es.js +3 -2
- package/dist/mypatientspace-widget.umd.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,6 +97,8 @@ An embeddable demo page with configuration panel and live preview. Useful for te
|
|
|
97
97
|
containerSelector: '#chatbot-demo',
|
|
98
98
|
showJsonEditor: true,
|
|
99
99
|
initialConfig: {
|
|
100
|
+
apiEndpoint: 'https://your-api.com/chat',
|
|
101
|
+
token: 'your-auth-token',
|
|
100
102
|
headerTitle: 'My Healthcare Bot',
|
|
101
103
|
theme: { colors: { primary: '#007bff' } }
|
|
102
104
|
},
|
|
@@ -105,6 +107,8 @@ An embeddable demo page with configuration panel and live preview. Useful for te
|
|
|
105
107
|
</script>
|
|
106
108
|
```
|
|
107
109
|
|
|
110
|
+
> **Note:** The "Use Mock API" toggle is only available in development mode (`yarn dev`). When embedding the demo in production, you must provide `apiEndpoint` and `token` in the `initialConfig`.
|
|
111
|
+
|
|
108
112
|
### Demo API
|
|
109
113
|
|
|
110
114
|
```javascript
|
|
@@ -127,7 +131,7 @@ ChatbotWidgetDemo.update(config); // Update configuration
|
|
|
127
131
|
| `showThemeSettings` | `boolean` | `true` | Show theme colors section |
|
|
128
132
|
| `showContentSettings` | `boolean` | `true` | Show content settings section |
|
|
129
133
|
| `showQuickActions` | `boolean` | `true` | Show quick actions section |
|
|
130
|
-
| `initialConfig` | `Partial<WidgetConfig>` | `{}` | Pre-fill widget config |
|
|
134
|
+
| `initialConfig` | `Partial<WidgetConfig>` | `{}` | Pre-fill widget config (including `apiEndpoint` and `token`) |
|
|
131
135
|
| `onConfigChange` | `(config) => void` | - | Called when config changes |
|
|
132
136
|
|
|
133
137
|
## Web Integration
|