storybook 9.0.0-alpha.10 → 9.0.0-alpha.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.
- package/dist/bin/index.cjs +63 -64
- package/dist/bin/index.js +59 -60
- package/dist/cli/bin/index.cjs +80 -80
- package/dist/cli/bin/index.js +83 -83
- package/dist/common/index.cjs +61 -62
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +93 -94
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/manager.css +170 -0
- package/dist/component-testing/manager.js +3099 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.js +1 -0
- package/dist/core-server/presets/common-preset.cjs +1359 -1359
- package/dist/core-server/presets/common-preset.js +1406 -1406
- package/dist/instrumenter/index.cjs +475 -468
- package/dist/instrumenter/index.js +949 -950
- package/dist/manager/globals-runtime.js +55652 -49799
- package/dist/manager-api/index.cjs +206 -206
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +38686 -37394
- package/dist/preview-api/index.cjs +591 -588
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +580 -577
- package/package.json +22 -1
|
@@ -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,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
|
+
};
|
|
@@ -27115,6 +27115,7 @@ function R7(e) {
|
|
|
27115
27115
|
/* @__PURE__ */ nt.default.createElement(
|
|
27116
27116
|
uF,
|
|
27117
27117
|
{
|
|
27118
|
+
id: "addons-menu-button",
|
|
27118
27119
|
ref: r,
|
|
27119
27120
|
active: N,
|
|
27120
27121
|
preActive: R,
|
package/dist/components/index.js
CHANGED
|
@@ -23794,6 +23794,7 @@ function n3(e) {
|
|
|
23794
23794
|
/* @__PURE__ */ an.createElement(
|
|
23795
23795
|
xI,
|
|
23796
23796
|
{
|
|
23797
|
+
id: "addons-menu-button",
|
|
23797
23798
|
ref: r,
|
|
23798
23799
|
active: w,
|
|
23799
23800
|
preActive: m,
|