@storybook/experimental-nextjs-vite 8.6.0-alpha.2 → 8.6.0-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ declare const headers: {
24
24
 
25
25
  declare class RequestCookiesMock extends RequestCookies {
26
26
  get: Mock<(...args: [name: string] | [next_dist_compiled__edge_runtime_cookies.RequestCookie]) => next_dist_compiled__edge_runtime_cookies.RequestCookie | undefined>;
27
- getAll: Mock<(...args: [] | [next_dist_compiled__edge_runtime_cookies.RequestCookie] | [name: string]) => next_dist_compiled__edge_runtime_cookies.RequestCookie[]>;
27
+ getAll: Mock<(...args: [name: string] | [next_dist_compiled__edge_runtime_cookies.RequestCookie] | []) => next_dist_compiled__edge_runtime_cookies.RequestCookie[]>;
28
28
  has: Mock<(name: string) => boolean>;
29
29
  set: Mock<(...args: [key: string, value: string] | [options: next_dist_compiled__edge_runtime_cookies.RequestCookie]) => this>;
30
30
  delete: Mock<(names: string | string[]) => boolean | boolean[]>;
@@ -3,8 +3,8 @@ import * as next_dist_client_with_router from 'next/dist/client/with-router';
3
3
  import * as next from 'next';
4
4
  import { M as Mock$1 } from '../../index.d-5a935e77.js';
5
5
  import { Mock } from '@storybook/test';
6
- import * as originalRouter from 'next/dist/client/router';
7
- import originalRouter__default from 'next/dist/client/router';
6
+ import * as singletonRouter from 'next/dist/client/router';
7
+ import singletonRouter__default from 'next/dist/client/router';
8
8
  export * from 'next/dist/client/router';
9
9
  export { default } from 'next/dist/client/router';
10
10
  import { NextRouter } from 'next/router';
@@ -15,7 +15,7 @@ import { NextRouter } from 'next/router';
15
15
  * @ignore
16
16
  * @internal
17
17
  */
18
- declare const createRouter: (overrides: Partial<NextRouter>) => originalRouter.NextRouter;
18
+ declare const createRouter: (overrides: Partial<NextRouter>) => NextRouter;
19
19
  declare const getRouter: () => {
20
20
  push: Mock;
21
21
  replace: Mock;
@@ -41,7 +41,7 @@ declare const getRouter: () => {
41
41
  isPreview: boolean;
42
42
  };
43
43
 
44
- declare const useRouter: Mock$1<typeof originalRouter.useRouter>;
44
+ declare const useRouter: Mock$1<typeof singletonRouter.useRouter>;
45
45
  declare const withRouter: Mock$1<(ComposedComponent: next.NextComponentType<next.NextPageContext, any, next_dist_client_with_router.WithRouterProps>) => React.ComponentType<next_dist_client_with_router.ExcludeRouterProps<next_dist_client_with_router.WithRouterProps>>>;
46
46
 
47
47
  export { createRouter, getRouter, useRouter, withRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/experimental-nextjs-vite",
3
- "version": "8.6.0-alpha.2",
3
+ "version": "8.6.0-alpha.4",
4
4
  "description": "Storybook for Next.js and Vite",
5
5
  "keywords": [
6
6
  "storybook",
@@ -95,24 +95,24 @@
95
95
  "prep": "jiti ../../../scripts/prepare/bundle.ts"
96
96
  },
97
97
  "dependencies": {
98
- "@storybook/builder-vite": "8.6.0-alpha.2",
99
- "@storybook/react": "8.6.0-alpha.2",
100
- "@storybook/react-vite": "8.6.0-alpha.2",
101
- "@storybook/test": "8.6.0-alpha.2",
98
+ "@storybook/builder-vite": "8.6.0-alpha.4",
99
+ "@storybook/react": "8.6.0-alpha.4",
100
+ "@storybook/react-vite": "8.6.0-alpha.4",
101
+ "@storybook/test": "8.6.0-alpha.4",
102
102
  "styled-jsx": "5.1.6",
103
103
  "vite-plugin-storybook-nextjs": "^1.1.0"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@types/node": "^22.0.0",
107
107
  "next": "^15.0.3",
108
- "typescript": "^5.3.2"
108
+ "typescript": "^5.7.3"
109
109
  },
110
110
  "peerDependencies": {
111
- "@storybook/test": "8.6.0-alpha.2",
111
+ "@storybook/test": "8.6.0-alpha.4",
112
112
  "next": "^14.1.0 || ^15.0.0",
113
113
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
114
114
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
115
- "storybook": "^8.6.0-alpha.2",
115
+ "storybook": "^8.6.0-alpha.4",
116
116
  "vite": "^5.0.0 || ^6.0.0"
117
117
  },
118
118
  "peerDependenciesMeta": {