@storybook/nextjs-vite 10.0.0-beta.0 → 10.0.0-beta.10
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/_browser-chunks/{chunk-2RWWBM6A.js → chunk-I34DATQB.js} +0 -4
- package/dist/_node-chunks/{chunk-IHKOVONR.js → chunk-LG7YCXAD.js} +6 -6
- package/dist/_node-chunks/{dist-YEP22NZU.js → dist-MMISEYOA.js} +8 -8
- package/dist/_node-chunks/{jiti-4UV67MCQ.js → jiti-BSWDZS5T.js} +12342 -12287
- package/dist/config/preview.js +3 -0
- package/dist/index.js +3853 -3544
- package/dist/node/index.js +7 -7
- package/dist/preset.js +2432 -37
- package/dist/preview.d.ts +19 -3
- package/dist/preview.js +1 -1
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +8 -6
- package/template/cli/js/Button.stories.js +1 -1
- package/template/cli/ts/Button.stories.ts +1 -1
- package/dist/preview.d.tsx +0 -19
package/dist/preview.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Addon_DecoratorFunction, LoaderFunction } from 'storybook/internal/types';
|
|
2
|
+
import { ReactRenderer } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
+
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
+
declare const parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
excludeDecorators: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
react: {
|
|
13
|
+
rootOptions: {
|
|
14
|
+
onCaughtError(error: unknown): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { decorators, loaders, parameters };
|
package/dist/preview.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a32wos4uuxg from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a32wos4uuxg from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a32wos4uuxg from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a32wos4uuxg.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a32wos4uuxg.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a32wos4uuxg.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-LG7YCXAD.js";
|
|
13
13
|
|
|
14
14
|
// src/vite-plugin/index.ts
|
|
15
15
|
import { createRequire } from "node:module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.10",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"types": "./dist/export-mocks/cache/index.d.ts",
|
|
36
36
|
"default": "./dist/export-mocks/cache/index.js"
|
|
37
37
|
},
|
|
38
|
+
"./config/preview": "./dist/config/preview.js",
|
|
38
39
|
"./headers.mock": {
|
|
39
40
|
"types": "./dist/export-mocks/headers/index.d.ts",
|
|
40
41
|
"default": "./dist/export-mocks/headers/index.js"
|
|
@@ -78,23 +79,24 @@
|
|
|
78
79
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
79
80
|
},
|
|
80
81
|
"dependencies": {
|
|
81
|
-
"@storybook/builder-vite": "10.0.0-beta.
|
|
82
|
-
"@storybook/react": "10.0.0-beta.
|
|
83
|
-
"@storybook/react-vite": "10.0.0-beta.
|
|
82
|
+
"@storybook/builder-vite": "10.0.0-beta.10",
|
|
83
|
+
"@storybook/react": "10.0.0-beta.10",
|
|
84
|
+
"@storybook/react-vite": "10.0.0-beta.10",
|
|
84
85
|
"styled-jsx": "5.1.6",
|
|
85
|
-
"vite-plugin-storybook-nextjs": "^2.0.
|
|
86
|
+
"vite-plugin-storybook-nextjs": "^2.0.7"
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
88
89
|
"@types/node": "^22.0.0",
|
|
89
90
|
"next": "^15.2.3",
|
|
90
91
|
"postcss-load-config": "^6.0.1",
|
|
92
|
+
"semver": "^7.3.5",
|
|
91
93
|
"typescript": "^5.8.3"
|
|
92
94
|
},
|
|
93
95
|
"peerDependencies": {
|
|
94
96
|
"next": "^14.1.0 || ^15.0.0",
|
|
95
97
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
96
98
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
97
|
-
"storybook": "^10.0.0-beta.
|
|
99
|
+
"storybook": "^10.0.0-beta.10",
|
|
98
100
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
99
101
|
},
|
|
100
102
|
"peerDependenciesMeta": {
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
argTypes: {
|
|
17
17
|
backgroundColor: { control: 'color' },
|
|
18
18
|
},
|
|
19
|
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#
|
|
19
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
|
|
20
20
|
args: { onClick: fn() },
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -18,7 +18,7 @@ const meta = {
|
|
|
18
18
|
argTypes: {
|
|
19
19
|
backgroundColor: { control: 'color' },
|
|
20
20
|
},
|
|
21
|
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#
|
|
21
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
|
|
22
22
|
args: { onClick: fn() },
|
|
23
23
|
} satisfies Meta<typeof Button>;
|
|
24
24
|
|
package/dist/preview.d.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Addon_DecoratorFunction, LoaderFunction } from 'storybook/internal/types';
|
|
2
|
-
import { ReactRenderer } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
-
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
-
declare const parameters: {
|
|
7
|
-
docs: {
|
|
8
|
-
source: {
|
|
9
|
-
excludeDecorators: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
react: {
|
|
13
|
-
rootOptions: {
|
|
14
|
-
onCaughtError(error: unknown): void;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { decorators, loaders, parameters };
|