storybook 10.1.0-alpha.12 → 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 (99) hide show
  1. package/dist/_browser-chunks/{chunk-74YHFU5B.js → chunk-2XZMBGTA.js} +1 -1
  2. package/dist/_browser-chunks/{chunk-EBHB6RPS.js → chunk-FQ7SLVLR.js} +6 -1
  3. package/dist/_browser-chunks/{chunk-X3DUQ5RA.js → chunk-GFY5R5EY.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
  5. package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
  6. package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
  7. package/dist/_node-chunks/{builder-manager-YUOHSIUB.js → builder-manager-FQ5J6V3U.js} +32 -22
  8. package/dist/_node-chunks/{chunk-B6JWY6PC.js → camelcase-VGUYV77Z.js} +8 -8
  9. package/dist/_node-chunks/{chunk-FZLRAH4N.js → chunk-2JR3QBT2.js} +7 -7
  10. package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
  11. package/dist/_node-chunks/{chunk-E5FJS66Z.js → chunk-4ZFHN3ZY.js} +6 -6
  12. package/dist/_node-chunks/{chunk-5HV3B5OP.js → chunk-63PL4NNE.js} +1104 -13
  13. package/dist/_node-chunks/{chunk-NAOYEL54.js → chunk-A4KENTXT.js} +7 -7
  14. package/dist/_node-chunks/{chunk-4FT2DHGE.js → chunk-ALIA3J6S.js} +44 -10
  15. package/dist/_node-chunks/{chunk-WFLWJO24.js → chunk-C2HKH2XQ.js} +5710 -2414
  16. package/dist/_node-chunks/{chunk-WA6KZQZ2.js → chunk-DQNBAQYT.js} +6 -6
  17. package/dist/_node-chunks/{chunk-JARUEMEP.js → chunk-F74UHHR6.js} +7 -7
  18. package/dist/_node-chunks/{chunk-WUXQMQCB.js → chunk-H5XWXVWR.js} +6 -6
  19. package/dist/_node-chunks/{chunk-OP3INKUD.js → chunk-JMP7YFX2.js} +6 -6
  20. package/dist/_node-chunks/{chunk-DWXTZT3D.js → chunk-JZR4DHG2.js} +19 -7
  21. package/dist/_node-chunks/{chunk-QCO2ZM7F.js → chunk-KEA7CVMZ.js} +122 -32
  22. package/dist/_node-chunks/{chunk-DUXPWBOK.js → chunk-KF3WTAEP.js} +7 -7
  23. package/dist/_node-chunks/{chunk-2D2IODUU.js → chunk-LPPM7L5D.js} +51 -71
  24. package/dist/_node-chunks/{chunk-2DMESZFJ.js → chunk-MJUDR7HQ.js} +7 -7
  25. package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
  26. package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
  27. package/dist/_node-chunks/{chunk-5KLIDWFN.js → chunk-Q2QUNQK6.js} +7 -7
  28. package/dist/_node-chunks/{chunk-EZWWR7AR.js → chunk-TMCKISJR.js} +101 -118
  29. package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
  30. package/dist/_node-chunks/{chunk-CZ5GHJCC.js → chunk-V7CXWJXC.js} +7 -7
  31. package/dist/_node-chunks/chunk-W4F3T6CY.js +3781 -0
  32. package/dist/_node-chunks/{chunk-SEMIAAWG.js → chunk-WACDSFMO.js} +9 -9
  33. package/dist/_node-chunks/{chunk-A4APXFQ2.js → chunk-WVXZFQQU.js} +14 -8
  34. package/dist/_node-chunks/chunk-XBPE4PT7.js +78 -0
  35. package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
  36. package/dist/_node-chunks/{chunk-XXPJ7XR3.js → chunk-ZGZKNZ5S.js} +6 -6
  37. package/dist/_node-chunks/{dist-DS2B5A3J.js → dist-DR3AP3RJ.js} +9 -9
  38. package/dist/_node-chunks/{globby-6THB7HVX.js → globby-D4FPSHY2.js} +9 -9
  39. package/dist/_node-chunks/{lib-5NKX4YGG.js → lib-ZEFOVNTK.js} +7 -7
  40. package/dist/_node-chunks/{mdx-N42X6CFJ-ZLT3QOFF.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
  41. package/dist/_node-chunks/{p-limit-PDMWNG7W.js → p-limit-CYQOFYPV.js} +7 -7
  42. package/dist/babel/index.js +10 -11
  43. package/dist/bin/core.js +33 -26
  44. package/dist/bin/dispatcher.js +31 -20
  45. package/dist/bin/loader.js +10 -13
  46. package/dist/cli/index.d.ts +1479 -133
  47. package/dist/cli/index.js +30 -5159
  48. package/dist/common/index.d.ts +139 -62
  49. package/dist/common/index.js +66 -51
  50. package/dist/components/index.d.ts +136 -26
  51. package/dist/components/index.js +3163 -2859
  52. package/dist/core-server/index.d.ts +3 -2
  53. package/dist/core-server/index.js +112 -1486
  54. package/dist/core-server/presets/common-manager.js +5 -5
  55. package/dist/core-server/presets/common-override-preset.js +9 -9
  56. package/dist/core-server/presets/common-preset.js +272 -81
  57. package/dist/csf/index.js +2 -2
  58. package/dist/csf-tools/index.js +9 -9
  59. package/dist/manager/globals-runtime.js +21557 -21133
  60. package/dist/manager/manager-stores.d.ts +1 -0
  61. package/dist/manager/manager-stores.js +23 -0
  62. package/dist/manager/runtime.js +6695 -720
  63. package/dist/manager-api/index.d.ts +1802 -1
  64. package/dist/manager-api/index.js +105 -11
  65. package/dist/manager-errors.d.ts +6 -0
  66. package/dist/manager-errors.js +2 -2
  67. package/dist/mocking-utils/index.d.ts +1126 -0
  68. package/dist/{_node-chunks/chunk-ZXSD6L3S.js → mocking-utils/index.js} +441 -16
  69. package/dist/node-logger/index.d.ts +192 -24
  70. package/dist/node-logger/index.js +23 -3148
  71. package/dist/preview/runtime.js +35 -3
  72. package/dist/preview-api/index.d.ts +69 -68
  73. package/dist/preview-api/index.js +2 -2
  74. package/dist/preview-errors.d.ts +6 -0
  75. package/dist/preview-errors.js +2 -2
  76. package/dist/server-errors.d.ts +31 -1
  77. package/dist/server-errors.js +17 -10
  78. package/dist/telemetry/index.d.ts +24 -3
  79. package/dist/telemetry/index.js +25 -24
  80. package/dist/types/index.d.ts +71 -8
  81. package/dist/types/index.js +25 -1
  82. package/package.json +11 -9
  83. package/dist/_node-chunks/camelcase-JREIL7NV.js +0 -18
  84. package/dist/_node-chunks/chunk-FDXFVHIL.js +0 -1114
  85. package/dist/_node-chunks/chunk-HZG65SU3.js +0 -34
  86. package/dist/_node-chunks/chunk-IXVYNBMD.js +0 -18
  87. package/dist/_node-chunks/chunk-LIH7MTP7.js +0 -3214
  88. package/dist/_node-chunks/chunk-N5GIRUP5.js +0 -1047
  89. package/dist/_node-chunks/chunk-O5DA7YLO.js +0 -3171
  90. package/dist/_node-chunks/chunk-QYQIZBS6.js +0 -26
  91. package/dist/_node-chunks/chunk-TS2UUH2J.js +0 -301
  92. package/dist/_node-chunks/chunk-Y4E6IGQF.js +0 -61
  93. package/dist/_node-chunks/chunk-ZL3AFKRX.js +0 -1029
  94. package/dist/_node-chunks/plugin-6XMWOGPO.js +0 -123
  95. package/dist/_node-chunks/plugin-LTOXVT6A.js +0 -109
  96. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-2SFE5LQS.js +0 -46582
  97. package/dist/_node-chunks/webpack-mock-plugin-CX5J2U56.js +0 -92
  98. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -32
  99. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -28
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorybookError
3
- } from "./chunk-EBHB6RPS.js";
3
+ } from "./chunk-FQ7SLVLR.js";
4
4
  import {
5
5
  dedent
6
6
  } from "./chunk-JP7NCOJX.js";
