storybook 9.0.0-alpha.13 → 9.0.0-alpha.15

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 (36) hide show
  1. package/dist/actions/decorator.js +46 -47
  2. package/dist/actions/index.cjs +28 -29
  3. package/dist/actions/index.d.ts +0 -3
  4. package/dist/actions/index.js +27 -28
  5. package/dist/actions/preview.cjs +22 -23
  6. package/dist/actions/preview.js +18 -19
  7. package/dist/bin/index.cjs +67 -71
  8. package/dist/bin/index.js +56 -60
  9. package/dist/channels/index.cjs +1018 -948
  10. package/dist/channels/index.js +1194 -1161
  11. package/dist/cli/bin/index.cjs +1 -1
  12. package/dist/cli/bin/index.js +1 -1
  13. package/dist/cli/index.cjs +1860 -1871
  14. package/dist/cli/index.js +308 -319
  15. package/dist/common/index.cjs +43 -49
  16. package/dist/common/index.d.ts +0 -4
  17. package/dist/common/index.js +43 -49
  18. package/dist/components/index.cjs +6375 -12708
  19. package/dist/components/index.d.ts +1 -2
  20. package/dist/components/index.js +4647 -10782
  21. package/dist/core-server/index.cjs +13626 -13550
  22. package/dist/core-server/index.js +11863 -11787
  23. package/dist/core-server/presets/common-manager.js +3221 -3138
  24. package/dist/manager/globals-runtime.js +29817 -33554
  25. package/dist/manager-api/index.cjs +2518 -2330
  26. package/dist/manager-api/index.js +2432 -2234
  27. package/dist/preview/runtime.js +18415 -16011
  28. package/dist/preview-api/index.cjs +619 -603
  29. package/dist/preview-api/index.d.ts +386 -118
  30. package/dist/preview-api/index.js +542 -526
  31. package/dist/server-errors.cjs +132 -118
  32. package/dist/server-errors.d.ts +4 -2
  33. package/dist/server-errors.js +127 -113
  34. package/dist/test/preview.d.ts +6 -0
  35. package/dist/types/index.d.ts +1 -4
  36. package/package.json +2 -2
@@ -4,41 +4,41 @@ import { dirname as ESM_COMPAT_dirname } from 'node:path';
4
4
  const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
5
5
  const __dirname = ESM_COMPAT_dirname(__filename);
6
6
  const require = ESM_COMPAT_Module.createRequire(import.meta.url);
7
- var ae = Object.create;
8
- var f = Object.defineProperty;
9
- var ie = Object.getOwnPropertyDescriptor;
10
- var ce = Object.getOwnPropertyNames;
11
- var ue = Object.getPrototypeOf, le = Object.prototype.hasOwnProperty;
12
- var s = (t, e) => f(t, "name", { value: e, configurable: !0 });
7
+ var ie = Object.create;
8
+ var R = Object.defineProperty;
9
+ var ce = Object.getOwnPropertyDescriptor;
10
+ var ue = Object.getOwnPropertyNames;
11
+ var le = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty;
12
+ var r = (t, e) => R(t, "name", { value: e, configurable: !0 });
13
13
  var O = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
