storybook 10.2.0-alpha.15 → 10.2.0-alpha.17

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 (65) hide show
  1. package/dist/_node-chunks/{builder-manager-SOKYB5NF.js → builder-manager-Q4F5VX5J.js} +14 -12
  2. package/dist/_node-chunks/{camelcase-SXQWF7PW.js → camelcase-FL6OBJRZ.js} +7 -7
  3. package/dist/_node-chunks/{chunk-5KEIALUH.js → chunk-25OWI2RR.js} +6 -6
  4. package/dist/_node-chunks/{chunk-ENNDE4GC.js → chunk-2XSHQN7K.js} +10 -10
  5. package/dist/_node-chunks/{chunk-E3Y5MHXD.js → chunk-3D4SLKEE.js} +7 -7
  6. package/dist/_node-chunks/{chunk-FKBWQGIF.js → chunk-5Q5JEISY.js} +6 -6
  7. package/dist/_node-chunks/{chunk-Q6WUEJ4S.js → chunk-C3FPVGL4.js} +6 -6
  8. package/dist/_node-chunks/chunk-CBPOKBOR.js +18 -0
  9. package/dist/_node-chunks/{chunk-2FQAOAQ6.js → chunk-CCJGKJ27.js} +12 -12
  10. package/dist/_node-chunks/{chunk-MD52RVZX.js → chunk-DJ3RRSJ7.js} +7 -7
  11. package/dist/_node-chunks/chunk-EG3WZ464.js +23 -0
  12. package/dist/_node-chunks/{chunk-6SIUW3HU.js → chunk-EYPTVKFI.js} +123 -72
  13. package/dist/_node-chunks/{chunk-TN3Q52LO.js → chunk-FAARRTOD.js} +6 -6
  14. package/dist/_node-chunks/{chunk-QPKBPYOY.js → chunk-G7P42ZEY.js} +7 -7
  15. package/dist/_node-chunks/chunk-GYJ7LPFJ.js +144 -0
  16. package/dist/_node-chunks/{chunk-BOY3TNPC.js → chunk-IRMNO3QS.js} +9 -9
  17. package/dist/_node-chunks/{chunk-BRW7NFUP.js → chunk-IWM3WHZE.js} +7 -7
  18. package/dist/_node-chunks/{chunk-RGWB6DD7.js → chunk-JBRILZWU.js} +6 -6
  19. package/dist/_node-chunks/{chunk-HFKM7JHQ.js → chunk-KKNWPXMS.js} +6 -6
  20. package/dist/_node-chunks/{chunk-45UIB4YF.js → chunk-MU4E5UBA.js} +7 -7
  21. package/dist/_node-chunks/{chunk-274OMYGE.js → chunk-PWI3ORDV.js} +22 -22
  22. package/dist/_node-chunks/chunk-RGEHGZS6.js +61 -0
  23. package/dist/_node-chunks/{chunk-KNGN3UEO.js → chunk-V3SFCYKQ.js} +7 -7
  24. package/dist/_node-chunks/{chunk-4GKVZO2T.js → chunk-VK4OWRKU.js} +9 -9
  25. package/dist/_node-chunks/{chunk-K4YVLJRS.js → chunk-VT2FICF4.js} +6 -6
  26. package/dist/_node-chunks/{chunk-SZWIX5YC.js → chunk-VTBZVEBF.js} +529 -142
  27. package/dist/_node-chunks/{chunk-T57UCO67.js → chunk-XI7HDOMY.js} +7 -7
  28. package/dist/_node-chunks/{chunk-PI7P5HFH.js → chunk-XTIFAWOB.js} +250 -14
  29. package/dist/_node-chunks/{chunk-AIIQJ6UR.js → chunk-XYONORVT.js} +7 -7
  30. package/dist/_node-chunks/{chunk-MQZLLJRG.js → chunk-ZOUBYBCH.js} +9 -9
  31. package/dist/_node-chunks/{globby-LGQ5P2JB.js → globby-4BDMCAAD.js} +9 -9
  32. package/dist/_node-chunks/{lib-5LBLULG3.js → lib-XS2XQMOO.js} +7 -7
  33. package/dist/_node-chunks/{mdx-N42X6CFJ-TAPL5IEO.js → mdx-N42X6CFJ-JFERGMQH.js} +8 -8
  34. package/dist/_node-chunks/{p-limit-GTMOHYQF.js → p-limit-I4CLTHWH.js} +7 -7
  35. package/dist/babel/index.js +10 -10
  36. package/dist/bin/core.js +12 -12
  37. package/dist/bin/dispatcher.js +11 -11
  38. package/dist/bin/loader.js +9 -9
  39. package/dist/cli/index.js +18 -18
  40. package/dist/common/index.js +19 -19
  41. package/dist/core-events/index.d.ts +19 -3
  42. package/dist/core-events/index.js +5 -1
  43. package/dist/core-server/index.d.ts +64 -2
  44. package/dist/core-server/index.js +37 -34
  45. package/dist/core-server/presets/common-override-preset.js +11 -11
  46. package/dist/core-server/presets/common-preset.js +532 -234
  47. package/dist/csf/index.d.ts +139 -9
  48. package/dist/csf/index.js +41 -14
  49. package/dist/csf-tools/index.d.ts +19 -1
  50. package/dist/csf-tools/index.js +11 -10
  51. package/dist/manager/globals-runtime.js +6 -2
  52. package/dist/manager/runtime.js +17 -98
  53. package/dist/manager-api/index.js +1 -1
  54. package/dist/mocking-utils/index.js +8 -8
  55. package/dist/node-logger/index.js +9 -9
  56. package/dist/preview/runtime.js +33 -6
  57. package/dist/preview-api/index.d.ts +68 -67
  58. package/dist/server-errors.js +11 -11
  59. package/dist/telemetry/index.d.ts +13 -2
  60. package/dist/telemetry/index.js +23 -22
  61. package/package.json +1 -1
  62. package/dist/_node-chunks/chunk-2BHD5YKF.js +0 -35
  63. package/dist/_node-chunks/chunk-MM7Z4SG7.js +0 -23
  64. package/dist/_node-chunks/chunk-TYSSQECX.js +0 -61
  65. package/dist/_node-chunks/chunk-YP34ARUD.js +0 -18
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -46,13 +46,13 @@ import {
46
46
  WebpackCompilationError,
47
47
  WebpackInvocationError,
48
48
  WebpackMissingStatsError
49
- } from "./_node-chunks/chunk-ENNDE4GC.js";
49
+ } from "./_node-chunks/chunk-2XSHQN7K.js";
50
50
  import {
51
51
  StorybookError
52
- } from "./_node-chunks/chunk-TN3Q52LO.js";
53
- import "./_node-chunks/chunk-QPKBPYOY.js";
54
- import "./_node-chunks/chunk-T57UCO67.js";
55
- import "./_node-chunks/chunk-5KEIALUH.js";
52
+ } from "./_node-chunks/chunk-FAARRTOD.js";
53
+ import "./_node-chunks/chunk-G7P42ZEY.js";
54
+ import "./_node-chunks/chunk-XI7HDOMY.js";
55
+ import "./_node-chunks/chunk-25OWI2RR.js";
56
56
  export {
57
57
  AddonVitestPostinstallConfigUpdateError,
58
58
  AddonVitestPostinstallError,
@@ -23,6 +23,17 @@ interface DetectResult {
23
23
  version?: string;
24
24
  }
25
25
 
26
+ type PackageGroupResult = Record<string, string | null | undefined>;
27
+ type KnownPackagesList = {
28
+ testPackages?: PackageGroupResult;
29
+ stylingPackages?: PackageGroupResult;
30
+ stateManagementPackages?: PackageGroupResult;
31
+ dataFetchingPackages?: PackageGroupResult;
32
+ uiLibraryPackages?: PackageGroupResult;
33
+ i18nPackages?: PackageGroupResult;
34
+ routerPackages?: PackageGroupResult;
35
+ };
36
+
26
37
  declare const monorepoConfigs: {
27
38
  readonly Nx: "nx.json";
28
39
  readonly Turborepo: "turbo.json";
@@ -32,7 +43,7 @@ declare const monorepoConfigs: {
32
43
  };
33
44
  type MonorepoType = keyof typeof monorepoConfigs | 'Workspaces' | undefined;
34
45
 
35
- type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
46
+ type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor' | 'ghost-stories';
36
47
  interface Dependency {
37
48
  version: string | undefined;
38
49
  versionSpecifier?: string;
@@ -67,7 +78,7 @@ type StorybookMetadata = {
67
78
  packageName: string;
68
79
  version: string;
69
80
  };
70
- testPackages?: Record<string, string | undefined>;
81
+ knownPackages?: KnownPackagesList;
71
82
  hasRouterPackage?: boolean;
72
83
  hasStorybookEslint?: boolean;
73
84
  hasStaticDirs?: boolean;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -25,22 +25,23 @@ import {
25
25
  sanitizeAddonName,
26
26
  sanitizeError,
27
27
  telemetry
28
- } from "../_node-chunks/chunk-6SIUW3HU.js";
29
- import "../_node-chunks/chunk-YP34ARUD.js";
30
- import "../_node-chunks/chunk-274OMYGE.js";
31
- import "../_node-chunks/chunk-TYSSQECX.js";
32
- import "../_node-chunks/chunk-AIIQJ6UR.js";
33
- import "../_node-chunks/chunk-MQZLLJRG.js";
34
- import "../_node-chunks/chunk-4GKVZO2T.js";
35
- import "../_node-chunks/chunk-Q6WUEJ4S.js";
36
- import "../_node-chunks/chunk-HFKM7JHQ.js";
37
- import "../_node-chunks/chunk-E3Y5MHXD.js";
38
- import "../_node-chunks/chunk-FKBWQGIF.js";
39
- import "../_node-chunks/chunk-MD52RVZX.js";
40
- import "../_node-chunks/chunk-RGWB6DD7.js";
41
- import "../_node-chunks/chunk-QPKBPYOY.js";
42
- import "../_node-chunks/chunk-T57UCO67.js";
43
- import "../_node-chunks/chunk-5KEIALUH.js";
28
+ } from "../_node-chunks/chunk-EYPTVKFI.js";
29
+ import "../_node-chunks/chunk-CBPOKBOR.js";
30
+ import "../_node-chunks/chunk-PWI3ORDV.js";
31
+ import "../_node-chunks/chunk-RGEHGZS6.js";
32
+ import "../_node-chunks/chunk-XYONORVT.js";
33
+ import "../_node-chunks/chunk-ZOUBYBCH.js";
34
+ import "../_node-chunks/chunk-GYJ7LPFJ.js";
35
+ import "../_node-chunks/chunk-VK4OWRKU.js";
36
+ import "../_node-chunks/chunk-C3FPVGL4.js";
37
+ import "../_node-chunks/chunk-KKNWPXMS.js";
38
+ import "../_node-chunks/chunk-3D4SLKEE.js";
39
+ import "../_node-chunks/chunk-5Q5JEISY.js";
40
+ import "../_node-chunks/chunk-JBRILZWU.js";
41
+ import "../_node-chunks/chunk-DJ3RRSJ7.js";
42
+ import "../_node-chunks/chunk-G7P42ZEY.js";
43
+ import "../_node-chunks/chunk-XI7HDOMY.js";
44
+ import "../_node-chunks/chunk-25OWI2RR.js";
44
45
  export {
45
46
  ErrorCollector,
46
47
  addToGlobalContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "10.2.0-alpha.15",
3
+ "version": "10.2.0-alpha.17",
4
4
  "description": "Storybook: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -1,35 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // src/shared/constants/tags.ts
14
- var Tag = {
15
- /** Indicates that autodocs should be generated for this component */
16
- AUTODOCS: "autodocs",
17
- /** MDX documentation attached to a component's stories file */
18
- ATTACHED_MDX: "attached-mdx",
19
- /** Standalone MDX documentation not attached to stories */
20
- UNATTACHED_MDX: "unattached-mdx",
21
- /** Story has a play function */
22
- PLAY_FN: "play-fn",
23
- /** Story has a test function */
24
- TEST_FN: "test-fn",
25
- /** Development environment tag */
26
- DEV: "dev",
27
- /** Test environment tag */
28
- TEST: "test",
29
- /** Manifest generation tag */
30
- MANIFEST: "manifest"
31
- };
32
-
33
- export {
34
- Tag
35
- };
@@ -1,23 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.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-Q6WUEJ4S.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,61 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // src/common/versions.ts
14
- var versions_default = {
15
- "@storybook/addon-a11y": "10.2.0-alpha.15",
16
- "@storybook/addon-docs": "10.2.0-alpha.15",
17
- "@storybook/addon-links": "10.2.0-alpha.15",
18
- "@storybook/addon-onboarding": "10.2.0-alpha.15",
19
- "storybook-addon-pseudo-states": "10.2.0-alpha.15",
20
- "@storybook/addon-themes": "10.2.0-alpha.15",
21
- "@storybook/addon-vitest": "10.2.0-alpha.15",
22
- "@storybook/builder-vite": "10.2.0-alpha.15",
23
- "@storybook/builder-webpack5": "10.2.0-alpha.15",
24
- storybook: "10.2.0-alpha.15",
25
- "@storybook/angular": "10.2.0-alpha.15",
26
- "@storybook/ember": "10.2.0-alpha.15",
27
- "@storybook/html-vite": "10.2.0-alpha.15",
28
- "@storybook/nextjs": "10.2.0-alpha.15",
29
- "@storybook/nextjs-vite": "10.2.0-alpha.15",
30
- "@storybook/preact-vite": "10.2.0-alpha.15",
31
- "@storybook/react-native-web-vite": "10.2.0-alpha.15",
32
- "@storybook/react-vite": "10.2.0-alpha.15",
33
- "@storybook/react-webpack5": "10.2.0-alpha.15",
34
- "@storybook/server-webpack5": "10.2.0-alpha.15",
35
- "@storybook/svelte-vite": "10.2.0-alpha.15",
36
- "@storybook/sveltekit": "10.2.0-alpha.15",
37
- "@storybook/vue3-vite": "10.2.0-alpha.15",
38
- "@storybook/web-components-vite": "10.2.0-alpha.15",
39
- sb: "10.2.0-alpha.15",
40
- "@storybook/cli": "10.2.0-alpha.15",
41
- "@storybook/codemod": "10.2.0-alpha.15",
42
- "@storybook/core-webpack": "10.2.0-alpha.15",
43
- "create-storybook": "10.2.0-alpha.15",
44
- "@storybook/csf-plugin": "10.2.0-alpha.15",
45
- "eslint-plugin-storybook": "10.2.0-alpha.15",
46
- "@storybook/react-dom-shim": "10.2.0-alpha.15",
47
- "@storybook/preset-create-react-app": "10.2.0-alpha.15",
48
- "@storybook/preset-react-webpack": "10.2.0-alpha.15",
49
- "@storybook/preset-server-webpack": "10.2.0-alpha.15",
50
- "@storybook/html": "10.2.0-alpha.15",
51
- "@storybook/preact": "10.2.0-alpha.15",
52
- "@storybook/react": "10.2.0-alpha.15",
53
- "@storybook/server": "10.2.0-alpha.15",
54
- "@storybook/svelte": "10.2.0-alpha.15",
55
- "@storybook/vue3": "10.2.0-alpha.15",
56
- "@storybook/web-components": "10.2.0-alpha.15"
57
- };
58
-
59
- export {
60
- versions_default
61
- };
@@ -1,18 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ekkdwuux1sk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ekkdwuux1sk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ekkdwuux1sk from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ekkdwuux1sk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ekkdwuux1sk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ekkdwuux1sk.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // package.json
14
- var version = "10.2.0-alpha.15";
15
-
16
- export {
17
- version
18
- };