@storybook/nextjs-vite 10.2.0-alpha.11 → 10.2.0-alpha.13
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/_node-chunks/{chunk-D5BCPVZM.js → chunk-MAD6ERSF.js} +6 -6
- package/dist/_node-chunks/{dist-MNO5ABZU.js → dist-TB5XOXKL.js} +7 -7
- package/dist/_node-chunks/{jiti-S4Y7B5VC.js → jiti-J6Q5DLSI.js} +7 -7
- package/dist/index.js +2 -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 +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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_i7rmmzjpbq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MAD6ERSF.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_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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-MAD6ERSF.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
20
|
var require_jiti = __commonJS({
|
package/dist/index.js
CHANGED
|
@@ -6199,6 +6199,7 @@ __export(entry_preview_exports, {
|
|
|
6199
6199
|
renderToCanvas: () => renderToCanvas
|
|
6200
6200
|
});
|
|
6201
6201
|
import * as React5 from "react";
|
|
6202
|
+
import { Tag } from "storybook/internal/preview-api";
|
|
6202
6203
|
|
|
6203
6204
|
// ../../../node_modules/@storybook/global/dist/index.mjs
|
|
6204
6205
|
var scope = (() => {
|
|
@@ -6349,7 +6350,7 @@ var decorators = [
|
|
|
6349
6350
|
return React5.createElement(React5.Suspense, null, story());
|
|
6350
6351
|
},
|
|
6351
6352
|
(story, context) => {
|
|
6352
|
-
if (context.tags?.includes(
|
|
6353
|
+
if (context.tags?.includes(Tag.TEST_FN) && !scope.FEATURES?.experimentalTestSyntax)
|
|
6353
6354
|
throw new Error(
|
|
6354
6355
|
"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
6356
|
);
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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-MAD6ERSF.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_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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-MAD6ERSF.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-J6Q5DLSI.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-TB5XOXKL.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_zjjlw7g3en from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_zjjlw7g3en from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_zjjlw7g3en from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_zjjlw7g3en.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_zjjlw7g3en.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_zjjlw7g3en.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-MAD6ERSF.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.13",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -75,9 +75,9 @@
|
|
|
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.13",
|
|
79
|
+
"@storybook/react": "10.2.0-alpha.13",
|
|
80
|
+
"@storybook/react-vite": "10.2.0-alpha.13",
|
|
81
81
|
"styled-jsx": "5.1.6",
|
|
82
82
|
"vite-plugin-storybook-nextjs": "^3.1.7"
|
|
83
83
|
},
|
|
@@ -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.13",
|
|
97
97
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependenciesMeta": {
|