@voxket-ai/voxket-live 1.0.22 → 1.0.24
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 +3 -15
- package/dist/index.cjs +13 -3
- package/dist/index.css +1 -1
- package/dist/index.js +27 -6
- package/dist/inject-styles.d.ts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -29,13 +29,11 @@ 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,
|
|
32
|
+
To use the Voxket Live widget in your React application, simply import and use the component. **No separate CSS import is required** - styles are automatically included:
|
|
33
33
|
|
|
34
34
|
```tsx
|
|
35
35
|
import React from 'react';
|
|
36
36
|
import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
|
|
37
|
-
// Import the CSS styles - REQUIRED for proper styling
|
|
38
|
-
import '@voxket-ai/voxket-live/dist/index.css';
|
|
39
37
|
|
|
40
38
|
const MyCustomApp = () => {
|
|
41
39
|
const widgetProps: VoxketWidgetProps = {
|
|
@@ -63,19 +61,9 @@ const MyCustomApp = () => {
|
|
|
63
61
|
export default MyCustomApp;
|
|
64
62
|
```
|
|
65
63
|
|
|
66
|
-
###
|
|
64
|
+
### ✅ Auto-Included Styles
|
|
67
65
|
|
|
68
|
-
1. **CSS
|
|
69
|
-
```tsx
|
|
70
|
-
import '@voxket-ai/voxket-live/dist/index.css';
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
2. **Import Order**: Import the CSS after the component import for best practices.
|
|
74
|
-
|
|
75
|
-
3. **Alternative CSS Import Methods**:
|
|
76
|
-
- In your main CSS file: `@import '@voxket-ai/voxket-live/dist/index.css';`
|
|
77
|
-
- In your application's entry point (e.g., `main.tsx` or `index.tsx`)
|
|
78
|
-
- Via your bundler's configuration (Webpack, Vite, etc.)
|
|
66
|
+
As of version 1.0.22+, **CSS styles are automatically injected** when you import the component. You don't need to manually import any CSS files!
|
|
79
67
|
|
|
80
68
|
## Props
|
|
81
69
|
|