storybook 9.0.0-beta.4 → 9.0.0-beta.6

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 (59) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/babel/index.cjs +15060 -14974
  3. package/dist/babel/index.d.ts +37 -18
  4. package/dist/babel/index.js +15097 -15011
  5. package/dist/bin/index.cjs +44 -44
  6. package/dist/bin/index.js +44 -44
  7. package/dist/builder-manager/index.cjs +119 -104
  8. package/dist/builder-manager/index.js +118 -102
  9. package/dist/cli/bin/index.cjs +1 -1
  10. package/dist/cli/bin/index.js +1 -1
  11. package/dist/cli/index.cjs +19438 -19340
  12. package/dist/cli/index.js +19449 -19351
  13. package/dist/client-logger/index.d.ts +2 -1
  14. package/dist/common/index.cjs +4997 -4925
  15. package/dist/common/index.js +5090 -5014
  16. package/dist/components/index.cjs +4581 -4419
  17. package/dist/components/index.d.ts +12 -12
  18. package/dist/components/index.js +3847 -3681
  19. package/dist/core-server/index.cjs +6360 -6276
  20. package/dist/core-server/index.js +6407 -6318
  21. package/dist/core-server/presets/common-manager.js +3871 -3476
  22. package/dist/core-server/presets/common-preset.cjs +2304 -2238
  23. package/dist/core-server/presets/common-preset.js +2389 -2319
  24. package/dist/docs-tools/index.cjs +484 -464
  25. package/dist/docs-tools/index.js +502 -482
  26. package/dist/highlight/index.cjs +19 -18
  27. package/dist/highlight/index.d.ts +4 -5
  28. package/dist/highlight/index.js +3 -2
  29. package/dist/highlight/preview.cjs +311 -307
  30. package/dist/highlight/preview.js +293 -289
  31. package/dist/instrumenter/index.cjs +561 -559
  32. package/dist/instrumenter/index.js +1551 -1498
  33. package/dist/manager/globals-module-info.cjs +1 -0
  34. package/dist/manager/globals-module-info.js +1 -0
  35. package/dist/manager/globals-runtime.js +19639 -19374
  36. package/dist/manager/runtime.js +4372 -4133
  37. package/dist/manager-api/index.cjs +2375 -2319
  38. package/dist/manager-api/index.js +1722 -1666
  39. package/dist/node-logger/index.cjs +25 -25
  40. package/dist/node-logger/index.js +25 -25
  41. package/dist/preview/runtime.js +12782 -12707
  42. package/dist/preview-api/index.cjs +1121 -1102
  43. package/dist/preview-api/index.js +1169 -1150
  44. package/dist/router/index.cjs +1366 -1347
  45. package/dist/router/index.js +594 -575
  46. package/dist/server-errors.cjs +6 -6
  47. package/dist/server-errors.js +6 -6
  48. package/dist/telemetry/index.cjs +696 -691
  49. package/dist/telemetry/index.js +764 -759
  50. package/dist/test/index.cjs +69 -70
  51. package/dist/test/index.d.ts +1216 -74
  52. package/dist/test/index.js +128 -130
  53. package/dist/test/preview.cjs +16 -16
  54. package/dist/test/preview.js +15 -15
  55. package/dist/theming/create.cjs +16 -17
  56. package/dist/theming/create.js +346 -228
  57. package/dist/theming/index.cjs +16 -17
  58. package/dist/theming/index.js +948 -839
  59. package/package.json +10 -17
@@ -1,27 +1,28 @@
1
1
  "use strict";
