storybook 9.1.2 → 9.1.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.
Files changed (36) hide show
  1. package/README.md +28 -41
  2. package/dist/bin/index.cjs +43 -43
  3. package/dist/bin/index.js +43 -43
  4. package/dist/cli/bin/index.cjs +1211 -1211
  5. package/dist/cli/bin/index.js +1214 -1214
  6. package/dist/common/index.cjs +58 -58
  7. package/dist/common/index.js +104 -104
  8. package/dist/core-server/index.cjs +3105 -3094
  9. package/dist/core-server/index.js +3409 -3398
  10. package/dist/core-server/presets/common-manager.js +142 -119
  11. package/dist/core-server/presets/common-preset.cjs +2489 -2483
  12. package/dist/core-server/presets/common-preset.js +7445 -7439
  13. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +57 -51
  14. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +60 -52
  15. package/dist/csf-tools/index.cjs +4 -4
  16. package/dist/csf-tools/index.js +4 -4
  17. package/dist/manager/globals-runtime.js +7376 -7365
  18. package/dist/manager/runtime.js +32 -18
  19. package/dist/manager-api/index.cjs +546 -535
  20. package/dist/manager-api/index.js +653 -642
  21. package/dist/manager-errors.js +44 -33
  22. package/dist/preview/runtime.js +5559 -5548
  23. package/dist/preview-api/index.cjs +4 -4
  24. package/dist/preview-api/index.js +4 -4
  25. package/dist/preview-errors.cjs +82 -71
  26. package/dist/preview-errors.js +89 -78
  27. package/dist/router/index.cjs +1 -1
  28. package/dist/router/index.js +1 -1
  29. package/dist/server-errors.cjs +121 -77
  30. package/dist/server-errors.d.ts +14 -1
  31. package/dist/server-errors.js +135 -91
  32. package/dist/telemetry/index.cjs +1 -1
  33. package/dist/telemetry/index.js +1 -1
  34. package/dist/test/index.cjs +1 -1
  35. package/dist/test/index.js +1 -1
  36. package/package.json +17 -3
