storybook 9.1.0-alpha.6 → 9.1.0-alpha.7

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 (83) hide show
  1. package/assets/browser/favicon-wrapper.svg +46 -0
  2. package/assets/browser/favicon.svg +1 -1
  3. package/dist/bin/index.cjs +43 -43
  4. package/dist/bin/index.js +43 -43
  5. package/dist/cli/bin/index.cjs +513 -513
  6. package/dist/cli/bin/index.js +535 -535
  7. package/dist/cli/index.cjs +2454 -2453
  8. package/dist/cli/index.d.ts +10 -3
  9. package/dist/cli/index.js +2436 -2435
  10. package/dist/common/index.cjs +64 -61
  11. package/dist/common/index.d.ts +9 -3
  12. package/dist/common/index.js +64 -61
  13. package/dist/components/index.cjs +1459 -1447
  14. package/dist/components/index.d.ts +1 -0
  15. package/dist/components/index.js +407 -394
  16. package/dist/core-server/index.cjs +5833 -5819
  17. package/dist/core-server/index.d.ts +4 -1
  18. package/dist/core-server/index.js +4848 -4835
  19. package/dist/core-server/presets/common-manager.js +3403 -3332
  20. package/dist/core-server/presets/common-preset.cjs +1831 -1837
  21. package/dist/core-server/presets/common-preset.js +1787 -1792
  22. package/dist/csf/index.cjs +2536 -736
  23. package/dist/csf/index.d.ts +250 -9
  24. package/dist/csf/index.js +2558 -749
  25. package/dist/instrumenter/index.cjs +1150 -1099
  26. package/dist/instrumenter/index.d.ts +1 -0
  27. package/dist/instrumenter/index.js +1261 -1214
  28. package/dist/manager/globals-runtime.js +21313 -23957
  29. package/dist/manager/runtime.js +3713 -3534
  30. package/dist/manager-api/index.cjs +3 -3
  31. package/dist/manager-api/index.d.ts +8 -531
  32. package/dist/manager-api/index.js +3 -3
  33. package/dist/node-logger/index.cjs +1620 -1620
  34. package/dist/node-logger/index.js +1619 -1619
  35. package/dist/preview/runtime.js +13337 -16032
  36. package/dist/preview-api/index.cjs +273 -271
  37. package/dist/preview-api/index.d.ts +4 -1
  38. package/dist/preview-api/index.js +14 -12
  39. package/dist/telemetry/index.cjs +500 -500
  40. package/dist/telemetry/index.js +478 -478
  41. package/dist/test/index.cjs +9136 -9815
  42. package/dist/test/index.js +8339 -9025
  43. package/dist/types/index.d.ts +12 -12
  44. package/package.json +5 -196
  45. package/dist/actions/preview.cjs +0 -159
  46. package/dist/actions/preview.d.ts +0 -45
  47. package/dist/actions/preview.js +0 -149
  48. package/dist/backgrounds/index.cjs +0 -16
  49. package/dist/backgrounds/index.d.ts +0 -2
  50. package/dist/backgrounds/index.js +0 -0
  51. package/dist/backgrounds/preview.cjs +0 -143
  52. package/dist/backgrounds/preview.d.ts +0 -53
  53. package/dist/backgrounds/preview.js +0 -127
  54. package/dist/component-testing/index.cjs +0 -23
  55. package/dist/component-testing/index.d.ts +0 -3
  56. package/dist/component-testing/index.js +0 -5
  57. package/dist/component-testing/preview.cjs +0 -40
  58. package/dist/component-testing/preview.d.ts +0 -5
  59. package/dist/component-testing/preview.js +0 -25
  60. package/dist/controls/preview.cjs +0 -26
  61. package/dist/controls/preview.d.ts +0 -43
  62. package/dist/controls/preview.js +0 -9
  63. package/dist/highlight/preview.cjs +0 -590
  64. package/dist/highlight/preview.d.ts +0 -20
  65. package/dist/highlight/preview.js +0 -575
  66. package/dist/measure/index.cjs +0 -16
  67. package/dist/measure/index.d.ts +0 -2
  68. package/dist/measure/index.js +0 -0
  69. package/dist/measure/preview.cjs +0 -466
  70. package/dist/measure/preview.d.ts +0 -25
  71. package/dist/measure/preview.js +0 -450
  72. package/dist/outline/index.cjs +0 -16
  73. package/dist/outline/index.d.ts +0 -2
  74. package/dist/outline/index.js +0 -0
  75. package/dist/outline/preview.cjs +0 -518
  76. package/dist/outline/preview.d.ts +0 -25
  77. package/dist/outline/preview.js +0 -486
  78. package/dist/test/preview.cjs +0 -73
  79. package/dist/test/preview.d.ts +0 -17
  80. package/dist/test/preview.js +0 -66
  81. package/dist/viewport/preview.cjs +0 -35
  82. package/dist/viewport/preview.d.ts +0 -62
  83. package/dist/viewport/preview.js +0 -19
