storybook 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.
Files changed (108) hide show
  1. package/dist/_browser-chunks/Color-E5XDEOX4.js +484 -0
  2. package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
  3. package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
  4. package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
  5. package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
  6. package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
  7. package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
  8. package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
  9. package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
  10. package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
  11. package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
  14. package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
  15. package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-MOYJJEXA.js} +38 -29
  16. package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
  17. package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
  18. package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
  19. package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
  20. package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
  21. package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
  22. package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
  23. package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
  24. package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
  25. package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
  26. package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
  27. package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
  28. package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-ZK4QXZNX.js} +22 -22
  29. package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-QWQG7I72.js} +8 -8
  30. package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-2AFVBCGF.js} +6 -6
  31. package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-5VZMCPTH.js} +18 -18
  32. package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-6OZRMRVO.js} +31 -31
  33. package/dist/_node-chunks/chunk-CLCLRZYL.js +61 -0
  34. package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-CW7HJRCY.js} +9 -9
  35. package/dist/_node-chunks/chunk-DF3QP62W.js +18 -0
  36. package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-DWVHBQGR.js} +165 -191
  37. package/dist/_node-chunks/chunk-EVBCPGQO.js +20 -0
  38. package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-EXZXVBZO.js} +8 -8
  39. package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-FZFZ5TOM.js} +9 -9
  40. package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-GKEAARBQ.js} +10 -10
  41. package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-HMFROKHU.js} +19 -19
  42. package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-I5TOD3AY.js} +66 -72
  43. package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KVNLJSAB.js} +619 -148
  44. package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-NKOHF7TQ.js} +10 -10
  45. package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-OV2CP4VV.js} +7 -7
  46. package/dist/_node-chunks/chunk-PCMFKXWQ.js +23 -0
  47. package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-Q5ZQH2OQ.js} +15 -15
  48. package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-QFSK4B7R.js} +8 -8
  49. package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-R2J3OB3H.js} +6 -6
  50. package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-RGQC4G3L.js} +165 -21
  51. package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-TOXVUAH2.js} +6 -6
  52. package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-URBB5EGY.js} +8 -8
  53. package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UWJ4BOOL.js} +597 -593
  54. package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VJPI73BB.js} +230 -236
  55. package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-WOS3OQVT.js} +6 -6
  56. package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-WUKWNPSQ.js} +17 -17
  57. package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-XFU23B4C.js} +9 -9
  58. package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-UBFMIJZC.js} +10 -10
  59. package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-VD3CGPVI.js} +154 -154
  60. package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-MMJB47J3.js} +16 -16
  61. package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-3J2G7NZZ.js} +11 -11
  62. package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-SOBWTEVH.js} +8 -8
  63. package/dist/babel/index.js +10 -10
  64. package/dist/bin/core.js +28 -28
  65. package/dist/bin/dispatcher.js +11 -11
  66. package/dist/bin/loader.js +14 -11
  67. package/dist/channels/index.js +3 -3
  68. package/dist/cli/index.d.ts +2 -1
  69. package/dist/cli/index.js +18 -18
  70. package/dist/common/index.js +19 -19
  71. package/dist/components/index.d.ts +9 -2
  72. package/dist/components/index.js +327 -311
  73. package/dist/core-server/index.js +125 -125
  74. package/dist/core-server/presets/common-manager.css +2 -2
  75. package/dist/core-server/presets/common-manager.js +43 -38
  76. package/dist/core-server/presets/common-override-preset.js +9 -9
  77. package/dist/core-server/presets/common-preset.js +4390 -173
  78. package/dist/csf/index.js +39 -35
  79. package/dist/csf-tools/index.js +9 -9
  80. package/dist/docs-tools/index.js +6 -5
  81. package/dist/instrumenter/index.js +1 -1
  82. package/dist/manager/globals-runtime.js +18956 -12602
  83. package/dist/manager/runtime.js +148 -132
  84. package/dist/manager-api/index.js +31 -22
  85. package/dist/mocking-utils/index.js +14 -14
  86. package/dist/node-logger/index.d.ts +2 -2
  87. package/dist/node-logger/index.js +9 -9
  88. package/dist/preview/runtime.js +30784 -24388
  89. package/dist/preview-api/index.js +12 -11
  90. package/dist/preview-errors.js +2 -2
  91. package/dist/router/index.js +12 -13
  92. package/dist/server-errors.js +11 -11
  93. package/dist/telemetry/index.d.ts +1 -1
  94. package/dist/telemetry/index.js +23 -23
  95. package/dist/test/index.js +3104 -1604
  96. package/dist/theming/create.js +3 -3
  97. package/dist/theming/index.js +38 -38
  98. package/package.json +2 -8
  99. package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
  100. package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
  101. package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
  102. package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
  103. package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
  104. package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
  105. package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
  106. package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
  107. package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
  108. package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2297kyafub from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2297kyafub from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2297kyafub from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2297kyafub.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2297kyafub.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_2297kyafub from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2297kyafub from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2297kyafub from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2297kyafub.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2297kyafub.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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
  invariant
14
- } from "./chunk-TP6ICLTL.js";
14
+ } from "./chunk-R2J3OB3H.js";
15
15
  import {
16
16
  require_dist
17
- } from "./chunk-AJUO2ZU3.js";
17
+ } from "./chunk-CW7HJRCY.js";
18
18
  import {
19
19
  __export,
20
20
  __toESM
21
- } from "./chunk-5NWCBUGD.js";
21
+ } from "./chunk-TOXVUAH2.js";
22
22
 
23
23
  // src/cli/globalSettings.ts
