├── .github └── workflows │ ├── check.yml │ ├── chromatic.yml │ └── release.yml ├── .gitignore ├── .npmrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── biome.json ├── example ├── .env ├── .gitignore ├── .storybook │ ├── global.css │ ├── main.ts │ ├── preview.tsx │ └── vitest.setup.ts ├── README.md ├── env.d.ts ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public │ ├── next.svg │ └── vercel.svg ├── src │ ├── app │ │ ├── components │ │ │ ├── BootstrapButton │ │ │ │ ├── BootstrapButton.stories.tsx │ │ │ │ └── BootstrapButton.tsx │ │ │ ├── CSS │ │ │ │ ├── CSSModules.module.css │ │ │ │ ├── CSSModules.module.scss │ │ │ │ ├── CSSModules.tsx │ │ │ │ ├── Sass.module.scss │ │ │ │ ├── Sass.tsx │ │ │ │ ├── Tailwind.stories.tsx │ │ │ │ └── Tailwind.tsx │ │ │ ├── Cache │ │ │ │ ├── Cache.stories.tsx │ │ │ │ └── Cache.tsx │ │ │ ├── DynamicImport │ │ │ │ ├── DynamicImport.stories.tsx │ │ │ │ ├── DynamicImport.tsx │ │ │ │ └── NamedExport.tsx │ │ │ ├── EnvironmentVariables │ │ │ │ ├── EnvironmentVariables.stories.tsx │ │ │ │ └── EnvironmentVariables.tsx │ │ │ ├── Font │ │ │ │ ├── Font.stories.tsx │ │ │ │ ├── Font.test.tsx │ │ │ │ ├── Font.tsx │ │ │ │ └── fonts │ │ │ │ │ ├── Playwrite │ │ │ │ │ ├── OFL.txt │ │ │ │ │ ├── PlaywriteBEVLG-ExtraLight.ttf │ │ │ │ │ └── PlaywriteBEVLG-Regular.ttf │ │ │ │ │ └── RubikStorm │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── RubikStorm-Regular.ttf │ │ │ ├── Header │ │ │ │ ├── Header.stories.tsx │ │ │ │ └── Header.tsx │ │ │ ├── Image │ │ │ │ ├── GetImageProps.stories.tsx │ │ │ │ ├── Image.stories.tsx │ │ │ │ ├── ImageLegacy.stories.tsx │ │ │ │ └── assets │ │ │ │ │ ├── accessibility.svg │ │ │ │ │ ├── avif-test-image.avif │ │ │ │ │ ├── github.svg │ │ │ │ │ └── testing.png │ │ │ └── Link │ │ │ │ ├── Link.stories.module.css │ │ │ │ ├── Link.stories.tsx │ │ │ │ └── __snapshots__ │ │ │ │ ├── Link.test.tsx.snap │ │ │ │ └── index.test.tsx.snap │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.tsx │ │ └── page.tsx │ ├── env.test.ts │ └── stories │ │ ├── Button.stories.ts │ │ ├── Button.tsx │ │ ├── Configure.mdx │ │ ├── Header.stories.ts │ │ ├── Header.tsx │ │ ├── Page.stories.ts │ │ ├── Page.tsx │ │ ├── assets │ │ ├── accessibility.png │ │ ├── accessibility.svg │ │ ├── addon-library.png │ │ ├── assets.png │ │ ├── avif-test-image.avif │ │ ├── context.png │ │ ├── discord.svg │ │ ├── docs.png │ │ ├── figma-plugin.png │ │ ├── github.svg │ │ ├── share.png │ │ ├── styling.png │ │ ├── testing.png │ │ ├── theming.png │ │ ├── tutorials.svg │ │ └── youtube.svg │ │ ├── button.css │ │ ├── header.css │ │ └── page.css ├── tailwind.config.ts ├── tsconfig.json └── vitest.config.ts ├── lefthook.yml ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── src ├── index.ts ├── mocks │ └── storybook.global.ts ├── plugins │ ├── next-dynamic │ │ └── plugin.ts │ ├── next-env │ │ └── plugin.ts │ ├── next-font │ │ ├── google │ │ │ └── get-font-face-declarations.ts │ │ ├── local │ │ │ └── get-font-face-declarations.ts │ │ ├── plugin.ts │ │ └── utils │ │ │ ├── get-css-meta.ts │ │ │ └── set-font-declarations-in-head.ts │ ├── next-image │ │ ├── alias │ │ │ ├── image-context.tsx │ │ │ ├── image-default-loader.tsx │ │ │ ├── index.tsx │ │ │ ├── next-image.tsx │ │ │ └── next-legacy-image.tsx │ │ └── plugin.ts │ ├── next-mocks │ │ ├── alias │ │ │ ├── cache │ │ │ │ └── index.ts │ │ │ ├── dynamic │ │ │ │ └── index.tsx │ │ │ ├── headers │ │ │ │ ├── cookies.ts │ │ │ │ ├── headers.ts │ │ │ │ └── index.ts │ │ │ ├── navigation │ │ │ │ └── index.ts │ │ │ ├── router │ │ │ │ └── index.ts │ │ │ ├── rsc │ │ │ │ └── server-only.ts │ │ │ └── safe-stable-stringify │ │ │ │ └── index.ts │ │ ├── compatibility │ │ │ ├── compatibility-map.ts │ │ │ └── draft-mode.compat.ts │ │ └── plugin.ts │ └── next-swc │ │ └── plugin.ts ├── polyfills │ └── promise-with-resolvers.ts ├── types.d.ts ├── utils.ts ├── utils │ ├── nextjs.test.ts │ ├── nextjs.ts │ ├── swc │ │ ├── options.ts │ │ ├── styles.ts │ │ └── transform.ts │ └── typescript.ts └── vitest.d.ts ├── tsconfig.json └── tsup.config.ts /.github/workflows/check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/.github/workflows/check.yml -------------------------------------------------------------------------------- /.github/workflows/chromatic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/.github/workflows/chromatic.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .env 4 | package-lock.json -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | hoist-workspace-packages=false -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/README.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/biome.json -------------------------------------------------------------------------------- /example/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.env -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/.storybook/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.storybook/global.css -------------------------------------------------------------------------------- /example/.storybook/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.storybook/main.ts -------------------------------------------------------------------------------- /example/.storybook/preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.storybook/preview.tsx -------------------------------------------------------------------------------- /example/.storybook/vitest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/.storybook/vitest.setup.ts -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/README.md -------------------------------------------------------------------------------- /example/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/env.d.ts -------------------------------------------------------------------------------- /example/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/next.config.mjs -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/package.json -------------------------------------------------------------------------------- /example/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/postcss.config.mjs -------------------------------------------------------------------------------- /example/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/public/next.svg -------------------------------------------------------------------------------- /example/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/public/vercel.svg -------------------------------------------------------------------------------- /example/src/app/components/BootstrapButton/BootstrapButton.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/BootstrapButton/BootstrapButton.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/BootstrapButton/BootstrapButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/BootstrapButton/BootstrapButton.tsx -------------------------------------------------------------------------------- /example/src/app/components/CSS/CSSModules.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/CSSModules.module.css -------------------------------------------------------------------------------- /example/src/app/components/CSS/CSSModules.module.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/src/app/components/CSS/CSSModules.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/CSSModules.tsx -------------------------------------------------------------------------------- /example/src/app/components/CSS/Sass.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/Sass.module.scss -------------------------------------------------------------------------------- /example/src/app/components/CSS/Sass.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/Sass.tsx -------------------------------------------------------------------------------- /example/src/app/components/CSS/Tailwind.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/Tailwind.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/CSS/Tailwind.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/CSS/Tailwind.tsx -------------------------------------------------------------------------------- /example/src/app/components/Cache/Cache.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Cache/Cache.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Cache/Cache.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Cache/Cache.tsx -------------------------------------------------------------------------------- /example/src/app/components/DynamicImport/DynamicImport.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/DynamicImport/DynamicImport.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/DynamicImport/DynamicImport.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/DynamicImport/DynamicImport.tsx -------------------------------------------------------------------------------- /example/src/app/components/DynamicImport/NamedExport.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/DynamicImport/NamedExport.tsx -------------------------------------------------------------------------------- /example/src/app/components/EnvironmentVariables/EnvironmentVariables.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/EnvironmentVariables/EnvironmentVariables.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/EnvironmentVariables/EnvironmentVariables.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/EnvironmentVariables/EnvironmentVariables.tsx -------------------------------------------------------------------------------- /example/src/app/components/Font/Font.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/Font.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Font/Font.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/Font.test.tsx -------------------------------------------------------------------------------- /example/src/app/components/Font/Font.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/Font.tsx -------------------------------------------------------------------------------- /example/src/app/components/Font/fonts/Playwrite/OFL.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/fonts/Playwrite/OFL.txt -------------------------------------------------------------------------------- /example/src/app/components/Font/fonts/Playwrite/PlaywriteBEVLG-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/fonts/Playwrite/PlaywriteBEVLG-ExtraLight.ttf -------------------------------------------------------------------------------- /example/src/app/components/Font/fonts/Playwrite/PlaywriteBEVLG-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/fonts/Playwrite/PlaywriteBEVLG-Regular.ttf -------------------------------------------------------------------------------- /example/src/app/components/Font/fonts/RubikStorm/OFL.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/fonts/RubikStorm/OFL.txt -------------------------------------------------------------------------------- /example/src/app/components/Font/fonts/RubikStorm/RubikStorm-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Font/fonts/RubikStorm/RubikStorm-Regular.ttf -------------------------------------------------------------------------------- /example/src/app/components/Header/Header.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Header/Header.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Header/Header.tsx -------------------------------------------------------------------------------- /example/src/app/components/Image/GetImageProps.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/GetImageProps.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Image/Image.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/Image.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Image/ImageLegacy.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/ImageLegacy.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Image/assets/accessibility.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/assets/accessibility.svg -------------------------------------------------------------------------------- /example/src/app/components/Image/assets/avif-test-image.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/assets/avif-test-image.avif -------------------------------------------------------------------------------- /example/src/app/components/Image/assets/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/assets/github.svg -------------------------------------------------------------------------------- /example/src/app/components/Image/assets/testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Image/assets/testing.png -------------------------------------------------------------------------------- /example/src/app/components/Link/Link.stories.module.css: -------------------------------------------------------------------------------- 1 | .link { 2 | color: green; 3 | } 4 | -------------------------------------------------------------------------------- /example/src/app/components/Link/Link.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Link/Link.stories.tsx -------------------------------------------------------------------------------- /example/src/app/components/Link/__snapshots__/Link.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Link/__snapshots__/Link.test.tsx.snap -------------------------------------------------------------------------------- /example/src/app/components/Link/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/components/Link/__snapshots__/index.test.tsx.snap -------------------------------------------------------------------------------- /example/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/favicon.ico -------------------------------------------------------------------------------- /example/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/globals.css -------------------------------------------------------------------------------- /example/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/layout.tsx -------------------------------------------------------------------------------- /example/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/app/page.tsx -------------------------------------------------------------------------------- /example/src/env.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/env.test.ts -------------------------------------------------------------------------------- /example/src/stories/Button.stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Button.stories.ts -------------------------------------------------------------------------------- /example/src/stories/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Button.tsx -------------------------------------------------------------------------------- /example/src/stories/Configure.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Configure.mdx -------------------------------------------------------------------------------- /example/src/stories/Header.stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Header.stories.ts -------------------------------------------------------------------------------- /example/src/stories/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Header.tsx -------------------------------------------------------------------------------- /example/src/stories/Page.stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Page.stories.ts -------------------------------------------------------------------------------- /example/src/stories/Page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/Page.tsx -------------------------------------------------------------------------------- /example/src/stories/assets/accessibility.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/accessibility.png -------------------------------------------------------------------------------- /example/src/stories/assets/accessibility.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/accessibility.svg -------------------------------------------------------------------------------- /example/src/stories/assets/addon-library.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/addon-library.png -------------------------------------------------------------------------------- /example/src/stories/assets/assets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/assets.png -------------------------------------------------------------------------------- /example/src/stories/assets/avif-test-image.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/avif-test-image.avif -------------------------------------------------------------------------------- /example/src/stories/assets/context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/context.png -------------------------------------------------------------------------------- /example/src/stories/assets/discord.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/discord.svg -------------------------------------------------------------------------------- /example/src/stories/assets/docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/docs.png -------------------------------------------------------------------------------- /example/src/stories/assets/figma-plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/figma-plugin.png -------------------------------------------------------------------------------- /example/src/stories/assets/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/github.svg -------------------------------------------------------------------------------- /example/src/stories/assets/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/share.png -------------------------------------------------------------------------------- /example/src/stories/assets/styling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/styling.png -------------------------------------------------------------------------------- /example/src/stories/assets/testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/testing.png -------------------------------------------------------------------------------- /example/src/stories/assets/theming.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/theming.png -------------------------------------------------------------------------------- /example/src/stories/assets/tutorials.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/tutorials.svg -------------------------------------------------------------------------------- /example/src/stories/assets/youtube.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/assets/youtube.svg -------------------------------------------------------------------------------- /example/src/stories/button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/button.css -------------------------------------------------------------------------------- /example/src/stories/header.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/header.css -------------------------------------------------------------------------------- /example/src/stories/page.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/src/stories/page.css -------------------------------------------------------------------------------- /example/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/tailwind.config.ts -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/example/vitest.config.ts -------------------------------------------------------------------------------- /lefthook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/lefthook.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - example 3 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/mocks/storybook.global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/mocks/storybook.global.ts -------------------------------------------------------------------------------- /src/plugins/next-dynamic/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-dynamic/plugin.ts -------------------------------------------------------------------------------- /src/plugins/next-env/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-env/plugin.ts -------------------------------------------------------------------------------- /src/plugins/next-font/google/get-font-face-declarations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-font/google/get-font-face-declarations.ts -------------------------------------------------------------------------------- /src/plugins/next-font/local/get-font-face-declarations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-font/local/get-font-face-declarations.ts -------------------------------------------------------------------------------- /src/plugins/next-font/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-font/plugin.ts -------------------------------------------------------------------------------- /src/plugins/next-font/utils/get-css-meta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-font/utils/get-css-meta.ts -------------------------------------------------------------------------------- /src/plugins/next-font/utils/set-font-declarations-in-head.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-font/utils/set-font-declarations-in-head.ts -------------------------------------------------------------------------------- /src/plugins/next-image/alias/image-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/alias/image-context.tsx -------------------------------------------------------------------------------- /src/plugins/next-image/alias/image-default-loader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/alias/image-default-loader.tsx -------------------------------------------------------------------------------- /src/plugins/next-image/alias/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/alias/index.tsx -------------------------------------------------------------------------------- /src/plugins/next-image/alias/next-image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/alias/next-image.tsx -------------------------------------------------------------------------------- /src/plugins/next-image/alias/next-legacy-image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/alias/next-legacy-image.tsx -------------------------------------------------------------------------------- /src/plugins/next-image/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-image/plugin.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/cache/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/cache/index.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/dynamic/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/dynamic/index.tsx -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/headers/cookies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/headers/cookies.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/headers/headers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/headers/headers.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/headers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/headers/index.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/navigation/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/navigation/index.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/router/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/router/index.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/rsc/server-only.ts: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /src/plugins/next-mocks/alias/safe-stable-stringify/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/alias/safe-stable-stringify/index.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/compatibility/compatibility-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/compatibility/compatibility-map.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/compatibility/draft-mode.compat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/compatibility/draft-mode.compat.ts -------------------------------------------------------------------------------- /src/plugins/next-mocks/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-mocks/plugin.ts -------------------------------------------------------------------------------- /src/plugins/next-swc/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/plugins/next-swc/plugin.ts -------------------------------------------------------------------------------- /src/polyfills/promise-with-resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/polyfills/promise-with-resolvers.ts -------------------------------------------------------------------------------- /src/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/types.d.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils.ts -------------------------------------------------------------------------------- /src/utils/nextjs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/nextjs.test.ts -------------------------------------------------------------------------------- /src/utils/nextjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/nextjs.ts -------------------------------------------------------------------------------- /src/utils/swc/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/swc/options.ts -------------------------------------------------------------------------------- /src/utils/swc/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/swc/styles.ts -------------------------------------------------------------------------------- /src/utils/swc/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/swc/transform.ts -------------------------------------------------------------------------------- /src/utils/typescript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/utils/typescript.ts -------------------------------------------------------------------------------- /src/vitest.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/src/vitest.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storybookjs/vite-plugin-storybook-nextjs/HEAD/tsup.config.ts --------------------------------------------------------------------------------