@voxket-ai/voxket-live 1.0.69 → 1.0.71
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 +23 -3
- package/dist/index.cjs +70 -41
- package/dist/index.js +2547 -2442
- package/dist/style.css +1 -0
- package/package.json +5 -3
- package/dist/index.css +0 -1
package/README.md
CHANGED
|
@@ -29,11 +29,26 @@ npm install @voxket-ai/voxket-live@latest
|
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
|
|
32
|
-
To use the Voxket Live widget in your React application, simply import and use the component. **
|
|
32
|
+
To use the Voxket Live widget in your React application, simply import and use the component. **Styles are automatically included**, but you can also import them manually if needed:
|
|
33
33
|
|
|
34
|
+
### Automatic Styles (Recommended)
|
|
34
35
|
```tsx
|
|
35
36
|
import React from 'react';
|
|
36
37
|
import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
|
|
38
|
+
// Styles are automatically injected - no manual import needed!
|
|
39
|
+
|
|
40
|
+
const MyCustomApp = () => {
|
|
41
|
+
// ... component code
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Manual CSS Import (If needed)
|
|
46
|
+
If automatic style injection doesn't work in your setup, you can manually import the CSS:
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
import React from 'react';
|
|
50
|
+
import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
|
|
51
|
+
import '@voxket-ai/voxket-live/style.css'; // Manual CSS import
|
|
37
52
|
|
|
38
53
|
const MyCustomApp = () => {
|
|
39
54
|
const widgetProps: VoxketWidgetProps = {
|
|
@@ -61,9 +76,14 @@ const MyCustomApp = () => {
|
|
|
61
76
|
export default MyCustomApp;
|
|
62
77
|
```
|
|
63
78
|
|
|
64
|
-
### ✅
|
|
79
|
+
### ✅ Flexible Style Loading
|
|
80
|
+
|
|
81
|
+
As of version 1.0.70+, **CSS styles are automatically injected** when you import any component. If automatic injection doesn't work in your environment, you can manually import the CSS file as shown above.
|
|
65
82
|
|
|
66
|
-
|
|
83
|
+
**Troubleshooting Style Issues:**
|
|
84
|
+
- For Next.js apps, see our [Next.js Troubleshooting Guide](./NEXT_JS_TROUBLESHOOTING.md)
|
|
85
|
+
- For React conflicts, see our [React Conflict Prevention Guide](./REACT_CONFLICTS.md)
|
|
86
|
+
- If styles don't load automatically, use the manual CSS import method above
|
|
67
87
|
|
|
68
88
|
## Props
|
|
69
89
|
|