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
package/dist/controls/index.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
|
|
9
|
-
}, A = (t, o,
|
|
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
|
|
12
|
-
!
|
|
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(
|
|
15
|
+
var D = (t) => A(c({}, "__esModule", { value: !0 }), t);
|
|
16
16
|
|
|
17
17
|
// src/controls/index.ts
|
|
18
|
-
var
|
|
19
|
-
|
|
18
|
+
var _ = {};
|
|
19
|
+
x(_, {
|
|
20
20
|
ADDON_ID: () => d,
|
|
21
|
-
PARAM_KEY: () =>
|
|
21
|
+
PARAM_KEY: () => l
|
|
22
22
|
});
|
|
23
|
-
module.exports = D(
|
|
23
|
+
module.exports = D(_);
|
|
24
24
|
|
|
25
25
|
// src/controls/constants.ts
|
|
26
|
-
var d = "addon-controls",
|
|
26
|
+
var d = "addon-controls", l = "controls";
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
declare const ADDON_ID: "addon-controls";
|
|
2
2
|
declare const PARAM_KEY: "controls";
|
|
3
3
|
|
|
4
|
-
|
|
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
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
o
|
|
9
|
-
},
|
|
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
|
|
12
|
-
!
|
|
13
|
-
return
|
|
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
|
|
15
|
+
var l = (o) => y(p({}, "__esModule", { value: !0 }), o);
|
|
16
16
|
|
|
17
17
|
// src/controls/preview.ts
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
default: () =>
|
|
18
|
+
var T = {};
|
|
19
|
+
n(T, {
|
|
20
|
+
default: () => C
|
|
21
21
|
});
|
|
22
|
-
module.exports =
|
|
23
|
-
var d = require("storybook/
|
|
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
|
});
|