Skip to content

Commit

Permalink
use updated vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 18, 2024
1 parent 158e30d commit 1b72459
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 82 deletions.
5 changes: 3 additions & 2 deletions code/frameworks/experimental-nextjs-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"@storybook/react": "workspace:*",
"@storybook/test": "workspace:*",
"styled-jsx": "5.1.6",
"vite-plugin-storybook-nextjs": "^1.0.11"
"vite-plugin-storybook-nextjs": "1.1.0--canary.27.65f1124.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand Down Expand Up @@ -141,7 +141,8 @@
"./src/images/decorator.tsx"
],
"externals": [
"sb-original/image-context"
"sb-original/image-context",
"sb-original/default-loader"
],
"platform": "node"
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Compatibility for Next 14
// @ts-expect-error Compatibility for Next 14
export { draftMode } from 'next/dist/client/components/headers';

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ import {
PathnameContext,
SearchParamsContext,
} from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
import { type Params } from 'next/dist/shared/lib/router/utils/route-matcher';
import { PAGE_SEGMENT_KEY } from 'next/dist/shared/lib/segment';

import type { RouteParams } from './types';

// Using an inline type so we can support Next 14 and lower
// from https://github.com/vercel/next.js/blob/v15.0.3/packages/next/src/server/request/params.ts#L25
type Params = Record<string, string | Array<string> | undefined>;

type AppRouterProviderProps = {
routeParams: RouteParams;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Compatibility for Next 14
// @ts-expect-error Compatibility for Next 14
export { draftMode } from 'next/dist/client/components/headers';
27 changes: 10 additions & 17 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4092,20 +4092,13 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:15.0.3":
"@next/env@npm:15.0.3, @next/env@npm:^15.0.3":
version: 15.0.3
resolution: "@next/env@npm:15.0.3"
checksum: 10c0/63582fed80d6a28fff102c935095da71fd57ddf6b5f5d564e85ebdefdeb93298f7f7cf7d813c75b460c6627106717ea959b4c232939e7abb97d73d8b8467d4cd
languageName: node
linkType: hard

"@next/env@npm:^14.2.5":
version: 14.2.5
resolution: "@next/env@npm:14.2.5"
checksum: 10c0/63d8b88ac450b3c37940a9e2119a63a1074aca89908574ade6157a8aa295275dcb3ac5f69e00883fc55d0f12963b73b74e87ba32a5768a489f9609c6be57b699
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:15.0.3":
version: 15.0.3
resolution: "@next/swc-darwin-arm64@npm:15.0.3"
Expand Down Expand Up @@ -6482,7 +6475,7 @@ __metadata:
sharp: "npm:^0.33.3"
styled-jsx: "npm:5.1.6"
typescript: "npm:^5.3.2"
vite-plugin-storybook-nextjs: "npm:^1.0.11"
vite-plugin-storybook-nextjs: "npm:1.1.0--canary.27.65f1124.0"
peerDependencies:
"@storybook/test": "workspace:*"
next: ^14.1.0 || ^15.0.0
Expand Down Expand Up @@ -28798,25 +28791,25 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-storybook-nextjs@npm:^1.0.11":
version: 1.0.11
resolution: "vite-plugin-storybook-nextjs@npm:1.0.11"
"vite-plugin-storybook-nextjs@npm:1.1.0--canary.27.65f1124.0":
version: 1.1.0--canary.27.65f1124.0
resolution: "vite-plugin-storybook-nextjs@npm:1.1.0--canary.27.65f1124.0"
dependencies:
"@next/env": "npm:^14.2.5"
"@next/env": "npm:^15.0.3"
image-size: "npm:^1.1.1"
magic-string: "npm:^0.30.11"
module-alias: "npm:^2.2.3"
sharp: "npm:^0.33.4"
ts-dedent: "npm:^2.2.0"
peerDependencies:
"@storybook/test": ^8.3.0-alpha.3
next: ^14.1.0
storybook: ^8.3.0-alpha.3
"@storybook/test": ^8.3.0
next: ^14.1.0 || ^15.0.0
storybook: ^8.3.0
vite: ^5.0.0
dependenciesMeta:
sharp:
optional: true
checksum: 10c0/9652b76c13a682b688d9a4f617b1a66263f25f395a99af8e258bedef4f3b3ce1c856ec1ff66cc0359d6aedc96adee9750fd6b0432514dd575ad7896cd1de70df
checksum: 10c0/be22526b7471522a7a12f3302cf802708899a977d105317c7339f86aa4e6c25cbe3df37f983bef2c5875fda987daa7388171b78d0184ac7e000fbd180e1629bc
languageName: node
linkType: hard

Expand Down

0 comments on commit 1b72459

Please sign in to comment.