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.
@@ -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, detectSystemTheme, watchSystemTheme } from '../core/orb/themes';
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';
@@ -29,7 +29,6 @@ export declare class InlineCall extends LitElement {
29
29
  size: number;
30
30
  containerPadding: number;
31
31
  theme: string;
32
- themeMode: 'dark' | 'light' | 'auto';
33
32
  orbColors: Partial<OrbColors>;
34
33
  glowIntensity: number;
35
34
  idleGlowMultiplier: number;
@@ -29,7 +29,6 @@ export declare class PillCall extends LitElement {
29
29
  buttonEndText: string;
30
30
  orbSize: number;
31
31
  theme: string;
32
- themeMode: 'dark' | 'light' | 'auto';
33
32
  orbColors: Partial<OrbColors>;
34
33
  glowIntensity: number;
35
34
  idleGlowMultiplier: number;
@@ -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, detectSystemTheme, watchSystemTheme } from './themes';
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, mode?: 'dark' | 'light' | 'auto'): ThemeConfig;
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 watchSystemTheme(element: any, themeName: string): () => void;
39
+ export declare function applyTheme(element: any, themeName: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanc-webrtc-widgets",
3
- "version": "2.6.10",
3
+ "version": "2.6.13",
4
4
  "type": "module",
5
5
  "main": "dist/hanc-webrtc-widgets.umd.js",
6
6
  "module": "dist/hanc-webrtc-widgets.es.js",