storybook 8.2.0-alpha.9 → 8.2.0-beta.0

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 (128) hide show
  1. package/.eslintrc.cjs +36 -0
  2. package/README.md +48 -2
  3. package/__mocks__/@aw-web-design/x-default-browser.js +2 -0
  4. package/bin/index.cjs +26 -0
  5. package/core/builder-manager/index.cjs +1 -0
  6. package/core/builder-manager/index.d.ts +2 -0
  7. package/core/builder-manager/index.js +1 -0
  8. package/core/channels/index.cjs +1 -0
  9. package/core/channels/index.d.ts +2 -0
  10. package/core/channels/index.js +1 -0
  11. package/core/client-logger/index.cjs +1 -0
  12. package/core/client-logger/index.d.ts +2 -0
  13. package/core/client-logger/index.js +1 -0
  14. package/core/common/index.cjs +1 -0
  15. package/core/common/index.d.ts +2 -0
  16. package/core/common/index.js +1 -0
  17. package/core/components/index.cjs +1 -0
  18. package/core/components/index.d.ts +2 -0
  19. package/core/components/index.js +1 -0
  20. package/core/core-events/index.cjs +1 -0
  21. package/core/core-events/index.d.ts +2 -0
  22. package/core/core-events/index.js +1 -0
  23. package/core/core-server/index.cjs +1 -0
  24. package/core/core-server/index.d.ts +2 -0
  25. package/core/core-server/index.js +1 -0
  26. package/core/core-server/presets/common-manager.js +1 -0
  27. package/core/core-server/presets/common-override-preset.cjs +1 -0
  28. package/core/core-server/presets/common-override-preset.js +1 -0
  29. package/core/core-server/presets/common-preset.cjs +1 -0
  30. package/core/core-server/presets/common-preset.js +1 -0
  31. package/core/csf-tools/index.cjs +1 -0
  32. package/core/csf-tools/index.d.ts +2 -0
  33. package/core/csf-tools/index.js +1 -0
  34. package/core/docs-tools/index.cjs +1 -0
  35. package/core/docs-tools/index.d.ts +2 -0
  36. package/core/docs-tools/index.js +1 -0
  37. package/core/index.cjs +1 -0
  38. package/core/index.d.ts +2 -0
  39. package/core/index.js +1 -0
  40. package/core/manager/globals-module-info.cjs +1 -0
  41. package/core/manager/globals-module-info.d.ts +2 -0
  42. package/core/manager/globals-module-info.js +1 -0
  43. package/core/manager-api/index.cjs +1 -0
  44. package/core/manager-api/index.d.ts +2 -0
  45. package/core/manager-api/index.js +1 -0
  46. package/core/manager-errors.d.ts +2 -0
  47. package/core/manager-errors.js +1 -0
  48. package/core/node-logger/index.cjs +1 -0
  49. package/core/node-logger/index.d.ts +2 -0
  50. package/core/node-logger/index.js +1 -0
  51. package/core/preview/globals.cjs +1 -0
  52. package/core/preview/globals.d.ts +2 -0
  53. package/core/preview/globals.js +1 -0
  54. package/core/preview-api/index.cjs +1 -0
  55. package/core/preview-api/index.d.ts +2 -0
  56. package/core/preview-api/index.js +1 -0
  57. package/core/preview-errors.cjs +1 -0
  58. package/core/preview-errors.d.ts +2 -0
  59. package/core/preview-errors.js +1 -0
  60. package/core/router/index.cjs +1 -0
  61. package/core/router/index.d.ts +2 -0
  62. package/core/router/index.js +1 -0
  63. package/core/server-errors.cjs +1 -0
  64. package/core/server-errors.d.ts +2 -0
  65. package/core/server-errors.js +1 -0
  66. package/core/telemetry/index.cjs +1 -0
  67. package/core/telemetry/index.d.ts +2 -0
  68. package/core/telemetry/index.js +1 -0
  69. package/core/theming/create.cjs +1 -0
  70. package/core/theming/create.d.ts +2 -0
  71. package/core/theming/create.js +1 -0
  72. package/core/theming/index.cjs +1 -0
  73. package/core/theming/index.d.ts +2 -0
  74. package/core/theming/index.js +1 -0
  75. package/core/types/index.cjs +1 -0
  76. package/core/types/index.d.ts +2 -0
  77. package/core/types/index.js +1 -0
  78. package/core.cjs +0 -0
  79. package/core.d.ts +0 -0
  80. package/core.js +1 -0
  81. package/dist/block-dependencies-versions-NU5EBUEM.js +38 -0
  82. package/dist/block-node-version-JHQUZHQA.js +14 -0
  83. package/dist/block-storystorev6-AAXLZAKE.js +23 -0
  84. package/dist/chunk-BYXBJQAS.js +1 -0
  85. package/dist/chunk-JBWKEMOK.js +3 -0
  86. package/dist/core-path.cjs +1 -0
  87. package/dist/core-path.d.ts +3 -0
  88. package/dist/core-path.js +6 -0
  89. package/dist/generate.cjs +721 -0
  90. package/dist/generate.d.ts +2 -0
  91. package/dist/generate.js +717 -0
  92. package/dist/index.cjs +1 -0
  93. package/dist/index.d.ts +2 -0
  94. package/dist/index.js +3 -0
  95. package/package.json +316 -6
  96. package/rendererAssets/.eslintrc.json +19 -0
  97. package/rendererAssets/common/Configure.mdx +364 -0
  98. package/rendererAssets/common/assets/accessibility.png +0 -0
  99. package/rendererAssets/common/assets/accessibility.svg +1 -0
  100. package/rendererAssets/common/assets/addon-library.png +0 -0
  101. package/rendererAssets/common/assets/assets.png +0 -0
  102. package/rendererAssets/common/assets/avif-test-image.avif +0 -0
  103. package/rendererAssets/common/assets/context.png +0 -0
  104. package/rendererAssets/common/assets/discord.svg +1 -0
  105. package/rendererAssets/common/assets/docs.png +0 -0
  106. package/rendererAssets/common/assets/figma-plugin.png +0 -0
  107. package/rendererAssets/common/assets/github.svg +1 -0
  108. package/rendererAssets/common/assets/share.png +0 -0
  109. package/rendererAssets/common/assets/styling.png +0 -0
  110. package/rendererAssets/common/assets/testing.png +0 -0
  111. package/rendererAssets/common/assets/theming.png +0 -0
  112. package/rendererAssets/common/assets/tutorials.svg +1 -0
  113. package/rendererAssets/common/assets/youtube.svg +1 -0
  114. package/rendererAssets/common/button.css +30 -0
  115. package/rendererAssets/common/header.css +32 -0
  116. package/rendererAssets/common/page.css +69 -0
  117. package/templates/angular/application/template-csf/.storybook/tsconfig.doc.json +10 -0
  118. package/templates/angular/application/template-csf/.storybook/tsconfig.json +11 -0
  119. package/templates/angular/application/template-csf/.storybook/typings.d.ts +4 -0
  120. package/templates/angular/library/template-csf/.storybook/tsconfig.json +11 -0
  121. package/templates/angular/library/template-csf/.storybook/typings.d.ts +4 -0
  122. package/templates/aurelia/template-csf/.storybook/tsconfig.json +9 -0
  123. package/templates/aurelia/template-csf/.storybook/typings.d.ts +4 -0
  124. package/test/default/cli.test.cjs +14 -0
  125. package/test/helpers.cjs +15 -0
  126. package/index.js +0 -3
  127. package/project.json +0 -5
  128. package/vitest.config.ts +0 -9
