@kvsnguyen/chatbot-widget 0.1.1 → 0.1.2

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 +2 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,19 +23,8 @@ This version **auto-mounts** on page load — no need to call `init()`. It comes
23
23
  Copy-paste **1 script tag** into your HTML:
24
24
 
25
25
  ```html
26
- <!DOCTYPE html>
27
- <html lang="en">
28
- <head>
29
- <meta charset="UTF-8" />
30
- <title>Chatbot Test</title>
31
- </head>
32
- <body>
33
- Hello world
34
-
35
- <!-- Chatbot Widget -->
36
- <script src="https://cdn.jsdelivr.net/npm/@kvsnguyen/chatbot-widget/dist/widget.global.js"></script>
37
- </body>
38
- </html>
26
+ <!-- Chatbot Widget -->
27
+ <script src="https://cdn.jsdelivr.net/npm/@kvsnguyen/chatbot-widget/dist/widget.global.js"></script>
39
28
  ```
40
29
 
41
30
  ## 2️⃣ Use via npm package
@@ -49,12 +38,7 @@ npm install @kvsnguyen/chatbot-widget
49
38
  Import in your React / Next.js project:
50
39
 
51
40
  ```tsx
52
- import { useEffect } from "react";
53
41
  import "@kvsnguyen/chatbot-widget/dist/widget.global.js"; // auto-mounts
54
-
55
- export default function App() {
56
- return <div>Your App</div>;
57
- }
58
42
  ```
59
43
 
60
44
  ## 3️⃣ Development
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvsnguyen/chatbot-widget",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/widget.global.js",
6
6
  "files": [