storybook 9.0.0-alpha.10 → 9.0.0-alpha.12

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/bin/index.cjs +2 -2
  2. package/dist/actions/manager.js +150 -151
  3. package/dist/actions/preview.d.ts +0 -1
  4. package/dist/bin/index.cjs +66 -71
  5. package/dist/bin/index.js +59 -64
  6. package/dist/channels/index.cjs +17 -17
  7. package/dist/channels/index.js +3 -3
  8. package/dist/cli/bin/index.cjs +80 -80
  9. package/dist/cli/bin/index.js +83 -83
  10. package/dist/cli/index.cjs +1904 -1907
  11. package/dist/cli/index.d.ts +3 -7
  12. package/dist/cli/index.js +734 -737
  13. package/dist/common/index.cjs +59 -68
  14. package/dist/common/index.d.ts +1 -6
  15. package/dist/common/index.js +91 -100
  16. package/dist/component-testing/index.cjs +23 -0
  17. package/dist/component-testing/index.d.ts +3 -0
  18. package/dist/component-testing/index.js +5 -0
  19. package/dist/component-testing/manager.css +170 -0
  20. package/dist/component-testing/manager.js +3126 -0
  21. package/dist/component-testing/preview.cjs +40 -0
  22. package/dist/component-testing/preview.d.ts +5 -0
  23. package/dist/component-testing/preview.js +25 -0
  24. package/dist/components/index.cjs +5515 -5781
  25. package/dist/components/index.d.ts +3 -254
  26. package/dist/components/index.js +7296 -13770
  27. package/dist/controls/manager.js +989 -941
  28. package/dist/controls/preview.d.ts +0 -1
  29. package/dist/core-events/index.cjs +42 -45
  30. package/dist/core-events/index.d.ts +1 -4
  31. package/dist/core-events/index.js +38 -41
  32. package/dist/core-server/index.cjs +2730 -2721
  33. package/dist/core-server/index.d.ts +32 -23
  34. package/dist/core-server/index.js +822 -813
  35. package/dist/core-server/presets/common-preset.cjs +1754 -1730
  36. package/dist/core-server/presets/common-preset.js +1852 -1828
  37. package/dist/csf/index.d.ts +0 -2
  38. package/dist/csf-tools/index.cjs +0 -8
  39. package/dist/csf-tools/index.d.ts +0 -4
  40. package/dist/csf-tools/index.js +0 -8
  41. package/dist/instrumenter/index.cjs +475 -468
  42. package/dist/instrumenter/index.js +949 -950
  43. package/dist/manager/globals-module-info.cjs +15 -17
  44. package/dist/manager/globals-module-info.js +4 -6
  45. package/dist/manager/globals-runtime.js +56352 -50867
  46. package/dist/manager/runtime.js +4958 -4440
  47. package/dist/manager-api/index.cjs +1153 -1136
  48. package/dist/manager-api/index.d.ts +106 -97
  49. package/dist/manager-api/index.js +810 -795
  50. package/dist/preview/runtime.js +38453 -37289
  51. package/dist/preview-api/index.cjs +1098 -1211
  52. package/dist/preview-api/index.d.ts +10 -23
  53. package/dist/preview-api/index.js +1457 -1571
  54. package/dist/telemetry/index.d.ts +1 -1
  55. package/dist/types/index.cjs +14 -15
  56. package/dist/types/index.d.ts +306 -65
  57. package/dist/types/index.js +1 -2
  58. package/dist/viewport/preview.d.ts +0 -1
  59. package/package.json +25 -4
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var n = Object.defineProperty;
3
+ var s = Object.getOwnPropertyDescriptor;
4
+ var y = Object.getOwnPropertyNames;
5
+ var m = Object.prototype.hasOwnProperty;
6
+ var p = (e, t) => n(e, "name", { value: t, configurable: !0 });
7
+ var c = (e, t) => {
8
+ for (var o in t)
9
+ n(e, o, { get: t[o], enumerable: !0 });
10
+ }, u = (e, t, o, a) => {
11
+ if (t && typeof t == "object" || typeof t == "function")
12
+ for (let r of y(t))
13
+ !m.call(e, r) && r !== o && n(e, r, { get: () => t[r], enumerable: !(a = s(t, r)) || a.enumerable });
14
+ return e;
15
+ };
16
+ var f = (e) => u(n({}, "__esModule", { value: !0 }), e);
17
+
18
+ // src/component-testing/preview.ts
19
+ var x = {};
20
+ c(x, {
21
+ default: () => b
22
+ });
23
+ module.exports = f(x);
24
+ var i = require("storybook/internal/instrumenter"), l = require("storybook/preview-api");
25
+ var { step: S } = (0, i.instrument)(
26
+ {
27
+ // It seems like the label is unused, but the instrumenter has access to it
28
+ // The context will be bounded later in StoryRender, so that the user can write just:
29
+ // await step("label", (context) => {
30
+ // // labeled step
31
+ // });
32
+ step: /* @__PURE__ */ p(async (e, t, o) => t(o), "step")
33
+ },
34
+ { intercept: !0 }
35
+ ), b = /* @__PURE__ */ p(() => (0, l.definePreview)({
36
+ parameters: {
37
+ throwPlayFunctionExceptions: !1
38
+ },
39
+ runStep: S
40
+ }), "default");
@@ -0,0 +1,5 @@
1
+ import * as storybook_internal_types from 'storybook/internal/types';
2
+
3
+ declare const _default: () => storybook_internal_types.ProjectAnnotations<storybook_internal_types.Renderer>;
4
+
5
+ export { _default as default };
@@ -0,0 +1,25 @@
1
+ var n = Object.defineProperty;
2
+ var e = (o, t) => n(o, "name", { value: t, configurable: !0 });
3
+
4
+ // src/component-testing/preview.ts
5
+ import { instrument as p } from "storybook/internal/instrumenter";
6
+ import { definePreview as a } from "storybook/preview-api";
7
+ var { step: i } = p(
8
+ {
9
+ // It seems like the label is unused, but the instrumenter has access to it
10
+ // The context will be bounded later in StoryRender, so that the user can write just:
11
+ // await step("label", (context) => {
12
+ // // labeled step
13
+ // });
14
+ step: /* @__PURE__ */ e(async (o, t, r) => t(r), "step")
15
+ },
16
+ { intercept: !0 }
17
+ ), m = /* @__PURE__ */ e(() => a({
18
+ parameters: {
19
+ throwPlayFunctionExceptions: !1
20
+ },
21
+ runStep: i
22
+ }), "default");
23
+ export {
24
+ m as default
25
+ };