Skip to content

Commit e978ac3

Browse files
author
ai-elements-bot[bot]
committed
chore: regenerate skills
1 parent 1310612 commit e978ac3

21 files changed

Lines changed: 43 additions & 69 deletions

skills/ai-elements/scripts/audio-player.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use client";
22

3-
import type { Experimental_SpeechResult as SpeechResult } from "ai";
4-
53
import {
64
AudioPlayer,
75
AudioPlayerControlBar,
@@ -15,6 +13,7 @@ import {
1513
AudioPlayerTimeRange,
1614
AudioPlayerVolumeRange,
1715
} from "@/components/ai-elements/audio-player";
16+
import type { Experimental_SpeechResult as SpeechResult } from "ai";
1817
import { useEffect, useState } from "react";
1918

2019
const Example = () => {

skills/ai-elements/scripts/code-block.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use client";
22

3-
import type { BundledLanguage } from "shiki";
4-
53
import {
64
CodeBlock,
75
CodeBlockActions,
@@ -17,6 +15,7 @@ import {
1715
} from "@/components/ai-elements/code-block";
1816
import { FileIcon } from "lucide-react";
1917
import { useCallback, useState } from "react";
18+
import type { BundledLanguage } from "shiki";
2019

2120
const codeExamples = {
2221
go: {

skills/ai-elements/scripts/persona-command.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/persona-glint.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/persona-halo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/persona-mana.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/persona-obsidian.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/persona-opal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client";
22

33
import type { PersonaState } from "@/components/ai-elements/persona";
4-
import type { LucideIcon } from "lucide-react";
5-
64
import { Persona } from "@/components/ai-elements/persona";
75
import { Button } from "@/components/ui/button";
86
import { ButtonGroup } from "@/components/ui/button-group";
@@ -11,6 +9,7 @@ import {
119
TooltipContent,
1210
TooltipTrigger,
1311
} from "@/components/ui/tooltip";
12+
import type { LucideIcon } from "lucide-react";
1413
import {
1514
BrainIcon,
1615
CircleIcon,

skills/ai-elements/scripts/prompt-input-cursor.tsx

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"use client";
22

33
import type { AttachmentData } from "@/components/ai-elements/attachments";
4-
import type { PromptInputMessage } from "@/components/ai-elements/prompt-input";
5-
import type { SourceDocumentUIPart } from "ai";
6-
74
import {
85
Attachment,
96
AttachmentInfo,
@@ -24,6 +21,7 @@ import {
2421
ModelSelectorName,
2522
ModelSelectorTrigger,
2623
} from "@/components/ai-elements/model-selector";
24+
import type { PromptInputMessage } from "@/components/ai-elements/prompt-input";
2725
import {
2826
PromptInput,
2927
PromptInputBody,
@@ -52,6 +50,7 @@ import {
5250
usePromptInputReferencedSources,
5351
} from "@/components/ai-elements/prompt-input";
5452
import { Button } from "@/components/ui/button";
53+
import type { SourceDocumentUIPart } from "ai";
5554
import {
5655
AtSignIcon,
5756
CheckIcon,
@@ -174,29 +173,24 @@ ModelItem.displayName = "ModelItem";
174173

175174
interface SourceCommandItemProps {
176175
source: SourceDocumentUIPart;
177-
index: number;
178176
onAdd: (source: SourceDocumentUIPart) => void;
179177
}
180178

181-
const SourceCommandItem = memo(
182-
({ source, index, onAdd }: SourceCommandItemProps) => {
183-
const handleSelect = useCallback(() => onAdd(source), [onAdd, source]);
184-
return (
185-
<PromptInputCommandItem
186-
key={`${source.title}-${index}`}
187-
onSelect={handleSelect}
188-
>
189-
<GlobeIcon className="text-primary" />
190-
<div className="flex flex-col">
191-
<span className="font-medium text-sm">{source.title}</span>
192-
<span className="text-muted-foreground text-xs">
193-
{source.filename}
194-
</span>
195-
</div>
196-
</PromptInputCommandItem>
197-
);
198-
}
199-
);
179+
const SourceCommandItem = memo(({ source, onAdd }: SourceCommandItemProps) => {
180+
const handleSelect = useCallback(() => onAdd(source), [onAdd, source]);
181+
return (
182+
<PromptInputCommandItem
183+
key={`${source.filename}-${source.title}`}
184+
onSelect={handleSelect}
185+
>
186+
<GlobeIcon className="text-primary" />
187+
<div className="flex flex-col">
188+
<span className="font-medium text-sm">{source.title}</span>
189+
<span className="text-muted-foreground text-xs">{source.filename}</span>
190+
</div>
191+
</PromptInputCommandItem>
192+
);
193+
});
200194

201195
SourceCommandItem.displayName = "SourceCommandItem";
202196

@@ -318,10 +312,9 @@ const SampleFilesMenu = () => {
318312
s.title === source.title && s.filename === source.filename
319313
)
320314
)
321-
.map((source, index) => (
315+
.map((source) => (
322316
<SourceCommandItem
323-
index={index}
324-
key={`${source.title}-${index}`}
317+
key={`${source.filename}-${source.title}`}
325318
onAdd={handleAdd}
326319
source={source}
327320
/>

skills/ai-elements/scripts/prompt-input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use client";
22

3-
import type { PromptInputMessage } from "@/components/ai-elements/prompt-input";
4-
53
import {
64
Attachment,
75
AttachmentPreview,
@@ -21,6 +19,7 @@ import {
2119
ModelSelectorName,
2220
ModelSelectorTrigger,
2321
} from "@/components/ai-elements/model-selector";
22+
import type { PromptInputMessage } from "@/components/ai-elements/prompt-input";
2423
import {
2524
PromptInput,
2625
PromptInputActionAddAttachments,

0 commit comments

Comments
 (0)