storybook 9.0.0-rc.2 → 9.0.0-rc.3

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.
@@ -381,7 +381,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
381
381
  value: t
382
382
  };
383
383
  }, "parsePrefix")
384
- }), Lt = x({
384
+ }), Vt = x({
385
385
  name: "parenthesisParslet",
386
386
  accept: /* @__PURE__ */ r((e) => e === "(", "accept"),
387
387
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -401,7 +401,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
401
401
  element: J(t)
402
402
  };
403
403
  }, "parsePrefix")
404
- }), Vt = x({
404
+ }), Lt = x({
405
405
  name: "specialTypesParslet",
406
406
  accept: /* @__PURE__ */ r((e, t) => e === "?" && Ye(t) || e === "null" || e === "undefined" || e === "*", "accept"),
407
407
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -514,8 +514,8 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
514
514
  we,
515
515
  Q,
516
516
  Z,
517
- Lt,
518
517
  Vt,
518
+ Lt,
519
519
  Ut,
520
520
  Bt({
521
521
  allowTrailingComma: !0
@@ -528,12 +528,12 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
528
528
  return /* @__PURE__ */ r(function(l, f, d) {
529
529
  if (d == null || f >= y.NAME_PATH)
530
530
  return null;
531
- let h = l.lexer.current.type, O = l.lexer.next.type;
532
- if (!(h === "." && O !== "<" || h === "[" && (e || d.type === "JsdocTypeName") || t && (h === "~" || h === "#")))
531
+ let h = l.lexer.current.type, D = l.lexer.next.type;
532
+ if (!(h === "." && D !== "<" || h === "[" && (e || d.type === "JsdocTypeName") || t && (h === "~" || h === "#")))
533
533
  return null;
534
- let D, ae = !1;
535
- l.consume(".") ? D = "property" : l.consume("[") ? (D = "property-brackets", ae = !0) : l.consume("~") ? D = "inner" : (l.consume("#"),
536
- D = "instance");
534
+ let O, ae = !1;
535
+ l.consume(".") ? O = "property" : l.consume("[") ? (O = "property-brackets", ae = !0) : l.consume("~") ? O = "inner" : (l.consume("#"),
536
+ O = "instance");
537
537
  let rt = o !== null ? new I(o, l.lexer, l) : l, k = rt.parseIntermediateType(y.NAME_PATH);
538
538
  l.acceptLexerState(rt);
539
539
  let G;
@@ -582,7 +582,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
582
582
  type: "JsdocTypeNamePath",
583
583
  left: J(d),
584
584
  right: G,
585
- pathType: D
585
+ pathType: O
586
586
  };
587
587
  }, "namePathParslet");
588
588
  }
@@ -637,12 +637,12 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
637
637
  }
638
638
  };
