Skip to content

Commit af85649

Browse files
committed
upgrade storybook
1 parent 90559fa commit af85649

File tree

8 files changed

+145
-191
lines changed

8 files changed

+145
-191
lines changed

bun.lock

Lines changed: 132 additions & 178 deletions
Large diffs are not rendered by default.

packages/site/.storybook/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { StorybookConfig } from "@storybook/experimental-nextjs-vite";
1+
import type { StorybookConfig } from "@storybook/nextjs-vite";
22
import fs from "fs";
33
import path from "path";
44
import { fileURLToPath } from "url";
@@ -11,7 +11,7 @@ const config: StorybookConfig = {
1111
experimentalRSC: true,
1212
},
1313
framework: {
14-
name: "@storybook/experimental-nextjs-vite",
14+
name: "@storybook/nextjs-vite",
1515
options: {},
1616
},
1717
viteFinal: async (config) => {

packages/site/app/(public)/email-verification/page.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { emailVerificationTokenCookieName } from "@/app/(auth)/auth";
22
import Layout from "@/app/(public)/layout";
3-
import { cookies } from "@storybook/experimental-nextjs-vite/headers.mock";
3+
import { cookies } from "@storybook/nextjs-vite/headers.mock";
44
import type { Meta, StoryObj } from "@storybook/react";
55
import EmailVerificationPage from "./page";
66

packages/site/app/(public)/login/page.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Layout from "@/app/(public)/layout";
2-
import { cookies } from "@storybook/experimental-nextjs-vite/headers.mock";
2+
import { cookies } from "@storybook/nextjs-vite/headers.mock";
33
import type { Meta, StoryObj } from "@storybook/react";
4-
import { mocked } from "@storybook/test";
4+
import { mocked } from "storybook/test";
55
import LoginPage from "./page";
66

77
const meta: Meta<typeof LoginPage> = {

packages/site/app/(public)/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export const metadata: Metadata = {
1212
};
1313

1414
interface LoginPageProps {
15-
searchParams: {
15+
searchParams: Promise<{
1616
error?: string;
1717
waitlist?: string;
1818
callbackUrl?: string;
1919
redirect?: string;
2020
reset?: string;
21-
};
21+
}>;
2222
}
2323

2424
export default async function LoginPage({ searchParams }: LoginPageProps) {

packages/site/app/(public)/reset-password/new/page.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { passwordResetVerifiedCookieName } from "@/app/(auth)/auth";
22
import Layout from "@/app/(public)/layout";
3-
import { cookies } from "@storybook/experimental-nextjs-vite/headers.mock";
3+
import { cookies } from "@storybook/nextjs-vite/headers.mock";
44
import type { Meta, StoryObj } from "@storybook/react";
55
import ResetPasswordNewPage from "./page";
66

packages/site/app/(public)/reset-password/verify/page.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { emailVerificationTokenCookieName } from "@/app/(auth)/auth";
22
import Layout from "@/app/(public)/layout";
3-
import { cookies } from "@storybook/experimental-nextjs-vite/headers.mock";
3+
import { cookies } from "@storybook/nextjs-vite/headers.mock";
44
import type { Meta, StoryObj } from "@storybook/react";
55
import ResetVerificationPage from "./page";
66

packages/site/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"typescript": "^5"
2323
},
2424
"devDependencies": {
25+
"@cloudflare/workers-types": "^4.20251211.0",
2526
"@lexical/react": "^0.32.1",
2627
"@lexical/utils": "^0.32.1",
2728
"@next/bundle-analyzer": "^15.5.3",
@@ -34,9 +35,8 @@
3435
"@radix-ui/react-tabs": "^1.1.12",
3536
"@radix-ui/react-tooltip": "^1.2.6",
3637
"@remixicon/react": "^4.6.0",
37-
"@storybook/experimental-nextjs-vite": "^8.6.14",
38-
"@storybook/react": "8.6.14",
39-
"@storybook/test": "8.6.14",
38+
"@storybook/nextjs-vite": "^9.1.16",
39+
"@storybook/react": "^9.1.16",
4040
"@tailwindcss/forms": "^0.5.10",
4141
"@tailwindcss/postcss": "^4.1.13",
4242
"@tailwindcss/typography": "^0.5.16",
@@ -72,7 +72,7 @@
7272
"rehype-sanitize": "^6.0.0",
7373
"remark-gfm": "^4.0.1",
7474
"sonner": "^2.0.3",
75-
"storybook": "8.6.14",
75+
"storybook": "^9.1.16",
7676
"stripe": "^18.2.1",
7777
"swr": "^2.3.3",
7878
"tailwind-merge": "^3.2.0",

0 commit comments

Comments
 (0)