storybook/code/lib/preview/src/global/preview-api.ts
Norbert de Langen 6cde3ad106
fix
2022-11-03 23:14:05 +01:00

109 lines
1.8 KiB
TypeScript

/* eslint-disable no-underscore-dangle */
import type * as MODULE from '../preview-api';
const {
DocsContext,
Preview,
PreviewWeb,
composeConfigs,
simulateDOMContentLoaded,
simulatePageLoad,
ClientApi,
StoryStore,
HooksContext,
addArgTypes,
addArgTypesEnhancer,
addArgs,
addArgsEnhancer,
addDecorator,
addLoader,
addParameters,
addStepRunner,
addons,
applyHooks,
combineArgs,
combineParameters,
composeStepRunners,
composeStories,
composeStory,
decorateStory,
defaultDecorateStory,
filterArgTypes,
getQueryParam,
getQueryParams,
inferControls,
normalizeStory,
prepareStory,
sanitizeStoryContextUpdate,
setGlobalRender,
setProjectAnnotations,
sortStoriesV7,
userOrAutoTitleFromSpecifier,
makeDecorator,
start,
useArgs,
useCallback,
useChannel,
useEffect,
useGlobals,
useMemo,
useParameter,
useReducer,
useRef,
useState,
useStoryContext,
} = (globalThis as any).__STORYBOOK_MODULE_PREVIEW_API__ as typeof MODULE;
export {
DocsContext,
Preview,
PreviewWeb,
composeConfigs,
simulateDOMContentLoaded,
simulatePageLoad,
ClientApi,
StoryStore,
HooksContext,
addArgTypes,
addArgTypesEnhancer,
addArgs,
addArgsEnhancer,
addDecorator,
addLoader,
addParameters,
addStepRunner,
addons,
applyHooks,
combineArgs,
combineParameters,
composeStepRunners,
composeStories,
composeStory,
decorateStory,
defaultDecorateStory,
filterArgTypes,
getQueryParam,
getQueryParams,
inferControls,
normalizeStory,
prepareStory,
sanitizeStoryContextUpdate,
setGlobalRender,
setProjectAnnotations,
sortStoriesV7,
userOrAutoTitleFromSpecifier,
makeDecorator,
start,
useArgs,
useCallback,
useChannel,
useEffect,
useGlobals,
useMemo,
useParameter,
useReducer,
useRef,
useState,
useStoryContext,
};