@storybook/nextjs 9.0.0-beta.6 → 9.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- import { M as Mock$1 } from '../../index.d-98b9eb06.js';
2
1
  import * as actual from 'next/dist/client/components/navigation';
3
2
  export * from 'next/dist/client/components/navigation';
4
3
  import { Mock } from 'storybook/test';
@@ -26,18 +25,18 @@ declare const getRouter: () => {
26
25
  refresh: Mock;
27
26
  };
28
27
 
29
- declare const redirect: Mock$1<(url: string, type?: actual.RedirectType) => never>;
30
- declare const permanentRedirect: Mock$1<(url: string, type?: actual.RedirectType) => never>;
31
- declare const useSearchParams: Mock$1<typeof actual.useSearchParams>;
32
- declare const usePathname: Mock$1<typeof actual.usePathname>;
33
- declare const useSelectedLayoutSegment: Mock$1<typeof actual.useSelectedLayoutSegment>;
34
- declare const useSelectedLayoutSegments: Mock$1<typeof actual.useSelectedLayoutSegments>;
35
- declare const useRouter: Mock$1<typeof actual.useRouter>;
36
- declare const useServerInsertedHTML: Mock$1<typeof actual.useServerInsertedHTML>;
37
- declare const notFound: Mock$1<typeof actual.notFound>;
28
+ declare const redirect: Mock<(url: string, type?: actual.RedirectType) => never>;
29
+ declare const permanentRedirect: Mock<(url: string, type?: actual.RedirectType) => never>;
30
+ declare const useSearchParams: Mock<typeof actual.useSearchParams>;
31
+ declare const usePathname: Mock<typeof actual.usePathname>;
32
+ declare const useSelectedLayoutSegment: Mock<typeof actual.useSelectedLayoutSegment>;
33
+ declare const useSelectedLayoutSegments: Mock<typeof actual.useSelectedLayoutSegments>;
34
+ declare const useRouter: Mock<typeof actual.useRouter>;
35
+ declare const useServerInsertedHTML: Mock<typeof actual.useServerInsertedHTML>;
36
+ declare const notFound: Mock<typeof actual.notFound>;
38
37
  interface Params {
39
38
  [key: string]: string | string[];
40
39
  }
41
- declare const useParams: Mock$1<() => Params>;
40
+ declare const useParams: Mock<() => Params>;
42
41
 
43
42
  export { createNavigation, getRouter, notFound, permanentRedirect, redirect, useParams, usePathname, useRouter, useSearchParams, useSelectedLayoutSegment, useSelectedLayoutSegments, useServerInsertedHTML };
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as next_dist_client_with_router from 'next/dist/client/with-router';
3
3
  import * as next from 'next';
4
- import { M as Mock$1 } from '../../index.d-98b9eb06.js';
5
4
  import * as singletonRouter from 'next/dist/client/router';
6
5
  import singletonRouter__default from 'next/dist/client/router';
7
6
  export * from 'next/dist/client/router';
@@ -41,7 +40,7 @@ declare const getRouter: () => {
41
40
  isPreview: boolean;
42
41
  };
43
42
 
44
- declare const useRouter: Mock$1<typeof singletonRouter.useRouter>;
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>>>;
43
+ declare const useRouter: Mock<typeof singletonRouter.useRouter>;
44
+ declare const withRouter: Mock<(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
45
 
47
46
  export { createRouter, getRouter, useRouter, withRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "9.0.0-beta.6",
3
+ "version": "9.0.0-beta.8",
4
4
  "description": "Storybook for Next.js",
5
5
  "keywords": [
6
6
  "storybook",
@@ -143,9 +143,9 @@
143
143
  "@babel/preset-typescript": "^7.24.1",
144
144
  "@babel/runtime": "^7.24.4",
145
145
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
146
- "@storybook/builder-webpack5": "9.0.0-beta.6",
147
- "@storybook/preset-react-webpack": "9.0.0-beta.6",
148
- "@storybook/react": "9.0.0-beta.6",
146
+ "@storybook/builder-webpack5": "9.0.0-beta.8",
147
+ "@storybook/preset-react-webpack": "9.0.0-beta.8",
148
+ "@storybook/react": "9.0.0-beta.8",
149
149
  "@types/semver": "^7.3.4",
150
150
  "babel-loader": "^9.1.3",
151
151
  "css-loader": "^6.7.3",
@@ -179,7 +179,7 @@
179
179
  "next": "^14.1.0 || ^15.0.0",
180
180
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
181
181
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
182
- "storybook": "^9.0.0-beta.6",
182
+ "storybook": "^9.0.0-beta.8",
183
183
  "webpack": "^5.0.0"
184
184
  },
185
185
  "peerDependenciesMeta": {