@storybook/addon-docs 10.0.0-beta.3 → 10.0.0-beta.5
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/_browser-chunks/{Color-LWAWP22K.js → Color-4NTW6CRW.js} +1 -1
- package/dist/_browser-chunks/{chunk-67KILNXL.js → chunk-ZK6NW3SW.js} +3293 -2992
- package/dist/_node-chunks/{chunk-P3KWIEQL.js → chunk-56ICEPZW.js} +7 -7
- package/dist/_node-chunks/{chunk-JJKXGM2E.js → chunk-MK5JA3BU.js} +7 -7
- package/dist/_node-chunks/{chunk-YB4RYWVM.js → chunk-PRHUG36O.js} +6 -6
- package/dist/_node-chunks/{chunk-YXVNNKUD.js → chunk-TWESLOF5.js} +2014 -1106
- package/dist/_node-chunks/{mdx-plugin-K2R4P5ZJ.js → mdx-plugin-KPTOFDFQ.js} +13 -12
- package/dist/_node-chunks/{rehype-external-links-EXOQJETW.js → rehype-external-links-MRDC4FOQ.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-SW3U4NVU.js → rehype-slug-MUYKKPSS.js} +8 -8
- package/dist/blocks.d.ts +23 -11
- package/dist/blocks.js +373 -354
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +10 -10
- package/package.json +4 -4
package/dist/mdx-loader.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nlqwtlkgb0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nlqwtlkgb0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nlqwtlkgb0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nlqwtlkgb0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nlqwtlkgb0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nlqwtlkgb0j.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-
|
|
15
|
-
import "./_node-chunks/chunk-
|
|
16
|
-
import "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-TWESLOF5.js";
|
|
15
|
+
import "./_node-chunks/chunk-56ICEPZW.js";
|
|
16
|
+
import "./_node-chunks/chunk-MK5JA3BU.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-PRHUG36O.js";
|
|
20
20
|
|
|
21
21
|
// src/mdx-loader.ts
|
|
22
22
|
var DEFAULT_RENDERER = `
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nlqwtlkgb0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nlqwtlkgb0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nlqwtlkgb0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nlqwtlkgb0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nlqwtlkgb0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nlqwtlkgb0j.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-PRHUG36O.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
@@ -184,8 +184,8 @@ var getResolvedReact = /* @__PURE__ */ __name(async (options) => {
|
|
|
184
184
|
async function webpack(webpackConfig = {}, options) {
|
|
185
185
|
const { module = {} } = webpackConfig;
|
|
186
186
|
const { csfPluginOptions = {}, mdxPluginOptions = {} } = options;
|
|
187
|
-
const rehypeSlug = (await import("./_node-chunks/rehype-slug-
|
|
188
|
-
const rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-
|
|
187
|
+
const rehypeSlug = (await import("./_node-chunks/rehype-slug-MUYKKPSS.js")).default;
|
|
188
|
+
const rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-MRDC4FOQ.js")).default;
|
|
189
189
|
const mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
|
|
190
190
|
...mdxPluginOptions,
|
|
191
191
|
mdxCompileOptions: {
|
|
@@ -274,7 +274,7 @@ var addons = [
|
|
|
274
274
|
];
|
|
275
275
|
var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
276
276
|
const { plugins = [] } = config;
|
|
277
|
-
const { mdxPlugin } = await import("./_node-chunks/mdx-plugin-
|
|
277
|
+
const { mdxPlugin } = await import("./_node-chunks/mdx-plugin-KPTOFDFQ.js");
|
|
278
278
|
const { react, reactDom, mdx } = await getResolvedReact(options);
|
|
279
279
|
const packageDeduplicationPlugin = {
|
|
280
280
|
name: "storybook:package-deduplication",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.5",
|
|
4
4
|
"description": "Storybook Docs: Document UI components automatically with stories and MDX",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@mdx-js/react": "^3.0.0",
|
|
87
|
-
"@storybook/csf-plugin": "10.0.0-beta.
|
|
87
|
+
"@storybook/csf-plugin": "10.0.0-beta.5",
|
|
88
88
|
"@storybook/icons": "^1.4.0",
|
|
89
|
-
"@storybook/react-dom-shim": "10.0.0-beta.
|
|
89
|
+
"@storybook/react-dom-shim": "10.0.0-beta.5",
|
|
90
90
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
91
91
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
92
92
|
"ts-dedent": "^2.0.0"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"vite": "^7.0.4"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"storybook": "^10.0.0-beta.
|
|
116
|
+
"storybook": "^10.0.0-beta.5"
|
|
117
117
|
},
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|