diff --git a/.oxfmtrc.json b/.oxfmtrc.json index fa3458fee14e..69973902038b 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -30,6 +30,7 @@ "code/lib/codemod/src/transforms/__testfixtures__", "code/frameworks/angular/template/**", "code/lib/eslint-plugin", + "docs/versions/*.json", ".prettierrc", "test-storybooks", "*.yml", diff --git a/CHANGELOG.md b/CHANGELOG.md index bebcb8ad665f..90932989236e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 10.3.5 + +- Core: Disable component manifest by default - [#34408](https://github.com/storybookjs/storybook/pull/34408), thanks @yannbf! + +> [!NOTE] +> [Version >=0.5.0 of `@storybook/addon-mcp`](https://github.com/storybookjs/mcp/releases/tag/%40storybook%2Faddon-mcp%400.5.0) enables component manifests again. If you're upgrading Storybook from version >= 10.3.0 to >= 10.3.5 and are using the MCP addon, you should also upgrade `@storybook/addon-mcp` to keep the docs toolset in the MCP server. + ## 10.3.4 - Addon-a11y: Clear status transition timer on unmount to prevent test flake - [#34203](https://github.com/storybookjs/storybook/pull/34203), thanks @mixelburg! diff --git a/code/addons/docs/docs/props-tables.md b/code/addons/docs/docs/props-tables.md index 8fd7d0fe07bc..cf01c8c0ecba 100644 --- a/code/addons/docs/docs/props-tables.md +++ b/code/addons/docs/docs/props-tables.md @@ -90,7 +90,7 @@ Props tables are automatically inferred from your components and stories, but so Props tables are rendered from an internal data structure called `ArgTypes`. When you declare a story's `component` metadata, Docs automatically extracts `ArgTypes` based on the component's properties. -You can can customize what's shown in the props table by [customizing the `ArgTypes` data](#customizing-argtypes). This is currently available for `DocsPage` and `` construct, but not for the `` construct, +You can customize what's shown in the props table by [customizing the `ArgTypes` data](#customizing-argtypes). This is currently available for `DocsPage` and `` construct, but not for the `` construct, ### Customizing ArgTypes diff --git a/code/core/src/core-server/presets/common-preset.ts b/code/core/src/core-server/presets/common-preset.ts index c3479f2e42b1..6ec5a6a20343 100644 --- a/code/core/src/core-server/presets/common-preset.ts +++ b/code/core/src/core-server/presets/common-preset.ts @@ -216,7 +216,7 @@ export const features: PresetProperty<'features'> = async (existing) => ({ outline: true, measure: true, sidebarOnboardingChecklist: true, - componentsManifest: true, + componentsManifest: false, }); export const csfIndexer: Indexer = { diff --git a/code/core/src/csf-tools/README.md b/code/core/src/csf-tools/README.md index 220294de2b92..064ce3c717ad 100644 --- a/code/core/src/csf-tools/README.md +++ b/code/core/src/csf-tools/README.md @@ -6,7 +6,7 @@ An experimental library to read, analyze, transform, and write CSF programmatica - Analyze - Extract its metadata & stories based on the Babel AST - Write - Write the AST back to a file -It can can parse MDX into CSF. +It can parse MDX into CSF. Coming soon: diff --git a/code/core/src/shared/universal-store/index.ts b/code/core/src/shared/universal-store/index.ts index 37a8ebef9697..216fbefbb1f0 100644 --- a/code/core/src/shared/universal-store/index.ts +++ b/code/core/src/shared/universal-store/index.ts @@ -216,7 +216,7 @@ export class UniversalStore< /** * The syncing construct is used to keep track of if the instance's state has been synced with the * other instances. A leader will immediately have the promise resolved. A follower will initially - * be in a PENDING state, and resolve the the leader has sent the existing state, or reject if no + * be in a PENDING state, and resolve when the leader has sent the existing state, or reject if no * leader has responded before the timeout. */ private syncing?: { diff --git a/code/core/src/types/modules/core-common.ts b/code/core/src/types/modules/core-common.ts index cc399717e7d2..75b35132d159 100644 --- a/code/core/src/types/modules/core-common.ts +++ b/code/core/src/types/modules/core-common.ts @@ -510,7 +510,7 @@ export interface StorybookConfigRaw { /** * Enable component manifest generation for MCP and other tooling integrations. * - * @default true + * @default false */ componentsManifest?: boolean; diff --git a/code/package.json b/code/package.json index bc07e8859d9f..66f0028ef808 100644 --- a/code/package.json +++ b/code/package.json @@ -195,5 +195,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "10.3.5" } diff --git a/docs/_snippets/main-config-features-components-manifest.md b/docs/_snippets/main-config-features-components-manifest.md index 367608c2e165..f289426aa358 100644 --- a/docs/_snippets/main-config-features-components-manifest.md +++ b/docs/_snippets/main-config-features-components-manifest.md @@ -4,7 +4,7 @@ export default { framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], features: { - componentsManifest: false, + componentsManifest: true, }, }; ``` @@ -17,7 +17,7 @@ const config: StorybookConfig = { framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], features: { - componentsManifest: false, + componentsManifest: true, }, }; @@ -32,7 +32,7 @@ export default defineMain({ framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], features: { - componentsManifest: false, + componentsManifest: true, }, }); ``` @@ -47,7 +47,7 @@ export default defineMain({ framework: '@storybook/your-framework', stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], features: { - componentsManifest: false, + componentsManifest: true, }, }); ``` diff --git a/docs/api/main-config/main-config-features.mdx b/docs/api/main-config/main-config-features.mdx index 6f7d63370219..4cf9e31faa90 100644 --- a/docs/api/main-config/main-config-features.mdx +++ b/docs/api/main-config/main-config-features.mdx @@ -127,7 +127,7 @@ Enable the [Backgrounds](../../essentials/backgrounds.mdx) feature. Type: `boolean` -Default: `true` +Default: `false` Generate [manifests](../../ai/manifests.mdx), used by the [MCP server](../../ai/mcp/overview.mdx). diff --git a/docs/versions/latest.json b/docs/versions/latest.json index 6cf06f93e6fe..a30d03a77bcf 100644 --- a/docs/versions/latest.json +++ b/docs/versions/latest.json @@ -1,6 +1 @@ -{ - "version": "10.3.4", - "info": { - "plain": "- Addon-a11y: Clear status transition timer on unmount to prevent test flake - [#34203](https://github.com/storybookjs/storybook/pull/34203), thanks @mixelburg!\n- Bug: Skip re-processing already transformed config files for CSF factories - [#34273](https://github.com/storybookjs/storybook/pull/34273), thanks @huang-julien!\n- Builder-Vite: Use djb2 hash to prevent variable name collisions in builder-vite - [#34274](https://github.com/storybookjs/storybook/pull/34274), thanks @chida09!\n- CLI: Prompt for init crash reports - [#34316](https://github.com/storybookjs/storybook/pull/34316), thanks @JReinhold!\n- CSF4: Fix duplicate preview loading issue in Vitest - [#34361](https://github.com/storybookjs/storybook/pull/34361), thanks @valentinpalkovic!\n- Core: Fix WebSocket connection for StackBlitz/WebContainers - [#34281](https://github.com/storybookjs/storybook/pull/34281), thanks @ghengeveld!\n- React-Docgen: Try .tsx fallback when resolving .js ESM imports in docgen resolvers - [#34393](https://github.com/storybookjs/storybook/pull/34393), thanks @mixelburg!\n- React-Vite: Upgrade @joshwooding/vite-plugin-react-docgen-typescript to 0.7.0 - [#34335](https://github.com/storybookjs/storybook/pull/34335), thanks @beeswhacks!" - } -} +{"version":"10.3.5","info":{"plain":"- Core: Disable component manifest by default - [#34408](https://github.com/storybookjs/storybook/pull/34408), thanks @yannbf!"}} \ No newline at end of file diff --git a/docs/versions/next.json b/docs/versions/next.json index f0368f4bd7b5..fd34e332d9b5 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1,6 +1 @@ -{ - "version": "10.4.0-alpha.3", - "info": { - "plain": "- Addon-Vitest: Streamline vite(st) config detection across init and postinstall - [#34193](https://github.com/storybookjs/storybook/pull/34193), thanks @valentinpalkovic!\n- Angular: Use Story ID for renderer IDs (including standalone stories) - [#33982](https://github.com/storybookjs/storybook/pull/33982), thanks @ValentinFunk!\n- Bug: Skip re-processing already transformed config files for CSF factories - [#34273](https://github.com/storybookjs/storybook/pull/34273), thanks @huang-julien!\n- CLI: Shorten CTA link messages - [#34236](https://github.com/storybookjs/storybook/pull/34236), thanks @shilman!\n- React Native Web: Fix vite8 support by bumping vite-plugin-rnw - [#34231](https://github.com/storybookjs/storybook/pull/34231), thanks @dannyhw!" - } -} +{"version":"10.4.0-alpha.7","info":{"plain":"- CLI: Explicitly tell whether smoke tests passed or failed - [#34419](https://github.com/storybookjs/storybook/pull/34419), thanks @Sidnioulz!\n- Core: Add `ChangeDetectionService` and wire up builder-vite - [#34369](https://github.com/storybookjs/storybook/pull/34369), thanks @ghengeveld!\n- Maintenance: Extract parseFilterParam shared helper from tags and statuses modules - [#34436](https://github.com/storybookjs/storybook/pull/34436), thanks @mixelburg!\n- Sidebar: Add status-based filtering with refactored status architecture - [#34339](https://github.com/storybookjs/storybook/pull/34339), thanks @valentinpalkovic!\n- UI: Fix global shortcuts not showing region focus indicator - [#34201](https://github.com/storybookjs/storybook/pull/34201), thanks @Sidnioulz!"}} \ No newline at end of file