@storybook/addon-docs 10.2.0-alpha.1 → 10.2.0-alpha.2
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-ASIRERSW.js → Color-O2RRNL2I.js} +11 -67
- package/dist/_browser-chunks/{chunk-DDRHE7EB.js → chunk-AAVP3AE4.js} +10 -10
- package/dist/_browser-chunks/chunk-FYME3FCW.js +209 -0
- package/dist/_node-chunks/{chunk-3I43UR4Y.js → chunk-A36BWZ7F.js} +10 -10
- package/dist/_node-chunks/{chunk-CBKT5XUX.js → chunk-CUVES73C.js} +10 -10
- package/dist/_node-chunks/{chunk-PBPABQD4.js → chunk-DMMP3S2I.js} +6 -6
- package/dist/_node-chunks/{chunk-OBFRARTH.js → chunk-VNOIWML5.js} +762 -762
- package/dist/_node-chunks/{mdx-plugin-IWKZADK4.js → mdx-plugin-A7UMKD7O.js} +24 -24
- package/dist/_node-chunks/{rehype-external-links-VMNWOUNT.js → rehype-external-links-MNLSOFUX.js} +12 -12
- package/dist/_node-chunks/{rehype-slug-JH43HCVQ.js → rehype-slug-ECLIOYN6.js} +13 -13
- package/dist/blocks.js +4510 -329
- package/dist/manager.js +1 -1
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +11 -11
- package/package.json +4 -8
- package/dist/_browser-chunks/chunk-CYSK6WYR.js +0 -7
package/dist/manager.js
CHANGED
package/dist/mdx-loader.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_va7slxkg4al from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_va7slxkg4al from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_va7slxkg4al from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_va7slxkg4al.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_va7slxkg4al.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_va7slxkg4al.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-VNOIWML5.js";
|
|
15
|
+
import "./_node-chunks/chunk-A36BWZ7F.js";
|
|
16
|
+
import "./_node-chunks/chunk-CUVES73C.js";
|
|
17
|
+
import "./_node-chunks/chunk-DMMP3S2I.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_va7slxkg4al from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_va7slxkg4al from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_va7slxkg4al from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_va7slxkg4al.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_va7slxkg4al.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_va7slxkg4al.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-DMMP3S2I.js";
|
|
13
13
|
|
|
14
14
|
// src/preset.ts
|
|
15
15
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
@@ -19,7 +19,7 @@ import { logger } from "storybook/internal/node-logger";
|
|
|
19
19
|
// ../../core/src/shared/utils/module.ts
|
|
20
20
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// ../../../node_modules/exsolve/dist/index.mjs
|
|
23
23
|
import assert from "node:assert";
|
|
24
24
|
import v8 from "node:v8";
|
|
25
25
|
import { format, inspect } from "node:util";
|
|
@@ -143,7 +143,7 @@ var hasOwnProperty = {}.hasOwnProperty;
|
|
|
143
143
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace], own = {}.hasOwnProperty;
|
|
144
144
|
var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE_CACHE__ ||= /* @__PURE__ */ new Map();
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
147
147
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
148
148
|
function normalizeWindowsPath(input = "") {
|
|
149
149
|
return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
@@ -227,7 +227,7 @@ var getResolvedReact = async (options) => {
|
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
async function webpack(webpackConfig = {}, options) {
|
|
230
|
-
let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-
|
|
230
|
+
let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-ECLIOYN6.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-MNLSOFUX.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
|
|
231
231
|
...mdxPluginOptions,
|
|
232
232
|
mdxCompileOptions: {
|
|
233
233
|
providerImportSource: import.meta.resolve("@storybook/addon-docs/mdx-react-shim"),
|
|
@@ -303,7 +303,7 @@ var docs = (input = {}, options) => {
|
|
|
303
303
|
}, addons = [
|
|
304
304
|
import.meta.resolve("@storybook/react-dom-shim/preset")
|
|
305
305
|
], viteFinal = async (config, options) => {
|
|
306
|
-
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-
|
|
306
|
+
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-A7UMKD7O.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
|
|
307
307
|
name: "storybook:package-deduplication",
|
|
308
308
|
enforce: "pre",
|
|
309
309
|
config: () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.2",
|
|
4
4
|
"description": "Storybook Docs: Document UI components automatically with stories and MDX",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -78,15 +78,11 @@
|
|
|
78
78
|
"*.d.ts",
|
|
79
79
|
"!src/**/*"
|
|
80
80
|
],
|
|
81
|
-
"scripts": {
|
|
82
|
-
"check": "jiti ../../../scripts/check/check-package.ts",
|
|
83
|
-
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
84
|
-
},
|
|
85
81
|
"dependencies": {
|
|
86
82
|
"@mdx-js/react": "^3.0.0",
|
|
87
|
-
"@storybook/csf-plugin": "10.2.0-alpha.
|
|
83
|
+
"@storybook/csf-plugin": "10.2.0-alpha.2",
|
|
88
84
|
"@storybook/icons": "^2.0.0",
|
|
89
|
-
"@storybook/react-dom-shim": "10.2.0-alpha.
|
|
85
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.2",
|
|
90
86
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
91
87
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
92
88
|
"ts-dedent": "^2.0.0"
|
|
@@ -113,7 +109,7 @@
|
|
|
113
109
|
"vite": "^7.0.4"
|
|
114
110
|
},
|
|
115
111
|
"peerDependencies": {
|
|
116
|
-
"storybook": "^10.2.0-alpha.
|
|
112
|
+
"storybook": "^10.2.0-alpha.2"
|
|
117
113
|
},
|
|
118
114
|
"publishConfig": {
|
|
119
115
|
"access": "public"
|