package/.eslintrc.cjs ADDED
@@ -0,0 +1,36 @@
1
+ const ignore = 0;
2
+
3
+ module.exports = {
4
+ overrides: [
5
+ {
6
+ files: 'templates/**/*',
7
+ env: {
8
+ browser: true,
9
+ },
10
+ rules: {
11
+ 'react/no-this-in-sfc': ignore,
12
+ 'import/no-unresolved': ignore,
13
+ 'react/react-in-jsx-scope': ignore,
14
+ 'import/no-extraneous-dependencies': ignore,
15
+ 'global-require': ignore,
16
+ 'no-redeclare': ignore,
17
+ 'react/prop-types': ignore,
18
+ },
19
+ },
20
+ {
21
+ files: 'rendererAssets/**/*',
22
+ env: {
23
+ browser: true,
24
+ },
25
+ rules: {
26
+ 'jsx-a11y/anchor-is-valid': ignore,
27
+ 'import/no-unresolved': ignore,
28
+ 'react/prop-types': ignore,
29
+ 'react/react-in-jsx-scope': ignore,
30
+ 'import/no-extraneous-dependencies': ignore,
31
+ 'import/extensions': ignore,
32
+ 'import/named': ignore,
33
+ },
34
+ },
35
+ ],
36
+ };
package/README.md CHANGED
@@ -1,3 +1,49 @@
1
- # Storybook CLI
1
+ # Storybook
2
2
 
