@blockspark/chat-widget 1.0.3 → 1.0.4
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 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -35,6 +35,11 @@ npm install /path/to/blockspark-chat-widget
|
|
|
35
35
|
|
|
36
36
|
Use **camelCase** for all props in every environment (React, Next.js, Vue, and CDN). Examples: `dfProjectId`, `serviceAccountKey`, `languageCode`.
|
|
37
37
|
|
|
38
|
+
**Import the widget styles once.** The widget’s layout and appearance live in a separate CSS file. Your app must import it so the styles are bundled and applied; otherwise the widget will render but look unstyled. Use either:
|
|
39
|
+
|
|
40
|
+
- `import '@blockspark/chat-widget/dist/styles.css';`
|
|
41
|
+
- `import '@blockspark/chat-widget/styles.css';`
|
|
42
|
+
|
|
38
43
|
---
|
|
39
44
|
|
|
40
45
|
### React
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockspark/chat-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "BlockSpark Chat Widget - Reusable chat for React, Next.js, Vue 3, and CDN",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
"import": "./dist/vue.js",
|
|
68
68
|
"require": "./dist/vue.js",
|
|
69
69
|
"types": "./types/vue.d.ts"
|
|
70
|
-
}
|
|
70
|
+
},
|
|
71
|
+
"./dist/styles.css": "./dist/styles.css",
|
|
72
|
+
"./styles.css": "./dist/styles.css"
|
|
71
73
|
}
|
|
72
74
|
}
|