@@ -1,62 +0,0 @@
1
- import * as storybook_internal_csf from 'storybook/internal/csf';
2
-
3
- interface Viewport {
4
- name: string;
5
- styles: ViewportStyles;
6
- type?: 'desktop' | 'mobile' | 'tablet' | 'other';
7
- }
8
- interface ViewportStyles {
9
- height: string;
10
- width: string;
11
- }
12
- type GlobalState = {
13
- /**
14
- * When set, the viewport is applied and cannot be changed using the toolbar. Must match the key
15
- * of one of the available viewports.
16
- */
17
- value: string | undefined;
18
- /**
19
- * When true the viewport applied will be rotated 90°, e.g. it will rotate from portrait to
20
- * landscape orientation.
21
- */
22
- isRotated?: boolean;
23
- };
24
- interface ViewportParameters {
25
- /**
26
- * Viewport configuration
27
- *
28
- * @see https://storybook.js.org/docs/essentials/viewport#parameters
29
- */
30
- viewport?: {
31
- /**
32
- * Remove the addon panel and disable the addon's behavior . If you wish to turn off this addon
33
- * for the entire Storybook, you should do so when registering addon-essentials
34
- *
35
- * @see https://storybook.js.org/docs/essentials/index#disabling-addons
36
- */
37
- disable?: boolean;
38
- /**
39
- * Specify the available viewports. The width and height values must include the unit, e.g.
40
- * '320px'.
41
- */
42
- options: Record<string, Viewport>;
43
- };
44
- }
45
- interface ViewportGlobals {
46
- /**
47
- * Viewport configuration
48
- *
49
- * @see https://storybook.js.org/docs/essentials/viewport#globals
50
- */
51
- viewport?: GlobalState | GlobalState['value'];
52
- }
53
- interface ViewportTypes {
54
- parameters: ViewportParameters;
55
- globals: ViewportGlobals;
56
- }
57
-
58
- declare const initialGlobals: Record<string, GlobalState>;
59
-
60
- declare const _default: () => storybook_internal_csf.PreviewAddon<ViewportTypes>;
61
-
62
- export { type ViewportTypes, _default as default, initialGlobals };
@@ -1,19 +0,0 @@
1
- var i = Object.defineProperty;
2
- var o = (p, r) => i(p, "name", { value: r, configurable: !0 });
3
-
4
- // src/viewport/preview.ts
5
- import { definePreviewAddon as s } from "storybook/internal/csf";
6
-
7
- // src/viewport/constants.ts
8
- var t = "storybook/viewport", e = "viewport", a = `${t}/panel`, d = `${t}/tool`;
9
-
10
- // src/viewport/preview.ts
11
- var l = {
12
- [e]: { value: void 0, isRotated: !1 }
13
- }, A = /* @__PURE__ */ o(() => s({
14
- initialGlobals: l
15
- }), "default");
16
- export {
17
- A as default,
18
- l as initialGlobals
19
- };