diff --git a/.flowconfig b/.flowconfig index 13af76d7f5b65f..d97047424ac21e 100644 --- a/.flowconfig +++ b/.flowconfig @@ -35,5 +35,3 @@ module.system.node.resolve_dirname=. suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe suppress_comment= \\(.\\|\n\\)*\\$FlowExpectedError suppress_type=$FlowToDo -suppress_type=$FlowFixMeProps -suppress_type=$FlowFixMeState diff --git a/docs/src/modules/components/Link.js b/docs/src/modules/components/Link.js index 6336d62ba00927..5d720fe900c2ff 100644 --- a/docs/src/modules/components/Link.js +++ b/docs/src/modules/components/Link.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; +import type { ElementType, Node } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import NextLink from 'next/link'; @@ -53,7 +54,27 @@ OnClick.propTypes = { onCustomClick: PropTypes.func, }; -function Link(props, context) { +type Variant = 'default' | 'primary' | 'accent' | 'button'; + +type DefaultProps = { + classes: Object, + activeClassName: string, + variant: Variant, +}; + +type Props = { + activeClassName?: string, + children: Node, + classes?: Object, + className?: string, + component?: ElementType, + href?: string, + onClick?: Function, + prefetch?: boolean, + variant?: Variant, +}; + +function Link(props: DefaultProps & Props, context: Object) { const { activeClassName, children: childrenProp, @@ -113,18 +134,6 @@ function Link(props, context) { return {children}; } -Link.propTypes = { - activeClassName: PropTypes.string, - children: PropTypes.node.isRequired, - classes: PropTypes.object.isRequired, - className: PropTypes.string, - component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), - href: PropTypes.string, - onClick: PropTypes.func, - prefetch: PropTypes.bool, - variant: PropTypes.oneOf(['default', 'primary', 'accent', 'button']), -}; - Link.contextTypes = { url: PropTypes.shape({ pathname: PropTypes.string.isRequired, @@ -133,6 +142,7 @@ Link.contextTypes = { Link.defaultProps = { variant: 'default', + activeClassName: 'active', }; export default withStyles(styles)(Link); diff --git a/docs/src/modules/components/MarkdownDocs.js b/docs/src/modules/components/MarkdownDocs.js index 73715bc455782d..c5777c7e859ea6 100644 --- a/docs/src/modules/components/MarkdownDocs.js +++ b/docs/src/modules/components/MarkdownDocs.js @@ -27,7 +27,20 @@ const styles = { const demoRegexp = /^demo='(.*)'$/; const SOURCE_CODE_ROOT_URL = 'https://github.com/callemall/material-ui/tree/v1-beta'; -function MarkdownDocs(props, context) { +type DefaultProps = { + classes: Object, +}; + +type Props = { + classes?: Object, + demos?: { [key: string]: any }, + markdown: string, + // You can define the direction location of the markdown file. + // Otherwise, we try to determine it with an heuristic. + sourceLocation?: string, +}; + +function MarkdownDocs(props: DefaultProps & Props, context: Object) { const { classes, demos, markdown, sourceLocation: sourceLocationProp } = props; const contents = getContents(markdown); const components = getComponents(markdown); @@ -63,7 +76,7 @@ function MarkdownDocs(props, context) { {contents.map(content => { const match = content.match(demoRegexp); - if (match) { + if (match && demos) { const name = match[1]; warning(demos && demos[name], `Missing demo: ${name}.`); return ; @@ -86,15 +99,6 @@ ${components ); } -MarkdownDocs.propTypes = { - classes: PropTypes.object.isRequired, - demos: PropTypes.object, - markdown: PropTypes.string.isRequired, - // You can define the direction location of the markdown file. - // Otherwise, we try to determine it with an heuristic. - sourceLocation: PropTypes.string, -}; - MarkdownDocs.contextTypes = { activePage: PropTypes.shape({ pathname: PropTypes.string.isRequired, diff --git a/docs/src/modules/components/MarkdownElement.js b/docs/src/modules/components/MarkdownElement.js index db438dbe00b6aa..e4706469b41499 100644 --- a/docs/src/modules/components/MarkdownElement.js +++ b/docs/src/modules/components/MarkdownElement.js @@ -1,7 +1,6 @@ // @flow import React from 'react'; -import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from 'material-ui/styles'; import marked from 'marked'; @@ -201,7 +200,17 @@ const styles = theme => ({ }, }); -function MarkdownElement(props) { +type DefaultProps = { + classes: Object, +}; + +type Props = { + classes?: Object, + className?: string, + text: string, +}; + +function MarkdownElement(props: DefaultProps & Props) { const { classes, className, text, ...other } = props; /* eslint-disable react/no-danger */ @@ -215,10 +224,4 @@ function MarkdownElement(props) { /* eslint-enable */ } -MarkdownElement.propTypes = { - classes: PropTypes.object.isRequired, - className: PropTypes.string, - text: PropTypes.string.isRequired, -}; - export default withStyles(styles)(MarkdownElement); diff --git a/docs/src/pages/customization/CssInJs.js b/docs/src/pages/customization/CssInJs.js index fee1897b004d22..8a24ebee001656 100644 --- a/docs/src/pages/customization/CssInJs.js +++ b/docs/src/pages/customization/CssInJs.js @@ -1,4 +1,4 @@ -// @flow weak +/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; diff --git a/docs/src/pages/customization/ThemeDefault.js b/docs/src/pages/customization/ThemeDefault.js index 28e6178ef6acaa..0ca9570d54358b 100644 --- a/docs/src/pages/customization/ThemeDefault.js +++ b/docs/src/pages/customization/ThemeDefault.js @@ -27,4 +27,4 @@ ThemeDefault.propTypes = { theme: PropTypes.object.isRequired, }; -export default withTheme(ThemeDefault); +export default withTheme()(ThemeDefault); diff --git a/docs/src/pages/customization/WithTheme.js b/docs/src/pages/customization/WithTheme.js index 754e2367997498..5d6391da10e68a 100644 --- a/docs/src/pages/customization/WithTheme.js +++ b/docs/src/pages/customization/WithTheme.js @@ -35,4 +35,4 @@ WithTheme.propTypes = { theme: PropTypes.object.isRequired, }; -export default withTheme(WithTheme); // Let's get the theme as a property +export default withTheme()(WithTheme); // Let's get the theme as a property diff --git a/docs/src/pages/customization/themes.md b/docs/src/pages/customization/themes.md index 0ae395d6fe655f..5708e1b98767a1 100644 --- a/docs/src/pages/customization/themes.md +++ b/docs/src/pages/customization/themes.md @@ -150,7 +150,7 @@ const theme = createMuiTheme({ }); ``` -### `withTheme(Component) => Component` +### `withTheme()(Component) => Component` Provide the `theme` object as a property of the input component. @@ -167,5 +167,5 @@ Provide the `theme` object as a property of the input component. ```js import { withTheme } from 'material-ui/styles' -export default withTheme(MyComponent); +export default withTheme()(MyComponent); ``` diff --git a/flow-typed/npm/@types/enzyme_vx.x.x.js b/flow-typed/npm/@types/enzyme_vx.x.x.js index 4546ce16c366c5..1a5c247e01e7e0 100644 --- a/flow-typed/npm/@types/enzyme_vx.x.x.js +++ b/flow-typed/npm/@types/enzyme_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5297e6bcf48dbbdf72036cf4f0e74a89 -// flow-typed version: <>/@types/enzyme_v^2.8.6/flow_v0.54.0 +// flow-typed signature: 29861e245326601652e701f1ec9396ca +// flow-typed version: <>/@types/enzyme_v^2.8.8/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/@types/react_vx.x.x.js b/flow-typed/npm/@types/react_vx.x.x.js index 43721868e076b3..5e9f3804dc7752 100644 --- a/flow-typed/npm/@types/react_vx.x.x.js +++ b/flow-typed/npm/@types/react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 4f4af6e9c348783f97a0f1c6d5d45158 -// flow-typed version: <>/@types/react_v^16.0.5/flow_v0.54.0 +// flow-typed signature: 2b6b2a1fdf337b9e3981e2badf2331af +// flow-typed version: <>/@types/react_v^16.0.5/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/app-module-path_vx.x.x.js b/flow-typed/npm/app-module-path_vx.x.x.js index c1335849b65eb1..56c3c9d23ddc90 100644 --- a/flow-typed/npm/app-module-path_vx.x.x.js +++ b/flow-typed/npm/app-module-path_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 607a1368ca8f07e70912bfc717c68d25 -// flow-typed version: <>/app-module-path_v^2.2.0/flow_v0.54.0 +// flow-typed signature: 7201bed1395129adbf3102630e4cee3d +// flow-typed version: <>/app-module-path_v^2.2.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/argos-cli_vx.x.x.js b/flow-typed/npm/argos-cli_vx.x.x.js index 45d931cf367fd3..f1112b6b5049e1 100644 --- a/flow-typed/npm/argos-cli_vx.x.x.js +++ b/flow-typed/npm/argos-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 34b416b4b110731c3b0d5355b93034d4 -// flow-typed version: <>/argos-cli_v^0.0.9/flow_v0.54.0 +// flow-typed signature: 5c96fcc02dcc5ee7d0d24caeba0b4343 +// flow-typed version: <>/argos-cli_v^0.0.9/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/autosuggest-highlight_vx.x.x.js b/flow-typed/npm/autosuggest-highlight_vx.x.x.js index 8112d39022c9ea..e47877a37fd0bf 100644 --- a/flow-typed/npm/autosuggest-highlight_vx.x.x.js +++ b/flow-typed/npm/autosuggest-highlight_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b28cf07219661a2f609bca64cea51f85 -// flow-typed version: <>/autosuggest-highlight_v^3.1.0/flow_v0.54.0 +// flow-typed signature: 370b0d9599ac5665a44a1230c6e45b28 +// flow-typed version: <>/autosuggest-highlight_v^3.1.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-cli_vx.x.x.js b/flow-typed/npm/babel-cli_vx.x.x.js index 777271d6e6d309..15b13e87520969 100644 --- a/flow-typed/npm/babel-cli_vx.x.x.js +++ b/flow-typed/npm/babel-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1f493e5516d71b03eecabc0eebe052b9 -// flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.54.0 +// flow-typed signature: 0b1433c9c4ad723e7948a8a9d4a096b9 +// flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js index 04420857d33137..f4d5222205f840 100644 --- a/flow-typed/npm/babel-core_vx.x.x.js +++ b/flow-typed/npm/babel-core_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fbac97e2af76b48d64f231fa852a001c -// flow-typed version: <>/babel-core_v^6.26.0/flow_v0.54.0 +// flow-typed signature: be442188d119c847416dd025f69bb123 +// flow-typed version: <>/babel-core_v^6.26.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js index e16048edcd3a0a..a671b5214e18da 100644 --- a/flow-typed/npm/babel-eslint_vx.x.x.js +++ b/flow-typed/npm/babel-eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f2356761571c9811158ded04eecb6b34 -// flow-typed version: <>/babel-eslint_v^7.2.3/flow_v0.54.0 +// flow-typed signature: 93147d4da81fabd80d03c1c949ceba89 +// flow-typed version: <>/babel-eslint_v^8.0.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-loader_vx.x.x.js b/flow-typed/npm/babel-loader_vx.x.x.js index bae9313ab4fe61..8757e2ed1796c4 100644 --- a/flow-typed/npm/babel-loader_vx.x.x.js +++ b/flow-typed/npm/babel-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 4733e08b2785a36d58b073a2125dae3a -// flow-typed version: <>/babel-loader_v^7.1.2/flow_v0.54.0 +// flow-typed signature: 4206738fa1342398741edf5f8ddeb8c9 +// flow-typed version: <>/babel-loader_v^7.1.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js b/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js index 8d85b36260d4a0..1b17731c92aba7 100644 --- a/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: bd2e98c441b22de783ef0271c14ecd61 -// flow-typed version: <>/babel-plugin-flow-react-proptypes_v5.1.1/flow_v0.54.0 +// flow-typed signature: 544c10d682689a1b2fa1f46488a14d8d +// flow-typed version: <>/babel-plugin-flow-react-proptypes_v5.1.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js b/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js index 6cecffd34fa945..e054c73540a3d5 100644 --- a/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-istanbul_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: bb051d78002020851a4990208b1df0d5 -// flow-typed version: <>/babel-plugin-istanbul_v^4.1.4/flow_v0.54.0 +// flow-typed signature: c6f84fa56c03ca3db3be38634774e3a2 +// flow-typed version: <>/babel-plugin-istanbul_v^4.1.5/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-preval_vx.x.x.js b/flow-typed/npm/babel-plugin-preval_vx.x.x.js index 7e591bf38eedc6..0415275339bf5b 100644 --- a/flow-typed/npm/babel-plugin-preval_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-preval_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 30e1eeddfad780e4c986ea2355da9a4c -// flow-typed version: <>/babel-plugin-preval_v^1.4.3/flow_v0.54.0 +// flow-typed signature: 0157bd47438f31ceb8ab10278e42042f +// flow-typed version: <>/babel-plugin-preval_v^1.5.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-react-remove-properties_vx.x.x.js b/flow-typed/npm/babel-plugin-react-remove-properties_vx.x.x.js index 27465e74bfd374..af7382e9daf93e 100644 --- a/flow-typed/npm/babel-plugin-react-remove-properties_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-react-remove-properties_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 581e3392539aee7d065405768334daa1 -// flow-typed version: <>/babel-plugin-react-remove-properties_v^0.2.5/flow_v0.54.0 +// flow-typed signature: 84f4805566461e1f09cc4aed3e47bd19 +// flow-typed version: <>/babel-plugin-react-remove-properties_v^0.2.5/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js index 8e03addf76ec5f..6645319a571fd9 100644 --- a/flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1da21b94092059276fef2a2550adc983 -// flow-typed version: <>/babel-plugin-transform-dev-warning_v^0.1.0/flow_v0.54.0 +// flow-typed signature: 6d7726d486013a75e50a21dfceb7885f +// flow-typed version: <>/babel-plugin-transform-dev-warning_v^0.1.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js index 5130463f80b7b8..9e64590756871d 100644 --- a/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 18448e153967f6a4e9cf83444380978e -// flow-typed version: <>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.54.0 +// flow-typed signature: f5bc03436b1df48ac0553281d98fd24d +// flow-typed version: <>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-object-assign_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-object-assign_vx.x.x.js index ed8c4c3a725617..4849f33e5cc94d 100644 --- a/flow-typed/npm/babel-plugin-transform-object-assign_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-object-assign_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3eccd9596a6f9721bfd6836fcd79aba8 -// flow-typed version: <>/babel-plugin-transform-object-assign_v^6.22.0/flow_v0.54.0 +// flow-typed signature: 4f5351be0a90943480f81d47de00bec5 +// flow-typed version: <>/babel-plugin-transform-object-assign_v^6.22.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js index 5598d0fd0d441a..23380d71ab81b3 100644 --- a/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f875b10937f667a53ea53b3903bcb704 -// flow-typed version: <>/babel-plugin-transform-react-constant-elements_v^6.23.0/flow_v0.54.0 +// flow-typed signature: c37ebd25a08f511db56ca913ccf98c88 +// flow-typed version: <>/babel-plugin-transform-react-constant-elements_v^6.23.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js index 07df7d5cb39478..0a4571a92b286a 100644 --- a/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-react-remove-prop-types_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cc6868c1ffa7133f793b9652e2ed10ce -// flow-typed version: <>/babel-plugin-transform-react-remove-prop-types_v^0.4.8/flow_v0.54.0 +// flow-typed signature: 200d5e6f9cd63e859e432d96ff7f3d47 +// flow-typed version: <>/babel-plugin-transform-react-remove-prop-types_v^0.4.8/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js index 0fafa1e39ab988..1f49fa6f3d5bd1 100644 --- a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 444692a55d3bf333204ccf63ffe333db -// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.54.0 +// flow-typed signature: 6d3cee82ddca0e5522f92f2f6a77eb50 +// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-polyfill_vx.x.x.js b/flow-typed/npm/babel-polyfill_vx.x.x.js index ba39f131584473..82f0908b627c58 100644 --- a/flow-typed/npm/babel-polyfill_vx.x.x.js +++ b/flow-typed/npm/babel-polyfill_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0efa92952ca816b2b986b25d63db58b0 -// flow-typed version: <>/babel-polyfill_v^6.26.0/flow_v0.54.0 +// flow-typed signature: 3c3384b0284c1d461d772799ff65f778 +// flow-typed version: <>/babel-polyfill_v^6.26.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-env_vx.x.x.js b/flow-typed/npm/babel-preset-env_vx.x.x.js index 48d7bef3cea62e..a08c05ccf9c966 100644 --- a/flow-typed/npm/babel-preset-env_vx.x.x.js +++ b/flow-typed/npm/babel-preset-env_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 540ef9a53249d35de400ee694674816a -// flow-typed version: <>/babel-preset-env_v^1.6.0/flow_v0.54.0 +// flow-typed signature: 156e4ce8839874b7912495dd67fba8d3 +// flow-typed version: <>/babel-preset-env_v^1.6.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-react_vx.x.x.js b/flow-typed/npm/babel-preset-react_vx.x.x.js index 12946b3e884736..4368ed5704e1cd 100644 --- a/flow-typed/npm/babel-preset-react_vx.x.x.js +++ b/flow-typed/npm/babel-preset-react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b3459381fbaca6e86efebc974cf3490f -// flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.54.0 +// flow-typed signature: f71383ddec556db0dab5f719c4c0bb7d +// flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-stage-1_vx.x.x.js b/flow-typed/npm/babel-preset-stage-1_vx.x.x.js index d1cd9964224482..01c5bd98c44f78 100644 --- a/flow-typed/npm/babel-preset-stage-1_vx.x.x.js +++ b/flow-typed/npm/babel-preset-stage-1_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 62185b7fea83706d184e7c509a9f17c7 -// flow-typed version: <>/babel-preset-stage-1_v^6.24.1/flow_v0.54.0 +// flow-typed signature: e8c59f853c9b6bca01994b640e9ddea7 +// flow-typed version: <>/babel-preset-stage-1_v^6.24.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-register_vx.x.x.js b/flow-typed/npm/babel-register_vx.x.x.js index af7a9075c70481..eac3f31fa0969e 100644 --- a/flow-typed/npm/babel-register_vx.x.x.js +++ b/flow-typed/npm/babel-register_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e3d8f3f1c6cb02d24bfc5c5095aef5b4 -// flow-typed version: <>/babel-register_v^6.26.0/flow_v0.54.0 +// flow-typed signature: fea62fffe3130cc006825a4ae6f2c06a +// flow-typed version: <>/babel-register_v^6.26.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js index cb5cb9b31db502..ce47b3225776f6 100644 --- a/flow-typed/npm/babel-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 71f2042734f9a77038b8dfe377ec34e2 -// flow-typed version: <>/babel-runtime_v^6.26.0/flow_v0.54.0 +// flow-typed signature: f6ed6d4faf45d15b895cbce7bc4a6fe8 +// flow-typed version: <>/babel-runtime_v^6.26.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/brcast_vx.x.x.js b/flow-typed/npm/brcast_vx.x.x.js index e471d41863758d..2af0eaf534078a 100644 --- a/flow-typed/npm/brcast_vx.x.x.js +++ b/flow-typed/npm/brcast_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d498c9bb88b87dab14b6823fdf4727a0 -// flow-typed version: <>/brcast_v^3.0.1/flow_v0.54.0 +// flow-typed signature: c9c2af232d0951a4bc449882d151b027 +// flow-typed version: <>/brcast_v^3.0.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/chai_v4.x.x.js b/flow-typed/npm/chai_v4.x.x.js index 56cc062e32dcc2..34943305ef2912 100644 --- a/flow-typed/npm/chai_v4.x.x.js +++ b/flow-typed/npm/chai_v4.x.x.js @@ -1,223 +1,254 @@ -// flow-typed signature: f4c38ee453c1a780b0ce642321a96131 -// flow-typed version: 147ab6243c/chai_v4.x.x/flow_>=v0.15.0 +// flow-typed signature: 361bd0345b0567d52419a64283294afc +// flow-typed version: 6d442f5792/chai_v4.x.x/flow_>=v0.15.0 declare module "chai" { - - declare type ExpectChain = { - and: ExpectChain, - at: ExpectChain, - be: ExpectChain, - been: ExpectChain, - have: ExpectChain, - has: ExpectChain, - is: ExpectChain, - of: ExpectChain, - same: ExpectChain, - that: ExpectChain, - to: ExpectChain, - which: ExpectChain, - with: ExpectChain, - - not: ExpectChain, - deep: ExpectChain, - any: ExpectChain, - all: ExpectChain, - - a: ExpectChain & (type: string) => ExpectChain, - an: ExpectChain & (type: string) => ExpectChain, - - include: ExpectChain & (value: mixed) => ExpectChain, - includes: ExpectChain & (value: mixed) => ExpectChain, - contain: ExpectChain & (value: mixed) => ExpectChain, - contains: ExpectChain & (value: mixed) => ExpectChain, - - eql: (value: T) => ExpectChain, - equal: (value: T) => ExpectChain, - equals: (value: T) => ExpectChain, - - above: (value: T & number) => ExpectChain, - least: (value: T & number) => ExpectChain, - below: (value: T & number) => ExpectChain, - most: (value: T & number) => ExpectChain, - within: (start: T & number, finish: T & number) => ExpectChain, - - instanceof: (constructor: mixed) => ExpectChain, - property: ( -

(name: string, value?: P) => ExpectChain

- & (name: string) => ExpectChain - ), - - length: (value: number) => ExpectChain | ExpectChain, - lengthOf: (value: number) => ExpectChain, - - match: (regex: RegExp) => ExpectChain, - string: (string: string) => ExpectChain, - - key: (key: string) => ExpectChain, - keys: (key: string | Array, ...keys: Array) => ExpectChain, - - throw: ( - err?: Class | Error | RegExp | string, - errMsgMatcher?: RegExp | string, - msg?: string) => ExpectChain, - - respondTo: (method: string) => ExpectChain, - itself: ExpectChain, - - satisfy: (method: (value: T) => bool) => ExpectChain, - - closeTo: (expected: T & number, delta: number) => ExpectChain, - - members: (set: mixed) => ExpectChain, - oneOf: (list: Array) => ExpectChain, - - change: (obj: mixed, key: string) => ExpectChain, - increase: (obj: mixed, key: string) => ExpectChain, - decrease: (obj: mixed, key: string) => ExpectChain, - - // dirty-chai - ok: () => ExpectChain, - true: () => ExpectChain, - false: () => ExpectChain, - null: () => ExpectChain, - undefined: () => ExpectChain, - exist: () => ExpectChain, - empty: () => ExpectChain, - - extensible: () => ExpectChain, - sealed: () => ExpectChain, - frozen: () => ExpectChain, - - // chai-immutable - size: (n: number) => ExpectChain, - - // sinon-chai - called: () => ExpectChain, - callCount: (n: number) => ExpectChain, - calledOnce: () => ExpectChain, - calledTwice: () => ExpectChain, - calledThrice: () => ExpectChain, - calledBefore: (spy: mixed) => ExpectChain, - calledAfter: (spy: mixed) => ExpectChain, - calledWith: (...args: Array) => ExpectChain, - calledWithMatch: (...args: Array) => ExpectChain, - calledWithExactly: (...args: Array) => ExpectChain, - - // chai-as-promised - eventually: ExpectChain, - resolvedWith: (value: mixed) => Promise & ExpectChain, - resolved: () => Promise & ExpectChain, - rejectedWith: (value: mixed) => Promise & ExpectChain, - rejected: () => Promise & ExpectChain, - notify: (callback: () => mixed) => ExpectChain, - fulfilled: () => Promise & ExpectChain, - - // chai-subset - containSubset: (obj: Object | Object[]) => ExpectChain - }; - - declare function expect(actual: T): ExpectChain; - - declare function use(plugin: (chai: Object, utils: Object) => void): void; - - declare class assert { - static(expression: mixed, message?: string): void; - static fail(actual: mixed, expected: mixed, message?: string, operator?: string): void; - - static isOk(object: mixed, message?: string): void; - static isNotOk(object: mixed, message?: string): void; - - static equal(actual: mixed, expected: mixed, message?: string): void; - static notEqual(actual: mixed, expected: mixed, message?: string): void; - - static strictEqual(act: mixed, exp: mixed, msg?: string): void; - static notStrictEqual(act: mixed, exp: mixed, msg?: string): void; - - static deepEqual(act: mixed, exp: mixed, msg?: string): void; - static notDeepEqual(act: mixed, exp: mixed, msg?: string): void; - - static ok(val: mixed, msg?: string): void; - static isTrue(val: mixed, msg?: string): void; - static isNotTrue(val: mixed, msg?: string): void; - static isFalse(val: mixed, msg?: string): void; - static isNotFalse(val: mixed, msg?: string): void; - - static isNull(val: mixed, msg?: string): void; - static isNotNull(val: mixed, msg?: string): void; - - static isUndefined(val: mixed, msg?: string): void; - static isDefined(val: mixed, msg?: string): void; - - static isNaN(val: mixed, msg?: string): void; - static isNotNaN(val: mixed, msg?: string): void; - - static isAbove(val: number, abv: number, msg?: string): void; - static isBelow(val: number, blw: number, msg?: string): void; - - static isAtMost(val: number, atmst: number, msg?: string): void; - static isAtLeast(val: number, atlst: number, msg?: string): void; - - static isFunction(val: mixed, msg?: string): void; - static isNotFunction(val: mixed, msg?: string): void; - - static isObject(val: mixed, msg?: string): void; - static isNotObject(val: mixed, msg?: string): void; - - static isArray(val: mixed, msg?: string): void; - static isNotArray(val: mixed, msg?: string): void; - - static isString(val: mixed, msg?: string): void; - static isNotString(val: mixed, msg?: string): void; - - static isNumber(val: mixed, msg?: string): void; - static isNotNumber(val: mixed, msg?: string): void; - - static isBoolean(val: mixed, msg?: string): void; - static isNotBoolean(val: mixed, msg?: string): void; - - static typeOf(val: mixed, type: string, msg?: string): void; - static notTypeOf(val: mixed, type: string, msg?: string): void; - - static instanceOf(val: mixed, constructor: Function, msg?: string): void; - static notInstanceOf(val: mixed, constructor: Function, msg?: string): void; - - static include(exp: string, inc: mixed, msg?: string): void; - static include(exp: Array, inc: T, msg?: string): void; - - static notInclude(exp: string, inc: mixed, msg?: string): void; - static notInclude(exp: Array, inc: T, msg?: string): void; - - static match(exp: mixed, re: RegExp, msg?: string): void; - static notMatch(exp: mixed, re: RegExp, msg?: string): void; - - static property(obj: Object, prop: string, msg?: string): void; - static notProperty(obj: Object, prop: string, msg?: string): void; - static deepProperty(obj: Object, prop: string, msg?: string): void; - static notDeepProperty(obj: Object, prop: string, msg?: string): void; - - static propertyVal(obj: Object, prop: string, val: mixed, msg?: string): void; - static propertyNotVal(obj: Object, prop: string, val: mixed, msg?: string): void; - - static deepPropertyVal(obj: Object, prop: string, val: mixed, msg?: string): void; - static deepPropertyNotVal(obj: Object, prop: string, val: mixed, msg?: string): void; - - static lengthOf(exp: mixed, len: number, msg?: string): void; - - static throws( - func: () => any, - err?: Class | Error | RegExp | string, - errorMsgMatcher?: string | RegExp, - msg?: string): void; - static doesNotThrow( - func: () => any, - err?: Class | Error | RegExp | string, - errorMsgMatcher?: string | RegExp, - msg?: string): void; - } - - declare var config: { - includeStack: boolean, - showDiff: boolean, - truncateThreshold: number - }; + declare type ExpectChain = { + and: ExpectChain, + at: ExpectChain, + be: ExpectChain, + been: ExpectChain, + have: ExpectChain, + has: ExpectChain, + is: ExpectChain, + of: ExpectChain, + same: ExpectChain, + that: ExpectChain, + to: ExpectChain, + which: ExpectChain, + with: ExpectChain, + + not: ExpectChain, + deep: ExpectChain, + any: ExpectChain, + all: ExpectChain, + + a: ExpectChain & ((type: string) => ExpectChain), + an: ExpectChain & ((type: string) => ExpectChain), + + include: ExpectChain & ((value: mixed) => ExpectChain), + includes: ExpectChain & ((value: mixed) => ExpectChain), + contain: ExpectChain & ((value: mixed) => ExpectChain), + contains: ExpectChain & ((value: mixed) => ExpectChain), + + eql: (value: T) => ExpectChain, + equal: (value: T) => ExpectChain, + equals: (value: T) => ExpectChain, + + above: (value: T & number) => ExpectChain, + least: (value: T & number) => ExpectChain, + below: (value: T & number) => ExpectChain, + most: (value: T & number) => ExpectChain, + within: (start: T & number, finish: T & number) => ExpectChain, + + instanceof: (constructor: mixed) => ExpectChain, + nested: ExpectChain, + property:

( + name: string, + value?: P + ) => ExpectChain

& ((name: string) => ExpectChain), + + length: (value: number) => ExpectChain | ExpectChain, + lengthOf: (value: number) => ExpectChain, + + match: (regex: RegExp) => ExpectChain, + string: (string: string) => ExpectChain, + + key: (key: string) => ExpectChain, + keys: ( + key: string | Array, + ...keys: Array + ) => ExpectChain, + + throw: ( + err?: Class | Error | RegExp | string, + errMsgMatcher?: RegExp | string, + msg?: string + ) => ExpectChain, + + respondTo: (method: string) => ExpectChain, + itself: ExpectChain, + + satisfy: (method: (value: T) => boolean) => ExpectChain, + + closeTo: (expected: T & number, delta: number) => ExpectChain, + + members: (set: mixed) => ExpectChain, + oneOf: (list: Array) => ExpectChain, + + change: (obj: mixed, key: string) => ExpectChain, + increase: (obj: mixed, key: string) => ExpectChain, + decrease: (obj: mixed, key: string) => ExpectChain, + + // dirty-chai + ok: () => ExpectChain, + true: () => ExpectChain, + false: () => ExpectChain, + null: () => ExpectChain, + undefined: () => ExpectChain, + exist: () => ExpectChain, + empty: () => ExpectChain, + + extensible: () => ExpectChain, + sealed: () => ExpectChain, + frozen: () => ExpectChain, + + // chai-immutable + size: (n: number) => ExpectChain, + + // sinon-chai + called: () => ExpectChain, + callCount: (n: number) => ExpectChain, + calledOnce: () => ExpectChain, + calledTwice: () => ExpectChain, + calledThrice: () => ExpectChain, + calledBefore: (spy: mixed) => ExpectChain, + calledAfter: (spy: mixed) => ExpectChain, + calledWith: (...args: Array) => ExpectChain, + calledWithMatch: (...args: Array) => ExpectChain, + calledWithExactly: (...args: Array) => ExpectChain, + + // chai-as-promised + eventually: ExpectChain, + resolvedWith: (value: mixed) => Promise & ExpectChain, + resolved: () => Promise & ExpectChain, + rejectedWith: (value: mixed) => Promise & ExpectChain, + rejected: () => Promise & ExpectChain, + notify: (callback: () => mixed) => ExpectChain, + fulfilled: () => Promise & ExpectChain, + + // chai-subset + containSubset: (obj: Object | Object[]) => ExpectChain + }; + + declare function expect(actual: T): ExpectChain; + + declare function use(plugin: (chai: Object, utils: Object) => void): void; + + declare class assert { + static (expression: mixed, message?: string): void, + static fail( + actual: mixed, + expected: mixed, + message?: string, + operator?: string + ): void, + + static isOk(object: mixed, message?: string): void, + static isNotOk(object: mixed, message?: string): void, + + static equal(actual: mixed, expected: mixed, message?: string): void, + static notEqual(actual: mixed, expected: mixed, message?: string): void, + + static strictEqual(act: mixed, exp: mixed, msg?: string): void, + static notStrictEqual(act: mixed, exp: mixed, msg?: string): void, + + static deepEqual(act: mixed, exp: mixed, msg?: string): void, + static notDeepEqual(act: mixed, exp: mixed, msg?: string): void, + + static ok(val: mixed, msg?: string): void, + static isTrue(val: mixed, msg?: string): void, + static isNotTrue(val: mixed, msg?: string): void, + static isFalse(val: mixed, msg?: string): void, + static isNotFalse(val: mixed, msg?: string): void, + + static isNull(val: mixed, msg?: string): void, + static isNotNull(val: mixed, msg?: string): void, + + static isUndefined(val: mixed, msg?: string): void, + static isDefined(val: mixed, msg?: string): void, + + static isNaN(val: mixed, msg?: string): void, + static isNotNaN(val: mixed, msg?: string): void, + + static isAbove(val: number, abv: number, msg?: string): void, + static isBelow(val: number, blw: number, msg?: string): void, + + static isAtMost(val: number, atmst: number, msg?: string): void, + static isAtLeast(val: number, atlst: number, msg?: string): void, + + static isFunction(val: mixed, msg?: string): void, + static isNotFunction(val: mixed, msg?: string): void, + + static isObject(val: mixed, msg?: string): void, + static isNotObject(val: mixed, msg?: string): void, + + static isArray(val: mixed, msg?: string): void, + static isNotArray(val: mixed, msg?: string): void, + + static isString(val: mixed, msg?: string): void, + static isNotString(val: mixed, msg?: string): void, + + static isNumber(val: mixed, msg?: string): void, + static isNotNumber(val: mixed, msg?: string): void, + + static isBoolean(val: mixed, msg?: string): void, + static isNotBoolean(val: mixed, msg?: string): void, + + static typeOf(val: mixed, type: string, msg?: string): void, + static notTypeOf(val: mixed, type: string, msg?: string): void, + + static instanceOf(val: mixed, constructor: Function, msg?: string): void, + static notInstanceOf(val: mixed, constructor: Function, msg?: string): void, + + static include(exp: string, inc: mixed, msg?: string): void, + static include(exp: Array, inc: T, msg?: string): void, + + static notInclude(exp: string, inc: mixed, msg?: string): void, + static notInclude(exp: Array, inc: T, msg?: string): void, + + static match(exp: mixed, re: RegExp, msg?: string): void, + static notMatch(exp: mixed, re: RegExp, msg?: string): void, + + static property(obj: Object, prop: string, msg?: string): void, + static notProperty(obj: Object, prop: string, msg?: string): void, + static deepProperty(obj: Object, prop: string, msg?: string): void, + static notDeepProperty(obj: Object, prop: string, msg?: string): void, + + static propertyVal( + obj: Object, + prop: string, + val: mixed, + msg?: string + ): void, + static propertyNotVal( + obj: Object, + prop: string, + val: mixed, + msg?: string + ): void, + + static deepPropertyVal( + obj: Object, + prop: string, + val: mixed, + msg?: string + ): void, + static deepPropertyNotVal( + obj: Object, + prop: string, + val: mixed, + msg?: string + ): void, + + static lengthOf(exp: mixed, len: number, msg?: string): void, + + static throws( + func: () => any, + err?: Class | Error | RegExp | string, + errorMsgMatcher?: string | RegExp, + msg?: string + ): void, + static doesNotThrow( + func: () => any, + err?: Class | Error | RegExp | string, + errorMsgMatcher?: string | RegExp, + msg?: string + ): void + } + + declare var config: { + includeStack: boolean, + showDiff: boolean, + truncateThreshold: number + }; } diff --git a/flow-typed/npm/clean-css_vx.x.x.js b/flow-typed/npm/clean-css_vx.x.x.js index 70e604075293a0..44b83ec459f25d 100644 --- a/flow-typed/npm/clean-css_vx.x.x.js +++ b/flow-typed/npm/clean-css_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cba8b3ea3e161ad7416d1690b18972c9 -// flow-typed version: <>/clean-css_v^4.1.7/flow_v0.54.0 +// flow-typed signature: f71133855e64d66c5501d171124c97fe +// flow-typed version: <>/clean-css_v^4.1.9/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/cross-env_vx.x.x.js b/flow-typed/npm/cross-env_vx.x.x.js index fc04d9612c4e6d..6d2ef8763ea39b 100644 --- a/flow-typed/npm/cross-env_vx.x.x.js +++ b/flow-typed/npm/cross-env_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fb91e64dbc6dc1175e0f08477d899067 -// flow-typed version: <>/cross-env_v^5.0.5/flow_v0.54.0 +// flow-typed signature: 5761b13ae4eeba63c9dcca6e7ab147b6 +// flow-typed version: <>/cross-env_v^5.0.5/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/deepmerge_v1.x.x.js b/flow-typed/npm/deepmerge_v1.x.x.js new file mode 100644 index 00000000000000..089ac5e72990a4 --- /dev/null +++ b/flow-typed/npm/deepmerge_v1.x.x.js @@ -0,0 +1,21 @@ +// flow-typed signature: 53efc5e11191657e0f219f18bbef00b0 +// flow-typed version: 498f273a60/deepmerge_v1.x.x/flow_>=v0.25.x + +type DeepMergeOptionsType = { + arrayMerge?: (dest: Array<*>, source: Array<*>, options?: DeepMergeOptionsType) => Array<*>, + clone?: boolean, +}; + +type DeepMergeObjects = { + (a: Object, b: Object, options?: DeepMergeOptionsType): Object; + all: (objects: Array, options?: DeepMergeOptionsType) => Object, +}; + +type DeepMergeArrays = { + (a: Array<*>, b: Array<*>, options?: DeepMergeOptionsType): Array<*>; + all: (objects: Array>, options?: DeepMergeOptionsType) => Array<*>, +}; + +declare module 'deepmerge' { + declare module.exports: DeepMergeObjects & DeepMergeArrays; +} diff --git a/flow-typed/npm/doctrine_vx.x.x.js b/flow-typed/npm/doctrine_vx.x.x.js index 709f0f3b16c1d4..89a0513818763b 100644 --- a/flow-typed/npm/doctrine_vx.x.x.js +++ b/flow-typed/npm/doctrine_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 56dcaea538953cde3e2802298561e2d7 -// flow-typed version: <>/doctrine_v^2.0.0/flow_v0.54.0 +// flow-typed signature: b3a349ef6376b5ccde2f805559bedf7d +// flow-typed version: <>/doctrine_v^2.0.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/dom-helpers_vx.x.x.js b/flow-typed/npm/dom-helpers_vx.x.x.js index ed59064d1af65f..c7b571b1569c50 100644 --- a/flow-typed/npm/dom-helpers_vx.x.x.js +++ b/flow-typed/npm/dom-helpers_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6e13ad7e17225bd5c380880c7d5ef83d -// flow-typed version: <>/dom-helpers_v^3.2.1/flow_v0.54.0 +// flow-typed signature: 338a8426bbce2855e05c74009157135f +// flow-typed version: <>/dom-helpers_v^3.2.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js b/flow-typed/npm/eslint-config-airbnb_vx.x.x.js index 86c71eb06bcb62..ea6d199c217637 100644 --- a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js +++ b/flow-typed/npm/eslint-config-airbnb_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 433f4ad60d300050663a485ffb169c22 -// flow-typed version: <>/eslint-config-airbnb_v^15.1.0/flow_v0.54.0 +// flow-typed signature: 79464672d1f7bfe1d8d0eda64067320c +// flow-typed version: <>/eslint-config-airbnb_v^15.1.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-import-resolver-webpack_vx.x.x.js b/flow-typed/npm/eslint-import-resolver-webpack_vx.x.x.js index d9b147bae576a9..c95660b136036d 100644 --- a/flow-typed/npm/eslint-import-resolver-webpack_vx.x.x.js +++ b/flow-typed/npm/eslint-import-resolver-webpack_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d06e5c0e011f6e6d5faca6c62287a1c8 -// flow-typed version: <>/eslint-import-resolver-webpack_v^0.8.3/flow_v0.54.0 +// flow-typed signature: a8a20bc7eb087b08b0c6a438ebcbeb4b +// flow-typed version: <>/eslint-import-resolver-webpack_v^0.8.3/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-babel_vx.x.x.js b/flow-typed/npm/eslint-plugin-babel_vx.x.x.js index 5cd95055c423a9..c0bc5134f4723c 100644 --- a/flow-typed/npm/eslint-plugin-babel_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-babel_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f95cb564d250e5362d7a54eb818398ab -// flow-typed version: <>/eslint-plugin-babel_v^4.1.2/flow_v0.54.0 +// flow-typed signature: 92d82dcd42d3e2fcdbcc3e2d5ec8474d +// flow-typed version: <>/eslint-plugin-babel_v^4.1.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js index 5ea61aed3383b5..41f8d9d0e35eef 100644 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 804eeb406f1e7b047cd5e3e344073ae9 -// flow-typed version: <>/eslint-plugin-flowtype_v^2.35.0/flow_v0.54.0 +// flow-typed signature: 031af006d6944dc0932f503f4c70d15f +// flow-typed version: <>/eslint-plugin-flowtype_v^2.35.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-import_vx.x.x.js b/flow-typed/npm/eslint-plugin-import_vx.x.x.js index 60bb0367e15511..f9952f5074ba82 100644 --- a/flow-typed/npm/eslint-plugin-import_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-import_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d406ccbd333912dbe300a741f10469c5 -// flow-typed version: <>/eslint-plugin-import_v^2.7.0/flow_v0.54.0 +// flow-typed signature: 5d724bb54b7f755d333168a8f6684d9c +// flow-typed version: <>/eslint-plugin-import_v^2.7.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js index 5eb47405f330a0..867c67893685a9 100644 --- a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2755ef291c3a49c55956c59e702941af -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^5.1.1/flow_v0.54.0 +// flow-typed signature: 842037a923c06d49835dd78f0af13b9c +// flow-typed version: <>/eslint-plugin-jsx-a11y_v^5.1.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-material-ui_vx.x.x.js b/flow-typed/npm/eslint-plugin-material-ui_vx.x.x.js index f14c0d9535b703..b0601a2d30d856 100644 --- a/flow-typed/npm/eslint-plugin-material-ui_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-material-ui_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9eaedc7856bb403cabba6741947fc8ee -// flow-typed version: <>/eslint-plugin-material-ui_vfile:packages/eslint-plugin-material-ui/flow_v0.54.0 +// flow-typed signature: 364c3730a4fc3a28c89f4265868238c0 +// flow-typed version: <>/eslint-plugin-material-ui_vfile:packages/eslint-plugin-material-ui/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-mocha_vx.x.x.js b/flow-typed/npm/eslint-plugin-mocha_vx.x.x.js index 2bea1b3d434360..b39a4adfc5e3bd 100644 --- a/flow-typed/npm/eslint-plugin-mocha_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-mocha_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c978457e4e2cad813de518ae11e28d14 -// flow-typed version: <>/eslint-plugin-mocha_v^4.11.0/flow_v0.54.0 +// flow-typed signature: edec377a09de6cb002acfed5da8a3a1b +// flow-typed version: <>/eslint-plugin-mocha_v^4.11.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js index 3dd70efe3cd2dc..8037acf8c0190b 100644 --- a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9639059e12b75d82e4c0eb6ea7de38ae -// flow-typed version: <>/eslint-plugin-prettier_v^2.2.0/flow_v0.54.0 +// flow-typed signature: f1a51233b3cf47086ba5f249e8fd0345 +// flow-typed version: <>/eslint-plugin-prettier_v^2.3.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-react_vx.x.x.js b/flow-typed/npm/eslint-plugin-react_vx.x.x.js index 7d279957750da5..4eede50225b74d 100644 --- a/flow-typed/npm/eslint-plugin-react_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-react_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 37ebd9063bd19708fdec378dc23cd1a3 -// flow-typed version: <>/eslint-plugin-react_v^7.3.0/flow_v0.54.0 +// flow-typed signature: 9d901e245328da876563dd285b4a122a +// flow-typed version: <>/eslint-plugin-react_v^7.4.0-rc.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: @@ -62,6 +62,10 @@ declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location' { declare module.exports: any; } +declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence' { + declare module.exports: any; +} + declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' { declare module.exports: any; } @@ -347,6 +351,9 @@ declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' { declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-tag-location'>; } +declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence.js' { + declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'>; +} declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' { declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>; } diff --git a/flow-typed/npm/eslint-plugin-spellcheck_vx.x.x.js b/flow-typed/npm/eslint-plugin-spellcheck_vx.x.x.js index f45ccfe8ca88aa..04c32686d376ec 100644 --- a/flow-typed/npm/eslint-plugin-spellcheck_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-spellcheck_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 29239345655fc473e42748c6a69f4cc6 -// flow-typed version: <>/eslint-plugin-spellcheck_v^0.0.8/flow_v0.54.0 +// flow-typed signature: 40556447c83f0b5cf5ff491d7adcec4f +// flow-typed version: <>/eslint-plugin-spellcheck_v^0.0.8/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index 72b09d746976be..3fc57a3990efad 100644 --- a/flow-typed/npm/eslint_vx.x.x.js +++ b/flow-typed/npm/eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6d2c803b604e70f3fc109d8e1a89a3b2 -// flow-typed version: <>/eslint_v^4.5.0/flow_v0.54.0 +// flow-typed signature: f8359f461a3fe18d88cfb6bb0a8b5013 +// flow-typed version: <>/eslint_v^4.7.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: @@ -214,7 +214,7 @@ declare module 'eslint/lib/options' { declare module.exports: any; } -declare module 'eslint/lib/rule-context' { +declare module 'eslint/lib/report-translator' { declare module.exports: any; } @@ -358,6 +358,10 @@ declare module 'eslint/lib/rules/func-style' { declare module.exports: any; } +declare module 'eslint/lib/rules/function-paren-newline' { + declare module.exports: any; +} + declare module 'eslint/lib/rules/generator-star-spacing' { declare module.exports: any; } @@ -1234,18 +1238,10 @@ declare module 'eslint/lib/rules/yoda' { declare module.exports: any; } -declare module 'eslint/lib/testers/event-generator-tester' { - declare module.exports: any; -} - declare module 'eslint/lib/testers/rule-tester' { declare module.exports: any; } -declare module 'eslint/lib/testers/test-parser' { - declare module.exports: any; -} - declare module 'eslint/lib/timing' { declare module.exports: any; } @@ -1306,6 +1302,10 @@ declare module 'eslint/lib/util/ajv' { declare module.exports: any; } +declare module 'eslint/lib/util/apply-disable-directives' { + declare module.exports: any; +} + declare module 'eslint/lib/util/fix-tracker' { declare module.exports: any; } @@ -1515,8 +1515,8 @@ declare module 'eslint/lib/logging.js' { declare module 'eslint/lib/options.js' { declare module.exports: $Exports<'eslint/lib/options'>; } -declare module 'eslint/lib/rule-context.js' { - declare module.exports: $Exports<'eslint/lib/rule-context'>; +declare module 'eslint/lib/report-translator.js' { + declare module.exports: $Exports<'eslint/lib/report-translator'>; } declare module 'eslint/lib/rules.js' { declare module.exports: $Exports<'eslint/lib/rules'>; @@ -1623,6 +1623,9 @@ declare module 'eslint/lib/rules/func-names.js' { declare module 'eslint/lib/rules/func-style.js' { declare module.exports: $Exports<'eslint/lib/rules/func-style'>; } +declare module 'eslint/lib/rules/function-paren-newline.js' { + declare module.exports: $Exports<'eslint/lib/rules/function-paren-newline'>; +} declare module 'eslint/lib/rules/generator-star-spacing.js' { declare module.exports: $Exports<'eslint/lib/rules/generator-star-spacing'>; } @@ -2280,15 +2283,9 @@ declare module 'eslint/lib/rules/yield-star-spacing.js' { declare module 'eslint/lib/rules/yoda.js' { declare module.exports: $Exports<'eslint/lib/rules/yoda'>; } -declare module 'eslint/lib/testers/event-generator-tester.js' { - declare module.exports: $Exports<'eslint/lib/testers/event-generator-tester'>; -} declare module 'eslint/lib/testers/rule-tester.js' { declare module.exports: $Exports<'eslint/lib/testers/rule-tester'>; } -declare module 'eslint/lib/testers/test-parser.js' { - declare module.exports: $Exports<'eslint/lib/testers/test-parser'>; -} declare module 'eslint/lib/timing.js' { declare module.exports: $Exports<'eslint/lib/timing'>; } @@ -2334,6 +2331,9 @@ declare module 'eslint/lib/token-store/utils.js' { declare module 'eslint/lib/util/ajv.js' { declare module.exports: $Exports<'eslint/lib/util/ajv'>; } +declare module 'eslint/lib/util/apply-disable-directives.js' { + declare module.exports: $Exports<'eslint/lib/util/apply-disable-directives'>; +} declare module 'eslint/lib/util/fix-tracker.js' { declare module.exports: $Exports<'eslint/lib/util/fix-tracker'>; } diff --git a/flow-typed/npm/eventsource-polyfill_vx.x.x.js b/flow-typed/npm/eventsource-polyfill_vx.x.x.js index 4b73b8732cf310..d555da02ba4586 100644 --- a/flow-typed/npm/eventsource-polyfill_vx.x.x.js +++ b/flow-typed/npm/eventsource-polyfill_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 06ad1c6c34156832188d9eef2b89f491 -// flow-typed version: <>/eventsource-polyfill_v^0.9.6/flow_v0.54.0 +// flow-typed signature: 19aefd9226fb4e09f3802bcafa6e723a +// flow-typed version: <>/eventsource-polyfill_v^0.9.6/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/fg-loadcss_vx.x.x.js b/flow-typed/npm/fg-loadcss_vx.x.x.js index 250eb4fcf64b7f..10e3e6b1670bf9 100644 --- a/flow-typed/npm/fg-loadcss_vx.x.x.js +++ b/flow-typed/npm/fg-loadcss_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c0f738056e13db2ae35fdcfb6fb84c02 -// flow-typed version: <>/fg-loadcss_v^1.3.1/flow_v0.54.0 +// flow-typed signature: 6f7a03b868fef210b2ef7df2bc6a2417 +// flow-typed version: <>/fg-loadcss_v^1.3.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/file-loader_vx.x.x.js b/flow-typed/npm/file-loader_vx.x.x.js index 900c4c7b7f23bd..c1dedcff60fb31 100644 --- a/flow-typed/npm/file-loader_vx.x.x.js +++ b/flow-typed/npm/file-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2cdad435e8764630553d889534a8d4af -// flow-typed version: <>/file-loader_v^0.11.2/flow_v0.54.0 +// flow-typed signature: b5b0d628ad6e2af6897fc160e762c1c6 +// flow-typed version: <>/file-loader_v^0.11.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-copy-source_vx.x.x.js b/flow-typed/npm/flow-copy-source_vx.x.x.js index f2f346deafffff..d874913dc059ff 100644 --- a/flow-typed/npm/flow-copy-source_vx.x.x.js +++ b/flow-typed/npm/flow-copy-source_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1a42d763b8ea49aa74c3a45e74f1be73 -// flow-typed version: <>/flow-copy-source_v^1.2.1/flow_v0.54.0 +// flow-typed signature: af16169127388b975090898a41cb7187 +// flow-typed version: <>/flow-copy-source_v^1.2.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-typed_vx.x.x.js b/flow-typed/npm/flow-typed_vx.x.x.js index e24d56de4cf0a9..7d82b668e24947 100644 --- a/flow-typed/npm/flow-typed_vx.x.x.js +++ b/flow-typed/npm/flow-typed_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 87c8b4fa302cc06046923631cc5938da -// flow-typed version: <>/flow-typed_v^2.1.5/flow_v0.54.0 +// flow-typed signature: b6b35d995e7a3374f66dbf758755c4ba +// flow-typed version: <>/flow-typed_v^2.1.5/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/fs-extra_vx.x.x.js b/flow-typed/npm/fs-extra_vx.x.x.js index 1ba90f53f32505..c64118d1ac1c8c 100644 --- a/flow-typed/npm/fs-extra_vx.x.x.js +++ b/flow-typed/npm/fs-extra_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 27d8712e32caf4700e8bb61d566e04ab -// flow-typed version: <>/fs-extra_v^4.0.1/flow_v0.54.0 +// flow-typed signature: e5271a1b7800236d9a6656bd9ef77f44 +// flow-typed version: <>/fs-extra_v^4.0.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/glob_vx.x.x.js b/flow-typed/npm/glob_vx.x.x.js index a1c9a705c30402..d46d0315fe5d54 100644 --- a/flow-typed/npm/glob_vx.x.x.js +++ b/flow-typed/npm/glob_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 61e77d73c9d9cb9abe8a7ad7f76e855f -// flow-typed version: <>/glob_v^7.1.2/flow_v0.54.0 +// flow-typed signature: 9a0bcc6725bc62b77cd5b3d5a577ffc8 +// flow-typed version: <>/glob_v^7.1.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/gm_vx.x.x.js b/flow-typed/npm/gm_vx.x.x.js index 35d92364d4ca28..0f2bb61f060afa 100644 --- a/flow-typed/npm/gm_vx.x.x.js +++ b/flow-typed/npm/gm_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a227052f86f35d834462687e37fcca3f -// flow-typed version: <>/gm_v^1.23.0/flow_v0.54.0 +// flow-typed signature: 4dbc86f67f012b9028870bb7019fdb38 +// flow-typed version: <>/gm_v^1.23.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/hoist-non-react-statics_vx.x.x.js b/flow-typed/npm/hoist-non-react-statics_vx.x.x.js index 57eaa4aa69be18..a2b979437bd42b 100644 --- a/flow-typed/npm/hoist-non-react-statics_vx.x.x.js +++ b/flow-typed/npm/hoist-non-react-statics_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b5ecdfdc06177b19da04fc30105ec7b5 -// flow-typed version: <>/hoist-non-react-statics_v^1.2.0/flow_v0.54.0 +// flow-typed signature: a2164fa08ddebe14de85530f2006090a +// flow-typed version: <>/hoist-non-react-statics_v^1.2.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/jsdom_vx.x.x.js b/flow-typed/npm/jsdom_vx.x.x.js index ccf22b6e896e2b..c1f89bd3d605fa 100644 --- a/flow-typed/npm/jsdom_vx.x.x.js +++ b/flow-typed/npm/jsdom_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 35e0e50674dbd2a7c8680383200b190c -// flow-typed version: <>/jsdom_v11.1.0/flow_v0.54.0 +// flow-typed signature: e60ac8c8f731040003a2e5c18a874589 +// flow-typed version: <>/jsdom_v11.1.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/json-loader_vx.x.x.js b/flow-typed/npm/json-loader_vx.x.x.js index 68807c3edfca85..7bb641ea95d012 100644 --- a/flow-typed/npm/json-loader_vx.x.x.js +++ b/flow-typed/npm/json-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5448e097c6045797558475347b378cc2 -// flow-typed version: <>/json-loader_v^0.5.7/flow_v0.54.0 +// flow-typed signature: bbd50420d7b6e00eec4d791edfa16dd7 +// flow-typed version: <>/json-loader_v^0.5.7/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/jss-preset-default_vx.x.x.js b/flow-typed/npm/jss-preset-default_vx.x.x.js index d7e38d2e1b997e..e3c8548928e4ca 100644 --- a/flow-typed/npm/jss-preset-default_vx.x.x.js +++ b/flow-typed/npm/jss-preset-default_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 09b8eb1f41aff5762f35eb0b0515b20f -// flow-typed version: <>/jss-preset-default_v^3.0.0/flow_v0.54.0 +// flow-typed signature: 80f037b2a5143b759b6803da758cefe8 +// flow-typed version: <>/jss-preset-default_v^3.0.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-browserstack-launcher_vx.x.x.js b/flow-typed/npm/karma-browserstack-launcher_vx.x.x.js index d5b83536b4f6c0..aef28ee082c0f1 100644 --- a/flow-typed/npm/karma-browserstack-launcher_vx.x.x.js +++ b/flow-typed/npm/karma-browserstack-launcher_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 22043f647a171581a730d5da52961945 -// flow-typed version: <>/karma-browserstack-launcher_v^1.3.0/flow_v0.54.0 +// flow-typed signature: 208cd6e9d61d55a2c3f2d443a0a0383b +// flow-typed version: <>/karma-browserstack-launcher_v^1.3.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js b/flow-typed/npm/karma-mocha-reporter_vx.x.x.js index 204fe990559cae..e182033a9e730b 100644 --- a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js +++ b/flow-typed/npm/karma-mocha-reporter_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 032a79bb280bc01cd0daf521ab6383ce -// flow-typed version: <>/karma-mocha-reporter_v^2.2.4/flow_v0.54.0 +// flow-typed signature: 8a0786d10938cfd2597a220a68679954 +// flow-typed version: <>/karma-mocha-reporter_v^2.2.4/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-mocha_vx.x.x.js b/flow-typed/npm/karma-mocha_vx.x.x.js index f585faf0d32537..5f21d9c12ce7d5 100644 --- a/flow-typed/npm/karma-mocha_vx.x.x.js +++ b/flow-typed/npm/karma-mocha_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ba9c4bbd9196eaf48776300e3d892f74 -// flow-typed version: <>/karma-mocha_v^1.3.0/flow_v0.54.0 +// flow-typed signature: a230edfe63f72370f7bfbc07c784011b +// flow-typed version: <>/karma-mocha_v^1.3.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-phantomjs-launcher_vx.x.x.js b/flow-typed/npm/karma-phantomjs-launcher_vx.x.x.js index 63032e51f4cb6d..0ac76cf5dfc27f 100644 --- a/flow-typed/npm/karma-phantomjs-launcher_vx.x.x.js +++ b/flow-typed/npm/karma-phantomjs-launcher_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 184e99827adc8d1deff68ff21d345012 -// flow-typed version: <>/karma-phantomjs-launcher_v^1.0.4/flow_v0.54.0 +// flow-typed signature: 4edf981e5d1dbd6583d1385e8d87abd7 +// flow-typed version: <>/karma-phantomjs-launcher_v^1.0.4/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-sourcemap-loader_vx.x.x.js b/flow-typed/npm/karma-sourcemap-loader_vx.x.x.js index f564b40ed7f29c..507f246f049182 100644 --- a/flow-typed/npm/karma-sourcemap-loader_vx.x.x.js +++ b/flow-typed/npm/karma-sourcemap-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6c2faea5f0fb8e71208e760295d2cfb6 -// flow-typed version: <>/karma-sourcemap-loader_v^0.3.7/flow_v0.54.0 +// flow-typed signature: 391a0cadd0d3d461dbe65210cf9ad3f1 +// flow-typed version: <>/karma-sourcemap-loader_v^0.3.7/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma-webpack_vx.x.x.js b/flow-typed/npm/karma-webpack_vx.x.x.js index 30375aed61687e..efca08d6a48db9 100644 --- a/flow-typed/npm/karma-webpack_vx.x.x.js +++ b/flow-typed/npm/karma-webpack_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ed449372dae7d341ffd30137b52349f1 -// flow-typed version: <>/karma-webpack_v^2.0.4/flow_v0.54.0 +// flow-typed signature: 6446b240590e4ef6d57e2d324f4c42bc +// flow-typed version: <>/karma-webpack_v^2.0.4/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/karma_vx.x.x.js b/flow-typed/npm/karma_vx.x.x.js index 9590eff3b3da22..c51f5c3afc33b4 100644 --- a/flow-typed/npm/karma_vx.x.x.js +++ b/flow-typed/npm/karma_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0a5ca76074f6d135bd4a3fceef53a100 -// flow-typed version: <>/karma_v^1.7.1/flow_v0.54.0 +// flow-typed signature: b9dca7a6f34caf52370fad8f0de9185d +// flow-typed version: <>/karma_v^1.7.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/keycode_vx.x.x.js b/flow-typed/npm/keycode_vx.x.x.js index 97b993e742cc57..e42d29250fdfe5 100644 --- a/flow-typed/npm/keycode_vx.x.x.js +++ b/flow-typed/npm/keycode_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 208922bdd4aed0cc22c0bc52e5b91f95 -// flow-typed version: <>/keycode_v^2.1.9/flow_v0.54.0 +// flow-typed signature: 29395a8bc1252d8b90069c67f8eb1e34 +// flow-typed version: <>/keycode_v^2.1.9/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/next_vx.x.x.js b/flow-typed/npm/next_vx.x.x.js index 90b694707ac56c..de8c4c5c116187 100644 --- a/flow-typed/npm/next_vx.x.x.js +++ b/flow-typed/npm/next_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2a14b359fe2c0b63e8402613593e1a1b -// flow-typed version: <>/next_v^3.2.1/flow_v0.54.0 +// flow-typed signature: 86a167b71da946c7467910448a92c403 +// flow-typed version: <>/next_v^3.2.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/nprogress_vx.x.x.js b/flow-typed/npm/nprogress_vx.x.x.js index 87359b8d54da47..2499083c46cc2b 100644 --- a/flow-typed/npm/nprogress_vx.x.x.js +++ b/flow-typed/npm/nprogress_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1ec08565c8ad0aa2da866d20dfe50d40 -// flow-typed version: <>/nprogress_v^0.2.0/flow_v0.54.0 +// flow-typed signature: 3261f6ff4d2acbe6398dd3e60e7668f4 +// flow-typed version: <>/nprogress_v^0.2.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/nyc_vx.x.x.js b/flow-typed/npm/nyc_vx.x.x.js index d1f3e04086d57c..5ee1ccf56a5543 100644 --- a/flow-typed/npm/nyc_vx.x.x.js +++ b/flow-typed/npm/nyc_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3b114a9c66075ef6aa2071ff91d9f286 -// flow-typed version: <>/nyc_v^11.0.3/flow_v0.54.0 +// flow-typed signature: 26090c42b61c9008a9ff252ad3d39f34 +// flow-typed version: <>/nyc_v^11.2.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/phantomjs-prebuilt_vx.x.x.js b/flow-typed/npm/phantomjs-prebuilt_vx.x.x.js index b9815563c6532f..e2692297399ee7 100644 --- a/flow-typed/npm/phantomjs-prebuilt_vx.x.x.js +++ b/flow-typed/npm/phantomjs-prebuilt_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9a4c31572d6eb92ec74ee0daff732ef2 -// flow-typed version: <>/phantomjs-prebuilt_v^2.1.15/flow_v0.54.0 +// flow-typed signature: 68820aac4d3770ff1959322b28dbdbf0 +// flow-typed version: <>/phantomjs-prebuilt_v^2.1.15/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/prettier_vx.x.x.js b/flow-typed/npm/prettier_vx.x.x.js index d97e623720b307..ef5c7fa3b323a8 100644 --- a/flow-typed/npm/prettier_vx.x.x.js +++ b/flow-typed/npm/prettier_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 62764e23ca4295080a266d27836000a8 -// flow-typed version: <>/prettier_v^1.6.1/flow_v0.54.0 +// flow-typed signature: 4a7cd3a46777b5e4eb0de70be343d527 +// flow-typed version: <>/prettier_v^1.7.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/prismjs_vx.x.x.js b/flow-typed/npm/prismjs_vx.x.x.js index fc2125570040ea..3b1e79fe9c7d8c 100644 --- a/flow-typed/npm/prismjs_vx.x.x.js +++ b/flow-typed/npm/prismjs_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 352cc4f7c77e9bca906298b96a2c8f7e -// flow-typed version: <>/prismjs_v^1.6.0/flow_v0.54.0 +// flow-typed signature: 3b1ba7420dcdbc68c7f45da488fb0141 +// flow-typed version: <>/prismjs_v^1.8.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,10 @@ declare module 'prismjs' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'prismjs/components' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-abap' { declare module.exports: any; } @@ -70,6 +74,14 @@ declare module 'prismjs/components/prism-applescript.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-arduino' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-arduino.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-asciidoc' { declare module.exports: any; } @@ -246,6 +258,14 @@ declare module 'prismjs/components/prism-diff.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-django' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-django.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-docker' { declare module.exports: any; } @@ -582,6 +602,14 @@ declare module 'prismjs/components/prism-monkey.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-n4js' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-n4js.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-nasm' { declare module.exports: any; } @@ -638,6 +666,14 @@ declare module 'prismjs/components/prism-ocaml.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-opencl' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-opencl.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-oz' { declare module.exports: any; } @@ -790,6 +826,14 @@ declare module 'prismjs/components/prism-reason.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-renpy' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-renpy.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-rest' { declare module.exports: any; } @@ -942,6 +986,14 @@ declare module 'prismjs/components/prism-typescript.min' { declare module.exports: any; } +declare module 'prismjs/components/prism-vbnet' { + declare module.exports: any; +} + +declare module 'prismjs/components/prism-vbnet.min' { + declare module.exports: any; +} + declare module 'prismjs/components/prism-verilog' { declare module.exports: any; } @@ -1062,14 +1114,6 @@ declare module 'prismjs/plugins/highlight-keywords/prism-highlight-keywords.min' declare module.exports: any; } -declare module 'prismjs/plugins/ie8/prism-ie8' { - declare module.exports: any; -} - -declare module 'prismjs/plugins/ie8/prism-ie8.min' { - declare module.exports: any; -} - declare module 'prismjs/plugins/jsonp-highlight/prism-jsonp-highlight' { declare module.exports: any; } @@ -1210,6 +1254,10 @@ declare module 'prismjs/prism' { declare module.exports: any; } +declare module 'prismjs/tests/helper/components' { + declare module.exports: any; +} + declare module 'prismjs/tests/helper/prism-loader' { declare module.exports: any; } @@ -1279,6 +1327,9 @@ declare module 'prismjs/vendor/promise' { } // Filename aliases +declare module 'prismjs/components.js' { + declare module.exports: $Exports<'prismjs/components'>; +} declare module 'prismjs/components/prism-abap.js' { declare module.exports: $Exports<'prismjs/components/prism-abap'>; } @@ -1315,6 +1366,12 @@ declare module 'prismjs/components/prism-applescript.js' { declare module 'prismjs/components/prism-applescript.min.js' { declare module.exports: $Exports<'prismjs/components/prism-applescript.min'>; } +declare module 'prismjs/components/prism-arduino.js' { + declare module.exports: $Exports<'prismjs/components/prism-arduino'>; +} +declare module 'prismjs/components/prism-arduino.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-arduino.min'>; +} declare module 'prismjs/components/prism-asciidoc.js' { declare module.exports: $Exports<'prismjs/components/prism-asciidoc'>; } @@ -1447,6 +1504,12 @@ declare module 'prismjs/components/prism-diff.js' { declare module 'prismjs/components/prism-diff.min.js' { declare module.exports: $Exports<'prismjs/components/prism-diff.min'>; } +declare module 'prismjs/components/prism-django.js' { + declare module.exports: $Exports<'prismjs/components/prism-django'>; +} +declare module 'prismjs/components/prism-django.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-django.min'>; +} declare module 'prismjs/components/prism-docker.js' { declare module.exports: $Exports<'prismjs/components/prism-docker'>; } @@ -1699,6 +1762,12 @@ declare module 'prismjs/components/prism-monkey.js' { declare module 'prismjs/components/prism-monkey.min.js' { declare module.exports: $Exports<'prismjs/components/prism-monkey.min'>; } +declare module 'prismjs/components/prism-n4js.js' { + declare module.exports: $Exports<'prismjs/components/prism-n4js'>; +} +declare module 'prismjs/components/prism-n4js.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-n4js.min'>; +} declare module 'prismjs/components/prism-nasm.js' { declare module.exports: $Exports<'prismjs/components/prism-nasm'>; } @@ -1741,6 +1810,12 @@ declare module 'prismjs/components/prism-ocaml.js' { declare module 'prismjs/components/prism-ocaml.min.js' { declare module.exports: $Exports<'prismjs/components/prism-ocaml.min'>; } +declare module 'prismjs/components/prism-opencl.js' { + declare module.exports: $Exports<'prismjs/components/prism-opencl'>; +} +declare module 'prismjs/components/prism-opencl.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-opencl.min'>; +} declare module 'prismjs/components/prism-oz.js' { declare module.exports: $Exports<'prismjs/components/prism-oz'>; } @@ -1855,6 +1930,12 @@ declare module 'prismjs/components/prism-reason.js' { declare module 'prismjs/components/prism-reason.min.js' { declare module.exports: $Exports<'prismjs/components/prism-reason.min'>; } +declare module 'prismjs/components/prism-renpy.js' { + declare module.exports: $Exports<'prismjs/components/prism-renpy'>; +} +declare module 'prismjs/components/prism-renpy.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-renpy.min'>; +} declare module 'prismjs/components/prism-rest.js' { declare module.exports: $Exports<'prismjs/components/prism-rest'>; } @@ -1969,6 +2050,12 @@ declare module 'prismjs/components/prism-typescript.js' { declare module 'prismjs/components/prism-typescript.min.js' { declare module.exports: $Exports<'prismjs/components/prism-typescript.min'>; } +declare module 'prismjs/components/prism-vbnet.js' { + declare module.exports: $Exports<'prismjs/components/prism-vbnet'>; +} +declare module 'prismjs/components/prism-vbnet.min.js' { + declare module.exports: $Exports<'prismjs/components/prism-vbnet.min'>; +} declare module 'prismjs/components/prism-verilog.js' { declare module.exports: $Exports<'prismjs/components/prism-verilog'>; } @@ -2059,12 +2146,6 @@ declare module 'prismjs/plugins/highlight-keywords/prism-highlight-keywords.js' declare module 'prismjs/plugins/highlight-keywords/prism-highlight-keywords.min.js' { declare module.exports: $Exports<'prismjs/plugins/highlight-keywords/prism-highlight-keywords.min'>; } -declare module 'prismjs/plugins/ie8/prism-ie8.js' { - declare module.exports: $Exports<'prismjs/plugins/ie8/prism-ie8'>; -} -declare module 'prismjs/plugins/ie8/prism-ie8.min.js' { - declare module.exports: $Exports<'prismjs/plugins/ie8/prism-ie8.min'>; -} declare module 'prismjs/plugins/jsonp-highlight/prism-jsonp-highlight.js' { declare module.exports: $Exports<'prismjs/plugins/jsonp-highlight/prism-jsonp-highlight'>; } @@ -2170,6 +2251,9 @@ declare module 'prismjs/plugins/wpd/prism-wpd.min.js' { declare module 'prismjs/prism.js' { declare module.exports: $Exports<'prismjs/prism'>; } +declare module 'prismjs/tests/helper/components.js' { + declare module.exports: $Exports<'prismjs/tests/helper/components'>; +} declare module 'prismjs/tests/helper/prism-loader.js' { declare module.exports: $Exports<'prismjs/tests/helper/prism-loader'>; } diff --git a/flow-typed/npm/random-words_vx.x.x.js b/flow-typed/npm/random-words_vx.x.x.js index e91bb1768546f1..d84fbd78926a0d 100644 --- a/flow-typed/npm/random-words_vx.x.x.js +++ b/flow-typed/npm/random-words_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 98ca1d9972b1d01baed8e4de16fa6885 -// flow-typed version: <>/random-words_v0.0.1/flow_v0.54.0 +// flow-typed signature: 248dd17dabbd3b1db9da614595bdcfae +// flow-typed version: <>/random-words_v0.0.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/raw-loader_vx.x.x.js b/flow-typed/npm/raw-loader_vx.x.x.js index a07725ebfbe2f6..bab56ee48fc98e 100644 --- a/flow-typed/npm/raw-loader_vx.x.x.js +++ b/flow-typed/npm/raw-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7d2d5827b0739beee788b6e1344d53da -// flow-typed version: <>/raw-loader_v^0.5.1/flow_v0.54.0 +// flow-typed signature: 60ac0b32b17f2de013e49d321ebcbc31 +// flow-typed version: <>/raw-loader_v^0.5.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-a11y_vx.x.x.js b/flow-typed/npm/react-a11y_vx.x.x.js index 39fc788832ef47..70eb3f2690de5e 100644 --- a/flow-typed/npm/react-a11y_vx.x.x.js +++ b/flow-typed/npm/react-a11y_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5300e34c62744a25c92b0c5fb663b32c -// flow-typed version: <>/react-a11y_v^0.3.4/flow_v0.54.0 +// flow-typed signature: 234664be796fd1a633aebfc9efdec759 +// flow-typed version: <>/react-a11y_v^0.3.4/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-autosuggest_vx.x.x.js b/flow-typed/npm/react-autosuggest_vx.x.x.js index cdddf645beb833..64f7d531ab64aa 100644 --- a/flow-typed/npm/react-autosuggest_vx.x.x.js +++ b/flow-typed/npm/react-autosuggest_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 93e927ff2081d47dba907f81d3955b85 -// flow-typed version: <>/react-autosuggest_v^9.3.2/flow_v0.54.0 +// flow-typed signature: db494761e6ed35269a2f96b010d9edb6 +// flow-typed version: <>/react-autosuggest_v^9.3.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-docgen_vx.x.x.js b/flow-typed/npm/react-docgen_vx.x.x.js index 6d5070e5cc3024..1b4268b256df04 100644 --- a/flow-typed/npm/react-docgen_vx.x.x.js +++ b/flow-typed/npm/react-docgen_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9d623201a913144b2280e68335d780f8 -// flow-typed version: <>/react-docgen_v^3.0.0-beta6/flow_v0.54.0 +// flow-typed signature: 0b09ffa1970b39abc98036ca3e1978d1 +// flow-typed version: <>/react-docgen_v^3.0.0-beta7/flow_v0.55.0 /** * This is an autogenerated libdef stub for: @@ -22,6 +22,18 @@ declare module 'react-docgen' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'react-docgen/bin/__tests__/example/customResolver' { + declare module.exports: any; +} + +declare module 'react-docgen/bin/__tests__/example/MultipleComponents' { + declare module.exports: any; +} + +declare module 'react-docgen/bin/__tests__/react-docgen-test' { + declare module.exports: any; +} + declare module 'react-docgen/bin/react-docgen' { declare module.exports: any; } @@ -238,6 +250,10 @@ declare module 'react-docgen/dist/utils/resolveHOC' { declare module.exports: any; } +declare module 'react-docgen/dist/utils/resolveObjectKeysToArray' { + declare module.exports: any; +} + declare module 'react-docgen/dist/utils/resolveToModule' { declare module.exports: any; } @@ -254,27 +270,16 @@ declare module 'react-docgen/dist/utils/traverse' { declare module.exports: any; } -declare module 'react-docgen/example/components/Component' { - declare module.exports: any; -} - -declare module 'react-docgen/example/components/NoComponent' { - declare module.exports: any; -} - -declare module 'react-docgen/example/generateMarkdown' { - declare module.exports: any; +// Filename aliases +declare module 'react-docgen/bin/__tests__/example/customResolver.js' { + declare module.exports: $Exports<'react-docgen/bin/__tests__/example/customResolver'>; } - -declare module 'react-docgen/flow-typed/react-docgen' { - declare module.exports: any; +declare module 'react-docgen/bin/__tests__/example/MultipleComponents.js' { + declare module.exports: $Exports<'react-docgen/bin/__tests__/example/MultipleComponents'>; } - -declare module 'react-docgen/flow-typed/recast' { - declare module.exports: any; +declare module 'react-docgen/bin/__tests__/react-docgen-test.js' { + declare module.exports: $Exports<'react-docgen/bin/__tests__/react-docgen-test'>; } - -// Filename aliases declare module 'react-docgen/bin/react-docgen.js' { declare module.exports: $Exports<'react-docgen/bin/react-docgen'>; } @@ -437,6 +442,9 @@ declare module 'react-docgen/dist/utils/resolveExportDeclaration.js' { declare module 'react-docgen/dist/utils/resolveHOC.js' { declare module.exports: $Exports<'react-docgen/dist/utils/resolveHOC'>; } +declare module 'react-docgen/dist/utils/resolveObjectKeysToArray.js' { + declare module.exports: $Exports<'react-docgen/dist/utils/resolveObjectKeysToArray'>; +} declare module 'react-docgen/dist/utils/resolveToModule.js' { declare module.exports: $Exports<'react-docgen/dist/utils/resolveToModule'>; } @@ -449,18 +457,3 @@ declare module 'react-docgen/dist/utils/setPropDescription.js' { declare module 'react-docgen/dist/utils/traverse.js' { declare module.exports: $Exports<'react-docgen/dist/utils/traverse'>; } -declare module 'react-docgen/example/components/Component.js' { - declare module.exports: $Exports<'react-docgen/example/components/Component'>; -} -declare module 'react-docgen/example/components/NoComponent.js' { - declare module.exports: $Exports<'react-docgen/example/components/NoComponent'>; -} -declare module 'react-docgen/example/generateMarkdown.js' { - declare module.exports: $Exports<'react-docgen/example/generateMarkdown'>; -} -declare module 'react-docgen/flow-typed/react-docgen.js' { - declare module.exports: $Exports<'react-docgen/flow-typed/react-docgen'>; -} -declare module 'react-docgen/flow-typed/recast.js' { - declare module.exports: $Exports<'react-docgen/flow-typed/recast'>; -} diff --git a/flow-typed/npm/react-event-listener_vx.x.x.js b/flow-typed/npm/react-event-listener_vx.x.x.js index b0357e250d0421..687b47e051a77e 100644 --- a/flow-typed/npm/react-event-listener_vx.x.x.js +++ b/flow-typed/npm/react-event-listener_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1f3403aff69aee3fe9ba14eca03a3944 -// flow-typed version: <>/react-event-listener_v^0.5.0/flow_v0.54.0 +// flow-typed signature: 8da05749e8da706625805e8ca3dc06a1 +// flow-typed version: <>/react-event-listener_v^0.5.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-jss_vx.x.x.js b/flow-typed/npm/react-jss_vx.x.x.js index 85c18ee41f64cd..3dc0f713c4c194 100644 --- a/flow-typed/npm/react-jss_vx.x.x.js +++ b/flow-typed/npm/react-jss_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5647661c3185bedf14c2657078025733 -// flow-typed version: <>/react-jss_v^7.1.0/flow_v0.54.0 +// flow-typed signature: 2f72773e15b08f2f005d10222ec7050b +// flow-typed version: <>/react-jss_v^7.1.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-number-format_vx.x.x.js b/flow-typed/npm/react-number-format_vx.x.x.js new file mode 100644 index 00000000000000..f6166284c5ceb4 --- /dev/null +++ b/flow-typed/npm/react-number-format_vx.x.x.js @@ -0,0 +1,123 @@ +// flow-typed signature: 62329138f1d59b2132d5837d88421130 +// flow-typed version: <>/react-number-format_v^2.0.4/flow_v0.55.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-number-format' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'react-number-format' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'react-number-format/custom_formatters/card_expiry' { + declare module.exports: any; +} + +declare module 'react-number-format/dist/react-number-format' { + declare module.exports: any; +} + +declare module 'react-number-format/dist/react-number-format.min' { + declare module.exports: any; +} + +declare module 'react-number-format/example/src/index' { + declare module.exports: any; +} + +declare module 'react-number-format/karma.conf' { + declare module.exports: any; +} + +declare module 'react-number-format/lib/number_format' { + declare module.exports: any; +} + +declare module 'react-number-format/src/number_format' { + declare module.exports: any; +} + +declare module 'react-number-format/test/custom_formatters/card_expiry.spec' { + declare module.exports: any; +} + +declare module 'react-number-format/test/library/format_as_text.spec' { + declare module.exports: any; +} + +declare module 'react-number-format/test/library/input_numeric_format.spec' { + declare module.exports: any; +} + +declare module 'react-number-format/test/library/input.spec' { + declare module.exports: any; +} + +declare module 'react-number-format/test/test_util' { + declare module.exports: any; +} + +declare module 'react-number-format/webpack.bundle.config' { + declare module.exports: any; +} + +declare module 'react-number-format/webpack.dev.config' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-number-format/custom_formatters/card_expiry.js' { + declare module.exports: $Exports<'react-number-format/custom_formatters/card_expiry'>; +} +declare module 'react-number-format/dist/react-number-format.js' { + declare module.exports: $Exports<'react-number-format/dist/react-number-format'>; +} +declare module 'react-number-format/dist/react-number-format.min.js' { + declare module.exports: $Exports<'react-number-format/dist/react-number-format.min'>; +} +declare module 'react-number-format/example/src/index.js' { + declare module.exports: $Exports<'react-number-format/example/src/index'>; +} +declare module 'react-number-format/karma.conf.js' { + declare module.exports: $Exports<'react-number-format/karma.conf'>; +} +declare module 'react-number-format/lib/number_format.js' { + declare module.exports: $Exports<'react-number-format/lib/number_format'>; +} +declare module 'react-number-format/src/number_format.js' { + declare module.exports: $Exports<'react-number-format/src/number_format'>; +} +declare module 'react-number-format/test/custom_formatters/card_expiry.spec.js' { + declare module.exports: $Exports<'react-number-format/test/custom_formatters/card_expiry.spec'>; +} +declare module 'react-number-format/test/library/format_as_text.spec.js' { + declare module.exports: $Exports<'react-number-format/test/library/format_as_text.spec'>; +} +declare module 'react-number-format/test/library/input_numeric_format.spec.js' { + declare module.exports: $Exports<'react-number-format/test/library/input_numeric_format.spec'>; +} +declare module 'react-number-format/test/library/input.spec.js' { + declare module.exports: $Exports<'react-number-format/test/library/input.spec'>; +} +declare module 'react-number-format/test/test_util.js' { + declare module.exports: $Exports<'react-number-format/test/test_util'>; +} +declare module 'react-number-format/webpack.bundle.config.js' { + declare module.exports: $Exports<'react-number-format/webpack.bundle.config'>; +} +declare module 'react-number-format/webpack.dev.config.js' { + declare module.exports: $Exports<'react-number-format/webpack.dev.config'>; +} diff --git a/flow-typed/npm/react-popper_vx.x.x.js b/flow-typed/npm/react-popper_vx.x.x.js new file mode 100644 index 00000000000000..ebc61743266001 --- /dev/null +++ b/flow-typed/npm/react-popper_vx.x.x.js @@ -0,0 +1,95 @@ +// flow-typed signature: 7176fb82c0bd220d7939ebaf02fc64e2 +// flow-typed version: <>/react-popper_v^0.7.2/flow_v0.55.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-popper' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'react-popper' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'react-popper/dist/react-popper' { + declare module.exports: any; +} + +declare module 'react-popper/dist/react-popper.min' { + declare module.exports: any; +} + +declare module 'react-popper/lib/Arrow' { + declare module.exports: any; +} + +declare module 'react-popper/lib/Manager' { + declare module.exports: any; +} + +declare module 'react-popper/lib/Popper' { + declare module.exports: any; +} + +declare module 'react-popper/lib/PopperArrow' { + declare module.exports: any; +} + +declare module 'react-popper/lib/PopperComponent' { + declare module.exports: any; +} + +declare module 'react-popper/lib/PopperManager' { + declare module.exports: any; +} + +declare module 'react-popper/lib/react-popper' { + declare module.exports: any; +} + +declare module 'react-popper/lib/Target' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-popper/dist/react-popper.js' { + declare module.exports: $Exports<'react-popper/dist/react-popper'>; +} +declare module 'react-popper/dist/react-popper.min.js' { + declare module.exports: $Exports<'react-popper/dist/react-popper.min'>; +} +declare module 'react-popper/lib/Arrow.js' { + declare module.exports: $Exports<'react-popper/lib/Arrow'>; +} +declare module 'react-popper/lib/Manager.js' { + declare module.exports: $Exports<'react-popper/lib/Manager'>; +} +declare module 'react-popper/lib/Popper.js' { + declare module.exports: $Exports<'react-popper/lib/Popper'>; +} +declare module 'react-popper/lib/PopperArrow.js' { + declare module.exports: $Exports<'react-popper/lib/PopperArrow'>; +} +declare module 'react-popper/lib/PopperComponent.js' { + declare module.exports: $Exports<'react-popper/lib/PopperComponent'>; +} +declare module 'react-popper/lib/PopperManager.js' { + declare module.exports: $Exports<'react-popper/lib/PopperManager'>; +} +declare module 'react-popper/lib/react-popper.js' { + declare module.exports: $Exports<'react-popper/lib/react-popper'>; +} +declare module 'react-popper/lib/Target.js' { + declare module.exports: $Exports<'react-popper/lib/Target'>; +} diff --git a/flow-typed/npm/react-scrollbar-size_vx.x.x.js b/flow-typed/npm/react-scrollbar-size_vx.x.x.js index 107180826262cd..5e0165c05fbeb6 100644 --- a/flow-typed/npm/react-scrollbar-size_vx.x.x.js +++ b/flow-typed/npm/react-scrollbar-size_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 81f76444d506ab49eecb77f303bf640a -// flow-typed version: <>/react-scrollbar-size_v^2.0.0/flow_v0.54.0 +// flow-typed signature: 22b67dfba825cc51d1733bd63cbff873 +// flow-typed version: <>/react-scrollbar-size_v^2.0.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-swipeable-views_vx.x.x.js b/flow-typed/npm/react-swipeable-views_vx.x.x.js index fc0737a2404f09..c080a2e556651c 100644 --- a/flow-typed/npm/react-swipeable-views_vx.x.x.js +++ b/flow-typed/npm/react-swipeable-views_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1db8d120515d33f989c835b7fdaae586 -// flow-typed version: <>/react-swipeable-views_v^0.12.8/flow_v0.54.0 +// flow-typed signature: 1f338819f62cb0d7ebff60a62c59cfde +// flow-typed version: <>/react-swipeable-views_v^0.12.8/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-test-renderer_vx.x.x.js b/flow-typed/npm/react-test-renderer_vx.x.x.js index ff4e2eb3278d24..7b897b288ac4fc 100644 --- a/flow-typed/npm/react-test-renderer_vx.x.x.js +++ b/flow-typed/npm/react-test-renderer_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 3740475572bba74a7939fd357ac71266 -// flow-typed version: <>/react-test-renderer_v^15.6.1/flow_v0.54.0 +// flow-typed signature: 1a82aba989718ec6fe3a72098e1b1ba0 +// flow-typed version: <>/react-test-renderer_v^15.6.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/react-text-mask_vx.x.x.js b/flow-typed/npm/react-text-mask_vx.x.x.js new file mode 100644 index 00000000000000..33865640a86cc8 --- /dev/null +++ b/flow-typed/npm/react-text-mask_vx.x.x.js @@ -0,0 +1,81 @@ +// flow-typed signature: 6cf7150b40c39b41e979739f8a3ceb59 +// flow-typed version: <>/react-text-mask_v^5.0.2/flow_v0.55.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'react-text-mask' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'react-text-mask' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'react-text-mask/dist/reactTextMask' { + declare module.exports: any; +} + +declare module 'react-text-mask/example/app' { + declare module.exports: any; +} + +declare module 'react-text-mask/example/index' { + declare module.exports: any; +} + +declare module 'react-text-mask/example/server' { + declare module.exports: any; +} + +declare module 'react-text-mask/example/webpack.runReactExample' { + declare module.exports: any; +} + +declare module 'react-text-mask/src/reactTextMask' { + declare module.exports: any; +} + +declare module 'react-text-mask/test/reactTextMask.spec' { + declare module.exports: any; +} + +declare module 'react-text-mask/webpack.buildReactIntegration' { + declare module.exports: any; +} + +// Filename aliases +declare module 'react-text-mask/dist/reactTextMask.js' { + declare module.exports: $Exports<'react-text-mask/dist/reactTextMask'>; +} +declare module 'react-text-mask/example/app.js' { + declare module.exports: $Exports<'react-text-mask/example/app'>; +} +declare module 'react-text-mask/example/index.js' { + declare module.exports: $Exports<'react-text-mask/example/index'>; +} +declare module 'react-text-mask/example/server.js' { + declare module.exports: $Exports<'react-text-mask/example/server'>; +} +declare module 'react-text-mask/example/webpack.runReactExample.js' { + declare module.exports: $Exports<'react-text-mask/example/webpack.runReactExample'>; +} +declare module 'react-text-mask/src/reactTextMask.js' { + declare module.exports: $Exports<'react-text-mask/src/reactTextMask'>; +} +declare module 'react-text-mask/test/reactTextMask.spec.js' { + declare module.exports: $Exports<'react-text-mask/test/reactTextMask.spec'>; +} +declare module 'react-text-mask/webpack.buildReactIntegration.js' { + declare module.exports: $Exports<'react-text-mask/webpack.buildReactIntegration'>; +} diff --git a/flow-typed/npm/react-transition-group_vx.x.x.js b/flow-typed/npm/react-transition-group_vx.x.x.js index 8d6a250789c3c8..5bde69a99d8a16 100644 --- a/flow-typed/npm/react-transition-group_vx.x.x.js +++ b/flow-typed/npm/react-transition-group_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a1d583bd19094bca1192be1c4e0b18e5 -// flow-typed version: <>/react-transition-group_v^2.2.0/flow_v0.54.0 +// flow-typed signature: 1d8627df3d6713bdde7134812eecaab3 +// flow-typed version: <>/react-transition-group_v^2.2.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/recast_vx.x.x.js b/flow-typed/npm/recast_vx.x.x.js index ef58bb946f07ca..9a9f4b691acdd0 100644 --- a/flow-typed/npm/recast_vx.x.x.js +++ b/flow-typed/npm/recast_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 87f28da621e8ef8ddd6790af566db788 -// flow-typed version: <>/recast_v^0.12.6/flow_v0.54.0 +// flow-typed signature: a74a9e421ed657e08bd38ad3bf014b09 +// flow-typed version: <>/recast_v^0.12.6/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/recompose_v0.24.x.js b/flow-typed/npm/recompose_v0.24.x.js index 3988ca1e55c147..c267bffe9cff6f 100644 --- a/flow-typed/npm/recompose_v0.24.x.js +++ b/flow-typed/npm/recompose_v0.24.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 30ac0f0790b16588aed9852e737dc9ff -// flow-typed version: 6344f23a7f/recompose_v0.24.x/flow_>=v0.53.x +// flow-typed signature: fc6a058d5d46722f03683e37313a8f3e +// flow-typed version: 2cf075b779/recompose_v0.24.x/flow_>=v0.55.x /** * 1) Types give additional constraint on a language, recompose was written on the untyped language @@ -65,64 +65,6 @@ declare module "recompose" { declare type UnaryFn = (a: A) => R; - declare type Compose = (( - hi: UnaryFn, - gh: UnaryFn, - fg: UnaryFn, - ef: UnaryFn, - de: UnaryFn, - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - gh: UnaryFn, - fg: UnaryFn, - ef: UnaryFn, - de: UnaryFn, - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - fg: UnaryFn, - ef: UnaryFn, - de: UnaryFn, - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - ef: UnaryFn, - de: UnaryFn, - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - de: UnaryFn, - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - cd: UnaryFn, - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - (( - bc: UnaryFn, - ab: UnaryFn, - ...rest: Array - ) => UnaryFn) & - ((ab: UnaryFn, ...rest: Array) => UnaryFn); - // ----------------------------------------------------------------- // Public declarations // ----------------------------------------------------------------- @@ -134,7 +76,7 @@ declare module "recompose" { Component >; - declare export var compose: Compose; + declare export var compose: $Compose; // --------------------------------------------------------------------------- // ----------------===<<>>===-------------------- @@ -167,7 +109,7 @@ declare module "recompose" { ): HOC< { ...$Exact, - ...State, + ...$Exact, ...$ObjMap }, Enhanced diff --git a/flow-typed/npm/recompose_vx.x.x.js b/flow-typed/npm/recompose_vx.x.x.js deleted file mode 100644 index fbe8e8cfde2957..00000000000000 --- a/flow-typed/npm/recompose_vx.x.x.js +++ /dev/null @@ -1,409 +0,0 @@ -// flow-typed signature: 12b7d5f38c2c274bd21a6cc5adfc5251 -// flow-typed version: <>/recompose_v^0.23.5/flow_v0.48.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'recompose' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'recompose' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'recompose/baconObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/branch' { - declare module.exports: any; -} - -declare module 'recompose/build/Recompose' { - declare module.exports: any; -} - -declare module 'recompose/build/Recompose.min' { - declare module.exports: any; -} - -declare module 'recompose/cjs/Recompose' { - declare module.exports: any; -} - -declare module 'recompose/componentFromProp' { - declare module.exports: any; -} - -declare module 'recompose/componentFromStream' { - declare module.exports: any; -} - -declare module 'recompose/compose' { - declare module.exports: any; -} - -declare module 'recompose/createEagerElement' { - declare module.exports: any; -} - -declare module 'recompose/createEagerFactory' { - declare module.exports: any; -} - -declare module 'recompose/createEventHandler' { - declare module.exports: any; -} - -declare module 'recompose/createSink' { - declare module.exports: any; -} - -declare module 'recompose/defaultProps' { - declare module.exports: any; -} - -declare module 'recompose/es/Recompose' { - declare module.exports: any; -} - -declare module 'recompose/flattenProp' { - declare module.exports: any; -} - -declare module 'recompose/flydObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/getContext' { - declare module.exports: any; -} - -declare module 'recompose/getDisplayName' { - declare module.exports: any; -} - -declare module 'recompose/hoistStatics' { - declare module.exports: any; -} - -declare module 'recompose/isClassComponent' { - declare module.exports: any; -} - -declare module 'recompose/isReferentiallyTransparentFunctionComponent' { - declare module.exports: any; -} - -declare module 'recompose/kefirObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/lifecycle' { - declare module.exports: any; -} - -declare module 'recompose/mapProps' { - declare module.exports: any; -} - -declare module 'recompose/mapPropsStream' { - declare module.exports: any; -} - -declare module 'recompose/mostObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/nest' { - declare module.exports: any; -} - -declare module 'recompose/onlyUpdateForKeys' { - declare module.exports: any; -} - -declare module 'recompose/onlyUpdateForPropTypes' { - declare module.exports: any; -} - -declare module 'recompose/pure' { - declare module.exports: any; -} - -declare module 'recompose/renameProp' { - declare module.exports: any; -} - -declare module 'recompose/renameProps' { - declare module.exports: any; -} - -declare module 'recompose/renderComponent' { - declare module.exports: any; -} - -declare module 'recompose/renderNothing' { - declare module.exports: any; -} - -declare module 'recompose/rxjs4ObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/rxjsObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/setDisplayName' { - declare module.exports: any; -} - -declare module 'recompose/setObservableConfig' { - declare module.exports: any; -} - -declare module 'recompose/setPropTypes' { - declare module.exports: any; -} - -declare module 'recompose/setStatic' { - declare module.exports: any; -} - -declare module 'recompose/shallowEqual' { - declare module.exports: any; -} - -declare module 'recompose/shouldUpdate' { - declare module.exports: any; -} - -declare module 'recompose/toClass' { - declare module.exports: any; -} - -declare module 'recompose/utils/createEagerElementUtil' { - declare module.exports: any; -} - -declare module 'recompose/utils/omit' { - declare module.exports: any; -} - -declare module 'recompose/utils/pick' { - declare module.exports: any; -} - -declare module 'recompose/withContext' { - declare module.exports: any; -} - -declare module 'recompose/withHandlers' { - declare module.exports: any; -} - -declare module 'recompose/withProps' { - declare module.exports: any; -} - -declare module 'recompose/withPropsOnChange' { - declare module.exports: any; -} - -declare module 'recompose/withReducer' { - declare module.exports: any; -} - -declare module 'recompose/withState' { - declare module.exports: any; -} - -declare module 'recompose/wrapDisplayName' { - declare module.exports: any; -} - -declare module 'recompose/xstreamObservableConfig' { - declare module.exports: any; -} - -// Filename aliases -declare module 'recompose/baconObservableConfig.js' { - declare module.exports: $Exports<'recompose/baconObservableConfig'>; -} -declare module 'recompose/branch.js' { - declare module.exports: $Exports<'recompose/branch'>; -} -declare module 'recompose/build/Recompose.js' { - declare module.exports: $Exports<'recompose/build/Recompose'>; -} -declare module 'recompose/build/Recompose.min.js' { - declare module.exports: $Exports<'recompose/build/Recompose.min'>; -} -declare module 'recompose/cjs/Recompose.js' { - declare module.exports: $Exports<'recompose/cjs/Recompose'>; -} -declare module 'recompose/componentFromProp.js' { - declare module.exports: $Exports<'recompose/componentFromProp'>; -} -declare module 'recompose/componentFromStream.js' { - declare module.exports: $Exports<'recompose/componentFromStream'>; -} -declare module 'recompose/compose.js' { - declare module.exports: $Exports<'recompose/compose'>; -} -declare module 'recompose/createEagerElement.js' { - declare module.exports: $Exports<'recompose/createEagerElement'>; -} -declare module 'recompose/createEagerFactory.js' { - declare module.exports: $Exports<'recompose/createEagerFactory'>; -} -declare module 'recompose/createEventHandler.js' { - declare module.exports: $Exports<'recompose/createEventHandler'>; -} -declare module 'recompose/createSink.js' { - declare module.exports: $Exports<'recompose/createSink'>; -} -declare module 'recompose/defaultProps.js' { - declare module.exports: $Exports<'recompose/defaultProps'>; -} -declare module 'recompose/es/Recompose.js' { - declare module.exports: $Exports<'recompose/es/Recompose'>; -} -declare module 'recompose/flattenProp.js' { - declare module.exports: $Exports<'recompose/flattenProp'>; -} -declare module 'recompose/flydObservableConfig.js' { - declare module.exports: $Exports<'recompose/flydObservableConfig'>; -} -declare module 'recompose/getContext.js' { - declare module.exports: $Exports<'recompose/getContext'>; -} -declare module 'recompose/getDisplayName.js' { - declare module.exports: $Exports<'recompose/getDisplayName'>; -} -declare module 'recompose/hoistStatics.js' { - declare module.exports: $Exports<'recompose/hoistStatics'>; -} -declare module 'recompose/index' { - declare module.exports: $Exports<'recompose'>; -} -declare module 'recompose/index.js' { - declare module.exports: $Exports<'recompose'>; -} -declare module 'recompose/isClassComponent.js' { - declare module.exports: $Exports<'recompose/isClassComponent'>; -} -declare module 'recompose/isReferentiallyTransparentFunctionComponent.js' { - declare module.exports: $Exports<'recompose/isReferentiallyTransparentFunctionComponent'>; -} -declare module 'recompose/kefirObservableConfig.js' { - declare module.exports: $Exports<'recompose/kefirObservableConfig'>; -} -declare module 'recompose/lifecycle.js' { - declare module.exports: $Exports<'recompose/lifecycle'>; -} -declare module 'recompose/mapProps.js' { - declare module.exports: $Exports<'recompose/mapProps'>; -} -declare module 'recompose/mapPropsStream.js' { - declare module.exports: $Exports<'recompose/mapPropsStream'>; -} -declare module 'recompose/mostObservableConfig.js' { - declare module.exports: $Exports<'recompose/mostObservableConfig'>; -} -declare module 'recompose/nest.js' { - declare module.exports: $Exports<'recompose/nest'>; -} -declare module 'recompose/onlyUpdateForKeys.js' { - declare module.exports: $Exports<'recompose/onlyUpdateForKeys'>; -} -declare module 'recompose/onlyUpdateForPropTypes.js' { - declare module.exports: $Exports<'recompose/onlyUpdateForPropTypes'>; -} -declare module 'recompose/pure.js' { - declare module.exports: $Exports<'recompose/pure'>; -} -declare module 'recompose/renameProp.js' { - declare module.exports: $Exports<'recompose/renameProp'>; -} -declare module 'recompose/renameProps.js' { - declare module.exports: $Exports<'recompose/renameProps'>; -} -declare module 'recompose/renderComponent.js' { - declare module.exports: $Exports<'recompose/renderComponent'>; -} -declare module 'recompose/renderNothing.js' { - declare module.exports: $Exports<'recompose/renderNothing'>; -} -declare module 'recompose/rxjs4ObservableConfig.js' { - declare module.exports: $Exports<'recompose/rxjs4ObservableConfig'>; -} -declare module 'recompose/rxjsObservableConfig.js' { - declare module.exports: $Exports<'recompose/rxjsObservableConfig'>; -} -declare module 'recompose/setDisplayName.js' { - declare module.exports: $Exports<'recompose/setDisplayName'>; -} -declare module 'recompose/setObservableConfig.js' { - declare module.exports: $Exports<'recompose/setObservableConfig'>; -} -declare module 'recompose/setPropTypes.js' { - declare module.exports: $Exports<'recompose/setPropTypes'>; -} -declare module 'recompose/setStatic.js' { - declare module.exports: $Exports<'recompose/setStatic'>; -} -declare module 'recompose/shallowEqual.js' { - declare module.exports: $Exports<'recompose/shallowEqual'>; -} -declare module 'recompose/shouldUpdate.js' { - declare module.exports: $Exports<'recompose/shouldUpdate'>; -} -declare module 'recompose/toClass.js' { - declare module.exports: $Exports<'recompose/toClass'>; -} -declare module 'recompose/utils/createEagerElementUtil.js' { - declare module.exports: $Exports<'recompose/utils/createEagerElementUtil'>; -} -declare module 'recompose/utils/omit.js' { - declare module.exports: $Exports<'recompose/utils/omit'>; -} -declare module 'recompose/utils/pick.js' { - declare module.exports: $Exports<'recompose/utils/pick'>; -} -declare module 'recompose/withContext.js' { - declare module.exports: $Exports<'recompose/withContext'>; -} -declare module 'recompose/withHandlers.js' { - declare module.exports: $Exports<'recompose/withHandlers'>; -} -declare module 'recompose/withProps.js' { - declare module.exports: $Exports<'recompose/withProps'>; -} -declare module 'recompose/withPropsOnChange.js' { - declare module.exports: $Exports<'recompose/withPropsOnChange'>; -} -declare module 'recompose/withReducer.js' { - declare module.exports: $Exports<'recompose/withReducer'>; -} -declare module 'recompose/withState.js' { - declare module.exports: $Exports<'recompose/withState'>; -} -declare module 'recompose/wrapDisplayName.js' { - declare module.exports: $Exports<'recompose/wrapDisplayName'>; -} -declare module 'recompose/xstreamObservableConfig.js' { - declare module.exports: $Exports<'recompose/xstreamObservableConfig'>; -} diff --git a/flow-typed/npm/recursive-readdir-sync_vx.x.x.js b/flow-typed/npm/recursive-readdir-sync_vx.x.x.js index c8e3fd416847ea..226a17bb6d2158 100644 --- a/flow-typed/npm/recursive-readdir-sync_vx.x.x.js +++ b/flow-typed/npm/recursive-readdir-sync_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fec0f703a9e8334c274a5a19c1c5f0a6 -// flow-typed version: <>/recursive-readdir-sync_v^1.0.6/flow_v0.54.0 +// flow-typed signature: 87ef8ba0f6cf476bba89005d7d7905ff +// flow-typed version: <>/recursive-readdir-sync_v^1.0.6/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/redux-logger_vx.x.x.js b/flow-typed/npm/redux-logger_vx.x.x.js index f93db133e5e8af..f97881bfdb2dd5 100644 --- a/flow-typed/npm/redux-logger_vx.x.x.js +++ b/flow-typed/npm/redux-logger_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0e307e493711b6467e5dbee87f3b8469 -// flow-typed version: <>/redux-logger_v^3.0.6/flow_v0.54.0 +// flow-typed signature: 917faf98230f98a9d6aaab99de747533 +// flow-typed version: <>/redux-logger_v^3.0.6/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/rimraf_vx.x.x.js b/flow-typed/npm/rimraf_vx.x.x.js index b439ee74f45c03..5f8582d3036947 100644 --- a/flow-typed/npm/rimraf_vx.x.x.js +++ b/flow-typed/npm/rimraf_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 4ec7544ee6f53423b8db28916a71d208 -// flow-typed version: <>/rimraf_v^2.6.1/flow_v0.54.0 +// flow-typed signature: 36e4a33edb889a5ecb62fab7dda9b3d3 +// flow-typed version: <>/rimraf_v^2.6.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/scroll_vx.x.x.js b/flow-typed/npm/scroll_vx.x.x.js index b3f1b5b6d2b478..c57beb705185c1 100644 --- a/flow-typed/npm/scroll_vx.x.x.js +++ b/flow-typed/npm/scroll_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a92b8334371062ed80cafd8b7bc1615d -// flow-typed version: <>/scroll_v^2.0.0/flow_v0.54.0 +// flow-typed signature: 43523a38fefc34da37970646e152bbeb +// flow-typed version: <>/scroll_v^2.0.1/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/sinon_vx.x.x.js b/flow-typed/npm/sinon_vx.x.x.js index 7e8055b2713754..ee1ff74e34ac08 100644 --- a/flow-typed/npm/sinon_vx.x.x.js +++ b/flow-typed/npm/sinon_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 66651f492d3fece5c6086a662fd012ef -// flow-typed version: <>/sinon_v^3.2.1/flow_v0.54.0 +// flow-typed signature: 1ddb3cb92560841a60adb65e52194259 +// flow-typed version: <>/sinon_v^4.0.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: @@ -182,11 +182,19 @@ declare module 'sinon/lib/sinon/util/fake_timers' { declare module.exports: any; } -declare module 'sinon/pkg/sinon-3.2.1' { +declare module 'sinon/pkg/sinon-3.2.0' { declare module.exports: any; } -declare module 'sinon/pkg/sinon-no-sourcemaps-3.2.1' { +declare module 'sinon/pkg/sinon-4.0.0' { + declare module.exports: any; +} + +declare module 'sinon/pkg/sinon-no-sourcemaps-3.2.0' { + declare module.exports: any; +} + +declare module 'sinon/pkg/sinon-no-sourcemaps-4.0.0' { declare module.exports: any; } @@ -319,11 +327,17 @@ declare module 'sinon/lib/sinon/util/core/wrap-method.js' { declare module 'sinon/lib/sinon/util/fake_timers.js' { declare module.exports: $Exports<'sinon/lib/sinon/util/fake_timers'>; } -declare module 'sinon/pkg/sinon-3.2.1.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-3.2.1'>; +declare module 'sinon/pkg/sinon-3.2.0.js' { + declare module.exports: $Exports<'sinon/pkg/sinon-3.2.0'>; +} +declare module 'sinon/pkg/sinon-4.0.0.js' { + declare module.exports: $Exports<'sinon/pkg/sinon-4.0.0'>; +} +declare module 'sinon/pkg/sinon-no-sourcemaps-3.2.0.js' { + declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps-3.2.0'>; } -declare module 'sinon/pkg/sinon-no-sourcemaps-3.2.1.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps-3.2.1'>; +declare module 'sinon/pkg/sinon-no-sourcemaps-4.0.0.js' { + declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps-4.0.0'>; } declare module 'sinon/pkg/sinon-no-sourcemaps.js' { declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps'>; diff --git a/flow-typed/npm/size-limit_vx.x.x.js b/flow-typed/npm/size-limit_vx.x.x.js index d3f3c3c0ebfd7a..e9470ebf96dcad 100644 --- a/flow-typed/npm/size-limit_vx.x.x.js +++ b/flow-typed/npm/size-limit_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: fb1fa7f53248fda781aa790acd87af61 -// flow-typed version: <>/size-limit_v^0.11.0/flow_v0.54.0 +// flow-typed signature: ef7398e6e6cae49e4612b153d1700f4b +// flow-typed version: <>/size-limit_v^0.11.4/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/typescript_vx.x.x.js b/flow-typed/npm/typescript_vx.x.x.js index e95c620d806811..c87b537c284998 100644 --- a/flow-typed/npm/typescript_vx.x.x.js +++ b/flow-typed/npm/typescript_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a05ebdfc36345ff7522fc5e96f15d186 -// flow-typed version: <>/typescript_v^2.4.2/flow_v0.54.0 +// flow-typed signature: 466ea388ace7e23ec8e8ed2f4f689e74 +// flow-typed version: <>/typescript_v^2.5.2/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/url-loader_vx.x.x.js b/flow-typed/npm/url-loader_vx.x.x.js index ec6f583467776c..0729601502c36f 100644 --- a/flow-typed/npm/url-loader_vx.x.x.js +++ b/flow-typed/npm/url-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e5c0220981e02bf4f0cf058073ec4070 -// flow-typed version: <>/url-loader_v^0.5.9/flow_v0.54.0 +// flow-typed signature: dc304fe78d386b53d1181b366bce8e46 +// flow-typed version: <>/url-loader_v^0.5.9/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/vrtest_vx.x.x.js b/flow-typed/npm/vrtest_vx.x.x.js index 93952fecd52ae8..49ce5e49683bf5 100644 --- a/flow-typed/npm/vrtest_vx.x.x.js +++ b/flow-typed/npm/vrtest_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 31ef27df174fddfd175718ff335e0bca -// flow-typed version: <>/vrtest_v^0.2.0/flow_v0.54.0 +// flow-typed signature: cbee118da48273dbe54fcd2c6a6bf0fb +// flow-typed version: <>/vrtest_v^0.2.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js b/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js index ceeb11c82a718e..8b13f3f462fe52 100644 --- a/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js +++ b/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 20c9d9071fbe796bd8a77aa8c894dd3f -// flow-typed version: <>/webpack-bundle-analyzer_v^2.9.0/flow_v0.54.0 +// flow-typed signature: e5da1853c8ed42c2dffb2bf9a6d6d537 +// flow-typed version: <>/webpack-bundle-analyzer_v^2.9.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/webpack_vx.x.x.js b/flow-typed/npm/webpack_vx.x.x.js index 805c4092706740..4c1cd2288cbecb 100644 --- a/flow-typed/npm/webpack_vx.x.x.js +++ b/flow-typed/npm/webpack_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1369f8072e3ab3023d55b479bf6efbe8 -// flow-typed version: <>/webpack_v^3.5.5/flow_v0.54.0 +// flow-typed signature: be81f6e29e4d8eb0250fc8ba90fe0b2a +// flow-typed version: <>/webpack_v^3.6.0/flow_v0.55.0 /** * This is an autogenerated libdef stub for: diff --git a/package.json b/package.json index dbb0f1f0767522..753492b7b177fe 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "lodash": "^4.17.4", "prop-types": "^15.6.0", "react-event-listener": "^0.5.0", + "react-flow-types": "^0.2.0-beta.2", "react-jss": "^7.2.0", "react-popper": "^0.7.3", "react-scrollbar-size": "^2.0.1", @@ -90,7 +91,7 @@ "babel-core": "^6.26.0", "babel-eslint": "^8.0.1", "babel-loader": "^7.1.2", - "babel-plugin-flow-react-proptypes": "5.1.1", + "babel-plugin-flow-react-proptypes": "5.2.0", "babel-plugin-istanbul": "^4.1.5", "babel-plugin-preval": "^1.5.0", "babel-plugin-react-remove-properties": "^0.2.5", diff --git a/src/AppBar/AppBar.js b/src/AppBar/AppBar.js index c6be2f407a1d60..8adc10921fd773 100644 --- a/src/AppBar/AppBar.js +++ b/src/AppBar/AppBar.js @@ -46,10 +46,13 @@ export const styles = (theme: Object) => ({ }, }); +type Color = 'inherit' | 'primary' | 'accent' | 'default'; +type Position = 'static' | 'fixed' | 'absolute'; + type DefaultProps = { classes: Object, - color: 'primary', - position: 'fixed', + color: Color, + position: Position, }; export type Props = { @@ -68,11 +71,11 @@ export type Props = { /** * The color of the component. It's using the theme palette when that makes sense. */ - color?: 'inherit' | 'primary' | 'accent' | 'default', + color?: Color, /** * The positioning type. */ - position?: 'static' | 'fixed' | 'absolute', + position?: Position, }; function AppBar(props: DefaultProps & Props) { diff --git a/src/Avatar/Avatar.js b/src/Avatar/Avatar.js index 4fac9aab6e74ef..6b001258a0e84d 100644 --- a/src/Avatar/Avatar.js +++ b/src/Avatar/Avatar.js @@ -50,7 +50,7 @@ export type Props = { * * This can be an element, or just a string. */ - children?: Element<*>, + children?: string | Element, /** * @ignore * The className of the child element. @@ -114,7 +114,11 @@ function Avatar(props: DefaultProps & Props) { let children = null; if (childrenProp) { - if (childrenClassNameProp && React.isValidElement(childrenProp)) { + if ( + childrenClassNameProp && + typeof childrenProp !== 'string' && + React.isValidElement(childrenProp) + ) { const childrenClassName = classNames(childrenClassNameProp, childrenProp.props.className); children = React.cloneElement(childrenProp, { className: childrenClassName }); } else { diff --git a/src/Badge/Badge.js b/src/Badge/Badge.js index b9b1bf255f7280..7aee1afd7e8a44 100644 --- a/src/Badge/Badge.js +++ b/src/Badge/Badge.js @@ -1,7 +1,7 @@ // @flow weak import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { capitalizeFirstLetter } from '../utils/helpers'; @@ -42,44 +42,48 @@ export const styles = (theme: Object) => ({ }, }); -function Badge(props) { - const { badgeContent, classes, className: classNameProp, color, children, ...other } = props; - const className = classNames(classes.root, classNameProp); - const badgeClassName = classNames(classes.badge, { - [classes[`color${capitalizeFirstLetter(color)}`]]: color !== 'default', - }); - - return ( -
- {children} - {badgeContent} -
- ); -} +type DefaultProps = { + classes: Object, +}; -Badge.propTypes = { +type Props = { /** * The content rendered within the badge. */ - badgeContent: PropTypes.node.isRequired, + badgeContent?: Node, /** * The badge will be added relative to this node. */ - children: PropTypes.node.isRequired, + children?: Node, /** * Useful to extend the style applied to components. */ - classes: PropTypes.object.isRequired, + classes?: Object, /** * @ignore */ - className: PropTypes.string, + className?: string, /** * The color of the component. It's using the theme palette when that makes sense. */ - color: PropTypes.oneOf(['default', 'primary', 'accent']), + color?: 'default' | 'primary' | 'accent', }; +function Badge(props: DefaultProps & Props) { + const { badgeContent, classes, className: classNameProp, color, children, ...other } = props; + const className = classNames(classes.root, classNameProp); + const badgeClassName = classNames(classes.badge, { + [classes[`color${capitalizeFirstLetter(color)}`]]: color !== 'default', + }); + + return ( +
+ {children} + {badgeContent} +
+ ); +} + Badge.defaultProps = { color: 'default', }; diff --git a/src/BottomNavigation/BottomNavigation.js b/src/BottomNavigation/BottomNavigation.js index 5e22414d9c72c1..e3f1bc8836f8ab 100644 --- a/src/BottomNavigation/BottomNavigation.js +++ b/src/BottomNavigation/BottomNavigation.js @@ -1,7 +1,7 @@ // @flow weak import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -14,7 +14,43 @@ export const styles = (theme: Object) => ({ }, }); -function BottomNavigation(props) { +type DefaultProps = { + classes: Object, + showLabels: boolean, +}; + +export type Props = { + /** + * The content of the component. + */ + children: Node, + /** + * Useful to extend the style applied to components. + */ + classes?: Object, + /** + * @ignore + */ + className?: string, + /** + * Callback fired when the value changes. + * + * @param {object} event The event source of the callback + * @param {any} value We default to the index of the child + */ + onChange?: Function, + /** + * If `true`, all `BottomNavigationButton`s will show their labels. + * By default only the selected `BottomNavigationButton` will show its label. + */ + showLabels?: boolean, + /** + * The value of the currently selected `BottomNavigationButton`. + */ + value: any, +}; + +function BottomNavigation(props: DefaultProps & Props) { const { children: childrenProp, classes, @@ -44,37 +80,6 @@ function BottomNavigation(props) { ); } -BottomNavigation.propTypes = { - /** - * The content of the component. - */ - children: PropTypes.node.isRequired, - /** - * Useful to extend the style applied to components. - */ - classes: PropTypes.object.isRequired, - /** - * @ignore - */ - className: PropTypes.string, - /** - * Callback fired when the value changes. - * - * @param {object} event The event source of the callback - * @param {any} value We default to the index of the child - */ - onChange: PropTypes.func, - /** - * If `true`, all `BottomNavigationButton`s will show their labels. - * By default only the selected `BottomNavigationButton` will show its label. - */ - showLabels: PropTypes.bool, - /** - * The value of the currently selected `BottomNavigationButton`. - */ - value: PropTypes.any.isRequired, -}; - BottomNavigation.defaultProps = { showLabels: false, }; diff --git a/src/BottomNavigation/BottomNavigationButton.js b/src/BottomNavigation/BottomNavigationButton.js index 37f87172474d23..51089540d95aaf 100644 --- a/src/BottomNavigation/BottomNavigationButton.js +++ b/src/BottomNavigation/BottomNavigationButton.js @@ -72,11 +72,11 @@ export type Props = { /** * The icon element. If a string is provided, it will be used as a font ligature. */ - icon?: Element<*>, + icon?: string | Element, /** * The label element. */ - label?: Element<*>, + label?: string | Element, /** * @ignore */ diff --git a/src/Button/Button.js b/src/Button/Button.js index aa039a9ffc5e75..9d0e467c1e2526 100644 --- a/src/Button/Button.js +++ b/src/Button/Button.js @@ -149,16 +149,18 @@ export const styles = (theme: Object) => ({ }, }); +type Color = 'default' | 'inherit' | 'primary' | 'accent' | 'contrast'; + type DefaultProps = { classes: Object, - color: 'default', + color: Color, dense: boolean, disabled: boolean, fab: boolean, disableFocusRipple: boolean, raised: boolean, disableRipple: boolean, - type: 'button', + type: string, }; export type Props = { @@ -177,7 +179,7 @@ export type Props = { /** * The color of the component. It's using the theme palette when that makes sense. */ - color?: 'default' | 'inherit' | 'primary' | 'accent' | 'contrast', + color?: Color, /** * The component used for the root node. * Either a string to use a DOM element or a component. diff --git a/src/ButtonBase/ButtonBase.spec.js b/src/ButtonBase/ButtonBase.spec.js index c7eabb1c7f88ef..a18430400ce6e5 100644 --- a/src/ButtonBase/ButtonBase.spec.js +++ b/src/ButtonBase/ButtonBase.spec.js @@ -312,6 +312,7 @@ describe('', () => { before(() => { clock = useFakeTimers(); wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that Hello , @@ -386,6 +387,7 @@ describe('', () => { it('when disabled should not persist event', () => { const wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that Hello , @@ -402,6 +404,7 @@ describe('', () => { const eventMock = 'woofButtonBase'; const onKeyboardFocusSpy = spy(); const wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that Hello , @@ -420,6 +423,7 @@ describe('', () => { ); const wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that Hello , @@ -438,6 +442,7 @@ describe('', () => { describe('avoids multiple keydown presses', () => { it('should work', () => { + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that wrapper = mount(Hello); wrapper.setProps({ focusRipple: true, @@ -468,6 +473,7 @@ describe('', () => { describe('prop: onKeyDown', () => { it('should work', () => { + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that wrapper = mount(Hello); const onKeyDownSpy = spy(); wrapper.setProps({ @@ -494,6 +500,7 @@ describe('', () => { describe('Keyboard accessibility for non interactive elements', () => { it('should work', () => { + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that wrapper = mount(Hello); const onClickSpy = spy(); wrapper.setProps({ diff --git a/src/Card/CardActions.js b/src/Card/CardActions.js index 87fba9a0f2da3f..df582113ccd524 100644 --- a/src/Card/CardActions.js +++ b/src/Card/CardActions.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import type { ChildrenArray } from 'react'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { cloneChildrenWithClassName } from '../utils/reactHelpers'; @@ -27,7 +27,7 @@ export type Props = { /** * The content of the component. */ - children?: ChildrenArray<*>, + children?: Node, /** * Useful to extend the style applied to components. */ diff --git a/src/Checkbox/Checkbox.js b/src/Checkbox/Checkbox.js index d7d84c04180e47..ed638fdbf54993 100644 --- a/src/Checkbox/Checkbox.js +++ b/src/Checkbox/Checkbox.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import type { Node } from 'react'; +import type { Element, Node } from 'react'; import withStyles from '../styles/withStyles'; import createSwitch from '../internal/SwitchBase'; import IndeterminateCheckBoxIcon from '../svg-icons/IndeterminateCheckBox'; @@ -33,7 +33,7 @@ export type Props = { * The icon to display when the component is checked. * If a string is provided, it will be used as a font ligature. */ - checkedIcon?: Node, + checkedIcon?: string | Element<*>, /** * Useful to extend the style applied to components. */ @@ -71,7 +71,7 @@ export type Props = { * The icon to display when the component is indeterminate. * If a string is provided, it will be used as a font ligature. */ - indeterminateIcon?: Node, + indeterminateIcon?: string | Element<*>, /** * Properties applied to the `input` element. */ diff --git a/src/Chip/Chip.js b/src/Chip/Chip.js index 63631c575428e4..a1401e80cd72f4 100644 --- a/src/Chip/Chip.js +++ b/src/Chip/Chip.js @@ -7,6 +7,7 @@ import keycode from 'keycode'; import withStyles from '../styles/withStyles'; import CancelIcon from '../svg-icons/Cancel'; import { emphasize, fade } from '../styles/colorManipulator'; +import Avatar from '../Avatar/Avatar'; export const styles = (theme: Object) => { const height = 32; @@ -91,7 +92,7 @@ export type Props = { /** * Avatar element. */ - avatar?: Element<*>, + avatar?: Element, /** * Useful to extend the style applied to components. */ @@ -103,7 +104,7 @@ export type Props = { /** * The content of the label. */ - label?: Element<*>, + label?: string | Element<*>, /** * @ignore */ @@ -189,6 +190,7 @@ class Chip extends React.Component { let avatar = null; if (avatarProp && React.isValidElement(avatarProp)) { + // $FlowFixMe - this looks strictly correct, not sure why it errors. avatar = React.cloneElement(avatarProp, { className: classNames(classes.avatar, avatarProp.props.className), childrenClassName: classNames(classes.avatarChildren, avatarProp.props.childrenClassName), diff --git a/src/Chip/Chip.spec.js b/src/Chip/Chip.spec.js index 9aa1955489620c..34ede8a0452d5d 100644 --- a/src/Chip/Chip.spec.js +++ b/src/Chip/Chip.spec.js @@ -190,6 +190,7 @@ describe('', () => { }); it('should unfocus when a esc key is pressed', () => { + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that const wrapper2 = mount(Text Chip); const handleBlur = spy(); wrapper2.instance().chipRef.blur = handleBlur; diff --git a/src/Dialog/Dialog.js b/src/Dialog/Dialog.js index 966d8ade68eaac..42a249a72c4806 100644 --- a/src/Dialog/Dialog.js +++ b/src/Dialog/Dialog.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import type { Node } from 'react'; +import type { ComponentType, Element, Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { capitalizeFirstLetter } from '../utils/helpers'; @@ -142,7 +142,7 @@ export type Props = { /** * Transition component. */ - transition?: Node, + transition?: ComponentType<*> | Element<*>, }; /** diff --git a/src/Dialog/DialogActions.js b/src/Dialog/DialogActions.js index c261625425d9fa..b30fb7f72c13d1 100644 --- a/src/Dialog/DialogActions.js +++ b/src/Dialog/DialogActions.js @@ -1,7 +1,7 @@ -// @flow weak +// @flow import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import '../Button'; // So we don't have any override priority issue. @@ -22,7 +22,26 @@ export const styles = (theme: Object) => ({ }, }); -function DialogActions(props) { +type DefaultProps = { + classes: Object, +}; + +type Props = { + /** + * The content of the component. + */ + children?: Node, + /** + * Useful to extend the style applied to components. + */ + classes?: Object, + /** + * @ignore + */ + className?: string, +}; + +function DialogActions(props: DefaultProps & Props) { const { children, classes, className, ...other } = props; return ( @@ -42,19 +61,4 @@ function DialogActions(props) { ); } -DialogActions.propTypes = { - /** - * The content of the component. - */ - children: PropTypes.node, - /** - * Useful to extend the style applied to components. - */ - classes: PropTypes.object.isRequired, - /** - * @ignore - */ - className: PropTypes.string, -}; - export default withStyles(styles, { name: 'MuiDialogActions' })(DialogActions); diff --git a/src/Dialog/DialogContent.js b/src/Dialog/DialogContent.js index 01fe9c85d76969..7f5e00357452bf 100644 --- a/src/Dialog/DialogContent.js +++ b/src/Dialog/DialogContent.js @@ -1,7 +1,7 @@ -// @flow weak +// @flow import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -19,29 +19,33 @@ export const styles = (theme: Object) => { }; }; -function DialogContent(props) { - const { classes, children, className, ...other } = props; - - return ( -
- {children} -
- ); -} +type DefaultProps = { + classes: Object, +}; -DialogContent.propTypes = { +type Props = { /** * The content of the component. */ - children: PropTypes.node, + children?: Node, /** * Useful to extend the style applied to components. */ - classes: PropTypes.object.isRequired, + classes?: Object, /** * @ignore */ - className: PropTypes.string, + className?: string, }; +function DialogContent(props: DefaultProps & Props) { + const { classes, children, className, ...other } = props; + + return ( +
+ {children} +
+ ); +} + export default withStyles(styles, { name: 'MuiDialogContent' })(DialogContent); diff --git a/src/Dialog/DialogContentText.js b/src/Dialog/DialogContentText.js index 492129fa21cafe..9df4b2a2849b39 100644 --- a/src/Dialog/DialogContentText.js +++ b/src/Dialog/DialogContentText.js @@ -1,7 +1,7 @@ -// @flow weak +// @flow import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -13,29 +13,33 @@ export const styles = (theme: Object) => ({ }, }); -function DialogContentText(props) { - const { children, classes, className, ...other } = props; - - return ( -

- {children} -

- ); -} +type DefaultProps = { + classes: Object, +}; -DialogContentText.propTypes = { +type Props = { /** * The content of the component. */ - children: PropTypes.node, + children?: Node, /** * Useful to extend the style applied to components. */ - classes: PropTypes.object.isRequired, + classes?: Object, /** * @ignore */ - className: PropTypes.string, + className?: string, }; +function DialogContentText(props: DefaultProps & Props) { + const { children, classes, className, ...other } = props; + + return ( +

+ {children} +

+ ); +} + export default withStyles(styles, { name: 'MuiDialogContentText' })(DialogContentText); diff --git a/src/Dialog/DialogTitle.js b/src/Dialog/DialogTitle.js index af9a9574b0168a..abc5dcf43f88ab 100644 --- a/src/Dialog/DialogTitle.js +++ b/src/Dialog/DialogTitle.js @@ -1,7 +1,7 @@ -// @flow weak +// @flow import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; @@ -15,36 +15,40 @@ export const styles = (theme: Object) => ({ }, }); -function DialogTitle(props) { - const { children, classes, className, disableTypography, ...other } = props; - - return ( -
- {disableTypography ? children : {children}} -
- ); -} +type DefaultProps = { + classes: Object, +}; -DialogTitle.propTypes = { +type Props = { /** * The content of the component. */ - children: PropTypes.node, + children?: Node, /** * Useful to extend the style applied to components. */ - classes: PropTypes.object.isRequired, + classes?: Object, /** * @ignore */ - className: PropTypes.string, + className?: string, /** * If `true`, the children won't be wrapped by a typography component. * For instance, that can be useful to can render an h4 instead of a */ - disableTypography: PropTypes.bool, + disableTypography?: boolean, }; +function DialogTitle(props: DefaultProps & Props) { + const { children, classes, className, disableTypography, ...other } = props; + + return ( +
+ {disableTypography ? children : {children}} +
+ ); +} + DialogTitle.defaultProps = { disableTypography: false, }; diff --git a/src/Dialog/withResponsiveFullScreen.js b/src/Dialog/withResponsiveFullScreen.js index 0f29a21a46f325..d56ed710a36914 100644 --- a/src/Dialog/withResponsiveFullScreen.js +++ b/src/Dialog/withResponsiveFullScreen.js @@ -1,38 +1,46 @@ // @flow -import type { Element } from 'react'; +import type { HigherOrderComponent } from 'react-flow-types'; import createEagerFactory from 'recompose/createEagerFactory'; import wrapDisplayName from 'recompose/wrapDisplayName'; import withWidth, { isWidthDown } from '../utils/withWidth'; -import Dialog from './Dialog'; import type { Breakpoint } from '../styles/createBreakpoints'; type Options = { breakpoint: Breakpoint }; +export type HOCProps = {}; + +type InjectedProps = { + /** + * If isWidthDown(options.breakpoint), return true. + */ + fullScreen: boolean, +}; + /** * Dialog will responsively be full screen *at or below* the given breakpoint * (defaults to 'sm' for mobile devices). * Notice that this Higher-order Component is incompatible with server side rendering. */ -function withResponsiveFullScreen(options: Options = { breakpoint: 'sm' }) { +const withResponsiveFullScreen = ( + options: Options = { breakpoint: 'sm' }, +): HigherOrderComponent => (Component: any): any => { const { breakpoint } = options; - return (BaseDialog: Element) => { - const factory = createEagerFactory(BaseDialog); + const factory = createEagerFactory(Component); - function ResponsiveFullScreen(props: { width: string }) { - return factory({ - fullScreen: isWidthDown(breakpoint, props.width), - ...props, - }); - } + function ResponsiveFullScreen(props: { width: string }) { + return factory({ + fullScreen: isWidthDown(breakpoint, props.width), + ...props, + }); + } - if (process.env.NODE_ENV !== 'production') { - ResponsiveFullScreen.displayName = wrapDisplayName(BaseDialog, 'withResponsiveFullScreen'); - } + if (process.env.NODE_ENV !== 'production') { + ResponsiveFullScreen.displayName = wrapDisplayName(Component, 'withResponsiveFullScreen'); + } - return withWidth()(ResponsiveFullScreen); - }; -} + return withWidth()(ResponsiveFullScreen); +}; export default withResponsiveFullScreen; diff --git a/src/Divider/Divider.js b/src/Divider/Divider.js index 1e89104599df9d..6ee57b59ac3176 100644 --- a/src/Divider/Divider.js +++ b/src/Divider/Divider.js @@ -1,7 +1,6 @@ -// @flow weak +// @flow import React from 'react'; -import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -29,42 +28,46 @@ export const styles = (theme: Object) => ({ }, }); -function Divider(props) { - const { absolute, classes, className: classNameProp, inset, light, ...other } = props; - - const className = classNames( - classes.root, - { - [classes.absolute]: absolute, - [classes.inset]: inset, - [light ? classes.light : classes.default]: true, - }, - classNameProp, - ); - - return
; -} +type DefaultProps = { + classes: Object, +}; -Divider.propTypes = { - absolute: PropTypes.bool, +type Props = { + absolute?: boolean, /** * Useful to extend the style applied to components. */ - classes: PropTypes.object.isRequired, + classes?: Object, /** * @ignore */ - className: PropTypes.string, + className?: string, /** * If `true`, the divider will be indented. */ - inset: PropTypes.bool, + inset?: boolean, /** * If `true`, the divider will have a lighter color. */ - light: PropTypes.bool, + light?: boolean, }; +function Divider(props: DefaultProps & Props) { + const { absolute, classes, className: classNameProp, inset, light, ...other } = props; + + const className = classNames( + classes.root, + { + [classes.absolute]: absolute, + [classes.inset]: inset, + [light ? classes.light : classes.default]: true, + }, + classNameProp, + ); + + return
; +} + Divider.defaultProps = { absolute: false, inset: false, diff --git a/src/Drawer/Drawer.js b/src/Drawer/Drawer.js index 8e8d094fb6d8d4..6654d376637971 100644 --- a/src/Drawer/Drawer.js +++ b/src/Drawer/Drawer.js @@ -75,20 +75,25 @@ export const styles = (theme: Object) => ({ modal: {}, // Just here so people can override the style. }); +type Anchor = 'left' | 'top' | 'right' | 'bottom'; +type Type = 'permanent' | 'persistent' | 'temporary'; + type DefaultProps = { - anchor: 'left', + anchor: Anchor, classes: Object, elevation: number, enterTransitionDuration: number, leaveTransitionDuration: number, open: boolean, + theme: Object, + type: Type, }; export type Props = { /** * Side from which the drawer will appear. */ - anchor?: 'left' | 'top' | 'right' | 'bottom', + anchor?: Anchor, /** * The contents of the drawer. */ @@ -131,14 +136,10 @@ export type Props = { * Properties applied to the `Slide` element. */ SlideProps?: Object, - /** - * @ignore - */ - theme: Object, /** * The type of drawer. */ - type: 'permanent' | 'persistent' | 'temporary', + type: Type, }; type State = { diff --git a/src/Form/FormControl.js b/src/Form/FormControl.js index e7469102ae1adf..a5b6f7c1d5fa76 100644 --- a/src/Form/FormControl.js +++ b/src/Form/FormControl.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import type { ChildrenArray, ElementType, Node } from 'react'; +import type { ElementType, Node } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -32,13 +32,15 @@ export const styles = (theme: Object) => ({ }, }); +type Margin = 'none' | 'dense' | 'normal'; + type DefaultProps = { disabled: boolean, classes: Object, component: string, error: boolean, fullWidth: boolean, - margin: 'none', + margin: Margin, required: boolean, }; @@ -46,7 +48,7 @@ export type Props = { /** * The contents of the form control. */ - children?: $ReadOnlyArray>, + children?: Node, /** * Useful to extend the style applied to components. */ @@ -87,7 +89,7 @@ export type Props = { /** * If `dense` or `normal`, will adjust vertical spacing of this and contained components. */ - margin?: 'none' | 'dense' | 'normal', + margin?: Margin, }; type State = { diff --git a/src/Form/FormControlLabel.js b/src/Form/FormControlLabel.js index 0e020f55c03284..db2ba90430a3c7 100644 --- a/src/Form/FormControlLabel.js +++ b/src/Form/FormControlLabel.js @@ -46,7 +46,7 @@ export type Props = { /** * A control element. For instance, it can be be a `Radio`, a `Switch` or a `Checkbox`. */ - control: Element<*>, + control: Element, /** * If `true`, the control will be disabled. */ diff --git a/src/Grid/Grid.js b/src/Grid/Grid.js index e1a9d3377597c5..db79a2b9eb05ae 100644 --- a/src/Grid/Grid.js +++ b/src/Grid/Grid.js @@ -310,6 +310,7 @@ if (process.env.NODE_ENV !== 'production') { GridWrapper = (props: any) => ; + // $FlowFixMe - cannot mix legacy propTypes with current HOC pattern - https://github.com/facebook/flow/issues/4644#issuecomment-332530909 GridWrapper.propTypes = { align: requireProp('container'), direction: requireProp('container'), diff --git a/src/GridList/GridList.js b/src/GridList/GridList.js index a77d2ab9eb4544..5baeaee9ad2cd5 100644 --- a/src/GridList/GridList.js +++ b/src/GridList/GridList.js @@ -1,7 +1,7 @@ // @flow weak import React from 'react'; -import PropTypes from 'prop-types'; +import type { ElementType, Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; @@ -15,7 +15,55 @@ export const styles = { }, }; -function GridList(props) { +type CellHeight = number | 'auto'; + +type DefaultProps = { + classes: Object, + cols: number, + spacing: number, + cellHeight: CellHeight, + component: ElementType, +}; + +export type Props = { + /** + * Number of px for one cell height. + * You can set `'auto'` if you want to let the children determine the height. + */ + cellHeight?: CellHeight, + /** + * Grid Tiles that will be in Grid List. + */ + children: Node, + /** + * Useful to extend the style applied to components. + */ + classes?: Object, + /** + * @ignore + */ + className?: string, + /** + * Number of columns. + */ + cols?: number, + /** + * The component used for the root node. + * Either a string to use a DOM element or a component. + * By default we map the type to a good default headline component. + */ + component?: ElementType, + /** + * Number of px for the spacing between tiles. + */ + spacing?: number, + /** + * @ignore + */ + style?: Object, +}; + +function GridList(props: DefaultProps & Props) { const { cols, spacing, @@ -53,44 +101,6 @@ function GridList(props) { ); } -GridList.propTypes = { - /** - * Number of px for one cell height. - * You can set `'auto'` if you want to let the children determine the height. - */ - cellHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['auto'])]), - /** - * Grid Tiles that will be in Grid List. - */ - children: PropTypes.node.isRequired, - /** - * Useful to extend the style applied to components. - */ - classes: PropTypes.object.isRequired, - /** - * @ignore - */ - className: PropTypes.string, - /** - * Number of columns. - */ - cols: PropTypes.number, - /** - * The component used for the root node. - * Either a string to use a DOM element or a component. - * By default we map the type to a good default headline component. - */ - component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), - /** - * Number of px for the spacing between tiles. - */ - spacing: PropTypes.number, - /** - * @ignore - */ - style: PropTypes.object, -}; - GridList.defaultProps = { cols: 2, spacing: 4, diff --git a/src/GridList/GridListTile.js b/src/GridList/GridListTile.js index 96f92709d63283..699e9eeb7ee50a 100644 --- a/src/GridList/GridListTile.js +++ b/src/GridList/GridListTile.js @@ -1,7 +1,7 @@ // @flow weak import React from 'react'; -import type { ChildrenArray, ElementType, Node } from 'react'; +import type { ElementType, Node } from 'react'; import classNames from 'classnames'; import EventListener from 'react-event-listener'; import debounce from 'lodash/debounce'; @@ -42,7 +42,7 @@ export type Props = { * in which case GridListTile takes care of making the image "cover" available space * (similar to `background-size: cover` or to `object-fit: cover`). */ - children?: $ReadOnlyArray>, + children?: Node, /** * Useful to extend the style applied to components. */ diff --git a/src/GridList/GridListTile.spec.js b/src/GridList/GridListTile.spec.js index 73d24200e9ee74..6f355e89710952 100644 --- a/src/GridList/GridListTile.spec.js +++ b/src/GridList/GridListTile.spec.js @@ -75,6 +75,7 @@ describe('', () => { beforeEach(() => { wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that ({ }, }); -function GridListTileBar(props) { +type TitlePosition = 'top' | 'bottom'; +type ActionPosition = 'left' | 'right'; + +type DefaultProps = { + classes: Object, + actionPosition: ActionPosition, + titlePosition: TitlePosition, +}; + +export type Props = { + /** + * An IconButton element to be used as secondary action target + * (primary action target is the tile itself). + */ + actionIcon?: Element, + /** + * Position of secondary action IconButton. + */ + actionPosition?: ActionPosition, + /** + * Useful to extend the style applied to components. + */ + classes?: Object, + /** + * @ignore + */ + className?: string, + /** + * String or element serving as subtitle (support text). + */ + subtitle?: string | Element, + /** + * Title to be displayed on tile. + */ + title: string | Element, + /** + * Position of the title bar. + */ + titlePosition?: TitlePosition, +}; + +function GridListTileBar(props: DefaultProps & Props) { const { actionIcon, actionPosition, @@ -107,41 +148,9 @@ function GridListTileBar(props) { ); } -GridListTileBar.propTypes = { - /** - * An IconButton element to be used as secondary action target - * (primary action target is the tile itself). - */ - actionIcon: PropTypes.element, - /** - * Position of secondary action IconButton. - */ - actionPosition: PropTypes.oneOf(['left', 'right']), - /** - * Useful to extend the style applied to components. - */ - classes: PropTypes.object.isRequired, - /** - * @ignore - */ - className: PropTypes.string, - /** - * String or element serving as subtitle (support text). - */ - subtitle: PropTypes.node, - /** - * Title to be displayed on tile. - */ - title: PropTypes.node.isRequired, - /** - * Position of the title bar. - */ - titlePosition: PropTypes.oneOf(['top', 'bottom']), -}; - GridListTileBar.defaultProps = { - titlePosition: 'bottom', actionPosition: 'right', + titlePosition: 'bottom', }; export default withStyles(styles, { name: 'MuiGridListTileBar' })(GridListTileBar); diff --git a/src/Hidden/types.js b/src/Hidden/types.js index 007d24afb004fd..b601d88298d51e 100644 --- a/src/Hidden/types.js +++ b/src/Hidden/types.js @@ -1,13 +1,15 @@ // @flow -import type { ChildrenArray, Node } from 'react'; +import type { Node } from 'react'; import type { Breakpoint } from '../styles/createBreakpoints'; +// IMPORTANT: this must be identical to Hidden.js Props. +// This is here because docgen can't yet import type definitions across files. export type HiddenProps = { /** * The content of the component. */ - children?: $ReadOnlyArray>, + children?: Node, /** * @ignore */ diff --git a/src/Icon/Icon.js b/src/Icon/Icon.js index f817a1f0a629d7..7ad07be1e7fdb8 100644 --- a/src/Icon/Icon.js +++ b/src/Icon/Icon.js @@ -30,9 +30,11 @@ export const styles = (theme: Object) => ({ }, }); +type Color = 'inherit' | 'accent' | 'action' | 'contrast' | 'disabled' | 'error' | 'primary'; + type DefaultProps = { classes: Object, - color: 'inherit', + color: Color, }; export type Props = { @@ -51,7 +53,7 @@ export type Props = { /** * The color of the component. It's using the theme palette when that makes sense. */ - color?: 'inherit' | 'accent' | 'action' | 'contrast' | 'disabled' | 'error' | 'primary', + color?: Color, }; function Icon(props: DefaultProps & Props) { diff --git a/src/IconButton/IconButton.js b/src/IconButton/IconButton.js index b6986a3dffcd20..c501619e9f03f5 100644 --- a/src/IconButton/IconButton.js +++ b/src/IconButton/IconButton.js @@ -2,7 +2,7 @@ // @inheritedComponent ButtonBase import React from 'react'; -import PropTypes from 'prop-types'; +import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import ButtonBase from '../ButtonBase'; @@ -54,11 +54,47 @@ export const styles = (theme: Object) => ({ }, }); +type DefaultProps = { + classes: Object, +}; + +type Props = { + /** + * The icon element. + * If a string is provided, it will be used as an icon font ligature. + */ + children?: Node, + /** + * Useful to extend the style applied to components. + */ + classes?: Object, + /** + * @ignore + */ + className?: string, + /** + * The color of the component. It's using the theme palette when that makes sense. + */ + color?: 'default' | 'inherit' | 'primary' | 'contrast' | 'accent', + /** + * If `true`, the button will be disabled. + */ + disabled?: boolean, + /** + * If `true`, the ripple will be disabled. + */ + disableRipple?: boolean, + /** + * Use that property to pass a ref callback to the root component. + */ + rootRef?: Function, +}; + /** * Refer to the [Icons](/style/icons) section of the documentation * regarding the available icon options. */ -function IconButton(props) { +function IconButton(props: DefaultProps & Props) { const { children, classes, className, color, disabled, rootRef, ...other } = props; return ( @@ -96,38 +132,6 @@ function IconButton(props) { ); } -IconButton.propTypes = { - /** - * The icon element. - * If a string is provided, it will be used as an icon font ligature. - */ - children: PropTypes.node, - /** - * Useful to extend the style applied to components. - */ - classes: PropTypes.object.isRequired, - /** - * @ignore - */ - className: PropTypes.string, - /** - * The color of the component. It's using the theme palette when that makes sense. - */ - color: PropTypes.oneOf(['default', 'inherit', 'primary', 'contrast', 'accent']), - /** - * If `true`, the button will be disabled. - */ - disabled: PropTypes.bool, - /** - * If `true`, the ripple will be disabled. - */ - disableRipple: PropTypes.bool, - /** - * Use that property to pass a ref callback to the root component. - */ - rootRef: PropTypes.func, -}; - IconButton.defaultProps = { color: 'default', disabled: false, diff --git a/src/Input/Input.js b/src/Input/Input.js index 5b8587e4545939..8652772d80c4d1 100644 --- a/src/Input/Input.js +++ b/src/Input/Input.js @@ -535,7 +535,7 @@ class Input extends React.Component { } } - return ( + const renderInput = coercedValue => (
{ onKeyDown={onKeyDown} disabled={disabled} required={required ? true : undefined} - value={value} + value={coercedValue} id={id} name={name} defaultValue={defaultValue} @@ -558,6 +558,12 @@ class Input extends React.Component { />
); + + // Textarea value coercion + if (InputComponent === Textarea) { + return renderInput(value ? String(value) : undefined); + } + return renderInput(value); } } diff --git a/src/Input/Input.spec.js b/src/Input/Input.spec.js index 0aa4ded548d633..0e57083c3970db 100644 --- a/src/Input/Input.spec.js +++ b/src/Input/Input.spec.js @@ -162,6 +162,7 @@ describe('', () => { handleClean = spy(); handleDirty = spy(); wrapper = mount( + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that ', () => { let instance; before(() => { + // $FlowFixMe - HOC is hoisting of static Naked, not sure how to represent that wrapper = mount(); instance = wrapper.instance(); }); diff --git a/src/Input/Textarea.spec.js b/src/Input/Textarea.spec.js index d8c1899beaec1c..b687dbd8074e19 100644 --- a/src/Input/Textarea.spec.js +++ b/src/Input/Textarea.spec.js @@ -65,6 +65,7 @@ describe('