storybook 9.0.0-rc.4 → 9.0.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.
@@ -168,7 +168,7 @@ var De = O((st) => {
168
168
  });
169
169
 
170
170
  // ../node_modules/commander/lib/help.js
171
- var nt = O((Zt) => {
171
+ var nt = O((Pt) => {
172
172
  var { humanReadableArgName: Mr } = De(), it = class {
173
173
  static {
174
174
  d(this, "Help");
@@ -481,7 +481,7 @@ var nt = O((Zt) => {
481
481
  `);
482
482
  }
483
483
  };
484
- Zt.Help = it;
484
+ Pt.Help = it;
485
485
  });
486
486
 
487
487
  // ../node_modules/commander/lib/option.js
@@ -701,7 +701,7 @@ var ct = O((dt) => {
701
701
  });
702
702
 
703
703
  // ../node_modules/commander/lib/suggestSimilar.js
704
- var Nt = O((Pt) => {
704
+ var Vt = O((Nt) => {
705
705
  function Fr(s, e) {
706
706
  if (Math.abs(s.length - e.length) > 3)
707
707
  return Math.max(s.length, e.length);
@@ -740,14 +740,14 @@ var Nt = O((Pt) => {
740
740
  (Did you mean ${r[0]}?)` : "";
741
741
  }
742
742
  d(Br, "suggestSimilar");
743
- Pt.suggestSimilar = Br;
743
+ Nt.suggestSimilar = Br;
744
744
  });
745
745
 
746
746
  // ../node_modules/commander/lib/command.js
747
- var Lt = O((Mt) => {
747
+ var Ut = O((Lt) => {
748
748
  var Wr = me("node:events").EventEmitter, ut = me("node:child_process"), L = me("node:path"), lt = me("node:fs"), C = me("node:process"), {
749
- Argument: Hr, humanReadableArgName: Kr } = De(), { CommanderError: pt } = Oe(), { Help: zr } = nt(), { Option: Vt, DualOptions: Gr } = ct(),
750
- { suggestSimilar: Dt } = Nt(), ht = class s extends Wr {
749
+ Argument: Hr, humanReadableArgName: Kr } = De(), { CommanderError: pt } = Oe(), { Help: zr } = nt(), { Option: Dt, DualOptions: Gr } = ct(),
750
+ { suggestSimilar: $t } = Vt(), ht = class s extends Wr {
751
751
  static {
752
752
  d(this, "Command");
753
753
  }
@@ -1092,7 +1092,7 @@ Expecting one of '${r.join("', '")}'`);
1092
1092
  * @return {Option} new option
1093
1093
  */
1094
1094
  createOption(e, t) {
1095
- return new Vt(e, t);
1095
+ return new Dt(e, t);
1096
1096
  }
1097
1097
  /**
1098
1098
  * Wrap parseArgs to catch 'commander.invalidArgument'.
@@ -1187,7 +1187,7 @@ Expecting one of '${r.join("', '")}'`);
1187
1187
  * @private
1188
1188
  */
1189
1189
  _optionEx(e, t, r, i, n) {
1190
- if (typeof t == "object" && t instanceof Vt)
1190
+ if (typeof t == "object" && t instanceof Dt)
1191
1191
  throw new Error(
1192
1192
  "To add an Option object use addOption() instead of option() or requiredOption()"
1193
1193
  );
@@ -1516,8 +1516,8 @@ Expecting one of '${r.join("', '")}'`);
1516
1516
  }
1517
1517
  r = i.includes(L.extname(o));
1518
1518
  let l;
1519
- C.platform !== "win32" ? r ? (t.unshift(o), t = $t(C.execArgv).concat(t), l = ut.spawn(C.argv[0], t, { stdio: "inherit" })) : l = ut.spawn(
1520
- o, t, { stdio: "inherit" }) : (t.unshift(o), t = $t(C.execArgv).concat(t), l = ut.spawn(C.execPath, t, { stdio: "inherit" })), l.killed ||
1519
+ C.platform !== "win32" ? r ? (t.unshift(o), t = Mt(C.execArgv).concat(t), l = ut.spawn(C.argv[0], t, { stdio: "inherit" })) : l = ut.spawn(
1520
+ o, t, { stdio: "inherit" }) : (t.unshift(o), t = Mt(C.execArgv).concat(t), l = ut.spawn(C.execPath, t, { stdio: "inherit" })), l.killed ||
1521
1521
  ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"].forEach((y) => {
1522
1522
  C.on(y, () => {
1523
1523
  l.killed === !1 && l.exitCode === null && l.kill(y);
@@ -2008,7 +2008,7 @@ cutableDir() to supply a custom directory", k = `'${o}' does not exist
2008
2008
  let o = n.createHelp().visibleOptions(n).filter((a) => a.long).map((a) => a.long);
2009
2009
  i = i.concat(o), n = n.parent;
2010
2010
  } while (n && !n._enablePositionalOptions);
2011
- t = Dt(e, i);
2011
+ t = $t(e, i);
2012
2012
  }
2013
2013
  let r = `error: unknown option '${e}'${t}`;
2014
2014
  this.error(r, { code: "commander.unknownOption" });
@@ -2036,7 +2036,7 @@ cutableDir() to supply a custom directory", k = `'${o}' does not exist
2036
2036
  let i = [];
2037
2037
  this.createHelp().visibleCommands(this).forEach((n) => {
2038
2038
  i.push(n.name()), n.alias() && i.push(n.alias());
2039
- }), t = Dt(e, i);
2039
+ }), t = $t(e, i);
2040
2040
  }
2041
2041
  let r = `error: unknown command '${e}'${t}`;
2042
2042
  this.error(r, { code: "commander.unknownCommand" });
@@ -2292,7 +2292,7 @@ Expecting one of '${r.join("', '")}'`);
2292
2292
  t && e.find((i) => t.is(i)) && (this.outputHelp(), this._exit(0, "commander.helpDisplayed", "(outputHelp)"));
2293
2293
  }
2294
2294
  };
2295
- function $t(s) {
2295
+ function Mt(s) {
2296
2296
  return s.map((e) => {
2297
2297
  if (!e.startsWith("--inspect"))
2298
2298
  return e;
@@ -2302,35 +2302,35 @@ Expecting one of '${r.join("', '")}'`);
2302
2302
  n[3], i = n[4]), t && i !== "0" ? `${t}=${r}:${parseInt(i) + 1}` : e;
2303
2303
  });
2304
2304
  }
