Skip to content

Commit 5d0ff07

Browse files
authored
Merge pull request #32908 from storybookjs/kasper/change-examples-to-stories
React: Change examples to stories in manifests and show correct examples and prop types
2 parents 07ec72d + fcef900 commit 5d0ff07

File tree

6 files changed

+299
-143
lines changed

6 files changed

+299
-143
lines changed

code/core/src/core-server/build-static.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import { logger } from 'storybook/internal/node-logger';
1212
import { getPrecedingUpgrade, telemetry } from 'storybook/internal/telemetry';
1313
import type { BuilderOptions, CLIOptions, LoadOptions, Options } from 'storybook/internal/types';
14-
import { type ComponentManifestGenerator, type ComponentsManifest } from 'storybook/internal/types';
1514

1615
import { global } from '@storybook/global';
1716

@@ -167,7 +166,7 @@ export async function buildStaticStandalone(options: BuildStaticStandaloneOption
167166
);
168167

169168
if (features?.experimentalComponentsManifest) {
170-
const componentManifestGenerator: ComponentManifestGenerator = await presets.apply(
169+
const componentManifestGenerator = await presets.apply(
171170
'experimental_componentManifestGenerator'
172171
);
173172
const indexGenerator = await initializedStoryIndexGenerator;

code/core/src/core-server/dev-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function storybookDevServer(options: Options) {
144144
if (features?.experimentalComponentsManifest) {
145145
app.use('/manifests/components.json', async (req, res) => {
146146
try {
147-
const componentManifestGenerator: ComponentManifestGenerator = await options.presets.apply(
147+
const componentManifestGenerator = await options.presets.apply(
148148
'experimental_componentManifestGenerator'
149149
);
150150
const indexGenerator = await initializedStoryIndexGenerator;
@@ -169,7 +169,7 @@ export async function storybookDevServer(options: Options) {
169169

170170
app.get('/manifests/components.html', async (req, res) => {
171171
try {
172-
const componentManifestGenerator: ComponentManifestGenerator = await options.presets.apply(
172+
const componentManifestGenerator = await options.presets.apply(
173173
'experimental_componentManifestGenerator'
174174
);
175175
const indexGenerator = await initializedStoryIndexGenerator;

0 commit comments

Comments
 (0)