@mypatientspace/chatbot-widget 1.0.26 → 1.0.27

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.
Files changed (2) hide show
  1. package/README.md +27 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,11 +15,37 @@ A standalone chatbot widget that third-party websites can embed via a single `<s
15
15
 
16
16
  ## Tech Stack
17
17
 
18
- - React 18+ with TypeScript
18
+ - React 19 with TypeScript
19
19
  - Vite (library mode build)
20
20
  - Emotion (CSS-in-JS for style isolation)
21
21
  - lucide-react (icons)
22
22
 
23
+ ## Compatibility
24
+
25
+ ### Via CDN/Script Tag (Any Project)
26
+
27
+ When using the UMD bundle via `<script>` tag, the widget bundles its own React and renders in an isolated container. **Your project's React version doesn't matter** — this works with any framework (or no framework at all), including:
28
+
29
+ - Vanilla JavaScript/HTML
30
+ - jQuery
31
+ - Angular, Vue, Svelte
32
+ - Older React versions (14, 15, 16, etc.)
33
+
34
+ ### Via npm Import (React 18+ Required)
35
+
36
+ When importing as an ES module in a React project:
37
+
38
+ ```javascript
39
+ import '@mypatientspace/chatbot-widget';
40
+ ```
41
+
42
+ You need **React 18 or higher**. The widget uses modern React features (hooks, Context API) that aren't available in older versions.
43
+
44
+ | Integration Method | React Version Required |
45
+ |--------------------|------------------------|
46
+ | CDN / Script tag | Any (bundles own React) |
47
+ | npm import | React 18+ |
48
+
23
49
  ## Installation
24
50
 
25
51
  ### Via CDN (Recommended)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mypatientspace/chatbot-widget",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Embeddable healthcare chatbot widget for websites and mobile apps",
5
5
  "type": "module",
6
6
  "main": "dist/mypatientspace-widget.umd.js",