2305
- d($t, "incrementNodeInspectorPort");
2306
- Mt.Command = ht;
2305
+ d(Mt, "incrementNodeInspectorPort");
2306
+ Lt.Command = ht;
2307
2307
  });
2308
2308
 
2309
2309
  // ../node_modules/commander/index.js
2310
- var Bt = O((R) => {
2311
- var { Argument: Ut } = De(), { Command: mt } = Lt(), { CommanderError: Jr, InvalidArgumentError: qt } = Oe(), { Help: Yr } = nt(), { Option: Ft } = ct();
2310
+ var Wt = O((R) => {
2311
+ var { Argument: qt } = De(), { Command: mt } = Ut(), { CommanderError: Jr, InvalidArgumentError: Ft } = Oe(), { Help: Yr } = nt(), { Option: Bt } = ct();
2312
2312
  R.program = new mt();
2313
2313
  R.createCommand = (s) => new mt(s);
2314
- R.createOption = (s, e) => new Ft(s, e);
2315
- R.createArgument = (s, e) => new Ut(s, e);
2314
+ R.createOption = (s, e) => new Bt(s, e);
2315
+ R.createArgument = (s, e) => new qt(s, e);
2316
2316
  R.Command = mt;
2317
- R.Option = Ft;
2318
- R.Argument = Ut;
2317
+ R.Option = Bt;
2318
+ R.Argument = qt;
2319
2319
  R.Help = Yr;
2320
2320
  R.CommanderError = Jr;
2321
- R.InvalidArgumentError = qt;
2322
- R.InvalidOptionArgumentError = qt;
2321
+ R.InvalidArgumentError = Ft;
2322
+ R.InvalidOptionArgumentError = Ft;
2323
2323
  });
2324
2324
 
2325
2325
  // ../node_modules/walk-up-path/dist/cjs/index.js
2326
- var Ht = O(($e) => {
2326
+ var Kt = O(($e) => {
2327
2327
  "use strict";
2328
2328
  Object.defineProperty($e, "__esModule", { value: !0 });
2329
2329
  $e.walkUp = void 0;
2330
- var Wt = me("path"), Xr = /* @__PURE__ */ d(function* (s) {
2331
- for (s = (0, Wt.resolve)(s); s; ) {
2330
+ var Ht = me("path"), Xr = /* @__PURE__ */ d(function* (s) {
2331
+ for (s = (0, Ht.resolve)(s); s; ) {
2332
2332
  yield s;
2333
- let e = (0, Wt.dirname)(s);
2333
+ let e = (0, Ht.dirname)(s);
2334
2334
  if (e === s)
2335
2335
  break;
2336
2336
  s = e;
@@ -2340,8 +2340,8 @@ var Ht = O(($e) => {
2340
2340
  });
2341
2341
 
2342
2342
  // ../node_modules/picocolors/picocolors.js
2343
- var Yt = O((wn, yt) => {
2344
- var Le = process || {}, Gt = Le.argv || [], Me = Le.env || {}, is = !(Me.NO_COLOR || Gt.includes("--no-color")) && (!!Me.FORCE_COLOR || Gt.
2343
+ var Xt = O((xn, yt) => {
2344
+ var Le = process || {}, Jt = Le.argv || [], Me = Le.env || {}, is = !(Me.NO_COLOR || Jt.includes("--no-color")) && (!!Me.FORCE_COLOR || Jt.
2345
2345
  includes("--color") || Le.platform === "win32" || (Le.stdout || {}).isTTY && Me.TERM !== "dumb" || !!Me.CI), ns = /* @__PURE__ */ d((s, e, t = s) => (r) => {
2346
2346
  let i = "" + r, n = i.indexOf(e, s.length);
2347
2347
  return ~n ? s + os(i, e, t, n) + e : s + i + e;
@@ -2351,7 +2351,7 @@ var Yt = O((wn, yt) => {
2351
2351
  i += s.substring(n, r) + t, n = r + e.length, r = s.indexOf(e, n);
2352
2352
  while (~r);
2353
2353
  return i + s.substring(n);
2354
- }, "replaceClose"), Jt = /* @__PURE__ */ d((s = is) => {
2354
+ }, "replaceClose"), Yt = /* @__PURE__ */ d((s = is) => {
2355
2355
  let e = s ? ns : () => String;
2356
2356
  return {
2357
2357
  isColorSupported: s,
@@ -2398,12 +2398,12 @@ var Yt = O((wn, yt) => {
2398
2398
  bgWhiteBright: e("\x1B[107m", "\x1B[49m")
2399
2399
  };
2400
2400
  }, "createColors");
2401
- yt.exports = Jt();
2402
- yt.exports.createColors = Jt;
2401
+ yt.exports = Yt();
2402
+ yt.exports.createColors = Yt;
2403
2403
  });
2404
2404
 
2405
2405
  // ../node_modules/ts-dedent/dist/index.js
2406
- var vt = O((Te) => {
2406
+ var bt = O((Te) => {
2407
2407
  "use strict";
2408
2408
  Object.defineProperty(Te, "__esModule", { value: !0 });
2409
2409
  Te.dedent = void 0;
@@ -2449,7 +2449,7 @@ var Ee = O((w) => {
2449
2449
  "use strict";
2450
2450
  Object.defineProperty(w, "__esModule", { value: !0 });
2451
2451
  w.getParsedType = w.ZodParsedType = w.objectUtil = w.util = void 0;
2452
- var xt;
2452
+ var wt;
2453
2453
  (function(s) {
2454
2454
  s.assertEqual = (i) => i;
2455
2455
  function e(i) {
@@ -2485,7 +2485,7 @@ var Ee = O((w) => {
2485
2485
  return i.map((o) => typeof o == "string" ? `'${o}'` : o).join(n);
2486
2486
  }
2487
2487
  d(r, "joinValues"), s.joinValues = r, s.jsonStringifyReplacer = (i, n) => typeof n == "bigint" ? n.toString() : n;
2488
- })(xt || (w.util = xt = {}));
2488
+ })(wt || (w.util = wt = {}));
2489
2489
  var sr;
2490
2490
  (function(s) {
2491
2491
  s.mergeShapes = (e, t) => ({
@@ -2494,7 +2494,7 @@ var Ee = O((w) => {
2494
2494
  // second overwrites first
2495
2495
  });
2496
2496
  })(sr || (w.objectUtil = sr = {}));
2497
- w.ZodParsedType = xt.arrayToEnum([
2497
+ w.ZodParsedType = wt.arrayToEnum([
2498
2498
  "string",
2499
2499
  "nan",
2500
2500
  "number",
@@ -2637,9 +2637,9 @@ var Ue = O((K) => {
2637
2637
  });
2638
2638
 
2639
2639
  // ../node_modules/zod/lib/locales/en.js
2640
- var kt = O((wt) => {
2640
+ var Ct = O((kt) => {
2641
2641
  "use strict";
2642
- Object.defineProperty(wt, "__esModule", { value: !0 });
2642
+ Object.defineProperty(kt, "__esModule", { value: !0 });
2643
2643
  var X = Ee(), T = Ue(), ws = /* @__PURE__ */ d((s, e) => {
2644
2644
  let t;
2645
2645
  switch (s.code) {
@@ -2709,7 +2709,7 @@ ater than "}${new Date(Number(s.minimum))}` : t = "Invalid input";
2709
2709
  }
2710
2710
  return { message: t };
2711
2711
  }, "errorMap");
2712
- wt.default = ws;
2712
+ kt.default = ws;
2713
2713
  });
2714
2714
 
2715
2715
  // ../node_modules/zod/lib/errors.js
@@ -2720,7 +2720,7 @@ var qe = O((D) => {
2720
2720
  };
2721
2721
  Object.defineProperty(D, "__esModule", { value: !0 });
2722
2722
  D.getErrorMap = D.setErrorMap = D.defaultErrorMap = void 0;
2723
- var nr = ks(kt());
2723
+ var nr = ks(Ct());
2724
2724
  D.defaultErrorMap = nr.default;
2725
2725
  var or = nr.default;
2726
2726
  function Cs(s) {
@@ -2736,7 +2736,7 @@ var qe = O((D) => {
2736
2736
  });
2737
2737
 
2738
2738
  // ../node_modules/zod/lib/helpers/parseUtil.js
2739
- var It = O((x) => {
2739
+ var Ot = O((x) => {
2740
2740
  "use strict";
2741
2741
  var Os = x && x.__importDefault || function(s) {
2742
2742
  return s && s.__esModule ? s : { default: s };
@@ -2744,7 +2744,7 @@ var It = O((x) => {
2744
2744
  Object.defineProperty(x, "__esModule", { value: !0 });
2745
2745
  x.isAsync = x.isValid = x.isDirty = x.isAborted = x.OK = x.DIRTY = x.INVALID = x.ParseStatus = x.addIssueToContext = x.EMPTY_PATH = x.makeIssue =
2746
2746
  void 0;
2747
- var Ts = qe(), ar = Os(kt()), Es = /* @__PURE__ */ d((s) => {
2747
+ var Ts = qe(), ar = Os(Ct()), Es = /* @__PURE__ */ d((s) => {
2748
2748
  let { data: e, path: t, errorMaps: r, issueData: i } = s, n = [...t, ...i.path || []], o = {
2749
2749
  ...i,
2750
2750
  path: n
@@ -2786,7 +2786,7 @@ var It = O((x) => {
2786
2786
  }
2787
2787
  d(As, "addIssueToContext");
2788
2788
  x.addIssueToContext = As;
2789
- var Ct = class s {
2789
+ var It = class s {
2790
2790
  static {
2791
2791
  d(this, "ParseStatus");
2792
2792
  }
@@ -2831,7 +2831,7 @@ var It = O((x) => {
2831
2831
  return { status: e.value, value: r };
2832
2832
  }
2833
2833
  };
2834
- x.ParseStatus = Ct;
2834
+ x.ParseStatus = It;
2835
2835
  x.INVALID = Object.freeze({
2836
2836
  status: "aborted"
2837
2837
  });
@@ -2891,7 +2891,7 @@ t declare it");
2891
2891
  c.promise = c.preprocess = c.pipeline = c.ostring = c.optional = c.onumber = c.oboolean = c.object = c.number = c.nullable = c.null = c.never =
2892
2892
  c.nativeEnum = c.nan = c.map = c.literal = c.lazy = c.intersection = c.instanceof = c.function = c.enum = c.effect = c.discriminatedUnion =
2893
2893
  c.date = void 0;
2894
- var Be = qe(), g = lr(), u = It(), f = Ee(), m = Ue(), P = class {
2894
+ var Be = qe(), g = lr(), u = Ot(), f = Ee(), m = Ue(), P = class {
2895
2895
  static {
2896
2896
  d(this, "ParseInputLazyPath");
2897
2897
  }
@@ -3170,7 +3170,7 @@ eProperties");
3170
3170
  var Vs = /^c[^\s-]{8,}$/i, Ds = /^[0-9a-z]+$/, $s = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ms = /^[0-9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A-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,
3176
3176
  Gs = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Js = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,
@@ -3268,7 +3268,7 @@ onent})+$", Ot, Ws = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3268
3268
  message: n.message
3269
3269
  }), r.dirty());
3270
3270
  else if (n.kind === "emoji")
3271
- Ot || (Ot = new RegExp(Bs, "u")), Ot.test(e.data) || (i = this._getOrReturnCtx(e, i), (0, u.addIssueToContext)(i, {
3271
+ Tt || (Tt = new RegExp(Bs, "u")), Tt.test(e.data) || (i = this._getOrReturnCtx(e, i), (0, u.addIssueToContext)(i, {
3272
3272
  validation: "emoji",
3273
3273
  code: m.ZodIssueCode.invalid_string,
3274
3274
  message: n.message
@@ -4700,14 +4700,14 @@ onent})+$", Ot, Ws = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
4700
4700
  }
4701
4701
  };
4702
4702
  c.ZodDiscriminatedUnion = He;
4703
- function Tt(s, e) {
4703
+ function Et(s, e) {
4704
4704
  let t = (0, f.getParsedType)(s), r = (0, f.getParsedType)(e);
4705
4705
  if (s === e)
4706
4706
  return { valid: !0, data: s };
4707
4707
  if (t === f.ZodParsedType.object && r === f.ZodParsedType.object) {
4708
4708
  let i = f.util.objectKeys(e), n = f.util.objectKeys(s).filter((a) => i.indexOf(a) !== -1), o = { ...s, ...e };
4709
4709
  for (let a of n) {
4710
- let l = Tt(s[a], e[a]);
4710
+ let l = Et(s[a], e[a]);
4711
4711
  if (!l.valid)
4712
4712
  return { valid: !1 };
4713
4713
  o[a] = l.data;
@@ -4718,7 +4718,7 @@ onent})+$", Ot, Ws = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
4718
4718
  return { valid: !1 };
4719
4719
  let i = [];
4720
4720
  for (let n = 0; n < s.length; n++) {
4721
- let o = s[n], a = e[n], l = Tt(o, a);
4721
+ let o = s[n], a = e[n], l = Et(o, a);
4722
4722
  if (!l.valid)
4723
4723
  return { valid: !1 };
4724
4724
  i.push(l.data);
@@ -4726,7 +4726,7 @@ onent})+$", Ot, Ws = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
4726
4726
  return { valid: !0, data: i };
4727
4727
  } else return t === f.ZodParsedType.date && r === f.ZodParsedType.date && +s == +e ? { valid: !0, data: s } : { valid: !1 };
4728
4728
  }
4729
- d(Tt, "mergeValues");
4729
+ d(Et, "mergeValues");
4730
4730
  var oe = class extends b {
4731
4731
  static {
4732
4732
  d(this, "ZodIntersection");
@@ -4735,7 +4735,7 @@ onent})+$", Ot, Ws = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
4735
4735
  let { status: t, ctx: r } = this._processInputParams(e), i = /* @__PURE__ */ d((n, o) => {
4736
4736
  if ((0, u.isAborted)(n) || (0, u.isAborted)(o))
4737
4737
  return u.INVALID;
4738
- let a = Tt(n.value, o.value);
4738
+ let a = Et(n.value, o.value);
4739
4739
  return a.valid ? (((0, u.isDirty)(n) || (0, u.isDirty)(o)) && t.dirty(), { status: t.value, value: a.data }) : ((0, u.addIssueToContext)(
4740
4740
  r, {
4741
4741
  code: m.ZodIssueCode.invalid_intersection_types
@@ -5712,7 +5712,7 @@ adonly";
5712
5712
  });
5713
5713
 
5714
5714
  // ../node_modules/zod/lib/external.js
5715
- var Et = O((N) => {
5715
+ var At = O((N) => {
5716
5716
  "use strict";
5717
5717
  var Di = N && N.__createBinding || (Object.create ? function(s, e, t, r) {
5718
5718
  r === void 0 && (r = t);
@@ -5727,7 +5727,7 @@ var Et = O((N) => {
5727
5727
  };
5728
5728
  Object.defineProperty(N, "__esModule", { value: !0 });
5729
5729
  we(qe(), N);
5730
- we(It(), N);
5730
+ we(Ot(), N);
5731
5731
  we(cr(), N);
5732
5732
  we(Ee(), N);
5733
5733
  we(Cr(), N);
@@ -5759,23 +5759,23 @@ var Tr = O((A) => {
5759
5759
  };
5760
5760
  Object.defineProperty(A, "__esModule", { value: !0 });
5761
5761
  A.z = void 0;
5762
- var Or = Mi(Et());
5762
+ var Or = Mi(At());
5763
5763
  A.z = Or;
5764
- Li(Et(), A);
5764
+ Li(At(), A);
5765
5765
  A.default = Or;
5766
5766
  });
5767
5767
 
5768
5768
  // src/cli/bin/index.ts
5769
- var Pe = fe(Bt(), 1);
5770
- import { getEnvConfig as jt, parseList as Ki, versions as zi } from "storybook/internal/common";
5771
- import { logger as St } from "storybook/internal/node-logger";
5772
- import { addToGlobalContext as Gi } from "storybook/internal/telemetry";
5769
+ var Pe = fe(Wt(), 1);
5770
+ import { getEnvConfig as St, parseList as Ki } from "storybook/internal/common";
5771
+ import { logger as Rt } from "storybook/internal/node-logger";
5772
+ import { addToGlobalContext as zi } from "storybook/internal/telemetry";
5773
5773
 
5774
5774
  // ../node_modules/fd-package-json/dist/esm/main.js
5775
- var Kt = fe(Ht(), 1);
5775
+ var zt = fe(Kt(), 1);
5776
5776
  import { resolve as Qr } from "node:path";
5777
5777
  import { stat as es, readFile as ts } from "node:fs/promises";
5778
- import { statSync as gn, readFileSync as yn } from "node:fs";
5778
+ import { statSync as fn, readFileSync as gn } from "node:fs";
5779
5779
  async function rs(s) {
5780
5780
  try {
5781
5781
  return (await es(s)).isFile();
@@ -5785,7 +5785,7 @@ async function rs(s) {
5785
5785
  }
5786
5786
  d(rs, "fileExists");
5787
5787
  async function ss(s) {
5788
- for (let e of (0, Kt.walkUp)(s)) {
5788
+ for (let e of (0, zt.walkUp)(s)) {
5789
5789
  let t = Qr(e, "package.json");
5790
5790
  if (await rs(t))
5791
5791
  return t;
@@ -5807,7 +5807,7 @@ async function W(s) {
5807
5807
  d(W, "findPackage");
5808
5808
 
5809
5809
  // node_modules/leven/index.js
5810
- var ft = [], zt = [];
5810
+ var ft = [], Gt = [];
5811
5811
  function gt(s, e) {
5812
5812
  if (s === e)
5813
5813
  return 0;
@@ -5823,16 +5823,16 @@ function gt(s, e) {
5823
5823
  return i;
5824
5824
  let o, a, l, p, h = 0, y = 0;
5825
5825
  for (; h < r; )
5826
- zt[h] = s.charCodeAt(n + h), ft[h] = ++h;
5826
+ Gt[h] = s.charCodeAt(n + h), ft[h] = ++h;
5827
5827
  for (; y < i; )
5828
5828
  for (o = e.charCodeAt(n + y), l = y++, a = y, h = 0; h < r; h++)
5829
- p = o === zt[h] ? l : l + 1, l = ft[h], a = ft[h] = l > a ? p > a ? a + 1 : p : p > l ? l + 1 : p;
5829
+ p = o === Gt[h] ? l : l + 1, l = ft[h], a = ft[h] = l > a ? p > a ? a + 1 : p : p > l ? l + 1 : p;
5830
5830
  return a;
5831
5831
  }
5832
5832
  d(gt, "leven");
5833
5833
 
5834
5834
  // src/cli/bin/index.ts
5835
- var Ne = fe(Yt(), 1);
5835
+ var Ne = fe(Xt(), 1);
5836
5836
 
5837
5837
  // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
5838
5838
  var as = process.env.NODE_ENV === "production", _t = "Invariant failed";
@@ -5847,7 +5847,7 @@ function H(s, e) {
5847
5847
  d(H, "invariant");
5848
5848
 
5849
5849
  // package.json
5850
- var Xt = "9.0.0-rc.4";
5850
+ var vt = "9.0.0";
5851
5851
 
5852
5852
  // src/cli/build.ts
5853
5853
  import { cache as cs } from "storybook/internal/common";
@@ -5895,14 +5895,14 @@ var er = /* @__PURE__ */ d(async (s) => {
5895
5895
  import { cache as fs } from "storybook/internal/common";
5896
5896
  import { buildDevStandalone as gs, withTelemetry as ys } from "storybook/internal/core-server";
5897
5897
  import { logger as Y, instance as _s } from "storybook/internal/node-logger";
5898
- var bt = fe(vt(), 1);
5898
+ var xt = fe(bt(), 1);
5899
5899
  function vs(s) {
5900
5900
  _s.heading = "", s instanceof Error ? s.error ? Y.error(s.error) : s.stats && s.stats.compilation.errors ? s.stats.compilation.errors.forEach(
5901
5901
  (e) => Y.plain(e)) : Y.error(s) : s.compilation?.errors && s.compilation.errors.forEach((e) => Y.plain(e)), Y.line(), Y.warn(
5902
- s.close ? bt.dedent`
5902
+ s.close ? xt.dedent`
5903
5903
  FATAL broken build!, will close the process,
5904
5904
  Fix the error below and restart storybook.
5905
- ` : bt.dedent`
5905
+ ` : xt.dedent`
5906
5906
  Broken build, fix the error above.
5907
5907
  You may need to refresh the browser.
5908
5908
  `
@@ -5935,12 +5935,12 @@ var rr = /* @__PURE__ */ d(async (s) => {
5935
5935
 
5936
5936
  // src/cli/globalSettings.ts
5937
5937
  var Ce = fe(Tr(), 1);
5938
- import At from "node:fs/promises";
5938
+ import jt from "node:fs/promises";
5939
5939
  import { homedir as Ui } from "node:os";
5940
5940
  import { dirname as qi, join as Fi } from "node:path";
5941
5941
 
5942
5942
  // src/server-errors.ts
5943
- var Ar = fe(vt(), 1);
5943
+ var Ar = fe(bt(), 1);
5944
5944
 
5945
5945
  // src/storybook-error.ts
5946
5946
  function Er({
@@ -6021,7 +6021,7 @@ async function jr(s = Bi) {
6021
6021
  if (ke)
6022
6022
  return ke;
6023
6023
  try {
6024
- let e = await At.readFile(s, "utf8"), t = Hi.parse(JSON.parse(e));
6024
+ let e = await jt.readFile(s, "utf8"), t = Hi.parse(JSON.parse(e));
6025
6025
  ke = new Ye(s, t);
6026
6026
  } catch {
6027
6027
  ke = new Ye(s, { version: Wi, userSince: Date.now() }), await ke.save();
@@ -6045,7 +6045,7 @@ var Ye = class {
6045
6045
  /** Save settings to the file */
6046
6046
  async save() {
6047
6047
  try {
6048
- await At.mkdir(qi(this.filePath), { recursive: !0 }), await At.writeFile(this.filePath, JSON.stringify(this.value, null, 2));
6048
+ await jt.mkdir(qi(this.filePath), { recursive: !0 }), await jt.writeFile(this.filePath, JSON.stringify(this.value, null, 2));
6049
6049
  } catch (e) {
6050
6050
  throw new Je({
6051
6051
  filePath: this.filePath,
@@ -6056,8 +6056,8 @@ var Ye = class {
6056
6056
  };
6057
6057
 
6058
6058
  // src/cli/bin/index.ts
6059
- Gi("cliVersion", zi.storybook);
6060
- var Ie = console, Rt = /* @__PURE__ */ d((s) => Pe.program.command(s).option(
6059
+ zi("cliVersion", vt);
6060
+ var Ie = console, Zt = /* @__PURE__ */ d((s) => Pe.program.command(s).option(
6061
6061
  "--disable-telemetry",
6062
6062
  "Disable sending telemetry data",
6063
6063
  // default value is false, but if the user sets STORYBOOK_DISABLE_TELEMETRY, it can be true
@@ -6070,7 +6070,7 @@ var Ie = console, Rt = /* @__PURE__ */ d((s) => Pe.program.command(s).option(
6070
6070
  Ie.error("Error loading global settings", e);
6071
6071
  }
6072
6072
  }), "command");
6073
- Rt("dev").option("-p, --port <number>", "Port to run Storybook", (s) => parseInt(s, 10)).option("-h, --host <string>", "Host to run Storyboo\
6073
+ Zt("dev").option("-p, --port <number>", "Port to run Storybook", (s) => parseInt(s, 10)).option("-h, --host <string>", "Host to run Storyboo\
6074
6074
  k").option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option(
6075
6075
  "--https",
6076
6076
  "Serve Storybook over HTTPS. Note: You must provide your own certificate information."
@@ -6093,10 +6093,10 @@ ly site using addon-docs").option("--exact-port", "Exit early if the desired por
6093
6093
  "--initial-path [path]",
6094
6094
  "URL path to be appended when visiting Storybook for the first time"
6095
6095
  ).option("--preview-only", "Use the preview without the manager UI").action(async (s) => {
6096
- St.setLevel(s.loglevel);
6096
+ Rt.setLevel(s.loglevel);
6097
6097
  let e = await W(__dirname);
6098
6098
  H(e, "Failed to find the closest package.json file."), Ie.log(Ne.default.bold(`${e.name} v${e.version}`) + Ne.default.reset(`
6099
- `)), jt(s, {
6099
+ `)), St(s, {
6100
6100
  port: "SBCONFIG_PORT",
6101
6101
  host: "SBCONFIG_HOSTNAME",
6102
6102
  staticDir: "SBCONFIG_STATIC_DIR",
@@ -6104,7 +6104,7 @@ ly site using addon-docs").option("--exact-port", "Exit early if the desired por
6104
6104
  ci: "CI"
6105
6105
  }), parseInt(`${s.port}`, 10) && (s.port = parseInt(`${s.port}`, 10)), await rr({ ...s, packageJson: e }).catch(() => process.exit(1));
6106
6106
  });
6107
- Rt("build").option("-o, --output-dir <dir-name>", "Directory where to store built files").option("-c, --config-dir <dir-name>", "Directory w\
6107
+ Zt("build").option("-o, --output-dir <dir-name>", "Directory where to store built files").option("-c, --config-dir <dir-name>", "Directory w\
6108
6108
  here to load Storybook configurations from").option("--quiet", "Suppress verbose build output").option("--loglevel <level>", "Control level \
6109
6109
  of logging during build").option("--debug-webpack", "Display final webpack configurations for debugging purposes").option(
6110
6110
  "--webpack-stats-json [directory]",
@@ -6118,8 +6118,8 @@ ut the manager UI").action(async (s) => {
6118
6118
  let { env: e } = process;
6119
6119
  e.NODE_ENV = e.NODE_ENV || "production";
6120
6120
  let t = await W(__dirname);
6121
- H(t, "Failed to find the closest package.json file."), St.setLevel(s.loglevel), Ie.log(Ne.default.bold(`${t.name} v${t.version}
6122
- `)), jt(s, {
6121
+ H(t, "Failed to find the closest package.json file."), Rt.setLevel(s.loglevel), Ie.log(Ne.default.bold(`${t.name} v${t.version}
6122
+ `)), St(s, {
6123
6123
  staticDir: "SBCONFIG_STATIC_DIR",
6124
6124
  outputDir: "SBCONFIG_OUTPUT_DIR",
6125
6125
  configDir: "SBCONFIG_CONFIG_DIR"
@@ -6129,14 +6129,14 @@ ut the manager UI").action(async (s) => {
6129
6129
  test: !!s.test || process.env.SB_TESTBUILD === "true"
6130
6130
  }).catch(() => process.exit(1));
6131
6131
  });
6132
- Rt("index").option("-o, --output-file <file-name>", "JSON file to output index").option("-c, --config-dir <dir-name>", "Directory where to l\
6132
+ Zt("index").option("-o, --output-file <file-name>", "JSON file to output index").option("-c, --config-dir <dir-name>", "Directory where to l\
6133
6133
  oad Storybook configurations from").option("--quiet", "Suppress verbose build output").option("--loglevel <level>", "Control level of loggin\
6134
6134
  g during build").action(async (s) => {
6135
6135
  let { env: e } = process;
6136
6136
  e.NODE_ENV = e.NODE_ENV || "production";
6137
6137
  let t = await W(__dirname);
6138
- H(t, "Failed to find the closest package.json file."), St.setLevel(s.loglevel), Ie.log(Ne.default.bold(`${t.name} v${t.version}
6139
- `)), jt(s, {
6138
+ H(t, "Failed to find the closest package.json file."), Rt.setLevel(s.loglevel), Ie.log(Ne.default.bold(`${t.name} v${t.version}
6139
+ `)), St(s, {
6140
6140
  configDir: "SBCONFIG_CONFIG_DIR",
6141
6141
  outputFile: "SBCONFIG_OUTPUT_FILE"
6142
6142
  }), await er({
@@ -6154,4 +6154,4 @@ Pe.program.on("command:*", ([s]) => {
6154
6154
  t && Ie.info(`
6155
6155
  Did you mean ${t}?`), process.exit(1);
6156
6156
  });
6157
- Pe.program.usage("<command> [options]").version(String(Xt)).parse(process.argv);
6157
+ Pe.program.usage("<command> [options]").version(String(vt)).parse(process.argv);