@storybook/nextjs-vite 9.0.0-beta.6 → 9.0.0-beta.7

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-vite",
3
- "version": "9.0.0-beta.6",
3
+ "version": "9.0.0-beta.7",
4
4
  "description": "Storybook for Next.js and Vite",
5
5
  "keywords": [
6
6
  "storybook",
@@ -104,9 +104,9 @@
104
104
  "prep": "jiti ../../../scripts/prepare/bundle.ts"
105
105
  },
106
106
  "dependencies": {
107
- "@storybook/builder-vite": "9.0.0-beta.6",
108
- "@storybook/react": "9.0.0-beta.6",
109
- "@storybook/react-vite": "9.0.0-beta.6",
107
+ "@storybook/builder-vite": "9.0.0-beta.7",
108
+ "@storybook/react": "9.0.0-beta.7",
109
+ "@storybook/react-vite": "9.0.0-beta.7",
110
110
  "styled-jsx": "5.1.6",
111
111
  "vite-plugin-storybook-nextjs": "2.0.0"
112
112
  },
@@ -120,7 +120,7 @@
120
120
  "next": "^14.1.0 || ^15.0.0",
121
121
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
122
122
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
123
- "storybook": "^9.0.0-beta.6",
123
+ "storybook": "^9.0.0-beta.7",
124
124
  "vite": "^5.0.0 || ^6.0.0"
125
125
  },
126
126
  "peerDependenciesMeta": {