hanc-webrtc-widgets 2.3.3 → 2.4.1

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.
@@ -3,7 +3,6 @@ import { OrbColors, SoundPreset } from '../../core/orb';
3
3
  export declare class FloatingCall extends LitElement {
4
4
  static styles: import('lit').CSSResult;
5
5
  private callManager;
6
- private healthMonitor;
7
6
  private orbRenderer;
8
7
  private audioAnalyzer;
9
8
  private soundManager;
@@ -14,7 +13,6 @@ export declare class FloatingCall extends LitElement {
14
13
  private callStatus;
15
14
  private microphoneEnabled;
16
15
  private microphoneInitialized;
17
- private serviceUnavailable;
18
16
  buttonStartText: string;
19
17
  buttonConnectingText: string;
20
18
  position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
@@ -49,7 +47,6 @@ export declare class FloatingCall extends LitElement {
49
47
  private handleLocalAudioTrack;
50
48
  private handleMicrophoneEnabled;
51
49
  private handleMicrophoneDisabled;
52
- private handleHealthChange;
53
50
  private handleStatusChange;
54
51
  private toggleCall;
55
52
  private getButtonIcon;
@@ -3,7 +3,6 @@ import { OrbColors, SoundPreset } from '../../core/orb';
3
3
  export declare class InlineCall extends LitElement {
4
4
  static styles: import('lit').CSSResult;
5
5
  private callManager;
6
- private healthMonitor;
7
6
  private orbRenderer;
8
7
  private audioAnalyzer;
9
8
  private soundManager;
@@ -14,7 +13,6 @@ export declare class InlineCall extends LitElement {
14
13
  private callStatus;
15
14
  private microphoneEnabled;
16
15
  private microphoneInitialized;
17
- private serviceUnavailable;
18
16
  buttonStartText: string;
19
17
  buttonConnectingText: string;
20
18
  size: number;
@@ -49,7 +47,6 @@ export declare class InlineCall extends LitElement {
49
47
  private handleLocalAudioTrack;
50
48
  private handleMicrophoneEnabled;
51
49
  private handleMicrophoneDisabled;
52
- private handleHealthChange;
53
50
  private handleStatusChange;
54
51
  private toggleCall;
55
52
  private getButtonIcon;
@@ -3,7 +3,6 @@ import { OrbColors, SoundPreset } from '../../core/orb';
3
3
  export declare class PillCall extends LitElement {
4
4
  static styles: import('lit').CSSResult;
5
5
  private callManager;
6
- private healthMonitor;
7
6
  private orbRenderer;
8
7
  private audioAnalyzer;
9
8
  private soundManager;
@@ -14,7 +13,6 @@ export declare class PillCall extends LitElement {
14
13
  private callStatus;
15
14
  private microphoneEnabled;
16
15
  private microphoneInitialized;
17
- private serviceUnavailable;
18
16
  buttonStartText: string;
19
17
  buttonConnectingText: string;
20
18
  buttonEndText: string;
@@ -49,7 +47,6 @@ export declare class PillCall extends LitElement {
49
47
  private handleLocalAudioTrack;
50
48
  private handleMicrophoneEnabled;
51
49
  private handleMicrophoneDisabled;
52
- private handleHealthChange;
53
50
  private handleStatusChange;
54
51
  private toggleCall;
55
52
  private getButtonIcon;
@@ -54,6 +54,8 @@ export declare class LiveKitCallManager extends EventTarget {
54
54
  private roomName;
55
55
  private audioPlaybackPrompt;
56
56
  private readonly isAppleDevice;
57
+ private krispFilter;
58
+ private krispSupported;
57
59
  set serviceUrl(url: string | undefined);
58
60
  get serviceUrl(): string;
59
61
  get status(): CallStatus;
@@ -68,6 +70,10 @@ export declare class LiveKitCallManager extends EventTarget {
68
70
  private updateStatus;
69
71
  makeCall({ agentId }: MakeCallOptions): Promise<void>;
70
72
  private setupRoomEventListeners;
73
+ /**
74
+ * Apply Krisp noise filter to local audio track
75
+ */
76
+ private applyKrispFilter;
71
77
  toggleMicrophone(): Promise<void>;
72
78
  enableAudio(): Promise<void>;
73
79
  hangUp(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanc-webrtc-widgets",
3
- "version": "2.3.3",
3
+ "version": "2.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/hanc-webrtc-widgets.umd.js",
6
6
  "module": "dist/hanc-webrtc-widgets.es.js",
@@ -13,6 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
+ "@livekit/krisp-noise-filter": "^0.2.16",
16
17
  "lit": "^3.2.1",
17
18
  "livekit-client": "^2.15.6",
18
19
  "three": "^0.182.0"
@@ -1,27 +0,0 @@
1
- /**
2
- * Background Health Monitor (Singleton)
3
- *
4
- * Polls the voice service health endpoint every 30 seconds and maintains
5
- * an in-memory health status flag. Widget components read this flag
6
- * before initiating calls to avoid unnecessary latency.
7
- *
8
- * Uses reference counting - multiple widgets share one monitor instance.
9
- *
10
- * Events Emitted:
11
- * - 'health-changed': When health status transitions between states
12
- */
13
- export type HealthStatus = 'unknown' | 'healthy' | 'unhealthy';
14
- /**
15
- * HealthMonitor wrapper that uses the shared singleton
16
- * Provides the same API as before for backwards compatibility
17
- */
18
- export declare class HealthMonitor {
19
- get isHealthy(): boolean;
20
- get status(): HealthStatus;
21
- set serviceUrl(url: string);
22
- get serviceUrl(): string;
23
- start(): void;
24
- stop(): void;
25
- addEventListener(type: string, listener: (e: Event) => void): void;
26
- removeEventListener(type: string, listener: (e: Event) => void): void;
27
- }