@storybook/nextjs-vite 9.1.0-alpha.2 → 9.1.0-alpha.4
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.
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PreviewAddon, InferTypes, AddonTypes } from 'storybook/internal/csf';
|
|
2
|
+
import { NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Args, StoryAnnotationsOrFn, ProjectAnnotations, ComposedStoryFn, Store_CSFExports, StoriesWithPartialProps } from 'storybook/internal/types';
|
|
3
|
+
import { ReactRenderer, Meta, ReactTypes, ReactPreview } from '@storybook/react';
|
|
2
4
|
export * from '@storybook/react';
|
|
3
5
|
import vitePluginStorybookNextJs from 'vite-plugin-storybook-nextjs';
|
|
4
|
-
import {
|
|
5
|
-
export { F as FrameworkOptions,
|
|
6
|
+
import { N as NextJsTypes } from './types-d044381e.js';
|
|
7
|
+
export { F as FrameworkOptions, a as NextJsParameters, S as StorybookConfig } from './types-d044381e.js';
|
|
6
8
|
import '@storybook/builder-vite';
|
|
7
9
|
import '@storybook/react-vite';
|
|
8
10
|
import 'next/router';
|
|
@@ -88,8 +90,10 @@ declare function composeStories<TModule extends Store_CSFExports<ReactRenderer,
|
|
|
88
90
|
declare module '@storybook/nextjs-vite/vite-plugin' {
|
|
89
91
|
const storybookNextJsPlugin: typeof vitePluginStorybookNextJs;
|
|
90
92
|
}
|
|
91
|
-
declare function definePreview
|
|
92
|
-
|
|
93
|
+
declare function definePreview<Addons extends PreviewAddon<never>[]>(preview: {
|
|
94
|
+
addons?: Addons;
|
|
95
|
+
} & ProjectAnnotations<ReactTypes & NextJsTypes & InferTypes<Addons>>): NextPreview<InferTypes<Addons>>;
|
|
96
|
+
interface NextPreview<T extends AddonTypes> extends ReactPreview<NextJsTypes & T> {
|
|
93
97
|
}
|
|
94
98
|
|
|
95
|
-
export { composeStories, composeStory, definePreview, setProjectAnnotations };
|
|
99
|
+
export { NextJsTypes, composeStories, composeStory, definePreview, setProjectAnnotations };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -40,10 +40,13 @@ interface NextJsParameters {
|
|
|
40
40
|
* Next.js navigation configuration when using `next/navigation`. Please note that it can only
|
|
41
41
|
* be used in components/pages in the app directory.
|
|
42
42
|
*/
|
|
43
|
-
navigation?: NextRouter
|
|
43
|
+
navigation?: Partial<NextRouter>;
|
|
44
44
|
/** Next.js router configuration */
|
|
45
|
-
router?: NextRouter
|
|
45
|
+
router?: Partial<NextRouter>;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
interface NextJsTypes {
|
|
49
|
+
parameters: NextJsParameters;
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
export { FrameworkOptions as F,
|
|
52
|
+
export { FrameworkOptions as F, NextJsTypes as N, StorybookConfig as S, NextJsParameters as a };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "9.1.0-alpha.
|
|
3
|
+
"version": "9.1.0-alpha.4",
|
|
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.1.0-alpha.
|
|
108
|
-
"@storybook/react": "9.1.0-alpha.
|
|
109
|
-
"@storybook/react-vite": "9.1.0-alpha.
|
|
107
|
+
"@storybook/builder-vite": "9.1.0-alpha.4",
|
|
108
|
+
"@storybook/react": "9.1.0-alpha.4",
|
|
109
|
+
"@storybook/react-vite": "9.1.0-alpha.4",
|
|
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.1.0-alpha.
|
|
123
|
+
"storybook": "^9.1.0-alpha.4",
|
|
124
124
|
"vite": "^5.0.0 || ^6.0.0"
|
|
125
125
|
},
|
|
126
126
|
"peerDependenciesMeta": {
|