@storybook/nextjs-vite 10.2.0-alpha.6 → 10.2.0-alpha.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.
- package/README.md +1 -1
- package/dist/_node-chunks/{chunk-K5Y66Q37.js → chunk-OCV2PLU5.js} +6 -6
- package/dist/_node-chunks/{dist-V2X7IMWK.js → dist-CT5XDSD3.js} +7 -7
- package/dist/_node-chunks/{jiti-FLR3LZJV.js → jiti-PKDBS57D.js} +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.js +7 -7
- package/dist/preset.js +9 -9
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Storybook for Next.js with Vite Builder
|
|
2
2
|
|
|
3
|
-
See [documentation](https://storybook.js.org/docs/get-started/frameworks/nextjs?renderer=react&ref=readme) for installation instructions, usage examples, APIs, and more.
|
|
3
|
+
See [documentation](https://storybook.js.org/docs/get-started/frameworks/nextjs-vite?renderer=react&ref=readme) for installation instructions, usage examples, APIs, and more.
|
|
4
4
|
|
|
5
5
|
## Acknowledgements
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_z23uhx74tk.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OCV2PLU5.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/yaml/dist/nodes/identity.js
|
|
18
18
|
var require_identity = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__esm,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OCV2PLU5.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
20
|
var require_jiti = __commonJS({
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6351,7 +6351,7 @@ var decorators = [
|
|
|
6351
6351
|
(story, context) => {
|
|
6352
6352
|
if (context.tags?.includes("test-fn") && !scope.FEATURES?.experimentalTestSyntax)
|
|
6353
6353
|
throw new Error(
|
|
6354
|
-
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/
|
|
6354
|
+
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax"
|
|
6355
6355
|
);
|
|
6356
6356
|
return story();
|
|
6357
6357
|
}
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.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-OCV2PLU5.js";
|
|
13
13
|
|
|
14
14
|
// src/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-OCV2PLU5.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/semver/internal/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -1479,7 +1479,7 @@ var require_req = __commonJS({
|
|
|
1479
1479
|
}
|
|
1480
1480
|
if (jiti === void 0)
|
|
1481
1481
|
try {
|
|
1482
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
1482
|
+
jiti = (await import("./_node-chunks/jiti-PKDBS57D.js")).default;
|
|
1483
1483
|
} catch (error) {
|
|
1484
1484
|
importError.push(error);
|
|
1485
1485
|
}
|
|
@@ -1596,7 +1596,7 @@ var require_src2 = __commonJS({
|
|
|
1596
1596
|
async function yamlLoader(_, content) {
|
|
1597
1597
|
if (!yaml)
|
|
1598
1598
|
try {
|
|
1599
|
-
yaml = await import("./_node-chunks/dist-
|
|
1599
|
+
yaml = await import("./_node-chunks/dist-CT5XDSD3.js");
|
|
1600
1600
|
} catch (e) {
|
|
1601
1601
|
throw new Error(
|
|
1602
1602
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4m7hfiv4b18 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4m7hfiv4b18 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4m7hfiv4b18 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4m7hfiv4b18.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4m7hfiv4b18.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4m7hfiv4b18.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-OCV2PLU5.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.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.8",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"!src/**/*"
|
|
76
76
|
],
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@storybook/builder-vite": "10.2.0-alpha.
|
|
79
|
-
"@storybook/react": "10.2.0-alpha.
|
|
80
|
-
"@storybook/react-vite": "10.2.0-alpha.
|
|
78
|
+
"@storybook/builder-vite": "10.2.0-alpha.8",
|
|
79
|
+
"@storybook/react": "10.2.0-alpha.8",
|
|
80
|
+
"@storybook/react-vite": "10.2.0-alpha.8",
|
|
81
81
|
"styled-jsx": "5.1.6",
|
|
82
|
-
"vite-plugin-storybook-nextjs": "^3.1.
|
|
82
|
+
"vite-plugin-storybook-nextjs": "^3.1.7"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/node": "^22.0.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
94
94
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
95
95
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
96
|
-
"storybook": "^10.2.0-alpha.
|
|
96
|
+
"storybook": "^10.2.0-alpha.8",
|
|
97
97
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependenciesMeta": {
|