@@ -26,7 +26,12 @@ var StorybookError = class _StorybookError extends Error {
26
26
  this.data = {};
27
27
  /** Flag used to easily determine if the error originates from Storybook. */
28
28
  this.fromStorybook = !0;
29
- this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.name = props.name;
29
+ /**
30
+ * Flag used to determine if the error is handled by us and should therefore not be shown to the
31
+ * user.
32
+ */
33
+ this.isHandledError = !1;
34
+ this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name;
30
35
  }
31
36
  get fullErrorCode() {
32
37
  return parseErrorCode({ code: this.code, category: this.category });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorybookError
3
- } from "./chunk-EBHB6RPS.js";
3
+ } from "./chunk-FQ7SLVLR.js";
4
4
 
5
5
  // src/manager-errors.ts
6
6
  var Category = /* @__PURE__ */ ((Category2) => (Category2.MANAGER_UNCAUGHT = "MANAGER_UNCAUGHT", Category2.MANAGER_UI = "MANAGER_UI", Category2.MANAGER_API = "MANAGER_API", Category2.MANAGER_CLIENT_LOGGER = "MANAGER_CLIENT-LOGGER", Category2.MANAGER_CHANNELS = "MANAGER_CHANNELS", Category2.MANAGER_CORE_EVENTS = "MANAGER_CORE-EVENTS", Category2.MANAGER_ROUTER = "MANAGER_ROUTER", Category2.MANAGER_THEMING = "MANAGER_THEMING", Category2))(Category || {}), ProviderDoesNotExtendBaseProviderError = class extends StorybookError {
@@ -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_57ru1wfqqjv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_57ru1wfqqjv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_57ru1wfqqjv 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_57ru1wfqqjv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_57ru1wfqqjv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_57ru1wfqqjv.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-XXPJ7XR3.js";
16
+ } from "./chunk-ZGZKNZ5S.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-CZ5GHJCC.js";
19
+ } from "./chunk-V7CXWJXC.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-A4APXFQ2.js";
23
+ } from "./chunk-WVXZFQQU.js";
24
24
  import {
25
25
  join,
26
26
  parse
27
- } from "./chunk-WA6KZQZ2.js";
27
+ } from "./chunk-DQNBAQYT.js";
28
28
  import {
29
29
  slash
30
- } from "./chunk-E5FJS66Z.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-OP3INKUD.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",
@@ -1781,7 +1786,15 @@ var exports_default = {
1781
1786
  "stringifyQuery",
1782
1787
  "useNavigate"
1783
1788
  ],
