hanc-webrtc-widgets 2.4.7 → 2.4.8

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.
@@ -8,11 +8,14 @@ export declare class FloatingCall extends LitElement {
8
8
  private soundManager;
9
9
  private orbContainerRef;
10
10
  private animationId;
11
+ private user_identity;
11
12
  agentId: string;
12
13
  voiceServiceUrl?: string;
13
14
  private callStatus;
14
15
  private microphoneEnabled;
15
16
  private microphoneInitialized;
17
+ private showPrivacyModal;
18
+ privacyUrl: string;
16
19
  buttonStartText: string;
17
20
  buttonConnectingText: string;
18
21
  position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
@@ -49,6 +52,8 @@ export declare class FloatingCall extends LitElement {
49
52
  private handleMicrophoneDisabled;
50
53
  private handleStatusChange;
51
54
  private toggleCall;
55
+ private handlePrivacyAccept;
56
+ private handlePrivacyDecline;
52
57
  private getButtonIcon;
53
58
  private get buttonText();
54
59
  render(): import('lit').TemplateResult<1>;
@@ -1,6 +1,7 @@
1
1
  export * from './inline-call';
2
2
  export * from './floating-call';
3
3
  export * from './pill-call';
4
+ export * from './pill-floating-call';
4
5
  export { darkPresets, lightPresets, getColorPreset, getPresetNames } from '../core/orb/colorPresets';
5
6
  export type { OrbColors } from '../core/orb';
6
7
  export { themes, darkThemes, lightThemes, getTheme, getThemeNames, applyTheme, detectSystemTheme, watchSystemTheme } from '../core/orb/themes';
@@ -8,11 +8,14 @@ export declare class InlineCall extends LitElement {
8
8
  private soundManager;
9
9
  private orbContainerRef;
10
10
  private animationId;
11
+ private user_identity;
11
12
  agentId: string;
12
13
  voiceServiceUrl?: string;
13
14
  private callStatus;
14
15
  private microphoneEnabled;
15
16
  private microphoneInitialized;
17
+ private showPrivacyModal;
18
+ privacyUrl: string;
16
19
  buttonStartText: string;
17
20
  buttonConnectingText: string;
18
21
  size: number;
@@ -49,6 +52,8 @@ export declare class InlineCall extends LitElement {
49
52
  private handleMicrophoneDisabled;
50
53
  private handleStatusChange;
51
54
  private toggleCall;
55
+ private handlePrivacyAccept;
56
+ private handlePrivacyDecline;
52
57
  private getButtonIcon;
53
58
  private get buttonText();
54
59
  render(): import('lit').TemplateResult<1>;
@@ -8,11 +8,14 @@ export declare class PillCall extends LitElement {
8
8
  private soundManager;
9
9
  private orbContainerRef;
10
10
  private animationId;
11
+ private user_identity;
11
12
  agentId: string;
12
13
  voiceServiceUrl?: string;
13
14
  private callStatus;
14
15
  private microphoneEnabled;
15
16
  private microphoneInitialized;
17
+ private showPrivacyModal;
18
+ privacyUrl: string;
16
19
  buttonStartText: string;
17
20
  buttonConnectingText: string;
18
21
  buttonEndText: string;
@@ -49,6 +52,8 @@ export declare class PillCall extends LitElement {
49
52
  private handleMicrophoneDisabled;
50
53
  private handleStatusChange;
51
54
  private toggleCall;
55
+ private handlePrivacyAccept;
56
+ private handlePrivacyDecline;
52
57
  private getButtonIcon;
53
58
  private get buttonText();
54
59
  render(): import('lit').TemplateResult<1>;
@@ -0,0 +1 @@
1
+ export * from './pill-floating-call';
@@ -0,0 +1,62 @@
1
+ import { LitElement } from 'lit';
2
+ import { OrbColors, SoundPreset } from '../../core/orb';
3
+ export declare class PillFloatingCall extends LitElement {
4
+ static styles: import('lit').CSSResult;
5
+ private callManager;
6
+ private orbRenderer;
7
+ private audioAnalyzer;
8
+ private soundManager;
9
+ private orbContainerRef;
10
+ private animationId;
11
+ private user_identity;
12
+ agentId: string;
13
+ voiceServiceUrl?: string;
14
+ private callStatus;
15
+ private microphoneEnabled;
16
+ private microphoneInitialized;
17
+ private showPrivacyModal;
18
+ privacyUrl: string;
19
+ buttonStartText: string;
20
+ buttonConnectingText: string;
21
+ buttonEndText: string;
22
+ position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'static';
23
+ orbSize: number;
24
+ theme: string;
25
+ themeMode: 'dark' | 'light' | 'auto';
26
+ orbColors: Partial<OrbColors>;
27
+ glowIntensity: number;
28
+ idleGlowMultiplier: number;
29
+ morphStrength: number;
30
+ noiseScale: number;
31
+ noiseSpeed: number;
32
+ fresnelPower: number;
33
+ rotationSpeed: number;
34
+ audioReactivity: number;
35
+ audioSmoothing: number;
36
+ idleMorphMultiplier: number;
37
+ colorContrast: number;
38
+ soundEnabled: boolean;
39
+ soundVolume: number;
40
+ soundPreset: SoundPreset;
41
+ connectedCallback(): void;
42
+ disconnectedCallback(): void;
43
+ firstUpdated(): void;
44
+ updated(changedProperties: Map<string | number | symbol, unknown>): void;
45
+ private applyTheme;
46
+ private initializeOrb;
47
+ private cleanupOrb;
48
+ private startIdleAnimation;
49
+ private startRealAudioLoop;
50
+ private handleAudioTrack;
51
+ private handleLocalAudioTrack;
52
+ private handleMicrophoneEnabled;
53
+ private handleMicrophoneDisabled;
54
+ private handleStatusChange;
55
+ private toggleCall;
56
+ private handlePrivacyAccept;
57
+ private handlePrivacyDecline;
58
+ private getButtonIcon;
59
+ private get buttonText();
60
+ private get scale();
61
+ render(): import('lit').TemplateResult<1>;
62
+ }
@@ -0,0 +1 @@
1
+ export * from './privacy-modal';
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class PrivacyModal extends LitElement {
3
+ static styles: import('lit').CSSResult;
4
+ privacyUrl: string;
5
+ termsUrl: string;
6
+ private modalContainer;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ private createModal;
10
+ private removeModal;
11
+ private getModalHTML;
12
+ private handleAccept;
13
+ private handleDecline;
14
+ render(): import('lit').TemplateResult<1>;
15
+ }
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ 'hanc-privacy-modal': PrivacyModal;
19
+ }
20
+ }
@@ -2,6 +2,7 @@ import { Room } from 'livekit-client';
2
2
  type CallStatus = 'idle' | 'connecting' | 'connected' | 'agent-connected' | 'disconnecting' | 'disconnected' | 'error' | 'ringing';
3
3
  interface MakeCallOptions {
4
4
  agentId: string;
5
+ user_identity?: string;
5
6
  }
6
7
  export interface LiveKitCallManagerEvents {
7
8
  'status-changed': CustomEvent<CallStatus>;
@@ -68,7 +69,7 @@ export declare class LiveKitCallManager extends EventTarget {
68
69
  get roomNameValue(): string;
69
70
  get showAudioPrompt(): boolean;
70
71
  private updateStatus;
71
- makeCall({ agentId }: MakeCallOptions): Promise<void>;
72
+ makeCall({ agentId, user_identity: userid }: MakeCallOptions): Promise<void>;
72
73
  private setupRoomEventListeners;
73
74
  /**
74
75
  * Apply Krisp noise filter to local audio track
@@ -0,0 +1,4 @@
1
+ export declare function isPrivacyAccepted(): boolean;
2
+ export declare function acceptPrivacy(): void;
3
+ export declare function ensureUserId(): string;
4
+ export declare function getUserId(): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanc-webrtc-widgets",
3
- "version": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "type": "module",
5
5
  "main": "dist/hanc-webrtc-widgets.umd.js",
6
6
  "module": "dist/hanc-webrtc-widgets.es.js",