@storybook/nextjs 10.1.0-alpha.10 → 10.1.0-alpha.11

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.
Files changed (50) hide show
  1. package/dist/_browser-chunks/{chunk-KX5HHFXV.js → chunk-2SBZPHE7.js} +50 -100
  2. package/dist/_browser-chunks/chunk-RDMFII4N.js +22 -0
  3. package/dist/_browser-chunks/{chunk-L5NVL7MD.js → chunk-SL3VIQZ3.js} +7 -13
  4. package/dist/_browser-chunks/react-18-PYSEDAWB.js +43 -0
  5. package/dist/_node-chunks/chunk-KG2CEDQ6.js +76 -0
  6. package/dist/_node-chunks/chunk-NVSKNSJK.js +205 -0
  7. package/dist/_node-chunks/chunk-XVBKFOBF.js +57 -0
  8. package/dist/_node-chunks/configureNextFont-QR356EAI.js +28 -0
  9. package/dist/_node-chunks/{loader-WPDBQYKQ.js → loader-GUPXITUF.js} +11 -16
  10. package/dist/_node-chunks/{loader-UJGK53PP.js → loader-VIIL5HSY.js} +15 -25
  11. package/dist/_node-chunks/{utils-G77XBOCW.js → utils-GFLYVHHC.js} +8 -9
  12. package/dist/_node-chunks/webpack-A6CKSXQU.js +24 -0
  13. package/dist/_node-chunks/webpack-HDYOTQDH.js +23 -0
  14. package/dist/_node-chunks/{webpack-AIYB3HRJ.js → webpack-K7FNPCWL.js} +13 -19
  15. package/dist/_node-chunks/webpack-KEI74OHK.js +30 -0
  16. package/dist/_node-chunks/{webpack-QCUACIS6.js → webpack-O4VJM34G.js} +9 -12
  17. package/dist/_node-chunks/webpack-S3SWBOVU.js +97 -0
  18. package/dist/_node-chunks/webpack-YFKESEJQ.js +60 -0
  19. package/dist/_node-chunks/webpack-YOXZVRLP.js +23 -0
  20. package/dist/compatibility/draft-mode.compat.js +1 -1
  21. package/dist/export-mocks/cache/index.js +3 -6
  22. package/dist/export-mocks/headers/index.js +6 -29
  23. package/dist/export-mocks/index.js +9 -10
  24. package/dist/export-mocks/navigation/index.js +17 -41
  25. package/dist/export-mocks/router/index.js +20 -54
  26. package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +38 -80
  27. package/dist/image-context.js +1 -1
  28. package/dist/images/next-image.js +5 -11
  29. package/dist/images/next-legacy-image.js +3 -6
  30. package/dist/index.js +2865 -8413
  31. package/dist/next-image-loader-stub.js +9 -16
  32. package/dist/node/index.js +6 -10
  33. package/dist/preset.js +183 -462
  34. package/dist/preview.js +2 -2
  35. package/dist/rsc/server-only.js +1 -1
  36. package/dist/swc/next-swc-loader-patch.js +46 -84
  37. package/package.json +6 -6
  38. package/dist/_browser-chunks/chunk-I5RFHXDS.js +0 -40
  39. package/dist/_browser-chunks/react-18-G7Q4PNHD.js +0 -71
  40. package/dist/_node-chunks/chunk-2ADK3PCH.js +0 -74
  41. package/dist/_node-chunks/chunk-EVMWO5FG.js +0 -102
  42. package/dist/_node-chunks/chunk-RSBRC6AY.js +0 -475
  43. package/dist/_node-chunks/chunk-Z2RESD5M.js +0 -17
  44. package/dist/_node-chunks/configureNextFont-ZETH4V45.js +0 -36
  45. package/dist/_node-chunks/webpack-4ZO2PLAG.js +0 -107
  46. package/dist/_node-chunks/webpack-6QTUYRFB.js +0 -30
  47. package/dist/_node-chunks/webpack-KRJ4EWQZ.js +0 -27
  48. package/dist/_node-chunks/webpack-L5YFG573.js +0 -38
  49. package/dist/_node-chunks/webpack-QPCUFYIY.js +0 -77
  50. package/dist/_node-chunks/webpack-R5RMXZWI.js +0 -26
@@ -1,32 +1,25 @@
1
- import {
2
- __name
3
- } from "./_browser-chunks/chunk-L5NVL7MD.js";
1
+ import "./_browser-chunks/chunk-SL3VIQZ3.js";
4
2
 
5
3
  // src/next-image-loader-stub.ts
6
4
  import { imageSize } from "image-size";
7
5
  import { interpolateName } from "loader-utils";
8
- var nextImageLoaderStub = /* @__PURE__ */ __name(async function NextImageLoader(content) {
9
- const { filename, nextConfig } = this.getOptions();
10
- const opts = {
6
+ var nextImageLoaderStub = async function(content) {
7
+ let { filename, nextConfig } = this.getOptions(), opts = {
11
8
  context: this.rootContext,
12
9
  content
13
- };
14
- const outputPath = interpolateName(this, filename.replace("[ext]", ".[ext]"), opts);
15
- this.emitFile(outputPath, content);
16
- if (nextConfig.images?.disableStaticImages) {
10
+ }, outputPath = interpolateName(this, filename.replace("[ext]", ".[ext]"), opts);
11
+ if (this.emitFile(outputPath, content), nextConfig.images?.disableStaticImages)
17
12
  return `const src = '${outputPath}'; export default src;`;
18
- }
19
- const { width, height } = imageSize(content);
13
+ let { width, height } = imageSize(content);
20
14
  return `export default ${JSON.stringify({
21
15
  src: outputPath,
22
16
  height,
23
17
  width,
24
18
  blurDataURL: outputPath
25
19
  })};`;
26
- }, "NextImageLoader");
27
- nextImageLoaderStub.raw = true;
28
- var next_image_loader_stub_default = nextImageLoaderStub;
29
- var raw = true;
20
+ };
21
+ nextImageLoaderStub.raw = !0;
22
+ var next_image_loader_stub_default = nextImageLoaderStub, raw = !0;
30
23
  export {
31
24
  next_image_loader_stub_default as default,
32
25
  raw
@@ -1,23 +1,19 @@
1
- import CJS_COMPAT_NODE_URL_1wy8hqz8e24 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1wy8hqz8e24 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1wy8hqz8e24 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_h9mxauk5xyo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_h9mxauk5xyo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_h9mxauk5xyo from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1wy8hqz8e24.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1wy8hqz8e24.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1wy8hqz8e24.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_h9mxauk5xyo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_h9mxauk5xyo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_h9mxauk5xyo.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 {
13
- __name
14
- } from "../_node-chunks/chunk-Z2RESD5M.js";
15
12
 
16
13
  // src/node/index.ts
17
14
  function defineMain(config) {
18
15
  return config;
19
16
  }
20
- __name(defineMain, "defineMain");
21
17
  export {
22
18
  defineMain
23
19
  };