Skip to content

StorySourceAdapter

Defined in: packages/core/src/capture/adapter.ts:121

Adapter that discovers and renders stories from a Storybook build.

name: string

Defined in: packages/core/src/capture/adapter.ts:122


optional screenshotSelector?: string

Defined in: packages/core/src/capture/adapter.ts:125

buildUrl(baseUrl, storyId, globals?): string

Defined in: packages/core/src/capture/adapter.ts:124

string

string

Record<string, unknown>

string


discover(source, options?): Promise<StoryEntry[]>

Defined in: packages/core/src/capture/adapter.ts:123

string

DiscoverOptions

Promise<StoryEntry[]>


optional loadDependencyGraph(sourceDir): Promise<DepGraph | null>

Defined in: packages/core/src/capture/adapter.ts:132

Optional hook loading the module dependency graph of an extracted build, enabling affected capture (render only stories downstream of a change). Absent (or resolving null) means the source cannot be traced, so the orchestrator renders every story.

string

Promise<DepGraph | null>


optional waitForReady(page): Promise<void>

Defined in: packages/core/src/capture/adapter.ts:139

Optional hook invoked after navigation and before the screenshot sequence, letting a custom source wait until it is ready to capture. The built-in Storybook adapter leaves this undefined (rendered via iframe). See ADR 0005.

CapturePage

Promise<void>