storybook 10.1.0-alpha.13 → 10.1.0-alpha.14

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 (72) hide show
  1. package/dist/_browser-chunks/{chunk-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
  2. package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
  3. package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
  4. package/dist/_node-chunks/{builder-manager-DWDUVXZM.js → builder-manager-FQ5J6V3U.js} +17 -12
  5. package/dist/_node-chunks/{camelcase-EETCRTJX.js → camelcase-VGUYV77Z.js} +7 -7
  6. package/dist/_node-chunks/{chunk-FCVNHU2F.js → chunk-2JR3QBT2.js} +7 -7
  7. package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
  8. package/dist/_node-chunks/{chunk-447655DM.js → chunk-4ZFHN3ZY.js} +6 -6
  9. package/dist/_node-chunks/{chunk-RUUNVQ6W.js → chunk-63PL4NNE.js} +9 -9
  10. package/dist/_node-chunks/{chunk-OVVZIUHS.js → chunk-A4KENTXT.js} +7 -7
  11. package/dist/_node-chunks/{chunk-XKRVQL2G.js → chunk-ALIA3J6S.js} +44 -10
  12. package/dist/_node-chunks/{chunk-4EJUC2SD.js → chunk-C2HKH2XQ.js} +31 -48
  13. package/dist/_node-chunks/{chunk-LPKSBF62.js → chunk-DQNBAQYT.js} +6 -6
  14. package/dist/_node-chunks/{chunk-MIA5324I.js → chunk-F74UHHR6.js} +7 -7
  15. package/dist/_node-chunks/{chunk-B76FDKVB.js → chunk-H5XWXVWR.js} +6 -6
  16. package/dist/_node-chunks/{chunk-WC2YEQHJ.js → chunk-JMP7YFX2.js} +6 -6
  17. package/dist/_node-chunks/{chunk-DPFYWXEA.js → chunk-JZR4DHG2.js} +19 -7
  18. package/dist/_node-chunks/{chunk-DIPKXLEP.js → chunk-KEA7CVMZ.js} +80 -13
  19. package/dist/_node-chunks/{chunk-CMYD2JNN.js → chunk-KF3WTAEP.js} +7 -7
  20. package/dist/_node-chunks/{chunk-URLNGLC2.js → chunk-LPPM7L5D.js} +10 -10
  21. package/dist/_node-chunks/{chunk-7IAVT2FU.js → chunk-MJUDR7HQ.js} +7 -7
  22. package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
  23. package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
  24. package/dist/_node-chunks/{chunk-7KFHRNOT.js → chunk-Q2QUNQK6.js} +7 -7
  25. package/dist/_node-chunks/{chunk-CLUBH2LP.js → chunk-TMCKISJR.js} +65 -101
  26. package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
  27. package/dist/_node-chunks/{chunk-2W4GZCLE.js → chunk-V7CXWJXC.js} +7 -7
  28. package/dist/_node-chunks/{chunk-B7PGKETD.js → chunk-W4F3T6CY.js} +8 -8
  29. package/dist/_node-chunks/{chunk-Z2OWEMX3.js → chunk-WACDSFMO.js} +9 -9
  30. package/dist/_node-chunks/{chunk-MJM4TEMP.js → chunk-WVXZFQQU.js} +7 -7
  31. package/dist/_node-chunks/{chunk-LYEZOJ43.js → chunk-XBPE4PT7.js} +6 -6
  32. package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
  33. package/dist/_node-chunks/{chunk-AZIPBEBK.js → chunk-ZGZKNZ5S.js} +6 -6
  34. package/dist/_node-chunks/{dist-22CLJ4BC.js → dist-DR3AP3RJ.js} +9 -9
  35. package/dist/_node-chunks/{globby-GR24TGSK.js → globby-D4FPSHY2.js} +9 -9
  36. package/dist/_node-chunks/{lib-G2LGVRPC.js → lib-ZEFOVNTK.js} +7 -7
  37. package/dist/_node-chunks/{mdx-N42X6CFJ-W6P6IDDW.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
  38. package/dist/_node-chunks/{p-limit-K4FZHG2F.js → p-limit-CYQOFYPV.js} +7 -7
  39. package/dist/babel/index.js +10 -10
  40. package/dist/bin/core.js +12 -11
  41. package/dist/bin/dispatcher.js +11 -11
  42. package/dist/bin/loader.js +9 -9
  43. package/dist/cli/index.d.ts +788 -1
  44. package/dist/cli/index.js +42 -5999
  45. package/dist/common/index.d.ts +1 -1
  46. package/dist/common/index.js +22 -21
  47. package/dist/components/index.d.ts +136 -26
  48. package/dist/components/index.js +3163 -2859
  49. package/dist/core-server/index.js +51 -108
  50. package/dist/core-server/presets/common-manager.js +5 -5
  51. package/dist/core-server/presets/common-override-preset.js +9 -9
  52. package/dist/core-server/presets/common-preset.js +266 -35
  53. package/dist/csf/index.js +2 -2
  54. package/dist/csf-tools/index.js +9 -9
  55. package/dist/manager/globals-runtime.js +21553 -21158
  56. package/dist/manager/manager-stores.d.ts +1 -0
  57. package/dist/manager/manager-stores.js +23 -0
  58. package/dist/manager/runtime.js +6694 -719
  59. package/dist/manager-api/index.d.ts +1803 -2
  60. package/dist/manager-api/index.js +102 -8
  61. package/dist/mocking-utils/index.js +8 -8
  62. package/dist/node-logger/index.js +9 -9
  63. package/dist/preview/runtime.js +4 -1
  64. package/dist/preview-api/index.js +2 -2
  65. package/dist/server-errors.js +11 -11
  66. package/dist/telemetry/index.d.ts +2 -2
  67. package/dist/telemetry/index.js +23 -23
  68. package/package.json +5 -1
  69. package/dist/_node-chunks/chunk-4ZJOH2UN.js +0 -61
  70. package/dist/_node-chunks/chunk-654SJIMS.js +0 -23
  71. package/dist/_node-chunks/chunk-JQ7RQS5Q.js +0 -26
  72. package/dist/_node-chunks/chunk-LEL5OSY3.js +0 -18
@@ -883,6 +883,7 @@ var ScrollAreaRoot = styled2(Root)(
883
883
  borderRadius: "var(--scrollbar-size)",
884
884
  position: "relative",
885
885
  transition: "opacity 0.2s ease-out",
886
+ zIndex: 1,
886
887
  "&:hover": { opacity: 0.8 },
887
888
  /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */
888
889
  "::before": {
@@ -2723,7 +2723,10 @@ var getQueryString = ({
2723
2723
  }, getSelectionSpecifierFromPath = () => {
2724
2724
  if (typeof document2 < "u") {
2725
2725
  let queryStr = document2.location.search.slice(1), query = (0, import_picoquery2.parse)(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, viewMode = getFirstString(query.viewMode);
2726
- (typeof viewMode != "string" || !viewMode.match(/docs|story/)) && (viewMode = "story");
2726
+ if (typeof viewMode != "string" || !viewMode)
2727
+ viewMode = "story";
2728
+ else if (!viewMode.match(/docs|story/))
2729
+ return null;
2727
2730
  let path = getFirstString(query.path), storyId = path ? pathToId(path) : getFirstString(query.id);
2728
2731
  if (storyId)
2729
2732
  return { storySpecifier: storyId, args, globals, viewMode };
@@ -2,7 +2,7 @@ import {
2
2
  ActionBar,
3
3
  ScrollArea,
4
4
  createCopyToClipboardFunction
5
- } from "./chunk-WXP2XJ3O.js";
5
+ } from "./chunk-P4F4UVXX.js";
6
6
  import {
7
7
  _defineProperty,
8
8
  _objectWithoutProperties
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,21 +13,21 @@ import {
13
13
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-AZIPBEBK.js";
16
+ } from "./chunk-ZGZKNZ5S.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-2W4GZCLE.js";
19
+ } from "./chunk-V7CXWJXC.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-MJM4TEMP.js";
23
+ } from "./chunk-WVXZFQQU.js";
24
24
  import {
25
25
  join,
26
26
  parse
27
- } from "./chunk-LPKSBF62.js";
27
+ } from "./chunk-DQNBAQYT.js";
28
28
  import {
29
29
  slash
30
- } from "./chunk-447655DM.js";
30
+ } from "./chunk-4ZFHN3ZY.js";
31
31
  import {
32
32
  __commonJS,
33
33
  __esm,
@@ -35,7 +35,7 @@ import {
35
35
  __require,
36
36
  __toCommonJS,
37
37
  __toESM
38
- } from "./chunk-WC2YEQHJ.js";
38
+ } from "./chunk-JMP7YFX2.js";
39
39
 
40
40
  // ../node_modules/tslib/tslib.es6.mjs
41
41
  var tslib_es6_exports = {};
@@ -1462,8 +1462,10 @@ var exports_default = {
1462
1462
  "experimental_useStatusStore",
1463
1463
  "experimental_useTestProviderStore",
1464
1464
  "experimental_useUniversalStore",
1465
+ "internal_checklistStore",
1465
1466
  "internal_fullStatusStore",
1466
1467
  "internal_fullTestProviderStore",
1468
+ "internal_universalChecklistStore",
1467
1469
  "internal_universalStatusStore",
1468
1470
  "internal_universalTestProviderStore",
1469
1471
  "isMacLike",
@@ -1621,8 +1623,10 @@ var exports_default = {
1621
1623
  "Bar",
1622
1624
  "Blockquote",
1623
1625
  "Button",
1626
+ "Card",
1624
1627
  "ClipboardCode",
1625
1628
  "Code",
1629
+ "Collapsible",
1626
1630
  "DL",
1627
1631
  "Div",
1628
1632
  "DocumentWrapper",
@@ -1642,6 +1646,7 @@ var exports_default = {
1642
1646
  "LI",
1643
1647
  "Link",
1644
1648
  "ListItem",
1649
+ "Listbox",
1645
1650
  "Loader",
1646
1651
  "Modal",
1647
1652
  "ModalDecorator",
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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 "./chunk-WC2YEQHJ.js";
12
+ import "./chunk-JMP7YFX2.js";
13
13
 
14
14
  // ../node_modules/camelcase/index.js
15
15
  var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, SEPARATORS = /[_.\- ]+/, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-WC2YEQHJ.js";
15
+ } from "./chunk-JMP7YFX2.js";
16
16
 
17
17
  // ../node_modules/ms/index.js
18
18
  var require_ms = __commonJS({
@@ -0,0 +1,23 @@
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ any
14
+ } from "./chunk-JZR4DHG2.js";
15
+
16
+ // src/cli/detect.ts
17
+ async function detectPnp() {
18
+ return !!any([".pnp.js", ".pnp.cjs"]);
19
+ }
20
+
21
+ export {
22
+ detectPnp
23
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
12
12
  import {
13
13
  require_lib,
14
14
  require_src
15
- } from "./chunk-FCVNHU2F.js";
15
+ } from "./chunk-2JR3QBT2.js";
16
16
  import {
17
17
  require_picocolors
18
- } from "./chunk-OVVZIUHS.js";
18
+ } from "./chunk-A4KENTXT.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __require,
22
22
  __toESM
23
- } from "./chunk-WC2YEQHJ.js";
23
+ } from "./chunk-JMP7YFX2.js";
24
24
 
25
25
  // ../node_modules/@babel/types/lib/utils/shallowEqual.js
26
26
  var require_shallowEqual = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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-WC2YEQHJ.js";
14
+ } from "./chunk-JMP7YFX2.js";
15
15
 
16
16
  // ../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
@@ -1,21 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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 {
13
+ invariant
14
+ } from "./chunk-NZBK3DSJ.js";
12
15
  import {
13
16
  require_dist
14
- } from "./chunk-CMYD2JNN.js";
17
+ } from "./chunk-KF3WTAEP.js";
15
18
  import {
16
19
  __export,
17
20
  __toESM
18
- } from "./chunk-WC2YEQHJ.js";
21
+ } from "./chunk-JMP7YFX2.js";
19
22
 
20
23
  // src/cli/globalSettings.ts
21
24
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -2959,12 +2962,42 @@ var instanceOfType = (cls, params = {
2959
2962
  var NEVER = INVALID;
2960
2963
 
2961
2964
  // src/cli/globalSettings.ts
2962
- var DEFAULT_SETTINGS_PATH = join(homedir(), ".storybook", "settings.json"), VERSION = 1, userSettingSchema = external_exports.object({
2965
+ var DEFAULT_SETTINGS_PATH = join(homedir(), ".storybook", "settings.json"), VERSION = 1, statusValue = external_exports.strictObject({
2966
+ status: external_exports.enum(["open", "accepted", "done", "skipped"]).optional(),
2967
+ mutedAt: external_exports.number().optional()
2968
+ }).optional(), userSettingSchema = external_exports.object({
2963
2969
  version: external_exports.number(),
2964
2970
  // NOTE: every key (and subkey) below must be optional, for forwards compatibility reasons
2965
2971
  // (we can remove keys once they are deprecated)
2966
2972
  userSince: external_exports.number().optional(),
2967
- init: external_exports.object({ skipOnboarding: external_exports.boolean().optional() }).optional()
2973
+ init: external_exports.object({ skipOnboarding: external_exports.boolean().optional() }).optional(),
2974
+ checklist: external_exports.object({
2975
+ items: external_exports.object({
2976
+ accessibilityTests: statusValue,
2977
+ autodocs: statusValue,
2978
+ ciTests: statusValue,
2979
+ controls: statusValue,
2980
+ coverage: statusValue,
2981
+ guidedTour: statusValue,
2982
+ installA11y: statusValue,
2983
+ installChromatic: statusValue,
2984
+ installDocs: statusValue,
2985
+ installVitest: statusValue,
2986
+ mdxDocs: statusValue,
2987
+ moreComponents: statusValue,
2988
+ moreStories: statusValue,
2989
+ onboardingSurvey: statusValue,
2990
+ organizeStories: statusValue,
2991
+ publishStorybook: statusValue,
2992
+ renderComponent: statusValue,
2993
+ runTests: statusValue,
2994
+ viewports: statusValue,
2995
+ visualTests: statusValue,
2996
+ whatsNewStorybook10: statusValue,
2997
+ writeInteractions: statusValue
2998
+ }).optional(),
2999
+ widget: external_exports.object({ disable: external_exports.boolean().optional() }).optional()
3000
+ }).optional()
2968
3001
  }), settings;
2969
3002
  async function globalSettings(filePath = DEFAULT_SETTINGS_PATH) {
2970
3003
  if (settings)
@@ -2992,6 +3025,7 @@ var Settings = class {
2992
3025
  }
2993
3026
  /** Save settings to the file */
2994
3027
  async save() {
3028
+ invariant(this.filePath, "No file path to save settings to");
2995
3029
  try {
2996
3030
  await fs.mkdir(dirname(this.filePath), { recursive: !0 }), await fs.writeFile(this.filePath, JSON.stringify(this.value, null, 2));
2997
3031
  } catch (err) {
@@ -1,56 +1,54 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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
  versions_default
14
- } from "./chunk-4ZJOH2UN.js";
15
- import {
16
- any,
17
- from,
18
- up,
19
- up2
20
- } from "./chunk-DPFYWXEA.js";
14
+ } from "./chunk-YMM6BYF2.js";
21
15
  import {
22
16
  require_picomatch
23
- } from "./chunk-7IAVT2FU.js";
17
+ } from "./chunk-MJUDR7HQ.js";
24
18
  import {
25
19
  logger
26
- } from "./chunk-B7PGKETD.js";
20
+ } from "./chunk-W4F3T6CY.js";
27
21
  import {
28
- invariant
29
- } from "./chunk-JQ7RQS5Q.js";
22
+ any,
23
+ from,
24
+ invariant,
25
+ up,
26
+ up2
27
+ } from "./chunk-JZR4DHG2.js";
30
28
  import {
31
29
  importModule,
32
30
  resolveModulePath,
33
31
  resolvePackageDir,
34
32
  safeResolveModule
35
- } from "./chunk-MJM4TEMP.js";
33
+ } from "./chunk-WVXZFQQU.js";
36
34
  import {
37
35
  join,
38
36
  parse,
39
37
  resolve
40
- } from "./chunk-LPKSBF62.js";
38
+ } from "./chunk-DQNBAQYT.js";
41
39
  import {
42
40
  glob,
43
41
  globSync
44
- } from "./chunk-MIA5324I.js";
42
+ } from "./chunk-F74UHHR6.js";
45
43
  import {
46
44
  slash
47
- } from "./chunk-447655DM.js";
45
+ } from "./chunk-4ZFHN3ZY.js";
48
46
  import {
49
47
  require_dist
50
- } from "./chunk-CMYD2JNN.js";
48
+ } from "./chunk-KF3WTAEP.js";
51
49
  import {
52
50
  require_picocolors
53
- } from "./chunk-OVVZIUHS.js";
51
+ } from "./chunk-A4KENTXT.js";
54
52
  import {
55
53
  __commonJS,
56
54
  __esm,
@@ -58,7 +56,7 @@ import {
58
56
  __require,
59
57
  __toCommonJS,
60
58
  __toESM
61
- } from "./chunk-WC2YEQHJ.js";
59
+ } from "./chunk-JMP7YFX2.js";
62
60
 
