storybook 10.0.0-beta.1 → 10.0.0-beta.11

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 (124) hide show
  1. package/assets/server/openBrowser.applescript +94 -0
  2. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  3. package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  5. package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
  6. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  7. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  8. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
  9. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  10. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  11. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  12. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
  13. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  14. package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
  15. package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
  16. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  17. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  18. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
  19. package/dist/_node-chunks/{builder-manager-EXW4ETLN.js → builder-manager-VLFDK43H.js} +45 -155
  20. package/dist/_node-chunks/camelcase-RENSEFK6.js +18 -0
  21. package/dist/_node-chunks/{chunk-5ZX5SJOP.js → chunk-4SPBIDJV.js} +162 -103
  22. package/dist/_node-chunks/{chunk-PMEEE3UE.js → chunk-4WZFG35Z.js} +30 -21
  23. package/dist/_node-chunks/{chunk-WP7DV5JT.js → chunk-5K7G6NFK.js} +583 -180
  24. package/dist/_node-chunks/{chunk-FZP2YGG3.js → chunk-5NSMDC6F.js} +7 -7
  25. package/dist/_node-chunks/{chunk-6CCUFDHU.js → chunk-5THWZTEL.js} +7 -7
  26. package/dist/_node-chunks/chunk-7MUMULSR.js +79 -0
  27. package/dist/_node-chunks/chunk-7QAAJL75.js +1540 -0
  28. package/dist/_node-chunks/{chunk-EO4S3VXL.js → chunk-DVY3VWHZ.js} +653 -775
  29. package/dist/_node-chunks/{chunk-WDKWVNL2.js → chunk-EBLOP2C5.js} +7 -7
  30. package/dist/_node-chunks/{chunk-EDBXIJN5.js → chunk-EF56ZUQY.js} +7 -7
  31. package/dist/_node-chunks/{chunk-F5J33SXQ.js → chunk-ER2UQBIA.js} +7 -7
  32. package/dist/_node-chunks/chunk-GHICGP2P.js +18 -0
  33. package/dist/_node-chunks/{chunk-4WNZYNQY.js → chunk-GYBN5GXT.js} +623 -750
  34. package/dist/_node-chunks/{chunk-2G5THETV.js → chunk-H2YBWE3T.js} +12 -12
  35. package/dist/_node-chunks/{camelcase-VZZFWA2L.js → chunk-HYMBYTGJ.js} +9 -8
  36. package/dist/_node-chunks/{chunk-SUMFFLGF.js → chunk-Q5IJJX3T.js} +6 -6
  37. package/dist/_node-chunks/{chunk-U45F2NP6.js → chunk-QLRMR54O.js} +7 -7
  38. package/dist/_node-chunks/{chunk-XTSBFCVE.js → chunk-QSNDRP62.js} +7 -7
  39. package/dist/_node-chunks/chunk-S2RQAF7K.js +4741 -0
  40. package/dist/_node-chunks/{chunk-2QZOLZDJ.js → chunk-SDZVOIZI.js} +9 -9
  41. package/dist/_node-chunks/{chunk-VNLBDN2Z.js → chunk-SGJZDMJW.js} +6 -6
  42. package/dist/_node-chunks/{chunk-PL2PKDRO.js → chunk-TJOIDMXP.js} +60 -102
  43. package/dist/_node-chunks/{chunk-ICPKUV5G.js → chunk-U2UIPLJI.js} +7 -7
  44. package/dist/_node-chunks/{chunk-3SGKBLOL.js → chunk-UAMXREF3.js} +8 -8
  45. package/dist/_node-chunks/{chunk-GVCXNIAA.js → chunk-UC6O5PNX.js} +399 -116
  46. package/dist/_node-chunks/{chunk-CM3UGTR5.js → chunk-VFUP6Z4J.js} +7 -7
  47. package/dist/_node-chunks/{chunk-3ZKQWDCG.js → chunk-XKPJCSPD.js} +223 -243
  48. package/dist/_node-chunks/{chunk-24TGL6EX.js → chunk-XWCQWB3R.js} +8 -8
  49. package/dist/_node-chunks/{chunk-QC5FE2D7.js → chunk-XYFEBEHY.js} +7 -7
  50. package/dist/_node-chunks/chunk-YAEIMHFX.js +62 -0
  51. package/dist/_node-chunks/{chunk-5V6QH7WC.js → chunk-ZHBCPKYD.js} +7 -7
  52. package/dist/_node-chunks/{dist-VZL6D6Y3.js → dist-A2RPEHEC.js} +9 -9
  53. package/dist/_node-chunks/{globby-GZXJJ4W6.js → globby-3TWPXGQS.js} +17 -13
  54. package/dist/_node-chunks/{lib-PHT5GCV2.js → lib-MUNM6ZJ6.js} +40 -16
  55. package/dist/_node-chunks/{mdx-N42X6CFJ-EPDIV4A2.js → mdx-N42X6CFJ-QQDHJZQ3.js} +8 -8
  56. package/dist/_node-chunks/{p-limit-AJIFSZTI.js → p-limit-FEN55OV6.js} +76 -10
  57. package/dist/_node-chunks/{plugin-3VI56CEF.js → plugin-ESAYNJ5V.js} +11 -11
  58. package/dist/_node-chunks/{plugin-AV4OEKYM.js → plugin-GDMP3JPR.js} +10 -10
  59. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-E7J5FKLA.js → webpack-inject-mocker-runtime-plugin-5AKTLYIV.js} +1307 -847
  60. package/dist/_node-chunks/{webpack-mock-plugin-VTYGW7HO.js → webpack-mock-plugin-AWGZ65AQ.js} +9 -9
  61. package/dist/babel/index.d.ts +1 -1
  62. package/dist/babel/index.js +11 -11
  63. package/dist/bin/core.js +638 -187
  64. package/dist/bin/dispatcher.js +11 -11
  65. package/dist/bin/loader.js +77 -12
  66. package/dist/cli/index.d.ts +62 -75
  67. package/dist/cli/index.js +67 -55
  68. package/dist/common/index.d.ts +3 -1
  69. package/dist/common/index.js +22 -22
  70. package/dist/components/index.d.ts +228 -1
  71. package/dist/components/index.js +74 -5738
  72. package/dist/core-events/index.d.ts +18 -2
  73. package/dist/core-events/index.js +7 -1
  74. package/dist/core-server/index.d.ts +515 -14
  75. package/dist/core-server/index.js +4647 -4182
  76. package/dist/core-server/presets/common-manager.js +1570 -1272
  77. package/dist/core-server/presets/common-override-preset.js +9 -9
  78. package/dist/core-server/presets/common-preset.js +691 -38
  79. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  80. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  81. package/dist/csf/index.d.ts +9 -4
  82. package/dist/csf/index.js +50 -15
  83. package/dist/csf-tools/index.d.ts +47 -6
  84. package/dist/csf-tools/index.js +9 -9
  85. package/dist/docs-tools/index.js +4 -4
  86. package/dist/instrumenter/index.js +1 -1
  87. package/dist/manager/globals-runtime.js +9230 -18109
  88. package/dist/manager/globals.d.ts +0 -4
  89. package/dist/manager/globals.js +1 -6
  90. package/dist/manager/runtime.js +13194 -11367
  91. package/dist/manager-api/index.d.ts +513 -5
  92. package/dist/manager-api/index.js +364 -90
  93. package/dist/manager-errors.d.ts +501 -0
  94. package/dist/node-logger/index.d.ts +1 -1
  95. package/dist/node-logger/index.js +1136 -662
  96. package/dist/preview/globals.js +1 -1
  97. package/dist/preview/runtime.js +12103 -21579
  98. package/dist/preview-api/index.d.ts +70 -71
  99. package/dist/preview-api/index.js +10 -10
  100. package/dist/preview-errors.d.ts +501 -0
  101. package/dist/router/index.d.ts +668 -10
  102. package/dist/router/index.js +2 -2
  103. package/dist/server-errors.d.ts +501 -0
  104. package/dist/server-errors.js +10 -10
  105. package/dist/telemetry/index.d.ts +1 -1
  106. package/dist/telemetry/index.js +23 -25
  107. package/dist/test/index.js +1874 -4024
  108. package/dist/theming/index.d.ts +2 -2
  109. package/dist/theming/index.js +6 -6
  110. package/dist/types/index.d.ts +553 -16
  111. package/dist/viewport/index.d.ts +36 -4
  112. package/dist/viewport/index.js +1 -1
  113. package/package.json +9 -46
  114. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  115. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  116. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  117. package/dist/_node-chunks/chunk-32JYCD74.js +0 -80
  118. package/dist/_node-chunks/chunk-GE6I3YYG.js +0 -62
  119. package/dist/_node-chunks/chunk-KXCNXWXI.js +0 -18
  120. package/dist/_node-chunks/chunk-LAUOYAOX.js +0 -87
  121. package/dist/_node-chunks/chunk-QJTT4OC2.js +0 -266
  122. package/dist/_node-chunks/chunk-V2ZF4DUD.js +0 -2377
  123. package/dist/_node-chunks/chunk-ZMV3WY6R.js +0 -9845
  124. package/dist/_node-chunks/default-browser-id-JNATP42X.js +0 -1719
