storybook 9.0.0-alpha.11 → 9.0.0-alpha.12

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.
Files changed (50) hide show
  1. package/bin/index.cjs +2 -2
  2. package/dist/actions/manager.js +150 -151
  3. package/dist/actions/preview.d.ts +0 -1
  4. package/dist/bin/index.cjs +70 -74
  5. package/dist/bin/index.js +59 -63
  6. package/dist/channels/index.cjs +17 -17
  7. package/dist/channels/index.js +3 -3
  8. package/dist/cli/bin/index.cjs +1 -1
  9. package/dist/cli/bin/index.js +1 -1
  10. package/dist/cli/index.cjs +1904 -1907
  11. package/dist/cli/index.d.ts +3 -7
  12. package/dist/cli/index.js +734 -737
  13. package/dist/common/index.cjs +57 -65
  14. package/dist/common/index.d.ts +1 -5
  15. package/dist/common/index.js +57 -65
  16. package/dist/component-testing/manager.js +564 -537
  17. package/dist/components/index.cjs +5514 -5781
  18. package/dist/components/index.d.ts +3 -254
  19. package/dist/components/index.js +7295 -13770
  20. package/dist/controls/manager.js +989 -941
  21. package/dist/controls/preview.d.ts +0 -1
  22. package/dist/core-events/index.cjs +42 -45
  23. package/dist/core-events/index.d.ts +1 -4
  24. package/dist/core-events/index.js +38 -41
  25. package/dist/core-server/index.cjs +2730 -2721
  26. package/dist/core-server/index.d.ts +32 -23
  27. package/dist/core-server/index.js +822 -813
  28. package/dist/core-server/presets/common-preset.cjs +1122 -1098
  29. package/dist/core-server/presets/common-preset.js +1228 -1204
  30. package/dist/csf/index.d.ts +0 -2
  31. package/dist/csf-tools/index.cjs +0 -8
  32. package/dist/csf-tools/index.d.ts +0 -4
  33. package/dist/csf-tools/index.js +0 -8
  34. package/dist/manager/globals-module-info.cjs +15 -17
  35. package/dist/manager/globals-module-info.js +4 -6
  36. package/dist/manager/globals-runtime.js +22565 -22933
  37. package/dist/manager/runtime.js +4958 -4440
  38. package/dist/manager-api/index.cjs +1169 -1152
  39. package/dist/manager-api/index.d.ts +105 -96
  40. package/dist/manager-api/index.js +810 -795
  41. package/dist/preview/runtime.js +11617 -11745
  42. package/dist/preview-api/index.cjs +1101 -1217
  43. package/dist/preview-api/index.d.ts +8 -21
  44. package/dist/preview-api/index.js +1459 -1576
  45. package/dist/telemetry/index.d.ts +1 -1
  46. package/dist/types/index.cjs +14 -15
  47. package/dist/types/index.d.ts +306 -65
  48. package/dist/types/index.js +1 -2
  49. package/dist/viewport/preview.d.ts +0 -1
  50. package/package.json +4 -4
@@ -589,8 +589,6 @@ interface ProjectAnnotations<TRenderer extends Renderer = Renderer, TArgs = Args
589
589
  * reverse order of initialization.
590
590
  */
591
591
  beforeAll?: BeforeAll;
592
- /** @deprecated Project `globals` renamed to `initiaGlobals` */
593
- globals?: Globals;
594
592
  initialGlobals?: Globals;
595
593
  globalTypes?: GlobalTypes;
596
594
  applyDecorators?: DecoratorApplicator<TRenderer, Args>;
