@blockspark/chat-widget 1.0.5 → 1.0.7
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 +17 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -40,6 +40,23 @@ npm install @blockspark/chat-widget
|
|
|
40
40
|
|
|
41
41
|
## Usage
|
|
42
42
|
|
|
43
|
+
### Import the widget styles
|
|
44
|
+
|
|
45
|
+
Import the package CSS **once** in your app (e.g. in your main entry or root layout) so the widget is styled correctly. Any of these import paths works:
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
// Option 1 (recommended)
|
|
49
|
+
import '@blockspark/chat-widget/dist/styles.css';
|
|
50
|
+
|
|
51
|
+
// Option 2
|
|
52
|
+
import '@blockspark/chat-widget/styles.css';
|
|
53
|
+
|
|
54
|
+
// Option 3
|
|
55
|
+
import '@blockspark/chat-widget/styles';
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
43
60
|
### Vue.js Usage (Quick Start)
|
|
44
61
|
|
|
45
62
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockspark/chat-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "BlockSpark AI Chat Widget - Universal JavaScript library supporting React, Next.js, Vue, Nuxt, and Vite",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"types": "./dist/vite.d.ts"
|
|
74
74
|
},
|
|
75
75
|
"./styles": "./dist/styles.css",
|
|
76
|
+
"./styles.css": "./dist/styles.css",
|
|
76
77
|
"./dist/styles.css": "./dist/styles.css",
|
|
77
78
|
"./package.json": "./package.json"
|
|
78
79
|
},
|