1784
- "storybook/internal/types": ["Addon_TypesEnum"]
1789
+ "storybook/internal/types": [
1790
+ "Addon_TypesEnum",
1791
+ "CoreWebpackCompiler",
1792
+ "Feature",
1793
+ "SupportedBuilder",
1794
+ "SupportedFramework",
1795
+ "SupportedLanguage",
1796
+ "SupportedRenderer"
1797
+ ]
1785
1798
  };
1786
1799
 
1787
1800
  // src/manager/globals/globals.ts
@@ -1911,16 +1924,13 @@ function sanitizePath(file, addonsDir) {
1911
1924
 
1912
1925
  // src/builder-manager/utils/framework.ts
1913
1926
  import { sep } from "node:path";
1914
- import {
1915
- extractProperRendererNameFromFramework,
1916
- getFrameworkName
1917
- } from "storybook/internal/common";
1927
+ import { extractRenderer, getFrameworkName } from "storybook/internal/common";
1918
1928
  var pluckNameFromConfigProperty = (property) => {
1919
1929
  if (property)
1920
1930
  return typeof property == "string" ? property : property.name;
1921
1931
  }, normalizePath = (packagePath) => packagePath.replaceAll(sep, "/"), pluckStorybookPackageFromPath = (packagePath) => normalizePath(packagePath).match(/(@storybook\/.*)$/)?.[1], pluckThirdPartyPackageFromPath = (packagePath) => normalizePath(packagePath).split("node_modules/")[1] ?? packagePath, buildFrameworkGlobalsFromOptions = async (options) => {
1922
- let globals = {}, { builder: builder2 } = await options.presets.apply("core"), frameworkName = await getFrameworkName(options);
1923
- await extractProperRendererNameFromFramework(frameworkName) && (globals.STORYBOOK_RENDERER = await extractProperRendererNameFromFramework(frameworkName) ?? void 0);
1932
+ let globals = {}, { builder: builder2 } = await options.presets.apply("core"), frameworkName = await getFrameworkName(options), rendererName = await extractRenderer(frameworkName);
1933
+ rendererName && (globals.STORYBOOK_RENDERER = rendererName ?? void 0);
1924
1934
  let resolvedPreviewBuilder = pluckNameFromConfigProperty(builder2);
1925
1935
  resolvedPreviewBuilder && (globals.STORYBOOK_BUILDER = pluckStorybookPackageFromPath(resolvedPreviewBuilder) ?? pluckThirdPartyPackageFromPath(resolvedPreviewBuilder));
1926
1936
  let framework = pluckNameFromConfigProperty(await options.presets.apply("framework"));
@@ -2038,7 +2048,7 @@ var CORE_DIR_ORIGIN = join(resolvePackageDir("storybook"), "dist/manager"), isRo
2038
2048
  options,
2039
2049
  router
2040
2050
  }) {
2041
- options.quiet || logger.info("=> Starting manager..");
2051
+ options.quiet || logger.info("Starting...");
2042
2052
  let {
2043
2053
  config,
2044
2054
  favicon,
@@ -2107,7 +2117,7 @@ var CORE_DIR_ORIGIN = join(resolvePackageDir("storybook"), "dist/manager"), isRo
2107
2117
  }, builder = async function* ({ startTime, options }) {
2108
2118
  if (!options.outputDir)
2109
2119
  throw new Error("outputDir is required");
2110
- logger.info("=> Building manager..");
2120
+ logger.step("Building manager..");
2111
2121
  let {
2112
2122
  config,
2113
2123
  customHead,
@@ -2150,7 +2160,7 @@ var CORE_DIR_ORIGIN = join(resolvePackageDir("storybook"), "dist/manager"), isRo
2150
2160
  options,
2151
2161
  globals
2152
2162
  );
2153
- return await Promise.all([writeFile3(join(options.outputDir, "index.html"), html), managerFiles]), logger.trace({ message: "=> Manager built", time: process.hrtime(startTime) }), {
2163
+ return await Promise.all([writeFile3(join(options.outputDir, "index.html"), html), managerFiles]), logger.trace({ message: "Manager built", time: process.hrtime(startTime) }), {
2154
2164
  toJson: () => ({})
2155
2165
  };
2156
2166
  }, bail = async () => {
@@ -1,14 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_57ru1wfqqjv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_57ru1wfqqjv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_57ru1wfqqjv 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_57ru1wfqqjv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_57ru1wfqqjv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_57ru1wfqqjv.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-JMP7YFX2.js";
12
13
 
13
14
  // ../node_modules/camelcase/index.js
14
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) => {
@@ -31,7 +32,6 @@ function camelCase(input, options) {
31
32
  let toLowerCase = options.locale === !1 ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale), toUpperCase = options.locale === !1 ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
32
33
  return input.length === 1 ? SEPARATORS.test(input) ? "" : options.pascalCase ? toUpperCase(input) : toLowerCase(input) : (input !== toLowerCase(input) && (input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase)), input = input.replace(LEADING_SEPARATORS, ""), input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input), options.pascalCase && (input = toUpperCase(input.charAt(0)) + input.slice(1)), postProcess(input, toUpperCase));
33
34
  }
34
-
35
35
  export {
36
- camelCase
36
+ camelCase as default
37
37
  };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_57ru1wfqqjv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_57ru1wfqqjv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_57ru1wfqqjv 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_57ru1wfqqjv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_57ru1wfqqjv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_57ru1wfqqjv.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_57ru1wfqqjv.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-OP3INKUD.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_57ru1wfqqjv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_57ru1wfqqjv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_57ru1wfqqjv 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_57ru1wfqqjv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_57ru1wfqqjv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_57ru1wfqqjv.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