@voxket-ai/voxket-live 1.0.145 → 1.0.147

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxket-ai/voxket-live",
3
- "version": "1.0.145",
3
+ "version": "1.0.147",
4
4
  "description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,86 +0,0 @@
1
- /**
2
- * Voxket SDK Portal Management Utilities
3
- *
4
- * These utilities help manage portal rendering for fullscreen and popup modes
5
- * to ensure proper isolation from consumer website styles.
6
- */
7
- export declare class VoxketPortalManager {
8
- private static portalContainers;
9
- /**
10
- * Creates an isolated portal container for fullscreen/popup modes
11
- */
12
- static createPortalContainer(displayType: 'fullscreen' | 'popup', id: string): HTMLElement;
13
- /**
14
- * Removes a portal container and cleans up resources
15
- */
16
- static removePortalContainer(id: string): void;
17
- /**
18
- * Applies strong CSS isolation to prevent consumer site interference
19
- */
20
- private static applyContainerIsolation;
21
- /**
22
- * Cleans up all portal containers (useful for unmounting)
23
- */
24
- static cleanupAllPortals(): void;
25
- /**
26
- * Checks if a portal container exists
27
- */
28
- static hasPortalContainer(id: string): boolean;
29
- /**
30
- * Gets an existing portal container
31
- */
32
- static getPortalContainer(id: string): HTMLElement | undefined;
33
- }
34
- export declare class VoxketStyleManager {
35
- private static injectedStyles;
36
- /**
37
- * Injects critical CSS styles for display mode isolation
38
- */
39
- static injectIsolationStyles(): void;
40
- /**
41
- * Removes injected isolation styles
42
- */
43
- static removeIsolationStyles(): void;
44
- /**
45
- * Cleans up all injected styles
46
- */
47
- static cleanupAllStyles(): void;
48
- }
49
- export declare class VoxketScrollManager {
50
- private static originalBodyStyle;
51
- private static isLocked;
52
- /**
53
- * Prevents body scrolling when fullscreen mode is active
54
- */
55
- static lockBodyScroll(): void;
56
- /**
57
- * Restores body scrolling when fullscreen mode is closed
58
- */
59
- static unlockBodyScroll(): void;
60
- /**
61
- * Checks if body scroll is currently locked
62
- */
63
- static isBodyScrollLocked(): boolean;
64
- }
65
- export declare class VoxketPositionManager {
66
- /**
67
- * Calculates optimal popup position to avoid viewport edges
68
- */
69
- static calculateOptimalPosition(preferredPosition: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', popupWidth?: number, popupHeight?: number, margin?: number): {
70
- position: string;
71
- styles: Record<string, string>;
72
- };
73
- /**
74
- * Checks if device is mobile
75
- */
76
- static isMobileDevice(): boolean;
77
- /**
78
- * Gets mobile-optimized position (always bottom sheet)
79
- */
80
- static getMobilePosition(): {
81
- position: string;
82
- styles: Record<string, string>;
83
- };
84
- }
85
- export declare function initializeVoxketSDK(): void;
86
- export declare function cleanupVoxketSDK(): void;