storybook 9.1.0-alpha.2 → 9.1.0-alpha.4

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 (77) hide show
  1. package/dist/actions/index.cjs +16 -16
  2. package/dist/actions/index.d.ts +1 -38
  3. package/dist/actions/index.js +12 -12
  4. package/dist/actions/preview.cjs +25 -25
  5. package/dist/actions/preview.d.ts +37 -547
  6. package/dist/actions/preview.js +18 -18
  7. package/dist/backgrounds/index.cjs +12 -144
  8. package/dist/backgrounds/index.d.ts +1 -591
  9. package/dist/backgrounds/index.js +0 -130
  10. package/dist/backgrounds/preview.cjs +63 -63
  11. package/dist/backgrounds/preview.d.ts +40 -542
  12. package/dist/backgrounds/preview.js +47 -47
  13. package/dist/bin/index.cjs +50 -50
  14. package/dist/bin/index.js +50 -50
  15. package/dist/builder-manager/index.cjs +379 -378
  16. package/dist/builder-manager/index.d.ts +567 -2
  17. package/dist/builder-manager/index.js +280 -279
  18. package/dist/cli/bin/index.cjs +1 -1
  19. package/dist/cli/bin/index.js +1 -1
  20. package/dist/common/index.cjs +87 -79
  21. package/dist/common/index.d.ts +2 -2
  22. package/dist/common/index.js +725 -716
  23. package/dist/component-testing/preview.cjs +12 -12
  24. package/dist/component-testing/preview.d.ts +2 -2
  25. package/dist/component-testing/preview.js +7 -7
  26. package/dist/components/index.cjs +1899 -1895
  27. package/dist/components/index.js +1343 -1339
  28. package/dist/controls/index.cjs +16 -16
  29. package/dist/controls/index.d.ts +1 -36
  30. package/dist/controls/preview.cjs +17 -17
  31. package/dist/controls/preview.d.ts +34 -546
  32. package/dist/controls/preview.js +3 -3
  33. package/dist/csf/index.cjs +1210 -95
  34. package/dist/csf/index.d.ts +59 -18
  35. package/dist/csf/index.js +1214 -90
  36. package/dist/csf-tools/index.cjs +2 -1
  37. package/dist/csf-tools/index.js +2 -2
  38. package/dist/highlight/index.cjs +15 -15
  39. package/dist/highlight/index.d.ts +1 -12
  40. package/dist/highlight/index.js +4 -4
  41. package/dist/highlight/preview.cjs +63 -63
  42. package/dist/highlight/preview.d.ts +11 -546
  43. package/dist/highlight/preview.js +11 -10
  44. package/dist/manager/globals-runtime.js +31934 -31888
  45. package/dist/manager-api/index.cjs +1 -1
  46. package/dist/manager-api/index.js +1 -1
  47. package/dist/measure/index.cjs +12 -472
  48. package/dist/measure/index.d.ts +1 -566
  49. package/dist/measure/index.js +0 -464
  50. package/dist/measure/preview.cjs +127 -127
  51. package/dist/measure/preview.d.ts +11 -546
  52. package/dist/measure/preview.js +117 -117
  53. package/dist/outline/index.cjs +12 -524
  54. package/dist/outline/index.d.ts +1 -566
  55. package/dist/outline/index.js +0 -500
  56. package/dist/outline/preview.cjs +32 -32
  57. package/dist/outline/preview.d.ts +11 -546
  58. package/dist/outline/preview.js +27 -27
  59. package/dist/preview/runtime.js +9415 -9379
  60. package/dist/preview-api/index.cjs +1228 -1261
  61. package/dist/preview-api/index.d.ts +6 -8
  62. package/dist/preview-api/index.js +927 -963
  63. package/dist/telemetry/index.cjs +1477 -1288
  64. package/dist/telemetry/index.js +1503 -1314
  65. package/dist/test/index.cjs +4437 -4394
  66. package/dist/test/index.js +3776 -3733
  67. package/dist/test/preview.cjs +42 -42
  68. package/dist/test/preview.d.ts +12 -550
  69. package/dist/test/preview.js +36 -36
  70. package/dist/types/index.d.ts +5 -3
  71. package/dist/viewport/index.cjs +17 -24
  72. package/dist/viewport/index.d.ts +9 -532
  73. package/dist/viewport/index.js +9 -16
  74. package/dist/viewport/preview.cjs +22 -22
  75. package/dist/viewport/preview.d.ts +45 -552
  76. package/dist/viewport/preview.js +8 -8
  77. package/package.json +1 -1
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
- var n = Object.defineProperty;
3
- var e = Object.getOwnPropertyDescriptor;
4
- var p = Object.getOwnPropertyNames;
5
- var x = Object.prototype.hasOwnProperty;
6
- var a = (t, o) => {
7
- for (var s in o)
8
- n(t, s, { get: o[s], enumerable: !0 });
9
- }, A = (t, o, s, c) => {
2
+ var c = Object.defineProperty;
3
+ var a = Object.getOwnPropertyDescriptor;
4
+ var e = Object.getOwnPropertyNames;
5
+ var p = Object.prototype.hasOwnProperty;
6
+ var x = (t, o) => {
7
+ for (var n in o)
8
+ c(t, n, { get: o[n], enumerable: !0 });
9
+ }, A = (t, o, n, r) => {
10
10
  if (o && typeof o == "object" || typeof o == "function")
11
- for (let r of p(o))
12
- !x.call(t, r) && r !== s && n(t, r, { get: () => o[r], enumerable: !(c = e(o, r)) || c.enumerable });
11
+ for (let s of e(o))
12
+ !p.call(t, s) && s !== n && c(t, s, { get: () => o[s], enumerable: !(r = a(o, s)) || r.enumerable });
13
13
  return t;
14
14
  };
15
- var D = (t) => A(n({}, "__esModule", { value: !0 }), t);
15
+ var D = (t) => A(c({}, "__esModule", { value: !0 }), t);
16
16
 
17
17
  // src/controls/index.ts
18
- var l = {};
19
- a(l, {
18
+ var _ = {};
19
+ x(_, {
20
20
  ADDON_ID: () => d,
21
- PARAM_KEY: () => f
21
+ PARAM_KEY: () => l
22
22
  });
23
- module.exports = D(l);
23
+ module.exports = D(_);
24
24
 
25
25
  // src/controls/constants.ts
26
- var d = "addon-controls", f = "controls";
26
+ var d = "addon-controls", l = "controls";
@@ -1,39 +1,4 @@
1
1
  declare const ADDON_ID: "addon-controls";
2
2
  declare const PARAM_KEY: "controls";
3
3
 
4
- interface ControlsParameters {
5
- /**
6
- * Controls configuration
7
- *
8
- * @see https://storybook.js.org/docs/essentials/controls#parameters-1
9
- */
10
- controls: {
11
- /** Remove the addon panel and disable the addon's behavior */
12
- disable?: boolean;
13
- /** Disable the ability to create or edit stories from the Controls panel */
14
- disableSaveFromUI?: boolean;
15
- /** Exclude specific properties from the Controls panel */
16
- exclude?: string[] | RegExp;
17
- /**
18
- * Show the full documentation for each property in the Controls addon panel, including the
19
- * description and default value.
20
- */
21
- expanded?: boolean;
22
- /** Exclude only specific properties in the Controls panel */
23
- include?: string[] | RegExp;
24
- /**
25
- * Preset color swatches for the color picker control
26
- *
27
- * @example PresetColors: [{ color: '#ff4785', title: 'Coral' }, 'rgba(0, 159, 183, 1)',
28
- * '#fe4a49']
29
- */
30
- presetColors?: Array<string | {
31
- color: string;
32
- title?: string;
33
- }>;
34
- /** Controls sorting order */
35
- sort?: 'none' | 'alpha' | 'requiredFirst';
36
- };
37
- }
38
-
39
- export { ADDON_ID, type ControlsParameters, PARAM_KEY };
4
+ export { ADDON_ID, PARAM_KEY };
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
- var o = Object.defineProperty;
3
- var m = Object.getOwnPropertyDescriptor;
4
- var p = Object.getOwnPropertyNames;
5
- var a = Object.prototype.hasOwnProperty;
6
- var l = (r, e) => {
7
- for (var i in e)
8
- o(r, i, { get: e[i], enumerable: !0 });
9
- }, n = (r, e, i, t) => {
2
+ var p = Object.defineProperty;
3
+ var f = Object.getOwnPropertyDescriptor;
4
+ var i = Object.getOwnPropertyNames;
5
+ var m = Object.prototype.hasOwnProperty;
6
+ var n = (o, e) => {
7
+ for (var t in e)
8
+ p(o, t, { get: e[t], enumerable: !0 });
9
+ }, y = (o, e, t, s) => {
10
10
  if (e && typeof e == "object" || typeof e == "function")
11
- for (let f of p(e))
12
- !a.call(r, f) && f !== i && o(r, f, { get: () => e[f], enumerable: !(t = m(e, f)) || t.enumerable });
13
- return r;
11
+ for (let r of i(e))
12
+ !m.call(o, r) && r !== t && p(o, r, { get: () => e[r], enumerable: !(s = f(e, r)) || s.enumerable });
13
+ return o;
14
14
  };
15
- var u = (r) => n(o({}, "__esModule", { value: !0 }), r);
15
+ var l = (o) => y(p({}, "__esModule", { value: !0 }), o);
16
16
 
17
17
  // src/controls/preview.ts
18
- var w = {};
19
- l(w, {
20
- default: () => v
18
+ var T = {};
19
+ n(T, {
20
+ default: () => C
21
21
  });
22
- module.exports = u(w);
23
- var d = require("storybook/preview-api"), v = (0, d.definePreview)({
22
+ module.exports = l(T);
23
+ var d = require("storybook/internal/csf"), C = (0, d.definePreviewAddon)({
24
24
  // Controls addon doesn't need any preview-side configuration
25
25
  // It operates entirely through the manager UI
26
26
  });