diff --git a/code/lib/client-api/src/index.ts b/code/lib/client-api/src/index.ts index 976a34dec776..47018f594e7a 100644 --- a/code/lib/client-api/src/index.ts +++ b/code/lib/client-api/src/index.ts @@ -11,4 +11,6 @@ export { setGlobalRender, } from './ClientApi'; +export * from '@storybook/store'; + export * from './queryparams'; diff --git a/code/lib/store/src/hooks.ts b/code/lib/store/src/hooks.ts index cfff7934ec3b..69ad8b95e691 100644 --- a/code/lib/store/src/hooks.ts +++ b/code/lib/store/src/hooks.ts @@ -1,6 +1,37 @@ import { SHARED_STATE_CHANGED, SHARED_STATE_SET } from '@storybook/core-events'; -import { addons, useMemo, useState, useEffect, useChannel } from '@storybook/addons'; +import { + addons, + HooksContext, + applyHooks, + useMemo, + useCallback, + useRef, + useState, + useReducer, + useEffect, + useChannel, + useStoryContext, + useParameter, + useArgs, + useGlobals, +} from '@storybook/addons'; + +export { + HooksContext, + applyHooks, + useMemo, + useCallback, + useRef, + useState, + useReducer, + useEffect, + useChannel, + useStoryContext, + useParameter, + useArgs, + useGlobals, +}; export function useSharedState(sharedId: string, defaultState?: S): [S, (s: S) => void] { const channel = addons.getChannel();