@storybook/addon-docs 10.2.0-alpha.1 → 10.2.0-alpha.3

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-DDRHE7EB.js";
3
+ } from "./_browser-chunks/chunk-AAVP3AE4.js";
4
4
  import "./_browser-chunks/chunk-A242L54C.js";
5
5
 
6
6
  // src/manager.tsx
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_wd9rpacki8 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_wd9rpacki8 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_wd9rpacki8 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_l1xfiodo17e from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_l1xfiodo17e from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_l1xfiodo17e from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_wd9rpacki8.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_wd9rpacki8.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_wd9rpacki8.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_l1xfiodo17e.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_l1xfiodo17e.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_l1xfiodo17e.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-OBFRARTH.js";
15
- import "./_node-chunks/chunk-3I43UR4Y.js";
16
- import "./_node-chunks/chunk-CBKT5XUX.js";
17
- import "./_node-chunks/chunk-PBPABQD4.js";
14
+ } from "./_node-chunks/chunk-WZTEI6VZ.js";
15
+ import "./_node-chunks/chunk-2FRRGDVV.js";
16
+ import "./_node-chunks/chunk-DSN6PVTO.js";
17
+ import "./_node-chunks/chunk-VRYIL6LU.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_wd9rpacki8 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_wd9rpacki8 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_wd9rpacki8 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_l1xfiodo17e from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_l1xfiodo17e from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_l1xfiodo17e from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_wd9rpacki8.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_wd9rpacki8.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_wd9rpacki8.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_l1xfiodo17e.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_l1xfiodo17e.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_l1xfiodo17e.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-PBPABQD4.js";
12
+ import "./_node-chunks/chunk-VRYIL6LU.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
- // ../../node_modules/exsolve/dist/index.mjs
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
- // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
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-JH43HCVQ.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-VMNWOUNT.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
230
+ let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-6PUKBBBM.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-NY6P5R3T.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-IWKZADK4.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
306
+ let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-RIKNY2FZ.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.1",
3
+ "version": "10.2.0-alpha.3",
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.1",
83
+ "@storybook/csf-plugin": "10.2.0-alpha.3",
88
84
  "@storybook/icons": "^2.0.0",
89
- "@storybook/react-dom-shim": "10.2.0-alpha.1",
85
+ "@storybook/react-dom-shim": "10.2.0-alpha.3",
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.1"
112
+ "storybook": "^10.2.0-alpha.3"
117
113
  },
118
114
  "publishConfig": {
119
115
  "access": "public"
@@ -1,7 +0,0 @@
1
- // src/blocks/controls/helpers.ts
2
- var getControlId = (value) => `control-${value.replace(/\s+/g, "-")}`, getControlSetterButtonId = (value) => `set-${value.replace(/\s+/g, "-")}`;
3
-
4
- export {
5
- getControlId,
6
- getControlSetterButtonId
7
- };