@storybook/nextjs-vite 10.1.0-alpha.4 → 10.1.0-alpha.6
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-VCO3OX2Z.js → chunk-3BEOLLEK.js} +6 -6
- package/dist/_node-chunks/{dist-STL336EK.js → dist-6UCBAAOU.js} +7 -7
- package/dist/_node-chunks/{jiti-RLWIWSOK.js → jiti-TTKQGOJ6.js} +7 -7
- package/dist/index.d.ts +4 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.js +7 -7
- package/dist/preset.js +15 -11
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.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_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3BEOLLEK.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
19
19
|
var require_identity = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name,
|
|
16
16
|
__require,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3BEOLLEK.js";
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/jiti/dist/jiti.cjs
|
|
21
21
|
var require_jiti = __commonJS({
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
|
12
12
|
type FrameworkOptions = {
|
|
13
13
|
/** The path to the Next.js configuration file. */
|
|
14
14
|
nextConfigPath?: string;
|
|
15
|
+
image?: {
|
|
16
|
+
includeFiles?: string[];
|
|
17
|
+
excludeFiles?: string[];
|
|
18
|
+
};
|
|
15
19
|
builder?: BuilderOptions;
|
|
16
20
|
};
|
|
17
21
|
type StorybookConfigFramework = {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
|
7
7
|
type FrameworkOptions = {
|
|
8
8
|
/** The path to the Next.js configuration file. */
|
|
9
9
|
nextConfigPath?: string;
|
|
10
|
+
image?: {
|
|
11
|
+
includeFiles?: string[];
|
|
12
|
+
excludeFiles?: string[];
|
|
13
|
+
};
|
|
10
14
|
builder?: BuilderOptions;
|
|
11
15
|
};
|
|
12
16
|
type StorybookConfigFramework = {
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-3BEOLLEK.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.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
|
__name,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-3BEOLLEK.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/semver/internal/constants.js
|
|
20
20
|
var require_constants = __commonJS({
|
|
@@ -2346,7 +2346,7 @@ var require_req = __commonJS({
|
|
|
2346
2346
|
}
|
|
2347
2347
|
if (jiti === void 0) {
|
|
2348
2348
|
try {
|
|
2349
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
2349
|
+
jiti = (await import("./_node-chunks/jiti-TTKQGOJ6.js")).default;
|
|
2350
2350
|
} catch (error) {
|
|
2351
2351
|
importError.push(error);
|
|
2352
2352
|
}
|
|
@@ -2518,7 +2518,7 @@ var require_src2 = __commonJS({
|
|
|
2518
2518
|
async function yamlLoader(_, content) {
|
|
2519
2519
|
if (!yaml) {
|
|
2520
2520
|
try {
|
|
2521
|
-
yaml = await import("./_node-chunks/dist-
|
|
2521
|
+
yaml = await import("./_node-chunks/dist-6UCBAAOU.js");
|
|
2522
2522
|
} catch (e) {
|
|
2523
2523
|
throw new Error(
|
|
2524
2524
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -3181,8 +3181,12 @@ var viteFinal = /* @__PURE__ */ __name(async (config2, options) => {
|
|
|
3181
3181
|
if (searchPath) {
|
|
3182
3182
|
await normalizePostCssConfig(searchPath);
|
|
3183
3183
|
}
|
|
3184
|
-
const { nextConfigPath } = await options.presets.apply("frameworkOptions");
|
|
3184
|
+
const { nextConfigPath, image = {} } = await options.presets.apply("frameworkOptions");
|
|
3185
3185
|
const nextDir = nextConfigPath ? dirname2(nextConfigPath) : void 0;
|
|
3186
|
+
const vitePluginOptions = {
|
|
3187
|
+
image,
|
|
3188
|
+
dir: nextDir
|
|
3189
|
+
};
|
|
3186
3190
|
return {
|
|
3187
3191
|
...reactConfig,
|
|
3188
3192
|
resolve: {
|
|
@@ -3194,7 +3198,7 @@ var viteFinal = /* @__PURE__ */ __name(async (config2, options) => {
|
|
|
3194
3198
|
"styled-jsx/style.js": fileURLToPath2(import.meta.resolve("styled-jsx/style"))
|
|
3195
3199
|
}
|
|
3196
3200
|
},
|
|
3197
|
-
plugins: [...reactConfig?.plugins ?? [], vitePluginStorybookNextjs(
|
|
3201
|
+
plugins: [...reactConfig?.plugins ?? [], vitePluginStorybookNextjs(vitePluginOptions)]
|
|
3198
3202
|
};
|
|
3199
3203
|
}, "viteFinal");
|
|
3200
3204
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_oqdwafid42e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_oqdwafid42e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_oqdwafid42e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_oqdwafid42e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_oqdwafid42e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_oqdwafid42e.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-3BEOLLEK.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.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.6",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@storybook/builder-vite": "10.1.0-alpha.
|
|
83
|
-
"@storybook/react": "10.1.0-alpha.
|
|
84
|
-
"@storybook/react-vite": "10.1.0-alpha.
|
|
82
|
+
"@storybook/builder-vite": "10.1.0-alpha.6",
|
|
83
|
+
"@storybook/react": "10.1.0-alpha.6",
|
|
84
|
+
"@storybook/react-vite": "10.1.0-alpha.6",
|
|
85
85
|
"styled-jsx": "5.1.6",
|
|
86
|
-
"vite-plugin-storybook-nextjs": "^3.0
|
|
86
|
+
"vite-plugin-storybook-nextjs": "^3.1.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@types/node": "^22.0.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
98
98
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
99
99
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
100
|
-
"storybook": "^10.1.0-alpha.
|
|
100
|
+
"storybook": "^10.1.0-alpha.6",
|
|
101
101
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|