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.
- package/dist/actions/index.cjs +16 -16
- package/dist/actions/index.d.ts +1 -38
- package/dist/actions/index.js +12 -12
- package/dist/actions/preview.cjs +25 -25
- package/dist/actions/preview.d.ts +37 -547
- package/dist/actions/preview.js +18 -18
- package/dist/backgrounds/index.cjs +12 -144
- package/dist/backgrounds/index.d.ts +1 -591
- package/dist/backgrounds/index.js +0 -130
- package/dist/backgrounds/preview.cjs +63 -63
- package/dist/backgrounds/preview.d.ts +40 -542
- package/dist/backgrounds/preview.js +47 -47
- package/dist/bin/index.cjs +50 -50
- package/dist/bin/index.js +50 -50
- package/dist/builder-manager/index.cjs +379 -378
- package/dist/builder-manager/index.d.ts +567 -2
- package/dist/builder-manager/index.js +280 -279
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +87 -79
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.js +725 -716
- package/dist/component-testing/preview.cjs +12 -12
- package/dist/component-testing/preview.d.ts +2 -2
- package/dist/component-testing/preview.js +7 -7
- package/dist/components/index.cjs +1899 -1895
- package/dist/components/index.js +1343 -1339
- package/dist/controls/index.cjs +16 -16
- package/dist/controls/index.d.ts +1 -36
- package/dist/controls/preview.cjs +17 -17
- package/dist/controls/preview.d.ts +34 -546
- package/dist/controls/preview.js +3 -3
- package/dist/csf/index.cjs +1210 -95
- package/dist/csf/index.d.ts +59 -18
- package/dist/csf/index.js +1214 -90
- package/dist/csf-tools/index.cjs +2 -1
- package/dist/csf-tools/index.js +2 -2
- package/dist/highlight/index.cjs +15 -15
- package/dist/highlight/index.d.ts +1 -12
- package/dist/highlight/index.js +4 -4
- package/dist/highlight/preview.cjs +63 -63
- package/dist/highlight/preview.d.ts +11 -546
- package/dist/highlight/preview.js +11 -10
- package/dist/manager/globals-runtime.js +31934 -31888
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/measure/index.cjs +12 -472
- package/dist/measure/index.d.ts +1 -566
- package/dist/measure/index.js +0 -464
- package/dist/measure/preview.cjs +127 -127
- package/dist/measure/preview.d.ts +11 -546
- package/dist/measure/preview.js +117 -117
- package/dist/outline/index.cjs +12 -524
- package/dist/outline/index.d.ts +1 -566
- package/dist/outline/index.js +0 -500
- package/dist/outline/preview.cjs +32 -32
- package/dist/outline/preview.d.ts +11 -546
- package/dist/outline/preview.js +27 -27
- package/dist/preview/runtime.js +9415 -9379
- package/dist/preview-api/index.cjs +1228 -1261
- package/dist/preview-api/index.d.ts +6 -8
- package/dist/preview-api/index.js +927 -963
- package/dist/telemetry/index.cjs +1477 -1288
- package/dist/telemetry/index.js +1503 -1314
- package/dist/test/index.cjs +4437 -4394
- package/dist/test/index.js +3776 -3733
- package/dist/test/preview.cjs +42 -42
- package/dist/test/preview.d.ts +12 -550
- package/dist/test/preview.js +36 -36
- package/dist/types/index.d.ts +5 -3
- package/dist/viewport/index.cjs +17 -24
- package/dist/viewport/index.d.ts +9 -532
- package/dist/viewport/index.js +9 -16
- package/dist/viewport/preview.cjs +22 -22
- package/dist/viewport/preview.d.ts +45 -552
- package/dist/viewport/preview.js +8 -8
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var r = Object.defineProperty;
|
|
3
3
|
var s = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var y = Object.getOwnPropertyNames;
|
|
5
5
|
var m = Object.prototype.hasOwnProperty;
|
|
6
|
-
var p = (e, t) =>
|
|
6
|
+
var p = (e, t) => r(e, "name", { value: t, configurable: !0 });
|
|
7
7
|
var c = (e, t) => {
|
|
8
8
|
for (var o in t)
|
|
9
|
-
|
|
9
|
+
r(e, o, { get: t[o], enumerable: !0 });
|
|
10
10
|
}, u = (e, t, o, a) => {
|
|
11
11
|
if (t && typeof t == "object" || typeof t == "function")
|
|
12
|
-
for (let
|
|
13
|
-
!m.call(e,
|
|
12
|
+
for (let n of y(t))
|
|
13
|
+
!m.call(e, n) && n !== o && r(e, n, { get: () => t[n], enumerable: !(a = s(t, n)) || a.enumerable });
|
|
14
14
|
return e;
|
|
15
15
|
};
|
|
16
|
-
var f = (e) => u(
|
|
16
|
+
var f = (e) => u(r({}, "__esModule", { value: !0 }), e);
|
|
17
17
|
|
|
18
18
|
// src/component-testing/preview.ts
|
|
19
|
-
var
|
|
20
|
-
c(
|
|
19
|
+
var d = {};
|
|
20
|
+
c(d, {
|
|
21
21
|
default: () => b
|
|
22
22
|
});
|
|
23
|
-
module.exports = f(
|
|
24
|
-
var i = require("storybook/internal/
|
|
25
|
-
var { step: S } = (0,
|
|
23
|
+
module.exports = f(d);
|
|
24
|
+
var i = require("storybook/internal/csf"), l = require("storybook/internal/instrumenter");
|
|
25
|
+
var { step: S } = (0, l.instrument)(
|
|
26
26
|
{
|
|
27
27
|
// It seems like the label is unused, but the instrumenter has access to it
|
|
28
28
|
// The context will be bounded later in StoryRender, so that the user can write just:
|
|
@@ -32,7 +32,7 @@ var { step: S } = (0, i.instrument)(
|
|
|
32
32
|
step: /* @__PURE__ */ p(async (e, t, o) => t(o), "step")
|
|
33
33
|
},
|
|
34
34
|
{ intercept: !0 }
|
|
35
|
-
), b = /* @__PURE__ */ p(() => (0,
|
|
35
|
+
), b = /* @__PURE__ */ p(() => (0, i.definePreviewAddon)({
|
|
36
36
|
parameters: {
|
|
37
37
|
throwPlayFunctionExceptions: !1
|
|
38
38
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as storybook_internal_csf from 'storybook/internal/csf';
|
|
2
2
|
|
|
3
|
-
declare const _default: () =>
|
|
3
|
+
declare const _default: () => storybook_internal_csf.PreviewAddon<storybook_internal_csf.AddonTypes>;
|
|
4
4
|
|
|
5
5
|
export { _default as default };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (o, t) =>
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var e = (o, t) => r(o, "name", { value: t, configurable: !0 });
|
|
3
3
|
|
|
4
4
|
// src/component-testing/preview.ts
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
var { step: i } =
|
|
5
|
+
import { definePreviewAddon as p } from "storybook/internal/csf";
|
|
6
|
+
import { instrument as a } from "storybook/internal/instrumenter";
|
|
7
|
+
var { step: i } = a(
|
|
8
8
|
{
|
|
9
9
|
// It seems like the label is unused, but the instrumenter has access to it
|
|
10
10
|
// The context will be bounded later in StoryRender, so that the user can write just:
|
|
11
11
|
// await step("label", (context) => {
|
|
12
12
|
// // labeled step
|
|
13
13
|
// });
|
|
14
|
-
step: /* @__PURE__ */ e(async (o, t,
|
|
14
|
+
step: /* @__PURE__ */ e(async (o, t, n) => t(n), "step")
|
|
15
15
|
},
|
|
16
16
|
{ intercept: !0 }
|
|
17
|
-
), m = /* @__PURE__ */ e(() =>
|
|
17
|
+
), m = /* @__PURE__ */ e(() => p({
|
|
18
18
|
parameters: {
|
|
19
19
|
throwPlayFunctionExceptions: !1
|
|
20
20
|
},
|