24
24
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -26,7 +26,7 @@ import fs from "node:fs/promises";
26
26
  import { homedir } from "node:os";
27
27
  import { dirname, join } from "node:path";
28
28
 
29
- // ../node_modules/zod/v3/external.js
29
+ // ../../node_modules/zod/v3/external.js
30
30
  var external_exports = {};
31
31
  __export(external_exports, {
32
32
  BRAND: () => BRAND,
@@ -138,7 +138,7 @@ __export(external_exports, {
138
138
  void: () => voidType
139
139
  });
140
140
 
141
- // ../node_modules/zod/v3/helpers/util.js
141
+ // ../../node_modules/zod/v3/helpers/util.js
142
142
  var util;
143
143
  (function(util2) {
144
144
  util2.assertEqual = (_) => {
@@ -228,7 +228,7 @@ var ZodParsedType = util.arrayToEnum([
228
228
  }
229
229
  };
230
230
 
231
- // ../node_modules/zod/v3/ZodError.js
231
+ // ../../node_modules/zod/v3/ZodError.js
232
232
  var ZodIssueCode = util.arrayToEnum([
233
233
  "invalid_type",
234
234
  "invalid_literal",
@@ -311,7 +311,7 @@ var ZodIssueCode = util.arrayToEnum([
311
311
  };
312
312
  ZodError.create = (issues) => new ZodError(issues);
313
313
 
314
- // ../node_modules/zod/v3/locales/en.js
314
+ // ../../node_modules/zod/v3/locales/en.js
315
315
  var errorMap = (issue, _ctx) => {
316
316
  let message;
317
317
  switch (issue.code) {
@@ -369,7 +369,7 @@ var errorMap = (issue, _ctx) => {
369
369
  return { message };
370
370
  }, en_default = errorMap;
371
371
 
372
- // ../node_modules/zod/v3/errors.js
372
+ // ../../node_modules/zod/v3/errors.js
373
373
  var overrideErrorMap = en_default;
374
374
  function setErrorMap(map) {
375
375
  overrideErrorMap = map;
@@ -378,7 +378,7 @@ function getErrorMap() {
378
378
  return overrideErrorMap;
379
379
  }
380
380
 
381
- // ../node_modules/zod/v3/helpers/parseUtil.js
381
+ // ../../node_modules/zod/v3/helpers/parseUtil.js
382
382
  var makeIssue = (params) => {
383
383
  let { data, path, errorMaps, issueData } = params, fullPath = [...path, ...issueData.path || []], fullIssue = {
384
384
  ...issueData,
@@ -461,13 +461,13 @@ var ParseStatus = class _ParseStatus {
461
461
  status: "aborted"
462
462
  }), DIRTY = (value) => ({ status: "dirty", value }), OK = (value) => ({ status: "valid", value }), isAborted = (x) => x.status === "aborted", isDirty = (x) => x.status === "dirty", isValid = (x) => x.status === "valid", isAsync = (x) => typeof Promise < "u" && x instanceof Promise;
463
463
 
464
- // ../node_modules/zod/v3/helpers/errorUtil.js
464
+ // ../../node_modules/zod/v3/helpers/errorUtil.js
465
465
  var errorUtil;
466
466
  (function(errorUtil2) {
467
467
  errorUtil2.errToObj = (message) => typeof message == "string" ? { message } : message || {}, errorUtil2.toString = (message) => typeof message == "string" ? message : message?.message;
468
468
  })(errorUtil || (errorUtil = {}));
469
469
 
470
- // ../node_modules/zod/v3/types.js
470
+ // ../../node_modules/zod/v3/types.js
471
471
  var ParseInputLazyPath = class {
472
472
  constructor(parent, value, path, key) {
473
473
  this._cachedPath = [], this.parent = parent, this.data = value, this._path = path, this._key = key;
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_2297kyafub from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2297kyafub from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2297kyafub from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2297kyafub.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2297kyafub.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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
  __commonJS
14
- } from "./chunk-5NWCBUGD.js";
14
+ } from "./chunk-TOXVUAH2.js";
15
15
 
16
- // ../node_modules/picocolors/picocolors.js
16
+ // ../../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
18
- "../node_modules/picocolors/picocolors.js"(exports, module) {
18
+ "../../node_modules/picocolors/picocolors.js"(exports, module) {
19
19
  var p = process || {}, argv = p.argv || [], env = p.env || {}, isColorSupported = !(env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI), formatter = (open, close, replace = open) => (input) => {
20
20
  let string = "" + input, index = string.indexOf(close, open.length);
21
21
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_2297kyafub from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2297kyafub from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2297kyafub from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2297kyafub.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2297kyafub.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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
  toEstree
14
- } from "./chunk-5GNBLJKS.js";
15
- import "./chunk-5NWCBUGD.js";
14
+ } from "./chunk-EXZXVBZO.js";
15
+ import "./chunk-TOXVUAH2.js";
16
16
 
17
- // ../node_modules/@storybook/docs-mdx/dist/index.js
17
+ // ../../node_modules/@storybook/docs-mdx/dist/index.js
18
18
  var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
19
19
  let attrValue = getAttrValue(elt, what);
20
20
  if (attrValue) {
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
107
107
  isTemplate: !1,
108
108
  metaTags: void 0,
109
109
  imports: void 0
110
- }, { compile } = await import("./mdx-N42X6CFJ-7WF3QWVO.js");
110
+ }, { compile } = await import("./mdx-N42X6CFJ-3J2G7NZZ.js");
111
111
  await compile(code, {
112
112
  rehypePlugins: [[plugin, store]]
113
113
  });