storybook 9.0.0-beta.6 → 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.
- package/dist/bin/index.cjs +44 -44
- package/dist/bin/index.js +44 -44
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/common/index.cjs +441 -441
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +420 -420
- package/dist/core-server/index.cjs +12 -8
- package/dist/core-server/index.d.ts +22 -22
- package/dist/core-server/index.js +12 -8
- package/dist/manager/globals-runtime.js +9190 -9167
- package/dist/manager/runtime.js +1151 -1149
- package/dist/manager-api/index.cjs +1046 -1023
- package/dist/manager-api/index.d.ts +12 -1
- package/dist/manager-api/index.js +649 -626
- package/dist/preview/runtime.js +1824 -1824
- package/dist/test/index.d.ts +2 -6
- package/dist/test/index.js +2818 -2818
- package/dist/test/preview.cjs +648 -648
- package/dist/test/preview.js +837 -837
- package/dist/test/spy.cjs +112 -112
- package/dist/test/spy.d.ts +2 -6
- package/dist/test/spy.js +104 -104
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.ts +2687 -2594
- package/package.json +1 -1
|
@@ -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 {
|