-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24537 from storybookjs/version-non-patch-from-7.6…
….0-alpha.1 Release: Prerelease 7.6.0-alpha.2
- Loading branch information
Showing
15 changed files
with
184 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,5 +328,6 @@ | |
"Dependency Upgrades" | ||
] | ||
] | ||
} | ||
}, | ||
"deferredNextVersion": "7.6.0-alpha.2" | ||
} |
3 changes: 3 additions & 0 deletions
3
code/renderers/react/template/stories/docgen-components/ts-react-fc/argTypes.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties ts-react-fc 1`] = `Object {}`; |
30 changes: 30 additions & 0 deletions
30
code/renderers/react/template/stories/docgen-components/ts-react-fc/docgen.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties ts-react-fc 1`] = ` | ||
"import React from 'react'; | ||
var DefaultEnum = /*#__PURE__*/function (DefaultEnum) { | ||
DefaultEnum[DefaultEnum[\\"TopLeft\\"] = 0] = \\"TopLeft\\"; | ||
DefaultEnum[DefaultEnum[\\"TopRight\\"] = 1] = \\"TopRight\\"; | ||
DefaultEnum[DefaultEnum[\\"TopCenter\\"] = 2] = \\"TopCenter\\"; | ||
return DefaultEnum; | ||
}(DefaultEnum || {}); | ||
var NumericEnum = /*#__PURE__*/function (NumericEnum) { | ||
NumericEnum[NumericEnum[\\"TopLeft\\"] = 0] = \\"TopLeft\\"; | ||
NumericEnum[NumericEnum[\\"TopRight\\"] = 1] = \\"TopRight\\"; | ||
NumericEnum[NumericEnum[\\"TopCenter\\"] = 2] = \\"TopCenter\\"; | ||
return NumericEnum; | ||
}(NumericEnum || {}); | ||
var StringEnum = /*#__PURE__*/function (StringEnum) { | ||
StringEnum[\\"TopLeft\\"] = \\"top-left\\"; | ||
StringEnum[\\"TopRight\\"] = \\"top-right\\"; | ||
StringEnum[\\"TopCenter\\"] = \\"top-center\\"; | ||
return StringEnum; | ||
}(StringEnum || {}); | ||
export const TypeScriptProps = props => /*#__PURE__*/React.createElement(\\"div\\", null, \\"TypeScript!\\"); | ||
export const component = TypeScriptProps; | ||
TypeScriptProps.__docgenInfo = { | ||
\\"description\\": \\"\\", | ||
\\"methods\\": [], | ||
\\"displayName\\": \\"TypeScriptProps\\" | ||
};" | ||
`; |
93 changes: 93 additions & 0 deletions
93
code/renderers/react/template/stories/docgen-components/ts-react-fc/input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import type { FC } from 'react'; | ||
import React from 'react'; | ||
|
||
interface ItemInterface { | ||
text: string; | ||
value: string; | ||
} | ||
|
||
interface PersonInterface { | ||
name: string; | ||
} | ||
|
||
type InterfaceIntersection = ItemInterface & PersonInterface; | ||
|
||
interface GenericInterface<T> { | ||
value: T; | ||
} | ||
|
||
enum DefaultEnum { | ||
TopLeft, | ||
TopRight, | ||
TopCenter, | ||
} | ||
|
||
enum NumericEnum { | ||
TopLeft = 0, | ||
TopRight, | ||
TopCenter, | ||
} | ||
|
||
enum StringEnum { | ||
TopLeft = 'top-left', | ||
TopRight = 'top-right', | ||
TopCenter = 'top-center', | ||
} | ||
|
||
type EnumUnion = DefaultEnum | NumericEnum; | ||
|
||
type StringLiteralUnion = 'top-left' | 'top-right' | 'top-center'; | ||
type NumericLiteralUnion = 0 | 1 | 2; | ||
|
||
type StringAlias = string; | ||
type NumberAlias = number; | ||
type AliasesIntersection = StringAlias & NumberAlias; | ||
type AliasesUnion = StringAlias | NumberAlias; | ||
interface GenericAlias<T> { | ||
value: T; | ||
} | ||
|
||
interface TypeScriptPropsProps { | ||
any: any; | ||
string: string; | ||
bool: boolean; | ||
number: number; | ||
voidFunc: () => void; | ||
funcWithArgsAndReturns: (a: string, b: string) => string; | ||
funcWithunionArg: (a: string | number) => string; | ||
funcWithMultipleUnionReturns: () => string | ItemInterface; | ||
funcWithIndexTypes: <T, K extends keyof T>(o: T, propertyNames: K[]) => T[K][]; | ||
symbol: symbol; | ||
interface: ItemInterface; | ||
genericInterface: GenericInterface<string>; | ||
arrayOfPrimitive: string[]; | ||
arrayOfComplexObject: ItemInterface[]; | ||
tupleOfPrimitive: [string, number]; | ||
tupleWithComplexType: [string, ItemInterface]; | ||
defaultEnum: DefaultEnum; | ||
numericEnum: NumericEnum; | ||
stringEnum: StringEnum; | ||
enumUnion: EnumUnion; | ||
recordOfPrimitive: Record<string, number>; | ||
recordOfComplexObject: Record<string, ItemInterface>; | ||
intersectionType: InterfaceIntersection; | ||
intersectionWithInlineType: ItemInterface & { inlineValue: string }; | ||
unionOfPrimitive: string | number; | ||
unionOfComplexType: ItemInterface | InterfaceIntersection; | ||
nullablePrimitive?: string; | ||
nullableComplexType?: ItemInterface; | ||
nullableComplexTypeUndefinedDefaultValue?: ItemInterface; | ||
readonly readonlyPrimitive: string; | ||
typeAlias: StringAlias; | ||
aliasesIntersection: AliasesIntersection; | ||
aliasesUnion: AliasesUnion; | ||
genericAlias: GenericAlias<string>; | ||
namedStringLiteralUnion: StringLiteralUnion; | ||
inlinedStringLiteralUnion: 'bottom-left' | 'bottom-right' | 'bottom-center'; | ||
namedNumericLiteralUnion: NumericLiteralUnion; | ||
inlinedNumericLiteralUnion: 0 | 1 | 2; | ||
} | ||
|
||
export const TypeScriptProps: FC<TypeScriptPropsProps> = (props) => <div>TypeScript!</div>; | ||
|
||
export const component = TypeScriptProps; |
7 changes: 7 additions & 0 deletions
7
code/renderers/react/template/stories/docgen-components/ts-react-fc/properties.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties ts-react-fc 1`] = ` | ||
Object { | ||
"rows": Array [], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"7.6.0-alpha.1","info":{"plain":"- Angular: Add source-map option to builder - [#24466](https://github.com/storybookjs/storybook/pull/24466), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n- Angular: update wrong type for webpackStatsJson in start-storybook schema.json - [#24494](https://github.com/storybookjs/storybook/pull/24494), thanks [@LucaVazz](https://github.com/LucaVazz)!\n- CLI: Add @storybook/addon-designs to non-core list - [#24507](https://github.com/storybookjs/storybook/pull/24507), thanks [@yannbf](https://github.com/yannbf)!\n- Doc Blocks: Add support for `of` prop to `Primary` block - [#23849](https://github.com/storybookjs/storybook/pull/23849), thanks [@Wilson2k](https://github.com/Wilson2k)!\n- Doc Blocks: Remove `defaultProps` in `Stories` block - [#24506](https://github.com/storybookjs/storybook/pull/24506), thanks [@WouterK12](https://github.com/WouterK12)!\n- Themes: Run postinstall in shell for windows - [#24389](https://github.com/storybookjs/storybook/pull/24389), thanks [@Integrayshaun](https://github.com/Integrayshaun)!"}} | ||
{"version":"7.6.0-alpha.2","info":{"plain":"- Actions: Fix missing crypto module crashing React Native - [#24546](https://github.com/storybookjs/storybook/pull/24546), thanks [@dannyhw](https://github.com/dannyhw)!\n- Core: Fix post message channel location.search access for React Native - [#24545](https://github.com/storybookjs/storybook/pull/24545), thanks [@dannyhw](https://github.com/dannyhw)!\n- ManagerBuilder: Fix `\\\"type\\\": \\\"commonjs\\\"` compatibility - [#24534](https://github.com/storybookjs/storybook/pull/24534), thanks [@ndelangen](https://github.com/ndelangen)!\n- React: Upgrade `react-docgen` to v7 - [#24530](https://github.com/storybookjs/storybook/pull/24530), thanks [@shilman](https://github.com/shilman)!"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters