@storybook/nextjs-vite 10.2.0-beta.2 → 10.2.0-beta.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/_node-chunks/{chunk-KYIQRU2N.js → chunk-BIUZ7JH6.js} +6 -6
- package/dist/_node-chunks/{dist-IDVKLRXB.js → dist-FTBOWAZK.js} +7 -7
- package/dist/_node-chunks/{jiti-T2CSUJNU.js → jiti-2KXOOZUJ.js} +7 -7
- package/dist/node/index.js +7 -7
- package/dist/preset.js +11 -10
- 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_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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_mcul4bh441.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BIUZ7JH6.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_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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-BIUZ7JH6.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
20
|
var require_jiti = __commonJS({
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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-BIUZ7JH6.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_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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-BIUZ7JH6.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-2KXOOZUJ.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-FTBOWAZK.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
|
|
@@ -1960,7 +1960,8 @@ var require3 = createRequire2(import.meta.url), vitePluginStorybookNextjs = requ
|
|
|
1960
1960
|
"@storybook/nextjs-vite/navigation.mock",
|
|
1961
1961
|
"@storybook/nextjs-vite/router.mock",
|
|
1962
1962
|
"@storybook/nextjs-vite > styled-jsx",
|
|
1963
|
-
"@storybook/nextjs-vite > styled-jsx/style"
|
|
1963
|
+
"@storybook/nextjs-vite > styled-jsx/style",
|
|
1964
|
+
"@opentelemetry/api"
|
|
1964
1965
|
], viteFinal = async (config2, options) => {
|
|
1965
1966
|
let reactConfig = await reactViteFinal(config2, options), inlineOptions = config2.css?.postcss, searchPath = typeof inlineOptions == "string" ? inlineOptions : config2.root;
|
|
1966
1967
|
searchPath && await normalizePostCssConfig(searchPath);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8fs8o80lrej from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8fs8o80lrej from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8fs8o80lrej from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8fs8o80lrej.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8fs8o80lrej.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8fs8o80lrej.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-BIUZ7JH6.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-beta.
|
|
3
|
+
"version": "10.2.0-beta.4",
|
|
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-beta.
|
|
79
|
-
"@storybook/react": "10.2.0-beta.
|
|
80
|
-
"@storybook/react-vite": "10.2.0-beta.
|
|
78
|
+
"@storybook/builder-vite": "10.2.0-beta.4",
|
|
79
|
+
"@storybook/react": "10.2.0-beta.4",
|
|
80
|
+
"@storybook/react-vite": "10.2.0-beta.4",
|
|
81
81
|
"styled-jsx": "5.1.6",
|
|
82
82
|
"vite-plugin-storybook-nextjs": "^3.1.9"
|
|
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-beta.
|
|
96
|
+
"storybook": "^10.2.0-beta.4",
|
|
97
97
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependenciesMeta": {
|