63
61
  // ../node_modules/resolve/lib/homedir.js
64
62
  var require_homedir = __commonJS({
@@ -11050,7 +11048,7 @@ function normalizeStoryPath(filename) {
11050
11048
  }
11051
11049
 
11052
11050
  // src/common/js-package-manager/JsPackageManager.ts
11053
- var PackageManagerName = /* @__PURE__ */ ((PackageManagerName2) => (PackageManagerName2.NPM = "npm", PackageManagerName2.YARN1 = "yarn", PackageManagerName2.YARN2 = "yarn2", PackageManagerName2.PNPM = "pnpm", PackageManagerName2.BUN = "bun", PackageManagerName2))(PackageManagerName || {});
11051
+ var PackageManagerName = /* @__PURE__ */ ((PackageManagerName2) => (PackageManagerName2.NPM = "npm", PackageManagerName2.YARN1 = "yarn1", PackageManagerName2.YARN2 = "yarn2", PackageManagerName2.PNPM = "pnpm", PackageManagerName2.BUN = "bun", PackageManagerName2))(PackageManagerName || {});
11054
11052
  function getPackageDetails(pkg) {
11055
11053
  let idx = pkg.lastIndexOf("@");
11056
11054
  if (idx <= 0)
@@ -11805,7 +11803,7 @@ var predicateFor = (addon) => (entry) => {
11805
11803
 
11806
11804
  // src/common/utils/envs.ts
11807
11805
  async function loadEnvs(options = {}) {
11808
- let { getEnvironment } = await import("./lib-G2LGVRPC.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
11806
+ let { getEnvironment } = await import("./lib-ZEFOVNTK.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
11809
11807
  // eslint-disable-next-line @typescript-eslint/dot-notation
11810
11808
  NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
11811
11809
  NODE_PATH: process.env.NODE_PATH || "",
@@ -14219,7 +14217,7 @@ var parsePackageData = (packageName = "") => {
14219
14217
  var YARN1_ERROR_REGEX = /^error\s(.*)$/gm, Yarn1Proxy = class extends JsPackageManager {
14220
14218
  constructor() {
14221
14219
  super(...arguments);
14222
- this.type = "yarn" /* YARN1 */;
14220
+ this.type = "yarn1" /* YARN1 */;
14223
14221
  }
14224
14222
  getInstallArgs() {
14225
14223
  return this.installArgs || (this.installArgs = process7.env.CI ? [] : ["--ignore-workspace-root-check"]), this.installArgs;
@@ -14592,7 +14590,7 @@ var JsPackageManagerFactory = class {
14592
14590
  return dirA === dirB ? 0 : compare.startsWith("..") ? -1 : 1;
14593
14591
  })[0], closestLockfile = closestLockfilePath && basename3(closestLockfilePath), yarnVersion = getYarnVersion(cwd);
14594
14592
  if (yarnVersion && closestLockfile === YARN_LOCKFILE)
14595
- return yarnVersion === 1 ? "yarn" /* YARN1 */ : "yarn2" /* YARN2 */;
14593
+ return yarnVersion === 1 ? "yarn1" /* YARN1 */ : "yarn2" /* YARN2 */;
14596
14594
  if (hasPNPM(cwd) && closestLockfile === PNPM_LOCKFILE)
14597
14595
  return "pnpm" /* PNPM */;
14598
14596
  let isNPMCommandOk = hasNPM(cwd);
@@ -14632,7 +14630,7 @@ var JsPackageManagerFactory = class {
14632
14630
  this.PROXY_MAP = {
14633
14631
  npm: NPMProxy,
14634
14632
  pnpm: PNPMProxy,
14635
- yarn: Yarn1Proxy,
14633
+ yarn1: Yarn1Proxy,
14636
14634
  yarn2: Yarn2Proxy,
14637
14635
  bun: BUNProxy
14638
14636
  };
@@ -14651,7 +14649,7 @@ var JsPackageManagerFactory = class {
14651
14649
  if (pkgMgrName === "npm")
14652
14650
  return "npm" /* NPM */;
14653
14651
  if (pkgMgrName === "yarn")
14654
- return pkgMgrVersion?.startsWith("1.") ? "yarn" /* YARN1 */ : "yarn2" /* YARN2 */;
14652
+ return pkgMgrVersion?.startsWith("1.") ? "yarn1" /* YARN1 */ : "yarn2" /* YARN2 */;
14655
14653
  }
14656
14654
  }
14657
14655
  };
@@ -14722,7 +14720,7 @@ async function scanAndTransformFiles({
14722
14720
  initialValue: defaultGlob
14723
14721
  });
14724
14722
  logger13.log("Scanning for affected files...");
14725
- let globby = (await import("./globby-GR24TGSK.js")).globby, sourceFiles = await globby([glob2], {
14723
+ let globby = (await import("./globby-D4FPSHY2.js")).globby, sourceFiles = await globby([glob2], {
14726
14724
  ...commonGlobOptions(""),
14727
14725
  ignore: ["**/node_modules/**"],
14728
14726
  dot: !0,
@@ -14743,7 +14741,7 @@ function transformImports(source, renamedImports) {
14743
14741
  return hasChanges ? transformed : null;
14744
14742
  }
14745
14743
  var transformImportFiles = async (files, renamedImports, dryRun) => {
14746
- let errors = [], { default: pLimit } = await import("./p-limit-K4FZHG2F.js"), limit = pLimit(10);
14744
+ let errors = [], { default: pLimit } = await import("./p-limit-CYQOFYPV.js"), limit = pLimit(10);
14747
14745
  return await Promise.all(
14748
14746
  files.map(
14749
14747
  (file) => limit(async () => {
@@ -14758,19 +14756,6 @@ var transformImportFiles = async (files, renamedImports, dryRun) => {
14758
14756
  ), errors;
14759
14757
  };
14760
14758
 
14761
- // src/common/utils/utils.ts
14762
- var groupBy = (items, keySelector) => items.reduce(
14763
- (acc, item, index) => {
14764
- let key = keySelector(item, index);
14765
- return acc[key] ??= [], acc[key].push(item), acc;
14766
- },
14767
- {}
14768
- );
14769
- function invariant2(condition, message) {
14770
- if (!condition)
14771
- throw new Error((typeof message == "function" ? message() : message) ?? "Invariant failed");
14772
- }
14773
-
14774
14759
  export {
14775
14760
  supportedExtensions,
14776
14761
  getInterpretedFile,
@@ -14869,7 +14854,5 @@ export {
14869
14854
  executeNodeCommand,
14870
14855
  JsPackageManagerFactory,
14871
14856
  scanAndTransformFiles,
14872
- transformImportFiles,
14873
- groupBy,
14874
- invariant2 as invariant
14857
+ transformImportFiles
14875
14858
  };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __toESM
15
- } from "./chunk-WC2YEQHJ.js";
15
+ } from "./chunk-JMP7YFX2.js";
16
16
 
17
17
  // ../node_modules/balanced-match/index.js
18
18
  var require_balanced_match = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration