UNPKG

@andersundsehr/storybook-typo3

Version:

The one and only Storybook Renderer for TYPO3 Fluid Components

15 lines (14 loc) 635 B
import { fetchPreviewConfig, fetchRenderAction } from '@andersundsehr/storybook-typo3'; import { initGlobalsHandling } from './functions/fetchPreviewConfig'; const previewConfig = await fetchPreviewConfig(); initGlobalsHandling(previewConfig.globalTypes); export const globalTypes = previewConfig.globalTypes; export const initialGlobals = previewConfig.initialGlobals; export const parameters = { server: { // url: url + '/_storybook/', fetchStoryHtml: fetchRenderAction, }, }; const enhanceArgTypes = storyContext => storyContext.component?.argTypes || {}; export const argTypesEnhancers = [enhanceArgTypes];