@storybook/nextjs 10.6.0-alpha.0 → 10.6.0-alpha.1
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-TQHLWCMC.js → chunk-3DSP33XS.js} +7 -7
- package/dist/_node-chunks/{chunk-3UJ5EMHA.js → chunk-6IXQZKEW.js} +6 -6
- package/dist/_node-chunks/{chunk-GFTGY7TM.js → chunk-R5XDZ3OD.js} +7 -7
- package/dist/_node-chunks/{configureNextFont-VOJZRRGT.js → configureNextFont-IQ7LDFD2.js} +6 -6
- package/dist/_node-chunks/{loader-S3TJ5ZR4.js → loader-EV2C2JXT.js} +8 -8
- package/dist/_node-chunks/{loader-JMRBGYYB.js → loader-HOQIBM4M.js} +8 -8
- package/dist/_node-chunks/{utils-N2OHZNTB.js → utils-V5ZO4OYP.js} +8 -8
- package/dist/_node-chunks/{webpack-2QGNRYZF.js → webpack-3BXPLN5K.js} +9 -9
- package/dist/_node-chunks/{webpack-QXDTKABP.js → webpack-BB6I7HFQ.js} +6 -6
- package/dist/_node-chunks/webpack-MWJV4C6H.js +23 -0
- package/dist/_node-chunks/{webpack-NNKSGDSE.js → webpack-MXPGKH4U.js} +6 -6
- package/dist/_node-chunks/{webpack-QZMHR2F6.js → webpack-OAMBWSBQ.js} +8 -8
- package/dist/_node-chunks/{webpack-7MZRSUXW.js → webpack-RYQPYYM2.js} +6 -6
- package/dist/_node-chunks/{webpack-6INILYT6.js → webpack-YD55Y2J7.js} +6 -6
- package/dist/_node-chunks/{webpack-FJEOC5HO.js → webpack-YHKJOVXC.js} +7 -7
- package/dist/chunk-BT78ae2q.d.ts +54 -0
- package/dist/chunk-Crpg_HiB.d.ts +310 -0
- package/dist/export-mocks/cache/index.d.ts +10 -319
- package/dist/export-mocks/headers/index.d.ts +31 -337
- package/dist/export-mocks/index.js +9 -9
- package/dist/export-mocks/link/index.d.ts +6 -314
- package/dist/export-mocks/navigation/index.d.ts +19 -33
- package/dist/export-mocks/router/index.d.ts +28 -37
- package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +6 -6
- package/dist/index.d.ts +12 -62
- package/dist/index.js +7 -7
- package/dist/node/index.d.ts +4 -27
- package/dist/node/index.js +6 -6
- package/dist/preset.js +9 -9
- package/dist/preview.d.ts +12 -11
- package/dist/swc/next-swc-loader-patch.js +6 -6
- package/package.json +6 -6
- package/dist/_node-chunks/webpack-PKWTA7OE.js +0 -23
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_be528syk9c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_be528syk9c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_be528syk9c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_be528syk9c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_be528syk9c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_be528syk9c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
addScopedAlias,
|
|
14
14
|
isNextVersionGte,
|
|
15
15
|
resolveNextConfig
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
17
|
-
import "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-3DSP33XS.js";
|
|
17
|
+
import "./_node-chunks/chunk-6IXQZKEW.js";
|
|
18
18
|
|
|
19
19
|
// src/preset.ts
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
@@ -535,7 +535,7 @@ var addons = [
|
|
|
535
535
|
let { nextConfigPath } = await options.presets.apply("frameworkOptions"), nextConfig = await configureConfig({
|
|
536
536
|
baseConfig,
|
|
537
537
|
nextConfigPath
|
|
538
|
-
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-
|
|
538
|
+
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-IQ7LDFD2.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-V5ZO4OYP.js"), { configureImports } = await import("./_node-chunks/webpack-BB6I7HFQ.js"), { configureCss } = await import("./_node-chunks/webpack-YHKJOVXC.js"), { configureImages } = await import("./_node-chunks/webpack-OAMBWSBQ.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-MWJV4C6H.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-YD55Y2J7.js"), { configureAliases } = await import("./_node-chunks/webpack-3BXPLN5K.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-RYQPYYM2.js"), { configureRSC } = await import("./_node-chunks/webpack-MXPGKH4U.js"), { configureSWCLoader } = await import("./_node-chunks/loader-EV2C2JXT.js"), { configureBabelLoader } = await import("./_node-chunks/loader-HOQIBM4M.js"), babelRCPath = join(getProjectRoot(), ".babelrc"), babelConfigPath = join(getProjectRoot(), "babel.config.js"), hasBabelConfig = existsSync(babelRCPath) || existsSync(babelConfigPath), nextjsVersion = getNextjsVersion(), isDevelopment = options.configType !== "PRODUCTION", useSWC = semver.gte(nextjsVersion, "14.0.0") && (nextConfig.experimental?.forceSwcTransforms || !hasBabelConfig);
|
|
539
539
|
return configureNextFont(baseConfig, useSWC), configureRuntimeNextjsVersionResolution(baseConfig), configureImports({ baseConfig, configDir: options.configDir }), configureCss(baseConfig, nextConfig), configureImages(baseConfig, nextConfig), configureStyledJsx(baseConfig), configureNodePolyfills(baseConfig), configureAliases(baseConfig), isDevelopment && configureFastRefresh(baseConfig), options.features?.experimentalRSC && configureRSC(baseConfig), useSWC ? (logger.info("Using SWC as compiler"), await configureSWCLoader(baseConfig, options, nextConfig)) : (logger.info("Using Babel as compiler"), await configureBabelLoader(baseConfig, options, nextConfig)), baseConfig;
|
|
540
540
|
};
|
|
541
541
|
export {
|
package/dist/preview.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { Addon_DecoratorFunction, Addon_LoaderFunction } from
|
|
1
|
+
import { Addon_DecoratorFunction, Addon_LoaderFunction } from "storybook/internal/types";
|
|
2
2
|
|
|
3
|
+
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/preview.d.ts
|
|
3
4
|
declare const decorators: Addon_DecoratorFunction<any>[];
|
|
4
5
|
declare const loaders: Addon_LoaderFunction;
|
|
5
6
|
declare const parameters: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
excludeDecorators: boolean;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
};
|
|
12
|
+
react: {
|
|
13
|
+
rootOptions: {
|
|
14
|
+
onCaughtError(error: unknown): void;
|
|
15
15
|
};
|
|
16
|
+
};
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
export { decorators, loaders, parameters };
|
|
18
|
+
//#endregion
|
|
19
|
+
export { decorators, loaders, parameters };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_be528syk9c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_be528syk9c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_be528syk9c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_be528syk9c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_be528syk9c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_be528syk9c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.1",
|
|
4
4
|
"description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
"@babel/preset-typescript": "^7.28.5",
|
|
103
103
|
"@babel/runtime": "^7.28.4",
|
|
104
104
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
105
|
-
"@storybook/builder-webpack5": "10.6.0-alpha.
|
|
106
|
-
"@storybook/preset-react-webpack": "10.6.0-alpha.
|
|
107
|
-
"@storybook/react": "10.6.0-alpha.
|
|
105
|
+
"@storybook/builder-webpack5": "10.6.0-alpha.1",
|
|
106
|
+
"@storybook/preset-react-webpack": "10.6.0-alpha.1",
|
|
107
|
+
"@storybook/react": "10.6.0-alpha.1",
|
|
108
108
|
"@types/semver": "^7.7.1",
|
|
109
109
|
"babel-loader": "^9.1.3",
|
|
110
110
|
"css-loader": "^6.7.3",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"@types/node": "^22.19.1",
|
|
132
132
|
"@types/react-refresh": "^0",
|
|
133
133
|
"next": "^15.2.3",
|
|
134
|
-
"typescript": "^
|
|
134
|
+
"typescript": "^6.0.3",
|
|
135
135
|
"webpack": "^5.65.0"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
141
141
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
142
142
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
143
|
-
"storybook": "^10.6.0-alpha.
|
|
143
|
+
"storybook": "^10.6.0-alpha.1",
|
|
144
144
|
"webpack": "^5.0.0"
|
|
145
145
|
},
|
|
146
146
|
"peerDependenciesMeta": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ebtix0i4ewa from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ebtix0i4ewa from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ebtix0i4ewa from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ebtix0i4ewa.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ebtix0i4ewa.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ebtix0i4ewa.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
addScopedAlias
|
|
14
|
-
} from "./chunk-TQHLWCMC.js";
|
|
15
|
-
import "./chunk-3UJ5EMHA.js";
|
|
16
|
-
|
|
17
|
-
// src/styledJsx/webpack.ts
|
|
18
|
-
var configureStyledJsx = (baseConfig) => {
|
|
19
|
-
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
configureStyledJsx
|
|
23
|
-
};
|