@storybook/addon-docs 10.3.0-alpha.11 → 10.3.0-alpha.13
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-CFFJ6LUG.js → chunk-BDSWGEW6.js} +6 -6
- package/dist/_node-chunks/{chunk-5DOGCAIL.js → chunk-CP2XQUAY.js} +6 -6
- package/dist/_node-chunks/{chunk-H4ESCRFO.js → chunk-CQTZVEMS.js} +6 -6
- package/dist/_node-chunks/{chunk-33CVZ6SB.js → chunk-DA5UIHBB.js} +9 -9
- package/dist/_node-chunks/{mdx-plugin-3PA2GQW5.js → mdx-plugin-PO2CSRRX.js} +11 -11
- package/dist/_node-chunks/{rehype-external-links-NBDXXVGN.js → rehype-external-links-5KW3REQO.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-LUERY3MP.js → rehype-slug-QLZVFQPQ.js} +8 -8
- package/dist/blocks.js +245 -366
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +9 -9
- package/package.json +4 -4
package/dist/mdx-loader.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_89otmpc1et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_89otmpc1et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_89otmpc1et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_89otmpc1et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_89otmpc1et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_89otmpc1et.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-
|
|
17
|
-
import "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-DA5UIHBB.js";
|
|
15
|
+
import "./_node-chunks/chunk-CP2XQUAY.js";
|
|
16
|
+
import "./_node-chunks/chunk-BDSWGEW6.js";
|
|
17
|
+
import "./_node-chunks/chunk-CQTZVEMS.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_89otmpc1et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_89otmpc1et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_89otmpc1et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_89otmpc1et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_89otmpc1et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_89otmpc1et.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-CQTZVEMS.js";
|
|
13
13
|
|
|
14
14
|
// src/preset.ts
|
|
15
15
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
@@ -306,7 +306,7 @@ var getResolvedReact = async (options) => {
|
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
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-
|
|
309
|
+
let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-QLZVFQPQ.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-5KW3REQO.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
|
|
310
310
|
...mdxPluginOptions,
|
|
311
311
|
mdxCompileOptions: {
|
|
312
312
|
providerImportSource: import.meta.resolve("@storybook/addon-docs/mdx-react-shim"),
|
|
@@ -382,7 +382,7 @@ var docs = (input = {}, options) => {
|
|
|
382
382
|
}, addons = [
|
|
383
383
|
import.meta.resolve("@storybook/react-dom-shim/preset")
|
|
384
384
|
], viteFinal = async (config, options) => {
|
|
385
|
-
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-
|
|
385
|
+
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-PO2CSRRX.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
|
|
386
386
|
name: "storybook:package-deduplication",
|
|
387
387
|
enforce: "pre",
|
|
388
388
|
config: () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "10.3.0-alpha.
|
|
3
|
+
"version": "10.3.0-alpha.13",
|
|
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.
|
|
90
|
+
"@storybook/csf-plugin": "10.3.0-alpha.13",
|
|
91
91
|
"@storybook/icons": "^2.0.1",
|
|
92
|
-
"@storybook/react-dom-shim": "10.3.0-alpha.
|
|
92
|
+
"@storybook/react-dom-shim": "10.3.0-alpha.13",
|
|
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.
|
|
119
|
+
"storybook": "^10.3.0-alpha.13"
|
|
120
120
|
},
|
|
121
121
|
"publishConfig": {
|
|
122
122
|
"access": "public"
|