Skip to content

Commit 98579cd

Browse files
Merge branch 'next' into copilot/update-agent-detection-for-telemetry
2 parents a610fc5 + a61002d commit 98579cd

File tree

87 files changed

+671
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+671
-196
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ cd code && yarn test
303303

304304
### End-to-End Testing
305305

306-
- Playwright tests available (version 1.52.0 configured)
306+
- Playwright tests available (version 1.58.2 configured)
307307
- E2E test tasks: `yarn task e2e-tests-build --start-from auto` or `yarn task e2e-tests-dev --start-from auto`
308308
- Test runner scenarios: `yarn task test-runner-build --start-from auto` or `yarn task test-runner-dev --start-from auto`
309309
- Smoke tests: `yarn task smoke-test --start-from auto`

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 10.2.18
2+
3+
- Core: Correctly fallback to first detected vitest config file - [#33865](https://github.com/storybookjs/storybook/pull/33865), thanks @yannbf!
4+
- Core: Fix error reporting in ManagerErrorBoundary - [#33915](https://github.com/storybookjs/storybook/pull/33915), thanks @ghengeveld!
5+
16
## 10.2.17
27

38
- Next.js: Add support for v16.2 - [#34046](https://github.com/storybookjs/storybook/pull/34046), thanks @valentinpalkovic!

CHANGELOG.prerelease.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 10.3.0-alpha.17
2+
3+
- Core: Correctly fallback to first detected vitest config file - [#33865](https://github.com/storybookjs/storybook/pull/33865), thanks @yannbf!
4+
- ESLint-plugin: Disallow extra properties in eslint plugin rule options - [#32056](https://github.com/storybookjs/storybook/pull/32056), thanks @andreww2012!
5+
- ESLint: bail out config setup if eslint-plugin-storybook is already imported - [#34089](https://github.com/storybookjs/storybook/pull/34089), thanks @copilot-swe-agent!
6+
- Revert "Toolbar: Remove extra toolbar divider when zoom controls not shown" - [#34099](https://github.com/storybookjs/storybook/pull/34099), thanks @valentinpalkovic!
7+
18
## 10.3.0-alpha.16
29

310
- A11y: Underline MDX links for WCAG SC 1.4.1 compliance - [#33139](https://github.com/storybookjs/storybook/pull/33139), thanks @NikhilChowdhury27!

code/.storybook/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ const config = defineMain({
5555
directory: '../core/src/highlight',
5656
titlePrefix: 'highlight',
5757
},
58-
{
59-
directory: '../addons/docs/src/blocks',
60-
titlePrefix: 'addons/docs/blocks',
61-
},
6258
{
6359
directory: '../addons/a11y/src',
6460
titlePrefix: 'addons/accessibility',
@@ -71,6 +67,10 @@ const config = defineMain({
7167
directory: '../addons/docs/template/stories',
7268
titlePrefix: 'addons/docs',
7369
},
70+
{
71+
directory: '../addons/docs/src',
72+
titlePrefix: 'addons/docs',
73+
},
7474
{
7575
directory: '../addons/links/template/stories',
7676
titlePrefix: 'addons/links',

code/addons/a11y/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-a11y",
3-
"version": "10.3.0-alpha.16",
3+
"version": "10.3.0-alpha.17",
44
"description": "Storybook Addon A11y: Test UI component compliance with WCAG web accessibility standards",
55
"keywords": [
66
"a11y",

code/addons/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-docs",
3-
"version": "10.3.0-alpha.16",
3+
"version": "10.3.0-alpha.17",
44
"description": "Storybook Docs: Document UI components automatically with stories and MDX",
55
"keywords": [
66
"docs",

code/addons/docs/src/blocks/blocks/ArgTypes.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import type { SortType } from '../components';
1313
import { ArgsTableError, ArgsTable as PureArgsTable, TabbedArgsTable } from '../components';
1414
import { useOf } from './useOf';
1515
import { getComponentName } from './utils';
16+
import { withMdxComponentOverride } from './with-mdx-component-override';
1617

1718
type ArgTypesParameters = {
1819
include?: PropDescriptor;
@@ -62,7 +63,7 @@ function getArgTypesFromResolved(resolved: ReturnType<typeof useOf>) {
6263
return { argTypes, parameters, component, subcomponents };
6364
}
6465

65-
export const ArgTypes: FC<ArgTypesProps> = (props) => {
66+
const ArgTypesImpl: FC<ArgTypesProps> = (props) => {
6667
const { of } = props;
6768
if ('of' in props && of === undefined) {
6869
throw new Error('Unexpected `of={undefined}`, did you mistype a CSF file reference?');
@@ -103,3 +104,5 @@ export const ArgTypes: FC<ArgTypesProps> = (props) => {
103104
};
104105
return <TabbedArgsTable tabs={tabs as any} sort={sort} />;
105106
};
107+
108+
export const ArgTypes = withMdxComponentOverride('ArgTypes', ArgTypesImpl);

code/addons/docs/src/blocks/blocks/Canvas.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { SourceContext } from './SourceContainer';
1313
import type { StoryProps } from './Story';
1414
import { Story } from './Story';
1515
import { useOf } from './useOf';
16+
import { withMdxComponentOverride } from './with-mdx-component-override';
1617

1718
type CanvasProps = Pick<PurePreviewProps, 'withToolbar' | 'additionalActions' | 'className'> & {
1819
/**
@@ -60,7 +61,7 @@ type CanvasProps = Pick<PurePreviewProps, 'withToolbar' | 'additionalActions' |
6061
story?: Pick<StoryProps, 'inline' | 'height' | 'autoplay' | '__forceInitialArgs' | '__primary'>;
6162
};
6263

63-
export const Canvas: FC<CanvasProps> = (props) => {
64+
const CanvasImpl: FC<CanvasProps> = (props) => {
6465
const docsContext = useContext(DocsContext);
6566
const sourceContext = useContext(SourceContext);
6667
const { of, source } = props;
@@ -95,3 +96,5 @@ export const Canvas: FC<CanvasProps> = (props) => {
9596
</PurePreview>
9697
);
9798
};
99+
100+
export const Canvas = withMdxComponentOverride('Canvas', CanvasImpl);

code/addons/docs/src/blocks/blocks/Controls.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useArgs } from './useArgs';
1616
import { useGlobals } from './useGlobals';
1717
import { usePrimaryStory } from './usePrimaryStory';
1818
import { getComponentName } from './utils';
19+
import { withMdxComponentOverride } from './with-mdx-component-override';
1920

2021
type ControlsParameters = {
2122
include?: PropDescriptor;
@@ -38,7 +39,7 @@ function extractComponentArgTypes(
3839
return extractArgTypes(component) as StrictArgTypes;
3940
}
4041

41-
export const Controls: FC<ControlsProps> = (props) => {
42+
const ControlsImpl: FC<ControlsProps> = (props) => {
4243
const { of } = props;
4344
const context = useContext(DocsContext);
4445
const primaryStory = usePrimaryStory();
@@ -104,3 +105,5 @@ export const Controls: FC<ControlsProps> = (props) => {
104105
/>
105106
);
106107
};
108+
109+
export const Controls = withMdxComponentOverride('Controls', ControlsImpl);

code/addons/docs/src/blocks/blocks/Description.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React from 'react';
44
import { Markdown } from './Markdown';
55
import type { Of } from './useOf';
66
import { useOf } from './useOf';
7+
import { withMdxComponentOverride } from './with-mdx-component-override';
78

89
export enum DescriptionType {
910
INFO = 'info',
@@ -58,7 +59,7 @@ const getDescriptionFromResolvedOf = (resolvedOf: ReturnType<typeof useOf>): str
5859
}
5960
};
6061

61-
const DescriptionContainer: FC<DescriptionProps> = (props) => {
62+
const DescriptionImpl: FC<DescriptionProps> = (props) => {
6263
const { of } = props;
6364

6465
if ('of' in props && of === undefined) {
@@ -70,4 +71,4 @@ const DescriptionContainer: FC<DescriptionProps> = (props) => {
7071
return markdown ? <Markdown>{markdown}</Markdown> : null;
7172
};
7273

73-
export { DescriptionContainer as Description };
74+
export const Description = withMdxComponentOverride('Description', DescriptionImpl);

0 commit comments

Comments
 (0)