storybook 9.0.0-beta.4 → 9.0.0-beta.5

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 (58) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/babel/index.cjs +15060 -14974
  3. package/dist/babel/index.d.ts +37 -18
  4. package/dist/babel/index.js +15097 -15011
  5. package/dist/bin/index.cjs +44 -44
  6. package/dist/bin/index.js +44 -44
  7. package/dist/builder-manager/index.cjs +104 -99
  8. package/dist/builder-manager/index.js +103 -98
  9. package/dist/cli/bin/index.cjs +1 -1
  10. package/dist/cli/bin/index.js +1 -1
  11. package/dist/cli/index.cjs +19438 -19340
  12. package/dist/cli/index.js +19449 -19351
  13. package/dist/common/index.cjs +4997 -4925
  14. package/dist/common/index.js +5088 -5012
  15. package/dist/components/index.cjs +4581 -4419
  16. package/dist/components/index.d.ts +12 -12
  17. package/dist/components/index.js +3847 -3681
  18. package/dist/core-server/index.cjs +6358 -6274
  19. package/dist/core-server/index.js +6406 -6318
  20. package/dist/core-server/presets/common-manager.js +3863 -3468
  21. package/dist/core-server/presets/common-preset.cjs +2302 -2236
  22. package/dist/core-server/presets/common-preset.js +2389 -2319
  23. package/dist/docs-tools/index.cjs +484 -464
  24. package/dist/docs-tools/index.js +502 -482
  25. package/dist/highlight/index.cjs +19 -18
  26. package/dist/highlight/index.d.ts +4 -5
  27. package/dist/highlight/index.js +3 -2
  28. package/dist/highlight/preview.cjs +311 -307
  29. package/dist/highlight/preview.js +293 -289
  30. package/dist/instrumenter/index.cjs +561 -559
  31. package/dist/instrumenter/index.js +1551 -1498
  32. package/dist/manager/globals-module-info.cjs +1 -0
  33. package/dist/manager/globals-module-info.js +1 -0
  34. package/dist/manager/globals-runtime.js +19639 -19374
  35. package/dist/manager/runtime.js +4372 -4133
  36. package/dist/manager-api/index.cjs +2375 -2319
  37. package/dist/manager-api/index.js +1722 -1666
  38. package/dist/node-logger/index.cjs +25 -25
  39. package/dist/node-logger/index.js +25 -25
  40. package/dist/preview/runtime.js +12774 -12699
  41. package/dist/preview-api/index.cjs +1113 -1094
  42. package/dist/preview-api/index.js +1161 -1142
  43. package/dist/router/index.cjs +1366 -1347
  44. package/dist/router/index.js +594 -575
  45. package/dist/server-errors.cjs +6 -6
  46. package/dist/server-errors.js +6 -6
  47. package/dist/telemetry/index.cjs +696 -691
  48. package/dist/telemetry/index.js +764 -759
  49. package/dist/test/index.cjs +69 -70
  50. package/dist/test/index.d.ts +1216 -74
  51. package/dist/test/index.js +128 -130
  52. package/dist/test/preview.cjs +16 -16
  53. package/dist/test/preview.js +15 -15
  54. package/dist/theming/create.cjs +16 -17
  55. package/dist/theming/create.js +346 -228
  56. package/dist/theming/index.cjs +16 -17
  57. package/dist/theming/index.js +948 -839
  58. package/package.json +4 -12
@@ -131,7 +131,7 @@ var ne = Q((h) => {
131
131
  // src/server-errors.ts
132
132
  var xe = {};
133
133
  pe(xe, {
134
- AngularLegacyBuildOptionsError: () => v,
134
+ AngularLegacyBuildOptionsError: () => W,
135
135
  Category: () => ce,
136
136
  ConflictingStaticDirConfigError: () => C,
137
137
  CouldNotEvaluateFrameworkError: () => w,
@@ -146,7 +146,7 @@ pe(xe, {
146
146
  MainFileESMOnlyImportError: () => V,
147
147
  MainFileEvaluationError: () => F,
148
148
  MainFileMissingError: () => $,
149
- MissingAngularJsonError: () => W,
149
+ MissingAngularJsonError: () => v,
150
150
  MissingBuilderError: () => L,
151
151
  MissingFrameworkFieldError: () => A,
152
152
  NoMatchingExportError: () => P,
@@ -234,10 +234,10 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
234
234
  super({
235
235
  category: "CLI_INIT",
236
236
  code: 1,
237
- documentation: "https://nx.dev/packages/storybook",
237
+ documentation: "https://nx.dev/nx-api/storybook#generating-storybook-configuration",
238
238
  message: i.dedent`
239
239
  We have detected Nx in your project. Nx has its own Storybook initializer, so please use it instead.
240
- Run "nx g @nx/storybook:configuration" to add Storybook to your project.`
240
+ Run "nx g @nx/storybook:configuration <your-project-name>" to add Storybook to a given Nx app or lib.`
241
241
  });
242
242
  }
243
243
  }, A = class extends a {
@@ -377,7 +377,7 @@ var T = class extends a {
377
377
  static {
378
378
  r(this, "WebpackCompilationError");
379
379
  }
380
- }, W = class extends a {
380
+ }, v = class extends a {
381
381
  constructor(o) {
382
382
  super({
383
383
  category: "CLI_INIT",
@@ -392,7 +392,7 @@ var T = class extends a {
392
392
  static {
393
393
  r(this, "MissingAngularJsonError");
394
394
  }
395
- }, v = class extends a {
395
+ }, W = class extends a {
396
396
  static {
397
397
  r(this, "AngularLegacyBuildOptionsError");
398
398
  }
@@ -203,13 +203,13 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
203
203
  super({
204
204
  category: "CLI_INIT",
205
205
  code: 1,
206
- documentation: "https://nx.dev/packages/storybook",
206
+ documentation: "https://nx.dev/nx-api/storybook#generating-storybook-configuration",
207
207
  message: i.dedent`
208
208
  We have detected Nx in your project. Nx has its own Storybook initializer, so please use it instead.
209
- Run "nx g @nx/storybook:configuration" to add Storybook to your project.`
209
+ Run "nx g @nx/storybook:configuration <your-project-name>" to add Storybook to a given Nx app or lib.`
210
210
  });
211
211
  }
212
- }, W = class extends a {
212
+ }, v = class extends a {
213
213
  static {
214
214
  r(this, "MissingFrameworkFieldError");
215
215
  }
@@ -224,7 +224,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
224
224
  Please run 'npx storybook automigrate' to automatically fix your config.`
225
225
  });
226
226
  }
227
- }, v = class extends a {
227
+ }, W = class extends a {
228
228
  constructor(o) {
229
229
  super({
230
230
  category: "CORE-COMMON",
@@ -752,14 +752,14 @@ export {
752
752
  G as GoogleFontsDownloadError,
753
753
  Y as GoogleFontsLoadingError,
754
754
  ae as IncompatiblePostCssConfigError,
755
- v as InvalidFrameworkNameError,
755
+ W as InvalidFrameworkNameError,
756
756
  B as InvalidStoriesEntryError,
757
757
  H as MainFileESMOnlyImportError,
758
758
  q as MainFileEvaluationError,
759
759
  z as MainFileMissingError,
760
760
  $ as MissingAngularJsonError,
761
761
  U as MissingBuilderError,
762
- W as MissingFrameworkFieldError,
762
+ v as MissingFrameworkFieldError,
763
763
  X as NoMatchingExportError,
764
764
  se as NoStatsForViteDevError,
765
765
  T as NxProjectDetectedError,