storybook 9.0.0-beta.1 → 9.0.0-beta.10

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 (78) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/actions/decorator.js +49 -52
  3. package/dist/actions/index.cjs +42 -44
  4. package/dist/actions/index.js +37 -40
  5. package/dist/actions/preview.cjs +44 -46
  6. package/dist/actions/preview.js +24 -27
  7. package/dist/babel/index.cjs +15060 -14974
  8. package/dist/babel/index.d.ts +37 -18
  9. package/dist/babel/index.js +15097 -15011
  10. package/dist/bin/index.cjs +44 -44
  11. package/dist/bin/index.js +44 -44
  12. package/dist/builder-manager/index.cjs +303 -283
  13. package/dist/builder-manager/index.js +545 -524
  14. package/dist/channels/index.js +919 -941
  15. package/dist/cli/bin/index.cjs +4185 -737
  16. package/dist/cli/bin/index.js +4199 -749
  17. package/dist/cli/index.cjs +26712 -23192
  18. package/dist/cli/index.d.ts +974 -1
  19. package/dist/cli/index.js +26765 -23243
  20. package/dist/client-logger/index.d.ts +2 -1
  21. package/dist/common/index.cjs +4785 -4693
  22. package/dist/common/index.d.ts +8 -2
  23. package/dist/common/index.js +5165 -5069
  24. package/dist/components/index.cjs +7905 -5600
  25. package/dist/components/index.d.ts +12 -12
  26. package/dist/components/index.js +4713 -3786
  27. package/dist/core-server/index.cjs +6793 -6702
  28. package/dist/core-server/index.d.ts +22 -22
  29. package/dist/core-server/index.js +6943 -6846
  30. package/dist/core-server/presets/common-manager.js +4526 -3375
  31. package/dist/core-server/presets/common-preset.cjs +2303 -2236
  32. package/dist/core-server/presets/common-preset.js +2391 -2320
  33. package/dist/docs-tools/index.cjs +484 -464
  34. package/dist/docs-tools/index.js +781 -768
  35. package/dist/highlight/index.cjs +19 -18
  36. package/dist/highlight/index.d.ts +4 -5
  37. package/dist/highlight/index.js +3 -2
  38. package/dist/highlight/preview.cjs +314 -310
  39. package/dist/highlight/preview.js +296 -292
  40. package/dist/instrumenter/index.cjs +561 -559
  41. package/dist/instrumenter/index.js +1564 -1516
  42. package/dist/manager/globals-module-info.cjs +1 -0
  43. package/dist/manager/globals-module-info.js +1 -0
  44. package/dist/manager/globals-runtime.js +21490 -21341
  45. package/dist/manager/runtime.js +5011 -4777
  46. package/dist/manager-api/index.cjs +2400 -2321
  47. package/dist/manager-api/index.d.ts +12 -1
  48. package/dist/manager-api/index.js +1951 -1903
  49. package/dist/manager-errors.js +37 -41
  50. package/dist/node-logger/index.cjs +25 -25
  51. package/dist/node-logger/index.js +25 -25
  52. package/dist/preview/runtime.js +14090 -14076
  53. package/dist/preview-api/index.cjs +1282 -1262
  54. package/dist/preview-api/index.js +1357 -1353
  55. package/dist/preview-errors.js +152 -173
  56. package/dist/router/index.cjs +1366 -1347
  57. package/dist/router/index.js +594 -575
  58. package/dist/server-errors.cjs +192 -177
  59. package/dist/server-errors.d.ts +11 -1
  60. package/dist/server-errors.js +173 -158
  61. package/dist/telemetry/index.cjs +4934 -1445
  62. package/dist/telemetry/index.d.ts +2 -1
  63. package/dist/telemetry/index.js +4966 -1475
  64. package/dist/test/index.cjs +69 -70
  65. package/dist/test/index.d.ts +1218 -80
  66. package/dist/test/index.js +9760 -9850
  67. package/dist/test/preview.cjs +664 -664
  68. package/dist/test/preview.js +3619 -3679
  69. package/dist/test/spy.cjs +112 -112
  70. package/dist/test/spy.d.ts +2 -6
  71. package/dist/test/spy.js +104 -104
  72. package/dist/theming/create.cjs +2244 -79
  73. package/dist/theming/create.js +951 -67
  74. package/dist/theming/index.cjs +3209 -1067
  75. package/dist/theming/index.js +1816 -947
  76. package/dist/types/index.cjs +4 -4
  77. package/dist/types/index.d.ts +2687 -2593
  78. package/package.json +13 -21
@@ -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 {