hanc-webrtc-widgets 2.6.10 → 2.6.13
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 +0 -3
- package/dist/hanc-webrtc-widgets.es.js +897 -893
- package/dist/hanc-webrtc-widgets.umd.js +157 -157
- package/dist/src/components/floating-call/floating-call.d.ts +0 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/inline-call/inline-call.d.ts +0 -1
- package/dist/src/components/pill-call/pill-call.d.ts +0 -1
- package/dist/src/components/pill-floating-call/pill-floating-call.d.ts +0 -1
- package/dist/src/core/orb/index.d.ts +1 -1
- package/dist/src/core/orb/themes.d.ts +2 -16
- package/package.json +1 -1
|
@@ -30,7 +30,6 @@ export declare class FloatingCall extends LitElement {
|
|
|
30
30
|
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
|
|
31
31
|
size: number;
|
|
32
32
|
theme: string;
|
|
33
|
-
themeMode: 'dark' | 'light' | 'auto';
|
|
34
33
|
orbColors: Partial<OrbColors>;
|
|
35
34
|
glowIntensity: number;
|
|
36
35
|
idleGlowMultiplier: number;
|
|
@@ -4,7 +4,7 @@ export * from './pill-call';
|
|
|
4
4
|
export * from './pill-floating-call';
|
|
5
5
|
export { darkPresets, lightPresets, getColorPreset, getPresetNames } from '../core/orb/colorPresets';
|
|
6
6
|
export type { OrbColors } from '../core/orb';
|
|
7
|
-
export { themes, darkThemes, lightThemes, getTheme, getThemeNames, applyTheme
|
|
7
|
+
export { themes, darkThemes, lightThemes, getTheme, getThemeNames, applyTheme } from '../core/orb/themes';
|
|
8
8
|
export type { ThemeConfig, Theme } from '../core/orb';
|
|
9
9
|
export { SoundManager } from '../core/orb';
|
|
10
10
|
export type { SoundConfig } from '../core/orb';
|
|
@@ -30,7 +30,6 @@ export declare class PillFloatingCall extends LitElement {
|
|
|
30
30
|
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
|
|
31
31
|
orbSize: number;
|
|
32
32
|
theme: string;
|
|
33
|
-
themeMode: 'dark' | 'light' | 'auto';
|
|
34
33
|
orbColors: Partial<OrbColors>;
|
|
35
34
|
glowIntensity: number;
|
|
36
35
|
idleGlowMultiplier: number;
|
|
@@ -5,7 +5,7 @@ export type { AudioData, AudioAnalyzerOptions } from './AudioAnalyzer';
|
|
|
5
5
|
export { SoundManager } from './SoundManager';
|
|
6
6
|
export type { SoundConfig, SoundPreset } from './SoundManager';
|
|
7
7
|
export { darkPresets, lightPresets, getColorPreset, getPresetNames } from './colorPresets';
|
|
8
|
-
export { themes, darkThemes, lightThemes, getTheme, getThemeNames, applyTheme
|
|
8
|
+
export { themes, darkThemes, lightThemes, getTheme, getThemeNames, applyTheme } from './themes';
|
|
9
9
|
export type { ThemeConfig, Theme } from './themes';
|
|
10
10
|
export { orbVertexShader } from './orb.vert.glsl';
|
|
11
11
|
export { orbFragmentShader } from './orb.frag.glsl';
|
|
@@ -20,18 +20,12 @@ export interface Theme {
|
|
|
20
20
|
export declare const themes: Record<string, Theme>;
|
|
21
21
|
export declare const darkThemes: Record<string, ThemeConfig>;
|
|
22
22
|
export declare const lightThemes: Record<string, ThemeConfig>;
|
|
23
|
-
/**
|
|
24
|
-
* Detect system color scheme preference
|
|
25
|
-
* @returns 'dark' or 'light' based on system preference
|
|
26
|
-
*/
|
|
27
|
-
export declare function detectSystemTheme(): 'dark' | 'light';
|
|
28
23
|
/**
|
|
29
24
|
* Get a complete theme configuration by name
|
|
30
25
|
* @param themeName - Name of the theme (e.g., 'emerald', 'rose')
|
|
31
|
-
* @param mode - 'dark', 'light', or 'auto' (auto detects system preference)
|
|
32
26
|
* @returns ThemeConfig object with colors and glow settings
|
|
33
27
|
*/
|
|
34
|
-
export declare function getTheme(themeName: string
|
|
28
|
+
export declare function getTheme(themeName: string): ThemeConfig;
|
|
35
29
|
/**
|
|
36
30
|
* Get all available theme names
|
|
37
31
|
* @returns Array of theme names
|
|
@@ -41,13 +35,5 @@ export declare function getThemeNames(): string[];
|
|
|
41
35
|
* Apply a theme to a widget element
|
|
42
36
|
* @param element - The widget element
|
|
43
37
|
* @param themeName - Name of the theme
|
|
44
|
-
* @param mode - 'dark', 'light', or 'auto'
|
|
45
|
-
*/
|
|
46
|
-
export declare function applyTheme(element: any, themeName: string, mode?: 'dark' | 'light' | 'auto'): void;
|
|
47
|
-
/**
|
|
48
|
-
* Watch for system theme changes and update widget
|
|
49
|
-
* @param element - The widget element
|
|
50
|
-
* @param themeName - Name of the theme
|
|
51
|
-
* @returns Cleanup function to stop watching
|
|
52
38
|
*/
|
|
53
|
-
export declare function
|
|
39
|
+
export declare function applyTheme(element: any, themeName: string): void;
|