storybook 9.0.0-beta.4 → 9.0.0-beta.6
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/server/base-preview-head.html +2 -1
- package/dist/babel/index.cjs +15060 -14974
- package/dist/babel/index.d.ts +37 -18
- package/dist/babel/index.js +15097 -15011
- package/dist/bin/index.cjs +44 -44
- package/dist/bin/index.js +44 -44
- package/dist/builder-manager/index.cjs +119 -104
- package/dist/builder-manager/index.js +118 -102
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/cli/index.cjs +19438 -19340
- package/dist/cli/index.js +19449 -19351
- package/dist/client-logger/index.d.ts +2 -1
- package/dist/common/index.cjs +4997 -4925
- package/dist/common/index.js +5090 -5014
- package/dist/components/index.cjs +4581 -4419
- package/dist/components/index.d.ts +12 -12
- package/dist/components/index.js +3847 -3681
- package/dist/core-server/index.cjs +6360 -6276
- package/dist/core-server/index.js +6407 -6318
- package/dist/core-server/presets/common-manager.js +3871 -3476
- package/dist/core-server/presets/common-preset.cjs +2304 -2238
- package/dist/core-server/presets/common-preset.js +2389 -2319
- package/dist/docs-tools/index.cjs +484 -464
- package/dist/docs-tools/index.js +502 -482
- package/dist/highlight/index.cjs +19 -18
- package/dist/highlight/index.d.ts +4 -5
- package/dist/highlight/index.js +3 -2
- package/dist/highlight/preview.cjs +311 -307
- package/dist/highlight/preview.js +293 -289
- package/dist/instrumenter/index.cjs +561 -559
- package/dist/instrumenter/index.js +1551 -1498
- package/dist/manager/globals-module-info.cjs +1 -0
- package/dist/manager/globals-module-info.js +1 -0
- package/dist/manager/globals-runtime.js +19639 -19374
- package/dist/manager/runtime.js +4372 -4133
- package/dist/manager-api/index.cjs +2375 -2319
- package/dist/manager-api/index.js +1722 -1666
- package/dist/node-logger/index.cjs +25 -25
- package/dist/node-logger/index.js +25 -25
- package/dist/preview/runtime.js +12782 -12707
- package/dist/preview-api/index.cjs +1121 -1102
- package/dist/preview-api/index.js +1169 -1150
- package/dist/router/index.cjs +1366 -1347
- package/dist/router/index.js +594 -575
- package/dist/server-errors.cjs +6 -6
- package/dist/server-errors.js +6 -6
- package/dist/telemetry/index.cjs +696 -691
- package/dist/telemetry/index.js +764 -759
- package/dist/test/index.cjs +69 -70
- package/dist/test/index.d.ts +1216 -74
- package/dist/test/index.js +128 -130
- package/dist/test/preview.cjs +16 -16
- package/dist/test/preview.js +15 -15
- package/dist/theming/create.cjs +16 -17
- package/dist/theming/create.js +346 -228
- package/dist/theming/index.cjs +16 -17
- package/dist/theming/index.js +948 -839
- package/package.json +10 -17
package/dist/highlight/index.cjs
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
|
|
9
|
-
},
|
|
2
|
+
var r = Object.defineProperty;
|
|
3
|
+
var _ = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var L = Object.getOwnPropertyNames;
|
|
5
|
+
var T = Object.prototype.hasOwnProperty;
|
|
6
|
+
var n = (o, t) => {
|
|
7
|
+
for (var e in t)
|
|
8
|
+
r(o, e, { get: t[e], enumerable: !0 });
|
|
9
|
+
}, c = (o, t, e, s) => {
|
|
10
10
|
if (t && typeof t == "object" || typeof t == "function")
|
|
11
|
-
for (let
|
|
12
|
-
!
|
|
11
|
+
for (let H of L(t))
|
|
12
|
+
!T.call(o, H) && H !== e && r(o, H, { get: () => t[H], enumerable: !(s = _(t, H)) || s.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
|
-
|
|
20
|
-
HIGHLIGHT: () =>
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
var O = {};
|
|
19
|
+
n(O, {
|
|
20
|
+
HIGHLIGHT: () => E,
|
|
21
|
+
REMOVE_HIGHLIGHT: () => G,
|
|
22
|
+
RESET_HIGHLIGHT: () => i,
|
|
23
|
+
SCROLL_INTO_VIEW: () => p
|
|
23
24
|
});
|
|
24
|
-
module.exports =
|
|
25
|
+
module.exports = x(O);
|
|
25
26
|
|
|
26
27
|
// src/highlight/constants.ts
|
|
27
|
-
var
|
|
28
|
+
var I = "storybook/highlight", E = `${I}/add`, G = `${I}/remove`, i = `${I}/reset`, p = `${I}/scroll-into-view`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const HIGHLIGHT = "storybook/highlight/add";
|
|
2
|
+
declare const REMOVE_HIGHLIGHT = "storybook/highlight/remove";
|
|
2
3
|
declare const RESET_HIGHLIGHT = "storybook/highlight/reset";
|
|
3
4
|
declare const SCROLL_INTO_VIEW = "storybook/highlight/scroll-into-view";
|
|
4
5
|
|
|
@@ -20,17 +21,15 @@ interface HighlightOptions {
|
|
|
20
21
|
selectors: string[];
|
|
21
22
|
/** Priority of the highlight, higher takes precedence, defaults to 0 */
|
|
22
23
|
priority?: number;
|
|
23
|
-
/** Whether the highlight is selectable (reveals the element's HTML) */
|
|
24
|
-
selectable?: boolean;
|
|
25
24
|
/** CSS styles to apply to the highlight */
|
|
26
|
-
styles
|
|
25
|
+
styles?: Record<string, string>;
|
|
27
26
|
/** CSS styles to apply to the highlight when it is hovered */
|
|
28
27
|
hoverStyles?: Record<string, string>;
|
|
29
28
|
/** CSS styles to apply to the highlight when it is focused or selected */
|
|
30
29
|
focusStyles?: Record<string, string>;
|
|
31
30
|
/** Keyframes required for animations */
|
|
32
31
|
keyframes?: string;
|
|
33
|
-
/** Menu items to show when the highlight is selected
|
|
32
|
+
/** Menu items to show when the highlight is selected */
|
|
34
33
|
menu?: {
|
|
35
34
|
/** Unique identifier for the menu item */
|
|
36
35
|
id: string;
|
|
@@ -58,4 +57,4 @@ interface ClickEventDetails {
|
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
export { type ClickEventDetails, HIGHLIGHT, type HighlightOptions, type HighlightParameters, RESET_HIGHLIGHT, SCROLL_INTO_VIEW };
|
|
60
|
+
export { type ClickEventDetails, HIGHLIGHT, type HighlightOptions, type HighlightParameters, REMOVE_HIGHLIGHT, RESET_HIGHLIGHT, SCROLL_INTO_VIEW };
|
package/dist/highlight/index.js
CHANGED
|
@@ -1,7 +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`, e = `${t}/reset`, I = `${t}/scroll-into-view`;
|
|
3
3
|
export {
|
|
4
4
|
o as HIGHLIGHT,
|
|
5
|
+
H as REMOVE_HIGHLIGHT,
|
|
5
6
|
e as RESET_HIGHLIGHT,
|
|
6
|
-
|
|
7
|
+
I as SCROLL_INTO_VIEW
|
|
7
8
|
};
|