@ghchinoy/lit-audio-ui 0.4.9 → 0.4.12

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.
Files changed (50) hide show
  1. package/custom-elements.json +4552 -0
  2. package/dist/components/atoms/ui-audio-next-button.js +1 -0
  3. package/dist/components/atoms/ui-audio-play-button.js +15 -3
  4. package/dist/components/atoms/ui-audio-player-error.js +58 -0
  5. package/dist/components/atoms/ui-audio-prev-button.js +1 -0
  6. package/dist/components/atoms/ui-audio-progress-slider.js +1 -0
  7. package/dist/components/atoms/ui-audio-volume-slider.js +9 -2
  8. package/dist/components/atoms/ui-message-bubble.js +8 -8
  9. package/dist/components/atoms/ui-speech-cancel-button.js +1 -1
  10. package/dist/components/atoms/ui-speech-record-button.js +4 -1
  11. package/dist/components/atoms/ui-timed-text.js +80 -0
  12. package/dist/components/atoms/ui-voice-waveform.js +42 -0
  13. package/dist/components/molecules/ui-chat-item.js +31 -5
  14. package/dist/components/molecules/ui-chat-list.js +44 -7
  15. package/dist/components/molecules/ui-conversation-bar.js +184 -0
  16. package/dist/components/molecules/ui-live-waveform.js +17 -4
  17. package/dist/components/molecules/ui-mic-selector.js +10 -3
  18. package/dist/components/molecules/ui-orb.js +8 -5
  19. package/dist/components/molecules/ui-playlist.js +2 -2
  20. package/dist/components/molecules/ui-scrolling-waveform.js +1 -1
  21. package/dist/components/molecules/ui-showcase-card.js +6 -4
  22. package/dist/components/molecules/ui-speech-preview.js +8 -6
  23. package/dist/components/molecules/ui-typing-indicator.js +2 -2
  24. package/dist/components/molecules/ui-voice-button.js +51 -33
  25. package/dist/components/molecules/ui-voice-picker.js +10 -4
  26. package/dist/components/molecules/ui-voice-pill.js +117 -0
  27. package/dist/components/molecules/ui-waveform.js +1 -1
  28. package/dist/components/organisms/ui-audio-player.js +6 -2
  29. package/dist/components/providers/ui-audio-provider.js +2 -1
  30. package/dist/demo/components/demo-chat-experience.d.ts +4 -1
  31. package/dist/demo/components/demo-podcast-player.d.ts +3 -0
  32. package/dist/demo/components/demo-speech-input.d.ts +5 -0
  33. package/dist/index.js +33 -28
  34. package/dist/scream-audio-ui.umd.js +542 -101
  35. package/dist/src/components/atoms/ui-audio-player-error.d.ts +17 -0
  36. package/dist/src/components/atoms/ui-timed-text.d.ts +18 -0
  37. package/dist/src/components/atoms/ui-voice-waveform.d.ts +20 -0
  38. package/dist/src/components/molecules/ui-chat-item.d.ts +3 -0
  39. package/dist/src/components/molecules/ui-chat-list.d.ts +4 -0
  40. package/dist/src/components/molecules/ui-conversation-bar.d.ts +37 -0
  41. package/dist/src/components/molecules/ui-voice-button.d.ts +3 -0
  42. package/dist/src/components/molecules/ui-voice-pill.d.ts +27 -0
  43. package/dist/src/components/organisms/ui-audio-player.d.ts +1 -0
  44. package/dist/src/index.d.ts +6 -1
  45. package/dist/src/utils/audio-context.d.ts +10 -0
  46. package/dist/standalone/favicon.png +0 -0
  47. package/dist/standalone/scream-audio-ui.standalone.js +25778 -0
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/dist/vite.standalone.config.d.ts +2 -0
  50. package/package.json +9 -6
