storybook 9.0.0-beta.5 → 9.0.0-beta.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 (36) hide show
  1. package/dist/bin/index.cjs +44 -44
  2. package/dist/bin/index.js +44 -44
  3. package/dist/builder-manager/index.cjs +15 -5
  4. package/dist/builder-manager/index.js +15 -4
  5. package/dist/cli/bin/index.cjs +1 -1
  6. package/dist/cli/bin/index.js +1 -1
  7. package/dist/cli/index.cjs +1 -1
  8. package/dist/cli/index.js +1 -1
  9. package/dist/client-logger/index.d.ts +2 -1
  10. package/dist/common/index.cjs +445 -445
  11. package/dist/common/index.d.ts +1 -1
  12. package/dist/common/index.js +424 -424
  13. package/dist/core-server/index.cjs +15 -11
  14. package/dist/core-server/index.d.ts +22 -22
  15. package/dist/core-server/index.js +15 -10
  16. package/dist/core-server/presets/common-manager.js +8 -8
  17. package/dist/core-server/presets/common-preset.cjs +4 -4
  18. package/dist/core-server/presets/common-preset.js +4 -4
  19. package/dist/manager/globals-runtime.js +9190 -9167
  20. package/dist/manager/runtime.js +1151 -1149
  21. package/dist/manager-api/index.cjs +1046 -1023
  22. package/dist/manager-api/index.d.ts +12 -1
  23. package/dist/manager-api/index.js +649 -626
  24. package/dist/preview/runtime.js +1832 -1832
  25. package/dist/preview-api/index.cjs +8 -8
  26. package/dist/preview-api/index.js +8 -8
  27. package/dist/test/index.d.ts +2 -6
  28. package/dist/test/index.js +2818 -2818
  29. package/dist/test/preview.cjs +648 -648
  30. package/dist/test/preview.js +837 -837
  31. package/dist/test/spy.cjs +112 -112
  32. package/dist/test/spy.d.ts +2 -6
  33. package/dist/test/spy.js +104 -104
  34. package/dist/types/index.cjs +4 -4
  35. package/dist/types/index.d.ts +2687 -2594
  36. package/package.json +7 -6
@@ -2,7 +2,7 @@ import React, { FC, ReactNode, ReactElement, Component } from 'react';
2
2
  import { Channel, Listener as Listener$1 } from 'storybook/internal/channels';
3
3
  export { Listener as ChannelListener } from 'storybook/internal/channels';
4
4
  import { RouterData, NavigateOptions } from 'storybook/internal/router';
5
- import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_PanelPositions, API_Layout, API_UI, API_Notification, API_IframeRenderer, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, API_Refs, StoryId, API_Settings, API_HashEntry, API_ViewMode, API_LeafEntry, API_PreparedStoryIndex, API_StoryEntry, Args, API_IndexHash, API_DocsEntry, API_FilterFunction, API_LoadedRefData, API_Version, API_Versions, API_UnknownEntries, API_OptionsData, Parameters, ArgTypes, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
5
+ import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_PanelPositions, API_Layout, API_LayoutCustomisations, API_UI, API_Notification, API_IframeRenderer, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, API_Refs, StoryId, API_Settings, API_HashEntry, API_ViewMode, API_LeafEntry, API_PreparedStoryIndex, API_StoryEntry, Args, API_IndexHash, API_DocsEntry, API_FilterFunction, API_LoadedRefData, API_Version, API_Versions, API_UnknownEntries, API_OptionsData, Parameters, ArgTypes, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
6
6
  export { Addon_Type as Addon, API_ComponentEntry as ComponentEntry, API_ComposedRef as ComposedRef, API_DocsEntry as DocsEntry, API_GroupEntry as GroupEntry, API_HashEntry as HashEntry, API_IndexHash as IndexHash, API_LeafEntry as LeafEntry, API_Refs as Refs, API_RootEntry as RootEntry, API_IndexHash as StoriesHash, API_StoryEntry as StoryEntry } from 'storybook/internal/types';
7
7
  import { ThemeVars } from 'storybook/theming';
8
8
  import { toId, StoryId as StoryId$1 } from 'storybook/internal/csf';
@@ -211,6 +211,7 @@ interface SubAPI$a {
211
211
 
212
212
  interface SubState$8 {
213
213
  layout: API_Layout;
214
+ layoutCustomisations: API_LayoutCustomisations;
214
215
  ui: API_UI;
215
216
  selectedPanel: string | undefined;
216
217
  theme: ThemeVars;
@@ -265,6 +266,16 @@ interface SubAPI$9 {
265
266
  getIsPanelShown: () => boolean;
266
267
  /** GetIsNavShown - Returns the current visibility of the navigation bar in the Storybook UI. */
267
268
  getIsNavShown: () => boolean;
269
+ /**
270
+ * GetShowToolbarWithCustomisations - Returns the current visibility of the toolbar, taking into
271
+ * account customisations requested by the end user via a layoutCustomisations function.
272
+ */
273
+ getShowToolbarWithCustomisations: (showToolbar: boolean) => boolean;
274
+ /**
275
+ * GetNavSizeWithCustomisations - Returns the size to apply to the sidebar/nav, taking into
276
+ * account customisations requested by the end user via a layoutCustomisations function.
277
+ */
278
+ getNavSizeWithCustomisations: (navSize: number) => number;
268
279
  }
269
280
 
270
281
  interface SubState$7 {