@storybook/addon-docs 10.3.0-alpha.9 → 10.3.0-beta.0

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/manager.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Source
3
- } from "./_browser-chunks/chunk-AAVP3AE4.js";
3
+ } from "./_browser-chunks/chunk-SPXYZZB5.js";
4
4
  import "./_browser-chunks/chunk-SL3VIQZ3.js";
5
5
 
6
6
  // src/manager.tsx
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_7yujm20diw2 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7yujm20diw2 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7yujm20diw2 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_xqm6y3y6qu from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_xqm6y3y6qu from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_xqm6y3y6qu from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7yujm20diw2.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7yujm20diw2.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7yujm20diw2.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_xqm6y3y6qu.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_xqm6y3y6qu.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_xqm6y3y6qu.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
  compile
14
- } from "./_node-chunks/chunk-MYDVOALB.js";
15
- import "./_node-chunks/chunk-FGVZYJUX.js";
16
- import "./_node-chunks/chunk-KCVAI2VV.js";
17
- import "./_node-chunks/chunk-LVCH3OAT.js";
14
+ } from "./_node-chunks/chunk-6BFCIGCM.js";
15
+ import "./_node-chunks/chunk-GRO2TTCV.js";
16
+ import "./_node-chunks/chunk-DATC37WR.js";
17
+ import "./_node-chunks/chunk-XT6FJF4D.js";
18
18
 
19
19
  // src/mdx-loader.ts
20
20
  var DEFAULT_RENDERER = `
package/dist/preset.js CHANGED
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_7yujm20diw2 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7yujm20diw2 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7yujm20diw2 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_xqm6y3y6qu from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_xqm6y3y6qu from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_xqm6y3y6qu from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7yujm20diw2.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7yujm20diw2.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7yujm20diw2.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_xqm6y3y6qu.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_xqm6y3y6qu.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_xqm6y3y6qu.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-LVCH3OAT.js";
12
+ import "./_node-chunks/chunk-XT6FJF4D.js";
13
13
 
14
14
  // src/preset.ts
15
15
  import { isAbsolute as isAbsolute2 } from "node:path";
@@ -17,6 +17,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
17
17
  import { logger as logger2 } from "storybook/internal/node-logger";
18
18
 
19
19
  // ../../core/src/shared/utils/module.ts
20
+ import { createRequire, register } from "node:module";
20
21
  import { fileURLToPath, pathToFileURL } from "node:url";
21
22
 
22
23
  // ../../../node_modules/exsolve/dist/index.mjs
@@ -208,7 +209,12 @@ var importMetaResolve = (...args) => typeof import.meta.resolve != "function" &&
208
209
  try {
209
210
  return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"), parent)));
210
211
  } catch {
211
- return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"))));
212
+ try {
213
+ return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"))));
214
+ } catch {
215
+ let req = createRequire(parent ?? import.meta.url);
216
+ return dirname(req.resolve(join(pkg, "package.json")));
217
+ }
212
218
  }
213
219
  };
214
220
 
@@ -306,7 +312,7 @@ var getResolvedReact = async (options) => {
306
312
  };
307
313
  };
308
314
  async function webpack(webpackConfig = {}, options) {
309
- let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-2PCCIDEK.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-BOMNX6HL.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
315
+ let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-TNCA5B3W.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-XHBPKWIC.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
310
316
  ...mdxPluginOptions,
311
317
  mdxCompileOptions: {
312
318
  providerImportSource: import.meta.resolve("@storybook/addon-docs/mdx-react-shim"),
@@ -382,7 +388,7 @@ var docs = (input = {}, options) => {
382
388
  }, addons = [
383
389
  import.meta.resolve("@storybook/react-dom-shim/preset")
384
390
  ], viteFinal = async (config, options) => {
385
- let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-R52MLWWS.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
391
+ let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-DC76DDEP.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
386
392
  name: "storybook:package-deduplication",
387
393
  enforce: "pre",
388
394
  config: () => ({
@@ -408,7 +414,10 @@ var docs = (input = {}, options) => {
408
414
  }), optimizeViteDeps = [
409
415
  "@storybook/addon-docs",
410
416
  "@storybook/addon-docs/blocks",
411
- "@storybook/addon-docs > @mdx-js/react"
417
+ "@storybook/addon-docs > @mdx-js/react",
418
+ "@storybook/addon-docs > @storybook/react-dom-shim",
419
+ "react-dom/client",
420
+ "react/jsx-runtime"
412
421
  ];
413
422
  export {
414
423
  addons,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-docs",
3
- "version": "10.3.0-alpha.9",
3
+ "version": "10.3.0-beta.0",
4
4
  "description": "Storybook Docs: Document UI components automatically with stories and MDX",
5
5
  "keywords": [
6
6
  "docs",
@@ -87,9 +87,9 @@
87
87
  ],
88
88
  "dependencies": {
89
89
  "@mdx-js/react": "^3.0.0",
90
- "@storybook/csf-plugin": "10.3.0-alpha.9",
90
+ "@storybook/csf-plugin": "10.3.0-beta.0",
91
91
  "@storybook/icons": "^2.0.1",
92
- "@storybook/react-dom-shim": "10.3.0-alpha.9",
92
+ "@storybook/react-dom-shim": "10.3.0-beta.0",
93
93
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
94
94
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
95
95
  "ts-dedent": "^2.0.0"
@@ -116,7 +116,7 @@
116
116
  "vite": "^7.0.4"
117
117
  },
118
118
  "peerDependencies": {
119
- "storybook": "^10.3.0-alpha.9"
119
+ "storybook": "^10.3.0-beta.0"
120
120
  },
121
121
  "publishConfig": {
122
122
  "access": "public"