14
- var me = (t, e, o, n) => {
14
+ var de = (t, e, o, n) => {
15
15
  if (e && typeof e == "object" || typeof e == "function")
16
- for (let c of ce(e))
17
- !le.call(t, c) && c !== o && f(t, c, { get: () => e[c], enumerable: !(n = ie(e, c)) || n.enumerable });
16
+ for (let c of ue(e))
17
+ !me.call(t, c) && c !== o && R(t, c, { get: () => e[c], enumerable: !(n = ce(e, c)) || n.enumerable });
18
18
  return t;
19
19
  };
20
- var A = (t, e, o) => (o = t != null ? ae(ue(t)) : {}, me(
20
+ var A = (t, e, o) => (o = t != null ? ie(le(t)) : {}, de(
21
21
  // If the importer is in node compatibility mode or this is not an ESM
22
22
  // file that has been converted to a CommonJS file using a Babel-
23
23
  // compatible transform (i.e. "__esModule" has not been set), then set
24
24
  // "default" to the CommonJS "module.exports" for node compatibility.
25
- e || !t || !t.__esModule ? f(o, "default", { value: t, enumerable: !0 }) : o,
25
+ e || !t || !t.__esModule ? R(o, "default", { value: t, enumerable: !0 }) : o,
26
26
  t
27
27
  ));
28
28
 
29
29
  // ../node_modules/picocolors/picocolors.js
30
- var w = O((he, k) => {
31
- var E = process || {}, _ = E.argv || [], h = E.env || {}, de = !(h.NO_COLOR || _.includes("--no-color")) && (!!h.FORCE_COLOR || _.includes(
32
- "--color") || E.platform === "win32" || (E.stdout || {}).isTTY && h.TERM !== "dumb" || !!h.CI), ge = /* @__PURE__ */ s((t, e, o = t) => (n) => {
30
+ var w = O((Ee, k) => {
31
+ var E = process || {}, _ = E.argv || [], h = E.env || {}, be = !(h.NO_COLOR || _.includes("--no-color")) && (!!h.FORCE_COLOR || _.includes(
32
+ "--color") || E.platform === "win32" || (E.stdout || {}).isTTY && h.TERM !== "dumb" || !!h.CI), ge = /* @__PURE__ */ r((t, e, o = t) => (n) => {
33
33
  let c = "" + n, u = c.indexOf(e, t.length);
34
- return ~u ? t + be(c, e, o, u) + e : t + c + e;
35
- }, "formatter"), be = /* @__PURE__ */ s((t, e, o, n) => {
34
+ return ~u ? t + pe(c, e, o, u) + e : t + c + e;
35
+ }, "formatter"), pe = /* @__PURE__ */ r((t, e, o, n) => {
36
36
  let c = "", u = 0;
37
37
  do
38
38
  c += t.substring(u, n) + o, u = n + e.length, n = t.indexOf(e, u);
39
39
  while (~n);
40
40
  return c + t.substring(u);
41
- }, "replaceClose"), C = /* @__PURE__ */ s((t = de) => {
41
+ }, "replaceClose"), C = /* @__PURE__ */ r((t = be) => {
42
42
  let e = t ? ge : () => String;
43
43
  return {
44
44
  isColorSupported: t,
@@ -90,7 +90,7 @@ var w = O((he, k) => {
90
90
  });
91
91
 
92
92
  // ../node_modules/ts-dedent/dist/index.js
93
- var S = O((y) => {
93
+ var M = O((y) => {
94
94
  "use strict";
95
95
  Object.defineProperty(y, "__esModule", { value: !0 });
96
96
  y.dedent = void 0;
@@ -99,11 +99,11 @@ var S = O((y) => {
99
99
  e[o - 1] = arguments[o];
100
100
  var n = Array.from(typeof t == "string" ? [t] : t);
101
101
  n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
102
- var c = n.reduce(function(m, R) {
103
- var p = R.match(/\n([\t ]+|(?!\s).)/g);
104
- return p ? m.concat(p.map(function(x) {
105
- var g, b;
106
- return (b = (g = x.match(/[\t ]/g)) === null || g === void 0 ? void 0 : g.length) !== null && b !== void 0 ? b : 0;
102
+ var c = n.reduce(function(m, x) {
103
+ var p = x.match(/\n([\t ]+|(?!\s).)/g);
104
+ return p ? m.concat(p.map(function(f) {
105
+ var b, g;
106
+ return (g = (b = f.match(/[\t ]/g)) === null || b === void 0 ? void 0 : b.length) !== null && g !== void 0 ? g : 0;
107
107
  })) : m;
108
108
  }, []);
109
109
  if (c.length) {
@@ -116,33 +116,33 @@ var S = O((y) => {
116
116
  }
117
117
  n[0] = n[0].replace(/^\r?\n/, "");
118
118
  var d = n[0];
119
- return e.forEach(function(m, R) {
120
- var p = d.match(/(?:^|\n)( *)$/), x = p ? p[1] : "", g = m;
119
+ return e.forEach(function(m, x) {
120
+ var p = d.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", b = m;
121
121
  typeof m == "string" && m.includes(`
122
- `) && (g = String(m).split(`
123
- `).map(function(b, ne) {
124
- return ne === 0 ? b : "" + x + b;
122
+ `) && (b = String(m).split(`
123
+ `).map(function(g, ae) {
124
+ return ae === 0 ? g : "" + f + g;
125
125
  }).join(`
126
- `)), d += g + n[R + 1];
126
+ `)), d += b + n[x + 1];
127
127
  }), d;
128
128
  }
129
- s(I, "dedent");
129
+ r(I, "dedent");
130
130
  y.dedent = I;
131
131
  y.default = I;
132
132
  });
133
133
 
134
134
  // src/server-errors.ts
135
- var l = A(w(), 1), i = A(S(), 1);
135
+ var l = A(w(), 1), i = A(M(), 1);
136
136
 
137
137
  // src/storybook-error.ts
138
- function M({
138
+ function S({
139
139
  code: t,
140
140
  category: e
141
141
  }) {
142
142
  let o = String(t).padStart(4, "0");
143
143
  return `SB_${e}_${o}`;
144
144
  }
145
- s(M, "parseErrorCode");
145
+ r(S, "parseErrorCode");
146
146
  var a = class t extends Error {
147
147
  constructor(o) {
148
148
  super(t.getFullMessage(o));
@@ -156,10 +156,10 @@ var a = class t extends Error {
156
156
  this.category = o.category, this.documentation = o.documentation ?? !1, this.code = o.code;
157
157
  }
158
158
  static {
159
- s(this, "StorybookError");
159
+ r(this, "StorybookError");
160
160
  }
161
161
  get fullErrorCode() {
162
- return M({ code: this.code, category: this.category });
162
+ return S({ code: this.code, category: this.category });
163
163
  }
164
164
  /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
165
165
  get name() {
@@ -174,7 +174,7 @@ var a = class t extends Error {
174
174
  message: u
175
175
  }) {
176
176
  let d;
177
- return o === !0 ? d = `https://storybook.js.org/error/${M({ code: n, category: c })}` : typeof o == "string" ? d = o : Array.isArray(o) &&
177
+ return o === !0 ? d = `https://storybook.js.org/error/${S({ code: n, category: c })}` : typeof o == "string" ? d = o : Array.isArray(o) &&
178
178
  (d = `
179
179
  ${o.map((m) => ` - ${m}`).join(`
180
180
  `)}`), `${u}${d != null ? `
@@ -185,20 +185,19 @@ More info: ${d}
185
185
  };
186
186
 
187
187
  // src/server-errors.ts
188
- var pe = /* @__PURE__ */ ((r) => (r.CLI = "CLI", r.CLI_INIT = "CLI_INIT", r.CLI_AUTOMIGRATE = "CLI_AUTOMIGRATE", r.CLI_UPGRADE = "CLI_UPGRAD\
189
- E", r.CLI_ADD = "CLI_ADD", r.CODEMOD = "CODEMOD", r.CORE_SERVER = "CORE-SERVER", r.CSF_PLUGIN = "CSF-PLUGIN", r.CSF_TOOLS = "CSF-TOOLS", r.CORE_COMMON =
190
- "CORE-COMMON", r.NODE_LOGGER = "NODE-LOGGER", r.TELEMETRY = "TELEMETRY", r.BUILDER_MANAGER = "BUILDER-MANAGER", r.BUILDER_VITE = "BUILDER-VI\
191
- TE", r.BUILDER_WEBPACK5 = "BUILDER-WEBPACK5", r.SOURCE_LOADER = "SOURCE-LOADER", r.POSTINSTALL = "POSTINSTALL", r.DOCS_TOOLS = "DOCS-TOOLS",
192
- r.CORE_WEBPACK = "CORE-WEBPACK", r.FRAMEWORK_ANGULAR = "FRAMEWORK_ANGULAR", r.FRAMEWORK_EMBER = "FRAMEWORK_EMBER", r.FRAMEWORK_HTML_VITE = "\
193
- FRAMEWORK_HTML-VITE", r.FRAMEWORK_HTML_WEBPACK5 = "FRAMEWORK_HTML-WEBPACK5", r.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", r.FRAMEWORK_PREACT_VITE =
194
- "FRAMEWORK_PREACT-VITE", r.FRAMEWORK_PREACT_WEBPACK5 = "FRAMEWORK_PREACT-WEBPACK5", r.FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE", r.FRAMEWORK_REACT_WEBPACK5 =
195
- "FRAMEWORK_REACT-WEBPACK5", r.FRAMEWORK_SERVER_WEBPACK5 = "FRAMEWORK_SERVER-WEBPACK5", r.FRAMEWORK_SVELTE_VITE = "FRAMEWORK_SVELTE-VITE", r.
196
- FRAMEWORK_SVELTE_WEBPACK5 = "FRAMEWORK_SVELTE-WEBPACK5", r.FRAMEWORK_SVELTEKIT = "FRAMEWORK_SVELTEKIT", r.FRAMEWORK_VUE_VITE = "FRAMEWORK_VU\
197
- E-VITE", r.FRAMEWORK_VUE_WEBPACK5 = "FRAMEWORK_VUE-WEBPACK5", r.FRAMEWORK_VUE3_VITE = "FRAMEWORK_VUE3-VITE", r.FRAMEWORK_VUE3_WEBPACK5 = "FR\
198
- AMEWORK_VUE3-WEBPACK5", r.FRAMEWORK_WEB_COMPONENTS_VITE = "FRAMEWORK_WEB-COMPONENTS-VITE", r.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_\
199
- WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
188
+ var ye = /* @__PURE__ */ ((s) => (s.CLI = "CLI", s.CLI_INIT = "CLI_INIT", s.CLI_AUTOMIGRATE = "CLI_AUTOMIGRATE", s.CLI_UPGRADE = "CLI_UPGRAD\
189
+ E", s.CLI_ADD = "CLI_ADD", s.CODEMOD = "CODEMOD", s.CORE_SERVER = "CORE-SERVER", s.CSF_PLUGIN = "CSF-PLUGIN", s.CSF_TOOLS = "CSF-TOOLS", s.CORE_COMMON =
190
+ "CORE-COMMON", s.NODE_LOGGER = "NODE-LOGGER", s.TELEMETRY = "TELEMETRY", s.BUILDER_MANAGER = "BUILDER-MANAGER", s.BUILDER_VITE = "BUILDER-VI\
191
+ TE", s.BUILDER_WEBPACK5 = "BUILDER-WEBPACK5", s.SOURCE_LOADER = "SOURCE-LOADER", s.POSTINSTALL = "POSTINSTALL", s.DOCS_TOOLS = "DOCS-TOOLS",
192
+ s.CORE_WEBPACK = "CORE-WEBPACK", s.FRAMEWORK_ANGULAR = "FRAMEWORK_ANGULAR", s.FRAMEWORK_EMBER = "FRAMEWORK_EMBER", s.FRAMEWORK_HTML_VITE = "\
193
+ FRAMEWORK_HTML-VITE", s.FRAMEWORK_HTML_WEBPACK5 = "FRAMEWORK_HTML-WEBPACK5", s.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", s.FRAMEWORK_PREACT_VITE =
194
+ "FRAMEWORK_PREACT-VITE", s.FRAMEWORK_PREACT_WEBPACK5 = "FRAMEWORK_PREACT-WEBPACK5", s.FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE", s.FRAMEWORK_REACT_WEBPACK5 =
195
+ "FRAMEWORK_REACT-WEBPACK5", s.FRAMEWORK_SERVER_WEBPACK5 = "FRAMEWORK_SERVER-WEBPACK5", s.FRAMEWORK_SVELTE_VITE = "FRAMEWORK_SVELTE-VITE", s.
196
+ FRAMEWORK_SVELTEKIT = "FRAMEWORK_SVELTEKIT", s.FRAMEWORK_VUE_VITE = "FRAMEWORK_VUE-VITE", s.FRAMEWORK_VUE_WEBPACK5 = "FRAMEWORK_VUE-WEBPACK5",
197
+ s.FRAMEWORK_VUE3_VITE = "FRAMEWORK_VUE3-VITE", s.FRAMEWORK_VUE3_WEBPACK5 = "FRAMEWORK_VUE3-WEBPACK5", s.FRAMEWORK_WEB_COMPONENTS_VITE = "FRA\
198
+ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WEB-COMPONENTS-WEBPACK5", s))(ye || {}), T = class extends a {
200
199
  static {
201
- s(this, "NxProjectDetectedError");
200
+ r(this, "NxProjectDetectedError");
202
201
  }
203
202
  constructor() {
204
203
  super({
@@ -210,9 +209,9 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
210
209
  Run "nx g @nx/storybook:configuration" to add Storybook to your project.`
211
210
  });
212
211
  }
213
- }, W = class extends a {
212
+ }, v = class extends a {
214
213
  static {
215
- s(this, "MissingFrameworkFieldError");
214
+ r(this, "MissingFrameworkFieldError");
216
215
  }
217
216
  constructor() {
218
217
  super({
@@ -225,7 +224,7 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
225
224
  Please run 'npx storybook automigrate' to automatically fix your config.`
226
225
  });
227
226
  }
228
- }, K = class extends a {
227
+ }, W = class extends a {
229
228
  constructor(o) {
230
229
  super({
231
230
  category: "CORE-COMMON",
@@ -240,9 +239,9 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
240
239
  this.data = o;
241
240
  }
242
241
  static {
243
- s(this, "InvalidFrameworkNameError");
242
+ r(this, "InvalidFrameworkNameError");
244
243
  }
245
- }, v = class extends a {
244
+ }, K = class extends a {
246
245
  constructor(o) {
247
246
  super({
248
247
  category: "CORE-COMMON",
@@ -256,11 +255,11 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
256
255
  this.data = o;
257
256
  }
258
257
  static {
259
- s(this, "CouldNotEvaluateFrameworkError");
258
+ r(this, "CouldNotEvaluateFrameworkError");
260
259
  }
261
260
  }, L = class extends a {
262
261
  static {
263
- s(this, "ConflictingStaticDirConfigError");
262
+ r(this, "ConflictingStaticDirConfigError");
264
263
  }
265
264
  constructor() {
266
265
  super({
@@ -277,7 +276,7 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
277
276
  }
278
277
  }, B = class extends a {
279
278
  static {
280
- s(this, "InvalidStoriesEntryError");
279
+ r(this, "InvalidStoriesEntryError");
281
280
  }
282
281
  constructor() {
283
282
  super({
@@ -293,7 +292,7 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
293
292
  }
294
293
  }, P = class extends a {
295
294
  static {
296
- s(this, "WebpackMissingStatsError");
295
+ r(this, "WebpackMissingStatsError");
297
296
  }
298
297
  constructor() {
299
298
  super({
@@ -318,19 +317,19 @@ WEB-COMPONENTS-WEBPACK5", r))(pe || {}), T = class extends a {
318
317
  this.data = o;
319
318
  }
320
319
  static {
321
- s(this, "WebpackInvocationError");
320
+ r(this, "WebpackInvocationError");
322
321
  }
323
322
  };
324
- function V(t = "") {
323
+ function j(t = "") {
325
324
  return t.replace(/\u001B\[[0-9;]*m/g, "");
326
325
  }
327
- s(V, "removeAnsiEscapeCodes");
328
- var $ = class extends a {
326
+ r(j, "removeAnsiEscapeCodes");
327
+ var V = class extends a {
329
328
  constructor(o) {
330
329
  o.errors = o.errors.map((n) => ({
331
330
  ...n,
332
- message: V(n.message),
333
- stack: V(n.stack),
331
+ message: j(n.message),
332
+ stack: j(n.stack),
334
333
  name: n.name
335
334
  }));
336
335
  super({
@@ -345,9 +344,9 @@ var $ = class extends a {
345
344
  this.data = o;
346
345
  }
347
346
  static {
348
- s(this, "WebpackCompilationError");
347
+ r(this, "WebpackCompilationError");
349
348
  }
350
- }, j = class extends a {
349
+ }, $ = class extends a {
351
350
  constructor(o) {
352
351
  super({
353
352
  category: "CLI_INIT",
@@ -360,11 +359,11 @@ var $ = class extends a {
360
359
  this.data = o;
361
360
  }
362
361
  static {
363
- s(this, "MissingAngularJsonError");
362
+ r(this, "MissingAngularJsonError");
364
363
  }
365
364
  }, F = class extends a {
366
365
  static {
367
- s(this, "AngularLegacyBuildOptionsError");
366
+ r(this, "AngularLegacyBuildOptionsError");
368
367
  }
369
368
  constructor() {
370
369
  super({
@@ -399,11 +398,11 @@ var $ = class extends a {
399
398
  this.data = o;
400
399
  }
401
400
  static {
402
- s(this, "CriticalPresetLoadError");
401
+ r(this, "CriticalPresetLoadError");
403
402
  }
404
403
  }, U = class extends a {
405
404
  static {
406
- s(this, "MissingBuilderError");
405
+ r(this, "MissingBuilderError");
407
406
  }
408
407
  constructor() {
409
408
  super({
@@ -434,7 +433,7 @@ var $ = class extends a {
434
433
  this.data = o;
435
434
  }
436
435
  static {
437
- s(this, "GoogleFontsDownloadError");
436
+ r(this, "GoogleFontsDownloadError");
438
437
  }
439
438
  }, Y = class extends a {
440
439
  constructor(o) {
@@ -450,9 +449,23 @@ var $ = class extends a {
450
449
  this.data = o;
451
450
  }
452
451
  static {
453
- s(this, "GoogleFontsLoadingError");
452
+ r(this, "GoogleFontsLoadingError");
454
453
  }
455
454
  }, H = class extends a {
455
+ static {
456
+ r(this, "SvelteViteWithSvelteKitError");
457
+ }
458
+ constructor() {
459
+ super({
460
+ category: "FRAMEWORK_SVELTE-VITE",
461
+ code: 1,
462
+ documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#sveltekit-needs-the-storybooksveltekit-framework",
463
+ message: i.dedent`
464
+ We've detected a SvelteKit project using the @storybook/svelte-vite framework, which is not supported.
465
+ Please use the @storybook/sveltekit framework instead.`
466
+ });
467
+ }
468
+ }, J = class extends a {
456
469
  constructor(o) {
457
470
  super({
458
471
  category: "CORE-SERVER",
@@ -473,9 +486,9 @@ var $ = class extends a {
473
486
  this.data = o;
474
487
  }
475
488
  static {
476
- s(this, "NoMatchingExportError");
489
+ r(this, "NoMatchingExportError");
477
490
  }
478
- }, J = class extends a {
491
+ }, X = class extends a {
479
492
  constructor(o) {
480
493
  let n = [
481
494
  `Storybook failed to load ${o.location}`,
@@ -510,9 +523,9 @@ var $ = class extends a {
510
523
  this.data = o;
511
524
  }
512
525
  static {
513
- s(this, "MainFileESMOnlyImportError");
526
+ r(this, "MainFileESMOnlyImportError");
514
527
  }
515
- }, X = class extends a {
528
+ }, z = class extends a {
516
529
  constructor(o) {
517
530
  let n = {
518
531
  storybook: {
@@ -538,9 +551,9 @@ var $ = class extends a {
538
551
  this.data = o;
539
552
  }
540
553
  static {
541
- s(this, "MainFileMissingError");
554
+ r(this, "MainFileMissingError");
542
555
  }
543
- }, z = class extends a {
556
+ }, q = class extends a {
544
557
  constructor(o) {
545
558
  let n = l.default.white(
546
559
  (o.error.stack || o.error.message).replaceAll(process.cwd(), "")
@@ -557,9 +570,9 @@ var $ = class extends a {
557
570
  this.data = o;
558
571
  }
559
572
  static {
560
- s(this, "MainFileEvaluationError");
573
+ r(this, "MainFileEvaluationError");
561
574
  }
562
- }, q = class extends a {
575
+ }, Q = class extends a {
563
576
  constructor(o) {
564
577
  super({
565
578
  category: "CORE-SERVER",
@@ -573,9 +586,9 @@ var $ = class extends a {
573
586
  this.data = o;
574
587
  }
575
588
  static {
576
- s(this, "StatusTypeIdMismatchError");
589
+ r(this, "StatusTypeIdMismatchError");
577
590
  }
578
- }, Q = class extends a {
591
+ }, Z = class extends a {
579
592
  constructor(o) {
580
593
  super({
581
594
  category: "CLI_INIT",
@@ -589,9 +602,9 @@ var $ = class extends a {
589
602
  this.data = o;
590
603
  }
591
604
  static {
592
- s(this, "GenerateNewProjectOnInitError");
605
+ r(this, "GenerateNewProjectOnInitError");
593
606
  }
594
- }, Z = class extends a {
607
+ }, ee = class extends a {
595
608
  constructor(o) {
596
609
  super({
597
610
  category: "CLI_UPGRADE",
@@ -611,9 +624,9 @@ var $ = class extends a {
611
624
  this.data = o;
612
625
  }
613
626
  static {
614
- s(this, "UpgradeStorybookToLowerVersionError");
627
+ r(this, "UpgradeStorybookToLowerVersionError");
615
628
  }
616
- }, ee = class extends a {
629
+ }, oe = class extends a {
617
630
  constructor(o) {
618
631
  super({
619
632
  category: "CLI_UPGRADE",
@@ -636,11 +649,11 @@ var $ = class extends a {
636
649
  this.data = o;
637
650
  }
638
651
  static {
639
- s(this, "UpgradeStorybookToSameVersionError");
652
+ r(this, "UpgradeStorybookToSameVersionError");
640
653
  }
641
- }, oe = class extends a {
654
+ }, te = class extends a {
642
655
  static {
643
- s(this, "UpgradeStorybookUnknownCurrentVersionError");
656
+ r(this, "UpgradeStorybookUnknownCurrentVersionError");
644
657
  }
645
658
  constructor() {
646
659
  super({
@@ -653,9 +666,9 @@ var $ = class extends a {
653
666
  It might help if you specify your Storybook config directory with the --config-dir flag.`
654
667
  });
655
668
  }
656
- }, te = class extends a {
669
+ }, re = class extends a {
657
670
  static {
658
- s(this, "UpgradeStorybookInWrongWorkingDirectory");
671
+ r(this, "UpgradeStorybookInWrongWorkingDirectory");
659
672
  }
660
673
  constructor() {
661
674
  super({
@@ -667,9 +680,9 @@ var $ = class extends a {
667
680
  Did you mean to run it in a different directory? Make sure the directory you run this command in contains a package.json with your Storybook dependencies.`
668
681
  });
669
682
  }
670
- }, re = class extends a {
683
+ }, se = class extends a {
671
684
  static {
672
- s(this, "NoStatsForViteDevError");
685
+ r(this, "NoStatsForViteDevError");
673
686
  }
674
687
  constructor() {
675
688
  super({
@@ -681,7 +694,7 @@ var $ = class extends a {
681
694
  Please remove the \`--stats-json\` flag when running in dev mode.`
682
695
  });
683
696
  }
684
- }, se = class extends a {
697
+ }, ne = class extends a {
685
698
  constructor(o) {
686
699
  super({
687
700
  category: "CLI",
@@ -693,36 +706,37 @@ var $ = class extends a {
693
706
  this.data = o;
694
707
  }
695
708
  static {
696
- s(this, "FindPackageVersionsError");
709
+ r(this, "FindPackageVersionsError");
697
710
  }
698
711
  };
699
712
  export {
700
713
  F as AngularLegacyBuildOptionsError,
701
- pe as Category,
714
+ ye as Category,
702
715
  L as ConflictingStaticDirConfigError,
703
- v as CouldNotEvaluateFrameworkError,
716
+ K as CouldNotEvaluateFrameworkError,
704
717
  D as CriticalPresetLoadError,
705
- se as FindPackageVersionsError,
706
- Q as GenerateNewProjectOnInitError,
718
+ ne as FindPackageVersionsError,
719
+ Z as GenerateNewProjectOnInitError,
707
720
  G as GoogleFontsDownloadError,
708
721
  Y as GoogleFontsLoadingError,
709
- K as InvalidFrameworkNameError,
722
+ W as InvalidFrameworkNameError,
710
723
  B as InvalidStoriesEntryError,
711
- J as MainFileESMOnlyImportError,
712
- z as MainFileEvaluationError,
713
- X as MainFileMissingError,
714
- j as MissingAngularJsonError,
724
+ X as MainFileESMOnlyImportError,
725
+ q as MainFileEvaluationError,
726
+ z as MainFileMissingError,
727
+ $ as MissingAngularJsonError,
715
728
  U as MissingBuilderError,
716
- W as MissingFrameworkFieldError,
717
- H as NoMatchingExportError,
718
- re as NoStatsForViteDevError,
729
+ v as MissingFrameworkFieldError,
730
+ J as NoMatchingExportError,
731
+ se as NoStatsForViteDevError,
719
732
  T as NxProjectDetectedError,
720
- q as StatusTypeIdMismatchError,
721
- te as UpgradeStorybookInWrongWorkingDirectory,
722
- Z as UpgradeStorybookToLowerVersionError,
723
- ee as UpgradeStorybookToSameVersionError,
724
- oe as UpgradeStorybookUnknownCurrentVersionError,
725
- $ as WebpackCompilationError,
733
+ Q as StatusTypeIdMismatchError,
734
+ H as SvelteViteWithSvelteKitError,
735
+ re as UpgradeStorybookInWrongWorkingDirectory,
736
+ ee as UpgradeStorybookToLowerVersionError,
737
+ oe as UpgradeStorybookToSameVersionError,
738
+ te as UpgradeStorybookUnknownCurrentVersionError,
739
+ V as WebpackCompilationError,
726
740
  N as WebpackInvocationError,
727
741
  P as WebpackMissingStatsError
728
742
  };
@@ -23,6 +23,12 @@ declare global {
23
23
  }
24
24
  }
25
25
 
26
+ declare global {
27
+ interface SymbolConstructor {
28
+ readonly observable: symbol;
29
+ }
30
+ }
31
+
26
32
  interface Renderer extends Renderer$1 {
27
33
  }
28
34
 
@@ -195,15 +195,12 @@ declare class Channel {
195
195
 
196
196
  interface Options$1 {
197
197
  allowRegExp: boolean;
198
- allowFunction: boolean;
199
198
  allowSymbol: boolean;
200
199
  allowDate: boolean;
201
200
  allowUndefined: boolean;
202
- allowClass: boolean;
203
201
  allowError: boolean;
204
202
  maxDepth: number;
205
203
  space: number | undefined;
206
- lazyEval: boolean;
207
204
  }
208
205
 
209
206
  /**
@@ -2431,7 +2428,7 @@ interface ComposeStoryFn<TRenderer extends Renderer$1 = Renderer$1, TArgs extend
2431
2428
  (storyAnnotations: AnnotatedStoryFn<TRenderer, TArgs> | StoryAnnotations<TRenderer, TArgs>, componentAnnotations: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations: ProjectAnnotations$1<TRenderer>, exportsName?: string): ComposedStoryFn;
2432
2429
  }
2433
2430
 
2434
- type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'nextjs' | 'nextjs-vite' | 'preact-vite' | 'react-native-web-vite' | 'react-vite' | 'react-webpack5' | 'server-webpack5' | 'svelte-vite' | 'svelte-webpack5' | 'sveltekit' | 'vue3-vite' | 'web-components-vite' | 'qwik' | 'solid' | 'nuxt' | 'react-rsbuild' | 'vue3-rsbuild';
2431
+ type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'nextjs' | 'nextjs-vite' | 'preact-vite' | 'react-native-web-vite' | 'react-vite' | 'react-webpack5' | 'server-webpack5' | 'svelte-vite' | 'sveltekit' | 'vue3-vite' | 'web-components-vite' | 'qwik' | 'solid' | 'nuxt' | 'react-rsbuild' | 'vue3-rsbuild';
2435
2432
 
2436
2433
  type SupportedRenderers = 'react' | 'react-native' | 'vue3' | 'angular' | 'ember' | 'preact' | 'svelte' | 'qwik' | 'html' | 'web-components' | 'server' | 'solid' | 'nuxt';
2437
2434
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "9.0.0-alpha.13",
3
+ "version": "9.0.0-alpha.15",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -760,7 +760,7 @@
760
760
  "store2": "^2.14.2",
761
761
  "strip-ansi": "^7.1.0",
762
762
  "strip-json-comments": "^5.0.1",
763
- "telejson": "^7.2.0",
763
+ "telejson": "8.0.0--canary.106.377d63b.0",
764
764
  "tiny-invariant": "^1.3.1",
765
765
  "tinyspy": "^3.0.2",
766
766
  "ts-dedent": "^2.0.0",