@voxket-ai/voxket-live 1.1.49 → 1.1.51
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/index.cjs +67 -52
- package/dist/index.js +7565 -7515
- package/dist/utils/inject-styles.d.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS Style Injection Utility
|
|
3
|
+
*
|
|
4
|
+
* This utility automatically injects the SDK's CSS styles into the document
|
|
5
|
+
* by loading them from the package's CSS file. This ensures the widget displays
|
|
6
|
+
* correctly even if consumers forget to import the CSS file.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Inject Voxket SDK styles into the document
|
|
10
|
+
* This is called automatically when the SDK is used
|
|
11
|
+
*
|
|
12
|
+
* @param options.force - Force injection even if styles appear to be loaded
|
|
13
|
+
* @param options.cssUrl - Custom URL to load CSS from
|
|
14
|
+
*/
|
|
15
|
+
export declare function injectStyles(options?: {
|
|
16
|
+
force?: boolean;
|
|
17
|
+
cssUrl?: string;
|
|
18
|
+
}): void;
|
|
19
|
+
/**
|
|
20
|
+
* Remove injected styles (useful for cleanup in tests)
|
|
21
|
+
*/
|
|
22
|
+
export declare function removeInjectedStyles(): void;
|