storybook 9.0.0-beta.1 → 9.0.0-beta.11

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 (94) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/actions/decorator.js +49 -52
  3. package/dist/actions/index.cjs +42 -44
  4. package/dist/actions/index.js +37 -40
  5. package/dist/actions/preview.cjs +44 -46
  6. package/dist/actions/preview.d.ts +501 -0
  7. package/dist/actions/preview.js +24 -27
  8. package/dist/babel/index.cjs +15060 -14974
  9. package/dist/babel/index.d.ts +37 -18
  10. package/dist/babel/index.js +15097 -15011
  11. package/dist/backgrounds/index.d.ts +501 -0
  12. package/dist/backgrounds/preview.d.ts +501 -0
  13. package/dist/bin/index.cjs +44 -44
  14. package/dist/bin/index.js +44 -44
  15. package/dist/builder-manager/index.cjs +303 -283
  16. package/dist/builder-manager/index.js +545 -524
  17. package/dist/channels/index.js +919 -941
  18. package/dist/cli/bin/index.cjs +4184 -736
  19. package/dist/cli/bin/index.js +4198 -748
  20. package/dist/cli/index.cjs +36838 -28392
  21. package/dist/cli/index.d.ts +974 -1
  22. package/dist/cli/index.js +41620 -33168
  23. package/dist/client-logger/index.d.ts +2 -1
  24. package/dist/common/index.cjs +4783 -4691
  25. package/dist/common/index.d.ts +8 -2
  26. package/dist/common/index.js +5165 -5069
  27. package/dist/components/index.cjs +7905 -5600
  28. package/dist/components/index.d.ts +12 -12
  29. package/dist/components/index.js +4713 -3786
  30. package/dist/controls/preview.d.ts +501 -0
  31. package/dist/core-server/index.cjs +6799 -6708
  32. package/dist/core-server/index.d.ts +526 -25
  33. package/dist/core-server/index.js +6948 -6851
  34. package/dist/core-server/presets/common-manager.js +4528 -3377
  35. package/dist/core-server/presets/common-override-preset.cjs +10 -12
  36. package/dist/core-server/presets/common-override-preset.js +3 -5
  37. package/dist/core-server/presets/common-preset.cjs +2301 -2238
  38. package/dist/core-server/presets/common-preset.js +2389 -2322
  39. package/dist/docs-tools/index.cjs +484 -464
  40. package/dist/docs-tools/index.js +781 -768
  41. package/dist/highlight/index.cjs +19 -18
  42. package/dist/highlight/index.d.ts +4 -5
  43. package/dist/highlight/index.js +3 -2
  44. package/dist/highlight/preview.cjs +314 -310
  45. package/dist/highlight/preview.d.ts +501 -0
  46. package/dist/highlight/preview.js +296 -292
  47. package/dist/instrumenter/index.cjs +561 -559
  48. package/dist/instrumenter/index.js +1564 -1516
  49. package/dist/manager/globals-module-info.cjs +2 -0
  50. package/dist/manager/globals-module-info.js +2 -0
  51. package/dist/manager/globals-runtime.js +23602 -23339
  52. package/dist/manager/runtime.js +4891 -4650
  53. package/dist/manager-api/index.cjs +2400 -2321
  54. package/dist/manager-api/index.d.ts +513 -1
  55. package/dist/manager-api/index.js +1951 -1903
  56. package/dist/manager-errors.js +37 -41
  57. package/dist/measure/index.d.ts +501 -0
  58. package/dist/measure/preview.d.ts +501 -0
  59. package/dist/node-logger/index.cjs +25 -25
  60. package/dist/node-logger/index.js +25 -25
  61. package/dist/outline/index.d.ts +501 -0
  62. package/dist/outline/preview.d.ts +501 -0
  63. package/dist/preview/runtime.js +35803 -35785
  64. package/dist/preview-api/index.cjs +1287 -1265
  65. package/dist/preview-api/index.d.ts +1 -1
  66. package/dist/preview-api/index.js +1367 -1361
  67. package/dist/preview-errors.js +152 -173
  68. package/dist/router/index.cjs +5674 -2282
  69. package/dist/router/index.d.ts +622 -243
  70. package/dist/router/index.js +1318 -872
  71. package/dist/server-errors.cjs +192 -177
  72. package/dist/server-errors.d.ts +11 -1
  73. package/dist/server-errors.js +173 -158
  74. package/dist/telemetry/index.cjs +4934 -1445
  75. package/dist/telemetry/index.d.ts +2 -1
  76. package/dist/telemetry/index.js +4966 -1475
  77. package/dist/test/index.cjs +1876 -1878
  78. package/dist/test/index.d.ts +1269 -83
  79. package/dist/test/index.js +9157 -9248
  80. package/dist/test/preview.cjs +49 -15862
  81. package/dist/test/preview.d.ts +520 -13
  82. package/dist/test/preview.js +42 -14493
  83. package/dist/theming/create.cjs +2244 -79
  84. package/dist/theming/create.js +951 -67
  85. package/dist/theming/index.cjs +3209 -1067
  86. package/dist/theming/index.js +1816 -947
  87. package/dist/types/index.cjs +4 -4
  88. package/dist/types/index.d.ts +3124 -2596
  89. package/dist/viewport/index.d.ts +502 -3
  90. package/dist/viewport/preview.d.ts +501 -0
  91. package/package.json +14 -38
  92. package/dist/test/spy.cjs +0 -258
  93. package/dist/test/spy.d.ts +0 -66
  94. package/dist/test/spy.js +0 -240
