@w0nna_dev/lina-widget 1.2.2 → 1.2.3
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/dist/lina-widget.es.js +9010 -9022
- package/dist/lina-widget.umd.js +188 -188
- package/dist/src/lina/components/LinaWidget.d.ts +3 -0
- package/dist/src/orb/core/SoundManager.d.ts +4 -29
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ export declare class LinaWidget extends LitElement {
|
|
|
19
19
|
btnStartText: string;
|
|
20
20
|
btnEndText: string;
|
|
21
21
|
colors: Partial<LinaColors>;
|
|
22
|
+
soundsEnabled: boolean;
|
|
23
|
+
soundsVolume: number;
|
|
22
24
|
brandingLogoColor: string;
|
|
23
25
|
brandingTitleColor: string;
|
|
24
26
|
brandingDividerColor: string;
|
|
@@ -32,6 +34,7 @@ export declare class LinaWidget extends LitElement {
|
|
|
32
34
|
connectedCallback(): void;
|
|
33
35
|
disconnectedCallback(): void;
|
|
34
36
|
firstUpdated(): void;
|
|
37
|
+
private initializeSoundManager;
|
|
35
38
|
private checkMicrophonePermission;
|
|
36
39
|
private initializeOrb;
|
|
37
40
|
private initializeCallManager;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SoundManager -
|
|
2
|
+
* SoundManager - Sound effects for call events
|
|
3
|
+
* Uses embedded base64 audio for portability (works in npm packages without external files)
|
|
3
4
|
*/
|
|
4
5
|
export interface SoundConfig {
|
|
5
6
|
enabled: boolean;
|
|
@@ -10,40 +11,14 @@ export declare class SoundManager {
|
|
|
10
11
|
private connectAudio;
|
|
11
12
|
private disconnectAudio;
|
|
12
13
|
constructor(config?: Partial<SoundConfig>);
|
|
13
|
-
|
|
14
|
-
* Preload audio files for instant playback
|
|
15
|
-
*/
|
|
16
|
-
private preloadSounds;
|
|
17
|
-
/**
|
|
18
|
-
* Play connect sound
|
|
19
|
-
*/
|
|
14
|
+
private initAudio;
|
|
20
15
|
playCallStartSound(): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Play disconnect sound
|
|
23
|
-
*/
|
|
24
16
|
playCallEndSound(): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Update configuration
|
|
27
|
-
*/
|
|
28
17
|
setConfig(config: Partial<SoundConfig>): void;
|
|
29
|
-
/**
|
|
30
|
-
* Enable or disable sounds
|
|
31
|
-
*/
|
|
32
18
|
setEnabled(enabled: boolean): void;
|
|
33
|
-
/**
|
|
34
|
-
* Set volume (0.0 - 1.0)
|
|
35
|
-
*/
|
|
36
19
|
setVolume(volume: number): void;
|
|
37
|
-
/**
|
|
38
|
-
* Get current config
|
|
39
|
-
*/
|
|
40
20
|
getConfig(): SoundConfig;
|
|
41
|
-
/**
|
|
42
|
-
* Check if sounds are enabled
|
|
43
|
-
*/
|
|
44
21
|
isEnabled(): boolean;
|
|
45
|
-
|
|
46
|
-
* Cleanup
|
|
47
|
-
*/
|
|
22
|
+
prewarm(): Promise<void>;
|
|
48
23
|
destroy(): void;
|
|
49
24
|
}
|