3
- This is a wrapper for <https://www.npmjs.com/package/@storybook/cli>
3
+ ## CLI
4
+
5
+ Storybook CLI (_Command Line Interface_) is the easiest way to add [Storybook](https://github.com/storybookjs/storybook) to your project.
6
+
7
+ ![Screenshot](docs/getstorybook.png)
8
+
9
+ Go to your project and run:
10
+
11
+ ```sh
12
+ cd my-app
13
+ npx sb@latest init
14
+ ```
15
+
16
+ In addition to `init`, the CLI also has other commands:
17
+
18
+ - `add` - add an addon and register it
19
+ - `info` - print out system information for bug reports
20
+ - `upgrade` - upgrade to the latest version of Storybook (or a specific version)
21
+ - `migrate` - run codemods to migrate your code
22
+
23
+ See the command-line help with `-h` (including other useful commands) for details.
24
+
25
+ ## Core APIs
26
+
27
+ This package has multiple sub-exports to can be used to gain access to storybook's APIs.
28
+
29
+ ### `storybook/components`
30
+
31
+ This export contains a list of components very useful for building out addons.
32
+ We recommend addon-authors to use these components to ensure a consistent look and feel, and to reduce the amount of code they need to write.
33
+
34
+ ### `storybook/theming`
35
+
36
+ This export exposes a few utility functions to help writing components that automatically adapt to the current theme.
37
+ Useful for addon authors who want to make their addons theme-aware.
38
+
39
+ ### `storybook/preview-api`
40
+
41
+ This export contains the API that is available in the preview iframe.
42
+
43
+ ### `storybook/manager-api`
44
+
45
+ This export contains the API that is available in the manager iframe.
46
+
47
+ ### `storybook/types`
48
+
49
+ This export exposes a lot of TypeScript interfaces used throughout storybook, including for storybook configuration, addons etc.
@@ -0,0 +1,2 @@
1
+ // TODO: Once we upgrade to Jest 28/29 we can probably remove this entire mock.
2
+ module.exports = {};
package/bin/index.cjs ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ const majorNodeVersion = parseInt(process.versions.node, 10);
4
+ if (majorNodeVersion < 18) {
5
+ console.error('To run Storybook you need to have Node.js 18 or higher');
6
+ process.exit(1);
7
+ }
8
+
9
+ // The Storybook CLI has a catch block for all of its commands, but if an error
10
+ // occurs before the command even runs, for instance, if an import fails, then
11
+ // such error will fall under the uncaughtException handler.
12
+ // This is the earliest moment we can catch such errors.
13
+ process.once('uncaughtException', (error) => {
14
+ if (error.message.includes('string-width')) {
15
+ console.error(
16
+ [
17
+ '🔴 Error: It looks like you are having a known issue with package hoisting.',
18
+ 'Please check the following issue for details and solutions: https://github.com/storybookjs/storybook/issues/22431#issuecomment-1630086092\n\n',
19
+ ].join('\n')
20
+ );
21
+ }
22
+
23
+ throw error;
24
+ });
25
+
26
+ require('../dist/generate.cjs');
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/builder-manager');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/builder-manager';
2
+ export type * from '@storybook/core/builder-manager';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/builder-manager';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/channels');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/channels';
2
+ export type * from '@storybook/core/channels';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/channels';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/client-logger');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/client-logger';
2
+ export type * from '@storybook/core/client-logger';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/client-logger';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/common');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/common';
2
+ export type * from '@storybook/core/common';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/common';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/components');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/components';
2
+ export type * from '@storybook/core/components';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/components';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/core-events');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/core-events';
2
+ export type * from '@storybook/core/core-events';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/core-events';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/core-server');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/core-server';
2
+ export type * from '@storybook/core/core-server';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/core-server';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/core-server/presets/common-manager';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/core-server/presets/common-override-preset');
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/core-server/presets/common-override-preset';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/core-server/presets/common-preset');
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/core-server/presets/common-preset';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/csf-tools');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/csf-tools';
2
+ export type * from '@storybook/core/csf-tools';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/csf-tools';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/docs-tools');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/docs-tools';
2
+ export type * from '@storybook/core/docs-tools';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/docs-tools';
package/core/index.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/index');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/index';
2
+ export type * from '@storybook/core/index';
package/core/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/index';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/manager/globals-module-info');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/manager/globals-module-info';
2
+ export type * from '@storybook/core/manager/globals-module-info';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/manager/globals-module-info';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/manager-api');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/manager-api';
2
+ export type * from '@storybook/core/manager-api';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/manager-api';
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/manager-errors';
2
+ export type * from '@storybook/core/manager-errors';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/manager-errors';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/node-logger');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/node-logger';
2
+ export type * from '@storybook/core/node-logger';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/node-logger';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/preview/globals');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/preview/globals';
2
+ export type * from '@storybook/core/preview/globals';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/preview/globals';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/preview-api');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/preview-api';
2
+ export type * from '@storybook/core/preview-api';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/preview-api';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/preview-errors');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/preview-errors';
2
+ export type * from '@storybook/core/preview-errors';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/preview-errors';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/router');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/router';
2
+ export type * from '@storybook/core/router';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/router';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/server-errors');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/server-errors';
2
+ export type * from '@storybook/core/server-errors';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/server-errors';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/telemetry');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/telemetry';
2
+ export type * from '@storybook/core/telemetry';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/telemetry';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/theming/create');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/theming/create';
2
+ export type * from '@storybook/core/theming/create';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/theming/create';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/theming');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/theming';
2
+ export type * from '@storybook/core/theming';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/theming';
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/types');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/types';
2
+ export type * from '@storybook/core/types';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/types';
package/core.cjs ADDED
File without changes
package/core.d.ts ADDED
File without changes
package/core.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ import './chunk-BYXBJQAS.js';
2
+ import './chunk-JBWKEMOK.js';
3
+ import { dedent } from 'ts-dedent';
4
+ import { lt } from 'semver';
5
+ import chalk from 'chalk';
6
+
7
+ var minimalVersionsMap={"@angular/core":"15.0.0","react-scripts":"5.0.0",next:"13.5.0",preact:"10.0.0",svelte:"4.0.0",vue:"3.0.0",vite:"4.0.0"},typedKeys=obj=>Object.keys(obj),blocker={id:"dependenciesVersions",async check({packageManager}){return (await Promise.all(typedKeys(minimalVersionsMap).map(async packageName=>({packageName,installedVersion:await packageManager.getPackageVersion(packageName),minimumVersion:minimalVersionsMap[packageName]})))).reduce((acc,{installedVersion,minimumVersion,packageName})=>acc||(packageName&&installedVersion&&lt(installedVersion,minimumVersion)?{installedVersion,packageName,minimumVersion}:acc),!1)},log(options,data){switch(data.packageName){case"react-scripts":return dedent`
8
+ Support for react-script < 5.0.0 has been removed.
9
+ Please see the migration guide for more information:
10
+ ${chalk.yellow("https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#create-react-app-dropped-cra4-support")}
11
+
12
+ Upgrade to the latest version of react-scripts.
13
+ `;case"vue":return dedent`
14
+ Support for Vue 2 has been removed.
15
+ Please see the migration guide for more information:
16
+ ${chalk.yellow("https://v3-migration.vuejs.org/")}
17
+
18
+ Please upgrade to the latest version of Vue.
19
+ `;case"@angular/core":return dedent`
20
+ Support for Angular < 15 has been removed.
21
+ Please see the migration guide for more information:
22
+ ${chalk.yellow("https://angular.io/guide/update-to-version-15")}
23
+
24
+ Please upgrade to the latest version of Angular.
25
+ `;case"next":return dedent`
26
+ Support for Next.js < 13.5 has been removed.
27
+ Please see the migration guide for more information:
28
+ ${chalk.yellow("https://nextjs.org/docs/pages/building-your-application/upgrading/version-13")}
29
+
30
+ Please upgrade to the latest version of Next.js.
31
+ `;default:return dedent`
32
+ Support for ${data.packageName} version < ${data.minimumVersion} has been removed.
33
+ Since version 8, Storybook needs a minimum version of ${data.minimumVersion}, but you have version ${data.installedVersion}.
34
+
35
+ Please update this dependency.
36
+ `}}};
37
+
38
+ export { blocker };
@@ -0,0 +1,14 @@
1
+ import './chunk-BYXBJQAS.js';
2
+ import './chunk-JBWKEMOK.js';
3
+ import { dedent } from 'ts-dedent';
4
+ import { lt } from 'semver';
5
+ import chalk from 'chalk';
6
+
7
+ var blocker={id:"minimumNode16",async check(){let nodeVersion=process.versions.node;return nodeVersion&&lt(nodeVersion,"18.0.0")?{nodeVersion}:!1},log(options,data){return dedent`
8
+ We've detected you're using Node.js v${data.nodeVersion}.
9
+ Storybook needs Node.js 18 or higher.
10
+
11
+ ${chalk.yellow("https://nodejs.org/en/download")}
12
+ `}};
13
+
14
+ export { blocker };
@@ -0,0 +1,23 @@
1
+ import './chunk-BYXBJQAS.js';
2
+ import './chunk-JBWKEMOK.js';
3
+ import { dedent } from 'ts-dedent';
4
+ import chalk from 'chalk';
5
+
6
+ var blocker={id:"storyStoreV7removal",async check({mainConfig}){let features=mainConfig?.features;return features===void 0?!1:!!Object.hasOwn(features,"storyStoreV7")},log(){return dedent`
7
+ StoryStoreV7 feature must be removed from your Storybook configuration.
8
+ This feature was removed in Storybook 8.0.0.
9
+ Please see the migration guide for more information:
10
+ ${chalk.yellow("https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#storystorev6-and-storiesof-is-deprecated")}
11
+
12
+ In your Storybook configuration we found storyStoreV7 feature defined. For instance:
13
+
14
+ export default = {
15
+ features: {
16
+ ${chalk.cyan("storyStoreV7: false")}, <--- ${chalk.bold("remove this line")}
17
+ },
18
+ };
19
+
20
+ You need to remove the storyStoreV7 property.
21
+ `}};
22
+
23
+ export { blocker };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));
2
+
3
+ export { __commonJS, __require, __toESM };
@@ -0,0 +1 @@
1
+ "use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var core_path_exports={};__export(core_path_exports,{corePath:()=>corePath});module.exports=__toCommonJS(core_path_exports);var import_node_path=require("path"),corePath=(0,import_node_path.dirname)(require.resolve("@storybook/core/package.json"));0&&(module.exports={corePath});
@@ -0,0 +1,3 @@
1
+ declare const corePath: string;
2
+
3
+ export { corePath };
@@ -0,0 +1,6 @@
1
+ import { __require } from './chunk-JBWKEMOK.js';
2
+ import { dirname } from 'node:path';
3
+
4
+ var corePath=dirname(__require.resolve("@storybook/core/package.json"));
5
+
6
+ export { corePath };