@storybook/nextjs-vite 10.0.0-beta.1 → 10.0.0-beta.11

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/preview.d.ts CHANGED
@@ -1,3 +1,19 @@
1
- // auto generated file from file:///home/runner/work/storybook/storybook/scripts/build/utils/generate-type-mappers.ts, do not edit
2
- export * from '../src/preview.tsx';
3
- export type * from '../src/preview.tsx';
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
@@ -2,7 +2,7 @@ import {
2
2
  decorators,
3
3
  loaders,
4
4
  parameters
5
- } from "./_browser-chunks/chunk-2RWWBM6A.js";
5
+ } from "./_browser-chunks/chunk-I34DATQB.js";
6
6
  import "./_browser-chunks/chunk-L5NVL7MD.js";
7
7
  export {
8
8
  decorators,
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_vdcj7jnvotc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vdcj7jnvotc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vdcj7jnvotc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_q2ak3cgnwtp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_q2ak3cgnwtp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vdcj7jnvotc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vdcj7jnvotc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vdcj7jnvotc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_q2ak3cgnwtp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_q2ak3cgnwtp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp.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-IRJBSU6R.js";
12
+ import "../_node-chunks/chunk-PV5XU2CA.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.1",
3
+ "version": "10.0.0-beta.11",
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,25 @@
78
79
  "prep": "jiti ../../../scripts/build/build-package.ts"
79
80
  },
80
81
  "dependencies": {
81
- "@storybook/builder-vite": "10.0.0-beta.1",
82
- "@storybook/react": "10.0.0-beta.1",
83
- "@storybook/react-vite": "10.0.0-beta.1",
82
+ "@storybook/builder-vite": "10.0.0-beta.11",
83
+ "@storybook/react": "10.0.0-beta.11",
84
+ "@storybook/react-vite": "10.0.0-beta.11",
84
85
  "styled-jsx": "5.1.6",
85
- "vite-plugin-storybook-nextjs": "^2.0.5"
86
+ "vite-plugin-storybook-nextjs": "^2.0.7"
86
87
  },
87
88
  "devDependencies": {
88
89
  "@types/node": "^22.0.0",
90
+ "lilconfig": "^3.0.0",
89
91
  "next": "^15.2.3",
90
92
  "postcss-load-config": "^6.0.1",
93
+ "semver": "^7.3.5",
91
94
  "typescript": "^5.8.3"
92
95
  },
93
96
  "peerDependencies": {
94
97
  "next": "^14.1.0 || ^15.0.0",
95
98
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
96
99
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
97
- "storybook": "^10.0.0-beta.1",
100
+ "storybook": "^10.0.0-beta.11",
98
101
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
99
102
  },
100
103
  "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#action-args
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#action-args
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
 
@@ -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 };