@@ -244,14 +244,6 @@ var D = /* @__PURE__ */ p((s, e) => {
244
244
  static {
245
245
  p(this, "CsfFile");
246
246
  }
247
- /** @deprecated Use `_options.fileName` instead */
248
- get _fileName() {
249
- return this._options.fileName;
250
- }
251
- /** @deprecated Use `_options.makeTitle` instead */
252
- get _makeTitle() {
253
- return this._options.makeTitle;
254
- }
255
247
  _parseTitle(e) {
256
248
  let t = c.types.isIdentifier(e) ? P(e.name, this._ast.program) : e;
257
249
  if (c.types.isStringLiteral(t))
@@ -69,10 +69,6 @@ declare class CsfFile {
69
69
  _templates: Record<string, types.Expression>;
70
70
  _namedExportsOrder?: string[];
71
71
  imports: string[];
72
- /** @deprecated Use `_options.fileName` instead */
73
- get _fileName(): string | undefined;
74
- /** @deprecated Use `_options.makeTitle` instead */
75
- get _makeTitle(): (userTitle: string) => string;
76
72
  constructor(ast: types.File, options: CsfOptions, file: BabelFile);
77
73
  _parseTitle(value: types.Node): string;
78
74
  _parseMeta(declaration: types.ObjectExpression, program: types.Program): void;
@@ -223,14 +223,6 @@ var I = /* @__PURE__ */ p((s, e) => {
223
223
  static {
224
224
  p(this, "CsfFile");
225
225
  }
226
- /** @deprecated Use `_options.fileName` instead */
227
- get _fileName() {
228
- return this._options.fileName;
229
- }
230
- /** @deprecated Use `_options.makeTitle` instead */
231
- get _makeTitle() {
232
- return this._options.makeTitle;
233
- }
234
226
  _parseTitle(e) {
235
227
  let i = c.isIdentifier(e) ? P(e.name, this._ast.program) : e;
236
228
  if (c.isStringLiteral(i))
@@ -6,23 +6,23 @@ var S = Object.prototype.hasOwnProperty;
6
6
  var T = (o, e) => {
7
7
  for (var n in e)
8
8
  r(o, n, { get: e[n], enumerable: !0 });
9
- }, s = (o, e, n, a) => {
9
+ }, s = (o, e, n, c) => {
10
10
  if (e && typeof e == "object" || typeof e == "function")
11
11
  for (let t of I(e))
12
- !S.call(o, t) && t !== n && r(o, t, { get: () => e[t], enumerable: !(a = _(e, t)) || a.enumerable });
12
+ !S.call(o, t) && t !== n && r(o, t, { get: () => e[t], enumerable: !(c = _(e, t)) || c.enumerable });
13
13
  return o;
14
14
  };
15
- var R = (o) => s(r({}, "__esModule", { value: !0 }), o);
15
+ var i = (o) => s(r({}, "__esModule", { value: !0 }), o);
16
16
 
17
17
  // src/manager/globals-module-info.ts
18
18
  var A = {};
19
19
  T(A, {
20
- globalsModuleInfoMap: () => i
20
+ globalsModuleInfoMap: () => R
21
21
  });
22
- module.exports = R(A);
22
+ module.exports = i(A);
23
23
 
24
24
  // src/manager/globals/exports.ts
25
- var E = {
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",
@@ -512,8 +514,6 @@ var E = {
512
514
  "H6",
513
515
  "HR",
514
516
  "IconButton",
515
- "IconButtonSkeleton",
516
- "Icons",
517
517
  "Img",
518
518
  "LI",
519
519
  "Link",
@@ -532,7 +532,6 @@ var E = {
532
532
  "Span",
533
533
  "StorybookIcon",
534
534
  "StorybookLogo",
535
- "Symbols",
536
535
  "SyntaxHighlighter",
537
536
  "TT",
538
537
  "TabBar",
@@ -552,7 +551,6 @@ var E = {
552
551
  "components",
553
552
  "createCopyToClipboardFunction",
554
553
  "getStoryHref",
555
- "icons",
556
554
  "interleaveSeparators",
557
555
  "nameSpaceClassNames",
558
556
  "resetComponents",
@@ -614,7 +612,6 @@ var E = {
614
612
  "TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
615
613
  "TESTING_MODULE_CRASH_REPORT",
616
614
  "TESTING_MODULE_PROGRESS_REPORT",
617
- "TESTING_MODULE_RUN_ALL_REQUEST",
618
615
  "TESTING_MODULE_RUN_REQUEST",
619
616
  "TOGGLE_WHATS_NEW_NOTIFICATIONS",
620
617
  "UNHANDLED_ERRORS_WHILE_PLAYING",
@@ -678,7 +675,6 @@ var E = {
678
675
  "TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
679
676
  "TESTING_MODULE_CRASH_REPORT",
680
677
  "TESTING_MODULE_PROGRESS_REPORT",
681
- "TESTING_MODULE_RUN_ALL_REQUEST",
682
678
  "TESTING_MODULE_RUN_REQUEST",
683
679
  "TOGGLE_WHATS_NEW_NOTIFICATIONS",
684
680
  "UNHANDLED_ERRORS_WHILE_PLAYING",
@@ -731,6 +727,8 @@ var E = {
731
727
  "experimental_useUniversalStore",
732
728
  "internal_fullStatusStore",
733
729
  "internal_fullTestProviderStore",
730
+ "internal_universalStatusStore",
731
+ "internal_universalTestProviderStore",
734
732
  "isMacLike",
735
733
  "isShortcutTaken",
736
734
  "keyToSymbol",
@@ -782,7 +780,7 @@ var E = {
782
780
  };
783
781
 
784
782
  // src/manager/globals/globals.ts
785
- var c = {
783
+ var a = {
786
784
  react: "__REACT__",
787
785
  "react-dom": "__REACT_DOM__",
788
786
  "react-dom/client": "__REACT_DOM_CLIENT__",
@@ -803,14 +801,14 @@ var c = {
803
801
  "storybook/internal/manager-api": "__STORYBOOK_API__",
804
802
  "storybook/internal/theming": "__STORYBOOK_THEMING__",
805
803
  "storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__"
806
- }, l = Object.keys(c);
804
+ }, E = Object.keys(a);
807
805
 
808
806
  // src/manager/globals/globals-module-info.ts
809
- var i = l.reduce(
807
+ var R = E.reduce(
810
808
  (o, e) => (o[e] = {
811
809
  type: "esm",
812
- varName: c[e],
813
- namedExports: E[e],
810
+ varName: a[e],
811
+ namedExports: l[e],
814
812
  defaultExport: !0
815
813
  }, o),
816
814
  {}
@@ -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",
@@ -496,8 +498,6 @@ var n = {
496
498
  "H6",
497
499
  "HR",
498
500
  "IconButton",
499
- "IconButtonSkeleton",
500
- "Icons",
501
501
  "Img",
502
502
  "LI",
503
503
  "Link",
@@ -516,7 +516,6 @@ var n = {
516
516
  "Span",
517
517
  "StorybookIcon",
518
518
  "StorybookLogo",
519
- "Symbols",
520
519
  "SyntaxHighlighter",
521
520
  "TT",
522
521
  "TabBar",
@@ -536,7 +535,6 @@ var n = {
536
535
  "components",
537
536
  "createCopyToClipboardFunction",
538
537
  "getStoryHref",
539
- "icons",
540
538
  "interleaveSeparators",
541
539
  "nameSpaceClassNames",
542
540
  "resetComponents",
@@ -598,7 +596,6 @@ var n = {
598
596
  "TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
599
597
  "TESTING_MODULE_CRASH_REPORT",
600
598
  "TESTING_MODULE_PROGRESS_REPORT",
601
- "TESTING_MODULE_RUN_ALL_REQUEST",
602
599
  "TESTING_MODULE_RUN_REQUEST",
603
600
  "TOGGLE_WHATS_NEW_NOTIFICATIONS",
604
601
  "UNHANDLED_ERRORS_WHILE_PLAYING",
@@ -662,7 +659,6 @@ var n = {
662
659
  "TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE",
663
660
  "TESTING_MODULE_CRASH_REPORT",
664
661
  "TESTING_MODULE_PROGRESS_REPORT",
665
- "TESTING_MODULE_RUN_ALL_REQUEST",
666
662
  "TESTING_MODULE_RUN_REQUEST",
667
663
  "TOGGLE_WHATS_NEW_NOTIFICATIONS",
668
664
  "UNHANDLED_ERRORS_WHILE_PLAYING",
@@ -715,6 +711,8 @@ var n = {
715
711
  "experimental_useUniversalStore",
716
712
  "internal_fullStatusStore",
717
713
  "internal_fullTestProviderStore",
714
+ "internal_universalStatusStore",
715
+ "internal_universalTestProviderStore",
718
716
  "isMacLike",
719
717
  "isShortcutTaken",
720
718
  "keyToSymbol",