639
639
  else {
640
- let O = "", E = ["Identifier", "@", "/"];
641
- for (; E.some((D) => o.consume(D)); )
642
- O += f.text, f = o.lexer.current;
640
+ let D = "", E = ["Identifier", "@", "/"];
641
+ for (; E.some((O) => o.consume(O)); )
642
+ D += f.text, f = o.lexer.current;
643
643
  l = {
644
644
  type: "JsdocTypeSpecialNamePath",
645
- value: O,
645
+ value: D,
646
646
  specialType: i,
647
647
  meta: {
648
648
  quote: void 0
@@ -666,7 +666,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
666
666
  allowJsdocNamePaths: !0,
667
667
  pathGrammar: null
668
668
  })
669
- ], V = [
669
+ ], L = [
670
670
  ...We,
671
671
  te({
672
672
  allowedTypes: ["event"],
@@ -713,13 +713,13 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
713
713
  arrow: !1,
714
714
  constructor: f,
715
715
  parenthesis: d
716
- }, O = l.parseIntermediateType(y.FUNCTION);
716
+ }, D = l.parseIntermediateType(y.FUNCTION);
717
717
  if (e === void 0)
718
- h.parameters = Kt(O);
718
+ h.parameters = Kt(D);
719
719
  else {
720
- if (f && O.type === "JsdocTypeFunction" && O.arrow)
721
- return h = O, h.constructor = !0, h;
722
- h.parameters = be(O);
720
+ if (f && D.type === "JsdocTypeFunction" && D.arrow)
721
+ return h = D, h.constructor = !0, h;
722
+ h.parameters = be(D);
723
723
  for (let E of h.parameters)
724
724
  if (E.type === "JsdocTypeKeyValue" && !e.includes(E.key))
725
725
  throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${E.type}`);
@@ -873,49 +873,49 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
873
873
  });
874
874
  }
875
875
  r(Ne, "createObjectParslet");
876
- function Oe({ allowSquaredProperties: e, allowKeyTypes: t, allowReadonly: o, allowOptional: i }) {
876
+ function De({ allowSquaredProperties: e, allowKeyTypes: t, allowReadonly: o, allowOptional: i }) {
877
877
  return x({
878
878
  name: "objectFieldParslet",
879
879
  precedence: y.KEY_VALUE,
880
880
  accept: /* @__PURE__ */ r((l) => l === ":", "accept"),
881
881
  parseInfix: /* @__PURE__ */ r((l, f) => {
882
882
  var d;
883
- let h = !1, O = !1;
884
- i && f.type === "JsdocTypeNullable" && (h = !0, f = f.element), o && f.type === "JsdocTypeReadonlyProperty" && (O = !0, f = f.element);
883
+ let h = !1, D = !1;
884
+ i && f.type === "JsdocTypeNullable" && (h = !0, f = f.element), o && f.type === "JsdocTypeReadonlyProperty" && (D = !0, f = f.element);
885
885
  let E = (d = l.baseParser) !== null && d !== void 0 ? d : l;
886
886
  if (E.acceptLexerState(l), f.type === "JsdocTypeNumber" || f.type === "JsdocTypeName" || f.type === "JsdocTypeStringValue" || Je(f)) {
887
887
  if (Je(f) && !e)
888
888
  throw new c(f);
889
889
  E.consume(":");
890
- let D;
891
- f.type === "JsdocTypeStringValue" && (D = f.meta.quote);
890
+ let O;
891
+ f.type === "JsdocTypeStringValue" && (O = f.meta.quote);
892
892
  let ae = E.parseType(y.KEY_VALUE);
893
893
  return l.acceptLexerState(E), {
894
894
  type: "JsdocTypeObjectField",
895
895
  key: Je(f) ? f : f.value.toString(),
896
896
  right: ae,
897
897
  optional: h,
898
- readonly: O,
898
+ readonly: D,
899
899
  meta: {
900
- quote: D
900
+ quote: O
901
901
  }
902
902
  };
903
903
  } else {
904
904
  if (!t)
905
905
  throw new c(f);
906
906
  E.consume(":");
907
- let D = E.parseType(y.KEY_VALUE);
907
+ let O = E.parseType(y.KEY_VALUE);
908
908
  return l.acceptLexerState(E), {
909
909
  type: "JsdocTypeJsdocObjectField",
910
910
  left: J(f),
911
- right: D
911
+ right: O
912
912
  };
913
913
  }
914
914
  }, "parseInfix")
915
915
  });
916
916
  }
917
- r(Oe, "createObjectFieldParslet");
918
- function De({ allowOptional: e, allowVariadic: t }) {
917
+ r(De, "createObjectFieldParslet");
918
+ function Oe({ allowOptional: e, allowVariadic: t }) {
919
919
  return x({
920
920
  name: "keyValueParslet",
921
921
  precedence: y.KEY_VALUE,
@@ -937,7 +937,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
937
937
  }, "parseInfix")
938
938
  });
939
939
  }
940
- r(De, "createKeyValueParslet");
940
+ r(Oe, "createKeyValueParslet");
941
941
  let ze = [
942
942
  ...Pe,
943
943
  Se({
@@ -949,7 +949,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
949
949
  Y,
950
950
  te({
951
951
  allowedTypes: ["module", "external", "event"],
952
- pathGrammar: V
952
+ pathGrammar: L
953
953
  }),
954
954
  Ee({
955
955
  allowEnclosingBrackets: !0,
@@ -963,7 +963,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
963
963
  ee({
964
964
  allowSquareBracketsOnAnyType: !1,
965
965
  allowJsdocNamePaths: !0,
966
- pathGrammar: V
966
+ pathGrammar: L
967
967
  })
968
968
  ], $t = [
969
969
  ...ze,
@@ -974,7 +974,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
974
974
  R({
975
975
  allowedAdditionalTokens: ["module", "in"]
976
976
  }),
977
- Oe({
977
+ De({
978
978
  allowSquaredProperties: !1,
979
979
  allowKeyTypes: !0,
980
980
  allowOptional: !1,
@@ -984,7 +984,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
984
984
  ],
985
985
  allowKeyTypes: !0
986
986
  }),
987
- De({
987
+ Oe({
988
988
  allowOptional: !0,
989
989
  allowVariadic: !0
990
990
  })
@@ -1003,7 +1003,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
1003
1003
  Q,
1004
1004
  Y,
1005
1005
  Z,
1006
- Oe({
1006
+ De({
1007
1007
  allowSquaredProperties: !1,
1008
1008
  allowKeyTypes: !1,
1009
1009
  allowOptional: !1,
@@ -1035,14 +1035,14 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
1035
1035
  }),
1036
1036
  te({
1037
1037
  allowedTypes: ["module"],
1038
- pathGrammar: V
1038
+ pathGrammar: L
1039
1039
  }),
1040
1040
  ee({
1041
1041
  allowSquareBracketsOnAnyType: !1,
1042
1042
  allowJsdocNamePaths: !0,
1043
- pathGrammar: V
1043
+ pathGrammar: L
1044
1044
  }),
1045
- De({
1045
+ Oe({
1046
1046
  allowOptional: !1,
1047
1047
  allowVariadic: !1
1048
1048
  }),
@@ -1194,7 +1194,7 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
1194
1194
  Q,
1195
1195
  Y,
1196
1196
  Z,
1197
- Oe({
1197
+ De({
1198
1198
  allowSquaredProperties: !0,
1199
1199
  allowKeyTypes: !1,
1200
1200
  allowOptional: !0,
@@ -1230,18 +1230,18 @@ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11
1230
1230
  }),
1231
1231
  te({
1232
1232
  allowedTypes: ["module"],
1233
- pathGrammar: V
1233
+ pathGrammar: L
1234
1234
  }),
1235
1235
  Xe,
1236
1236
  Qt,
1237
1237
  ee({
1238
1238
  allowSquareBracketsOnAnyType: !0,
1239
1239
  allowJsdocNamePaths: !1,
1240
- pathGrammar: V
1240
+ pathGrammar: L
1241
1241
  }),
1242
1242
  Zt,
1243
1243
  er,
1244
- De({
1244
+ Oe({
1245
1245
  allowVariadic: !0,
1246
1246
  allowOptional: !0
1247
1247
  })
@@ -1543,7 +1543,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1543
1543
  return W(pr, e);
1544
1544
  }
1545
1545
  r(cr, "catharsisTransform");
1546
- function L(e) {
1546
+ function V(e) {
1547
1547
  switch (e) {
1548
1548
  case void 0:
1549
1549
  return "none";
@@ -1553,7 +1553,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1553
1553
  return "double";
1554
1554
  }
1555
1555
  }
1556
- r(L, "getQuoteStyle");
1556
+ r(V, "getQuoteStyle");
1557
1557
  function lr(e) {
1558
1558
  switch (e) {
1559
1559
  case "inner":
@@ -1630,7 +1630,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1630
1630
  type: "IMPORT",
1631
1631
  path: {
1632
1632
  type: "STRING_VALUE",
1633
- quoteStyle: L(e.element.meta.quote),
1633
+ quoteStyle: V(e.element.meta.quote),
1634
1634
  string: e.element.value
1635
1635
  }
1636
1636
  }), "JsdocTypeImport"),
@@ -1683,7 +1683,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1683
1683
  return {
1684
1684
  type: "RECORD_ENTRY",
1685
1685
  key: e.key,
1686
- quoteStyle: L(e.meta.quote),
1686
+ quoteStyle: V(e.meta.quote),
1687
1687
  value: null,
1688
1688
  readonly: !1
1689
1689
  };
@@ -1697,7 +1697,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1697
1697
  }), {
1698
1698
  type: "RECORD_ENTRY",
1699
1699
  key: e.key.toString(),
1700
- quoteStyle: L(e.meta.quote),
1700
+ quoteStyle: V(e.meta.quote),
1701
1701
  value: o,
1702
1702
  readonly: !1
1703
1703
  };
@@ -1745,15 +1745,15 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1745
1745
  type: "MODULE",
1746
1746
  value: {
1747
1747
  type: "FILE_PATH",
1748
- quoteStyle: L(e.meta.quote),
1748
+ quoteStyle: V(e.meta.quote),
1749
1749
  path: e.value
1750
1750
  }
1751
1751
  };
1752
1752
  }, "JsdocTypeSpecialNamePath"),
1753
1753
  JsdocTypeNamePath: /* @__PURE__ */ r((e, t) => {
1754
1754
  let o = !1, i, l;
1755
- e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (o = !0, i = e.right.value, l = L(e.right.meta.quote)) :
1756
- (i = e.right.value, l = L(e.right.meta.quote));
1755
+ e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (o = !0, i = e.right.value, l = V(e.right.meta.quote)) :
1756
+ (i = e.right.value, l = V(e.right.meta.quote));
1757
1757
  let f = {
1758
1758
  type: lr(e.pathType),
1759
1759
  owner: t(e.left),
@@ -1781,7 +1781,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1781
1781
  }), "JsdocTypeUnknown"),
1782
1782
  JsdocTypeStringValue: /* @__PURE__ */ r((e) => ({
1783
1783
  type: "STRING_VALUE",
1784
- quoteStyle: L(e.meta.quote),
1784
+ quoteStyle: V(e.meta.quote),
1785
1785
  string: e.value
1786
1786
  }), "JsdocTypeStringValue"),
1787
1787
  JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => ve("INTERSECTION", e.elements.map(t)), "JsdocTypeIntersection"),
@@ -1982,8 +1982,8 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1982
1982
  let h = e[d];
1983
1983
  if (h !== void 0)
1984
1984
  if (Array.isArray(h))
1985
- for (let O of h)
1986
- ke(O, e, d, i, l);
1985
+ for (let D of h)
1986
+ ke(D, e, d, i, l);
1987
1987
  else
1988
1988
  ke(h, e, d, i, l);
1989
1989
  }
@@ -2061,10 +2061,10 @@ function Re(n, s) {
2061
2061
  r(Re, "mapValues");
2062
2062
 
2063
2063
  // src/docs-tools/argTypes/convert/utils.ts
2064
- var ot = /^['"]|['"]$/g, Or = /* @__PURE__ */ r((n) => n.replace(ot, ""), "trimQuotes"), Dr = /* @__PURE__ */ r((n) => ot.test(n), "includes\
2064
+ var ot = /^['"]|['"]$/g, Dr = /* @__PURE__ */ r((n) => n.replace(ot, ""), "trimQuotes"), Or = /* @__PURE__ */ r((n) => ot.test(n), "includes\
2065
2065
  Quotes"), ie = /* @__PURE__ */ r((n) => {
2066
- let s = Or(n);
2067
- return Dr(n) || Number.isNaN(Number(s)) ? s : Number(s);
2066
+ let s = Dr(n);
2067
+ return Or(n) || Number.isNaN(Number(s)) ? s : Number(s);
2068
2068
  }, "parseLiteral");
2069
2069
 
2070
2070
  // src/docs-tools/argTypes/convert/proptypes/convert.ts
@@ -2264,7 +2264,7 @@ function Fr(n) {
2264
2264
  r(Fr, "getFencer");
2265
2265
 
2266
2266
  // ../node_modules/comment-parser/es6/parser/source-parser.js
2267
- function Le({ startLine: n = 0, markers: s = v } = {}) {
2267
+ function Ve({ startLine: n = 0, markers: s = v } = {}) {
2268
2268
  let a = null, p = n;
2269
2269
  return /* @__PURE__ */ r(function(u) {
2270
2270
  let m = u, T = Fe();
@@ -2284,10 +2284,10 @@ function Le({ startLine: n = 0, markers: s = v } = {}) {
2284
2284
  return null;
2285
2285
  }, "parseSource");
2286
2286
  }
2287
- r(Le, "getParser");
2287
+ r(Ve, "getParser");
2288
2288
 
2289
2289
  // ../node_modules/comment-parser/es6/parser/spec-parser.js
2290
- function Ve({ tokenizers: n }) {
2290
+ function Le({ tokenizers: n }) {
2291
2291
  return /* @__PURE__ */ r(function(a) {
2292
2292
  var p;
2293
2293
  let c = mt({ source: a });
@@ -2297,7 +2297,7 @@ function Ve({ tokenizers: n }) {
2297
2297
  return c;
2298
2298
  }, "parseSpec");
2299
2299
  }
2300
- r(Ve, "getParser");
2300
+ r(Le, "getParser");
2301
2301
 
2302
2302
  // ../node_modules/comment-parser/es6/parser/tokenizers/tag.js
2303
2303
  function ce() {
@@ -2315,7 +2315,7 @@ r(ce, "tagTokenizer");
2315
2315
 
2316
2316
  // ../node_modules/comment-parser/es6/parser/tokenizers/type.js
2317
2317
  function le(n = "compact") {
2318
- let s = Lr(n);
2318
+ let s = Vr(n);
2319
2319
  return (a) => {
2320
2320
  let p = 0, c = [];
2321
2321
  for (let [T, { tokens: g }] of a.source.entries()) {
@@ -2344,14 +2344,14 @@ function le(n = "compact") {
2344
2344
  }
2345
2345
  r(le, "typeTokenizer");
2346
2346
  var _r = /* @__PURE__ */ r((n) => n.trim(), "trim");
2347
- function Lr(n) {
2347
+ function Vr(n) {
2348
2348
  return n === "compact" ? (s) => s.map(_r).join("") : n === "preserve" ? (s) => s.join(`
2349
2349
  `) : n;
2350
2350
  }
2351
- r(Lr, "getJoiner");
2351
+ r(Vr, "getJoiner");
2352
2352
 
2353
2353
  // ../node_modules/comment-parser/es6/parser/tokenizers/name.js
2354
- var Vr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2354
+ var Lr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2355
2355
  function ue() {
2356
2356
  let n = /* @__PURE__ */ r((s, { tokens: a }, p) => a.type === "" ? s : p, "typeEnd");
2357
2357
  return (s) => {
@@ -2389,7 +2389,7 @@ function ue() {
2389
2389
  line: s.source[0].number,
2390
2390
  critical: !0
2391
2391
  }), s;
2392
- if (!Vr(g) && /=(?!>)/.test(g))
2392
+ if (!Lr(g) && /=(?!>)/.test(g))
2393
2393
  return s.problems.push({
2394
2394
  code: "spec:name:invalid-default",
2395
2395
  message: "invalid default value syntax",
@@ -2439,7 +2439,7 @@ function Be({ startLine: n = 0, fence: s = "```", spacing: a = "compact", marker
2439
2439
  ] } = {}) {
2440
2440
  if (n < 0 || n % 1 > 0)
2441
2441
  throw new Error("Invalid startLine");
2442
- let u = Le({ startLine: n, markers: p }), m = _e({ fence: s }), T = Ve({ tokenizers: c }), g = Ue(a);
2442
+ let u = Ve({ startLine: n, markers: p }), m = _e({ fence: s }), T = Le({ tokenizers: c }), g = Ue(a);
2443
2443
  return function(P) {
2444
2444
  let b = [];
2445
2445
  for (let de of ut(P)) {
@@ -2487,14 +2487,14 @@ var $r = {
2487
2487
  end: 0,
2488
2488
  lineEnd: 0
2489
2489
  };
2490
- var Go = Object.keys($r);
2490
+ var Wo = Object.keys($r);
2491
2491
 
2492
2492
  // ../node_modules/comment-parser/es6/index.js
2493
2493
  function ft(n, s = {}) {
2494
2494
  return Be(s)(n);
2495
2495
  }
2496
2496
  r(ft, "parse");
2497
- var ds = Ce();
2497
+ var ys = Ce();
2498
2498
 
2499
2499
  // src/docs-tools/argTypes/jsdocParser.ts
2500
2500
  var $ = Pr(dt(), 1);
@@ -2634,7 +2634,7 @@ function Jt(n) {
2634
2634
  r(Jt, "extractTypeName");
2635
2635
 
2636
2636
  // src/docs-tools/argTypes/utils.ts
2637
- var Ss = 90, Es = 50;
2637
+ var bs = 90, Ss = 50;
2638
2638
  function Ke(n) {
2639
2639
  return n.length > 90;
2640
2640
  }
@@ -2647,7 +2647,7 @@ function w(n, s) {
2647
2647
  return n === s ? { summary: n } : { summary: n, detail: s };
2648
2648
  }
2649
2649
  r(w, "createSummaryValue");
2650
- var Ns = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2650
+ var Es = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2651
2651
 
2652
2652
  // src/docs-tools/argTypes/docgen/flow/createDefaultValue.ts
2653
2653
  function Pt(n, s) {
@@ -2724,7 +2724,7 @@ function Nt({ defaultValue: n }) {
2724
2724
  r(Nt, "createDefaultValue");
2725
2725
 
2726
2726
  // src/docs-tools/argTypes/docgen/typeScript/createType.ts
2727
- function Ot({ tsType: n, required: s }) {
2727
+ function Dt({ tsType: n, required: s }) {
2728
2728
  if (n == null)
2729
2729
  return null;
2730
2730
  let a = n.name;
@@ -2732,14 +2732,14 @@ function Ot({ tsType: n, required: s }) {
2732
2732
  ["Array", "Record", "signature"].includes(n.name) ? n.raw : a
2733
2733
  );
2734
2734
  }
2735
- r(Ot, "createType");
2735
+ r(Dt, "createType");
2736
2736
 
2737
2737
  // src/docs-tools/argTypes/docgen/typeScript/createPropDef.ts
2738
- var Dt = /* @__PURE__ */ r((n, s) => {
2738
+ var Ot = /* @__PURE__ */ r((n, s) => {
2739
2739
  let { description: a, required: p } = s;
2740
2740
  return {
2741
2741
  name: n,
2742
- type: Ot(s),
2742
+ type: Dt(s),
2743
2743
  required: p,
2744
2744
  description: a,
2745
2745
  defaultValue: Nt(s)
@@ -2804,7 +2804,7 @@ var ln = /* @__PURE__ */ r((n, s, a) => {
2804
2804
  let p = vt(n, s.type, s);
2805
2805
  return p.sbType = pe(s), ye(p, a);
2806
2806
  }, "javaScriptFactory"), un = /* @__PURE__ */ r((n, s, a) => {
2807
- let p = Dt(n, s);
2807
+ let p = Ot(n, s);
2808
2808
  return p.sbType = pe(s), ye(p, a);
2809
2809
  }, "tsFactory"), mn = /* @__PURE__ */ r((n, s, a) => {
2810
2810
  let p = Et(n, s);
@@ -2845,7 +2845,7 @@ var kt = /* @__PURE__ */ r((n) => n.type != null ? "JavaScript" : n.flowType !=
2845
2845
  let u = n[c];
2846
2846
  return u != null ? At(c, u, a, p) : null;
2847
2847
  }).filter(Boolean);
2848
- }, "extractComponentSectionObject"), ia = /* @__PURE__ */ r((n, s) => {
2848
+ }, "extractComponentSectionObject"), aa = /* @__PURE__ */ r((n, s) => {
2849
2849
  let a = pt(n, s);
2850
2850
  return it(a) ? Array.isArray(a) ? yn(a) : dn(a) : [];
2851
2851
  }, "extractComponentProps");
@@ -2859,10 +2859,10 @@ function At(n, s, a, p) {
2859
2859
  };
2860
2860
  }
2861
2861
  r(At, "extractProp");
2862
- function pa(n) {
2862
+ function ia(n) {
2863
2863
  return n != null ? ct(n) : "";
2864
2864
  }
2865
- r(pa, "extractComponentDescription");
2865
+ r(ia, "extractComponentDescription");
2866
2866
 
2867
2867
  // src/preview-api/modules/store/parameters.ts
2868
2868
  var qe = /* @__PURE__ */ r((...n) => {
@@ -2877,47 +2877,45 @@ var qe = /* @__PURE__ */ r((...n) => {
2877
2877
  }, "combineParameters");
2878
2878
 
2879
2879
  // src/docs-tools/argTypes/enhanceArgTypes.ts
2880
- var da = /* @__PURE__ */ r((n) => {
2880
+ var ya = /* @__PURE__ */ r((n) => {
2881
2881
  let {
2882
2882
  component: s,
2883
2883
  argTypes: a,
2884
2884
  parameters: { docs: p = {} }
2885
- } = n, { extractArgTypes: c } = p, u = c && s ? c(s) : {};
2885
+ } = n, { extractArgTypes: c } = p;
2886
+ if (!c || !s)
2887
+ return a;
2888
+ let u = c(s);
2886
2889
  return u ? qe(u, a) : a;
2887
2890
  }, "enhanceArgTypes");
2888
2891
 
2889
2892
  // src/docs-tools/shared.ts
2890
- var It = "storybook/docs", xa = `${It}/panel`, ha = "docs", Ja = `${It}/snippet-rendered`, Tn = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2893
+ var It = "storybook/docs", ga = `${It}/panel`, xa = "docs", ha = `${It}/snippet-rendered`, Tn = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2891
2894
  CODE = "code", p.DYNAMIC = "dynamic", p))(Tn || {});
2892
-
2893
- // src/docs-tools/hasDocsOrControls.ts
2894
- var gn = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, Pa = /* @__PURE__ */ r((n) => n.presetsList?.some((s) => gn.test(s.name)), "\
2895
- hasDocsOrControls");
2896
2895
  export {
2897
2896
  It as ADDON_ID,
2898
- Es as MAX_DEFAULT_VALUE_SUMMARY_LENGTH,
2899
- Ss as MAX_TYPE_SUMMARY_LENGTH,
2900
- xa as PANEL_ID,
2901
- ha as PARAM_KEY,
2902
- Ja as SNIPPET_RENDERED,
2897
+ Ss as MAX_DEFAULT_VALUE_SUMMARY_LENGTH,
2898
+ bs as MAX_TYPE_SUMMARY_LENGTH,
2899
+ ga as PANEL_ID,
2900
+ xa as PARAM_KEY,
2901
+ ha as SNIPPET_RENDERED,
2903
2902
  Tn as SourceType,
2904
2903
  Ir as TypeSystem,
2905
2904
  pe as convert,
2906
2905
  w as createSummaryValue,
2907
- da as enhanceArgTypes,
2908
- pa as extractComponentDescription,
2909
- ia as extractComponentProps,
2906
+ ya as enhanceArgTypes,
2907
+ ia as extractComponentDescription,
2908
+ aa as extractComponentProps,
2910
2909
  yn as extractComponentSectionArray,
2911
2910
  dn as extractComponentSectionObject,
2912
2911
  ct as getDocgenDescription,
2913
2912
  pt as getDocgenSection,
2914
2913
  at as hasDocgen,
2915
- Pa as hasDocsOrControls,
2916
2914
  K as isDefaultValueBlacklisted,
2917
2915
  wt as isTooLongForDefaultValueSummary,
2918
2916
  Ke as isTooLongForTypeSummary,
2919
2917
  it as isValidDocgenSection,
2920
- Ns as normalizeNewlines,
2918
+ Es as normalizeNewlines,
2921
2919
  Tt as parseJsDoc,
2922
2920
  st as str
2923
2921
  };
@@ -51476,7 +51476,7 @@ At();
51476
51476
  var jX = k(Za(), 1), qn = k(qX(), 1);
51477
51477
 
51478
51478
  // src/manager-api/version.ts
51479
- var DX = "9.0.0-rc.2";
51479
+ var DX = "9.0.0-rc.3";
51480
51480
 
51481
51481
  // src/manager-api/modules/versions.ts
51482
51482
  var { VERSIONCHECK: p8e } = te, FX = (0, jX.default)(1)(() => {
@@ -4403,7 +4403,7 @@ M(Rr, {
4403
4403
  var kt = require("@storybook/global"), tn = U(tr(), 1), W = U(require("semver"), 1);
4404
4404
 
4405
4405
  // src/manager-api/version.ts
4406
- var Zo = "9.0.0-rc.2";
4406
+ var Zo = "9.0.0-rc.3";
4407
4407
 
4408
4408
  // src/manager-api/modules/versions.ts
4409
4409
  var { VERSIONCHECK: Zs } = kt.global, en = (0, tn.default)(1)(() => {
@@ -3214,7 +3214,7 @@ import { global as Sr } from "@storybook/global";
3214
3214
  import $ from "semver";
3215
3215
 
3216
3216
  // src/manager-api/version.ts
3217
- var Co = "9.0.0-rc.2";
3217
+ var Co = "9.0.0-rc.3";
3218
3218
 
3219
3219
  // src/manager-api/modules/versions.ts
3220
3220
  var { VERSIONCHECK: aa } = Sr, No = (0, ko.default)(1)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "9.0.0-rc.2",
3
+ "version": "9.0.0-rc.3",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"