diff --git a/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch b/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch new file mode 100644 index 0000000000..b8fb44001f --- /dev/null +++ b/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch @@ -0,0 +1,35 @@ +diff --git a/dist/preview.d.ts b/dist/preview.d.ts +index 73525b5fe07240d27733b59362cf2076cd28a6ed..0420e6b170a65b6d0db64fcfcfa07b68cd851942 100644 +--- a/dist/preview.d.ts ++++ b/dist/preview.d.ts +@@ -174,7 +174,7 @@ type UnionToIntersection = ( + declare function __definePreview[]>(input: { + addons: Addons; + } & ProjectAnnotations>): ReactPreview>; +-interface ReactPreview extends Preview { ++interface ReactPreview extends Omit, 'meta'> { + meta, TMetaArgs extends Partial>(meta: { + render?: ArgsStoryFn; + component?: ComponentType; +@@ -187,16 +187,13 @@ interface ReactPreview extends Preview { + }>; + } + type DecoratorsArgs = UnionToIntersection ? TArgs : unknown>; +-interface ReactMeta> extends Meta { ++interface ReactMeta extends Omit>, 'story'> { + story ReactTypes['storyResult']) | (StoryAnnotations & { + render: () => ReactTypes['storyResult']; +- })>(story?: TInput): ReactStory ReactTypes['storyResult'] ? { +- render: TInput; +- } : TInput>; +- story, SetOptional>>>(story?: TInput): ReactStory; ++ })>(story?: TInput): ReactStory; ++ story(story?: TInput): ReactStory; + } +-interface ReactStory> extends Story { ++interface ReactStory { + Component: ComponentType>; + } +- + export { ReactPreview, ReactStory, __definePreview }; +\ No newline at end of file diff --git a/package.json b/package.json index fd6cf6f0c5..63ddacee4a 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,8 @@ "csstype@npm:^3.1.2": "3.0.9", "csstype@npm:^3.1.3": "3.0.9", "jest-haste-map@^29.7.0": "patch:jest-haste-map@npm%3A29.7.0#./.yarn/patches/jest-haste-map-npm-29.7.0-e3be419eff.patch", - "recast@npm:0.23.9>ast-types": "patch:ast-types@npm%3A0.16.1#./.yarn/patches/ast-types-npm-0.16.1-43c4ac4b0d.patch" + "recast@npm:0.23.9>ast-types": "patch:ast-types@npm%3A0.16.1#./.yarn/patches/ast-types-npm-0.16.1-43c4ac4b0d.patch", + "@storybook/react@npm:9.1.5": "patch:@storybook/react@npm%3A9.1.5#~/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch" }, "dependencies": { "@backstage/errors": "workspace:^", diff --git a/yarn.lock b/yarn.lock index 3041ed63d5..6fd2ecb8cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18456,6 +18456,24 @@ __metadata: languageName: node linkType: hard +"@storybook/react@patch:@storybook/react@npm%3A9.1.5#~/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch": + version: 9.1.5 + resolution: "@storybook/react@patch:@storybook/react@npm%3A9.1.5#~/.yarn/patches/@storybook-react-npm-9.1.5-2331f18b6b.patch::version=9.1.5&hash=8c1145" + dependencies: + "@storybook/global": "npm:^5.0.0" + "@storybook/react-dom-shim": "npm:9.1.5" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta + storybook: ^9.1.5 + typescript: ">= 4.9.x" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10/17edd1c58208ca26ed805656fadda3b0797a995afc0d64005ce50b4383dc1b3bbfead2c9c4523f1450ee7b82570b0302acadedb17ea3d8aeacfb1b66f7f436d1 + languageName: node + linkType: hard + "@swagger-api/apidom-ast@npm:^1.0.0-beta.11": version: 1.0.0-beta.11 resolution: "@swagger-api/apidom-ast@npm:1.0.0-beta.11"