storybook/lib/ui/src/core/initial-state.js
2018-10-25 08:33:57 +02:00

40 lines
797 B
JavaScript

import { themes } from '@storybook/components';
// Returns the initialState of the app
export default () => ({
stories: [],
storiesHash: {},
selectedId: null,
shortcutOptions: {
full: false,
nav: true,
panel: 'right',
enableShortcuts: true,
},
uiOptions: {
name: 'STORYBOOK',
url: 'https://github.com/storybooks/storybook',
sortStoriesByKind: false,
sidebarAnimations: true,
theme: themes.normal,
},
ui: {
isFullscreen: false,
showPanel: true,
showNav: true,
panelPosition: 'bottom',
},
customQueryParams: {},
notifications: [
{
id: 'update',
level: 2,
link: '/settings/about',
icon: '🎉',
content: `There's a new version available: 4.0.0`,
},
],
selectedPanelValue: null,
});