File tree Expand file tree Collapse file tree 13 files changed +150
-196
lines changed
Expand file tree Collapse file tree 13 files changed +150
-196
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1- import type { StorybookConfig } from "@storybook/experimental- nextjs-vite" ;
1+ import type { StorybookConfig } from "@storybook/nextjs-vite" ;
22import fs from "fs" ;
33import path from "path" ;
44import { 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 ) => {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { withFetch } from "@/.storybook/utils";
22import Layout from "@/app/(app)/layout" ;
33import { getQuerier } from "@/lib/database.mock" ;
44import type { Meta , StoryObj } from "@storybook/react" ;
5- import { mocked } from "@ storybook/test" ;
5+ import { mocked } from "storybook/test" ;
66import { SessionProvider } from "next-auth/react" ;
77import OrganizationLayout from "../layout" ;
88import AgentLayout from "./layout" ;
Original file line number Diff line number Diff line change 11import Layout from "@/app/(app)/layout" ;
22import { getQuerier } from "@/lib/database.mock" ;
33import type { Meta , StoryObj } from "@storybook/react" ;
4- import { mocked } from "@ storybook/test" ;
4+ import { mocked } from "storybook/test" ;
55import { SessionProvider } from "next-auth/react" ;
66import OrganizationLayout from "./layout" ;
77import OrganizationPage from "./page" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type {
22 Organization ,
33 OrganizationMembership ,
44} from "@blink.so/database/schema" ;
5- import { fn } from "@ storybook/test" ;
5+ import { fn } from "storybook/test" ;
66import type { Session } from "next-auth" ;
77
88export const auth = fn ( async ( ) : Promise < Session | null > => {
Original file line number Diff line number Diff line change 11import { emailVerificationTokenCookieName } from "@/app/(auth)/auth" ;
22import Layout from "@/app/(public)/layout" ;
3- import { cookies } from "@storybook/experimental- nextjs-vite/headers.mock" ;
3+ import { cookies } from "@storybook/nextjs-vite/headers.mock" ;
44import type { Meta , StoryObj } from "@storybook/react" ;
55import EmailVerificationPage from "./page" ;
66
Original file line number Diff line number Diff line change 11import Layout from "@/app/(public)/layout" ;
2- import { cookies } from "@storybook/experimental- nextjs-vite/headers.mock" ;
2+ import { cookies } from "@storybook/nextjs-vite/headers.mock" ;
33import type { Meta , StoryObj } from "@storybook/react" ;
4- import { mocked } from "@ storybook/test" ;
4+ import { mocked } from "storybook/test" ;
55import LoginPage from "./page" ;
66
77const meta : Meta < typeof LoginPage > = {
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ export const metadata: Metadata = {
1212} ;
1313
1414interface 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
2424export default async function LoginPage ( { searchParams } : LoginPageProps ) {
Original file line number Diff line number Diff line change 11import { passwordResetVerifiedCookieName } from "@/app/(auth)/auth" ;
22import Layout from "@/app/(public)/layout" ;
3- import { cookies } from "@storybook/experimental- nextjs-vite/headers.mock" ;
3+ import { cookies } from "@storybook/nextjs-vite/headers.mock" ;
44import type { Meta , StoryObj } from "@storybook/react" ;
55import ResetPasswordNewPage from "./page" ;
66
Original file line number Diff line number Diff line change 11import { emailVerificationTokenCookieName } from "@/app/(auth)/auth" ;
22import Layout from "@/app/(public)/layout" ;
3- import { cookies } from "@storybook/experimental- nextjs-vite/headers.mock" ;
3+ import { cookies } from "@storybook/nextjs-vite/headers.mock" ;
44import type { Meta , StoryObj } from "@storybook/react" ;
55import ResetVerificationPage from "./page" ;
66
You can’t perform that action at this time.
0 commit comments