From 8dd7c325ec942f419beac4989ca05fc8b87e02e5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 4 Apr 2023 12:10:51 +0800 Subject: [PATCH] Include decorators by default in source decorators --- MIGRATION.md | 5 ----- code/addons/docs/src/preview.ts | 3 --- 2 files changed, 8 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 048849f31dac..6519196547da 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -83,7 +83,6 @@ - [Dropped addon-docs manual configuration](#dropped-addon-docs-manual-configuration) - [Autoplay in docs](#autoplay-in-docs) - [Removed STORYBOOK_REACT_CLASSES global](#removed-storybook_react_classes-global) - - [parameters.docs.source.excludeDecorators defaults to true](#parametersdocssourceexcludedecorators-defaults-to-true) - [7.0 Deprecations and default changes](#70-deprecations-and-default-changes) - [storyStoreV7 enabled by default](#storystorev7-enabled-by-default) - [`Story` type deprecated](#story-type-deprecated) @@ -1618,10 +1617,6 @@ If your story depends on a play function to render correctly, _and_ you are conf This was a legacy global variable from the early days of react docgen. If you were using this variable, you can instead use docgen information which is added directly to components using `.__docgenInfo`. -#### parameters.docs.source.excludeDecorators defaults to true - -By default we don't render decorators in the Source/Canvas blocks. If you want to render decorators, you can set the parameter to `false`. - ### 7.0 Deprecations and default changes #### storyStoreV7 enabled by default diff --git a/code/addons/docs/src/preview.ts b/code/addons/docs/src/preview.ts index 22712de48159..0d1183bd0cf1 100644 --- a/code/addons/docs/src/preview.ts +++ b/code/addons/docs/src/preview.ts @@ -4,8 +4,5 @@ export const parameters: any = { const { DocsRenderer } = (await import('./DocsRenderer')) as any; return new DocsRenderer(); }, - source: { - excludeDecorators: true, - }, }, };