@@ -0,0 +1,4552 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "src/components/atoms/ui-audio-play-button.js"
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "*",
21
+ "declaration": {
22
+ "name": "*",
23
+ "module": "src/components/atoms/ui-audio-next-button.js"
24
+ }
25
+ },
26
+ {
27
+ "kind": "js",
28
+ "name": "*",
29
+ "declaration": {
30
+ "name": "*",
31
+ "module": "src/components/atoms/ui-audio-prev-button.js"
32
+ }
33
+ },
34
+ {
35
+ "kind": "js",
36
+ "name": "*",
37
+ "declaration": {
38
+ "name": "*",
39
+ "module": "src/components/atoms/ui-audio-progress-slider.js"
40
+ }
41
+ },
42
+ {
43
+ "kind": "js",
44
+ "name": "*",
45
+ "declaration": {
46
+ "name": "*",
47
+ "module": "src/components/atoms/ui-audio-time-display.js"
48
+ }
49
+ },
50
+ {
51
+ "kind": "js",
52
+ "name": "*",
53
+ "declaration": {
54
+ "name": "*",
55
+ "module": "src/components/atoms/ui-audio-player-error.js"
56
+ }
57
+ },
58
+ {
59
+ "kind": "js",
60
+ "name": "*",
61
+ "declaration": {
62
+ "name": "*",
63
+ "module": "src/components/atoms/ui-timed-text.js"
64
+ }
65
+ },
66
+ {
67
+ "kind": "js",
68
+ "name": "*",
69
+ "declaration": {
70
+ "name": "*",
71
+ "module": "src/components/atoms/ui-audio-volume-slider.js"
72
+ }
73
+ },
74
+ {
75
+ "kind": "js",
76
+ "name": "*",
77
+ "declaration": {
78
+ "name": "*",
79
+ "module": "src/components/atoms/ui-speech-record-button.js"
80
+ }
81
+ },
82
+ {
83
+ "kind": "js",
84
+ "name": "*",
85
+ "declaration": {
86
+ "name": "*",
87
+ "module": "src/components/atoms/ui-speech-cancel-button.js"
88
+ }
89
+ },
90
+ {
91
+ "kind": "js",
92
+ "name": "*",
93
+ "declaration": {
94
+ "name": "*",
95
+ "module": "src/components/atoms/ui-voice-waveform.js"
96
+ }
97
+ },
98
+ {
99
+ "kind": "js",
100
+ "name": "*",
101
+ "declaration": {
102
+ "name": "*",
103
+ "module": "src/components/atoms/ui-shimmering-text.js"
104
+ }
105
+ },
106
+ {
107
+ "kind": "js",
108
+ "name": "*",
109
+ "declaration": {
110
+ "name": "*",
111
+ "module": "src/components/atoms/ui-message-bubble.js"
112
+ }
113
+ },
114
+ {
115
+ "kind": "js",
116
+ "name": "*",
117
+ "declaration": {
118
+ "name": "*",
119
+ "module": "src/components/atoms/ui-typing-dot.js"
120
+ }
121
+ },
122
+ {
123
+ "kind": "js",
124
+ "name": "*",
125
+ "declaration": {
126
+ "name": "*",
127
+ "module": "src/components/molecules/ui-waveform.js"
128
+ }
129
+ },
130
+ {
131
+ "kind": "js",
132
+ "name": "*",
133
+ "declaration": {
134
+ "name": "*",
135
+ "module": "src/components/molecules/ui-live-waveform.js"
136
+ }
137
+ },
138
+ {
139
+ "kind": "js",
140
+ "name": "*",
141
+ "declaration": {
142
+ "name": "*",
143
+ "module": "src/components/molecules/ui-scrolling-waveform.js"
144
+ }
145
+ },
146
+ {
147
+ "kind": "js",
148
+ "name": "*",
149
+ "declaration": {
150
+ "name": "*",
151
+ "module": "src/components/molecules/ui-spectrum-visualizer.js"
152
+ }
153
+ },
154
+ {
155
+ "kind": "js",
156
+ "name": "*",
157
+ "declaration": {
158
+ "name": "*",
159
+ "module": "src/components/molecules/ui-mic-selector.js"
160
+ }
161
+ },
162
+ {
163
+ "kind": "js",
164
+ "name": "*",
165
+ "declaration": {
166
+ "name": "*",
167
+ "module": "src/components/molecules/ui-voice-picker.js"
168
+ }
169
+ },
170
+ {
171
+ "kind": "js",
172
+ "name": "*",
173
+ "declaration": {
174
+ "name": "*",
175
+ "module": "src/components/molecules/ui-speech-preview.js"
176
+ }
177
+ },
178
+ {
179
+ "kind": "js",
180
+ "name": "*",
181
+ "declaration": {
182
+ "name": "*",
183
+ "module": "src/components/molecules/ui-orb.js"
184
+ }
185
+ },
186
+ {
187
+ "kind": "js",
188
+ "name": "*",
189
+ "declaration": {
190
+ "name": "*",
191
+ "module": "src/components/molecules/ui-3d-flip.js"
192
+ }
193
+ },
194
+ {
195
+ "kind": "js",
196
+ "name": "*",
197
+ "declaration": {
198
+ "name": "*",
199
+ "module": "src/components/molecules/ui-playlist.js"
200
+ }
201
+ },
202
+ {
203
+ "kind": "js",
204
+ "name": "*",
205
+ "declaration": {
206
+ "name": "*",
207
+ "module": "src/components/molecules/ui-showcase-card.js"
208
+ }
209
+ },
210
+ {
211
+ "kind": "js",
212
+ "name": "*",
213
+ "declaration": {
214
+ "name": "*",
215
+ "module": "src/components/molecules/ui-voice-button.js"
216
+ }
217
+ },
218
+ {
219
+ "kind": "js",
220
+ "name": "*",
221
+ "declaration": {
222
+ "name": "*",
223
+ "module": "src/components/molecules/ui-voice-pill.js"
224
+ }
225
+ },
226
+ {
227
+ "kind": "js",
228
+ "name": "*",
229
+ "declaration": {
230
+ "name": "*",
231
+ "module": "src/components/molecules/ui-conversation-bar.js"
232
+ }
233
+ },
234
+ {
235
+ "kind": "js",
236
+ "name": "*",
237
+ "declaration": {
238
+ "name": "*",
239
+ "module": "src/components/molecules/scream-voice-button.js"
240
+ }
241
+ },
242
+ {
243
+ "kind": "js",
244
+ "name": "*",
245
+ "declaration": {
246
+ "name": "*",
247
+ "module": "src/components/molecules/ui-typing-indicator.js"
248
+ }
249
+ },
250
+ {
251
+ "kind": "js",
252
+ "name": "*",
253
+ "declaration": {
254
+ "name": "*",
255
+ "module": "src/components/molecules/ui-chat-item.js"
256
+ }
257
+ },
258
+ {
259
+ "kind": "js",
260
+ "name": "*",
261
+ "declaration": {
262
+ "name": "*",
263
+ "module": "src/components/molecules/ui-chat-list.js"
264
+ }
265
+ },
266
+ {
267
+ "kind": "js",
268
+ "name": "*",
269
+ "declaration": {
270
+ "name": "*",
271
+ "module": "src/components/organisms/ui-audio-player.js"
272
+ }
273
+ },
274
+ {
275
+ "kind": "js",
276
+ "name": "*",
277
+ "declaration": {
278
+ "name": "*",
279
+ "module": "src/components/providers/ui-audio-provider.js"
280
+ }
281
+ },
282
+ {
283
+ "kind": "js",
284
+ "name": "*",
285
+ "declaration": {
286
+ "name": "*",
287
+ "module": "src/components/providers/ui-speech-provider.js"
288
+ }
289
+ },
290
+ {
291
+ "kind": "js",
292
+ "name": "*",
293
+ "declaration": {
294
+ "name": "*",
295
+ "module": "src/utils/audio-utils.js"
296
+ }
297
+ },
298
+ {
299
+ "kind": "js",
300
+ "name": "*",
301
+ "declaration": {
302
+ "name": "*",
303
+ "module": "src/utils/audio-context.js"
304
+ }
305
+ },
306
+ {
307
+ "kind": "js",
308
+ "name": "*",
309
+ "declaration": {
310
+ "name": "*",
311
+ "module": "src/utils/speech-context.js"
312
+ }
313
+ },
314
+ {
315
+ "kind": "js",
316
+ "name": "AudioPlayerState",
317
+ "declaration": {
318
+ "name": "AudioPlayerState",
319
+ "module": "./utils/audio-context.js"
320
+ }
321
+ },
322
+ {
323
+ "kind": "js",
324
+ "name": "PlaylistTrack",
325
+ "declaration": {
326
+ "name": "PlaylistTrack",
327
+ "module": "./utils/audio-context.js"
328
+ }
329
+ },
330
+ {
331
+ "kind": "js",
332
+ "name": "TranscriptWord",
333
+ "declaration": {
334
+ "name": "TranscriptWord",
335
+ "module": "./utils/audio-context.js"
336
+ }
337
+ },
338
+ {
339
+ "kind": "js",
340
+ "name": "SpeechState",
341
+ "declaration": {
342
+ "name": "SpeechState",
343
+ "module": "./utils/speech-context.js"
344
+ }
345
+ },
346
+ {
347
+ "kind": "js",
348
+ "name": "SpeechContext",
349
+ "declaration": {
350
+ "name": "SpeechContext",
351
+ "module": "./utils/speech-context.js"
352
+ }
353
+ },
354
+ {
355
+ "kind": "js",
356
+ "name": "AudioDevice",
357
+ "declaration": {
358
+ "name": "AudioDevice",
359
+ "module": "./components/molecules/ui-mic-selector.js"
360
+ }
361
+ },
362
+ {
363
+ "kind": "js",
364
+ "name": "VoiceItem",
365
+ "declaration": {
366
+ "name": "VoiceItem",
367
+ "module": "./components/molecules/ui-voice-picker.js"
368
+ }
369
+ },
370
+ {
371
+ "kind": "js",
372
+ "name": "VoiceLabel",
373
+ "declaration": {
374
+ "name": "VoiceLabel",
375
+ "module": "./components/molecules/ui-voice-picker.js"
376
+ }
377
+ },
378
+ {
379
+ "kind": "js",
380
+ "name": "AgentState",
381
+ "declaration": {
382
+ "name": "AgentState",
383
+ "module": "./components/molecules/ui-orb.js"
384
+ }
385
+ },
386
+ {
387
+ "kind": "js",
388
+ "name": "VoiceButtonState",
389
+ "declaration": {
390
+ "name": "VoiceButtonState",
391
+ "module": "./components/molecules/ui-voice-button.js"
392
+ }
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "kind": "javascript-module",
398
+ "path": "src/my-element.ts",
399
+ "declarations": [
400
+ {
401
+ "kind": "class",
402
+ "description": "An example element.",
403
+ "name": "MyElement",
404
+ "cssParts": [
405
+ {
406
+ "description": "The button",
407
+ "name": "button"
408
+ }
409
+ ],
410
+ "slots": [
411
+ {
412
+ "description": "This element has a slot",
413
+ "name": ""
414
+ }
415
+ ],
416
+ "members": [
417
+ {
418
+ "kind": "field",
419
+ "name": "docsHint",
420
+ "type": {
421
+ "text": "string"
422
+ },
423
+ "default": "'Click on the Vite and Lit logos to learn more'",
424
+ "description": "Copy for the read the docs hint."
425
+ },
426
+ {
427
+ "kind": "field",
428
+ "name": "count",
429
+ "type": {
430
+ "text": "number"
431
+ },
432
+ "default": "0",
433
+ "description": "The number of times the button has been clicked."
434
+ },
435
+ {
436
+ "kind": "method",
437
+ "name": "render"
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "_onClick",
442
+ "privacy": "private"
443
+ },
444
+ {
445
+ "kind": "field",
446
+ "name": "styles",
447
+ "static": true,
448
+ "default": "css` :host { max-width: 1280px; margin: 0 auto; padding: 2rem; text-align: center; } .logo { height: 6em; padding: 1.5em; will-change: filter; transition: filter 300ms; } .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } .logo.lit:hover { filter: drop-shadow(0 0 2em #325cffaa); } .card { padding: 2em; } .read-the-docs { color: #888; } ::slotted(h1) { font-size: 3.2em; line-height: 1.1; } a { font-weight: 500; color: #646cff; text-decoration: inherit; } a:hover { color: #535bf2; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: #1a1a1a; cursor: pointer; transition: border-color 0.25s; } button:hover { border-color: #646cff; } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } @media (prefers-color-scheme: light) { a:hover { color: #747bff; } button { background-color: #f9f9f9; } } `"
449
+ }
450
+ ],
451
+ "superclass": {
452
+ "name": "LitElement",
453
+ "package": "lit"
454
+ },
455
+ "customElement": true
456
+ }
457
+ ],
458
+ "exports": [
459
+ {
460
+ "kind": "js",
461
+ "name": "MyElement",
462
+ "declaration": {
463
+ "name": "MyElement",
464
+ "module": "src/my-element.ts"
465
+ }
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ "kind": "javascript-module",
471
+ "path": "src/utils/audio-context.ts",
472
+ "declarations": [
473
+ {
474
+ "kind": "variable",
475
+ "name": "audioPlayerContext",
476
+ "description": "A unique token to identify our context.\nAny component that uses"
477
+ }
478
+ ],
479
+ "exports": [
480
+ {
481
+ "kind": "js",
482
+ "name": "audioPlayerContext",
483
+ "declaration": {
484
+ "name": "audioPlayerContext",
485
+ "module": "src/utils/audio-context.ts"
486
+ }
487
+ }
488
+ ]
489
+ },
490
+ {
491
+ "kind": "javascript-module",
492
+ "path": "src/utils/audio-utils.ts",
493
+ "declarations": [
494
+ {
495
+ "kind": "function",
496
+ "name": "createMockAnalyser",
497
+ "return": {
498
+ "type": {
499
+ "text": ""
500
+ }
501
+ },
502
+ "description": "Creates a mock AnalyserNode that generates procedural data.\nUseful for demo environments where microphone access is not available."
503
+ },
504
+ {
505
+ "kind": "function",
506
+ "name": "createAudioAnalyser",
507
+ "return": {
508
+ "type": {
509
+ "text": ""
510
+ }
511
+ },
512
+ "parameters": [
513
+ {
514
+ "name": "mediaStream",
515
+ "type": {
516
+ "text": "MediaStream"
517
+ },
518
+ "description": "The stream to analyze (e.g. from getUserMedia)"
519
+ },
520
+ {
521
+ "name": "options",
522
+ "default": "{}",
523
+ "type": {
524
+ "text": "AudioAnalyserOptions"
525
+ },
526
+ "description": "Configuration for the AnalyserNode"
527
+ }
528
+ ],
529
+ "description": "Creates and configures an AnalyserNode from a given MediaStream."
530
+ },
531
+ {
532
+ "kind": "function",
533
+ "name": "getNormalizedFrequencyData",
534
+ "return": {
535
+ "type": {
536
+ "text": ""
537
+ }
538
+ },
539
+ "parameters": [
540
+ {
541
+ "name": "analyser",
542
+ "type": {
543
+ "text": "AnalyserNode"
544
+ },
545
+ "description": "The AnalyserNode to read from"
546
+ },
547
+ {
548
+ "name": "dataArray",
549
+ "type": {
550
+ "text": "Uint8Array"
551
+ },
552
+ "description": "A pre-allocated Uint8Array to hold the raw byte data"
553
+ }
554
+ ],
555
+ "description": "Normalizes raw frequency data from the AnalyserNode into an array of values between 0.0 and 1.0."
556
+ },
557
+ {
558
+ "kind": "function",
559
+ "name": "generateRandomAudioData",
560
+ "return": {
561
+ "type": {
562
+ "text": ""
563
+ }
564
+ },
565
+ "parameters": [
566
+ {
567
+ "name": "count",
568
+ "type": {
569
+ "text": "number"
570
+ },
571
+ "description": "The number of values to generate"
572
+ },
573
+ {
574
+ "name": "modifier",
575
+ "default": "0.5",
576
+ "type": {
577
+ "text": "number"
578
+ },
579
+ "description": "A multiplier to limit the random scale (e.g. 0.5)"
580
+ }
581
+ ],
582
+ "description": "Generates an array of random normalized values.\nUseful for \"processing\" states when no real audio is available."
583
+ },
584
+ {
585
+ "kind": "function",
586
+ "name": "applyCanvasEdgeFade",
587
+ "return": {
588
+ "type": {
589
+ "text": "void"
590
+ }
591
+ },
592
+ "parameters": [
593
+ {
594
+ "name": "ctx",
595
+ "type": {
596
+ "text": "CanvasRenderingContext2D"
597
+ },
598
+ "description": "The canvas 2D rendering context"
599
+ },
600
+ {
601
+ "name": "width",
602
+ "type": {
603
+ "text": "number"
604
+ },
605
+ "description": "The logical width of the canvas"
606
+ },
607
+ {
608
+ "name": "height",
609
+ "type": {
610
+ "text": "number"
611
+ },
612
+ "description": "The logical height of the canvas"
613
+ },
614
+ {
615
+ "name": "fadeWidth",
616
+ "type": {
617
+ "text": "number"
618
+ },
619
+ "description": "The physical width in pixels of the fade effect"
620
+ }
621
+ ],
622
+ "description": "Creates an edge-fade gradient over a canvas to smoothly blend the left and right edges."
623
+ }
624
+ ],
625
+ "exports": [
626
+ {
627
+ "kind": "js",
628
+ "name": "createMockAnalyser",
629
+ "declaration": {
630
+ "name": "createMockAnalyser",
631
+ "module": "src/utils/audio-utils.ts"
632
+ }
633
+ },
634
+ {
635
+ "kind": "js",
636
+ "name": "createAudioAnalyser",
637
+ "declaration": {
638
+ "name": "createAudioAnalyser",
639
+ "module": "src/utils/audio-utils.ts"
640
+ }
641
+ },
642
+ {
643
+ "kind": "js",
644
+ "name": "getNormalizedFrequencyData",
645
+ "declaration": {
646
+ "name": "getNormalizedFrequencyData",
647
+ "module": "src/utils/audio-utils.ts"
648
+ }
649
+ },
650
+ {
651
+ "kind": "js",
652
+ "name": "generateRandomAudioData",
653
+ "declaration": {
654
+ "name": "generateRandomAudioData",
655
+ "module": "src/utils/audio-utils.ts"
656
+ }
657
+ },
658
+ {
659
+ "kind": "js",
660
+ "name": "applyCanvasEdgeFade",
661
+ "declaration": {
662
+ "name": "applyCanvasEdgeFade",
663
+ "module": "src/utils/audio-utils.ts"
664
+ }
665
+ }
666
+ ]
667
+ },
668
+ {
669
+ "kind": "javascript-module",
670
+ "path": "src/utils/speech-context.ts",
671
+ "declarations": [
672
+ {
673
+ "kind": "variable",
674
+ "name": "speechContext"
675
+ }
676
+ ],
677
+ "exports": [
678
+ {
679
+ "kind": "js",
680
+ "name": "speechContext",
681
+ "declaration": {
682
+ "name": "speechContext",
683
+ "module": "src/utils/speech-context.ts"
684
+ }
685
+ }
686
+ ]
687
+ },
688
+ {
689
+ "kind": "javascript-module",
690
+ "path": "src/components/atoms/ui-audio-next-button.ts",
691
+ "declarations": [
692
+ {
693
+ "kind": "class",
694
+ "description": "An atomic navigation button that triggers the 'next' track in a playlist.\nConsumes the AudioPlayerState from the nearest ui-audio-provider.",
695
+ "name": "UiAudioNextButton",
696
+ "members": [
697
+ {
698
+ "kind": "field",
699
+ "name": "playerState",
700
+ "type": {
701
+ "text": "AudioPlayerState | undefined"
702
+ },
703
+ "privacy": "private"
704
+ },
705
+ {
706
+ "kind": "field",
707
+ "name": "styles",
708
+ "static": true,
709
+ "default": "css` :host { display: inline-block; } `"
710
+ },
711
+ {
712
+ "kind": "method",
713
+ "name": "render"
714
+ }
715
+ ],
716
+ "superclass": {
717
+ "name": "LitElement",
718
+ "package": "lit"
719
+ },
720
+ "tagName": "ui-audio-next-button",
721
+ "customElement": true
722
+ }
723
+ ],
724
+ "exports": [
725
+ {
726
+ "kind": "js",
727
+ "name": "UiAudioNextButton",
728
+ "declaration": {
729
+ "name": "UiAudioNextButton",
730
+ "module": "src/components/atoms/ui-audio-next-button.ts"
731
+ }
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "kind": "javascript-module",
737
+ "path": "src/components/atoms/ui-audio-play-button.ts",
738
+ "declarations": [
739
+ {
740
+ "kind": "class",
741
+ "description": "",
742
+ "name": "UiAudioPlayButton",
743
+ "members": [
744
+ {
745
+ "kind": "field",
746
+ "name": "playerState",
747
+ "type": {
748
+ "text": "AudioPlayerState | undefined"
749
+ },
750
+ "privacy": "public"
751
+ },
752
+ {
753
+ "kind": "field",
754
+ "name": "styles",
755
+ "static": true,
756
+ "default": "css` :host { display: inline-flex; position: relative; align-items: center; justify-content: center; font-family: inherit; } md-filled-icon-button { --md-filled-icon-button-container-color: var( --md-sys-color-primary, #0066cc ); --md-filled-icon-button-icon-color: var( --md-sys-color-on-primary, #ffffff ); --md-filled-icon-button-hover-icon-color: var( --md-sys-color-on-primary, #ffffff ); --md-filled-icon-button-focus-icon-color: var( --md-sys-color-on-primary, #ffffff ); --md-filled-icon-button-pressed-icon-color: var( --md-sys-color-on-primary, #ffffff ); --md-filled-icon-button-toggle-icon-color: var( --md-sys-color-on-primary, #ffffff ); --md-filled-icon-button-selected-container-color: var( --md-sys-color-primary, #0066cc ); --md-filled-icon-button-selected-icon-color: var( --md-sys-color-on-primary, #ffffff ); color: var(--md-sys-color-on-primary, #ffffff); } md-filled-icon-button.error { --md-filled-icon-button-container-color: var( --ui-audio-error-color, var(--md-sys-color-error, #ba1a1a) ); --md-filled-icon-button-icon-color: var(--md-sys-color-on-error, #ffffff); } md-circular-progress { position: absolute; --md-circular-progress-size: 48px; } `"
757
+ },
758
+ {
759
+ "kind": "method",
760
+ "name": "render"
761
+ },
762
+ {
763
+ "kind": "method",
764
+ "name": "_handleClick",
765
+ "privacy": "private"
766
+ }
767
+ ],
768
+ "superclass": {
769
+ "name": "LitElement",
770
+ "package": "lit"
771
+ },
772
+ "customElement": true
773
+ }
774
+ ],
775
+ "exports": [
776
+ {
777
+ "kind": "js",
778
+ "name": "UiAudioPlayButton",
779
+ "declaration": {
780
+ "name": "UiAudioPlayButton",
781
+ "module": "src/components/atoms/ui-audio-play-button.ts"
782
+ }
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "kind": "javascript-module",
788
+ "path": "src/components/atoms/ui-audio-player-error.ts",
789
+ "declarations": [
790
+ {
791
+ "kind": "class",
792
+ "description": "An atomic component that displays a visual error indicator and message\nwhen the audio player encounters a resource loading or playback error.",
793
+ "name": "UiAudioPlayerError",
794
+ "members": [
795
+ {
796
+ "kind": "field",
797
+ "name": "playerState",
798
+ "type": {
799
+ "text": "AudioPlayerState | undefined"
800
+ },
801
+ "privacy": "public"
802
+ },
803
+ {
804
+ "kind": "field",
805
+ "name": "styles",
806
+ "static": true,
807
+ "default": "css` :host { display: inline-flex; align-items: center; color: var(--ui-audio-error-color, var(--md-sys-color-error, #ba1a1a)); font-size: 12px; font-family: inherit; gap: 4px; animation: fadeIn 0.3s ease forwards; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .error-icon { font-size: 18px; } .error-text { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } `"
808
+ },
809
+ {
810
+ "kind": "method",
811
+ "name": "render"
812
+ }
813
+ ],
814
+ "superclass": {
815
+ "name": "LitElement",
816
+ "package": "lit"
817
+ },
818
+ "tagName": "ui-audio-player-error",
819
+ "customElement": true
820
+ }
821
+ ],
822
+ "exports": [
823
+ {
824
+ "kind": "js",
825
+ "name": "UiAudioPlayerError",
826
+ "declaration": {
827
+ "name": "UiAudioPlayerError",
828
+ "module": "src/components/atoms/ui-audio-player-error.ts"
829
+ }
830
+ }
831
+ ]
832
+ },
833
+ {
834
+ "kind": "javascript-module",
835
+ "path": "src/components/atoms/ui-audio-prev-button.ts",
836
+ "declarations": [
837
+ {
838
+ "kind": "class",
839
+ "description": "An atomic navigation button that triggers the 'previous' track in a playlist.\nConsumes the AudioPlayerState from the nearest ui-audio-provider.",
840
+ "name": "UiAudioPrevButton",
841
+ "members": [
842
+ {
843
+ "kind": "field",
844
+ "name": "playerState",
845
+ "type": {
846
+ "text": "AudioPlayerState | undefined"
847
+ },
848
+ "privacy": "private"
849
+ },
850
+ {
851
+ "kind": "field",
852
+ "name": "styles",
853
+ "static": true,
854
+ "default": "css` :host { display: inline-block; } `"
855
+ },
856
+ {
857
+ "kind": "method",
858
+ "name": "render"
859
+ }
860
+ ],
861
+ "superclass": {
862
+ "name": "LitElement",
863
+ "package": "lit"
864
+ },
865
+ "tagName": "ui-audio-prev-button",
866
+ "customElement": true
867
+ }
868
+ ],
869
+ "exports": [
870
+ {
871
+ "kind": "js",
872
+ "name": "UiAudioPrevButton",
873
+ "declaration": {
874
+ "name": "UiAudioPrevButton",
875
+ "module": "src/components/atoms/ui-audio-prev-button.ts"
876
+ }
877
+ }
878
+ ]
879
+ },
880
+ {
881
+ "kind": "javascript-module",
882
+ "path": "src/components/atoms/ui-audio-progress-slider.ts",
883
+ "declarations": [
884
+ {
885
+ "kind": "class",
886
+ "description": "",
887
+ "name": "UiAudioProgressSlider",
888
+ "members": [
889
+ {
890
+ "kind": "field",
891
+ "name": "playerState",
892
+ "type": {
893
+ "text": "AudioPlayerState | undefined"
894
+ },
895
+ "privacy": "public"
896
+ },
897
+ {
898
+ "kind": "field",
899
+ "name": "_isDragging",
900
+ "type": {
901
+ "text": "boolean"
902
+ },
903
+ "privacy": "private",
904
+ "default": "false"
905
+ },
906
+ {
907
+ "kind": "field",
908
+ "name": "_dragValue",
909
+ "type": {
910
+ "text": "number"
911
+ },
912
+ "privacy": "private",
913
+ "default": "0"
914
+ },
915
+ {
916
+ "kind": "field",
917
+ "name": "styles",
918
+ "static": true,
919
+ "default": "css` :host { display: flex; width: 100%; align-items: center; min-width: 100px; } md-slider { width: 100%; /* Give the slider track better contrast against backgrounds */ --md-slider-inactive-track-color: var(--md-sys-color-outline, #79747e); } `"
920
+ },
921
+ {
922
+ "kind": "method",
923
+ "name": "render"
924
+ },
925
+ {
926
+ "kind": "method",
927
+ "name": "_handleInput",
928
+ "privacy": "private",
929
+ "parameters": [
930
+ {
931
+ "name": "e",
932
+ "type": {
933
+ "text": "Event"
934
+ }
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ "kind": "method",
940
+ "name": "_handleChange",
941
+ "privacy": "private",
942
+ "parameters": [
943
+ {
944
+ "name": "e",
945
+ "type": {
946
+ "text": "Event"
947
+ }
948
+ }
949
+ ]
950
+ }
951
+ ],
952
+ "superclass": {
953
+ "name": "LitElement",
954
+ "package": "lit"
955
+ },
956
+ "customElement": true
957
+ }
958
+ ],
959
+ "exports": [
960
+ {
961
+ "kind": "js",
962
+ "name": "UiAudioProgressSlider",
963
+ "declaration": {
964
+ "name": "UiAudioProgressSlider",
965
+ "module": "src/components/atoms/ui-audio-progress-slider.ts"
966
+ }
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "kind": "javascript-module",
972
+ "path": "src/components/atoms/ui-audio-time-display.ts",
973
+ "declarations": [
974
+ {
975
+ "kind": "class",
976
+ "description": "A reactive time display component that shows playback progress.\nConsumes AudioPlayerState from the nearest ui-audio-provider.",
977
+ "name": "UiAudioTimeDisplay",
978
+ "members": [
979
+ {
980
+ "kind": "field",
981
+ "name": "playerState",
982
+ "type": {
983
+ "text": "AudioPlayerState | undefined"
984
+ },
985
+ "privacy": "public"
986
+ },
987
+ {
988
+ "kind": "field",
989
+ "name": "format",
990
+ "type": {
991
+ "text": "string"
992
+ },
993
+ "default": "'combined'",
994
+ "description": "Display mode: 'elapsed', 'remaining', or 'combined' (default)."
995
+ },
996
+ {
997
+ "kind": "field",
998
+ "name": "separator",
999
+ "type": {
1000
+ "text": "string"
1001
+ },
1002
+ "default": "' / '",
1003
+ "description": "The string to use between current and total time in 'combined' mode (default: ' / ')."
1004
+ },
1005
+ {
1006
+ "kind": "field",
1007
+ "name": "compact",
1008
+ "type": {
1009
+ "text": "boolean"
1010
+ },
1011
+ "default": "false",
1012
+ "description": "If true, omits leading zeros and hours for a cleaner look."
1013
+ },
1014
+ {
1015
+ "kind": "field",
1016
+ "name": "styles",
1017
+ "static": true,
1018
+ "default": "css` :host { display: inline-block; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--md-sys-color-on-surface-variant, #444); font-family: inherit; } `"
1019
+ },
1020
+ {
1021
+ "kind": "method",
1022
+ "name": "render"
1023
+ },
1024
+ {
1025
+ "kind": "method",
1026
+ "name": "_formatTime",
1027
+ "privacy": "private",
1028
+ "return": {
1029
+ "type": {
1030
+ "text": "string"
1031
+ }
1032
+ },
1033
+ "parameters": [
1034
+ {
1035
+ "name": "seconds",
1036
+ "type": {
1037
+ "text": "number"
1038
+ }
1039
+ }
1040
+ ]
1041
+ }
1042
+ ],
1043
+ "superclass": {
1044
+ "name": "LitElement",
1045
+ "package": "lit"
1046
+ },
1047
+ "tagName": "ui-audio-time-display",
1048
+ "customElement": true
1049
+ }
1050
+ ],
1051
+ "exports": [
1052
+ {
1053
+ "kind": "js",
1054
+ "name": "UiAudioTimeDisplay",
1055
+ "declaration": {
1056
+ "name": "UiAudioTimeDisplay",
1057
+ "module": "src/components/atoms/ui-audio-time-display.ts"
1058
+ }
1059
+ }
1060
+ ]
1061
+ },
1062
+ {
1063
+ "kind": "javascript-module",
1064
+ "path": "src/components/atoms/ui-audio-volume-slider.ts",
1065
+ "declarations": [
1066
+ {
1067
+ "kind": "class",
1068
+ "description": "",
1069
+ "name": "UiAudioVolumeSlider",
1070
+ "members": [
1071
+ {
1072
+ "kind": "field",
1073
+ "name": "playerState",
1074
+ "type": {
1075
+ "text": "AudioPlayerState | undefined"
1076
+ },
1077
+ "privacy": "public"
1078
+ },
1079
+ {
1080
+ "kind": "field",
1081
+ "name": "styles",
1082
+ "static": true,
1083
+ "default": "css` :host { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; } md-slider { flex: 1; min-width: 0; /* Prevent flex overflow */ width: 100%; --md-slider-inactive-track-color: var( --md-sys-color-outline-variant, #c4c7c5 ); } md-icon-button { color: var(--md-sys-color-on-surface-variant, #444); } `"
1084
+ },
1085
+ {
1086
+ "kind": "method",
1087
+ "name": "render"
1088
+ },
1089
+ {
1090
+ "kind": "method",
1091
+ "name": "_handleInput",
1092
+ "privacy": "private",
1093
+ "parameters": [
1094
+ {
1095
+ "name": "e",
1096
+ "type": {
1097
+ "text": "Event"
1098
+ }
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ "kind": "method",
1104
+ "name": "_toggleMute",
1105
+ "privacy": "private"
1106
+ }
1107
+ ],
1108
+ "superclass": {
1109
+ "name": "LitElement",
1110
+ "package": "lit"
1111
+ },
1112
+ "customElement": true
1113
+ }
1114
+ ],
1115
+ "exports": [
1116
+ {
1117
+ "kind": "js",
1118
+ "name": "UiAudioVolumeSlider",
1119
+ "declaration": {
1120
+ "name": "UiAudioVolumeSlider",
1121
+ "module": "src/components/atoms/ui-audio-volume-slider.ts"
1122
+ }
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "kind": "javascript-module",
1128
+ "path": "src/components/atoms/ui-message-bubble.ts",
1129
+ "declarations": [
1130
+ {
1131
+ "kind": "class",
1132
+ "description": "ATOM: Message Bubble\nA presentational container for chat message text.\nPorted from ElevenLabs 'MessageContent'.",
1133
+ "name": "UiMessageBubble",
1134
+ "members": [
1135
+ {
1136
+ "kind": "field",
1137
+ "name": "variant",
1138
+ "type": {
1139
+ "text": "string"
1140
+ },
1141
+ "default": "'contained'",
1142
+ "description": "'contained' (default) or 'flat'."
1143
+ },
1144
+ {
1145
+ "kind": "field",
1146
+ "name": "direction",
1147
+ "type": {
1148
+ "text": "string"
1149
+ },
1150
+ "default": "'inbound'",
1151
+ "description": "'inbound' (agent) or 'outbound' (user)."
1152
+ },
1153
+ {
1154
+ "kind": "field",
1155
+ "name": "styles",
1156
+ "static": true,
1157
+ "default": "css` :host { display: inline-flex; max-width: 85%; font-family: inherit; color-scheme: light dark; } .bubble { display: flex; flex-direction: column; gap: var(--ui-message-bubble-gap, 8px); padding: var(--ui-message-bubble-padding, 14px 18px); font-size: 0.95rem; line-height: 1.5; box-sizing: border-box; transition: background-color 0.2s, color 0.2s; } /* Variant: Contained */ :host([variant='contained']) .bubble { border-radius: var(--ui-message-bubble-radius, 16px); } :host([variant='contained'][direction='inbound']) .bubble { background: var( --ui-message-bubble-inbound-bg, var(--md-sys-color-surface-container-high, #e2e2e2) ); color: var(--md-sys-color-on-surface); border-bottom-left-radius: var(--ui-message-bubble-corner-radius, 4px); } :host([variant='contained'][direction='outbound']) .bubble { background: var( --ui-message-bubble-outbound-bg, var(--md-sys-color-primary, #0066cc) ); color: var(--md-sys-color-on-primary, #ffffff); border-bottom-right-radius: var(--ui-message-bubble-corner-radius, 4px); } /* Variant: Flat */ :host([variant='flat']) .bubble { padding: var(--ui-message-bubble-flat-padding, 8px 0); background: transparent; color: var(--md-sys-color-on-surface); } :host([variant='flat'][direction='outbound']) .bubble { padding: var(--ui-message-bubble-flat-outbound-padding, 12px 16px); background: var(--md-sys-color-surface-container-highest); border-radius: var(--ui-message-bubble-flat-radius, 12px); } `"
1158
+ },
1159
+ {
1160
+ "kind": "method",
1161
+ "name": "render"
1162
+ }
1163
+ ],
1164
+ "superclass": {
1165
+ "name": "LitElement",
1166
+ "package": "lit"
1167
+ },
1168
+ "tagName": "ui-message-bubble",
1169
+ "customElement": true
1170
+ }
1171
+ ],
1172
+ "exports": [
1173
+ {
1174
+ "kind": "js",
1175
+ "name": "UiMessageBubble",
1176
+ "declaration": {
1177
+ "name": "UiMessageBubble",
1178
+ "module": "src/components/atoms/ui-message-bubble.ts"
1179
+ }
1180
+ }
1181
+ ]
1182
+ },
1183
+ {
1184
+ "kind": "javascript-module",
1185
+ "path": "src/components/atoms/ui-shimmering-text.ts",
1186
+ "declarations": [
1187
+ {
1188
+ "kind": "class",
1189
+ "description": "A native Lit WebComponent that provides a shimmering text animation.",
1190
+ "name": "UiShimmeringText",
1191
+ "members": [
1192
+ {
1193
+ "kind": "field",
1194
+ "name": "text",
1195
+ "type": {
1196
+ "text": "string"
1197
+ },
1198
+ "default": "''"
1199
+ },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "duration",
1203
+ "type": {
1204
+ "text": "number"
1205
+ },
1206
+ "default": "2"
1207
+ },
1208
+ {
1209
+ "kind": "field",
1210
+ "name": "delay",
1211
+ "type": {
1212
+ "text": "number"
1213
+ },
1214
+ "default": "0"
1215
+ },
1216
+ {
1217
+ "kind": "field",
1218
+ "name": "repeat",
1219
+ "type": {
1220
+ "text": "boolean"
1221
+ },
1222
+ "default": "true"
1223
+ },
1224
+ {
1225
+ "kind": "field",
1226
+ "name": "repeatDelay",
1227
+ "type": {
1228
+ "text": "number"
1229
+ },
1230
+ "default": "0.5"
1231
+ },
1232
+ {
1233
+ "kind": "field",
1234
+ "name": "startOnView",
1235
+ "type": {
1236
+ "text": "boolean"
1237
+ },
1238
+ "default": "true"
1239
+ },
1240
+ {
1241
+ "kind": "field",
1242
+ "name": "once",
1243
+ "type": {
1244
+ "text": "boolean"
1245
+ },
1246
+ "default": "false"
1247
+ },
1248
+ {
1249
+ "kind": "field",
1250
+ "name": "spread",
1251
+ "type": {
1252
+ "text": "number"
1253
+ },
1254
+ "default": "2"
1255
+ },
1256
+ {
1257
+ "kind": "field",
1258
+ "name": "color",
1259
+ "type": {
1260
+ "text": "string | undefined"
1261
+ }
1262
+ },
1263
+ {
1264
+ "kind": "field",
1265
+ "name": "shimmerColor",
1266
+ "type": {
1267
+ "text": "string | undefined"
1268
+ }
1269
+ },
1270
+ {
1271
+ "kind": "field",
1272
+ "name": "_isInView",
1273
+ "type": {
1274
+ "text": "boolean"
1275
+ },
1276
+ "privacy": "private",
1277
+ "default": "false"
1278
+ },
1279
+ {
1280
+ "kind": "field",
1281
+ "name": "_intersectionObserver",
1282
+ "type": {
1283
+ "text": "IntersectionObserver | undefined"
1284
+ },
1285
+ "privacy": "private"
1286
+ },
1287
+ {
1288
+ "kind": "field",
1289
+ "name": "styles",
1290
+ "static": true,
1291
+ "default": "css` :host { display: inline-block; font-family: inherit; } span { position: relative; display: inline-block; --base-color: color-mix( in srgb, var(--md-sys-color-on-surface, #1e1e1e) 20%, transparent ); --shimmer-color: var(--md-sys-color-on-surface, #1e1e1e); --shimmer-bg: linear-gradient( 90deg, transparent calc(50% - var(--spread)), var(--shimmer-color) 50%, transparent calc(50% + var(--spread)) ); background-image: var(--shimmer-bg), linear-gradient(var(--base-color), var(--base-color)); background-size: 250% 100%, auto; background-position: 100% center; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; opacity: 0; transition: opacity 0.3s ease; } span.active { opacity: 1; } @keyframes shimmer { 0% { background-position: 100% center; } 100% { background-position: 0% center; } } `"
1292
+ },
1293
+ {
1294
+ "kind": "method",
1295
+ "name": "firstUpdated",
1296
+ "privacy": "protected"
1297
+ },
1298
+ {
1299
+ "kind": "method",
1300
+ "name": "render"
1301
+ }
1302
+ ],
1303
+ "superclass": {
1304
+ "name": "LitElement",
1305
+ "package": "lit"
1306
+ },
1307
+ "customElement": true
1308
+ }
1309
+ ],
1310
+ "exports": [
1311
+ {
1312
+ "kind": "js",
1313
+ "name": "UiShimmeringText",
1314
+ "declaration": {
1315
+ "name": "UiShimmeringText",
1316
+ "module": "src/components/atoms/ui-shimmering-text.ts"
1317
+ }
1318
+ }
1319
+ ]
1320
+ },
1321
+ {
1322
+ "kind": "javascript-module",
1323
+ "path": "src/components/atoms/ui-speech-cancel-button.ts",
1324
+ "declarations": [
1325
+ {
1326
+ "kind": "class",
1327
+ "description": "",
1328
+ "name": "UiSpeechCancelButton",
1329
+ "members": [
1330
+ {
1331
+ "kind": "field",
1332
+ "name": "_context",
1333
+ "type": {
1334
+ "text": "SpeechContext | undefined"
1335
+ },
1336
+ "privacy": "private"
1337
+ },
1338
+ {
1339
+ "kind": "field",
1340
+ "name": "styles",
1341
+ "static": true,
1342
+ "default": "css` :host { display: inline-block; opacity: 0; visibility: hidden; transition: all 0.3s ease; width: 0; overflow: hidden; } :host([active]) { opacity: 1; visibility: visible; width: 40px; } md-icon-button { --md-icon-button-icon-color: var( --md-sys-color-on-surface-variant, #444444 ); } `"
1343
+ },
1344
+ {
1345
+ "kind": "method",
1346
+ "name": "render"
1347
+ },
1348
+ {
1349
+ "kind": "method",
1350
+ "name": "_handleClick",
1351
+ "privacy": "private"
1352
+ }
1353
+ ],
1354
+ "superclass": {
1355
+ "name": "LitElement",
1356
+ "package": "lit"
1357
+ },
1358
+ "customElement": true
1359
+ }
1360
+ ],
1361
+ "exports": [
1362
+ {
1363
+ "kind": "js",
1364
+ "name": "UiSpeechCancelButton",
1365
+ "declaration": {
1366
+ "name": "UiSpeechCancelButton",
1367
+ "module": "src/components/atoms/ui-speech-cancel-button.ts"
1368
+ }
1369
+ }
1370
+ ]
1371
+ },
1372
+ {
1373
+ "kind": "javascript-module",
1374
+ "path": "src/components/atoms/ui-speech-record-button.ts",
1375
+ "declarations": [
1376
+ {
1377
+ "kind": "class",
1378
+ "description": "",
1379
+ "name": "UiSpeechRecordButton",
1380
+ "members": [
1381
+ {
1382
+ "kind": "field",
1383
+ "name": "_context",
1384
+ "type": {
1385
+ "text": "SpeechContext | undefined"
1386
+ },
1387
+ "privacy": "private"
1388
+ },
1389
+ {
1390
+ "kind": "field",
1391
+ "name": "size",
1392
+ "type": {
1393
+ "text": "'sm' | 'default' | 'lg'"
1394
+ },
1395
+ "default": "'default'"
1396
+ },
1397
+ {
1398
+ "kind": "field",
1399
+ "name": "styles",
1400
+ "static": true,
1401
+ "default": "css` :host { display: inline-block; } md-filled-icon-button { --md-filled-icon-button-container-width: 48px; --md-filled-icon-button-container-height: 48px; --md-filled-icon-button-icon-size: 24px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } :host([size='sm']) md-filled-icon-button { --md-filled-icon-button-container-width: 32px; --md-filled-icon-button-container-height: 32px; --md-filled-icon-button-icon-size: 18px; } :host([size='lg']) md-filled-icon-button { --md-filled-icon-button-container-width: 64px; --md-filled-icon-button-container-height: 64px; --md-filled-icon-button-icon-size: 32px; } .recording { --md-filled-icon-button-container-color: var( --ui-speech-record-color, var(--md-sys-color-error, #ba1a1a) ); } .processing { --md-filled-icon-button-container-color: var( --ui-speech-processing-color, var(--md-sys-color-secondary, #0066cc) ); animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } } `"
1402
+ },
1403
+ {
1404
+ "kind": "method",
1405
+ "name": "render"
1406
+ },
1407
+ {
1408
+ "kind": "method",
1409
+ "name": "_handleClick",
1410
+ "privacy": "private"
1411
+ }
1412
+ ],
1413
+ "superclass": {
1414
+ "name": "LitElement",
1415
+ "package": "lit"
1416
+ },
1417
+ "customElement": true
1418
+ }
1419
+ ],
1420
+ "exports": [
1421
+ {
1422
+ "kind": "js",
1423
+ "name": "UiSpeechRecordButton",
1424
+ "declaration": {
1425
+ "name": "UiSpeechRecordButton",
1426
+ "module": "src/components/atoms/ui-speech-record-button.ts"
1427
+ }
1428
+ }
1429
+ ]
1430
+ },
1431
+ {
1432
+ "kind": "javascript-module",
1433
+ "path": "src/components/atoms/ui-timed-text.ts",
1434
+ "declarations": [
1435
+ {
1436
+ "kind": "class",
1437
+ "description": "ATOM: Timed Text\nRenders a transcript with word-level highlighting synchronized to audio playback.\nConsumes AudioPlayerState for timing and transcript data.",
1438
+ "name": "UiTimedText",
1439
+ "members": [
1440
+ {
1441
+ "kind": "field",
1442
+ "name": "playerState",
1443
+ "type": {
1444
+ "text": "AudioPlayerState | undefined"
1445
+ },
1446
+ "privacy": "public"
1447
+ },
1448
+ {
1449
+ "kind": "field",
1450
+ "name": "styles",
1451
+ "static": true,
1452
+ "default": "css` :host { display: block; font-family: inherit; line-height: 1.6; } .transcript { display: flex; flex-wrap: wrap; gap: 4px 6px; } .word { transition: all 0.2s ease; color: var( --ui-timed-text-color, var(--md-sys-color-on-surface-variant, #444) ); border-radius: 4px; padding: 0 2px; } .word.active { color: var( --ui-timed-text-active-color, var(--md-sys-color-on-secondary-container, #1d192b) ); background: var( --ui-timed-text-active-bg, var(--md-sys-color-secondary-container, #e8def8) ); transform: scale(1.05); } .word.past { color: var( --ui-timed-text-past-color, var(--md-sys-color-on-surface, #1e1e1e) ); } `"
1453
+ },
1454
+ {
1455
+ "kind": "method",
1456
+ "name": "render"
1457
+ },
1458
+ {
1459
+ "kind": "method",
1460
+ "name": "_renderWord",
1461
+ "privacy": "private",
1462
+ "parameters": [
1463
+ {
1464
+ "name": "word",
1465
+ "type": {
1466
+ "text": "TranscriptWord"
1467
+ }
1468
+ },
1469
+ {
1470
+ "name": "currentTime",
1471
+ "type": {
1472
+ "text": "number"
1473
+ }
1474
+ }
1475
+ ]
1476
+ }
1477
+ ],
1478
+ "superclass": {
1479
+ "name": "LitElement",
1480
+ "package": "lit"
1481
+ },
1482
+ "tagName": "ui-timed-text",
1483
+ "customElement": true
1484
+ }
1485
+ ],
1486
+ "exports": [
1487
+ {
1488
+ "kind": "js",
1489
+ "name": "UiTimedText",
1490
+ "declaration": {
1491
+ "name": "UiTimedText",
1492
+ "module": "src/components/atoms/ui-timed-text.ts"
1493
+ }
1494
+ }
1495
+ ]
1496
+ },
1497
+ {
1498
+ "kind": "javascript-module",
1499
+ "path": "src/components/atoms/ui-typing-dot.ts",
1500
+ "declarations": [
1501
+ {
1502
+ "kind": "class",
1503
+ "description": "ATOM: Typing Dot\nA simple animated dot used for typing indicators.",
1504
+ "name": "UiTypingDot",
1505
+ "members": [
1506
+ {
1507
+ "kind": "field",
1508
+ "name": "delay",
1509
+ "type": {
1510
+ "text": "string"
1511
+ },
1512
+ "default": "'0s'",
1513
+ "description": "CSS animation delay (e.g., '0.2s')."
1514
+ },
1515
+ {
1516
+ "kind": "field",
1517
+ "name": "styles",
1518
+ "static": true,
1519
+ "default": "css` :host { display: inline-block; } .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ui-typing-dot-color, currentColor); animation: pulse 1.2s infinite ease-in-out; } @keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 1; } } `"
1520
+ },
1521
+ {
1522
+ "kind": "method",
1523
+ "name": "render"
1524
+ }
1525
+ ],
1526
+ "superclass": {
1527
+ "name": "LitElement",
1528
+ "package": "lit"
1529
+ },
1530
+ "tagName": "ui-typing-dot",
1531
+ "customElement": true
1532
+ }
1533
+ ],
1534
+ "exports": [
1535
+ {
1536
+ "kind": "js",
1537
+ "name": "UiTypingDot",
1538
+ "declaration": {
1539
+ "name": "UiTypingDot",
1540
+ "module": "src/components/atoms/ui-typing-dot.ts"
1541
+ }
1542
+ }
1543
+ ]
1544
+ },
1545
+ {
1546
+ "kind": "javascript-module",
1547
+ "path": "src/components/atoms/ui-voice-waveform.ts",
1548
+ "declarations": [
1549
+ {
1550
+ "kind": "class",
1551
+ "description": "A specialized version of ui-live-waveform that automatically consumes\nstate from a nearby ui-speech-provider.",
1552
+ "name": "UiVoiceWaveform",
1553
+ "members": [
1554
+ {
1555
+ "kind": "field",
1556
+ "name": "_context",
1557
+ "type": {
1558
+ "text": "SpeechContext | undefined"
1559
+ },
1560
+ "privacy": "private"
1561
+ },
1562
+ {
1563
+ "kind": "field",
1564
+ "name": "barWidth",
1565
+ "type": {
1566
+ "text": "number"
1567
+ },
1568
+ "default": "2"
1569
+ },
1570
+ {
1571
+ "kind": "field",
1572
+ "name": "barGap",
1573
+ "type": {
1574
+ "text": "number"
1575
+ },
1576
+ "default": "1"
1577
+ },
1578
+ {
1579
+ "kind": "field",
1580
+ "name": "barColor",
1581
+ "type": {
1582
+ "text": "string"
1583
+ },
1584
+ "default": "'currentColor'"
1585
+ },
1586
+ {
1587
+ "kind": "field",
1588
+ "name": "height",
1589
+ "type": {
1590
+ "text": "number"
1591
+ },
1592
+ "default": "20"
1593
+ },
1594
+ {
1595
+ "kind": "field",
1596
+ "name": "styles",
1597
+ "static": true,
1598
+ "default": "css` :host { display: block; width: 100%; } `"
1599
+ },
1600
+ {
1601
+ "kind": "method",
1602
+ "name": "render"
1603
+ }
1604
+ ],
1605
+ "superclass": {
1606
+ "name": "LitElement",
1607
+ "package": "lit"
1608
+ },
1609
+ "tagName": "ui-voice-waveform",
1610
+ "customElement": true
1611
+ }
1612
+ ],
1613
+ "exports": [
1614
+ {
1615
+ "kind": "js",
1616
+ "name": "UiVoiceWaveform",
1617
+ "declaration": {
1618
+ "name": "UiVoiceWaveform",
1619
+ "module": "src/components/atoms/ui-voice-waveform.ts"
1620
+ }
1621
+ }
1622
+ ]
1623
+ },
1624
+ {
1625
+ "kind": "javascript-module",
1626
+ "path": "src/components/molecules/scream-voice-button.ts",
1627
+ "declarations": [
1628
+ {
1629
+ "kind": "class",
1630
+ "description": "A basic demonstration of the ported audio button.",
1631
+ "name": "ScreamVoiceButton",
1632
+ "members": [
1633
+ {
1634
+ "kind": "field",
1635
+ "name": "state",
1636
+ "type": {
1637
+ "text": "VoiceState"
1638
+ },
1639
+ "default": "'idle'"
1640
+ },
1641
+ {
1642
+ "kind": "field",
1643
+ "name": "styles",
1644
+ "static": true,
1645
+ "default": "css` :host { display: inline-block; } md-filled-button { --md-filled-button-container-shape: 999px; } md-filled-button.recording { --md-filled-button-container-color: var(--md-sys-color-error, #ba1a1a); --md-filled-button-label-text-color: var( --md-sys-color-on-error, #ffffff ); } `"
1646
+ },
1647
+ {
1648
+ "kind": "method",
1649
+ "name": "render"
1650
+ },
1651
+ {
1652
+ "kind": "method",
1653
+ "name": "_handleClick",
1654
+ "privacy": "private"
1655
+ }
1656
+ ],
1657
+ "events": [
1658
+ {
1659
+ "name": "voice-toggle",
1660
+ "type": {
1661
+ "text": "CustomEvent"
1662
+ }
1663
+ }
1664
+ ],
1665
+ "superclass": {
1666
+ "name": "LitElement",
1667
+ "package": "lit"
1668
+ },
1669
+ "customElement": true
1670
+ }
1671
+ ],
1672
+ "exports": [
1673
+ {
1674
+ "kind": "js",
1675
+ "name": "ScreamVoiceButton",
1676
+ "declaration": {
1677
+ "name": "ScreamVoiceButton",
1678
+ "module": "src/components/molecules/scream-voice-button.ts"
1679
+ }
1680
+ }
1681
+ ]
1682
+ },
1683
+ {
1684
+ "kind": "javascript-module",
1685
+ "path": "src/components/molecules/ui-3d-flip.ts",
1686
+ "declarations": [
1687
+ {
1688
+ "kind": "class",
1689
+ "description": "A layout utility component that provides 3D card flipping functionality.",
1690
+ "name": "Ui3dFlip",
1691
+ "members": [
1692
+ {
1693
+ "kind": "field",
1694
+ "name": "flipped",
1695
+ "type": {
1696
+ "text": "boolean"
1697
+ },
1698
+ "default": "false"
1699
+ },
1700
+ {
1701
+ "kind": "field",
1702
+ "name": "axis",
1703
+ "type": {
1704
+ "text": "'x' | 'y'"
1705
+ },
1706
+ "default": "'y'"
1707
+ },
1708
+ {
1709
+ "kind": "field",
1710
+ "name": "duration",
1711
+ "type": {
1712
+ "text": "string"
1713
+ },
1714
+ "default": "'0.6s'"
1715
+ },
1716
+ {
1717
+ "kind": "field",
1718
+ "name": "styles",
1719
+ "static": true,
1720
+ "default": "css` :host { display: block; perspective: 1000px; width: 100%; height: 100%; } .flip-container { position: relative; width: 100%; height: 100%; text-align: center; transition: transform var(--ui-3d-flip-duration, 0.6s); transform-style: preserve-3d; } :host([flipped]) .flip-container { transform: rotateY(180deg); } :host([flipped][axis='x']) .flip-container { transform: rotateX(180deg); } .front, .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; } .back { transform: rotateY(180deg); background: var(--md-sys-color-surface, #ffffff); } :host([axis='x']) .back { transform: rotateX(180deg); } .flip-trigger { position: absolute; top: 12px; right: 12px; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; } `"
1721
+ },
1722
+ {
1723
+ "kind": "method",
1724
+ "name": "render"
1725
+ },
1726
+ {
1727
+ "kind": "method",
1728
+ "name": "toggle",
1729
+ "privacy": "public"
1730
+ }
1731
+ ],
1732
+ "events": [
1733
+ {
1734
+ "name": "flip-change",
1735
+ "type": {
1736
+ "text": "CustomEvent"
1737
+ }
1738
+ }
1739
+ ],
1740
+ "superclass": {
1741
+ "name": "LitElement",
1742
+ "package": "lit"
1743
+ },
1744
+ "customElement": true
1745
+ }
1746
+ ],
1747
+ "exports": [
1748
+ {
1749
+ "kind": "js",
1750
+ "name": "Ui3dFlip",
1751
+ "declaration": {
1752
+ "name": "Ui3dFlip",
1753
+ "module": "src/components/molecules/ui-3d-flip.ts"
1754
+ }
1755
+ }
1756
+ ]
1757
+ },
1758
+ {
1759
+ "kind": "javascript-module",
1760
+ "path": "src/components/molecules/ui-chat-item.ts",
1761
+ "declarations": [
1762
+ {
1763
+ "kind": "class",
1764
+ "description": "A composite component representing a single chat message item.\nSupports avatars and alignment for inbound/outbound messages.",
1765
+ "name": "UiChatItem",
1766
+ "members": [
1767
+ {
1768
+ "kind": "field",
1769
+ "name": "direction",
1770
+ "type": {
1771
+ "text": "'inbound' | 'outbound'"
1772
+ },
1773
+ "default": "'inbound'"
1774
+ },
1775
+ {
1776
+ "kind": "field",
1777
+ "name": "variant",
1778
+ "type": {
1779
+ "text": "'contained' | 'flat'"
1780
+ },
1781
+ "default": "'contained'"
1782
+ },
1783
+ {
1784
+ "kind": "field",
1785
+ "name": "avatarSrc",
1786
+ "type": {
1787
+ "text": "string | undefined"
1788
+ }
1789
+ },
1790
+ {
1791
+ "kind": "field",
1792
+ "name": "avatarName",
1793
+ "type": {
1794
+ "text": "string | undefined"
1795
+ }
1796
+ },
1797
+ {
1798
+ "kind": "field",
1799
+ "name": "styles",
1800
+ "static": true,
1801
+ "default": "css` :host { display: block; margin-bottom: var(--ui-chat-item-margin-bottom, 8px); width: 100%; } .item-wrapper { display: flex; width: 100%; gap: var(--ui-chat-item-gap, 8px); align-items: flex-end; } .item-wrapper.outbound { flex-direction: row-reverse; } .item-wrapper.inbound { flex-direction: row; } .avatar { width: var(--ui-chat-item-avatar-size, 32px); height: var(--ui-chat-item-avatar-size, 32px); border-radius: 50%; background: var(--md-sys-color-surface-container-highest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; font-size: 12px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); border: 1px solid var(--md-sys-color-outline-variant); } .avatar img { width: 100%; height: 100%; object-fit: cover; } `"
1802
+ },
1803
+ {
1804
+ "kind": "method",
1805
+ "name": "render"
1806
+ }
1807
+ ],
1808
+ "superclass": {
1809
+ "name": "LitElement",
1810
+ "package": "lit"
1811
+ },
1812
+ "customElement": true
1813
+ }
1814
+ ],
1815
+ "exports": [
1816
+ {
1817
+ "kind": "js",
1818
+ "name": "UiChatItem",
1819
+ "declaration": {
1820
+ "name": "UiChatItem",
1821
+ "module": "src/components/molecules/ui-chat-item.ts"
1822
+ }
1823
+ }
1824
+ ]
1825
+ },
1826
+ {
1827
+ "kind": "javascript-module",
1828
+ "path": "src/components/molecules/ui-chat-list.ts",
1829
+ "declarations": [
1830
+ {
1831
+ "kind": "class",
1832
+ "description": "MOLECULE: Chat List\nA scrollable container for ui-chat-items.\nAutomatically handles scrolling to the bottom when new children are added.",
1833
+ "name": "UiChatList",
1834
+ "members": [
1835
+ {
1836
+ "kind": "field",
1837
+ "name": "_container",
1838
+ "type": {
1839
+ "text": "HTMLDivElement"
1840
+ },
1841
+ "privacy": "private"
1842
+ },
1843
+ {
1844
+ "kind": "field",
1845
+ "name": "_isAtBottom",
1846
+ "type": {
1847
+ "text": "boolean"
1848
+ },
1849
+ "privacy": "private",
1850
+ "default": "true"
1851
+ },
1852
+ {
1853
+ "kind": "field",
1854
+ "name": "styles",
1855
+ "static": true,
1856
+ "default": "css` :host { display: block; height: 100%; width: 100%; overflow: hidden; position: relative; } .scroll-container { height: 100%; width: 100%; overflow-y: auto; display: flex; flex-direction: column; padding: var(--ui-chat-list-padding, 1rem); box-sizing: border-box; scroll-behavior: smooth; } /* Scrollbar Styling */ .scroll-container::-webkit-scrollbar { width: 6px; } .scroll-container::-webkit-scrollbar-track { background: transparent; } .scroll-container::-webkit-scrollbar-thumb { background: var(--md-sys-color-outline-variant); border-radius: 10px; } .scroll-button { position: absolute; bottom: var(--ui-chat-list-scroll-btn-bottom, 16px); left: 50%; transform: translateX(-50%); background: var(--md-sys-color-surface-container-highest); border-radius: 50%; box-shadow: var(--md-sys-elevation-level2); z-index: 10; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .scroll-button.visible { opacity: 1; visibility: visible; } `"
1857
+ },
1858
+ {
1859
+ "kind": "method",
1860
+ "name": "updated",
1861
+ "privacy": "protected",
1862
+ "parameters": [
1863
+ {
1864
+ "name": "changedProperties",
1865
+ "type": {
1866
+ "text": "PropertyValues"
1867
+ }
1868
+ }
1869
+ ]
1870
+ },
1871
+ {
1872
+ "kind": "method",
1873
+ "name": "scrollToBottom",
1874
+ "privacy": "public",
1875
+ "description": "Imperatively scroll to the most recent message."
1876
+ },
1877
+ {
1878
+ "kind": "method",
1879
+ "name": "_handleScroll",
1880
+ "privacy": "private"
1881
+ },
1882
+ {
1883
+ "kind": "method",
1884
+ "name": "render"
1885
+ }
1886
+ ],
1887
+ "superclass": {
1888
+ "name": "LitElement",
1889
+ "package": "lit"
1890
+ },
1891
+ "tagName": "ui-chat-list",
1892
+ "customElement": true
1893
+ }
1894
+ ],
1895
+ "exports": [
1896
+ {
1897
+ "kind": "js",
1898
+ "name": "UiChatList",
1899
+ "declaration": {
1900
+ "name": "UiChatList",
1901
+ "module": "src/components/molecules/ui-chat-list.ts"
1902
+ }
1903
+ }
1904
+ ]
1905
+ },
1906
+ {
1907
+ "kind": "javascript-module",
1908
+ "path": "src/components/molecules/ui-conversation-bar.ts",
1909
+ "declarations": [
1910
+ {
1911
+ "kind": "class",
1912
+ "description": "MOLECULE: Conversation Bar\nA specialized interaction bar for AI conversations.\nCombines mic selection, live visualization, and text input.",
1913
+ "name": "UiConversationBar",
1914
+ "members": [
1915
+ {
1916
+ "kind": "field",
1917
+ "name": "agentId",
1918
+ "type": {
1919
+ "text": "string"
1920
+ },
1921
+ "default": "''",
1922
+ "description": "(Optional) ID of the AI agent."
1923
+ },
1924
+ {
1925
+ "kind": "field",
1926
+ "name": "simulation",
1927
+ "type": {
1928
+ "text": "boolean"
1929
+ },
1930
+ "default": "false",
1931
+ "description": "Enable mock transcription for demos."
1932
+ },
1933
+ {
1934
+ "kind": "field",
1935
+ "name": "_keyboardOpen",
1936
+ "type": {
1937
+ "text": "boolean"
1938
+ },
1939
+ "privacy": "private",
1940
+ "default": "false"
1941
+ },
1942
+ {
1943
+ "kind": "field",
1944
+ "name": "_textInput",
1945
+ "type": {
1946
+ "text": "string"
1947
+ },
1948
+ "privacy": "private",
1949
+ "default": "''"
1950
+ },
1951
+ {
1952
+ "kind": "field",
1953
+ "name": "_isMuted",
1954
+ "type": {
1955
+ "text": "boolean"
1956
+ },
1957
+ "privacy": "private",
1958
+ "default": "false"
1959
+ },
1960
+ {
1961
+ "kind": "field",
1962
+ "name": "styles",
1963
+ "static": true,
1964
+ "default": "css` :host { display: block; width: 100%; font-family: inherit; } .container { background: var(--md-sys-color-surface-container, #f3f3f3); border-radius: var(--ui-conversation-bar-radius, 24px); border: 1px solid var(--md-sys-color-outline-variant); box-shadow: var(--md-sys-elevation-level1); overflow: hidden; display: flex; flex-direction: column-reverse; transition: all 0.3s ease; } .toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--ui-conversation-bar-padding, 8px 16px); gap: 12px; } .visualizer-section { display: flex; align-items: center; gap: 12px; flex: 1; height: 40px; background: var(--md-sys-color-surface-container-high); border-radius: 12px; padding: 0 12px; overflow: hidden; } .waveform-wrapper { flex: 1; height: 24px; } .controls { display: flex; align-items: center; gap: 4px; } .input-area { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--md-sys-color-surface-container); } .input-area.open { max-height: 200px; } .input-container { padding: 16px; display: flex; gap: 8px; align-items: flex-end; } md-outlined-text-field { flex: 1; --md-outlined-text-field-container-shape: 16px; } .keyboard-toggle.active { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); } md-divider { margin: 0; } `"
1965
+ },
1966
+ {
1967
+ "kind": "method",
1968
+ "name": "render"
1969
+ },
1970
+ {
1971
+ "kind": "method",
1972
+ "name": "_handleKeyDown",
1973
+ "privacy": "private",
1974
+ "parameters": [
1975
+ {
1976
+ "name": "e",
1977
+ "type": {
1978
+ "text": "KeyboardEvent"
1979
+ }
1980
+ }
1981
+ ]
1982
+ },
1983
+ {
1984
+ "kind": "method",
1985
+ "name": "_sendMessage",
1986
+ "privacy": "private"
1987
+ },
1988
+ {
1989
+ "kind": "method",
1990
+ "name": "_handleCallToggle",
1991
+ "privacy": "private"
1992
+ }
1993
+ ],
1994
+ "events": [
1995
+ {
1996
+ "name": "message-sent",
1997
+ "type": {
1998
+ "text": "CustomEvent"
1999
+ },
2000
+ "description": "Dispatched when a text message is sent. detail: { message }"
2001
+ },
2002
+ {
2003
+ "name": "call-toggle",
2004
+ "type": {
2005
+ "text": "CustomEvent"
2006
+ }
2007
+ },
2008
+ {
2009
+ "description": "Dispatched when the conversation state changes.",
2010
+ "name": "state-change"
2011
+ }
2012
+ ],
2013
+ "superclass": {
2014
+ "name": "LitElement",
2015
+ "package": "lit"
2016
+ },
2017
+ "tagName": "ui-conversation-bar",
2018
+ "customElement": true
2019
+ }
2020
+ ],
2021
+ "exports": [
2022
+ {
2023
+ "kind": "js",
2024
+ "name": "UiConversationBar",
2025
+ "declaration": {
2026
+ "name": "UiConversationBar",
2027
+ "module": "src/components/molecules/ui-conversation-bar.ts"
2028
+ }
2029
+ }
2030
+ ]
2031
+ },
2032
+ {
2033
+ "kind": "javascript-module",
2034
+ "path": "src/components/molecules/ui-live-waveform.ts",
2035
+ "declarations": [
2036
+ {
2037
+ "kind": "class",
2038
+ "description": "A real-time audio visualizer component.",
2039
+ "name": "UiLiveWaveform",
2040
+ "members": [
2041
+ {
2042
+ "kind": "field",
2043
+ "name": "active",
2044
+ "type": {
2045
+ "text": "boolean"
2046
+ },
2047
+ "default": "false"
2048
+ },
2049
+ {
2050
+ "kind": "field",
2051
+ "name": "processing",
2052
+ "type": {
2053
+ "text": "boolean"
2054
+ },
2055
+ "default": "false"
2056
+ },
2057
+ {
2058
+ "kind": "field",
2059
+ "name": "analyserNode",
2060
+ "type": {
2061
+ "text": "AnalyserNode | undefined"
2062
+ }
2063
+ },
2064
+ {
2065
+ "kind": "field",
2066
+ "name": "barWidth",
2067
+ "type": {
2068
+ "text": "number"
2069
+ },
2070
+ "default": "3"
2071
+ },
2072
+ {
2073
+ "kind": "field",
2074
+ "name": "barHeight",
2075
+ "type": {
2076
+ "text": "number"
2077
+ },
2078
+ "default": "4"
2079
+ },
2080
+ {
2081
+ "kind": "field",
2082
+ "name": "barGap",
2083
+ "type": {
2084
+ "text": "number"
2085
+ },
2086
+ "default": "1"
2087
+ },
2088
+ {
2089
+ "kind": "field",
2090
+ "name": "barRadius",
2091
+ "type": {
2092
+ "text": "number"
2093
+ },
2094
+ "default": "1.5"
2095
+ },
2096
+ {
2097
+ "kind": "field",
2098
+ "name": "barColor",
2099
+ "type": {
2100
+ "text": "string | undefined"
2101
+ }
2102
+ },
2103
+ {
2104
+ "kind": "field",
2105
+ "name": "fadeEdges",
2106
+ "type": {
2107
+ "text": "boolean"
2108
+ },
2109
+ "default": "true"
2110
+ },
2111
+ {
2112
+ "kind": "field",
2113
+ "name": "fadeWidth",
2114
+ "type": {
2115
+ "text": "number"
2116
+ },
2117
+ "default": "24"
2118
+ },
2119
+ {
2120
+ "kind": "field",
2121
+ "name": "height",
2122
+ "type": {
2123
+ "text": "number"
2124
+ },
2125
+ "default": "64"
2126
+ },
2127
+ {
2128
+ "kind": "field",
2129
+ "name": "sensitivity",
2130
+ "type": {
2131
+ "text": "number"
2132
+ },
2133
+ "default": "1.0"
2134
+ },
2135
+ {
2136
+ "kind": "field",
2137
+ "name": "updateRate",
2138
+ "type": {
2139
+ "text": "number"
2140
+ },
2141
+ "default": "30"
2142
+ },
2143
+ {
2144
+ "kind": "field",
2145
+ "name": "_canvas",
2146
+ "type": {
2147
+ "text": "HTMLCanvasElement"
2148
+ },
2149
+ "privacy": "private"
2150
+ },
2151
+ {
2152
+ "kind": "field",
2153
+ "name": "_container",
2154
+ "type": {
2155
+ "text": "HTMLDivElement"
2156
+ },
2157
+ "privacy": "private"
2158
+ },
2159
+ {
2160
+ "kind": "field",
2161
+ "name": "_animationFrameId",
2162
+ "type": {
2163
+ "text": "number"
2164
+ },
2165
+ "privacy": "private",
2166
+ "default": "0"
2167
+ },
2168
+ {
2169
+ "kind": "field",
2170
+ "name": "_lastUpdateTime",
2171
+ "type": {
2172
+ "text": "number"
2173
+ },
2174
+ "privacy": "private",
2175
+ "default": "0"
2176
+ },
2177
+ {
2178
+ "kind": "field",
2179
+ "name": "_resizeObserver",
2180
+ "type": {
2181
+ "text": "ResizeObserver | undefined"
2182
+ },
2183
+ "privacy": "private"
2184
+ },
2185
+ {
2186
+ "kind": "field",
2187
+ "name": "_themeObserver",
2188
+ "type": {
2189
+ "text": "MutationObserver | undefined"
2190
+ },
2191
+ "privacy": "private"
2192
+ },
2193
+ {
2194
+ "kind": "field",
2195
+ "name": "_dataArray",
2196
+ "type": {
2197
+ "text": "Uint8Array | undefined"
2198
+ },
2199
+ "privacy": "private"
2200
+ },
2201
+ {
2202
+ "kind": "field",
2203
+ "name": "_currentBars",
2204
+ "type": {
2205
+ "text": "number[]"
2206
+ },
2207
+ "privacy": "private",
2208
+ "default": "[]"
2209
+ },
2210
+ {
2211
+ "kind": "field",
2212
+ "name": "_processingTime",
2213
+ "type": {
2214
+ "text": "number"
2215
+ },
2216
+ "privacy": "private",
2217
+ "default": "0"
2218
+ },
2219
+ {
2220
+ "kind": "field",
2221
+ "name": "_transitionProgress",
2222
+ "type": {
2223
+ "text": "number"
2224
+ },
2225
+ "privacy": "private",
2226
+ "default": "0"
2227
+ },
2228
+ {
2229
+ "kind": "field",
2230
+ "name": "_lastActiveData",
2231
+ "type": {
2232
+ "text": "number[]"
2233
+ },
2234
+ "privacy": "private",
2235
+ "default": "[]"
2236
+ },
2237
+ {
2238
+ "kind": "field",
2239
+ "name": "styles",
2240
+ "static": true,
2241
+ "default": "css` :host { display: block; width: 100%; } .container { position: relative; width: 100%; } canvas { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 100%; } `"
2242
+ },
2243
+ {
2244
+ "kind": "method",
2245
+ "name": "render"
2246
+ },
2247
+ {
2248
+ "kind": "method",
2249
+ "name": "firstUpdated",
2250
+ "privacy": "protected"
2251
+ },
2252
+ {
2253
+ "kind": "method",
2254
+ "name": "updated",
2255
+ "privacy": "protected",
2256
+ "parameters": [
2257
+ {
2258
+ "name": "changedProperties",
2259
+ "type": {
2260
+ "text": "PropertyValues"
2261
+ }
2262
+ }
2263
+ ]
2264
+ },
2265
+ {
2266
+ "kind": "method",
2267
+ "name": "_handleResize",
2268
+ "privacy": "private"
2269
+ },
2270
+ {
2271
+ "kind": "method",
2272
+ "name": "_startAnimationLoop",
2273
+ "privacy": "private"
2274
+ },
2275
+ {
2276
+ "kind": "method",
2277
+ "name": "_updateData",
2278
+ "privacy": "private",
2279
+ "parameters": [
2280
+ {
2281
+ "name": "timestamp",
2282
+ "type": {
2283
+ "text": "number"
2284
+ }
2285
+ }
2286
+ ]
2287
+ },
2288
+ {
2289
+ "kind": "method",
2290
+ "name": "_renderFrame",
2291
+ "privacy": "private"
2292
+ }
2293
+ ],
2294
+ "superclass": {
2295
+ "name": "LitElement",
2296
+ "package": "lit"
2297
+ },
2298
+ "customElement": true
2299
+ }
2300
+ ],
2301
+ "exports": [
2302
+ {
2303
+ "kind": "js",
2304
+ "name": "UiLiveWaveform",
2305
+ "declaration": {
2306
+ "name": "UiLiveWaveform",
2307
+ "module": "src/components/molecules/ui-live-waveform.ts"
2308
+ }
2309
+ }
2310
+ ]
2311
+ },
2312
+ {
2313
+ "kind": "javascript-module",
2314
+ "path": "src/components/molecules/ui-mic-selector.ts",
2315
+ "declarations": [
2316
+ {
2317
+ "kind": "class",
2318
+ "description": "A native Lit WebComponent that provides a dropdown menu for selecting audio input devices.\nIt automatically handles permission requests, device enumeration, and provides a\nlive preview waveform of the selected input.",
2319
+ "name": "UiMicSelector",
2320
+ "members": [
2321
+ {
2322
+ "kind": "field",
2323
+ "name": "value",
2324
+ "type": {
2325
+ "text": "string"
2326
+ },
2327
+ "description": "The deviceId of the currently selected audio input."
2328
+ },
2329
+ {
2330
+ "kind": "field",
2331
+ "name": "muted",
2332
+ "type": {
2333
+ "text": "boolean"
2334
+ },
2335
+ "default": "false",
2336
+ "description": "Whether the microphone is visually/logically muted in the selector."
2337
+ },
2338
+ {
2339
+ "kind": "field",
2340
+ "name": "disabled",
2341
+ "type": {
2342
+ "text": "boolean"
2343
+ },
2344
+ "default": "false",
2345
+ "description": "Whether the selector interaction is disabled."
2346
+ },
2347
+ {
2348
+ "kind": "field",
2349
+ "name": "_devices",
2350
+ "type": {
2351
+ "text": "AudioDevice[]"
2352
+ },
2353
+ "privacy": "private",
2354
+ "default": "[]"
2355
+ },
2356
+ {
2357
+ "kind": "field",
2358
+ "name": "_loading",
2359
+ "type": {
2360
+ "text": "boolean"
2361
+ },
2362
+ "privacy": "private",
2363
+ "default": "true"
2364
+ },
2365
+ {
2366
+ "kind": "field",
2367
+ "name": "_error",
2368
+ "type": {
2369
+ "text": "string | null"
2370
+ },
2371
+ "privacy": "private",
2372
+ "default": "null"
2373
+ },
2374
+ {
2375
+ "kind": "field",
2376
+ "name": "_hasPermission",
2377
+ "type": {
2378
+ "text": "boolean"
2379
+ },
2380
+ "privacy": "private",
2381
+ "default": "false"
2382
+ },
2383
+ {
2384
+ "kind": "field",
2385
+ "name": "_isMenuOpen",
2386
+ "type": {
2387
+ "text": "boolean"
2388
+ },
2389
+ "privacy": "private",
2390
+ "default": "false"
2391
+ },
2392
+ {
2393
+ "kind": "field",
2394
+ "name": "_previewAnalyser",
2395
+ "type": {
2396
+ "text": "AnalyserNode | undefined"
2397
+ },
2398
+ "privacy": "private"
2399
+ },
2400
+ {
2401
+ "kind": "field",
2402
+ "name": "_menuEl",
2403
+ "type": {
2404
+ "text": "any"
2405
+ },
2406
+ "privacy": "private"
2407
+ },
2408
+ {
2409
+ "kind": "field",
2410
+ "name": "_previewStream",
2411
+ "type": {
2412
+ "text": "MediaStream | undefined"
2413
+ },
2414
+ "privacy": "private"
2415
+ },
2416
+ {
2417
+ "kind": "field",
2418
+ "name": "_previewAudioContext",
2419
+ "type": {
2420
+ "text": "AudioContext | undefined"
2421
+ },
2422
+ "privacy": "private"
2423
+ },
2424
+ {
2425
+ "kind": "field",
2426
+ "name": "styles",
2427
+ "static": true,
2428
+ "default": "css` :host { display: inline-block; position: relative; font-family: inherit; color-scheme: light dark; } .anchor-button { display: flex; align-items: center; gap: var(--ui-mic-selector-gap, 8px); padding: var(--ui-mic-selector-padding, 8px 16px); background: var(--md-sys-color-surface-container-high, transparent); color: var(--md-sys-color-on-surface); border-radius: 999px; cursor: pointer; border: 1px solid var(--md-sys-color-outline-variant, currentColor); font-family: inherit; font-size: 14px; font-weight: 500; transition: background-color 0.2s; max-width: 250px; } .anchor-button:hover:not(:disabled) { background: var(--md-sys-color-surface-container-highest); } .anchor-button:disabled { opacity: 0.5; cursor: not-allowed; } .label-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; } md-menu { --md-menu-container-color: var( --md-sys-color-surface-container, var(--md-sys-color-surface) ); --md-menu-container-shape: 12px; min-width: 280px; font-family: inherit; /* Force typescale fonts to inherit project font */ --md-sys-typescale-body-medium-font: inherit; --md-sys-typescale-label-large-font: inherit; border: 1px solid var(--md-sys-color-outline-variant); } md-menu-item { font-family: inherit; --md-menu-item-label-text-font: inherit; --md-sys-typescale-label-large-font: inherit; } md-menu-item div[slot='headline'] { font-family: inherit; } .menu-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; gap: 12px; font-family: inherit; } md-text-button { font-family: inherit; --md-text-button-label-text-font: inherit; --md-sys-typescale-label-large-font: inherit; } .preview-waveform { flex: 1; height: 24px; background: var( --md-sys-color-surface-variant, var(--md-sys-color-surface-container-highest) ); border-radius: 6px; overflow: hidden; display: flex; align-items: center; padding: 0 4px; } `"
2429
+ },
2430
+ {
2431
+ "kind": "method",
2432
+ "name": "updated",
2433
+ "parameters": [
2434
+ {
2435
+ "name": "changedProperties",
2436
+ "type": {
2437
+ "text": "PropertyValues"
2438
+ }
2439
+ }
2440
+ ]
2441
+ },
2442
+ {
2443
+ "kind": "method",
2444
+ "name": "render"
2445
+ },
2446
+ {
2447
+ "kind": "method",
2448
+ "name": "_toggleMenu",
2449
+ "privacy": "private"
2450
+ },
2451
+ {
2452
+ "kind": "method",
2453
+ "name": "_selectDevice",
2454
+ "privacy": "private",
2455
+ "parameters": [
2456
+ {
2457
+ "name": "deviceId",
2458
+ "type": {
2459
+ "text": "string"
2460
+ }
2461
+ }
2462
+ ]
2463
+ },
2464
+ {
2465
+ "kind": "method",
2466
+ "name": "_toggleMute",
2467
+ "privacy": "private",
2468
+ "parameters": [
2469
+ {
2470
+ "name": "e",
2471
+ "type": {
2472
+ "text": "Event"
2473
+ }
2474
+ }
2475
+ ]
2476
+ },
2477
+ {
2478
+ "kind": "field",
2479
+ "name": "_handleDeviceChange",
2480
+ "privacy": "private"
2481
+ },
2482
+ {
2483
+ "kind": "method",
2484
+ "name": "_loadDevicesWithoutPermission",
2485
+ "privacy": "private"
2486
+ },
2487
+ {
2488
+ "kind": "method",
2489
+ "name": "_loadDevicesWithPermission",
2490
+ "privacy": "private"
2491
+ },
2492
+ {
2493
+ "kind": "method",
2494
+ "name": "_parseDeviceList",
2495
+ "privacy": "private",
2496
+ "parameters": [
2497
+ {
2498
+ "name": "deviceList",
2499
+ "type": {
2500
+ "text": "MediaDeviceInfo[]"
2501
+ }
2502
+ }
2503
+ ]
2504
+ },
2505
+ {
2506
+ "kind": "method",
2507
+ "name": "_startPreview",
2508
+ "privacy": "private"
2509
+ },
2510
+ {
2511
+ "kind": "method",
2512
+ "name": "_stopPreview",
2513
+ "privacy": "private"
2514
+ }
2515
+ ],
2516
+ "events": [
2517
+ {
2518
+ "name": "device-change",
2519
+ "type": {
2520
+ "text": "CustomEvent"
2521
+ },
2522
+ "description": "Dispatched when a new device is selected. detail: { deviceId }"
2523
+ },
2524
+ {
2525
+ "name": "mute-change",
2526
+ "type": {
2527
+ "text": "CustomEvent"
2528
+ },
2529
+ "description": "Dispatched when the mute state is toggled. detail: { muted }"
2530
+ }
2531
+ ],
2532
+ "superclass": {
2533
+ "name": "LitElement",
2534
+ "package": "lit"
2535
+ },
2536
+ "tagName": "ui-mic-selector",
2537
+ "customElement": true
2538
+ }
2539
+ ],
2540
+ "exports": [
2541
+ {
2542
+ "kind": "js",
2543
+ "name": "UiMicSelector",
2544
+ "declaration": {
2545
+ "name": "UiMicSelector",
2546
+ "module": "src/components/molecules/ui-mic-selector.ts"
2547
+ }
2548
+ }
2549
+ ]
2550
+ },
2551
+ {
2552
+ "kind": "javascript-module",
2553
+ "path": "src/components/molecules/ui-orb.ts",
2554
+ "declarations": [
2555
+ {
2556
+ "kind": "class",
2557
+ "description": "A 3D WebGL 'Orb' component used to visualize AI agent states.",
2558
+ "name": "UiOrb",
2559
+ "members": [
2560
+ {
2561
+ "kind": "field",
2562
+ "name": "colors",
2563
+ "type": {
2564
+ "text": "[string, string] | undefined"
2565
+ }
2566
+ },
2567
+ {
2568
+ "kind": "field",
2569
+ "name": "agentState",
2570
+ "type": {
2571
+ "text": "AgentState"
2572
+ },
2573
+ "default": "null"
2574
+ },
2575
+ {
2576
+ "kind": "field",
2577
+ "name": "inputVolume",
2578
+ "type": {
2579
+ "text": "number"
2580
+ },
2581
+ "default": "0"
2582
+ },
2583
+ {
2584
+ "kind": "field",
2585
+ "name": "outputVolume",
2586
+ "type": {
2587
+ "text": "number"
2588
+ },
2589
+ "default": "0"
2590
+ },
2591
+ {
2592
+ "kind": "field",
2593
+ "name": "volumeMode",
2594
+ "type": {
2595
+ "text": "'auto' | 'manual'"
2596
+ },
2597
+ "default": "'auto'"
2598
+ },
2599
+ {
2600
+ "kind": "field",
2601
+ "name": "seed"
2602
+ },
2603
+ {
2604
+ "kind": "field",
2605
+ "name": "_container",
2606
+ "type": {
2607
+ "text": "HTMLDivElement"
2608
+ },
2609
+ "privacy": "private"
2610
+ },
2611
+ {
2612
+ "kind": "field",
2613
+ "name": "_renderer",
2614
+ "type": {
2615
+ "text": "THREE.WebGLRenderer | undefined"
2616
+ },
2617
+ "privacy": "private"
2618
+ },
2619
+ {
2620
+ "kind": "field",
2621
+ "name": "_scene",
2622
+ "type": {
2623
+ "text": "THREE.Scene | undefined"
2624
+ },
2625
+ "privacy": "private"
2626
+ },
2627
+ {
2628
+ "kind": "field",
2629
+ "name": "_camera",
2630
+ "type": {
2631
+ "text": "THREE.OrthographicCamera | undefined"
2632
+ },
2633
+ "privacy": "private"
2634
+ },
2635
+ {
2636
+ "kind": "field",
2637
+ "name": "_mesh",
2638
+ "type": {
2639
+ "text": "THREE.Mesh<THREE.CircleGeometry, THREE.ShaderMaterial> | undefined"
2640
+ },
2641
+ "privacy": "private"
2642
+ },
2643
+ {
2644
+ "kind": "field",
2645
+ "name": "_animationFrameId",
2646
+ "type": {
2647
+ "text": "number"
2648
+ },
2649
+ "privacy": "private",
2650
+ "default": "0"
2651
+ },
2652
+ {
2653
+ "kind": "field",
2654
+ "name": "_resizeObserver",
2655
+ "type": {
2656
+ "text": "ResizeObserver | undefined"
2657
+ },
2658
+ "privacy": "private"
2659
+ },
2660
+ {
2661
+ "kind": "field",
2662
+ "name": "_animSpeed",
2663
+ "type": {
2664
+ "text": "number"
2665
+ },
2666
+ "privacy": "private",
2667
+ "default": "0.1"
2668
+ },
2669
+ {
2670
+ "kind": "field",
2671
+ "name": "_curIn",
2672
+ "type": {
2673
+ "text": "number"
2674
+ },
2675
+ "privacy": "private",
2676
+ "default": "0"
2677
+ },
2678
+ {
2679
+ "kind": "field",
2680
+ "name": "_curOut",
2681
+ "type": {
2682
+ "text": "number"
2683
+ },
2684
+ "privacy": "private",
2685
+ "default": "0"
2686
+ },
2687
+ {
2688
+ "kind": "field",
2689
+ "name": "_targetColor1",
2690
+ "type": {
2691
+ "text": "THREE.Color"
2692
+ },
2693
+ "privacy": "private"
2694
+ },
2695
+ {
2696
+ "kind": "field",
2697
+ "name": "_targetColor2",
2698
+ "type": {
2699
+ "text": "THREE.Color"
2700
+ },
2701
+ "privacy": "private"
2702
+ },
2703
+ {
2704
+ "kind": "field",
2705
+ "name": "_textureLoader",
2706
+ "privacy": "private",
2707
+ "default": "new THREE.TextureLoader()"
2708
+ },
2709
+ {
2710
+ "kind": "field",
2711
+ "name": "_perlinNoiseTexture",
2712
+ "type": {
2713
+ "text": "THREE.Texture | undefined"
2714
+ },
2715
+ "privacy": "private"
2716
+ },
2717
+ {
2718
+ "kind": "field",
2719
+ "name": "styles",
2720
+ "static": true,
2721
+ "default": "css` :host { display: block; width: 100%; height: 100%; position: relative; } .container { width: 100%; height: 100%; } canvas { display: block; width: 100%; height: 100%; } `"
2722
+ },
2723
+ {
2724
+ "kind": "method",
2725
+ "name": "render"
2726
+ },
2727
+ {
2728
+ "kind": "method",
2729
+ "name": "firstUpdated",
2730
+ "privacy": "protected"
2731
+ },
2732
+ {
2733
+ "kind": "method",
2734
+ "name": "updated",
2735
+ "privacy": "protected",
2736
+ "parameters": [
2737
+ {
2738
+ "name": "changedProperties",
2739
+ "type": {
2740
+ "text": "Map<string, any>"
2741
+ }
2742
+ }
2743
+ ]
2744
+ },
2745
+ {
2746
+ "kind": "method",
2747
+ "name": "_updateSeed",
2748
+ "privacy": "private"
2749
+ },
2750
+ {
2751
+ "kind": "method",
2752
+ "name": "_updateColors",
2753
+ "privacy": "private"
2754
+ },
2755
+ {
2756
+ "kind": "method",
2757
+ "name": "_initThree",
2758
+ "privacy": "private"
2759
+ },
2760
+ {
2761
+ "kind": "field",
2762
+ "name": "_lastTime",
2763
+ "type": {
2764
+ "text": "number"
2765
+ },
2766
+ "privacy": "private",
2767
+ "default": "0"
2768
+ },
2769
+ {
2770
+ "kind": "method",
2771
+ "name": "_animate",
2772
+ "privacy": "private"
2773
+ },
2774
+ {
2775
+ "kind": "method",
2776
+ "name": "_splitmix32",
2777
+ "privacy": "private",
2778
+ "parameters": [
2779
+ {
2780
+ "name": "a",
2781
+ "type": {
2782
+ "text": "number"
2783
+ }
2784
+ }
2785
+ ]
2786
+ },
2787
+ {
2788
+ "kind": "method",
2789
+ "name": "_clamp01",
2790
+ "privacy": "private",
2791
+ "parameters": [
2792
+ {
2793
+ "name": "n",
2794
+ "type": {
2795
+ "text": "number"
2796
+ }
2797
+ }
2798
+ ]
2799
+ },
2800
+ {
2801
+ "kind": "field",
2802
+ "name": "_vertexShader",
2803
+ "privacy": "private",
2804
+ "default": "` uniform float uTime; varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } `"
2805
+ },
2806
+ {
2807
+ "kind": "field",
2808
+ "name": "_fragmentShader",
2809
+ "privacy": "private",
2810
+ "default": "` uniform float uTime; uniform float uAnimation; uniform float uInverted; uniform float uOffsets[7]; uniform vec3 uColor1; uniform vec3 uColor2; uniform float uInputVolume; uniform float uOutputVolume; uniform float uOpacity; uniform sampler2D uPerlinTexture; varying vec2 vUv; const float PI = 3.14159265358979323846; bool drawOval(vec2 polarUv, vec2 polarCenter, float a, float b, bool reverseGradient, float softness, out vec4 color) { vec2 p = polarUv - polarCenter; float oval = (p.x * p.x) / (a * a) + (p.y * p.y) / (b * b); float edge = smoothstep(1.0, 1.0 - softness, oval); if (edge > 0.0) { float gradient = reverseGradient ? (1.0 - (p.x / a + 1.0) / 2.0) : ((p.x / a + 1.0) / 2.0); gradient = mix(0.5, gradient, 0.1); color = vec4(vec3(gradient), 0.85 * edge); return true; } return false; } vec3 colorRamp(float grayscale, vec3 color1, vec3 color2, vec3 color3, vec3 color4) { if (grayscale < 0.33) { return mix(color1, color2, grayscale * 3.0); } else if (grayscale < 0.66) { return mix(color2, color3, (grayscale - 0.33) * 3.0); } else { return mix(color3, color4, (grayscale - 0.66) * 3.0); } } vec2 hash2(vec2 p) { return fract(sin(vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)))) * 43758.5453); } float noise2D(vec2 p) { vec2 i = floor(p); vec2 f = fract(p); vec2 u = f * f * (3.0 - 2.0 * f); float n = mix( mix(dot(hash2(i + vec2(0.0, 0.0)), f - vec2(0.0, 0.0)), dot(hash2(i + vec2(1.0, 0.0)), f - vec2(1.0, 0.0)), u.x), mix(dot(hash2(i + vec2(0.0, 1.0)), f - vec2(0.0, 1.0)), dot(hash2(i + vec2(1.0, 1.0)), f - vec2(1.0, 1.0)), u.x), u.y ); return 0.5 + 0.5 * n; } float sharpRing(vec3 decomposed, float time) { float ringStart = 1.0; float ringWidth = 0.3; float noiseScale = 5.0; float noise = mix( noise2D(vec2(decomposed.x, time) * noiseScale), noise2D(vec2(decomposed.y, time) * noiseScale), decomposed.z ); noise = (noise - 0.5) * 2.5; return ringStart + noise * ringWidth * 1.5; } float smoothRing(vec3 decomposed, float time) { float ringStart = 0.9; float ringWidth = 0.2; float noiseScale = 6.0; float noise = mix( noise2D(vec2(decomposed.x, time) * noiseScale), noise2D(vec2(decomposed.y, time) * noiseScale), decomposed.z ); noise = (noise - 0.5) * 5.0; return ringStart + noise * ringWidth; } float flow(vec3 decomposed, float time) { return mix( texture(uPerlinTexture, vec2(time, decomposed.x / 2.0)).r, texture(uPerlinTexture, vec2(time, decomposed.y / 2.0)).r, decomposed.z ); } void main() { vec2 uv = vUv * 2.0 - 1.0; float radius = length(uv); float theta = atan(uv.y, uv.x); if (theta < 0.0) theta += 2.0 * PI; vec3 decomposed = vec3( theta / (2.0 * PI), mod(theta / (2.0 * PI) + 0.5, 1.0) + 1.0, abs(theta / PI - 1.0) ); float noise = flow(decomposed, radius * 0.03 - uAnimation * 0.2) - 0.5; theta += noise * mix(0.08, 0.25, uOutputVolume); vec4 color = vec4(1.0, 1.0, 1.0, 1.0); float originalCenters[7] = float[7](0.0, 0.5 * PI, 1.0 * PI, 1.5 * PI, 2.0 * PI, 2.5 * PI, 3.0 * PI); float centers[7]; for (int i = 0; i < 7; i++) { centers[i] = originalCenters[i] + 0.5 * sin(uTime / 20.0 + uOffsets[i]); } float a, b; vec4 ovalColor; for (int i = 0; i < 7; i++) { float noise = texture(uPerlinTexture, vec2(mod(centers[i] + uTime * 0.05, 1.0), 0.5)).r; a = 0.5 + noise * 0.3; b = noise * mix(3.5, 2.5, uInputVolume); bool reverseGradient = (i % 2 == 1); float distTheta = min( abs(theta - centers[i]), min(abs(theta + 2.0 * PI - centers[i]), abs(theta - 2.0 * PI - centers[i])) ); if (drawOval(vec2(distTheta, radius), vec2(0.0, 0.0), a, b, reverseGradient, 0.6, ovalColor)) { color.rgb = mix(color.rgb, ovalColor.rgb, ovalColor.a); color.a = max(color.a, ovalColor.a); } } vec3 color1 = vec3(0.0, 0.0, 0.0); vec3 color2 = uColor1; vec3 color3 = uColor2; vec3 color4 = vec3(1.0, 1.0, 1.0); float luminance = mix(color.r, 1.0 - color.r, uInverted); color.rgb = colorRamp(luminance, color1, color2, color3, color4); color.a *= uOpacity; gl_FragColor = color; } `"
2811
+ }
2812
+ ],
2813
+ "superclass": {
2814
+ "name": "LitElement",
2815
+ "package": "lit"
2816
+ },
2817
+ "customElement": true
2818
+ }
2819
+ ],
2820
+ "exports": [
2821
+ {
2822
+ "kind": "js",
2823
+ "name": "UiOrb",
2824
+ "declaration": {
2825
+ "name": "UiOrb",
2826
+ "module": "src/components/molecules/ui-orb.ts"
2827
+ }
2828
+ }
2829
+ ]
2830
+ },
2831
+ {
2832
+ "kind": "javascript-module",
2833
+ "path": "src/components/molecules/ui-playlist.ts",
2834
+ "declarations": [
2835
+ {
2836
+ "kind": "class",
2837
+ "description": "A reactive list component that displays and manages a playlist.\nConsumes AudioPlayerState from the nearest ui-audio-provider.",
2838
+ "name": "UiPlaylist",
2839
+ "members": [
2840
+ {
2841
+ "kind": "field",
2842
+ "name": "playerState",
2843
+ "type": {
2844
+ "text": "AudioPlayerState | undefined"
2845
+ },
2846
+ "privacy": "private"
2847
+ },
2848
+ {
2849
+ "kind": "field",
2850
+ "name": "header",
2851
+ "type": {
2852
+ "text": "string"
2853
+ },
2854
+ "default": "'Queue'",
2855
+ "description": "Title for the playlist header (default: 'Queue')."
2856
+ },
2857
+ {
2858
+ "kind": "field",
2859
+ "name": "emptyText",
2860
+ "type": {
2861
+ "text": "string"
2862
+ },
2863
+ "default": "'No tracks in queue'",
2864
+ "description": "Message to show when the playlist is empty."
2865
+ },
2866
+ {
2867
+ "kind": "field",
2868
+ "name": "styles",
2869
+ "static": true,
2870
+ "default": "css` :host { display: block; background: var(--md-sys-color-surface-container-low, transparent); border-radius: 12px; overflow: hidden; font-family: inherit; color-scheme: light dark; } .playlist-header { padding: var(--ui-playlist-header-padding, 16px 20px); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--md-sys-color-primary, #0066cc); background: var(--md-sys-color-surface-container-low); border-bottom: 1px solid var(--md-sys-color-outline-variant); } md-list { background: transparent; --md-list-container-color: transparent; } md-list-item { --md-list-item-label-text-font: inherit; --md-list-item-supporting-text-font: inherit; --md-list-item-label-text-color: var(--md-sys-color-on-surface); --md-list-item-supporting-text-color: var( --md-sys-color-on-surface-variant ); cursor: pointer; } md-list-item[selected] { --md-list-item-label-text-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); } .now-playing-icon { color: var(--md-sys-color-primary); font-size: 18px; } .empty-state { padding: var(--ui-playlist-empty-padding, 32px); text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: 0.9rem; } `"
2871
+ },
2872
+ {
2873
+ "kind": "method",
2874
+ "name": "render"
2875
+ }
2876
+ ],
2877
+ "superclass": {
2878
+ "name": "LitElement",
2879
+ "package": "lit"
2880
+ },
2881
+ "tagName": "ui-playlist",
2882
+ "customElement": true
2883
+ }
2884
+ ],
2885
+ "exports": [
2886
+ {
2887
+ "kind": "js",
2888
+ "name": "UiPlaylist",
2889
+ "declaration": {
2890
+ "name": "UiPlaylist",
2891
+ "module": "src/components/molecules/ui-playlist.ts"
2892
+ }
2893
+ }
2894
+ ]
2895
+ },
2896
+ {
2897
+ "kind": "javascript-module",
2898
+ "path": "src/components/molecules/ui-scrolling-waveform.ts",
2899
+ "declarations": [
2900
+ {
2901
+ "kind": "class",
2902
+ "description": "A native Lit WebComponent that provides a smooth, infinitely scrolling audio waveform animation.\nReplaces the React/ElevenLabs ScrollingWaveform.",
2903
+ "name": "UiScrollingWaveform",
2904
+ "members": [
2905
+ {
2906
+ "kind": "field",
2907
+ "name": "speed",
2908
+ "type": {
2909
+ "text": "number"
2910
+ },
2911
+ "default": "50"
2912
+ },
2913
+ {
2914
+ "kind": "field",
2915
+ "name": "barCount",
2916
+ "type": {
2917
+ "text": "number"
2918
+ },
2919
+ "default": "60"
2920
+ },
2921
+ {
2922
+ "kind": "field",
2923
+ "name": "barWidth",
2924
+ "type": {
2925
+ "text": "number"
2926
+ },
2927
+ "default": "4"
2928
+ },
2929
+ {
2930
+ "kind": "field",
2931
+ "name": "barHeight",
2932
+ "type": {
2933
+ "text": "number"
2934
+ },
2935
+ "default": "4"
2936
+ },
2937
+ {
2938
+ "kind": "field",
2939
+ "name": "barGap",
2940
+ "type": {
2941
+ "text": "number"
2942
+ },
2943
+ "default": "2"
2944
+ },
2945
+ {
2946
+ "kind": "field",
2947
+ "name": "barRadius",
2948
+ "type": {
2949
+ "text": "number"
2950
+ },
2951
+ "default": "2"
2952
+ },
2953
+ {
2954
+ "kind": "field",
2955
+ "name": "barColor",
2956
+ "type": {
2957
+ "text": "string | undefined"
2958
+ }
2959
+ },
2960
+ {
2961
+ "kind": "field",
2962
+ "name": "fadeEdges",
2963
+ "type": {
2964
+ "text": "boolean"
2965
+ },
2966
+ "default": "true"
2967
+ },
2968
+ {
2969
+ "kind": "field",
2970
+ "name": "fadeWidth",
2971
+ "type": {
2972
+ "text": "number"
2973
+ },
2974
+ "default": "24"
2975
+ },
2976
+ {
2977
+ "kind": "field",
2978
+ "name": "height",
2979
+ "type": {
2980
+ "text": "number"
2981
+ },
2982
+ "default": "128"
2983
+ },
2984
+ {
2985
+ "kind": "field",
2986
+ "name": "data",
2987
+ "type": {
2988
+ "text": "number[] | undefined"
2989
+ }
2990
+ },
2991
+ {
2992
+ "kind": "field",
2993
+ "name": "analyserNode",
2994
+ "type": {
2995
+ "text": "AnalyserNode | undefined"
2996
+ }
2997
+ },
2998
+ {
2999
+ "kind": "field",
3000
+ "name": "active",
3001
+ "type": {
3002
+ "text": "boolean"
3003
+ },
3004
+ "default": "true"
3005
+ },
3006
+ {
3007
+ "kind": "field",
3008
+ "name": "_canvas",
3009
+ "type": {
3010
+ "text": "HTMLCanvasElement"
3011
+ },
3012
+ "privacy": "private"
3013
+ },
3014
+ {
3015
+ "kind": "field",
3016
+ "name": "_container",
3017
+ "type": {
3018
+ "text": "HTMLDivElement"
3019
+ },
3020
+ "privacy": "private"
3021
+ },
3022
+ {
3023
+ "kind": "field",
3024
+ "name": "_resizeObserver",
3025
+ "type": {
3026
+ "text": "ResizeObserver | undefined"
3027
+ },
3028
+ "privacy": "private"
3029
+ },
3030
+ {
3031
+ "kind": "field",
3032
+ "name": "_animationFrameId",
3033
+ "type": {
3034
+ "text": "number"
3035
+ },
3036
+ "privacy": "private",
3037
+ "default": "0"
3038
+ },
3039
+ {
3040
+ "kind": "field",
3041
+ "name": "_lastTime",
3042
+ "type": {
3043
+ "text": "number"
3044
+ },
3045
+ "privacy": "private",
3046
+ "default": "0"
3047
+ },
3048
+ {
3049
+ "kind": "field",
3050
+ "name": "_dataArray",
3051
+ "type": {
3052
+ "text": "Uint8Array | undefined"
3053
+ },
3054
+ "privacy": "private"
3055
+ },
3056
+ {
3057
+ "kind": "field",
3058
+ "name": "_bars",
3059
+ "type": {
3060
+ "text": "BarData[]"
3061
+ },
3062
+ "privacy": "private",
3063
+ "default": "[]"
3064
+ },
3065
+ {
3066
+ "kind": "field",
3067
+ "name": "_seed",
3068
+ "privacy": "private"
3069
+ },
3070
+ {
3071
+ "kind": "field",
3072
+ "name": "_dataIndex",
3073
+ "type": {
3074
+ "text": "number"
3075
+ },
3076
+ "privacy": "private",
3077
+ "default": "0"
3078
+ },
3079
+ {
3080
+ "kind": "field",
3081
+ "name": "styles",
3082
+ "static": true,
3083
+ "default": "css` :host { display: block; width: 100%; } .container { position: relative; width: 100%; overflow: hidden; } canvas { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 100%; } `"
3084
+ },
3085
+ {
3086
+ "kind": "method",
3087
+ "name": "render"
3088
+ },
3089
+ {
3090
+ "kind": "method",
3091
+ "name": "firstUpdated"
3092
+ },
3093
+ {
3094
+ "kind": "method",
3095
+ "name": "_handleResize",
3096
+ "privacy": "private"
3097
+ },
3098
+ {
3099
+ "kind": "method",
3100
+ "name": "_seededRandom",
3101
+ "privacy": "private",
3102
+ "parameters": [
3103
+ {
3104
+ "name": "index",
3105
+ "type": {
3106
+ "text": "number"
3107
+ }
3108
+ }
3109
+ ]
3110
+ },
3111
+ {
3112
+ "kind": "method",
3113
+ "name": "_populateInitialBars",
3114
+ "privacy": "private"
3115
+ },
3116
+ {
3117
+ "kind": "method",
3118
+ "name": "_startAnimation",
3119
+ "privacy": "private"
3120
+ }
3121
+ ],
3122
+ "superclass": {
3123
+ "name": "LitElement",
3124
+ "package": "lit"
3125
+ },
3126
+ "customElement": true
3127
+ }
3128
+ ],
3129
+ "exports": [
3130
+ {
3131
+ "kind": "js",
3132
+ "name": "UiScrollingWaveform",
3133
+ "declaration": {
3134
+ "name": "UiScrollingWaveform",
3135
+ "module": "src/components/molecules/ui-scrolling-waveform.ts"
3136
+ }
3137
+ }
3138
+ ]
3139
+ },
3140
+ {
3141
+ "kind": "javascript-module",
3142
+ "path": "src/components/molecules/ui-showcase-card.ts",
3143
+ "declarations": [
3144
+ {
3145
+ "kind": "class",
3146
+ "description": "A container component used in the demo to showcase individual components.",
3147
+ "name": "UiShowcaseCard",
3148
+ "members": [
3149
+ {
3150
+ "kind": "field",
3151
+ "name": "title",
3152
+ "type": {
3153
+ "text": "string"
3154
+ },
3155
+ "default": "'Component'"
3156
+ },
3157
+ {
3158
+ "kind": "field",
3159
+ "name": "description",
3160
+ "type": {
3161
+ "text": "string"
3162
+ },
3163
+ "default": "''"
3164
+ },
3165
+ {
3166
+ "kind": "field",
3167
+ "name": "mode",
3168
+ "type": {
3169
+ "text": "'preview' | 'code'"
3170
+ },
3171
+ "default": "'preview'"
3172
+ },
3173
+ {
3174
+ "kind": "field",
3175
+ "name": "styles",
3176
+ "static": true,
3177
+ "default": "css` :host { display: block; border-radius: 12px; background: var(--md-sys-color-surface-container-low, #f7f9fc); border: 1px solid var(--md-sys-color-outline-variant, #e0e0e0); overflow: hidden; margin-bottom: var(--ui-showcase-card-margin-bottom, 24px); } .header { padding: var(--ui-showcase-card-header-padding, 16px 20px); border-bottom: 1px solid var(--md-sys-color-outline-variant, #e0e0e0); display: flex; justify-content: space-between; align-items: center; } .title-group h3 { margin: 0; font-size: 1.1rem; color: var(--md-sys-color-on-surface, #1e1e1e); } .title-group p { margin: 4px 0 0; font-size: 0.85rem; color: var(--md-sys-color-on-surface-variant, #444); } .content { padding: var(--ui-showcase-card-content-padding, 24px); display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 100px; gap: 16px; } `"
3178
+ },
3179
+ {
3180
+ "kind": "method",
3181
+ "name": "render"
3182
+ }
3183
+ ],
3184
+ "superclass": {
3185
+ "name": "LitElement",
3186
+ "package": "lit"
3187
+ },
3188
+ "customElement": true
3189
+ }
3190
+ ],
3191
+ "exports": [
3192
+ {
3193
+ "kind": "js",
3194
+ "name": "UiShowcaseCard",
3195
+ "declaration": {
3196
+ "name": "UiShowcaseCard",
3197
+ "module": "src/components/molecules/ui-showcase-card.ts"
3198
+ }
3199
+ }
3200
+ ]
3201
+ },
3202
+ {
3203
+ "kind": "javascript-module",
3204
+ "path": "src/components/molecules/ui-spectrum-visualizer.ts",
3205
+ "declarations": [
3206
+ {
3207
+ "kind": "class",
3208
+ "description": "A standard frequency spectrum visualizer (bars).\nAutomatically consumes AudioPlayerState from the nearest ui-audio-provider.",
3209
+ "name": "UiSpectrumVisualizer",
3210
+ "members": [
3211
+ {
3212
+ "kind": "field",
3213
+ "name": "playerState",
3214
+ "type": {
3215
+ "text": "AudioPlayerState | undefined"
3216
+ },
3217
+ "privacy": "private"
3218
+ },
3219
+ {
3220
+ "kind": "field",
3221
+ "name": "barWidth",
3222
+ "type": {
3223
+ "text": "number"
3224
+ },
3225
+ "default": "4",
3226
+ "description": "Width of each spectrum bar (default: 4)."
3227
+ },
3228
+ {
3229
+ "kind": "field",
3230
+ "name": "barGap",
3231
+ "type": {
3232
+ "text": "number"
3233
+ },
3234
+ "default": "2",
3235
+ "description": "Gap between bars (default: 2)."
3236
+ },
3237
+ {
3238
+ "kind": "field",
3239
+ "name": "height",
3240
+ "type": {
3241
+ "text": "number"
3242
+ },
3243
+ "default": "100",
3244
+ "description": "Container height (default: 100)."
3245
+ },
3246
+ {
3247
+ "kind": "field",
3248
+ "name": "color",
3249
+ "type": {
3250
+ "text": "string"
3251
+ },
3252
+ "description": "Bar color. Falls back to --md-sys-color-primary."
3253
+ },
3254
+ {
3255
+ "kind": "field",
3256
+ "name": "_canvas",
3257
+ "type": {
3258
+ "text": "HTMLCanvasElement"
3259
+ },
3260
+ "privacy": "private"
3261
+ },
3262
+ {
3263
+ "kind": "field",
3264
+ "name": "_animationFrameId",
3265
+ "type": {
3266
+ "text": "number"
3267
+ },
3268
+ "privacy": "private",
3269
+ "default": "0"
3270
+ },
3271
+ {
3272
+ "kind": "field",
3273
+ "name": "_dataArray",
3274
+ "type": {
3275
+ "text": "Uint8Array | undefined"
3276
+ },
3277
+ "privacy": "private"
3278
+ },
3279
+ {
3280
+ "kind": "field",
3281
+ "name": "styles",
3282
+ "static": true,
3283
+ "default": "css` :host { display: block; width: 100%; overflow: hidden; } canvas { display: block; width: 100%; height: 100%; } `"
3284
+ },
3285
+ {
3286
+ "kind": "method",
3287
+ "name": "render"
3288
+ },
3289
+ {
3290
+ "kind": "method",
3291
+ "name": "firstUpdated"
3292
+ },
3293
+ {
3294
+ "kind": "method",
3295
+ "name": "_startLoop",
3296
+ "privacy": "private"
3297
+ },
3298
+ {
3299
+ "kind": "method",
3300
+ "name": "_renderFrame",
3301
+ "privacy": "private"
3302
+ }
3303
+ ],
3304
+ "superclass": {
3305
+ "name": "LitElement",
3306
+ "package": "lit"
3307
+ },
3308
+ "tagName": "ui-spectrum-visualizer",
3309
+ "customElement": true
3310
+ }
3311
+ ],
3312
+ "exports": [
3313
+ {
3314
+ "kind": "js",
3315
+ "name": "UiSpectrumVisualizer",
3316
+ "declaration": {
3317
+ "name": "UiSpectrumVisualizer",
3318
+ "module": "src/components/molecules/ui-spectrum-visualizer.ts"
3319
+ }
3320
+ }
3321
+ ]
3322
+ },
3323
+ {
3324
+ "kind": "javascript-module",
3325
+ "path": "src/components/molecules/ui-speech-preview.ts",
3326
+ "declarations": [
3327
+ {
3328
+ "kind": "class",
3329
+ "description": "",
3330
+ "name": "UiSpeechPreview",
3331
+ "members": [
3332
+ {
3333
+ "kind": "field",
3334
+ "name": "_context",
3335
+ "type": {
3336
+ "text": "SpeechContext | undefined"
3337
+ },
3338
+ "privacy": "private"
3339
+ },
3340
+ {
3341
+ "kind": "field",
3342
+ "name": "placeholder",
3343
+ "type": {
3344
+ "text": "string"
3345
+ },
3346
+ "default": "'Jot down some thoughts...'"
3347
+ },
3348
+ {
3349
+ "kind": "field",
3350
+ "name": "styles",
3351
+ "static": true,
3352
+ "default": "css` :host { display: inline-flex; align-items: center; gap: var(--ui-speech-preview-gap, 8px); font-family: inherit; min-width: 0; color: var(--md-sys-color-primary); } .transcript { font-size: var(--ui-speech-preview-font-size, 14px); font-family: var(--ui-speech-preview-font-family, inherit); color: var(--md-sys-color-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 0.7; font-style: italic; } .waveform-container { width: 32px; height: 24px; display: flex; align-items: center; justify-content: center; background: transparent; border-radius: 4px; transition: all 0.3s ease; } .hidden { width: 0; opacity: 0; pointer-events: none; margin-left: -8px; } `"
3353
+ },
3354
+ {
3355
+ "kind": "method",
3356
+ "name": "render"
3357
+ }
3358
+ ],
3359
+ "superclass": {
3360
+ "name": "LitElement",
3361
+ "package": "lit"
3362
+ },
3363
+ "customElement": true
3364
+ }
3365
+ ],
3366
+ "exports": [
3367
+ {
3368
+ "kind": "js",
3369
+ "name": "UiSpeechPreview",
3370
+ "declaration": {
3371
+ "name": "UiSpeechPreview",
3372
+ "module": "src/components/molecules/ui-speech-preview.ts"
3373
+ }
3374
+ }
3375
+ ]
3376
+ },
3377
+ {
3378
+ "kind": "javascript-module",
3379
+ "path": "src/components/molecules/ui-typing-indicator.ts",
3380
+ "declarations": [
3381
+ {
3382
+ "kind": "class",
3383
+ "description": "MOLECULE: Typing Indicator\nA group of animated dots indicating active 'typing' or 'thinking' state.",
3384
+ "name": "UiTypingIndicator",
3385
+ "members": [
3386
+ {
3387
+ "kind": "field",
3388
+ "name": "styles",
3389
+ "static": true,
3390
+ "default": "css` :host { display: inline-flex; align-items: center; gap: var(--ui-typing-indicator-gap, 4px); padding: var(--ui-typing-indicator-padding, 8px 12px); background: var(--md-sys-color-surface-container-low); border-radius: 12px; border-bottom-left-radius: 4px; } `"
3391
+ },
3392
+ {
3393
+ "kind": "method",
3394
+ "name": "render"
3395
+ }
3396
+ ],
3397
+ "superclass": {
3398
+ "name": "LitElement",
3399
+ "package": "lit"
3400
+ },
3401
+ "tagName": "ui-typing-indicator",
3402
+ "customElement": true
3403
+ }
3404
+ ],
3405
+ "exports": [
3406
+ {
3407
+ "kind": "js",
3408
+ "name": "UiTypingIndicator",
3409
+ "declaration": {
3410
+ "name": "UiTypingIndicator",
3411
+ "module": "src/components/molecules/ui-typing-indicator.ts"
3412
+ }
3413
+ }
3414
+ ]
3415
+ },
3416
+ {
3417
+ "kind": "javascript-module",
3418
+ "path": "src/components/molecules/ui-voice-button.ts",
3419
+ "declarations": [
3420
+ {
3421
+ "kind": "class",
3422
+ "description": "A native Lit WebComponent replacement for the ElevenLabs React voice-button.\nNow refactored to consume speechContext but maintains backward compatibility\nfor manual state control.",
3423
+ "name": "UiVoiceButton",
3424
+ "members": [
3425
+ {
3426
+ "kind": "field",
3427
+ "name": "_context",
3428
+ "type": {
3429
+ "text": "SpeechContext | undefined"
3430
+ },
3431
+ "privacy": "private"
3432
+ },
3433
+ {
3434
+ "kind": "field",
3435
+ "name": "state",
3436
+ "type": {
3437
+ "text": "VoiceButtonState"
3438
+ },
3439
+ "default": "'idle'"
3440
+ },
3441
+ {
3442
+ "kind": "field",
3443
+ "name": "label",
3444
+ "type": {
3445
+ "text": "string | undefined"
3446
+ }
3447
+ },
3448
+ {
3449
+ "kind": "field",
3450
+ "name": "trailing",
3451
+ "type": {
3452
+ "text": "string | undefined"
3453
+ }
3454
+ },
3455
+ {
3456
+ "kind": "field",
3457
+ "name": "disabled",
3458
+ "type": {
3459
+ "text": "boolean"
3460
+ },
3461
+ "default": "false"
3462
+ },
3463
+ {
3464
+ "kind": "field",
3465
+ "name": "analyserNode",
3466
+ "type": {
3467
+ "text": "AnalyserNode | undefined"
3468
+ }
3469
+ },
3470
+ {
3471
+ "kind": "field",
3472
+ "name": "_showFeedback",
3473
+ "type": {
3474
+ "text": "boolean"
3475
+ },
3476
+ "privacy": "private",
3477
+ "default": "false"
3478
+ },
3479
+ {
3480
+ "kind": "field",
3481
+ "name": "_feedbackType",
3482
+ "type": {
3483
+ "text": "'success' | 'error' | null"
3484
+ },
3485
+ "privacy": "private",
3486
+ "default": "null"
3487
+ },
3488
+ {
3489
+ "kind": "field",
3490
+ "name": "_feedbackTimeout",
3491
+ "type": {
3492
+ "text": "ReturnType<typeof setTimeout> | undefined"
3493
+ },
3494
+ "privacy": "private"
3495
+ },
3496
+ {
3497
+ "kind": "field",
3498
+ "name": "styles",
3499
+ "static": true,
3500
+ "default": "css` :host { display: inline-block; --ui-waveform-height: 24px; --ui-waveform-width: 96px; } .wrapper { display: flex; align-items: center; justify-content: center; /* Dynamic gap based on state to ensure perfect centering */ gap: 0; min-width: 100%; transition: gap 0.3s ease; } .wrapper.active { gap: 12px; } md-filled-button, md-outlined-button { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; min-width: 140px; } md-filled-button.recording { --md-filled-button-container-color: var( --ui-speech-record-color, #ffdad6 ); --md-filled-button-label-text-color: #410002; } .waveform-slot { position: relative; width: 0; height: var(--ui-waveform-height); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: transparent; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; opacity: 0; } .waveform-slot.active { width: var(--ui-waveform-width); opacity: 1; } .feedback-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: inherit; border-radius: inherit; animation: fadeIn 0.3s ease forwards; pointer-events: none; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 0.9; } } `"
3501
+ },
3502
+ {
3503
+ "kind": "method",
3504
+ "name": "updated",
3505
+ "privacy": "protected",
3506
+ "parameters": [
3507
+ {
3508
+ "name": "changedProperties",
3509
+ "type": {
3510
+ "text": "PropertyValues"
3511
+ }
3512
+ }
3513
+ ]
3514
+ },
3515
+ {
3516
+ "kind": "method",
3517
+ "name": "render"
3518
+ },
3519
+ {
3520
+ "kind": "method",
3521
+ "name": "_handleClick",
3522
+ "privacy": "private",
3523
+ "parameters": [
3524
+ {
3525
+ "name": "_e",
3526
+ "type": {
3527
+ "text": "Event"
3528
+ }
3529
+ }
3530
+ ]
3531
+ }
3532
+ ],
3533
+ "events": [
3534
+ {
3535
+ "name": "voice-button-click",
3536
+ "type": {
3537
+ "text": "CustomEvent"
3538
+ }
3539
+ }
3540
+ ],
3541
+ "superclass": {
3542
+ "name": "LitElement",
3543
+ "package": "lit"
3544
+ },
3545
+ "customElement": true
3546
+ }
3547
+ ],
3548
+ "exports": [
3549
+ {
3550
+ "kind": "js",
3551
+ "name": "UiVoiceButton",
3552
+ "declaration": {
3553
+ "name": "UiVoiceButton",
3554
+ "module": "src/components/molecules/ui-voice-button.ts"
3555
+ }
3556
+ }
3557
+ ]
3558
+ },
3559
+ {
3560
+ "kind": "javascript-module",
3561
+ "path": "src/components/molecules/ui-voice-picker.ts",
3562
+ "declarations": [
3563
+ {
3564
+ "kind": "class",
3565
+ "description": "A native Lit WebComponent that provides a searchable dropdown menu for selecting\na voice persona. It supports custom data mapping, optional 3D 'Orb' avatars,\nand built-in audio preview capabilities.",
3566
+ "name": "UiVoicePicker",
3567
+ "members": [
3568
+ {
3569
+ "kind": "field",
3570
+ "name": "voices",
3571
+ "type": {
3572
+ "text": "Array"
3573
+ },
3574
+ "default": "[]",
3575
+ "description": "The list of voice objects to display."
3576
+ },
3577
+ {
3578
+ "kind": "field",
3579
+ "name": "value",
3580
+ "type": {
3581
+ "text": "string"
3582
+ },
3583
+ "description": "The ID of the currently selected voice."
3584
+ },
3585
+ {
3586
+ "kind": "field",
3587
+ "name": "placeholder",
3588
+ "type": {
3589
+ "text": "string"
3590
+ },
3591
+ "default": "'Select a voice...'",
3592
+ "description": "Text to display when no voice is selected."
3593
+ },
3594
+ {
3595
+ "kind": "field",
3596
+ "name": "idKey",
3597
+ "type": {
3598
+ "text": "string"
3599
+ },
3600
+ "default": "'voiceId'",
3601
+ "description": "Key in the voice object to use as the unique ID (default: 'voiceId')."
3602
+ },
3603
+ {
3604
+ "kind": "field",
3605
+ "name": "titleKey",
3606
+ "type": {
3607
+ "text": "string"
3608
+ },
3609
+ "default": "'name'",
3610
+ "description": "Key in the voice object to use as the display name (default: 'name')."
3611
+ },
3612
+ {
3613
+ "kind": "field",
3614
+ "name": "subtitleKey",
3615
+ "type": {
3616
+ "text": "string"
3617
+ },
3618
+ "default": "'category'",
3619
+ "description": "Key in the voice object to use as the category/subtitle (default: 'category')."
3620
+ },
3621
+ {
3622
+ "kind": "field",
3623
+ "name": "previewUrlKey",
3624
+ "type": {
3625
+ "text": "string"
3626
+ },
3627
+ "default": "'previewUrl'",
3628
+ "description": "Key in the voice object containing the preview audio URL."
3629
+ },
3630
+ {
3631
+ "kind": "field",
3632
+ "name": "useOrbs",
3633
+ "type": {
3634
+ "text": "boolean"
3635
+ },
3636
+ "default": "false",
3637
+ "description": "Whether to display 3D ui-orb avatars for each voice."
3638
+ },
3639
+ {
3640
+ "kind": "field",
3641
+ "name": "colorKey",
3642
+ "type": {
3643
+ "text": "string"
3644
+ },
3645
+ "default": "'colors'"
3646
+ },
3647
+ {
3648
+ "kind": "field",
3649
+ "name": "_searchQuery",
3650
+ "type": {
3651
+ "text": "string"
3652
+ },
3653
+ "privacy": "private",
3654
+ "default": "''"
3655
+ },
3656
+ {
3657
+ "kind": "field",
3658
+ "name": "_previewingVoiceId",
3659
+ "type": {
3660
+ "text": "string | undefined"
3661
+ },
3662
+ "privacy": "private"
3663
+ },
3664
+ {
3665
+ "kind": "field",
3666
+ "name": "_menuEl",
3667
+ "type": {
3668
+ "text": "any"
3669
+ },
3670
+ "privacy": "private"
3671
+ },
3672
+ {
3673
+ "kind": "field",
3674
+ "name": "_audioEl",
3675
+ "type": {
3676
+ "text": "HTMLAudioElement"
3677
+ },
3678
+ "privacy": "private"
3679
+ },
3680
+ {
3681
+ "kind": "field",
3682
+ "name": "styles",
3683
+ "static": true,
3684
+ "default": "css` :host { display: inline-block; width: 100%; font-family: inherit; color-scheme: light dark; } .anchor-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--ui-voice-picker-padding, 8px 16px); background: var( --ui-voice-picker-anchor-bg, var(--md-sys-color-surface-container-high, transparent) ); border: 1px solid var(--md-sys-color-outline-variant, currentColor); border-radius: 8px; color: var(--md-sys-color-on-surface); cursor: pointer; font-family: inherit; font-size: 14px; min-height: 48px; transition: background-color 0.2s, border-color 0.2s; } .anchor-button:hover { background: var(--md-sys-color-surface-container-highest); } .anchor-button:focus-visible { outline: none; border-color: var(--md-sys-color-primary); box-shadow: 0 0 0 1px var(--md-sys-color-primary); } .trigger-content { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 100%; padding: 4px 0; } .trigger-left { display: flex; align-items: center; gap: var(--ui-voice-picker-trigger-gap, 12px); overflow: hidden; } .trigger-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .trigger-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--md-sys-color-on-surface); } md-menu { --md-menu-container-shape: 12px; --md-menu-container-color: var( --md-sys-color-surface-container, var(--md-sys-color-surface) ); max-width: 400px; font-family: inherit; --md-sys-typescale-body-medium-font: inherit; border: 1px solid var(--md-sys-color-outline-variant); } .search-container { padding: 8px 12px; background: var(--md-sys-color-surface-container); border-bottom: 1px solid var(--md-sys-color-outline-variant); font-family: inherit; } md-outlined-text-field { width: 100%; --md-outlined-text-field-container-shape: 8px; font-family: inherit; --md-outlined-text-field-label-text-font: inherit; --md-outlined-text-field-input-text-font: inherit; --md-sys-typescale-body-large-font: inherit; } md-menu-item { --md-menu-item-hover-state-layer-color: var( --md-sys-color-on-surface-variant ); --md-menu-item-focus-state-layer-color: var( --md-sys-color-on-surface-variant ); --md-menu-item-label-text-color: var(--md-sys-color-on-surface); --md-menu-item-label-text-font: inherit; --md-sys-typescale-label-large-font: inherit; font-family: inherit; } .voice-item-content { display: flex; align-items: center; gap: var(--ui-voice-picker-item-gap, 16px); width: 100%; padding: var(--ui-voice-picker-item-padding, 8px 0); } .voice-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--md-sys-color-surface-variant); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; overflow: hidden; color: var(--md-sys-color-on-surface-variant); z-index: 2; /* Keep above the menu item ripple */ } .voice-avatar:hover .play-overlay { opacity: 1; } .play-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: opacity 0.2s; border-radius: 50%; } .play-overlay.active { opacity: 1; background: rgba(0, 0, 0, 0.6); } .voice-info { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: hidden; } .voice-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--md-sys-color-on-surface); } .voice-labels { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--md-sys-color-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .label-dot { font-size: 8px; } .empty-state { padding: 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: 14px; } `"
3685
+ },
3686
+ {
3687
+ "kind": "method",
3688
+ "name": "render"
3689
+ },
3690
+ {
3691
+ "kind": "method",
3692
+ "name": "_toggleMenu",
3693
+ "privacy": "private"
3694
+ },
3695
+ {
3696
+ "kind": "method",
3697
+ "name": "_handleMenuClosed",
3698
+ "privacy": "private"
3699
+ },
3700
+ {
3701
+ "kind": "method",
3702
+ "name": "_selectVoice",
3703
+ "privacy": "private",
3704
+ "parameters": [
3705
+ {
3706
+ "name": "voiceId",
3707
+ "type": {
3708
+ "text": "string"
3709
+ }
3710
+ }
3711
+ ]
3712
+ },
3713
+ {
3714
+ "kind": "method",
3715
+ "name": "_togglePreview",
3716
+ "privacy": "private",
3717
+ "parameters": [
3718
+ {
3719
+ "name": "e",
3720
+ "type": {
3721
+ "text": "Event"
3722
+ }
3723
+ },
3724
+ {
3725
+ "name": "voice",
3726
+ "type": {
3727
+ "text": "VoiceItem"
3728
+ }
3729
+ }
3730
+ ]
3731
+ },
3732
+ {
3733
+ "kind": "method",
3734
+ "name": "_stopPreview",
3735
+ "privacy": "private"
3736
+ }
3737
+ ],
3738
+ "events": [
3739
+ {
3740
+ "name": "voice-change",
3741
+ "type": {
3742
+ "text": "CustomEvent"
3743
+ },
3744
+ "description": "Dispatched when a voice is selected. detail: { voiceId }"
3745
+ }
3746
+ ],
3747
+ "superclass": {
3748
+ "name": "LitElement",
3749
+ "package": "lit"
3750
+ },
3751
+ "tagName": "ui-voice-picker",
3752
+ "customElement": true
3753
+ }
3754
+ ],
3755
+ "exports": [
3756
+ {
3757
+ "kind": "js",
3758
+ "name": "UiVoicePicker",
3759
+ "declaration": {
3760
+ "name": "UiVoicePicker",
3761
+ "module": "src/components/molecules/ui-voice-picker.ts"
3762
+ }
3763
+ }
3764
+ ]
3765
+ },
3766
+ {
3767
+ "kind": "javascript-module",
3768
+ "path": "src/components/molecules/ui-voice-pill.ts",
3769
+ "declarations": [
3770
+ {
3771
+ "kind": "class",
3772
+ "description": "A composite \"Pill\" style voice interaction component.\nIt combines the recording button, a live waveform, and a cancel button\ninto a single cohesive UI element.",
3773
+ "name": "UiVoicePill",
3774
+ "members": [
3775
+ {
3776
+ "kind": "field",
3777
+ "name": "_context",
3778
+ "type": {
3779
+ "text": "SpeechContext | undefined"
3780
+ },
3781
+ "privacy": "private"
3782
+ },
3783
+ {
3784
+ "kind": "field",
3785
+ "name": "label",
3786
+ "type": {
3787
+ "text": "string | undefined"
3788
+ }
3789
+ },
3790
+ {
3791
+ "kind": "field",
3792
+ "name": "disabled",
3793
+ "type": {
3794
+ "text": "boolean"
3795
+ },
3796
+ "default": "false"
3797
+ },
3798
+ {
3799
+ "kind": "field",
3800
+ "name": "_showFeedback",
3801
+ "type": {
3802
+ "text": "boolean"
3803
+ },
3804
+ "privacy": "private",
3805
+ "default": "false"
3806
+ },
3807
+ {
3808
+ "kind": "field",
3809
+ "name": "_feedbackType",
3810
+ "type": {
3811
+ "text": "'success' | 'error' | null"
3812
+ },
3813
+ "privacy": "private",
3814
+ "default": "null"
3815
+ },
3816
+ {
3817
+ "kind": "field",
3818
+ "name": "_feedbackTimeout",
3819
+ "type": {
3820
+ "text": "ReturnType<typeof setTimeout> | undefined"
3821
+ },
3822
+ "privacy": "private"
3823
+ },
3824
+ {
3825
+ "kind": "field",
3826
+ "name": "styles",
3827
+ "static": true,
3828
+ "default": "css` :host { display: inline-block; } .pill { display: flex; align-items: center; background: var(--md-sys-color-surface-container-highest, #e6e0e9); border-radius: 100px; padding: var(--ui-voice-pill-padding, 4px); gap: var(--ui-voice-pill-gap, 8px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .label { padding-left: 12px; font-family: inherit; font-weight: 500; color: var(--md-sys-color-on-surface, #1d1b20); white-space: nowrap; } .waveform-container { width: 0; overflow: hidden; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .active .waveform-container { width: 80px; } .feedback-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--md-sys-color-surface-container-highest); border-radius: inherit; animation: fadeIn 0.3s ease forwards; pointer-events: none; z-index: 2; } .feedback-overlay.success md-icon { color: var(--md-sys-color-primary, #0066cc); } .feedback-overlay.error md-icon { color: var(--md-sys-color-error, #ba1a1a); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 0.9; } } `"
3829
+ },
3830
+ {
3831
+ "kind": "method",
3832
+ "name": "updated",
3833
+ "privacy": "protected",
3834
+ "parameters": [
3835
+ {
3836
+ "name": "changedProperties",
3837
+ "type": {
3838
+ "text": "PropertyValues"
3839
+ }
3840
+ }
3841
+ ]
3842
+ },
3843
+ {
3844
+ "kind": "method",
3845
+ "name": "render"
3846
+ }
3847
+ ],
3848
+ "superclass": {
3849
+ "name": "LitElement",
3850
+ "package": "lit"
3851
+ },
3852
+ "tagName": "ui-voice-pill",
3853
+ "customElement": true
3854
+ }
3855
+ ],
3856
+ "exports": [
3857
+ {
3858
+ "kind": "js",
3859
+ "name": "UiVoicePill",
3860
+ "declaration": {
3861
+ "name": "UiVoicePill",
3862
+ "module": "src/components/molecules/ui-voice-pill.ts"
3863
+ }
3864
+ }
3865
+ ]
3866
+ },
3867
+ {
3868
+ "kind": "javascript-module",
3869
+ "path": "src/components/molecules/ui-waveform.ts",
3870
+ "declarations": [
3871
+ {
3872
+ "kind": "class",
3873
+ "description": "",
3874
+ "name": "UiWaveform",
3875
+ "members": [
3876
+ {
3877
+ "kind": "field",
3878
+ "name": "data",
3879
+ "type": {
3880
+ "text": "number[]"
3881
+ },
3882
+ "default": "[]"
3883
+ },
3884
+ {
3885
+ "kind": "field",
3886
+ "name": "barWidth",
3887
+ "type": {
3888
+ "text": "number"
3889
+ },
3890
+ "default": "4"
3891
+ },
3892
+ {
3893
+ "kind": "field",
3894
+ "name": "barHeight",
3895
+ "type": {
3896
+ "text": "number"
3897
+ },
3898
+ "default": "4"
3899
+ },
3900
+ {
3901
+ "kind": "field",
3902
+ "name": "barGap",
3903
+ "type": {
3904
+ "text": "number"
3905
+ },
3906
+ "default": "2"
3907
+ },
3908
+ {
3909
+ "kind": "field",
3910
+ "name": "barRadius",
3911
+ "type": {
3912
+ "text": "number"
3913
+ },
3914
+ "default": "2"
3915
+ },
3916
+ {
3917
+ "kind": "field",
3918
+ "name": "barColor",
3919
+ "type": {
3920
+ "text": "string | undefined"
3921
+ }
3922
+ },
3923
+ {
3924
+ "kind": "field",
3925
+ "name": "fadeEdges",
3926
+ "type": {
3927
+ "text": "boolean"
3928
+ },
3929
+ "default": "true"
3930
+ },
3931
+ {
3932
+ "kind": "field",
3933
+ "name": "fadeWidth",
3934
+ "type": {
3935
+ "text": "number"
3936
+ },
3937
+ "default": "24"
3938
+ },
3939
+ {
3940
+ "kind": "field",
3941
+ "name": "height",
3942
+ "type": {
3943
+ "text": "number"
3944
+ },
3945
+ "default": "128"
3946
+ },
3947
+ {
3948
+ "kind": "field",
3949
+ "name": "_canvas",
3950
+ "type": {
3951
+ "text": "HTMLCanvasElement"
3952
+ },
3953
+ "privacy": "private"
3954
+ },
3955
+ {
3956
+ "kind": "field",
3957
+ "name": "_container",
3958
+ "type": {
3959
+ "text": "HTMLDivElement"
3960
+ },
3961
+ "privacy": "private"
3962
+ },
3963
+ {
3964
+ "kind": "field",
3965
+ "name": "_resizeObserver",
3966
+ "type": {
3967
+ "text": "ResizeObserver | undefined"
3968
+ },
3969
+ "privacy": "private"
3970
+ },
3971
+ {
3972
+ "kind": "field",
3973
+ "name": "styles",
3974
+ "static": true,
3975
+ "default": "css` :host { display: block; width: 100%; } .container { position: relative; width: 100%; } canvas { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 100%; } `"
3976
+ },
3977
+ {
3978
+ "kind": "method",
3979
+ "name": "render"
3980
+ },
3981
+ {
3982
+ "kind": "method",
3983
+ "name": "firstUpdated"
3984
+ },
3985
+ {
3986
+ "kind": "method",
3987
+ "name": "updated",
3988
+ "parameters": [
3989
+ {
3990
+ "name": "changedProperties",
3991
+ "type": {
3992
+ "text": "PropertyValues"
3993
+ }
3994
+ }
3995
+ ]
3996
+ },
3997
+ {
3998
+ "kind": "method",
3999
+ "name": "_handleResize",
4000
+ "privacy": "private"
4001
+ },
4002
+ {
4003
+ "kind": "method",
4004
+ "name": "_renderWaveform",
4005
+ "privacy": "private"
4006
+ }
4007
+ ],
4008
+ "superclass": {
4009
+ "name": "LitElement",
4010
+ "package": "lit"
4011
+ },
4012
+ "customElement": true
4013
+ }
4014
+ ],
4015
+ "exports": [
4016
+ {
4017
+ "kind": "js",
4018
+ "name": "UiWaveform",
4019
+ "declaration": {
4020
+ "name": "UiWaveform",
4021
+ "module": "src/components/molecules/ui-waveform.ts"
4022
+ }
4023
+ }
4024
+ ]
4025
+ },
4026
+ {
4027
+ "kind": "javascript-module",
4028
+ "path": "src/components/organisms/ui-audio-player.ts",
4029
+ "declarations": [
4030
+ {
4031
+ "kind": "class",
4032
+ "description": "A monolithic backward-compatibility wrapper that renders the classic ElevenLabs\npill-shaped audio player. Internally, it relies completely on the new\ncompound <ui-audio-provider> architecture.",
4033
+ "name": "UiAudioPlayer",
4034
+ "members": [
4035
+ {
4036
+ "kind": "field",
4037
+ "name": "item",
4038
+ "type": {
4039
+ "text": "AudioPlayerItem | undefined"
4040
+ }
4041
+ },
4042
+ {
4043
+ "kind": "field",
4044
+ "name": "styles",
4045
+ "static": true,
4046
+ "default": "css` :host { display: inline-block; width: 100%; max-width: 400px; } .player-pill { display: flex; align-items: center; gap: var(--ui-audio-player-gap, 16px); padding: var(--ui-audio-player-padding, 12px 24px); background: var(--md-sys-color-surface-container-high, #e2e2e2); border-radius: 999px; /* Pill shape */ width: fit-content; font-family: inherit; } .time-container { min-width: 85px; /* prevent jitter when times change */ } .slider-container { width: 200px; display: flex; align-items: center; } `"
4047
+ },
4048
+ {
4049
+ "kind": "method",
4050
+ "name": "render"
4051
+ }
4052
+ ],
4053
+ "superclass": {
4054
+ "name": "LitElement",
4055
+ "package": "lit"
4056
+ },
4057
+ "customElement": true
4058
+ }
4059
+ ],
4060
+ "exports": [
4061
+ {
4062
+ "kind": "js",
4063
+ "name": "UiAudioPlayer",
4064
+ "declaration": {
4065
+ "name": "UiAudioPlayer",
4066
+ "module": "src/components/organisms/ui-audio-player.ts"
4067
+ }
4068
+ }
4069
+ ]
4070
+ },
4071
+ {
4072
+ "kind": "javascript-module",
4073
+ "path": "src/components/providers/ui-audio-provider.ts",
4074
+ "declarations": [
4075
+ {
4076
+ "kind": "class",
4077
+ "description": "A headless (invisible) WebComponent that manages an internal <audio> tag\nand provides state to any child components via",
4078
+ "name": "UiAudioProvider",
4079
+ "members": [
4080
+ {
4081
+ "kind": "field",
4082
+ "name": "src",
4083
+ "type": {
4084
+ "text": "string"
4085
+ },
4086
+ "default": "''"
4087
+ },
4088
+ {
4089
+ "kind": "field",
4090
+ "name": "items",
4091
+ "type": {
4092
+ "text": "PlaylistTrack[]"
4093
+ },
4094
+ "default": "[]"
4095
+ },
4096
+ {
4097
+ "kind": "field",
4098
+ "name": "autoAdvance",
4099
+ "type": {
4100
+ "text": "boolean"
4101
+ },
4102
+ "default": "true"
4103
+ },
4104
+ {
4105
+ "kind": "field",
4106
+ "name": "_audioEl",
4107
+ "type": {
4108
+ "text": "HTMLAudioElement"
4109
+ },
4110
+ "privacy": "private"
4111
+ },
4112
+ {
4113
+ "kind": "field",
4114
+ "name": "_audioContext",
4115
+ "type": {
4116
+ "text": "AudioContext | undefined"
4117
+ },
4118
+ "privacy": "private"
4119
+ },
4120
+ {
4121
+ "kind": "field",
4122
+ "name": "_analyserNode",
4123
+ "type": {
4124
+ "text": "AnalyserNode | undefined"
4125
+ },
4126
+ "privacy": "private"
4127
+ },
4128
+ {
4129
+ "kind": "field",
4130
+ "name": "_mediaSource",
4131
+ "type": {
4132
+ "text": "MediaElementAudioSourceNode | undefined"
4133
+ },
4134
+ "privacy": "private"
4135
+ },
4136
+ {
4137
+ "kind": "field",
4138
+ "name": "_animationFrameId",
4139
+ "type": {
4140
+ "text": "number"
4141
+ },
4142
+ "privacy": "private",
4143
+ "default": "0"
4144
+ },
4145
+ {
4146
+ "kind": "field",
4147
+ "name": "state",
4148
+ "type": {
4149
+ "text": "AudioPlayerState"
4150
+ },
4151
+ "privacy": "public",
4152
+ "default": "{ src: '', isPlaying: false, isBuffering: false, currentTime: 0, duration: 0, volume: 1, muted: false, items: [], currentIndex: -1, autoAdvance: true, analyserNode: undefined, play: () => this.play(), pause: () => this.pause(), togglePlay: () => this._togglePlay(), seek: (time: number) => this._seek(time), setVolume: (volume: number) => this._setVolume(volume), toggleMute: () => this._toggleMute(), next: () => this.next(), previous: () => this.previous(), select: (index: number) => this.select(index), }"
4153
+ },
4154
+ {
4155
+ "kind": "field",
4156
+ "name": "styles",
4157
+ "static": true,
4158
+ "default": "css` :host { display: contents; /* We are completely invisible, just wrapping children */ } audio { display: none; } `"
4159
+ },
4160
+ {
4161
+ "kind": "method",
4162
+ "name": "render"
4163
+ },
4164
+ {
4165
+ "kind": "method",
4166
+ "name": "willUpdate",
4167
+ "parameters": [
4168
+ {
4169
+ "name": "changed",
4170
+ "type": {
4171
+ "text": "Map<string, any>"
4172
+ }
4173
+ }
4174
+ ]
4175
+ },
4176
+ {
4177
+ "kind": "method",
4178
+ "name": "updated",
4179
+ "parameters": [
4180
+ {
4181
+ "name": "changed",
4182
+ "type": {
4183
+ "text": "Map<string, any>"
4184
+ }
4185
+ }
4186
+ ]
4187
+ },
4188
+ {
4189
+ "kind": "method",
4190
+ "name": "_updateState",
4191
+ "privacy": "private",
4192
+ "parameters": [
4193
+ {
4194
+ "name": "updates",
4195
+ "type": {
4196
+ "text": "Partial<AudioPlayerState>"
4197
+ }
4198
+ }
4199
+ ]
4200
+ },
4201
+ {
4202
+ "kind": "method",
4203
+ "name": "_setupAudioContext",
4204
+ "privacy": "private"
4205
+ },
4206
+ {
4207
+ "kind": "method",
4208
+ "name": "play",
4209
+ "privacy": "public"
4210
+ },
4211
+ {
4212
+ "kind": "method",
4213
+ "name": "pause",
4214
+ "privacy": "public"
4215
+ },
4216
+ {
4217
+ "kind": "method",
4218
+ "name": "_togglePlay",
4219
+ "privacy": "private"
4220
+ },
4221
+ {
4222
+ "kind": "method",
4223
+ "name": "_seek",
4224
+ "privacy": "private",
4225
+ "parameters": [
4226
+ {
4227
+ "name": "time",
4228
+ "type": {
4229
+ "text": "number"
4230
+ }
4231
+ }
4232
+ ]
4233
+ },
4234
+ {
4235
+ "kind": "method",
4236
+ "name": "_setVolume",
4237
+ "privacy": "private",
4238
+ "parameters": [
4239
+ {
4240
+ "name": "volume",
4241
+ "type": {
4242
+ "text": "number"
4243
+ }
4244
+ }
4245
+ ]
4246
+ },
4247
+ {
4248
+ "kind": "method",
4249
+ "name": "_toggleMute",
4250
+ "privacy": "private"
4251
+ },
4252
+ {
4253
+ "kind": "method",
4254
+ "name": "next",
4255
+ "privacy": "public"
4256
+ },
4257
+ {
4258
+ "kind": "method",
4259
+ "name": "previous",
4260
+ "privacy": "public"
4261
+ },
4262
+ {
4263
+ "kind": "method",
4264
+ "name": "select",
4265
+ "privacy": "public",
4266
+ "parameters": [
4267
+ {
4268
+ "name": "index",
4269
+ "type": {
4270
+ "text": "number"
4271
+ }
4272
+ }
4273
+ ]
4274
+ },
4275
+ {
4276
+ "kind": "method",
4277
+ "name": "_handleLoadedMetadata",
4278
+ "privacy": "private"
4279
+ },
4280
+ {
4281
+ "kind": "method",
4282
+ "name": "_handleEnded",
4283
+ "privacy": "private"
4284
+ },
4285
+ {
4286
+ "kind": "method",
4287
+ "name": "_handlePlaying",
4288
+ "privacy": "private"
4289
+ },
4290
+ {
4291
+ "kind": "method",
4292
+ "name": "_handlePause",
4293
+ "privacy": "private"
4294
+ },
4295
+ {
4296
+ "kind": "method",
4297
+ "name": "_handleError",
4298
+ "privacy": "private"
4299
+ },
4300
+ {
4301
+ "kind": "method",
4302
+ "name": "_startTrackingTime",
4303
+ "privacy": "private"
4304
+ }
4305
+ ],
4306
+ "events": [
4307
+ {
4308
+ "name": "state-change",
4309
+ "type": {
4310
+ "text": "CustomEvent"
4311
+ }
4312
+ }
4313
+ ],
4314
+ "superclass": {
4315
+ "name": "LitElement",
4316
+ "package": "lit"
4317
+ },
4318
+ "customElement": true
4319
+ }
4320
+ ],
4321
+ "exports": [
4322
+ {
4323
+ "kind": "js",
4324
+ "name": "UiAudioProvider",
4325
+ "declaration": {
4326
+ "name": "UiAudioProvider",
4327
+ "module": "src/components/providers/ui-audio-provider.ts"
4328
+ }
4329
+ }
4330
+ ]
4331
+ },
4332
+ {
4333
+ "kind": "javascript-module",
4334
+ "path": "src/components/providers/ui-speech-provider.ts",
4335
+ "declarations": [
4336
+ {
4337
+ "kind": "class",
4338
+ "description": "A headless provider component that manages the speech recording lifecycle.\nIt provides a `SpeechContext` to all children components, allowing them to\nreact to recording states and access transcripts.\n\nIt supports three modes:\n1. Auto (Default): Handles getUserMedia and provides a real MediaStream.\n2. Simulation: Provides a mock AnalyserNode and fake transcription for demos.\n3. Manual: Only emits intent events, leaving state management to a backend/agent.",
4339
+ "name": "UiSpeechProvider",
4340
+ "members": [
4341
+ {
4342
+ "kind": "field",
4343
+ "name": "_context",
4344
+ "type": {
4345
+ "text": "SpeechContext"
4346
+ },
4347
+ "privacy": "private",
4348
+ "default": "{ state: 'idle', transcript: '', partialTranscript: '', analyserNode: undefined, start: () => this.start(), stop: () => this.stop(), cancel: () => this.cancel(), }"
4349
+ },
4350
+ {
4351
+ "kind": "field",
4352
+ "name": "state",
4353
+ "type": {
4354
+ "text": "string"
4355
+ },
4356
+ "default": "'idle'",
4357
+ "description": "The current recording state ('idle', 'connecting', 'recording', 'processing', 'success', 'error')."
4358
+ },
4359
+ {
4360
+ "kind": "field",
4361
+ "name": "simulation",
4362
+ "type": {
4363
+ "text": "boolean"
4364
+ },
4365
+ "default": "false",
4366
+ "description": "Enable mock transcription and audio data for demos."
4367
+ },
4368
+ {
4369
+ "kind": "field",
4370
+ "name": "manual",
4371
+ "type": {
4372
+ "text": "boolean"
4373
+ },
4374
+ "default": "false",
4375
+ "description": "If true, the provider will not start recording automatically but will emit requests."
4376
+ },
4377
+ {
4378
+ "kind": "field",
4379
+ "name": "transcript",
4380
+ "type": {
4381
+ "text": "string"
4382
+ },
4383
+ "default": "''",
4384
+ "description": "The final confirmed transcript."
4385
+ },
4386
+ {
4387
+ "kind": "field",
4388
+ "name": "partialTranscript",
4389
+ "type": {
4390
+ "text": "string"
4391
+ },
4392
+ "default": "''",
4393
+ "description": "The live, interim transcript."
4394
+ },
4395
+ {
4396
+ "kind": "field",
4397
+ "name": "_stream",
4398
+ "type": {
4399
+ "text": "MediaStream | undefined"
4400
+ },
4401
+ "privacy": "private"
4402
+ },
4403
+ {
4404
+ "kind": "field",
4405
+ "name": "_audioCtx",
4406
+ "type": {
4407
+ "text": "AudioContext | undefined"
4408
+ },
4409
+ "privacy": "private"
4410
+ },
4411
+ {
4412
+ "kind": "field",
4413
+ "name": "_analyser",
4414
+ "type": {
4415
+ "text": "AnalyserNode | undefined"
4416
+ },
4417
+ "privacy": "private"
4418
+ },
4419
+ {
4420
+ "kind": "field",
4421
+ "name": "_transcriptInterval",
4422
+ "type": {
4423
+ "text": "any | undefined"
4424
+ },
4425
+ "privacy": "private"
4426
+ },
4427
+ {
4428
+ "kind": "field",
4429
+ "name": "_fakeTranscript",
4430
+ "type": {
4431
+ "text": "array"
4432
+ },
4433
+ "privacy": "private",
4434
+ "default": "[ 'I', ' am', ' recording', ' a', ' message', ' using', ' atomic', ' components...', ]"
4435
+ },
4436
+ {
4437
+ "kind": "field",
4438
+ "name": "styles",
4439
+ "static": true,
4440
+ "default": "css` :host { display: contents; } `"
4441
+ },
4442
+ {
4443
+ "kind": "method",
4444
+ "name": "willUpdate",
4445
+ "parameters": [
4446
+ {
4447
+ "name": "changedProperties",
4448
+ "type": {
4449
+ "text": "Map<string, any>"
4450
+ }
4451
+ }
4452
+ ]
4453
+ },
4454
+ {
4455
+ "kind": "method",
4456
+ "name": "start"
4457
+ },
4458
+ {
4459
+ "kind": "method",
4460
+ "name": "stop"
4461
+ },
4462
+ {
4463
+ "kind": "method",
4464
+ "name": "cancel"
4465
+ },
4466
+ {
4467
+ "kind": "method",
4468
+ "name": "_cleanupStream",
4469
+ "privacy": "private"
4470
+ },
4471
+ {
4472
+ "kind": "method",
4473
+ "name": "_updateContext",
4474
+ "privacy": "private",
4475
+ "parameters": [
4476
+ {
4477
+ "name": "update",
4478
+ "type": {
4479
+ "text": "Partial<SpeechContext>"
4480
+ }
4481
+ }
4482
+ ]
4483
+ },
4484
+ {
4485
+ "kind": "method",
4486
+ "name": "render"
4487
+ }
4488
+ ],
4489
+ "events": [
4490
+ {
4491
+ "name": "speech-request-start",
4492
+ "type": {
4493
+ "text": "CustomEvent"
4494
+ },
4495
+ "description": "Dispatched in 'manual' mode when a child wants to start."
4496
+ },
4497
+ {
4498
+ "name": "speech-start",
4499
+ "type": {
4500
+ "text": "CustomEvent"
4501
+ },
4502
+ "description": "Dispatched when recording actually begins."
4503
+ },
4504
+ {
4505
+ "name": "speech-request-stop",
4506
+ "type": {
4507
+ "text": "CustomEvent"
4508
+ },
4509
+ "description": "Dispatched in 'manual' mode when a child wants to stop."
4510
+ },
4511
+ {
4512
+ "name": "speech-stop",
4513
+ "type": {
4514
+ "text": "CustomEvent"
4515
+ },
4516
+ "description": "Dispatched when recording is stopped."
4517
+ },
4518
+ {
4519
+ "name": "speech-cancel",
4520
+ "type": {
4521
+ "text": "CustomEvent"
4522
+ }
4523
+ },
4524
+ {
4525
+ "name": "state-change",
4526
+ "type": {
4527
+ "text": "CustomEvent"
4528
+ },
4529
+ "description": "Dispatched whenever the internal context state changes."
4530
+ }
4531
+ ],
4532
+ "superclass": {
4533
+ "name": "LitElement",
4534
+ "package": "lit"
4535
+ },
4536
+ "tagName": "ui-speech-provider",
4537
+ "customElement": true
4538
+ }
4539
+ ],
4540
+ "exports": [
4541
+ {
4542
+ "kind": "js",
4543
+ "name": "UiSpeechProvider",
4544
+ "declaration": {
4545
+ "name": "UiSpeechProvider",
4546
+ "module": "src/components/providers/ui-speech-provider.ts"
4547
+ }
4548
+ }
4549
+ ]
4550
+ }
4551
+ ]
4552
+ }