storybook 9.0.0-alpha.9 → 9.0.0-beta.0
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/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/base-preview-head.html +1 -3
- package/bin/index.cjs +2 -2
- package/dist/actions/decorator.js +67 -72
- package/dist/actions/index.cjs +27 -31
- package/dist/actions/index.d.ts +0 -3
- package/dist/actions/index.js +27 -31
- package/dist/actions/preview.cjs +23 -27
- package/dist/actions/preview.d.ts +0 -1
- package/dist/actions/preview.js +19 -23
- package/dist/babel/index.cjs +822 -816
- package/dist/babel/index.js +822 -816
- package/dist/backgrounds/index.cjs +148 -0
- package/dist/backgrounds/index.d.ts +91 -0
- package/dist/backgrounds/index.js +130 -0
- package/dist/backgrounds/preview.cjs +143 -0
- package/dist/backgrounds/preview.d.ts +54 -0
- package/dist/backgrounds/preview.js +127 -0
- package/dist/bin/index.cjs +73 -92
- package/dist/bin/index.js +66 -85
- package/dist/builder-manager/index.cjs +316 -296
- package/dist/builder-manager/index.js +567 -547
- package/dist/channels/index.cjs +1020 -950
- package/dist/channels/index.js +1256 -1201
- package/dist/cli/bin/index.cjs +198 -198
- package/dist/cli/bin/index.js +204 -204
- package/dist/cli/index.cjs +61734 -7589
- package/dist/cli/index.d.ts +24 -20
- package/dist/cli/index.js +61775 -7630
- package/dist/common/index.cjs +16133 -9095
- package/dist/common/index.d.ts +32 -24
- package/dist/common/index.js +16227 -9183
- 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/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 +6479 -13005
- package/dist/components/index.d.ts +8 -257
- package/dist/components/index.js +6160 -18689
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +54 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +91 -106
- package/dist/core-events/index.d.ts +2 -80
- package/dist/core-events/index.js +79 -94
- package/dist/core-server/index.cjs +12409 -12231
- package/dist/core-server/index.d.ts +32 -23
- package/dist/core-server/index.js +12567 -12389
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +12153 -12
- package/dist/core-server/presets/common-preset.cjs +3004 -3151
- package/dist/core-server/presets/common-preset.js +2833 -2981
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf-tools/index.cjs +412 -403
- package/dist/csf-tools/index.d.ts +0 -4
- package/dist/csf-tools/index.js +410 -401
- package/dist/docs-tools/index.cjs +2569 -575
- package/dist/docs-tools/index.js +2565 -564
- package/dist/highlight/index.cjs +27 -0
- package/dist/highlight/index.d.ts +61 -0
- package/dist/highlight/index.js +7 -0
- package/dist/highlight/preview.cjs +535 -0
- package/dist/highlight/preview.d.ts +54 -0
- package/dist/highlight/preview.js +519 -0
- package/dist/instrumenter/index.cjs +1411 -1758
- package/dist/instrumenter/index.d.ts +8 -7
- package/dist/instrumenter/index.js +1325 -1663
- package/dist/manager/globals-module-info.cjs +22 -33
- package/dist/manager/globals-module-info.js +7 -18
- package/dist/manager/globals-runtime.js +45452 -49541
- package/dist/manager/runtime.js +4392 -3774
- package/dist/manager-api/index.cjs +2622 -2529
- package/dist/manager-api/index.d.ts +109 -114
- package/dist/manager-api/index.js +2603 -2475
- package/dist/manager-errors.js +41 -37
- package/dist/measure/index.cjs +476 -0
- package/dist/measure/index.d.ts +66 -0
- package/dist/measure/index.js +464 -0
- package/dist/measure/preview.cjs +466 -0
- package/dist/measure/preview.d.ts +59 -0
- package/dist/measure/preview.js +450 -0
- package/dist/outline/index.cjs +528 -0
- package/dist/outline/index.d.ts +66 -0
- package/dist/outline/index.js +500 -0
- package/dist/outline/preview.cjs +518 -0
- package/dist/outline/preview.d.ts +59 -0
- package/dist/outline/preview.js +486 -0
- package/dist/preview/runtime.js +41973 -38159
- package/dist/preview-api/index.cjs +1204 -1293
- package/dist/preview-api/index.d.ts +126 -178
- package/dist/preview-api/index.js +1614 -1685
- package/dist/preview-errors.cjs +65 -51
- package/dist/preview-errors.d.ts +6 -2
- package/dist/preview-errors.js +176 -142
- package/dist/server-errors.cjs +160 -113
- package/dist/server-errors.d.ts +12 -2
- package/dist/server-errors.js +157 -110
- package/dist/telemetry/index.cjs +374 -370
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +460 -456
- package/dist/test/index.cjs +1553 -1552
- package/dist/test/index.js +9603 -9514
- package/dist/test/preview.cjs +1906 -1905
- package/dist/test/preview.d.ts +0 -6
- package/dist/test/preview.js +3664 -3603
- package/dist/test/spy.cjs +65 -64
- package/dist/test/spy.js +59 -58
- package/dist/types/index.cjs +11 -12
- package/dist/types/index.d.ts +601 -334
- package/dist/types/index.js +1 -2
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +68 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +207 -12
- package/dist/actions/manager.js +0 -1196
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var r = Object.defineProperty;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var E = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var _ = Object.getOwnPropertyNames;
|
|
5
|
+
var s = Object.prototype.hasOwnProperty;
|
|
6
|
+
var S = (o, e) => {
|
|
7
7
|
for (var n in e)
|
|
8
8
|
r(o, n, { get: e[n], enumerable: !0 });
|
|
9
|
-
},
|
|
9
|
+
}, i = (o, e, n, c) => {
|
|
10
10
|
if (e && typeof e == "object" || typeof e == "function")
|
|
11
|
-
for (let t of
|
|
12
|
-
!
|
|
11
|
+
for (let t of _(e))
|
|
12
|
+
!s.call(o, t) && t !== n && r(o, t, { get: () => e[t], enumerable: !(c = E(e, t)) || c.enumerable });
|
|
13
13
|
return o;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
15
|
+
var T = (o) => i(r({}, "__esModule", { value: !0 }), o);
|
|
16
16
|
|
|
17
17
|
// src/manager/globals-module-info.ts
|
|
18
18
|
var A = {};
|
|
19
|
-
|
|
20
|
-
globalsModuleInfoMap: () =>
|
|
19
|
+
S(A, {
|
|
20
|
+
globalsModuleInfoMap: () => R
|
|
21
21
|
});
|
|
22
|
-
module.exports =
|
|
22
|
+
module.exports = T(A);
|
|
23
23
|
|
|
24
24
|
// src/manager/globals/exports.ts
|
|
25
|
-
var
|
|
25
|
+
var l = {
|
|
26
26
|
react: [
|
|
27
27
|
"Children",
|
|
28
28
|
"Component",
|
|
@@ -345,6 +345,8 @@ var E = {
|
|
|
345
345
|
"experimental_useUniversalStore",
|
|
346
346
|
"internal_fullStatusStore",
|
|
347
347
|
"internal_fullTestProviderStore",
|
|
348
|
+
"internal_universalStatusStore",
|
|
349
|
+
"internal_universalTestProviderStore",
|
|
348
350
|
"isMacLike",
|
|
349
351
|
"isShortcutTaken",
|
|
350
352
|
"keyToSymbol",
|
|
@@ -495,6 +497,7 @@ var E = {
|
|
|
495
497
|
"Bar",
|
|
496
498
|
"Blockquote",
|
|
497
499
|
"Button",
|
|
500
|
+
"Checkbox",
|
|
498
501
|
"ClipboardCode",
|
|
499
502
|
"Code",
|
|
500
503
|
"DL",
|
|
@@ -512,8 +515,6 @@ var E = {
|
|
|
512
515
|
"H6",
|
|
513
516
|
"HR",
|
|
514
517
|
"IconButton",
|
|
515
|
-
"IconButtonSkeleton",
|
|
516
|
-
"Icons",
|
|
517
518
|
"Img",
|
|
518
519
|
"LI",
|
|
519
520
|
"Link",
|
|
@@ -532,7 +533,6 @@ var E = {
|
|
|
532
533
|
"Span",
|
|
533
534
|
"StorybookIcon",
|
|
534
535
|
"StorybookLogo",
|
|
535
|
-
"Symbols",
|
|
536
536
|
"SyntaxHighlighter",
|
|
537
537
|
"TT",
|
|
538
538
|
"TabBar",
|
|
@@ -552,7 +552,6 @@ var E = {
|
|
|
552
552
|
"components",
|
|
553
553
|
"createCopyToClipboardFunction",
|
|
554
554
|
"getStoryHref",
|
|
555
|
-
"icons",
|
|
556
555
|
"interleaveSeparators",
|
|
557
556
|
"nameSpaceClassNames",
|
|
558
557
|
"resetComponents",
|
|
@@ -610,12 +609,6 @@ var E = {
|
|
|
610
609
|
"STORY_THREW_EXCEPTION",
|
|
611
610
|
"STORY_UNCHANGED",
|
|
612
611
|
"TELEMETRY_ERROR",
|
|
613
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_REQUEST",
|
|
614
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
|
|
615
|
-
"TESTING_MODULE_CRASH_REPORT",
|
|
616
|
-
"TESTING_MODULE_PROGRESS_REPORT",
|
|
617
|
-
"TESTING_MODULE_RUN_ALL_REQUEST",
|
|
618
|
-
"TESTING_MODULE_RUN_REQUEST",
|
|
619
612
|
"TOGGLE_WHATS_NEW_NOTIFICATIONS",
|
|
620
613
|
"UNHANDLED_ERRORS_WHILE_PLAYING",
|
|
621
614
|
"UPDATE_GLOBALS",
|
|
@@ -674,12 +667,6 @@ var E = {
|
|
|
674
667
|
"STORY_THREW_EXCEPTION",
|
|
675
668
|
"STORY_UNCHANGED",
|
|
676
669
|
"TELEMETRY_ERROR",
|
|
677
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_REQUEST",
|
|
678
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
|
|
679
|
-
"TESTING_MODULE_CRASH_REPORT",
|
|
680
|
-
"TESTING_MODULE_PROGRESS_REPORT",
|
|
681
|
-
"TESTING_MODULE_RUN_ALL_REQUEST",
|
|
682
|
-
"TESTING_MODULE_RUN_REQUEST",
|
|
683
670
|
"TOGGLE_WHATS_NEW_NOTIFICATIONS",
|
|
684
671
|
"UNHANDLED_ERRORS_WHILE_PLAYING",
|
|
685
672
|
"UPDATE_GLOBALS",
|
|
@@ -731,6 +718,8 @@ var E = {
|
|
|
731
718
|
"experimental_useUniversalStore",
|
|
732
719
|
"internal_fullStatusStore",
|
|
733
720
|
"internal_fullTestProviderStore",
|
|
721
|
+
"internal_universalStatusStore",
|
|
722
|
+
"internal_universalTestProviderStore",
|
|
734
723
|
"isMacLike",
|
|
735
724
|
"isShortcutTaken",
|
|
736
725
|
"keyToSymbol",
|
|
@@ -782,7 +771,7 @@ var E = {
|
|
|
782
771
|
};
|
|
783
772
|
|
|
784
773
|
// src/manager/globals/globals.ts
|
|
785
|
-
var
|
|
774
|
+
var a = {
|
|
786
775
|
react: "__REACT__",
|
|
787
776
|
"react-dom": "__REACT_DOM__",
|
|
788
777
|
"react-dom/client": "__REACT_DOM_CLIENT__",
|
|
@@ -803,14 +792,14 @@ var c = {
|
|
|
803
792
|
"storybook/internal/manager-api": "__STORYBOOK_API__",
|
|
804
793
|
"storybook/internal/theming": "__STORYBOOK_THEMING__",
|
|
805
794
|
"storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__"
|
|
806
|
-
},
|
|
795
|
+
}, I = Object.keys(a);
|
|
807
796
|
|
|
808
797
|
// src/manager/globals/globals-module-info.ts
|
|
809
|
-
var
|
|
798
|
+
var R = I.reduce(
|
|
810
799
|
(o, e) => (o[e] = {
|
|
811
800
|
type: "esm",
|
|
812
|
-
varName:
|
|
813
|
-
namedExports:
|
|
801
|
+
varName: a[e],
|
|
802
|
+
namedExports: l[e],
|
|
814
803
|
defaultExport: !0
|
|
815
804
|
}, o),
|
|
816
805
|
{}
|
|
@@ -329,6 +329,8 @@ var n = {
|
|
|
329
329
|
"experimental_useUniversalStore",
|
|
330
330
|
"internal_fullStatusStore",
|
|
331
331
|
"internal_fullTestProviderStore",
|
|
332
|
+
"internal_universalStatusStore",
|
|
333
|
+
"internal_universalTestProviderStore",
|
|
332
334
|
"isMacLike",
|
|
333
335
|
"isShortcutTaken",
|
|
334
336
|
"keyToSymbol",
|
|
@@ -479,6 +481,7 @@ var n = {
|
|
|
479
481
|
"Bar",
|
|
480
482
|
"Blockquote",
|
|
481
483
|
"Button",
|
|
484
|
+
"Checkbox",
|
|
482
485
|
"ClipboardCode",
|
|
483
486
|
"Code",
|
|
484
487
|
"DL",
|
|
@@ -496,8 +499,6 @@ var n = {
|
|
|
496
499
|
"H6",
|
|
497
500
|
"HR",
|
|
498
501
|
"IconButton",
|
|
499
|
-
"IconButtonSkeleton",
|
|
500
|
-
"Icons",
|
|
501
502
|
"Img",
|
|
502
503
|
"LI",
|
|
503
504
|
"Link",
|
|
@@ -516,7 +517,6 @@ var n = {
|
|
|
516
517
|
"Span",
|
|
517
518
|
"StorybookIcon",
|
|
518
519
|
"StorybookLogo",
|
|
519
|
-
"Symbols",
|
|
520
520
|
"SyntaxHighlighter",
|
|
521
521
|
"TT",
|
|
522
522
|
"TabBar",
|
|
@@ -536,7 +536,6 @@ var n = {
|
|
|
536
536
|
"components",
|
|
537
537
|
"createCopyToClipboardFunction",
|
|
538
538
|
"getStoryHref",
|
|
539
|
-
"icons",
|
|
540
539
|
"interleaveSeparators",
|
|
541
540
|
"nameSpaceClassNames",
|
|
542
541
|
"resetComponents",
|
|
@@ -594,12 +593,6 @@ var n = {
|
|
|
594
593
|
"STORY_THREW_EXCEPTION",
|
|
595
594
|
"STORY_UNCHANGED",
|
|
596
595
|
"TELEMETRY_ERROR",
|
|
597
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_REQUEST",
|
|
598
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
|
|
599
|
-
"TESTING_MODULE_CRASH_REPORT",
|
|
600
|
-
"TESTING_MODULE_PROGRESS_REPORT",
|
|
601
|
-
"TESTING_MODULE_RUN_ALL_REQUEST",
|
|
602
|
-
"TESTING_MODULE_RUN_REQUEST",
|
|
603
596
|
"TOGGLE_WHATS_NEW_NOTIFICATIONS",
|
|
604
597
|
"UNHANDLED_ERRORS_WHILE_PLAYING",
|
|
605
598
|
"UPDATE_GLOBALS",
|
|
@@ -658,12 +651,6 @@ var n = {
|
|
|
658
651
|
"STORY_THREW_EXCEPTION",
|
|
659
652
|
"STORY_UNCHANGED",
|
|
660
653
|
"TELEMETRY_ERROR",
|
|
661
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_REQUEST",
|
|
662
|
-
"TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
|
|
663
|
-
"TESTING_MODULE_CRASH_REPORT",
|
|
664
|
-
"TESTING_MODULE_PROGRESS_REPORT",
|
|
665
|
-
"TESTING_MODULE_RUN_ALL_REQUEST",
|
|
666
|
-
"TESTING_MODULE_RUN_REQUEST",
|
|
667
654
|
"TOGGLE_WHATS_NEW_NOTIFICATIONS",
|
|
668
655
|
"UNHANDLED_ERRORS_WHILE_PLAYING",
|
|
669
656
|
"UPDATE_GLOBALS",
|
|
@@ -715,6 +702,8 @@ var n = {
|
|
|
715
702
|
"experimental_useUniversalStore",
|
|
716
703
|
"internal_fullStatusStore",
|
|
717
704
|
"internal_fullTestProviderStore",
|
|
705
|
+
"internal_universalStatusStore",
|
|
706
|
+
"internal_universalTestProviderStore",
|
|
718
707
|
"isMacLike",
|
|
719
708
|
"isShortcutTaken",
|
|
720
709
|
"keyToSymbol",
|
|
@@ -790,7 +779,7 @@ var o = {
|
|
|
790
779
|
}, r = Object.keys(o);
|
|
791
780
|
|
|
792
781
|
// src/manager/globals/globals-module-info.ts
|
|
793
|
-
var
|
|
782
|
+
var E = r.reduce(
|
|
794
783
|
(t, e) => (t[e] = {
|
|
795
784
|
type: "esm",
|
|
796
785
|
varName: o[e],
|
|
@@ -800,5 +789,5 @@ var _ = r.reduce(
|
|
|
800
789
|
{}
|
|
801
790
|
);
|
|
802
791
|
export {
|
|
803
|
-
|
|
792
|
+
E as globalsModuleInfoMap
|
|
804
793
|
};
|