Skip to content

Commit 294128d

Browse files
fix: storybook build (#1293)
1 parent e712ab6 commit 294128d

File tree

7 files changed

+65
-1266
lines changed

7 files changed

+65
-1266
lines changed

packages/shadcn/components/agents-ui/agent-audio-visualizer-aura.tsx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
/*
2-
* Originally developed for Unicorn Studio
3-
* https://unicorn.studio
4-
*
5-
* Licensed under the Polyform Non-Resale License 1.0.0
6-
* https://polyformproject.org/licenses/non-resale/1.0.0/
7-
*
8-
* © 2026 UNCRN LLC
9-
*/
1+
// Originally developed for Unicorn Studio
2+
// https://unicorn.studio
3+
//
4+
// Licensed under the Polyform Non-Resale License 1.0.0
5+
// https://polyformproject.org/licenses/non-resale/1.0.0/
6+
//
7+
// © 2026 UNCRN LLC
108

119
'use client';
1210

@@ -247,10 +245,10 @@ interface AuraShaderProps {
247245
blur?: number;
248246

249247
/**
250-
* Color of the aura
248+
* Color of the aura in hexidecimal format.
251249
* @default '#1FD5F9'
252250
*/
253-
color?: string;
251+
color?: `#${string}`;
254252

255253
/**
256254
* Color variation across layers (0-1)
@@ -372,10 +370,10 @@ export interface AgentAudioVisualizerAuraProps {
372370
*/
373371
state?: AgentState;
374372
/**
375-
* The color of the aura in hex format.
373+
* The color of the aura in hexidecimal format.
376374
* @defaultValue '#1FD5F9'
377375
*/
378-
color?: string;
376+
color?: `#${string}`;
379377
/**
380378
* The color shift of the aura.
381379
* @defaultValue 0.05

packages/shadcn/components/agents-ui/agent-audio-visualizer-bar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export interface AgentAudioVisualizerBarProps {
9494
*/
9595
state?: AgentState;
9696
/**
97-
* The color of the bars.
97+
* The color of the bars in hexidecimal format.
9898
*/
99-
color?: string;
99+
color?: `#${string}`;
100100
/**
101101
* The number of bars to display in the visualizer.
102102
* If not provided, defaults based on size: 3 for 'icon'/'sm', 5 for others.

packages/shadcn/components/agents-ui/agent-audio-visualizer-grid.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,9 @@ export type AgentAudioVisualizerGridProps = GridOptions & {
199199
*/
200200
state?: AgentState;
201201
/**
202-
* The color of the grid cells.
203-
* @defaultValue '#1FD5F9'
202+
* The color of the grid cells in hexidecimal format.
204203
*/
205-
color?: string;
204+
color?: `#${string}`;
206205
/**
207206
* The audio track to visualize. Can be a local/remote audio track or a track reference.
208207
*/

packages/shadcn/components/agents-ui/agent-audio-visualizer-radial.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { type ComponentProps, CSSProperties, useMemo } from 'react';
3+
import { type ComponentProps, type CSSProperties, useMemo } from 'react';
44
import { type VariantProps, cva } from 'class-variance-authority';
55
import { type LocalAudioTrack, type RemoteAudioTrack } from 'livekit-client';
66
import {
@@ -19,7 +19,7 @@ export const AgentAudioVisualizerRadialVariants = cva(
1919
'**:data-lk-index:rounded-full **:data-lk-index:transition-colors **:data-lk-index:duration-150 **:data-lk-index:ease-linear **:data-lk-index:data-[lk-highlighted=true]:bg-current',
2020
'has-data-[lk-state=connecting]:**:data-lk-index:duration-300',
2121
'has-data-[lk-state=initializing]:**:data-lk-index:duration-300',
22-
'has-data-[lk-state=listening]:**:data-lk-index:duration-300 has-data-[lk-state=listening]:**:data-lk-index:duration-300',
22+
'has-data-[lk-state=listening]:**:data-lk-index:duration-300',
2323
'has-data-[lk-state=thinking]:animate-spin has-data-[lk-state=thinking]:[animation-duration:5s] has-data-[lk-state=thinking]:**:data-lk-index:bg-current',
2424
],
2525
{
@@ -53,10 +53,9 @@ export interface AgentAudioVisualizerRadialProps {
5353
*/
5454
state?: AgentState;
5555
/**
56-
* The color of the radial bars.
57-
* @defaultValue '#1FD5F9'
56+
* The color of the radial bars in hexidecimal format.
5857
*/
59-
color?: string;
58+
color?: `#${string}`;
6059
/**
6160
* The radius (distance from center) for the radial bars.
6261
* If not provided, defaults based on size.

packages/shadcn/components/agents-ui/agent-audio-visualizer-wave.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ interface WaveShaderProps {
169169
*/
170170
frequency?: number;
171171
/**
172-
* Color of the oscilloscope
172+
* Color of the oscilloscope in hexidecimal format.
173173
* @default '#1FD5F9'
174174
*/
175-
color?: string;
175+
color?: `#${string}`;
176176
/**
177177
* Hue shift amount applied toward the outside of the wave. Center remains at the base color.
178178
* @default 0.05
@@ -266,10 +266,10 @@ export interface AgentAudioVisualizerWaveProps {
266266
*/
267267
state?: AgentState;
268268
/**
269-
* The color of the wave in hex format.
269+
* The color of the wave in hexidecimal format.
270270
* @defaultValue '#1FD5F9'
271271
*/
272-
color?: string;
272+
color?: `#${string}`;
273273
/**
274274
* The color shift of the wave. Higher values increase hue variation toward the edges.
275275
* @defaultValue 0.05

packages/shadcn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"lucide-react": "^0.555.0",
3939
"motion": "^12.16.0",
4040
"sonner": "^2.0.7",
41-
"streamdown": "^1.6.9",
41+
"streamdown": "^2.3.0",
4242
"tailwind-merge": "^3.3.0",
4343
"use-stick-to-bottom": "^1.1.1"
4444
},

0 commit comments

Comments
 (0)