@@ -4249,7 +4249,7 @@ var Bl = /* @__PURE__ */ a(() => {
4249
4249
  createElement(
4250
4250
  Fl,
4251
4251
  {
4252
- href: "https://storybook.js.org/docs/react/get-started/install/",
4252
+ href: "https://storybook.js.org/docs/get-started/install/?ref=ui",
4253
4253
  target: "_blank"
4254
4254
  },
4255
4255
  /* @__PURE__ */ s.createElement(Rl, null, /* @__PURE__ */ s.createElement(qn, null), /* @__PURE__ */ s.createElement("span", null, "Do\
@@ -4970,8 +4970,8 @@ var ki = Pi, Oi = s.memo(
4970
4970
  title: "Storybook add-ons",
4971
4971
  description: /* @__PURE__ */ s.createElement(s.Fragment, null, "Integrate your tools with Storybook to connect workflows and unl\
4972
4972
  ock advanced features."),
4973
- footer: /* @__PURE__ */ s.createElement(Pe, { href: "https://storybook.js.org/integrations", target: "_blank", withArrow: !0 }, /* @__PURE__ */ s.
4974
- createElement(Pt, null), " Explore integrations catalog")
4973
+ footer: /* @__PURE__ */ s.createElement(Pe, { href: "https://storybook.js.org/addons?ref=ui", target: "_blank", withArrow: !0 },
4974
+ /* @__PURE__ */ s.createElement(Pt, null), " Explore integrations catalog")
4975
4975
  }
4976
4976
  ),
4977
4977
  tools: /* @__PURE__ */ s.createElement(Zb, null, l ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
@@ -7289,8 +7289,8 @@ l", variant: "outline", onClick: n }, /* @__PURE__ */ s.createElement(xo, null),
7289
7289
  tooltip: /* @__PURE__ */ s.createElement(R0, null, /* @__PURE__ */ s.createElement(ka, { error: e }))
7290
7290
  },
7291
7291
  /* @__PURE__ */ s.createElement(Pe, { isButton: !0 }, "View error ", /* @__PURE__ */ s.createElement(Ot, null))
7292
- ), " ", /* @__PURE__ */ s.createElement(Pe, { withArrow: !0, href: "https://storybook.js.org/docs", cancel: !1, target: "_blank" }, "View do\
7293
- cs")))), "ErrorBlock"), B0 = I(pt)({
7292
+ ), " ", /* @__PURE__ */ s.createElement(Pe, { withArrow: !0, href: "https://storybook.js.org/docs?ref=ui", cancel: !1, target: "_blank" }, "\
7293
+ View docs")))), "ErrorBlock"), B0 = I(pt)({
7294
7294
  display: "flex"
7295
7295
  }), H0 = I(pt)({
7296
7296
  flex: 1
@@ -7469,9 +7469,16 @@ book"), /* @__PURE__ */ s.createElement("div", null, "Explore ", t, " components
7469
7469
  need to authenticate to view this Storybook's components.")));
7470
7470
  }, "LoginRequiredMessage"), Q0 = /* @__PURE__ */ a(() => {
7471
7471
  let e = De();
7472
- return /* @__PURE__ */ s.createElement(jt, { href: "https://storybook.js.org/docs/sharing/storybook-composition", target: "_blank" }, /* @__PURE__ */ s.
7473
- createElement(Pt, { color: e.color.green }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Vt, null, "Read \
7474
- Composition docs"), /* @__PURE__ */ s.createElement("div", null, "Learn how to combine multiple Storybooks into one.")));
7472
+ return /* @__PURE__ */ s.createElement(
7473
+ jt,
7474
+ {
7475
+ href: "https://storybook.js.org/docs/sharing/storybook-composition?ref=ui",
7476
+ target: "_blank"
7477
+ },
7478
+ /* @__PURE__ */ s.createElement(Pt, { color: e.color.green }),
7479
+ /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Vt, null, "Read Composition docs"), /* @__PURE__ */ s.createElement(
7480
+ "div", null, "Learn how to combine multiple Storybooks into one."))
7481
+ );
7475
7482
  }, "ReadDocsMessage"), X0 = /* @__PURE__ */ a(({ url: e }) => {
7476
7483
  let t = De();
7477
7484
  return /* @__PURE__ */ s.createElement(jt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(go,
@@ -7484,9 +7491,16 @@ Composition docs"), /* @__PURE__ */ s.createElement("div", null, "Learn how to c
7484
7491
  createElement("div", null, "This Storybook is loading.")));
7485
7492
  }, "LoadingMessage"), J0 = /* @__PURE__ */ a(() => {
7486
7493
  let e = De();
7487
- return /* @__PURE__ */ s.createElement(jt, { href: "https://storybook.js.org/docs/sharing/storybook-composition", target: "_blank" }, /* @__PURE__ */ s.
7488
- createElement(zn, { color: e.color.gold }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Vt, null, "Reduce\
7489
- lag"), /* @__PURE__ */ s.createElement("div", null, "Learn how to speed up Composition performance.")));
7494
+ return /* @__PURE__ */ s.createElement(
7495
+ jt,
7496
+ {
7497
+ href: "https://storybook.js.org/docs/sharing/storybook-composition?ref=ui",
7498
+ target: "_blank"
7499
+ },
7500
+ /* @__PURE__ */ s.createElement(zn, { color: e.color.gold }),
7501
+ /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Vt, null, "Reduce lag"), /* @__PURE__ */ s.createElement("d\
7502
+ iv", null, "Learn how to speed up Composition performance."))
7503
+ );
7490
7504
  }, "PerformanceDegradedMessage");
7491
7505
 
7492
7506
  // src/manager/components/sidebar/IconSymbols.tsx
@@ -12628,10 +12642,10 @@ var LS = I.div({
12628
12642
  /* @__PURE__ */ s.createElement(sr, { alt: "Storybook" })), /* @__PURE__ */ s.createElement(Er, { onNavigateToWhatsNew: e }), /* @__PURE__ */ s.
12629
12643
  createElement(FS, null, /* @__PURE__ */ s.createElement(RS, null, /* @__PURE__ */ s.createElement(he, { asChild: !0 }, /* @__PURE__ */ s.createElement(
12630
12644
  "a", { href: "https://github.com/storybookjs/storybook" }, /* @__PURE__ */ s.createElement(vo, null), "GitHub")), /* @__PURE__ */ s.createElement(
12631
- he, { asChild: !0 }, /* @__PURE__ */ s.createElement("a", { href: "https://storybook.js.org/docs" }, /* @__PURE__ */ s.createElement(Pt, { style: {
12632
- display: "inline", marginRight: 5 } }), "Documentation"))), /* @__PURE__ */ s.createElement("div", null, "Open source software maintained by",
12633
- " ", /* @__PURE__ */ s.createElement(Jd, { href: "https://www.chromatic.com/" }, "Chromatic"), " and the", " ", /* @__PURE__ */ s.createElement(
12634
- Jd, { href: "https://github.com/storybookjs/storybook/graphs/contributors" }, "Storybook Community")))), "AboutScreen");
12645
+ he, { asChild: !0 }, /* @__PURE__ */ s.createElement("a", { href: "https://storybook.js.org/docs?ref=ui" }, /* @__PURE__ */ s.createElement(
12646
+ Pt, { style: { display: "inline", marginRight: 5 } }), "Documentation"))), /* @__PURE__ */ s.createElement("div", null, "Open source softwar\
12647
+ e maintained by", " ", /* @__PURE__ */ s.createElement(Jd, { href: "https://www.chromatic.com/" }, "Chromatic"), " and the", " ", /* @__PURE__ */ s.
12648
+ createElement(Jd, { href: "https://github.com/storybookjs/storybook/graphs/contributors" }, "Storybook Community")))), "AboutScreen");
12635
12649
 
12636
12650
  // src/manager/settings/AboutPage.tsx
12637
12651
  var Ys = class Ys extends Le {
@@ -12668,12 +12682,12 @@ var BS = I.div(({ theme: e }) => ({
12668
12682
  marginLeft: 20
12669
12683
  }
12670
12684
  })), HS = /* @__PURE__ */ a((e) => /* @__PURE__ */ s.createElement(BS, { ...e }, /* @__PURE__ */ s.createElement(Pe, { secondary: !0, href: "\
12671
- https://storybook.js.org", cancel: !1, target: "_blank" }, "Docs"), /* @__PURE__ */ s.createElement(Pe, { secondary: !0, href: "https://gith\
12672
- ub.com/storybookjs/storybook", cancel: !1, target: "_blank" }, "GitHub"), /* @__PURE__ */ s.createElement(
12685
+ https://storybook.js.org?ref=ui", cancel: !1, target: "_blank" }, "Docs"), /* @__PURE__ */ s.createElement(Pe, { secondary: !0, href: "https\
12686
+ ://github.com/storybookjs/storybook", cancel: !1, target: "_blank" }, "GitHub"), /* @__PURE__ */ s.createElement(
12673
12687
  Pe,
12674
12688
  {
12675
12689
  secondary: !0,
12676
- href: "https://storybook.js.org/community#support",
12690
+ href: "https://storybook.js.org/community?ref=ui#support",
12677
12691
  cancel: !1,
12678
12692
  target: "_blank"
12679
12693
  },