@@ -24,7 +24,7 @@ var Qt = (n, t, e) => (e = n != null ? vs(ks(n)) : {}, Ee(
24
24
  )), Ds = (n) => Ee(pt({}, "__esModule", { value: !0 }), n);
25
25
 
26
26
  // ../node_modules/balanced-match/index.js
27
- var ke = Se((Ji, Ce) => {
27
+ var ke = Se((Yi, Ce) => {
28
28
  "use strict";
29
29
  Ce.exports = ve;
30
30
  function ve(n, t, e) {
@@ -61,7 +61,7 @@ var ke = Se((Ji, Ce) => {
61
61
  });
62
62
 
63
63
  // ../node_modules/brace-expansion/index.js
64
- var Ne = Se((Qi, _e) => {
64
+ var Ne = Se((Zi, _e) => {
65
65
  var Ae = ke();
66
66
  _e.exports = Ms;
67
67
  var Re = "\0SLASH" + Math.random() + "\0", De = "\0OPEN" + Math.random() + "\0", ee = "\0CLOSE" + Math.random() + "\0", Oe = "\0COMMA" + Math.
@@ -167,15 +167,14 @@ var Ne = Se((Qi, _e) => {
167
167
  });
168
168
 
169
169
  // src/core-server/presets/common-override-preset.ts
170
- var Xi = {};
171
- Rs(Xi, {
172
- build: () => Vi,
173
- docs: () => Ki,
170
+ var Vi = {};
171
+ Rs(Vi, {
172
+ build: () => Ki,
174
173
  framework: () => Gi,
175
174
  stories: () => Hi,
176
175
  typescript: () => qi
177
176
  });
178
- module.exports = Ds(Xi);
177
+ module.exports = Ds(Vi);
179
178
 
180
179
  // src/core-server/utils/remove-mdx-entries.ts
181
180
  var X = require("node:path"), Zt = require("storybook/internal/common");
@@ -1112,7 +1111,7 @@ ing it to other APIs that use AbortController/AbortSignal might have undesirable
1112
1111
  NING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
1113
1112
  }, "warnACPolyfill");
1114
1113
  }
1115
- var bi = /* @__PURE__ */ l((n) => !Ve.has(n), "shouldWarn"), kr = Symbol("type"), Y = /* @__PURE__ */ l((n) => n && n === Math.floor(n) && n >
1114
+ var bi = /* @__PURE__ */ l((n) => !Ve.has(n), "shouldWarn"), Cr = Symbol("type"), Y = /* @__PURE__ */ l((n) => n && n === Math.floor(n) && n >
1116
1115
  0 && isFinite(n), "isPosInt"), Ye = /* @__PURE__ */ l((n) => Y(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <=
1117
1116
  Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? ot : null : null, "getUintArray"), ot = class extends Array {
1118
1117
  static {
@@ -3942,7 +3941,7 @@ n.isBlockDevice() ? fs : n.isSocket() ? ds : n.isFIFO() ? ls : W, "entToType"),
3942
3941
  let { nocase: s = !0 } = e;
3943
3942
  super(t, { ...e, nocase: s });
3944
3943
  }
3945
- }, _r = process.platform === "win32" ? Ht : qt, ms = process.platform === "win32" ? ct : process.platform === "darwin" ? At : ft;
3944
+ }, Mr = process.platform === "win32" ? Ht : qt, ms = process.platform === "win32" ? ct : process.platform === "darwin" ? At : ft;
3946
3945
 
3947
3946
  // ../node_modules/glob/dist/esm/pattern.js
3948
3947
  var Ni = /* @__PURE__ */ l((n) => n.length >= 1, "isPatternList"), Li = /* @__PURE__ */ l((n) => n.length >= 1, "isGlobList"), ut = class n {
@@ -4805,8 +4804,7 @@ var Gi = /* @__PURE__ */ l(async (n) => {
4805
4804
  options: e
4806
4805
  };
4807
4806
  }, "framework"), Hi = /* @__PURE__ */ l(async (n, t) => t?.build?.test?.disableMDXEntries ? Es(n, t) : n, "stories"), qi = /* @__PURE__ */ l(
4808
- async (n, t) => t?.build?.test?.disableDocgen ? { ...n ?? {}, reactDocgen: !1, check: !1 } : n, "typescript"), Ki = /* @__PURE__ */ l(async (n, t) => t?.
4809
- build?.test?.disableAutoDocs ? {} : n, "docs"), xs = /* @__PURE__ */ l((n) => ({
4807
+ async (n, t) => t?.build?.test?.disableDocgen ? { ...n ?? {}, reactDocgen: !1, check: !1 } : n, "typescript"), xs = /* @__PURE__ */ l((n) => ({
4810
4808
  disableBlocks: n,
4811
4809
  disabledAddons: n ? ["@storybook/addon-docs", "@storybook/addon-essentials/docs", "@storybook/addon-coverage"] : [],
4812
4810
  disableMDXEntries: n,
@@ -4815,7 +4813,7 @@ build?.test?.disableAutoDocs ? {} : n, "docs"), xs = /* @__PURE__ */ l((n) => ({
4815
4813
  disableSourcemaps: n,
4816
4814
  disableTreeShaking: n,
4817
4815
  esbuildMinify: n
4818
- }), "createTestBuildFeatures"), Vi = /* @__PURE__ */ l(async (n, t) => ({
4816
+ }), "createTestBuildFeatures"), Ki = /* @__PURE__ */ l(async (n, t) => ({
4819
4817
  ...n,
4820
4818
  test: t.test ? {
4821
4819
  ...xs(!!t.test),
@@ -4803,8 +4803,7 @@ var Pn = /* @__PURE__ */ l(async (n) => {
4803
4803
  options: e
4804
4804
  };
4805
4805
  }, "framework"), Wn = /* @__PURE__ */ l(async (n, t) => t?.build?.test?.disableMDXEntries ? ps(n, t) : n, "stories"), jn = /* @__PURE__ */ l(
4806
- async (n, t) => t?.build?.test?.disableDocgen ? { ...n ?? {}, reactDocgen: !1, check: !1 } : n, "typescript"), In = /* @__PURE__ */ l(async (n, t) => t?.
4807
- build?.test?.disableAutoDocs ? {} : n, "docs"), ms = /* @__PURE__ */ l((n) => ({
4806
+ async (n, t) => t?.build?.test?.disableDocgen ? { ...n ?? {}, reactDocgen: !1, check: !1 } : n, "typescript"), ms = /* @__PURE__ */ l((n) => ({
4808
4807
  disableBlocks: n,
4809
4808
  disabledAddons: n ? ["@storybook/addon-docs", "@storybook/addon-essentials/docs", "@storybook/addon-coverage"] : [],
4810
4809
  disableMDXEntries: n,
@@ -4813,7 +4812,7 @@ build?.test?.disableAutoDocs ? {} : n, "docs"), ms = /* @__PURE__ */ l((n) => ({
4813
4812
  disableSourcemaps: n,
4814
4813
  disableTreeShaking: n,
4815
4814
  esbuildMinify: n
4816
- }), "createTestBuildFeatures"), zn = /* @__PURE__ */ l(async (n, t) => ({
4815
+ }), "createTestBuildFeatures"), In = /* @__PURE__ */ l(async (n, t) => ({
4817
4816
  ...n,
4818
4817
  test: t.test ? {
4819
4818
  ...ms(!!t.test),
@@ -4821,8 +4820,7 @@ build?.test?.disableAutoDocs ? {} : n, "docs"), ms = /* @__PURE__ */ l((n) => ({
4821
4820
  } : ms(!1)
4822
4821
  }), "build");
4823
4822
  export {
4824
- zn as build,
4825
- In as docs,
4823
+ In as build,
4826
4824
  Pn as framework,
4827
4825
  Wn as stories,
4828
4826
  jn as typescript