2
- var I = Object.defineProperty;
3
- var G = Object.getOwnPropertyDescriptor;
4
- var _ = Object.getOwnPropertyNames;
5
- var n = Object.prototype.hasOwnProperty;
6
- var L = (o, t) => {
7
- for (var H in t)
8
- I(o, H, { get: t[H], enumerable: !0 });
9
- }, T = (o, t, H, s) => {
2
+ var r = Object.defineProperty;
3
+ var _ = Object.getOwnPropertyDescriptor;
4
+ var L = Object.getOwnPropertyNames;
5
+ var T = Object.prototype.hasOwnProperty;
6
+ var n = (o, t) => {
7
+ for (var e in t)
8
+ r(o, e, { get: t[e], enumerable: !0 });
9
+ }, c = (o, t, e, s) => {
10
10
  if (t && typeof t == "object" || typeof t == "function")
11
- for (let e of _(t))
12
- !n.call(o, e) && e !== H && I(o, e, { get: () => t[e], enumerable: !(s = G(t, e)) || s.enumerable });
11
+ for (let H of L(t))
12
+ !T.call(o, H) && H !== e && r(o, H, { get: () => t[H], enumerable: !(s = _(t, H)) || s.enumerable });
13
13
  return o;
14
14
  };
15
- var c = (o) => T(I({}, "__esModule", { value: !0 }), o);
15
+ var x = (o) => c(r({}, "__esModule", { value: !0 }), o);
16
16
 
17
17
  // src/highlight/index.ts
18
- var x = {};
19
- L(x, {
20
- HIGHLIGHT: () => i,
21
- RESET_HIGHLIGHT: () => p,
22
- SCROLL_INTO_VIEW: () => E
18
+ var O = {};
19
+ n(O, {
20
+ HIGHLIGHT: () => E,
21
+ REMOVE_HIGHLIGHT: () => G,
22
+ RESET_HIGHLIGHT: () => i,
23
+ SCROLL_INTO_VIEW: () => p
23
24
  });
24
- module.exports = c(x);
25
+ module.exports = x(O);
25
26
 
26
27
  // src/highlight/constants.ts
27
- var r = "storybook/highlight", i = `${r}/add`, l = `${r}/remove`, p = `${r}/reset`, E = `${r}/scroll-into-view`;
28
+ var I = "storybook/highlight", E = `${I}/add`, G = `${I}/remove`, i = `${I}/reset`, p = `${I}/scroll-into-view`;
@@ -1,4 +1,5 @@
1
1
  declare const HIGHLIGHT = "storybook/highlight/add";
2
+ declare const REMOVE_HIGHLIGHT = "storybook/highlight/remove";
2
3
  declare const RESET_HIGHLIGHT = "storybook/highlight/reset";
3
4
  declare const SCROLL_INTO_VIEW = "storybook/highlight/scroll-into-view";
4
5
 
@@ -20,17 +21,15 @@ interface HighlightOptions {
20
21
  selectors: string[];
21
22
  /** Priority of the highlight, higher takes precedence, defaults to 0 */
22
23
  priority?: number;
23
- /** Whether the highlight is selectable (reveals the element's HTML) */
24
- selectable?: boolean;
25
24
  /** CSS styles to apply to the highlight */
26
- styles: Record<string, string>;
25
+ styles?: Record<string, string>;
27
26
  /** CSS styles to apply to the highlight when it is hovered */
28
27
  hoverStyles?: Record<string, string>;
29
28
  /** CSS styles to apply to the highlight when it is focused or selected */
30
29
  focusStyles?: Record<string, string>;
31
30
  /** Keyframes required for animations */
32
31
  keyframes?: string;
33
- /** Menu items to show when the highlight is selected (implies selectable: true) */
32
+ /** Menu items to show when the highlight is selected */
34
33
  menu?: {
35
34
  /** Unique identifier for the menu item */
36
35
  id: string;
@@ -58,4 +57,4 @@ interface ClickEventDetails {
58
57
  };
59
58
  }
60
59
 
61
- export { type ClickEventDetails, HIGHLIGHT, type HighlightOptions, type HighlightParameters, RESET_HIGHLIGHT, SCROLL_INTO_VIEW };
60
+ export { type ClickEventDetails, HIGHLIGHT, type HighlightOptions, type HighlightParameters, REMOVE_HIGHLIGHT, RESET_HIGHLIGHT, SCROLL_INTO_VIEW };
@@ -1,7 +1,8 @@
1
1
  // src/highlight/constants.ts
2
- var t = "storybook/highlight", o = `${t}/add`, r = `${t}/remove`, e = `${t}/reset`, H = `${t}/scroll-into-view`;
2
+ var t = "storybook/highlight", o = `${t}/add`, H = `${t}/remove`, e = `${t}/reset`, I = `${t}/scroll-into-view`;
3
3
  export {
4
4
  o as HIGHLIGHT,
5
+ H as REMOVE_HIGHLIGHT,
5
6
  e as RESET_HIGHLIGHT,
6
- H as SCROLL_INTO_VIEW
7
+ I as SCROLL_INTO_VIEW
7
8
  };