@voxket-ai/voxket-live 1.1.48 → 1.1.50
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 +18 -1
- package/dist/components/common/common-popup-trigger.d.ts +6 -1
- package/dist/index.cjs +62 -54
- package/dist/index.css +1 -1
- package/dist/index.js +4536 -4504
- package/dist/utils/inject-styles.d.ts +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,24 @@ yarn add @voxket-ai/voxket-live
|
|
|
89
89
|
|
|
90
90
|
That's it! All dependencies including LiveKit are bundled automatically. React and React DOM are peer dependencies (your project should already have them).
|
|
91
91
|
|
|
92
|
-
###
|
|
92
|
+
### 🎨 **IMPORTANT: Import the CSS Styles**
|
|
93
|
+
|
|
94
|
+
**The SDK includes pre-compiled CSS with all necessary styles. You MUST import the CSS file for the widget to display correctly:**
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
// In your main App.tsx or entry file
|
|
98
|
+
import '@voxket-ai/voxket-live/style.css';
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Or in vanilla JavaScript/HTML:
|
|
102
|
+
|
|
103
|
+
```html
|
|
104
|
+
<link rel="stylesheet" href="node_modules/@voxket-ai/voxket-live/dist/index.css">
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Note:** The SDK does NOT require Tailwind CSS in your project - all styles are pre-compiled and bundled. The CSS import includes everything needed.
|
|
108
|
+
|
|
109
|
+
### 🎨 **Popup Icon Customization**
|
|
93
110
|
|
|
94
111
|
The popup trigger button comes with a default Voxket logo. You can customize it in two ways:
|
|
95
112
|
|
|
@@ -19,12 +19,17 @@ export interface CommonPopupTriggerProps {
|
|
|
19
19
|
* Custom logo URL. If not provided, uses the bundled Voxket logo
|
|
20
20
|
*/
|
|
21
21
|
logoUrl?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Theme for styling. 'light' uses white background with indigo border, others use black background.
|
|
24
|
+
*/
|
|
25
|
+
theme?: 'dark' | 'light' | 'vox' | 'midnight' | 'levish';
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
28
|
* CommonPopupTrigger
|
|
25
|
-
* A theme-
|
|
29
|
+
* A theme-aware popup trigger: circular button with bundled Voxket logo centered.
|
|
26
30
|
* Uses the logo bundled with the SDK, positioned in any corner.
|
|
27
31
|
* When session is active (isRunning=true), shows an elegant glowing border animation.
|
|
32
|
+
* In light theme, uses white background with indigo border. In dark themes, uses black background.
|
|
28
33
|
*/
|
|
29
34
|
export declare const CommonPopupTrigger: React.FC<CommonPopupTriggerProps>;
|
|
30
35
|
export default CommonPopupTrigger;
|