storybook 9.1.0-alpha.0 → 9.1.0-alpha.10
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/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -1
- package/dist/actions/index.cjs +16 -16
- package/dist/actions/index.d.ts +1 -38
- package/dist/actions/index.js +12 -12
- package/dist/bin/index.cjs +62 -69
- package/dist/bin/index.js +43 -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 +945 -945
- package/dist/cli/bin/index.js +673 -672
- package/dist/cli/index.cjs +14965 -14973
- package/dist/cli/index.d.ts +713 -15
- package/dist/cli/index.js +13488 -13495
- package/dist/common/index.cjs +11211 -11103
- package/dist/common/index.d.ts +351 -72
- package/dist/common/index.js +18491 -18379
- package/dist/components/index.cjs +4606 -4425
- package/dist/components/index.d.ts +11 -12
- package/dist/components/index.js +3020 -2834
- package/dist/controls/index.cjs +16 -16
- package/dist/controls/index.d.ts +1 -36
- package/dist/core-server/index.cjs +6690 -6624
- package/dist/core-server/index.d.ts +14 -2
- package/dist/core-server/index.js +6088 -6023
- package/dist/core-server/presets/common-manager.js +3582 -3475
- package/dist/core-server/presets/common-preset.cjs +85015 -5213
- package/dist/core-server/presets/common-preset.js +85107 -5291
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +28728 -0
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +28729 -0
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.cjs +29339 -0
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +29340 -0
- package/dist/csf/index.cjs +3019 -104
- package/dist/csf/index.d.ts +301 -18
- package/dist/csf/index.js +3031 -98
- package/dist/csf-tools/index.cjs +489 -488
- package/dist/csf-tools/index.js +311 -309
- package/dist/highlight/index.cjs +15 -15
- package/dist/highlight/index.d.ts +1 -12
- package/dist/highlight/index.js +4 -4
- package/dist/instrumenter/index.cjs +1308 -1239
- package/dist/instrumenter/index.d.ts +25 -3
- package/dist/instrumenter/index.js +1345 -1280
- package/dist/manager/globals-module-info.cjs +1 -1
- package/dist/manager/globals-module-info.js +1 -1
- package/dist/manager/globals-runtime.js +42257 -44665
- package/dist/manager/runtime.js +3715 -3536
- package/dist/manager-api/index.cjs +74 -74
- package/dist/manager-api/index.d.ts +4 -1
- package/dist/manager-api/index.js +142 -142
- package/dist/node-logger/index.cjs +8520 -994
- package/dist/node-logger/index.d.ts +395 -2
- package/dist/node-logger/index.js +8535 -995
- package/dist/preview/runtime.js +13701 -16331
- package/dist/preview-api/index.cjs +1434 -1458
- package/dist/preview-api/index.d.ts +13 -10
- package/dist/preview-api/index.js +950 -976
- package/dist/server-errors.cjs +201 -242
- package/dist/server-errors.d.ts +1 -12
- package/dist/server-errors.js +182 -223
- package/dist/telemetry/index.cjs +1919 -1638
- package/dist/telemetry/index.d.ts +4 -2
- package/dist/telemetry/index.js +1972 -1690
- package/dist/test/index.cjs +9184 -9816
- package/dist/test/index.d.ts +8 -1
- package/dist/test/index.js +8390 -9029
- package/dist/types/index.d.ts +19 -17
- package/dist/viewport/index.cjs +17 -24
- package/dist/viewport/index.d.ts +9 -532
- package/dist/viewport/index.js +9 -16
- package/package.json +18 -187
- package/templates/mocker-runtime.template.js +89 -0
- package/dist/actions/preview.cjs +0 -159
- package/dist/actions/preview.d.ts +0 -555
- package/dist/actions/preview.js +0 -149
- package/dist/backgrounds/index.cjs +0 -148
- package/dist/backgrounds/index.d.ts +0 -592
- package/dist/backgrounds/index.js +0 -130
- package/dist/backgrounds/preview.cjs +0 -143
- package/dist/backgrounds/preview.d.ts +0 -555
- package/dist/backgrounds/preview.js +0 -127
- package/dist/component-testing/index.cjs +0 -23
- package/dist/component-testing/index.d.ts +0 -3
- package/dist/component-testing/index.js +0 -5
- package/dist/component-testing/preview.cjs +0 -40
- package/dist/component-testing/preview.d.ts +0 -5
- package/dist/component-testing/preview.js +0 -25
- package/dist/controls/preview.cjs +0 -26
- package/dist/controls/preview.d.ts +0 -555
- package/dist/controls/preview.js +0 -9
- package/dist/highlight/preview.cjs +0 -590
- package/dist/highlight/preview.d.ts +0 -555
- package/dist/highlight/preview.js +0 -574
- package/dist/measure/index.cjs +0 -476
- package/dist/measure/index.d.ts +0 -567
- package/dist/measure/index.js +0 -464
- package/dist/measure/preview.cjs +0 -466
- package/dist/measure/preview.d.ts +0 -560
- package/dist/measure/preview.js +0 -450
- package/dist/outline/index.cjs +0 -528
- package/dist/outline/index.d.ts +0 -567
- package/dist/outline/index.js +0 -500
- package/dist/outline/preview.cjs +0 -518
- package/dist/outline/preview.d.ts +0 -560
- package/dist/outline/preview.js +0 -486
- package/dist/test/preview.cjs +0 -73
- package/dist/test/preview.d.ts +0 -555
- package/dist/test/preview.js +0 -66
- package/dist/viewport/preview.cjs +0 -35
- package/dist/viewport/preview.d.ts +0 -569
- package/dist/viewport/preview.js +0 -19
package/dist/highlight/index.cjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var r = Object.defineProperty;
|
|
3
|
-
var
|
|
3
|
+
var i = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var n = Object.getOwnPropertyNames;
|
|
5
5
|
var T = Object.prototype.hasOwnProperty;
|
|
6
6
|
var L = (o, t) => {
|
|
7
|
-
for (var
|
|
8
|
-
r(o,
|
|
9
|
-
}, c = (o, t,
|
|
7
|
+
for (var I in t)
|
|
8
|
+
r(o, I, { get: t[I], enumerable: !0 });
|
|
9
|
+
}, c = (o, t, I, E) => {
|
|
10
10
|
if (t && typeof t == "object" || typeof t == "function")
|
|
11
|
-
for (let
|
|
12
|
-
!T.call(o,
|
|
11
|
+
for (let H of n(t))
|
|
12
|
+
!T.call(o, H) && H !== I && r(o, H, { get: () => t[H], enumerable: !(E = i(t, H)) || E.enumerable });
|
|
13
13
|
return o;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
15
|
+
var x = (o) => c(r({}, "__esModule", { value: !0 }), o);
|
|
16
16
|
|
|
17
17
|
// src/highlight/index.ts
|
|
18
|
-
var
|
|
19
|
-
L(
|
|
20
|
-
HIGHLIGHT: () =>
|
|
21
|
-
REMOVE_HIGHLIGHT: () =>
|
|
22
|
-
RESET_HIGHLIGHT: () =>
|
|
23
|
-
SCROLL_INTO_VIEW: () =>
|
|
18
|
+
var O = {};
|
|
19
|
+
L(O, {
|
|
20
|
+
HIGHLIGHT: () => _,
|
|
21
|
+
REMOVE_HIGHLIGHT: () => s,
|
|
22
|
+
RESET_HIGHLIGHT: () => p,
|
|
23
|
+
SCROLL_INTO_VIEW: () => G
|
|
24
24
|
});
|
|
25
|
-
module.exports =
|
|
25
|
+
module.exports = x(O);
|
|
26
26
|
|
|
27
27
|
// src/highlight/constants.ts
|
|
28
|
-
var
|
|
28
|
+
var e = "storybook/highlight", _ = `${e}/add`, s = `${e}/remove`, p = `${e}/reset`, G = `${e}/scroll-into-view`;
|
|
@@ -11,17 +11,6 @@ declare const iconPaths: {
|
|
|
11
11
|
};
|
|
12
12
|
type IconName = keyof typeof iconPaths;
|
|
13
13
|
|
|
14
|
-
interface HighlightParameters {
|
|
15
|
-
/**
|
|
16
|
-
* Highlight configuration
|
|
17
|
-
*
|
|
18
|
-
* @see https://storybook.js.org/docs/essentials/highlight#parameters
|
|
19
|
-
*/
|
|
20
|
-
highlight: {
|
|
21
|
-
/** Remove the addon panel and disable the addon's behavior */
|
|
22
|
-
disable?: boolean;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
14
|
interface HighlightMenuItem {
|
|
26
15
|
/** Unique identifier for the menu item */
|
|
27
16
|
id: string;
|
|
@@ -70,4 +59,4 @@ interface ClickEventDetails {
|
|
|
70
59
|
};
|
|
71
60
|
}
|
|
72
61
|
|
|
73
|
-
export { type ClickEventDetails, HIGHLIGHT, type HighlightMenuItem, type HighlightOptions,
|
|
62
|
+
export { type ClickEventDetails, HIGHLIGHT, type HighlightMenuItem, type HighlightOptions, REMOVE_HIGHLIGHT, RESET_HIGHLIGHT, SCROLL_INTO_VIEW };
|
package/dist/highlight/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/highlight/constants.ts
|
|
2
|
-
var t = "storybook/highlight", o = `${t}/add`,
|
|
2
|
+
var t = "storybook/highlight", o = `${t}/add`, H = `${t}/remove`, I = `${t}/reset`, e = `${t}/scroll-into-view`;
|
|
3
3
|
export {
|
|
4
4
|
o as HIGHLIGHT,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
H as REMOVE_HIGHLIGHT,
|
|
6
|
+
I as RESET_HIGHLIGHT,
|
|
7
|
+
e as SCROLL_INTO_VIEW
|
|
8
8
|
};
|