Skip to content

Commit 6664a43

Browse files
committed
fix type errors in storybook
1 parent 6db818e commit 6664a43

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

apps/react/storybook/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
"storybook": "^8"
2020
},
2121
"devDependencies": {
22+
"@copilotkitnext/core": "workspace:*",
2223
"@copilotkitnext/react": "workspace:*",
2324
"@copilotkitnext/typescript-config": "workspace:*",
2425
"@storybook/addon-themes": "^8",
2526
"@types/node": "^22",
2627
"@types/react": "^19.1.0",
2728
"@types/react-dom": "^19.0.2",
2829
"concurrently": "^9.1.0",
29-
"typescript": "5.8.2"
30+
"lucide-react": "^0.525.0",
31+
"typescript": "5.8.2",
32+
"zod": "^3.25.75"
3033
}
3134
}

apps/react/storybook/stories/CopilotAssistantMessage.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const meta = {
140140
}}
141141
>
142142
<div style={{ width: "100%", maxWidth: "640px" }}>
143-
<CopilotKitProvider publicApiKey="test">
143+
<CopilotKitProvider>
144144
<CopilotChatConfigurationProvider threadId="storybook-thread">
145145
<Story />
146146
</CopilotChatConfigurationProvider>

apps/react/storybook/stories/CopilotChatSuggestionView.stories.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ export const LoadingSecond: Story = {
3939

4040
export const CustomSuggestionSlot: Story = {
4141
args: {
42-
suggestion: (props) => (
43-
<CopilotChatSuggestionPill
44-
{...props}
45-
icon={<Sparkles className="h-4 w-4" aria-hidden="true" />}
46-
/>
47-
),
42+
suggestion: {
43+
icon: <Sparkles className="h-4 w-4" aria-hidden="true" />,
44+
},
4845
},
4946
};

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)