@@ -2,12 +2,6 @@ import {
2
2
  __name
3
3
  } from "./chunk-MM7DTO55.js";
4
4
 
5
- // ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
6
- function isPrimitive(value) {
7
- return value == null || typeof value !== "object" && typeof value !== "function";
8
- }
9
- __name(isPrimitive, "isPrimitive");
10
-
11
5
  // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
12
6
  function isPlainObject(value) {
13
7
  if (!value || typeof value !== "object") {
@@ -22,26 +16,6 @@ function isPlainObject(value) {
22
16
  }
23
17
  __name(isPlainObject, "isPlainObject");
24
18
 
25
- // ../node_modules/es-toolkit/dist/function/noop.mjs
26
- function noop() {
27
- }
28
- __name(noop, "noop");
29
-
30
- // ../node_modules/es-toolkit/dist/predicate/isBlob.mjs
31
- function isBlob(x) {
32
- if (typeof Blob === "undefined") {
33
- return false;
34
- }
35
- return x instanceof Blob;
36
- }
37
- __name(isBlob, "isBlob");
38
-
39
- // ../node_modules/es-toolkit/dist/predicate/isBrowser.mjs
40
- function isBrowser() {
41
- return typeof window !== "undefined" && window?.document != null;
42
- }
43
- __name(isBrowser, "isBrowser");
44
-
45
19
  // ../node_modules/es-toolkit/dist/compat/util/eq.mjs
46
20
  function eq(value, other) {
47
21
  return value === other || Number.isNaN(value) && Number.isNaN(other);
@@ -271,119 +245,22 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
271
245
  }
272
246
  __name(areObjectsEqual, "areObjectsEqual");
273
247
 
248
+ // ../node_modules/es-toolkit/dist/function/noop.mjs
249
+ function noop() {
250
+ }
251
+ __name(noop, "noop");
252
+
274
253
  // ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
275
254
  function isEqual(a, b) {
276
255
  return isEqualWith(a, b, noop);
277
256
  }
278
257
  __name(isEqual, "isEqual");
279
258
 
280
- // ../node_modules/es-toolkit/dist/predicate/isFile.mjs
281
- function isFile(x) {
282
- if (typeof File === "undefined") {
283
- return false;
284
- }
285
- return isBlob(x) && x instanceof File;
286
- }
287
- __name(isFile, "isFile");
288
-
289
- // ../node_modules/es-toolkit/dist/predicate/isFunction.mjs
290
- function isFunction(value) {
291
- return typeof value === "function";
292
- }
293
- __name(isFunction, "isFunction");
294
-
295
- // ../node_modules/es-toolkit/dist/predicate/isJSON.mjs
296
- function isJSON(value) {
297
- if (typeof value !== "string") {
298
- return false;
299
- }
300
- try {
301
- JSON.parse(value);
302
- return true;
303
- } catch {
304
- return false;
305
- }
306
- }
307
- __name(isJSON, "isJSON");
308
-
309
- // ../node_modules/es-toolkit/dist/predicate/isJSONValue.mjs
310
- function isJSONValue(value) {
311
- switch (typeof value) {
312
- case "object": {
313
- return value === null || isJSONArray(value) || isJSONObject(value);
314
- }
315
- case "string":
316
- case "number":
317
- case "boolean": {
318
- return true;
319
- }
320
- default: {
321
- return false;
322
- }
323
- }
324
- }
325
- __name(isJSONValue, "isJSONValue");
326
- function isJSONArray(value) {
327
- if (!Array.isArray(value)) {
328
- return false;
329
- }
330
- return value.every((item) => isJSONValue(item));
331
- }
332
- __name(isJSONArray, "isJSONArray");
333
- function isJSONObject(obj) {
334
- if (!isPlainObject(obj)) {
335
- return false;
336
- }
337
- const keys = Reflect.ownKeys(obj);
338
- for (let i = 0; i < keys.length; i++) {
339
- const key = keys[i];
340
- const value = obj[key];
341
- if (typeof key !== "string") {
342
- return false;
343
- }
344
- if (!isJSONValue(value)) {
345
- return false;
346
- }
347
- }
348
- return true;
349
- }
350
- __name(isJSONObject, "isJSONObject");
351
-
352
- // ../node_modules/es-toolkit/dist/predicate/isLength.mjs
353
- function isLength(value) {
354
- return Number.isSafeInteger(value) && value >= 0;
355
- }
356
- __name(isLength, "isLength");
357
-
358
- // ../node_modules/es-toolkit/dist/predicate/isNode.mjs
359
- function isNode() {
360
- return typeof process !== "undefined" && process?.versions?.node != null;
361
- }
362
- __name(isNode, "isNode");
363
-
364
- // ../node_modules/es-toolkit/dist/predicate/isNotNil.mjs
365
- function isNotNil(x) {
366
- return x != null;
367
- }
368
- __name(isNotNil, "isNotNil");
369
-
370
- // ../node_modules/es-toolkit/dist/predicate/isNull.mjs
371
- function isNull(x) {
372
- return x === null;
373
- }
374
- __name(isNull, "isNull");
375
-
376
- // ../node_modules/es-toolkit/dist/predicate/isPromise.mjs
377
- function isPromise(value) {
378
- return value instanceof Promise;
379
- }
380
- __name(isPromise, "isPromise");
381
-
382
- // ../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
383
- function isUndefined(x) {
384
- return x === void 0;
259
+ // ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
260
+ function isPrimitive(value) {
261
+ return value == null || typeof value !== "object" && typeof value !== "function";
385
262
  }
386
- __name(isUndefined, "isUndefined");
263
+ __name(isPrimitive, "isPrimitive");
387
264
 
388
265
  // ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
389
266
  function isTypedArray(x) {
@@ -391,17 +268,11 @@ function isTypedArray(x) {
391
268
  }
392
269
  __name(isTypedArray, "isTypedArray");
393
270
 
394
- // ../node_modules/es-toolkit/dist/predicate/isNil.mjs
395
- function isNil(x) {
396
- return x == null;
397
- }
398
- __name(isNil, "isNil");
399
-
400
- // ../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
401
- function isSymbol(value) {
402
- return typeof value === "symbol";
271
+ // ../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
272
+ function isArrayBuffer(value) {
273
+ return value instanceof ArrayBuffer;
403
274
  }
404
- __name(isSymbol, "isSymbol");
275
+ __name(isArrayBuffer, "isArrayBuffer");
405
276
 
406
277
  // ../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
407
278
  function isBuffer(x) {
@@ -409,24 +280,42 @@ function isBuffer(x) {
409
280
  }
410
281
  __name(isBuffer, "isBuffer");
411
282
 
412
- // ../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
413
- function isArrayBuffer(value) {
414
- return value instanceof ArrayBuffer;
415
- }
416
- __name(isArrayBuffer, "isArrayBuffer");
417
-
418
283
  // ../node_modules/es-toolkit/dist/predicate/isDate.mjs
419
284
  function isDate(value) {
420
285
  return value instanceof Date;
421
286
  }
422
287
  __name(isDate, "isDate");
423
288
 
289
+ // ../node_modules/es-toolkit/dist/predicate/isFunction.mjs
290
+ function isFunction(value) {
291
+ return typeof value === "function";
292
+ }
293
+ __name(isFunction, "isFunction");
294
+
295
+ // ../node_modules/es-toolkit/dist/predicate/isLength.mjs
296
+ function isLength(value) {
297
+ return Number.isSafeInteger(value) && value >= 0;
298
+ }
299
+ __name(isLength, "isLength");
300
+
424
301
  // ../node_modules/es-toolkit/dist/predicate/isMap.mjs
425
302
  function isMap(value) {
426
303
  return value instanceof Map;
427
304
  }
428
305
  __name(isMap, "isMap");
429
306
 
307
+ // ../node_modules/es-toolkit/dist/predicate/isNil.mjs
308
+ function isNil(x) {
309
+ return x == null;
310
+ }
311
+ __name(isNil, "isNil");
312
+
313
+ // ../node_modules/es-toolkit/dist/predicate/isNull.mjs
314
+ function isNull(x) {
315
+ return x === null;
316
+ }
317
+ __name(isNull, "isNull");
318
+
430
319
  // ../node_modules/es-toolkit/dist/predicate/isRegExp.mjs
431
320
  function isRegExp(value) {
432
321
  return value instanceof RegExp;
@@ -439,6 +328,18 @@ function isSet(value) {
439
328
  }
440
329
  __name(isSet, "isSet");
441
330
 
331
+ // ../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
332
+ function isSymbol(value) {
333
+ return typeof value === "symbol";
334
+ }
335
+ __name(isSymbol, "isSymbol");
336
+
337
+ // ../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
338
+ function isUndefined(x) {
339
+ return x === void 0;
340
+ }
341
+ __name(isUndefined, "isUndefined");
342
+
442
343
  // ../node_modules/es-toolkit/dist/predicate/isWeakMap.mjs
443
344
  function isWeakMap(value) {
444
345
  return value instanceof WeakMap;
@@ -479,32 +380,22 @@ export {
479
380
  float32ArrayTag,
480
381
  float64ArrayTag,
481
382
  isPlainObject,
482
- noop,
483
- isBlob,
484
- isBrowser,
383
+ isArrayBuffer,
384
+ isBuffer,
385
+ isDate,
485
386
  eq,
486
387
  isEqualWith,
388
+ noop,
487
389
  isEqual,
488
- isFile,
489
390
  isFunction,
490
- isJSON,
491
- isJSONValue,
492
- isJSONArray,
493
- isJSONObject,
494
391
  isLength,
495
- isNode,
496
- isNotNil,
497
- isNull,
498
- isPromise,
499
- isUndefined,
500
- isNil,
501
- isSymbol,
502
- isBuffer,
503
- isArrayBuffer,
504
- isDate,
505
392
  isMap,
393
+ isNil,
394
+ isNull,
506
395
  isRegExp,
507
396
  isSet,
397
+ isSymbol,
398
+ isUndefined,
508
399
  isWeakMap,
509
400
  isWeakSet
510
401
  };
@@ -1753,19 +1753,6 @@ __name(inspectSymbol, "inspectSymbol");
1753
1753
 
1754
1754
  // ../node_modules/loupe/lib/promise.js
1755
1755
  var getPromiseValue = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue");
1756
- try {
1757
- const { getPromiseDetails, kPending, kRejected } = process.binding("util");
1758
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
1759
- getPromiseValue = /* @__PURE__ */ __name((value, options) => {
1760
- const [state, innerValue] = getPromiseDetails(value);
1761
- if (state === kPending) {
1762
- return "Promise{<pending>}";
1763
- }
1764
- return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
1765
- }, "getPromiseValue");
1766
- }
1767
- } catch (notNode) {
1768
- }
1769
1756
  var promise_default = getPromiseValue;
1770
1757
 
1771
1758
  // ../node_modules/loupe/lib/object.js
@@ -1947,12 +1934,12 @@ var baseTypesMap = {
1947
1934
  HTMLCollection: inspectNodeCollection,
1948
1935
  NodeList: inspectNodeCollection
1949
1936
  };
1950
- var inspectCustom = /* @__PURE__ */ __name((value, options, type) => {
1937
+ var inspectCustom = /* @__PURE__ */ __name((value, options, type, inspectFn) => {
1951
1938
  if (chaiInspect in value && typeof value[chaiInspect] === "function") {
1952
1939
  return value[chaiInspect](options);
1953
1940
  }
1954
1941
  if (nodeInspect in value && typeof value[nodeInspect] === "function") {
1955
- return value[nodeInspect](options.depth, options);
1942
+ return value[nodeInspect](options.depth, options, inspectFn);
1956
1943
  }
1957
1944
  if ("inspect" in value && typeof value.inspect === "function") {
1958
1945
  return value.inspect(options.depth, options);
@@ -1977,7 +1964,7 @@ function inspect(value, opts = {}) {
1977
1964
  return baseTypesMap[type](value, options);
1978
1965
  }
1979
1966
  if (customInspect && value) {
1980
- const output = inspectCustom(value, options, type);
1967
+ const output = inspectCustom(value, options, type, inspect);
1981
1968
  if (output) {
1982
1969
  if (typeof output === "string")
1983
1970
  return output;