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,3 +1,7 @@
1
+ import {
2
+ getControlId,
3
+ getControlSetterButtonId
4
+ } from "../../_browser-chunks/chunk-2FRVAXCZ.js";
1
5
  import {
2
6
  _defineProperty,
3
7
  _objectWithoutProperties
@@ -7,10 +11,6 @@ import {
7
11
  dequal,
8
12
  uniq
9
13
  } from "../../_browser-chunks/chunk-XJNX76GA.js";
10
- import {
11
- getControlId,
12
- getControlSetterButtonId
13
- } from "../../_browser-chunks/chunk-2FRVAXCZ.js";
14
14
  import {
15
15
  ADDON_ID as ADDON_ID3,
16
16
  ADDON_ID2 as ADDON_ID4,
@@ -4886,7 +4886,7 @@ var ADDON_ID8 = "storybook/a11y", PANEL_ID3 = `${ADDON_ID8}/panel`;
4886
4886
  var UI_STATE_ID = `${ADDON_ID8}/ui`, RESULT = `${ADDON_ID8}/result`, REQUEST = `${ADDON_ID8}/request`, RUNNING = `${ADDON_ID8}/running`, ERROR2 = `${ADDON_ID8}/error`, MANUAL = `${ADDON_ID8}/manual`, SELECT = `${ADDON_ID8}/select`, DOCUMENTATION_LINK2 = "writing-tests/accessibility-testing", DOCUMENTATION_DISCREPANCY_LINK2 = `${DOCUMENTATION_LINK2}#why-are-my-tests-failing-in-different-environments`;
4887
4887
 
4888
4888
  // ../addons/vitest/src/constants.ts
4889
- var ADDON_ID9 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID9}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = "STORYBOOK_ADDON_TEST_CHANNEL";
4889
+ var ADDON_ID9 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID9}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = `${ADDON_ID9}/channel`;
4890
4890
  var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`;
4891
4891
  var storeOptions = {
4892
4892
  id: ADDON_ID9,
@@ -1,21 +1,21 @@
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
12
  import {
13
13
  glob
14
- } from "../../_node-chunks/chunk-JARUEMEP.js";
14
+ } from "../../_node-chunks/chunk-F74UHHR6.js";
15
15
  import {
16
16
  slash
17
- } from "../../_node-chunks/chunk-E5FJS66Z.js";
18
- import "../../_node-chunks/chunk-OP3INKUD.js";
17
+ } from "../../_node-chunks/chunk-4ZFHN3ZY.js";
18
+ import "../../_node-chunks/chunk-JMP7YFX2.js";
19
19
 
20
20
  // src/core-server/utils/remove-mdx-entries.ts
21
21
  import { isAbsolute, join, relative } from "node:path";
@@ -1,48 +1,57 @@
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 "../../_node-chunks/chunk-TWK7AR3U.js";
12
13
  import {
13
14
  parseStaticDir,
14
- sendTelemetryError
15
- } from "../../_node-chunks/chunk-QCO2ZM7F.js";
16
- import "../../_node-chunks/chunk-CZ5GHJCC.js";
15
+ sendTelemetryError,
16
+ throttle
17
+ } from "../../_node-chunks/chunk-KEA7CVMZ.js";
18
+ import "../../_node-chunks/chunk-V7CXWJXC.js";
19
+ import "../../_node-chunks/chunk-3EBH66BB.js";
20
+ import "../../_node-chunks/chunk-XBPE4PT7.js";
17
21
  import {
18
22
  getLastEvents,
19
23
  getSessionId
20
- } from "../../_node-chunks/chunk-WUXQMQCB.js";
24
+ } from "../../_node-chunks/chunk-H5XWXVWR.js";
25
+ import {
26
+ globalSettings
27
+ } from "../../_node-chunks/chunk-ALIA3J6S.js";
21
28
  import {
22
29
  invariant
23
- } from "../../_node-chunks/chunk-QYQIZBS6.js";
30
+ } from "../../_node-chunks/chunk-JZR4DHG2.js";
24
31
  import {
25
32
  resolvePackageDir
26
- } from "../../_node-chunks/chunk-A4APXFQ2.js";
33
+ } from "../../_node-chunks/chunk-WVXZFQQU.js";
34
+ import "../../_node-chunks/chunk-NZBK3DSJ.js";
27
35
  import {
28
36
  isAbsolute,
29
37
  join
30
- } from "../../_node-chunks/chunk-WA6KZQZ2.js";
31
- import "../../_node-chunks/chunk-LIH7MTP7.js";
38
+ } from "../../_node-chunks/chunk-DQNBAQYT.js";
32
39
  import {
33
40
  loadConfig
34
- } from "../../_node-chunks/chunk-SEMIAAWG.js";
41
+ } from "../../_node-chunks/chunk-WACDSFMO.js";
35
42
  import {
36
43
  require_dist
37
- } from "../../_node-chunks/chunk-DUXPWBOK.js";
44
+ } from "../../_node-chunks/chunk-KF3WTAEP.js";
45
+ import "../../_node-chunks/chunk-63PL4NNE.js";
46
+ import "../../_node-chunks/chunk-2JR3QBT2.js";
38
47
  import {
39
48
  require_picocolors
40
- } from "../../_node-chunks/chunk-NAOYEL54.js";
49
+ } from "../../_node-chunks/chunk-A4KENTXT.js";
41
50
  import {
42
51
  __commonJS,
43
52
  __require,
44
53
  __toESM
45
- } from "../../_node-chunks/chunk-OP3INKUD.js";
54
+ } from "../../_node-chunks/chunk-JMP7YFX2.js";
46
55
 
47
56
  // ../node_modules/shell-quote/quote.js
48
57
  var require_quote = __commonJS({
@@ -468,11 +477,9 @@ var require_launch_editor = __commonJS({
468
477
  // src/core-server/presets/common-preset.ts
469
478
  import { existsSync as existsSync3 } from "node:fs";
470
479
  import { readFile as readFile3 } from "node:fs/promises";
471
- import { fileURLToPath } from "node:url";
472
480
  import { optionalEnvToBoolean } from "storybook/internal/common";
473
481
  import {
474
482
  JsPackageManagerFactory,
475
- findConfigFile as findConfigFile3,
476
483
  getDirectoryFromWorkingDir,
477
484
  getPreviewBodyTemplate,
478
485
  getPreviewHeadTemplate,
@@ -480,8 +487,8 @@ import {
480
487
  removeAddon as removeAddonBase
481
488
  } from "storybook/internal/common";
482
489
  import { readCsf as readCsf2 } from "storybook/internal/csf-tools";
483
- import { logger as logger3 } from "storybook/internal/node-logger";
484
- import { telemetry as telemetry7 } from "storybook/internal/telemetry";
490
+ import { logger as logger4 } from "storybook/internal/node-logger";
491
+ import { telemetry as telemetry8 } from "storybook/internal/telemetry";
485
492
  var import_ts_dedent4 = __toESM(require_dist(), 1);
486
493
 
487
494
  // src/core-server/server-channel/create-new-story-channel.ts
@@ -500,7 +507,7 @@ import { existsSync } from "node:fs";
500
507
  import { readFile } from "node:fs/promises";
501
508
  import { basename, dirname, extname, join as join2 } from "node:path";
502
509
  import {
503
- extractProperFrameworkName,
510
+ extractFrameworkPackageName,
504
511
  findConfigFile,
505
512
  getFrameworkName,
506
513
  getProjectRoot
@@ -511,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
511
518
  var import_ts_dedent = __toESM(require_dist(), 1);
512
519
 
513
520
  // src/core-server/utils/get-component-variable-name.ts
514
- var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-JREIL7NV.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
521
+ var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-VGUYV77Z.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
515
522
 
516
523
  // src/core-server/utils/new-story-templates/csf-factory-template.ts
517
524
  async function getCsfFactoryTemplateForNewStoryFile(data) {
@@ -574,7 +581,7 @@ async function getNewStoryFile({
574
581
  componentIsDefaultExport,
575
582
  componentExportCount
576
583
  }, options) {
577
- let frameworkPackageName = await getFrameworkName(options), sanitizedFrameworkPackageName = extractProperFrameworkName(frameworkPackageName), base = basename(componentFilePath), extension = extname(componentFilePath), basenameWithoutExtension = base.replace(extension, ""), dir = dirname(componentFilePath), { storyFileName, isTypescript, storyFileExtension } = getStoryMetadata(componentFilePath), storyFileNameWithExtension = `${storyFileName}.${storyFileExtension}`, alternativeStoryFileNameWithExtension = `${basenameWithoutExtension}.${componentExportName}.stories.${storyFileExtension}`, exportedStoryName = "Default", useCsfFactory = !1;
584
+ let frameworkPackageName = await getFrameworkName(options), sanitizedFrameworkPackageName = extractFrameworkPackageName(frameworkPackageName), base = basename(componentFilePath), extension = extname(componentFilePath), basenameWithoutExtension = base.replace(extension, ""), dir = dirname(componentFilePath), { storyFileName, isTypescript, storyFileExtension } = getStoryMetadata(componentFilePath), storyFileNameWithExtension = `${storyFileName}.${storyFileExtension}`, alternativeStoryFileNameWithExtension = `${basenameWithoutExtension}.${componentExportName}.stories.${storyFileExtension}`, exportedStoryName = "Default", useCsfFactory = !1;
578
585
  try {
579
586
  let previewConfig = findConfigFile("preview", options.configDir);
580
587
  if (previewConfig) {
@@ -665,11 +672,7 @@ function initCreateNewStoryChannel(channel, options, coreOptions) {
665
672
  // src/core-server/server-channel/file-search-channel.ts
666
673
  import { readFile as readFile2 } from "node:fs/promises";
667
674
  import { dirname as dirname2, join as join3 } from "node:path";
668
- import {
669
- extractProperRendererNameFromFramework,
670
- getFrameworkName as getFrameworkName2,
671
- getProjectRoot as getProjectRoot2
672
- } from "storybook/internal/common";
675
+ import { extractRenderer, getFrameworkName as getFrameworkName2, getProjectRoot as getProjectRoot2 } from "storybook/internal/common";
673
676
  import {
674
677
  FILE_COMPONENT_SEARCH_REQUEST,
675
678
  FILE_COMPONENT_SEARCH_RESPONSE
@@ -780,7 +783,7 @@ async function searchFiles({
780
783
  ignoredFiles = IGNORED_FILES,
781
784
  fileExtensions = FILE_EXTENSIONS
782
785
  }) {
783
- let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-6THB7HVX.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
786
+ let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-D4FPSHY2.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
784
787
  `**/*${searchQuery}*.${fileExtensionsPattern}`,
785
788
  `**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
786
789
  ];
@@ -802,9 +805,7 @@ async function initFileSearchChannel(channel, options, coreOptions) {
802
805
  try {
803
806
  if (!searchQuery)
804
807
  return;
805
- let frameworkName = await getFrameworkName2(options), rendererName = await extractProperRendererNameFromFramework(
806
- frameworkName
807
- ), entries = (await searchFiles({
808
+ let frameworkName = await getFrameworkName2(options), rendererName = await extractRenderer(frameworkName), entries = (await searchFiles({
808
809
  searchQuery,
809
810
  cwd: getProjectRoot2()
810
811
  })).map(async (file) => {
@@ -914,6 +915,228 @@ function initPreviewInitializedChannel(channel, options, _coreConfig) {
914
915
  });
915
916
  }
916
917
 
918
+ // src/core-server/utils/checklist.ts
919
+ import { createFileSystemCache, resolvePathInStorybookCache } from "storybook/internal/common";
920
+ import { experimental_UniversalStore } from "storybook/internal/core-server";
921
+ import { logger } from "storybook/internal/node-logger";
922
+ import { telemetry as telemetry5 } from "storybook/internal/telemetry";
923
+
924
+ // ../node_modules/dequal/dist/index.mjs
925
+ var has = Object.prototype.hasOwnProperty;
926
+ function find(iter, tar, key) {
927
+ for (key of iter.keys())
928
+ if (dequal(key, tar)) return key;
929
+ }
930
+ function dequal(foo, bar) {
931
+ var ctor, len, tmp;
932
+ if (foo === bar) return !0;
933
+ if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
934
+ if (ctor === Date) return foo.getTime() === bar.getTime();
935
+ if (ctor === RegExp) return foo.toString() === bar.toString();
936
+ if (ctor === Array) {
937
+ if ((len = foo.length) === bar.length)
938
+ for (; len-- && dequal(foo[len], bar[len]); ) ;
939
+ return len === -1;
940
+ }
941
+ if (ctor === Set) {
942
+ if (foo.size !== bar.size)
943
+ return !1;
944
+ for (len of foo)
945
+ if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1;
946
+ return !0;
947
+ }
948
+ if (ctor === Map) {
949
+ if (foo.size !== bar.size)
950
+ return !1;
951
+ for (len of foo)
952
+ if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp)))
953
+ return !1;
954
+ return !0;
955
+ }
956
+ if (ctor === ArrayBuffer)
957
+ foo = new Uint8Array(foo), bar = new Uint8Array(bar);
958
+ else if (ctor === DataView) {
959
+ if ((len = foo.byteLength) === bar.byteLength)
960
+ for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ;
961
+ return len === -1;
962
+ }
963
+ if (ArrayBuffer.isView(foo)) {
964
+ if ((len = foo.byteLength) === bar.byteLength)
965
+ for (; len-- && foo[len] === bar[len]; ) ;
966
+ return len === -1;
967
+ }
968
+ if (!ctor || typeof foo == "object") {
969
+ len = 0;
970
+ for (ctor in foo)
971
+ if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1;
972
+ return Object.keys(bar).length === len;
973
+ }
974
+ }
975
+ return foo !== foo && bar !== bar;
976
+ }
977
+
978
+ // ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
979
+ function isPrimitive(value) {
980
+ return value == null || typeof value != "object" && typeof value != "function";
981
+ }
982
+
983
+ // ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
984
+ function isTypedArray(x) {
985
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
986
+ }
987
+
988
+ // ../node_modules/es-toolkit/dist/object/clone.mjs
989
+ function clone(obj) {
990
+ if (isPrimitive(obj))
991
+ return obj;
992
+ if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer)
993
+ return obj.slice(0);
994
+ let prototype = Object.getPrototypeOf(obj), Constructor = prototype.constructor;
995
+ if (obj instanceof Date || obj instanceof Map || obj instanceof Set)
996
+ return new Constructor(obj);
997
+ if (obj instanceof RegExp) {
998
+ let newRegExp = new Constructor(obj);
999
+ return newRegExp.lastIndex = obj.lastIndex, newRegExp;
1000
+ }
1001
+ if (obj instanceof DataView)
1002
+ return new Constructor(obj.buffer.slice(0));
1003
+ if (obj instanceof Error) {
1004
+ let newError = new Constructor(obj.message);
1005
+ return newError.stack = obj.stack, newError.name = obj.name, newError.cause = obj.cause, newError;
1006
+ }
1007
+ if (typeof File < "u" && obj instanceof File)
1008
+ return new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified });
1009
+ if (typeof obj == "object") {
1010
+ let newObject = Object.create(prototype);
1011
+ return Object.assign(newObject, obj);
1012
+ }
1013
+ return obj;
1014
+ }
1015
+
1016
+ // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
1017
+ function isPlainObject(value) {
1018
+ if (!value || typeof value != "object")
1019
+ return !1;
1020
+ let proto = Object.getPrototypeOf(value);
1021
+ return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
1022
+ }
1023
+
1024
+ // ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
1025
+ function isUnsafeProperty(key) {
1026
+ return key === "__proto__";
1027
+ }
1028
+
1029
+ // ../node_modules/es-toolkit/dist/object/mergeWith.mjs
1030
+ function mergeWith(target, source, merge2) {
1031
+ let sourceKeys = Object.keys(source);
1032
+ for (let i = 0; i < sourceKeys.length; i++) {
1033
+ let key = sourceKeys[i];
1034
+ if (isUnsafeProperty(key))
1035
+ continue;
1036
+ let sourceValue = source[key], targetValue = target[key], merged = merge2(targetValue, sourceValue, key, target, source);
1037
+ merged !== void 0 ? target[key] = merged : Array.isArray(sourceValue) ? Array.isArray(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : target[key] = mergeWith([], sourceValue, merge2) : isPlainObject(sourceValue) ? isPlainObject(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : target[key] = mergeWith({}, sourceValue, merge2) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
1038
+ }
1039
+ return target;
1040
+ }
1041
+
1042
+ // ../node_modules/es-toolkit/dist/string/words.mjs
1043
+ var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
1044
+
1045
+ // ../node_modules/es-toolkit/dist/object/toMerged.mjs
1046
+ function toMerged(target, source) {
1047
+ return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
1048
+ if (Array.isArray(sourceValue))
1049
+ return Array.isArray(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith([], sourceValue, mergeRecursively);
1050
+ if (isPlainObject(sourceValue))
1051
+ return isPlainObject(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith({}, sourceValue, mergeRecursively);
1052
+ });
1053
+ }
1054
+
1055
+ // src/shared/checklist-store/checklistData.state.ts
1056
+ var initialState = {
1057
+ items: {
1058
+ accessibilityTests: { status: "open" },
1059
+ autodocs: { status: "open" },
1060
+ ciTests: { status: "open" },
1061
+ controls: { status: "open" },
1062
+ coverage: { status: "open" },
1063
+ guidedTour: { status: "open" },
1064
+ installA11y: { status: "open" },
1065
+ installChromatic: { status: "open" },
1066
+ installDocs: { status: "open" },
1067
+ installVitest: { status: "open" },
1068
+ mdxDocs: { status: "open" },
1069
+ moreComponents: { status: "open" },
1070
+ moreStories: { status: "open" },
1071
+ onboardingSurvey: { status: "open" },
1072
+ organizeStories: { status: "open" },
1073
+ publishStorybook: { status: "open" },
1074
+ renderComponent: { status: "open" },
1075
+ runTests: { status: "open" },
1076
+ viewports: { status: "open" },
1077
+ visualTests: { status: "open" },
1078
+ whatsNewStorybook10: { status: "open" },
1079
+ writeInteractions: { status: "open" }
1080
+ },
1081
+ widget: {}
1082
+ };
1083
+
1084
+ // src/shared/checklist-store/index.ts
1085
+ var UNIVERSAL_CHECKLIST_STORE_OPTIONS = {
1086
+ id: "storybook/checklist",
1087
+ initialState
1088
+ };
1089
+
1090
+ // src/core-server/utils/checklist.ts
1091
+ async function initializeChecklist() {
1092
+ try {
1093
+ let store = experimental_UniversalStore.create({
1094
+ ...UNIVERSAL_CHECKLIST_STORE_OPTIONS,
1095
+ leader: !0
1096
+ }), cache = createFileSystemCache({
1097
+ basePath: resolvePathInStorybookCache("checklist"),
1098
+ ns: "storybook"
1099
+ }), [[userState, saveUserState], [projectState, saveProjectState]] = await Promise.all([
1100
+ globalSettings().then((settings) => {
1101
+ let save = throttle(() => settings.save(), 1e3), state = {
1102
+ items: settings.value.checklist?.items ?? {},
1103
+ widget: settings.value.checklist?.widget ?? {}
1104
+ };
1105
+ return [state, ({
1106
+ items = state.items,
1107
+ widget = state.widget
1108
+ }) => {
1109
+ settings.value.checklist = { items, widget }, save();
1110
+ }];
1111
+ }),
1112
+ cache.get("state").then((cachedState) => [{ items: cachedState?.items ?? {} }, ({ items }) => cache.set("state", { items })])
1113
+ ]);
1114
+ store.setState(
1115
+ (value) => ({
1116
+ ...toMerged(value, toMerged(userState, projectState)),
1117
+ loaded: !0
1118
+ })
1119
+ ), store.onStateChange((state, previousState) => {
1120
+ let projectValues = {}, userValues = {};
1121
+ Object.entries(state.items).forEach(([id, { status, mutedAt }]) => {
1122
+ status === "done" ? projectValues[id] = { status } : (status === "accepted" || status === "skipped") && (userValues[id] = { status }), mutedAt && (userValues[id] = {
1123
+ ...userValues[id],
1124
+ mutedAt
1125
+ });
1126
+ }), saveProjectState({ items: projectValues }), saveUserState({ items: userValues, widget: state.widget });
1127
+ let changedValues = Object.entries(state.items).filter(
1128
+ ([key, value]) => value !== previousState.items[key]
1129
+ );
1130
+ telemetry5("onboarding-checklist", {
1131
+ ...changedValues.length > 0 ? { items: Object.fromEntries(changedValues) } : {},
1132
+ ...dequal(state.widget, previousState.widget) ? {} : { widget: state.widget }
1133
+ });
1134
+ });
1135
+ } catch (err) {
1136
+ logger.error("Failed to initialize checklist"), logger.error(err);
1137
+ }
1138
+ }
1139
+
917
1140
  // src/core-server/utils/constants.ts
918
1141
  var defaultStaticDirs = [
919
1142
  {
@@ -933,8 +1156,8 @@ import {
933
1156
  } from "storybook/internal/core-events";
934
1157
  import { storyNameFromExport, toId } from "storybook/internal/csf";
935
1158
  import { printCsf, readCsf } from "storybook/internal/csf-tools";
936
- import { logger } from "storybook/internal/node-logger";
937
- import { isExampleStoryId, telemetry as telemetry5 } from "storybook/internal/telemetry";
1159
+ import { logger as logger2 } from "storybook/internal/node-logger";
1160
+ import { isExampleStoryId, telemetry as telemetry6 } from "storybook/internal/telemetry";
938
1161
 
939
1162
  // src/core-server/utils/save-story/duplicate-story-with-new-name.ts
940
1163
  import { types as t2, traverse } from "storybook/internal/babel";
@@ -1141,7 +1364,7 @@ function initializeSaveStory(channel, options, coreConfig) {
1141
1364
  error: null
1142
1365
  });
1143
1366
  let isCLIExample = isExampleStoryId(newStoryId ?? csfId);
1144
- !coreConfig.disableTelemetry && !isCLIExample && await telemetry5("save-story", {
1367
+ !coreConfig.disableTelemetry && !isCLIExample && await telemetry6("save-story", {
1145
1368
  action: name ? "createStory" : "updateStory",
1146
1369
  success: !0
1147
1370
  });
@@ -1150,10 +1373,10 @@ function initializeSaveStory(channel, options, coreConfig) {
1150
1373
  id,
1151
1374
  success: !1,
1152
1375
  error: error instanceof SaveStoryError ? error.message : "Unknown error"
1153
- }), logger.error(
1376
+ }), logger2.error(
1154
1377
  `Error writing to ${sourceFilePath}:
1155
1378
  ${error.stack || error.message || error.toString()}`
1156
- ), !coreConfig.disableTelemetry && !(error instanceof SaveStoryError) && await telemetry5("save-story", {
1379
+ ), !coreConfig.disableTelemetry && !(error instanceof SaveStoryError) && await telemetry6("save-story", {
1157
1380
  action: name ? "createStory" : "updateStory",
1158
1381
  success: !1,
1159
1382
  error
@@ -1173,12 +1396,12 @@ import {
1173
1396
  TOGGLE_WHATS_NEW_NOTIFICATIONS
1174
1397
  } from "storybook/internal/core-events";
1175
1398
  import { printConfig, readConfig } from "storybook/internal/csf-tools";
1176
- import { logger as logger2 } from "storybook/internal/node-logger";
1177
- import { telemetry as telemetry6 } from "storybook/internal/telemetry";
1399
+ import { logger as logger3 } from "storybook/internal/node-logger";
1400
+ import { telemetry as telemetry7 } from "storybook/internal/telemetry";
1178
1401
  var WHATS_NEW_CACHE = "whats-new-cache", WHATS_NEW_URL = "https://storybook.js.org/whats-new/v1";
1179
1402
  function initializeWhatsNew(channel, options, coreOptions) {
1180
1403
  channel.on(SET_WHATS_NEW_CACHE, async (data) => {
1181
- let cache = await options.cache.get(WHATS_NEW_CACHE).catch((e) => (logger2.verbose(e), {}));
1404
+ let cache = await options.cache.get(WHATS_NEW_CACHE).catch((e) => (logger3.verbose(e), {}));
1182
1405
  await options.cache.set(WHATS_NEW_CACHE, { ...cache, ...data });
1183
1406
  }), channel.on(REQUEST_WHATS_NEW_DATA, async () => {
1184
1407
  try {
@@ -1195,7 +1418,7 @@ function initializeWhatsNew(channel, options, coreOptions) {
1195
1418
  };
1196
1419
  channel.emit(RESULT_WHATS_NEW_DATA, { data });
1197
1420
  } catch (e) {
1198
- logger2.verbose(e instanceof Error ? e.message : String(e)), channel.emit(RESULT_WHATS_NEW_DATA, {
1421
+ logger3.verbose(e instanceof Error ? e.message : String(e)), channel.emit(RESULT_WHATS_NEW_DATA, {
1199
1422
  data: { status: "ERROR" }
1200
1423
  });
1201
1424
  }
@@ -1211,7 +1434,7 @@ function initializeWhatsNew(channel, options, coreOptions) {
1211
1434
  throw new Error(
1212
1435
  "Unable to parse Storybook main file while trying to read 'core' property"
1213
1436
  );
1214
- main.setFieldValue(["core", "disableWhatsNewNotifications"], disableWhatsNewNotifications), await writeFile3(mainPath, printConfig(main).code), isTelemetryEnabled && await telemetry6("core-config", { disableWhatsNewNotifications });
1437
+ main.setFieldValue(["core", "disableWhatsNewNotifications"], disableWhatsNewNotifications), await writeFile3(mainPath, printConfig(main).code), isTelemetryEnabled && await telemetry7("core-config", { disableWhatsNewNotifications });
1215
1438
  } catch (error) {
1216
1439
  invariant(error instanceof Error), isTelemetryEnabled && await sendTelemetryError(error, "core-config", {
1217
1440
  cliOptions: options,
@@ -1244,7 +1467,7 @@ var interpolate = (string, data = {}) => Object.entries(data).reduce((acc, [k, v
1244
1467
  }) : dir, { staticPath, targetEndpoint } = parseStaticDir(normalizedDir);
1245
1468
  return ["/favicon.svg", "/favicon.ico"].includes(targetEndpoint) && results.push(staticPath), targetEndpoint === "/" && (results.push(join(staticPath, "favicon.svg")), results.push(join(staticPath, "favicon.ico"))), results.filter((path) => existsSync3(path));
1246
1469
  }).reduce((l1, l2) => l1.concat(l2), []);
1247
- return faviconPaths.length > 1 && logger3.warn(import_ts_dedent4.dedent`
1470
+ return faviconPaths.length > 1 && logger4.warn(import_ts_dedent4.dedent`
1248
1471
  Looks like multiple favicons were detected. Using the first one.
1249
1472
 
1250
1473
  ${faviconPaths.join(", ")}
@@ -1301,7 +1524,7 @@ var interpolate = (string, data = {}) => Object.entries(data).reduce((acc, [k, v
1301
1524
  let removeAddon = removeAddonBase, packageManager = JsPackageManagerFactory.getPackageManager({
1302
1525
  configDir: options.configDir
1303
1526
  });
1304
- return options.disableTelemetry || (removeAddon = async (id, opts) => (await telemetry7("remove", { addon: id, source: "api" }), removeAddonBase(id, { ...opts, packageManager }))), { ...extension, removeAddon };
1527
+ return options.disableTelemetry || (removeAddon = async (id, opts) => (await telemetry8("remove", { addon: id, source: "api" }), removeAddonBase(id, { ...opts, packageManager }))), { ...extension, removeAddon };
1305
1528
  }, core = async (existing, options) => ({
1306
1529
  ...existing,
1307
1530
  disableTelemetry: options.disableTelemetry === !0,
@@ -1334,7 +1557,7 @@ var interpolate = (string, data = {}) => Object.entries(data).reduce((acc, [k, v
1334
1557
  return "";
1335
1558
  }, experimental_serverChannel = async (channel, options) => {
1336
1559
  let coreOptions = await options.presets.apply("core");
1337
- return initializeWhatsNew(channel, options, coreOptions), initializeSaveStory(channel, options, coreOptions), initFileSearchChannel(channel, options, coreOptions), initCreateNewStoryChannel(channel, options, coreOptions), initOpenInEditorChannel(channel, options, coreOptions), initPreviewInitializedChannel(channel, options, coreOptions), channel;
1560
+ return initializeChecklist(), initializeWhatsNew(channel, options, coreOptions), initializeSaveStory(channel, options, coreOptions), initFileSearchChannel(channel, options, coreOptions), initCreateNewStoryChannel(channel, options, coreOptions), initOpenInEditorChannel(channel, options, coreOptions), initPreviewInitializedChannel(channel, options, coreOptions), channel;
1338
1561
  }, resolvedReact = async (existing) => {
1339
1562
  try {
1340
1563
  return {
@@ -1348,37 +1571,7 @@ var interpolate = (string, data = {}) => Object.entries(data).reduce((acc, [k, v
1348
1571
  }, managerEntries = async (existing) => [
1349
1572
  join(resolvePackageDir("storybook"), "dist/core-server/presets/common-manager.js"),
1350
1573
  ...existing || []
1351
- ], viteFinal = async (existing, options) => {
1352
- let previewConfigPath = findConfigFile3("preview", options.configDir);
1353
- if (!previewConfigPath)
1354
- return existing;
1355
- let { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-LTOXVT6A.js"), { viteMockPlugin } = await import("../../_node-chunks/plugin-6XMWOGPO.js"), coreOptions = await options.presets.apply("core");
1356
- return {
1357
- ...existing,
1358
- plugins: [
1359
- ...existing.plugins ?? [],
1360
- ...previewConfigPath ? [
1361
- viteInjectMockerRuntime({ previewConfigPath }),
1362
- viteMockPlugin({ previewConfigPath, coreOptions, configDir: options.configDir })
1363
- ] : []
1364
- ]
1365
- };
1366
- }, webpackFinal = async (config, options) => {
1367
- let previewConfigPath = findConfigFile3("preview", options.configDir);
1368
- if (!previewConfigPath)
1369
- return config;
1370
- let { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-CX5J2U56.js"), { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-2SFE5LQS.js");
1371
- return config.plugins = config.plugins || [], config.module.rules.push({
1372
- test: /preview\.(t|j)sx?$/,
1373
- use: [
1374
- {
1375
- loader: fileURLToPath(
1376
- import.meta.resolve("storybook/webpack/loaders/storybook-mock-transform-loader")
1377
- )
1378
- }
1379
- ]
1380
- }), config.plugins.push(new WebpackMockPlugin({ previewConfigPath })), config.plugins.push(new WebpackInjectMockerRuntimePlugin()), config;
1381
- };
1574
+ ];
1382
1575
  export {
1383
1576
  babel,
1384
1577
  core,
@@ -1398,7 +1591,5 @@ export {
1398
1591
  resolvedReact,
1399
1592
  staticDirs,
1400
1593
  title,
1401
- typescript,
1402
- viteFinal,
1403
- webpackFinal
1594
+ typescript
1404
1595
  };
package/dist/csf/index.js CHANGED
@@ -10,17 +10,17 @@ import {
10
10
  mountDestructured,
11
11
  normalizeArrays,
12
12
  normalizeProjectAnnotations
13
- } from "../_browser-chunks/chunk-BE2DAXKJ.js";
13
+ } from "../_browser-chunks/chunk-SS2NHR7W.js";
14
14
  import "../_browser-chunks/chunk-IPA5A322.js";
15
15
  import "../_browser-chunks/chunk-3OXGAGBE.js";
16
16
  import {
17
17
  combineParameters
18
18
  } from "../_browser-chunks/chunk-VYJQ7RU5.js";
19
19
  import "../_browser-chunks/chunk-3IAH5M2U.js";
20
+ import "../_browser-chunks/chunk-QKODTO7K.js";
20
21
  import {
21
22
  invariant
22
23
  } from "../_browser-chunks/chunk-AS2HQEYC.js";
23
- import "../_browser-chunks/chunk-QKODTO7K.js";
24
24
  import "../_browser-chunks/chunk-YKE5S47A.js";
25
25
  import "../_browser-chunks/chunk-AIOS4NGK.js";
26
26
  import "../_browser-chunks/chunk-GFLS4VP3.js";
@@ -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
@@ -38,9 +38,9 @@ import {
38
38
  vitestTransform,
39
39
  writeConfig,
40
40
  writeCsf
41
- } from "../_node-chunks/chunk-SEMIAAWG.js";
42
- import "../_node-chunks/chunk-DUXPWBOK.js";
43
- import "../_node-chunks/chunk-OP3INKUD.js";
41
+ } from "../_node-chunks/chunk-WACDSFMO.js";
42
+ import "../_node-chunks/chunk-KF3WTAEP.js";
43
+ import "../_node-chunks/chunk-JMP7YFX2.js";
44
44
  export {
45
45
  BadMetaError,
46
46
  ConfigFile,