diff --git a/.eslintrc.json b/.eslintrc.json index caf0818..ef24f14 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,6 +12,8 @@ "plugins": ["react", "flowtype"], "parser": "babel-eslint", "rules": { + "react/no-unescaped-entities": "off", + "no-use-before-define": "off", "no-confusing-arrow": "off", "no-else-return": "off", "no-underscore-dangle": "off", diff --git a/.flowconfig b/.flowconfig index 8099d7c..bd89015 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,7 +1,4 @@ # https://flowtype.org/docs/advanced-configuration.html -[version] -0.45.0 - [ignore] .*/node_modules/jsverify/* .*/node_modules/fbjs/* @@ -9,11 +6,13 @@ .*/node_modules/systemjs-builder/* .*/node_modules/stylelint/* .*/node_modules/flow-coverage-report/* +.*/node_modules/eslint-plugin-jsx-a11y/* [options] +# FIXME - should turn on flow type for all files +# all=true suppress_comment=\\(.\\|\n\\)*\\flow-disable-next-line module.name_mapper='^.*\.css$' -> 'css-module-flow' -module.system.node.resolve_dirname=lib module.system.node.resolve_dirname=src module.system.node.resolve_dirname=node_modules module.use_strict=true diff --git a/eslintrc.json b/eslintrc.json deleted file mode 100644 index 5330d23..0000000 --- a/eslintrc.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "extends": "airbnb", - "env": { - "browser": true, - "jest": true - }, - "globals": { - "__DEV__": false - }, - "plugins": ["react", "flowtype"], - "parser": "babel-eslint", - "rules": { - "no-confusing-arrow": "off", - "no-else-return": "off", - "no-underscore-dangle": "off", - "no-duplicate-imports": "off", - "max-len": ["error", 120], - "no-unused-vars": ["error", {"args": "none"}], - "react/jsx-boolean-value": ["error", "always"], - "flowtype/define-flow-type": 1, - "import/no-extraneous-dependencies": [ - "error", { - "devDependencies": true, - "optionalDependencies": false, - "peerDependencies": false - } - ], - "import/prefer-default-export": "off", - "import/no-dynamic-require": "off", - "import/extensions": "off", - "react/self-closing-comp": "off", - "no-constant-condition": ["error", { "checkLoops": false }], - "react/jsx-filename-extension": "off", - "react/require-default-props": "off", - "jsx-a11y/no-static-element-interactions": 0, - "react/sort-comp": [1, { - "order": [ - "type-annotations", - "lifecycle", - "static-methods", - "everything-else", - "render" - ] - }], - "comma-dangle": ["error", { - "arrays": "always-multiline", - "objects": "always-multiline", - "imports": "always-multiline", - "exports": "always-multiline", - "functions": "ignore" - }], - "global-require": "off" - }, - "settings": { - "import/resolver": { - "webpack": { - "config": "config/webpack.dev.js" - } - } - } -} diff --git a/flow-typed/global.js b/flow-typed/global.js index d0a9dee..9e0cf54 100644 --- a/flow-typed/global.js +++ b/flow-typed/global.js @@ -5,6 +5,6 @@ // For hot module loading - configureStore declare var module: { hot: { - accept(path: ?string) : void; + accept(path: ?string, callback:() => void) : void; } }; diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js index 12039ad..a8c49e5 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: 1088a3be0c78a935a7ab08020e83ed49 -// flow-typed version: <>/babel-core_v^6.24.0/flow_v0.41.0 +// flow-typed signature: 9bc27a77a5243d841e24b89fd686cf0e +// flow-typed version: <>/babel-core_v^6.24.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js index 083aa9f..ee80170 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: 22e5660f6ace1e8a35df70bd5fa9b751 -// flow-typed version: <>/babel-eslint_v^7.1.1/flow_v0.41.0 +// flow-typed signature: 400b5eeff3ce041e148d7e2cae9c2efe +// flow-typed version: <>/babel-eslint_v^7.2.3/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -26,6 +26,10 @@ declare module 'babel-eslint/babylon-to-espree/attachComments' { declare module.exports: any; } +declare module 'babel-eslint/babylon-to-espree/convertComments' { + declare module.exports: any; +} + declare module 'babel-eslint/babylon-to-espree/convertTemplateType' { declare module.exports: any; } @@ -50,6 +54,9 @@ declare module 'babel-eslint/babylon-to-espree/toTokens' { declare module 'babel-eslint/babylon-to-espree/attachComments.js' { declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>; } +declare module 'babel-eslint/babylon-to-espree/convertComments.js' { + declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>; +} declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' { declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>; } diff --git a/flow-typed/npm/babel-jest_vx.x.x.js b/flow-typed/npm/babel-jest_vx.x.x.js index c1fadf2..c0436c0 100644 --- a/flow-typed/npm/babel-jest_vx.x.x.js +++ b/flow-typed/npm/babel-jest_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e29f857cbe719bd33494c101d3b55cd1 -// flow-typed version: <>/babel-jest_v^19.0.0/flow_v0.41.0 +// flow-typed signature: 3ec4cd10ba0077d5e87e4b37a0183ba6 +// flow-typed version: <>/babel-jest_v^19.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-loader_vx.x.x.js b/flow-typed/npm/babel-loader_vx.x.x.js index a6fb97e..6b0daa8 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: fe859f6659e9d11774ff45bf751d796d -// flow-typed version: <>/babel-loader_v^6.4.0/flow_v0.41.0 +// flow-typed signature: 1f9dcd953c63b7a01bead0bcdd2beb90 +// flow-typed version: <>/babel-loader_v^7.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 12a8018..aedffdb 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: fed6e02230484e52be17ed1543c17a8e -// flow-typed version: <>/babel-plugin-flow-react-proptypes_v^0.21.0/flow_v0.41.0 +// flow-typed signature: 40928691891a5abbd3877b7d22066517 +// flow-typed version: <>/babel-plugin-flow-react-proptypes_v^2.1.3/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js new file mode 100644 index 0000000..8978c9d --- /dev/null +++ b/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: a057c05b4e2d77d13f9f3c36051756fb +// flow-typed version: <>/babel-plugin-transform-decorators-legacy_v^1.3.4/flow_v0.45.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-transform-decorators-legacy' + * + * 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 'babel-plugin-transform-decorators-legacy' { + 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 'babel-plugin-transform-decorators-legacy/lib/index' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-transform-decorators-legacy/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-transform-decorators-legacy/lib/index'>; +} 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 9a8ac0b..6bb5ca7 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: 76a02125146cb48c4078050ec70abf62 -// flow-typed version: <>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.41.0 +// flow-typed signature: 32d4874973842e2f3cdc07adc9ee227e +// flow-typed version: <>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-polyfill_vx.x.x.js b/flow-typed/npm/babel-polyfill_vx.x.x.js index cf5a867..65c7385 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: 678cc58163c53b800f837a7cb3c7ce77 -// flow-typed version: <>/babel-polyfill_v^6.23.0/flow_v0.41.0 +// flow-typed signature: d4e3f7bd2fd1121b111ddbe72f4e2a5f +// flow-typed version: <>/babel-polyfill_v^6.23.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-preset-es2015_vx.x.x.js b/flow-typed/npm/babel-preset-es2015_vx.x.x.js index d25fdfe..9fd489a 100644 --- a/flow-typed/npm/babel-preset-es2015_vx.x.x.js +++ b/flow-typed/npm/babel-preset-es2015_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 073413068432a6420c7d101834ba49e7 -// flow-typed version: <>/babel-preset-es2015_v^6.24.0/flow_v0.41.0 +// flow-typed signature: cd370b622e5ac2ea9d33bafbe97f0261 +// flow-typed version: <>/babel-preset-es2015_v^6.24.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 4dd40d6..c727d2d 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: 0ef3794c33e23f232524dd1db663afa3 -// flow-typed version: <>/babel-preset-react_v^6.23.0/flow_v0.41.0 +// flow-typed signature: 75c1ceeb69838cff7b7e707faee2b414 +// flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 d3e576d..6ba7698 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: 45cdf5fce1f463f67849a6c316586249 -// flow-typed version: <>/babel-preset-stage-1_v^6.22.0/flow_v0.41.0 +// flow-typed signature: be6dd582191eff34cb03346dd14ccfb2 +// flow-typed version: <>/babel-preset-stage-1_v^6.24.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js index b7ae5f8..2ebd832 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: 274322e4f1021493f4f60a1e242a6e4d -// flow-typed version: <>/babel-runtime_v^6.23.0/flow_v0.41.0 +// flow-typed signature: 00cf7c95ddc4cf4e3ec6c14bc54d4ce4 +// flow-typed version: <>/babel-runtime_v^6.23.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/caniuse-db_vx.x.x.js b/flow-typed/npm/caniuse-db_vx.x.x.js new file mode 100644 index 0000000..0969b0c --- /dev/null +++ b/flow-typed/npm/caniuse-db_vx.x.x.js @@ -0,0 +1,18 @@ +// flow-typed signature: ef2ea5c9a24b2af08501651b659cb960 +// flow-typed version: <>/caniuse-db_v^1.0.30000665/flow_v0.45.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'caniuse-db' + * + * 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 'caniuse-db' { + declare module.exports: any; +} diff --git a/flow-typed/npm/classnames_v2.x.x.js b/flow-typed/npm/classnames_v2.x.x.js index 8c9ed1c..6911b23 100644 --- a/flow-typed/npm/classnames_v2.x.x.js +++ b/flow-typed/npm/classnames_v2.x.x.js @@ -1,9 +1,9 @@ -// flow-typed signature: cf6332fcf9a3398cffb131f7da90662b -// flow-typed version: dc0ded3d57/classnames_v2.x.x/flow_>=v0.28.x +// flow-typed signature: f18a1d7eaf96fce01718f217f06c838e +// flow-typed version: 3c3f096590/classnames_v2.x.x/flow_>=v0.23.x type $npm$classnames$Classes = string | - {[className: string]: ?boolean } | + {[className: string]: * } | Array | false | void | diff --git a/flow-typed/npm/clean-webpack-plugin_vx.x.x.js b/flow-typed/npm/clean-webpack-plugin_vx.x.x.js index 67b32c5..3b8a5e6 100644 --- a/flow-typed/npm/clean-webpack-plugin_vx.x.x.js +++ b/flow-typed/npm/clean-webpack-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: dca29d51490cce0e92eec96583affa41 -// flow-typed version: <>/clean-webpack-plugin_v^0.1.15/flow_v0.41.0 +// flow-typed signature: 4a45110229c6d6f9f25e175551a28a33 +// flow-typed version: <>/clean-webpack-plugin_v^0.1.16/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/css-loader_vx.x.x.js b/flow-typed/npm/css-loader_vx.x.x.js index e17c805..ed13fdc 100644 --- a/flow-typed/npm/css-loader_vx.x.x.js +++ b/flow-typed/npm/css-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2ca9dbe1757c10d4927a5eda42eefa7b -// flow-typed version: <>/css-loader_v^0.27.3/flow_v0.41.0 +// flow-typed signature: 737fbb90971709970fa55087dd4b3e70 +// flow-typed version: <>/css-loader_v^0.28.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -26,6 +26,10 @@ declare module 'css-loader/lib/compile-exports' { declare module.exports: any; } +declare module 'css-loader/lib/createResolver' { + declare module.exports: any; +} + declare module 'css-loader/lib/css-base' { declare module.exports: any; } @@ -64,6 +68,9 @@ declare module 'css-loader/index.js' { declare module 'css-loader/lib/compile-exports.js' { declare module.exports: $Exports<'css-loader/lib/compile-exports'>; } +declare module 'css-loader/lib/createResolver.js' { + declare module.exports: $Exports<'css-loader/lib/createResolver'>; +} declare module 'css-loader/lib/css-base.js' { declare module.exports: $Exports<'css-loader/lib/css-base'>; } diff --git a/flow-typed/npm/cssnano_vx.x.x.js b/flow-typed/npm/cssnano_vx.x.x.js index 72322f6..5fb6731 100644 --- a/flow-typed/npm/cssnano_vx.x.x.js +++ b/flow-typed/npm/cssnano_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b489227e84772193e06ee230eb2f96ba -// flow-typed version: <>/cssnano_v^3.9.1/flow_v0.41.0 +// flow-typed signature: 569f6ff6128516650735cf1932f043e7 +// flow-typed version: <>/cssnano_v^3.9.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/empty_vx.x.x.js b/flow-typed/npm/empty_vx.x.x.js index 6bd2d21..9fd36c4 100644 --- a/flow-typed/npm/empty_vx.x.x.js +++ b/flow-typed/npm/empty_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5e29258715e906efbc89df80a0008d2e -// flow-typed version: <>/empty_v^0.10.1/flow_v0.41.0 +// flow-typed signature: 2fb719a85b3d8374c9710c899e6af95b +// flow-typed version: <>/empty_v^0.10.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 85f592a..b1ecb56 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: 4f2712fff62a567e98d5b63ebaaf1d17 -// flow-typed version: <>/eslint-config-airbnb_v^14.1.0/flow_v0.41.0 +// flow-typed signature: ac9e773e9b52af3695bc8693f965ee86 +// flow-typed version: <>/eslint-config-airbnb_v^14.1.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/eslint-config-prettier_vx.x.x.js b/flow-typed/npm/eslint-config-prettier_vx.x.x.js new file mode 100644 index 0000000..7ea1e7c --- /dev/null +++ b/flow-typed/npm/eslint-config-prettier_vx.x.x.js @@ -0,0 +1,52 @@ +// flow-typed signature: 78e45892e920f98ecf1ac365ff05817a +// flow-typed version: <>/eslint-config-prettier_v^1.7.0/flow_v0.45.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'eslint-config-prettier' + * + * 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 'eslint-config-prettier' { + 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 'eslint-config-prettier/bin/cli' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/flowtype' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/react' { + declare module.exports: any; +} + +// Filename aliases +declare module 'eslint-config-prettier/bin/cli.js' { + declare module.exports: $Exports<'eslint-config-prettier/bin/cli'>; +} +declare module 'eslint-config-prettier/flowtype.js' { + declare module.exports: $Exports<'eslint-config-prettier/flowtype'>; +} +declare module 'eslint-config-prettier/index' { + declare module.exports: $Exports<'eslint-config-prettier'>; +} +declare module 'eslint-config-prettier/index.js' { + declare module.exports: $Exports<'eslint-config-prettier'>; +} +declare module 'eslint-config-prettier/react.js' { + declare module.exports: $Exports<'eslint-config-prettier/react'>; +} 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 ac17d7a..9666c24 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: e384225c37c5c77b4f7f250556716232 -// flow-typed version: <>/eslint-import-resolver-webpack_v^0.8.1/flow_v0.41.0 +// flow-typed signature: b1efbef0053f2634f4ed8ba8807ef2ce +// flow-typed version: <>/eslint-import-resolver-webpack_v^0.8.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/eslint-loader_vx.x.x.js b/flow-typed/npm/eslint-loader_vx.x.x.js index 3ecd14b..04e892a 100644 --- a/flow-typed/npm/eslint-loader_vx.x.x.js +++ b/flow-typed/npm/eslint-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5b7b0694458d19231171a56fb2a905dc -// flow-typed version: <>/eslint-loader_v^1.6.3/flow_v0.41.0 +// flow-typed signature: d28faaa873b1411af03f3d4d24a7cbf9 +// flow-typed version: <>/eslint-loader_v^1.7.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 69acfc0..431b554 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: 453e8dbcb9f9e7c5b55f4483eba1a178 -// flow-typed version: <>/eslint-plugin-flowtype_v^2.30.3/flow_v0.41.0 +// flow-typed signature: 59e233ea7b80f5120a0e46bf350dc45d +// flow-typed version: <>/eslint-plugin-flowtype_v^2.32.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -54,6 +54,10 @@ declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' { declare module.exports: any; } +declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation' { + declare module.exports: any; +} + declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' { declare module.exports: any; } @@ -215,6 +219,9 @@ declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' { declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>; } +declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' { + declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>; +} declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' { declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>; } 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 dbec350..c594f2a 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: 4cfe4ed9672a8800e1fb4e3ff3538781 -// flow-typed version: <>/eslint-plugin-import_v^2.2.0/flow_v0.41.0 +// flow-typed signature: 771f77e95193004b6da3e62d8c296e44 +// flow-typed version: <>/eslint-plugin-import_v^2.2.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 79fdd48..33c8519 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: 8788e83dbf74589a677aa2df3e908329 -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^4.0.0/flow_v0.41.0 +// flow-typed signature: e364416a275e86073351f1da7f829749 +// flow-typed version: <>/eslint-plugin-jsx-a11y_v^4.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ 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 c5f1a77..b151cb4 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: f1ace59fbee664f1e6493b7693c31a85 -// flow-typed version: <>/eslint-plugin-react_v^6.10.0/flow_v0.41.0 +// flow-typed signature: 3aa6eb3154b5aa868b3d24ef71b99f5b +// flow-typed version: <>/eslint-plugin-react_v^6.10.3/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index aad8a5a..274b6d5 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: b2ef5e633b66fee5973047f2d258878d -// flow-typed version: <>/eslint_v^3.17.1/flow_v0.41.0 +// flow-typed signature: 17a62aab0a546e8ae7bd20789aa0b4fb +// flow-typed version: <>/eslint_v^3.19.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js b/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js index 0327866..6181f4d 100644 --- a/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js +++ b/flow-typed/npm/extract-text-webpack-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6b304c30320d6fa4bdfdfe8cc560cfd2 -// flow-typed version: <>/extract-text-webpack-plugin_v^2.1.0/flow_v0.41.0 +// flow-typed signature: 22dfd1f08917d4c58ea3ced077f52836 +// flow-typed version: <>/extract-text-webpack-plugin_v^2.1.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/file-loader_vx.x.x.js b/flow-typed/npm/file-loader_vx.x.x.js index b343c1b..a7717cf 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: cd0c9c71bc1bc2ee3748f15bc3041280 -// flow-typed version: <>/file-loader_v^0.10.1/flow_v0.41.0 +// flow-typed signature: 8d9853c33f1c4a7965181466139a1673 +// flow-typed version: <>/file-loader_v^0.11.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/flow-coverage-report_vx.x.x.js b/flow-typed/npm/flow-coverage-report_vx.x.x.js index b6fb399..af6cf34 100644 --- a/flow-typed/npm/flow-coverage-report_vx.x.x.js +++ b/flow-typed/npm/flow-coverage-report_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 8f76ee7ec18a6190908237ec630ca6c0 -// flow-typed version: <>/flow-coverage-report_v^0.3.0/flow_v0.41.0 +// flow-typed signature: 9ce03f9cc78e1b0b8df6696446e59e95 +// flow-typed version: <>/flow-coverage-report_v^0.3.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/html-webpack-plugin_vx.x.x.js b/flow-typed/npm/html-webpack-plugin_vx.x.x.js index 72d1358..a809937 100644 --- a/flow-typed/npm/html-webpack-plugin_vx.x.x.js +++ b/flow-typed/npm/html-webpack-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: eacd3c6e4b0dfcbba2ecf9002206916f -// flow-typed version: <>/html-webpack-plugin_v^2.28.0/flow_v0.41.0 +// flow-typed signature: 1d3da4e985ed6461da0a3887aab3f7d4 +// flow-typed version: <>/html-webpack-plugin_v^2.28.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/http-server_vx.x.x.js b/flow-typed/npm/http-server_vx.x.x.js index 700b18e..3730a48 100644 --- a/flow-typed/npm/http-server_vx.x.x.js +++ b/flow-typed/npm/http-server_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ff077834cd0a0c00c9b37b1adf8774c4 -// flow-typed version: <>/http-server_v^0.9.0/flow_v0.41.0 +// flow-typed signature: db04a403c1383013c3d5ec760214d8db +// flow-typed version: <>/http-server_v^0.10.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/identity-obj-proxy_vx.x.x.js b/flow-typed/npm/identity-obj-proxy_vx.x.x.js index ad67cd6..f22e6c1 100644 --- a/flow-typed/npm/identity-obj-proxy_vx.x.x.js +++ b/flow-typed/npm/identity-obj-proxy_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5568ad14c6d1bb68831291f458745f97 -// flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.41.0 +// flow-typed signature: 255a1806cd6afce80b9aa1ba8b9b859e +// flow-typed version: <>/identity-obj-proxy_v^3.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/istanbul-instrumenter-loader_vx.x.x.js b/flow-typed/npm/istanbul-instrumenter-loader_vx.x.x.js index 4b2fddd..0b1cba0 100644 --- a/flow-typed/npm/istanbul-instrumenter-loader_vx.x.x.js +++ b/flow-typed/npm/istanbul-instrumenter-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 8b54150dfd323fb9653d0f8d4cfa620b -// flow-typed version: <>/istanbul-instrumenter-loader_v^2.0.0/flow_v0.41.0 +// flow-typed signature: f68e126dd8dcfe441f5e3793fe4e4a43 +// flow-typed version: <>/istanbul-instrumenter-loader_v^2.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/jest_v19.x.x.js b/flow-typed/npm/jest_v19.x.x.js index fd4797c..b12e3e9 100644 --- a/flow-typed/npm/jest_v19.x.x.js +++ b/flow-typed/npm/jest_v19.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: adc2f239806ddd8eb09272d1b4e23cb9 -// flow-typed version: 7dc2a8971e/jest_v19.x.x/flow_>=v0.33.x +// flow-typed signature: b3ed97c44539e6cdbaf9032b315a2b31 +// flow-typed version: ea7ac31527/jest_v19.x.x/flow_>=v0.33.x type JestMockFn = { (...args: Array): any, @@ -247,6 +247,11 @@ type JestObjectType = { * An un-hoisted version of enableAutomock */ autoMockOn(): JestObjectType, + /** + * Clears the mock.calls and mock.instances properties of all mocks. + * Equivalent to calling .mockClear() on every mocked function. + */ + clearAllMocks(): JestObjectType, /** * Resets the state of all mocks. Equivalent to calling .mockReset() on every * mocked function. diff --git a/flow-typed/npm/json-loader_vx.x.x.js b/flow-typed/npm/json-loader_vx.x.x.js index ebf9598..cdff069 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: f614c51644c37d42d8d3c102d31dde3a -// flow-typed version: <>/json-loader_v^0.5.4/flow_v0.41.0 +// flow-typed signature: 9090c064745c91426c7c3ca7498042f0 +// flow-typed version: <>/json-loader_v^0.5.4/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js index dd6d380..ce14747 100644 --- a/flow-typed/npm/lodash_v4.x.x.js +++ b/flow-typed/npm/lodash_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 78dae8071af35cd03d9d90192a5461d9 -// flow-typed version: e26b789976/lodash_v4.x.x/flow_>=v0.38.x +// flow-typed signature: a7d253bb465906a2d746884b23c74257 +// flow-typed version: df11ef698b/lodash_v4.x.x/flow_>=v0.38.x declare module 'lodash' { declare type TemplateSettings = { @@ -49,9 +49,10 @@ declare module 'lodash' { | matchesPropertyIterateeShorthand | propertyIterateeShorthand; + declare type _ValueOnlyIteratee = (value: T) => mixed; + declare type ValueOnlyIteratee = _ValueOnlyIteratee|string; declare type _Iteratee = (item: T, index: number, array: ?Array) => mixed; declare type Iteratee = _Iteratee|Object|string; - declare type Iteratee2 = ((item: T, index: number, array: ?Array) => U)|Object|string; declare type FlatMapIteratee = ((item: T, index: number, array: ?Array) => Array)|Object|string; declare type Comparator = (item: T, item2: T) => bool; @@ -69,7 +70,7 @@ declare module 'lodash' { compact(array: Array): Array; concat(base: Array, ...elements: Array): Array; difference(array: ?Array, values?: Array): Array; - differenceBy(array: ?Array, values: Array, iteratee: Iteratee): T[]; + differenceBy(array: ?Array, values: Array, iteratee: ValueOnlyIteratee): T[]; differenceWith(array: T[], values: T[], comparator?: Comparator): T[]; drop(array: ?Array, n?: number): Array; dropRight(array: ?Array, n?: number): Array; @@ -89,10 +90,10 @@ declare module 'lodash' { initial(array: ?Array): Array; intersection(...arrays: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionBy(a1: Array, iteratee?: Iteratee): Array; - intersectionBy(a1: Array, a2: Array, iteratee?: Iteratee): Array; - intersectionBy(a1: Array, a2: Array, a3: Array, iteratee?: Iteratee): Array; - intersectionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: Iteratee): Array; + intersectionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; + intersectionBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; + intersectionBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; + intersectionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; //Workaround until (...parameter: T, parameter2: U) works intersectionWith(a1: Array, comparator: Comparator): Array; intersectionWith(a1: Array, a2: Array, comparator: Comparator): Array; @@ -104,7 +105,7 @@ declare module 'lodash' { nth(array: T[], n?: number): T; pull(array: ?Array, ...values?: Array): Array; pullAll(array: ?Array, values: Array): Array; - pullAllBy(array: ?Array, values: Array, iteratee?: Iteratee): Array; + pullAllBy(array: ?Array, values: Array, iteratee?: ValueOnlyIteratee): Array; pullAllWith(array?: T[], values: T[], comparator?: Function): T[]; pullAt(array: ?Array, ...indexed?: Array): Array; pullAt(array: ?Array, indexed?: Array): Array; @@ -112,10 +113,10 @@ declare module 'lodash' { reverse(array: ?Array): Array; slice(array: ?Array, start?: number, end?: number): Array; sortedIndex(array: ?Array, value: T): number; - sortedIndexBy(array: ?Array, value: T, iteratee?: Iteratee): number; + sortedIndexBy(array: ?Array, value: T, iteratee?: ValueOnlyIteratee): number; sortedIndexOf(array: ?Array, value: T): number; sortedLastIndex(array: ?Array, value: T): number; - sortedLastIndexBy(array: ?Array, value: T, iteratee?: Iteratee): number; + sortedLastIndexBy(array: ?Array, value: T, iteratee?: ValueOnlyIteratee): number; sortedLastIndexOf(array: ?Array, value: T): number; sortedUniq(array: ?Array): Array; sortedUniqBy(array: ?Array, iteratee?: (value: T) => mixed): Array; @@ -126,27 +127,27 @@ declare module 'lodash' { takeWhile(array: ?Array, predicate?: Predicate): Array; union(...arrays?: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - unionBy(a1: Array, iteratee?: Iteratee): Array; - unionBy(a1: Array, a2: Array, iteratee?: Iteratee): Array; - unionBy(a1: Array, a2: Array, a3: Array, iteratee?: Iteratee): Array; - unionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: Iteratee): Array; + unionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; + unionBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; + unionBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; + unionBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; //Workaround until (...parameter: T, parameter2: U) works unionWith(a1: Array, comparator?: Comparator): Array; unionWith(a1: Array, a2: Array, comparator?: Comparator): Array; unionWith(a1: Array, a2: Array, a3: Array, comparator?: Comparator): Array; unionWith(a1: Array, a2: Array, a3: Array, a4: Array, comparator?: Comparator): Array; uniq(array: ?Array): Array; - uniqBy(array: ?Array, iteratee?: Iteratee): Array; + uniqBy(array: ?Array, iteratee?: ValueOnlyIteratee): Array; uniqWith(array: ?Array, comparator?: Comparator): Array; unzip(array: ?Array): Array; unzipWith(array: ?Array, iteratee?: Iteratee): Array; without(array: ?Array, ...values?: Array): Array; xor(...array: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1: Array, iteratee?: Iteratee): Array; - xorBy(a1: Array, a2: Array, iteratee?: Iteratee): Array; - xorBy(a1: Array, a2: Array, a3: Array, iteratee?: Iteratee): Array; - xorBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: Iteratee): Array; + xorBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; + xorBy(a1: Array, a2: Array, iteratee?: ValueOnlyIteratee): Array; + xorBy(a1: Array, a2: Array, a3: Array, iteratee?: ValueOnlyIteratee): Array; + xorBy(a1: Array, a2: Array, a3: Array, a4: Array, iteratee?: ValueOnlyIteratee): Array; //Workaround until (...parameter: T, parameter2: U) works xorWith(a1: Array, comparator?: Comparator): Array; xorWith(a1: Array, a2: Array, comparator?: Comparator): Array; @@ -166,8 +167,8 @@ declare module 'lodash' { zipWith(a1: NestedArray, a2: NestedArray, a3: NestedArray, a4: NestedArray, iteratee?: Iteratee): Array; // Collection - countBy(array: ?Array, iteratee?: Iteratee): Object; - countBy(object: T, iteratee?: OIteratee): Object; + countBy(array: ?Array, iteratee?: ValueOnlyIteratee): Object; + countBy(object: T, iteratee?: ValueOnlyIteratee): Object; // alias of _.forEach each(array: ?Array, iteratee?: Iteratee): Array; each(object: T, iteratee?: OIteratee): T; @@ -178,9 +179,9 @@ declare module 'lodash' { every(object: T, iteratee?: OIteratee): bool; filter(array: ?Array, predicate?: Predicate): Array; filter(object: T, predicate?: OPredicate): Array; - find(array: ?Array, predicate?: Predicate): T; + find(array: ?Array, predicate?: Predicate): T|void; find(object: T, predicate?: OPredicate): V; - findLast(array: ?Array, predicate?: Predicate): T; + findLast(array: ?Array, predicate?: Predicate): T|void; findLast(object: T, predicate?: OPredicate): V; flatMap(array: ?Array, iteratee?: FlatMapIteratee): Array; flatMap(object: T, iteratee?: OFlatMapIteratee): Array; @@ -192,15 +193,15 @@ declare module 'lodash' { forEach(object: T, iteratee?: OIteratee): T; forEachRight(array: ?Array, iteratee?: Iteratee): Array; forEachRight(object: T, iteratee?: OIteratee): T; - groupBy(array: ?Array, iteratee?: Iteratee): Object; - groupBy(object: T, iteratee?: OIteratee): Object; + groupBy(array: ?Array, iteratee?: ValueOnlyIteratee): {[key: V]: ?Array}; + groupBy(object: T, iteratee?: ValueOnlyIteratee): {[key: V]: ?Array}; includes(array: ?Array, value: T, fromIndex?: number): bool; includes(object: T, value: any, fromIndex?: number): bool; includes(str: string, value: string, fromIndex?: number): bool; invokeMap(array: ?Array, path: ((value: T) => Array|string)|Array|string, ...args?: Array): Array; invokeMap(object: T, path: ((value: any) => Array|string)|Array|string, ...args?: Array): Array; - keyBy(array: ?Array, iteratee?: Iteratee2): {[key: V]: ?T}; - keyBy(object: T, iteratee?: OIteratee): Object; + keyBy(array: ?Array, iteratee?: ValueOnlyIteratee): {[key: V]: ?T}; + keyBy(object: T, iteratee?: ValueOnlyIteratee): {[key: V]: ?A}; map(array: ?Array, iteratee?: MapIterator): Array; map(object: ?T, iteratee?: OMapIterator): Array; map(str: ?string, iteratee?: (char: string, index: number, str: string) => any): string; diff --git a/flow-typed/npm/postcss-cssnext_vx.x.x.js b/flow-typed/npm/postcss-cssnext_vx.x.x.js index 1fde766..1baeea2 100644 --- a/flow-typed/npm/postcss-cssnext_vx.x.x.js +++ b/flow-typed/npm/postcss-cssnext_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7868771568d8bcb837522c2219b0e344 -// flow-typed version: <>/postcss-cssnext_v^2.9.0/flow_v0.41.0 +// flow-typed signature: be3c42f0be691665a5ce7791788698f9 +// flow-typed version: <>/postcss-cssnext_v^2.10.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/postcss-import_vx.x.x.js b/flow-typed/npm/postcss-import_vx.x.x.js index 7fcb6f2..8e58299 100644 --- a/flow-typed/npm/postcss-import_vx.x.x.js +++ b/flow-typed/npm/postcss-import_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 58058147516c325acfb73058ae6fb9f5 -// flow-typed version: <>/postcss-import_v^9.1.0/flow_v0.41.0 +// flow-typed signature: 7e22d837ef1af4592fa51f4b70c84b9d +// flow-typed version: <>/postcss-import_v^9.1.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/postcss-loader_vx.x.x.js b/flow-typed/npm/postcss-loader_vx.x.x.js index 9439553..1aef3b3 100644 --- a/flow-typed/npm/postcss-loader_vx.x.x.js +++ b/flow-typed/npm/postcss-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 603a44cd7d8deb9ad7bf0db7a2aa286c -// flow-typed version: <>/postcss-loader_v^1.3.3/flow_v0.41.0 +// flow-typed signature: e296d334a577f0893b984b1c0490a4f0 +// flow-typed version: <>/postcss-loader_v^1.3.3/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/postcss-reporter_vx.x.x.js b/flow-typed/npm/postcss-reporter_vx.x.x.js index 29eb723..90e9a04 100644 --- a/flow-typed/npm/postcss-reporter_vx.x.x.js +++ b/flow-typed/npm/postcss-reporter_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e489f67e68af29c5308ca7d9227f438e -// flow-typed version: <>/postcss-reporter_v^3.0.0/flow_v0.41.0 +// flow-typed signature: 326de938bbbd32822342cea26153301e +// flow-typed version: <>/postcss-reporter_v^3.0.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/react-hot-loader_vx.x.x.js b/flow-typed/npm/react-hot-loader_vx.x.x.js index 79d18cf..61fe653 100644 --- a/flow-typed/npm/react-hot-loader_vx.x.x.js +++ b/flow-typed/npm/react-hot-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ba5914948d72e22a3ef01c19512914d3 -// flow-typed version: <>/react-hot-loader_v^1.3.1/flow_v0.39.0 +// flow-typed signature: 166958f15eb332e55f42482f52d4ee7c +// flow-typed version: <>/react-hot-loader_v3.0.0-beta.6/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -22,37 +22,65 @@ declare module 'react-hot-loader' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'react-hot-loader/getRootInstancesFromReactMount' { +declare module 'react-hot-loader/babel' { declare module.exports: any; } -declare module 'react-hot-loader/Injection' { +declare module 'react-hot-loader/lib/AppContainer.dev' { declare module.exports: any; } -declare module 'react-hot-loader/isReactClassish' { +declare module 'react-hot-loader/lib/AppContainer' { declare module.exports: any; } -declare module 'react-hot-loader/isReactElementish' { +declare module 'react-hot-loader/lib/AppContainer.prod' { declare module.exports: any; } -declare module 'react-hot-loader/makeExportsHot' { +declare module 'react-hot-loader/lib/babel/index' { declare module.exports: any; } -declare module 'react-hot-loader/makeIdentitySourceMap' { +declare module 'react-hot-loader/lib/index' { declare module.exports: any; } -declare module 'react-hot-loader/RootInstanceProvider' { +declare module 'react-hot-loader/lib/patch.dev' { + declare module.exports: any; +} + +declare module 'react-hot-loader/lib/patch' { + declare module.exports: any; +} + +declare module 'react-hot-loader/lib/patch.prod' { + declare module.exports: any; +} + +declare module 'react-hot-loader/lib/webpack/index' { + declare module.exports: any; +} + +declare module 'react-hot-loader/lib/webpack/makeIdentitySourceMap' { + declare module.exports: any; +} + +declare module 'react-hot-loader/lib/webpack/tagCommonJSExports' { + declare module.exports: any; +} + +declare module 'react-hot-loader/patch' { + declare module.exports: any; +} + +declare module 'react-hot-loader/webpack' { declare module.exports: any; } // Filename aliases -declare module 'react-hot-loader/getRootInstancesFromReactMount.js' { - declare module.exports: $Exports<'react-hot-loader/getRootInstancesFromReactMount'>; +declare module 'react-hot-loader/babel.js' { + declare module.exports: $Exports<'react-hot-loader/babel'>; } declare module 'react-hot-loader/index' { declare module.exports: $Exports<'react-hot-loader'>; @@ -60,21 +88,42 @@ declare module 'react-hot-loader/index' { declare module 'react-hot-loader/index.js' { declare module.exports: $Exports<'react-hot-loader'>; } -declare module 'react-hot-loader/Injection.js' { - declare module.exports: $Exports<'react-hot-loader/Injection'>; +declare module 'react-hot-loader/lib/AppContainer.dev.js' { + declare module.exports: $Exports<'react-hot-loader/lib/AppContainer.dev'>; +} +declare module 'react-hot-loader/lib/AppContainer.js' { + declare module.exports: $Exports<'react-hot-loader/lib/AppContainer'>; +} +declare module 'react-hot-loader/lib/AppContainer.prod.js' { + declare module.exports: $Exports<'react-hot-loader/lib/AppContainer.prod'>; +} +declare module 'react-hot-loader/lib/babel/index.js' { + declare module.exports: $Exports<'react-hot-loader/lib/babel/index'>; +} +declare module 'react-hot-loader/lib/index.js' { + declare module.exports: $Exports<'react-hot-loader/lib/index'>; +} +declare module 'react-hot-loader/lib/patch.dev.js' { + declare module.exports: $Exports<'react-hot-loader/lib/patch.dev'>; +} +declare module 'react-hot-loader/lib/patch.js' { + declare module.exports: $Exports<'react-hot-loader/lib/patch'>; +} +declare module 'react-hot-loader/lib/patch.prod.js' { + declare module.exports: $Exports<'react-hot-loader/lib/patch.prod'>; } -declare module 'react-hot-loader/isReactClassish.js' { - declare module.exports: $Exports<'react-hot-loader/isReactClassish'>; +declare module 'react-hot-loader/lib/webpack/index.js' { + declare module.exports: $Exports<'react-hot-loader/lib/webpack/index'>; } -declare module 'react-hot-loader/isReactElementish.js' { - declare module.exports: $Exports<'react-hot-loader/isReactElementish'>; +declare module 'react-hot-loader/lib/webpack/makeIdentitySourceMap.js' { + declare module.exports: $Exports<'react-hot-loader/lib/webpack/makeIdentitySourceMap'>; } -declare module 'react-hot-loader/makeExportsHot.js' { - declare module.exports: $Exports<'react-hot-loader/makeExportsHot'>; +declare module 'react-hot-loader/lib/webpack/tagCommonJSExports.js' { + declare module.exports: $Exports<'react-hot-loader/lib/webpack/tagCommonJSExports'>; } -declare module 'react-hot-loader/makeIdentitySourceMap.js' { - declare module.exports: $Exports<'react-hot-loader/makeIdentitySourceMap'>; +declare module 'react-hot-loader/patch.js' { + declare module.exports: $Exports<'react-hot-loader/patch'>; } -declare module 'react-hot-loader/RootInstanceProvider.js' { - declare module.exports: $Exports<'react-hot-loader/RootInstanceProvider'>; +declare module 'react-hot-loader/webpack.js' { + declare module.exports: $Exports<'react-hot-loader/webpack'>; } diff --git a/flow-typed/npm/react-markdown_vx.x.x.js b/flow-typed/npm/react-markdown_vx.x.x.js index 7fec416..ceef3a5 100644 --- a/flow-typed/npm/react-markdown_vx.x.x.js +++ b/flow-typed/npm/react-markdown_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5d7ad4649eec7bbcab60d29a247a2819 -// flow-typed version: <>/react-markdown_v^2.4.5/flow_v0.41.0 +// flow-typed signature: 7bf8dc51c027eed4917648eda42f0427 +// flow-typed version: <>/react-markdown_v^2.5.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/react-redux_v5.x.x.js b/flow-typed/npm/react-redux_v5.x.x.js index 8be01f1..bd81781 100644 --- a/flow-typed/npm/react-redux_v5.x.x.js +++ b/flow-typed/npm/react-redux_v5.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 0ed284c5a2e97a9e3c0e87af3dedc09d -// flow-typed version: bdf1e66252/react-redux_v5.x.x/flow_>=v0.30.x +// flow-typed signature: cfe423889942df70fd53fcaad18ef279 +// flow-typed version: 84d79be776/react-redux_v5.x.x/flow_>=v0.30.x import type { Dispatch, Store } from 'redux' @@ -21,7 +21,9 @@ declare module 'react-redux' { declare type MergeProps = (stateProps: SP, dispatchProps: DP, ownProps: OP) => P; - declare type StatelessComponent

= (props: P) => ?React$Element; + declare type Context = { store: Store<*, *> }; + + declare type StatelessComponent

= (props: P, context: Context) => ?React$Element; declare class ConnectedComponent extends React$Component { static WrappedComponent: Class>; diff --git a/flow-typed/npm/react-router-redux_vx.x.x.js b/flow-typed/npm/react-router-redux_vx.x.x.js index f641165..62533c4 100644 --- a/flow-typed/npm/react-router-redux_vx.x.x.js +++ b/flow-typed/npm/react-router-redux_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7e1f48e6273cfc45d48e479414379661 -// flow-typed version: <>/react-router-redux_v^4.0.8/flow_v0.41.0 +// flow-typed signature: f622b04a15324ba342c8390cba9b99ee +// flow-typed version: <>/react-router-redux_v^4.0.8/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/react-router_v4.x.x.js b/flow-typed/npm/react-router_v4.x.x.js new file mode 100644 index 0000000..4a55fa1 --- /dev/null +++ b/flow-typed/npm/react-router_v4.x.x.js @@ -0,0 +1,126 @@ +// flow-typed signature: 71d6f309a9d8ddb697f108d53ec68559 +// flow-typed version: fb2079e84e/react-router_v4.x.x/flow_>=v0.38.x + +declare module 'react-router' { + // NOTE: many of these are re-exported by react-router-dom and + // react-router-native, so when making changes, please be sure to update those + // as well. + declare export type Location = { + pathname: string, + search: string, + hash: string, + state?: any, + key?: string, + } + + declare export type LocationShape = { + pathname?: string, + search?: string, + hash?: string, + state?: any, + } + + declare export type HistoryAction = 'PUSH' | 'REPLACE' | 'POP' + + declare export type RouterHistory = { + length: number, + location: Location, + action: HistoryAction, + listen(callback: (location: Location, action: HistoryAction) => void): () => void, + push(path: string | LocationShape, state?: any): void, + replace(path: string | LocationShape, state?: any): void, + go(n: number): void, + goBack(): void, + goForward(): void, + canGo?: (n: number) => bool, + block(callback: (location: Location, action: HistoryAction) => boolean): void, + // createMemoryHistory + index?: number, + entries?: Array, + } + + declare export type Match = { + params: Object, + isExact: boolean, + path: string, + url: string, + } + + declare export type ContextRouter = RouterHistory & { + match: Match, + } + + declare export type GetUserConfirmation = + (message: string, callback: (confirmed: boolean) => void) => void + + declare type StaticRouterContext = { + url?: string, + } + + declare export class StaticRouter extends React$Component { + props: { + basename?: string, + location?: string | Location, + context: StaticRouterContext, + children?: React$Element<*>, + } + } + + declare export class MemoryRouter extends React$Component { + props: { + initialEntries?: Array, + initialIndex?: number, + getUserConfirmation?: GetUserConfirmation, + keyLength?: number, + children?: React$Element<*>, + } + } + + declare export class Router extends React$Component { + props: { + history: RouterHistory, + children?: React$Element<*>, + } + } + + declare export class Prompt extends React$Component { + props: { + message: string | (location: Location) => string | true, + when?: boolean, + } + } + + declare export class Redirect extends React$Component { + props: { + to: string | LocationShape, + push?: boolean, + } + } + + declare export class Route extends React$Component { + props: { + component?: ReactClass<*>, + render?: (router: ContextRouter) => React$Element<*>, + children?: (router: ContextRouter) => React$Element<*>, + path?: string, + exact?: bool, + strict?: bool, + } + } + + declare export class Switch extends React$Component { + props: { + children?: Array>, + } + } + + declare type FunctionComponent

= (props: P) => ?React$Element; + declare type ClassComponent = Class>; + declare export function withRouter(Component: ClassComponent | FunctionComponent

- -
- - - {children} - -
+const App = (props: Props) => ( + +
+ +
+ + + + + + + + + + +
- ); - } -} - -const mapStateToProps = (state: State) => ({ - service: state.application.service, - organizations: state.app.organizations, - organization: state.organization.organization, - applications: state.organization.applications, - importedServices: state.application.importedServices, -}); - -// FIXME type for dispatch -const mapDispatchToProps = dispatch => ({ - actions: bindActionCreators(actions, dispatch), -}); +
+
+); -export default connect(mapStateToProps, mapDispatchToProps)(App); +export default App; diff --git a/src/application/components/Application.js b/src/application/components/Application.js index f511817..a4df426 100644 --- a/src/application/components/Application.js +++ b/src/application/components/Application.js @@ -10,37 +10,38 @@ import * as utils from 'utils'; import Model from 'application/components/Model'; import Enum from 'application/components/Enum'; +import { actions as serviceActions } from 'generated/version'; + import type { Service } from 'generated/version/ServiceType'; +import type { Match } from 'params'; import styles from 'application/components/application.css'; -import { actions as serviceActions } from 'generated/version'; - const allActions = Object.assign({}, serviceActions); -type Params = { +type Params = {| model?: string, resource?: string, method: string, path: string, applicationKey: string, organizationKey: string, -}; +|}; -type Props = { +type Props = {| actions: Object, // FIXME - params: Params, // FIXME + match: Match, loaded: boolean, service: Service, importedServices: Service[], -}; +|}; export class Application extends Component { props: Props; componentDidMount() { - const orgKey = this.props.params.organizationKey; - const applicationKey = this.props.params.applicationKey; + const orgKey = this.props.match.params.organizationKey; + const applicationKey = this.props.match.params.applicationKey; this.props.actions.getByOrgkeyAndApplicationkeyAndVersion_get({ orgKey, applicationKey, @@ -54,7 +55,7 @@ export class Application extends Component { if (!service) { return ; } - if (this.props.params.resource) { + if (this.props.match.params.resource) { // Load Operation const { method, @@ -62,7 +63,7 @@ export class Application extends Component { resource: resourceType, applicationKey, organizationKey, - } = this.props.params; + } = this.props.match.params; const operation = utils.getOperation(resourceType, method, path, service); const resource = utils.getResource(resourceType, service); @@ -81,9 +82,9 @@ export class Application extends Component { /> ); - } else if (this.props.params.model) { + } else if (this.props.match.params.model) { // Load Model - const modelName = this.props.params.model; + const modelName = this.props.match.params.model; if (utils.isEnum(modelName, service, importedServices)) { const enumModel = utils.getEnum(modelName, service, importedServices); return enumModel @@ -110,7 +111,7 @@ export class Application extends Component { } } else { // Load Application Home - const { applicationKey, organizationKey } = this.props.params; + const { applicationKey, organizationKey } = this.props.match.params; return ( diff --git a/src/application/components/Application.test.js b/src/application/components/Application.test.js index 4fbc8a3..5e4416e 100644 --- a/src/application/components/Application.test.js +++ b/src/application/components/Application.test.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; import renderer from 'react-test-renderer'; +import { MemoryRouter } from 'react-router'; import { Application } from 'application/components/Application'; import Example from 'exampleService.json'; @@ -9,20 +10,29 @@ import { actions as serviceActions } from 'generated/version'; test('Application Home', () => { const params = { actions: serviceActions, - params: { - model: undefined, - resource: undefined, - method: '', - path: '', - applicationKey: '', - organizationKey: '', + match: { + params: { + model: undefined, + resource: undefined, + method: '', + path: '', + applicationKey: '', + organizationKey: '', + }, + url: '/', + path: '/', + isExact: true, }, loaded: true, service: Example, importedServices: [], }; - const component = renderer.create(); + const component = renderer.create( + + + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); diff --git a/src/application/components/ApplicationHome.js b/src/application/components/ApplicationHome.js index d6b3bbd..d2039d9 100644 --- a/src/application/components/ApplicationHome.js +++ b/src/application/components/ApplicationHome.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import { onClickHref, cleanPath } from 'utils'; +import { cleanPath } from 'utils'; import H1 from 'components/H1'; import Markdown from 'components/Markdown'; @@ -39,8 +39,10 @@ const ApplicationHome = ({ key={operation.method + operation.path} method={operation.method} path={operation.path} - click={onClickHref( - buildClickHref(resource.type, operation.method, operation.path) + toHref={buildClickHref( + resource.type, + operation.method, + operation.path )} description={operation.description} /> diff --git a/src/application/components/JsonDoc/Element.js b/src/application/components/JsonDoc/Element.js index a05306e..2774bbe 100644 --- a/src/application/components/JsonDoc/Element.js +++ b/src/application/components/JsonDoc/Element.js @@ -1,7 +1,16 @@ // @flow import React from 'react'; -import * as utils from 'utils'; +import { + buildNavHref, + isArray, + getEnum, + getModel, + isEnum, + isModel, + Link, +} from 'utils'; + import * as defaults from 'application/components/JsonDoc/defaults'; import styles from 'application/components/JsonDoc/json-doc.css'; @@ -14,49 +23,47 @@ const spaces = (indent: number): string => const comma = (isLast: boolean): string => (isLast ? '' : ','); /** - JFields - the lines with "name: ..." eg: + JFields - the lines with "name: ..." eg: ... "name": "value", ... "name": ... - Elements - the lines without labels - they just have values, eg array contents or a model. eg: - ... - [ - "value", - ] - ... - { - "value", - } - ... + Elements - the lines without labels - they just have values, eg array contents or a model. eg: + ... + [ + "value", + ] + ... + { + "value", + } + ... - Load 'test-jsondoc-spec.json' into apidoc for testing all the permutations. - It should look like 'test-jsondoc-spec-expected.js'. -*/ + Load 'test-jsondoc-spec.json' into apidoc for testing all the permutations. + It should look like 'test-jsondoc-spec-expected.js'. + */ -const click = (fieldKey: string, service: Service) => - utils.onClickHref( - utils.buildNavHref({ - organization: service.organization.key, - application: service.application.key, - model: fieldKey.split('.')[0], - field: fieldKey, - }) - ); +const click = (fieldKey: string, service: Service): string => + buildNavHref({ + organization: service.organization.key, + application: service.application.key, + model: fieldKey.split('.')[0], + field: fieldKey, + }); const FieldClickable = ( { fieldKey, mouseOver, - onClick, children, + toHref, }: { fieldKey: string, mouseOver: (event: SyntheticEvent) => void, - onClick: () => void, children?: React$Element<*>, + toHref: string, } = {} ) => (
); @@ -75,24 +82,24 @@ const ElementClickable = ( { fieldKey, mouseOver, - onClick, + toHref, children, }: { fieldKey: string, mouseOver: (event: SyntheticEvent) => void, - onClick: () => void, + toHref: string, children?: React$Element<*>, } = {} ) => ( ); @@ -102,22 +109,22 @@ const SingleLineField = ({ fieldKey, indent, mouseOver, - onClick, + toHref, isLast, }: { - label: string, - value: string, - fieldKey: string, - indent: number, - mouseOver: (event: SyntheticEvent) => void, - onClick: Function, // FIXME () => void, - isLast: boolean, - }) => ( - - {spaces(indent)}"{label}": - {value}{comma(isLast)} - - ); + label: string, + value: string, + fieldKey: string, + indent: number, + mouseOver: (event: SyntheticEvent) => void, + toHref: string, + isLast: boolean, +}) => ( + + {spaces(indent)}"{label}": + {value}{comma(isLast)} + +); const MultiLineField = ( { @@ -125,26 +132,22 @@ const MultiLineField = ( fieldKey, indent, mouseOver, - onClick, + toHref, children, }: { label: string, fieldKey: string, indent: number, mouseOver: (event: SyntheticEvent) => void, - onClick: Function, // FIXME () => void, + toHref: string, children?: React$Element<*>, } = {} ) => (
- - {spaces(indent)}"{label}": + + {spaces(indent)}"{label}": - + {children}
@@ -155,33 +158,33 @@ const SimpleElement = ({ fieldKey, indent, mouseOver, - onClick, + toHref, isLast, }: { - value: string, - fieldKey: string, - indent: number, - mouseOver: (event: SyntheticEvent) => void, - onClick: Function, // FIXME () => void - isLast: boolean, - }) => ( - - {spaces(indent)}{value}{comma(isLast)} - - ); + value: string, + fieldKey: string, + indent: number, + mouseOver: (event: SyntheticEvent) => void, + toHref: string, + isLast: boolean, +}) => ( + + {spaces(indent)}{value}{comma(isLast)} + +); const ArrayElement = ({ fieldKey, indent, mouseOver, - onClick, + toHref, children, isLast, }: { fieldKey: string, indent: number, mouseOver: (event: SyntheticEvent) => void, - onClick: Function, // FIXME () => void, + toHref: string, children?: React$Element<*>, isLast: boolean, }) => { @@ -209,14 +212,14 @@ const ModelElement = ({ importedServices, isLast, }: { - model: ?Model, - fieldKey: string, - indent: number, - mouseOver: (event: SyntheticEvent) => void, - service: Service, - importedServices: Service[], - isLast: boolean, - }) => { + model: ?Model, + fieldKey: string, + indent: number, + mouseOver: (event: SyntheticEvent) => void, + service: Service, + importedServices: Service[], + isLast: boolean, +}) => { if (model !== null && model !== undefined) { const name = model.name; const length = model.fields.length; @@ -258,24 +261,24 @@ export const JField = ({ importedServices, isLast, }: { - field: Field, - fieldKey: string, - indent: number, - mouseOver: (event: SyntheticEvent) => void, - service: Service, - importedServices: Service[], - isLast: boolean, - }) => { + field: Field, + fieldKey: string, + indent: number, + mouseOver: (event: SyntheticEvent) => void, + service: Service, + importedServices: Service[], + isLast: boolean, +}) => { const type = field.type; - if (utils.isArray(type) || utils.isModel(type, service, importedServices)) { + if (isArray(type) || isModel(type, service, importedServices)) { return ( ); @@ -322,29 +325,28 @@ const Element = ({ importedServices, isLast, }: { - field?: Field, - type: string, - fieldKey: string, - indent: number, - mouseOver: (event: SyntheticEvent) => void, - service: Service, - importedServices: Service[], - isLast: boolean, - }) => { + field?: Field, + type: string, + fieldKey: string, + indent: number, + mouseOver: (event: SyntheticEvent) => void, + service: Service, + importedServices: Service[], + isLast: boolean, +}) => { let element = null; - const isArray = utils.isArray(type); - if (utils.isModel(type, service, importedServices)) { - const model = utils.getModel(type, service, importedServices); + if (isModel(type, service, importedServices)) { + const model = getModel(type, service, importedServices); element = ( ); } else { @@ -358,21 +360,21 @@ const Element = ({ fieldKey={fieldKey} indent={indent} mouseOver={mouseOver} - onClick={click(fieldKey, service)} + toHref={click(fieldKey, service)} service={service} importedServices={importedServices} - isLast={isArray || isLast} + isLast={isArray(type) || isLast} /> ); } - if (isArray) { + if (isArray(type)) { return ( {element} diff --git a/src/application/components/JsonDoc/Element.test.js b/src/application/components/JsonDoc/Element.test.js index a758856..3bb0fa0 100644 --- a/src/application/components/JsonDoc/Element.test.js +++ b/src/application/components/JsonDoc/Element.test.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; import renderer from 'react-test-renderer'; +import { MemoryRouter } from 'react-router'; import Element, { JField } from 'application/components/JsonDoc/Element'; import Example from 'exampleService.json'; @@ -17,7 +18,9 @@ test('Element Model', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); @@ -38,7 +41,9 @@ test('Element Field Model', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); @@ -59,7 +64,9 @@ test('Element Field Value string', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); @@ -77,7 +84,9 @@ test('Element Array', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); @@ -97,7 +106,9 @@ test('JField value', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); @@ -117,7 +128,9 @@ test('JField model', () => { isLast: false, }; - const component = renderer.create(); + const component = renderer.create( + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); diff --git a/src/application/components/JsonDoc/JsonDoc.js b/src/application/components/JsonDoc/JsonDoc.js index 7e75c63..1472a3c 100644 --- a/src/application/components/JsonDoc/JsonDoc.js +++ b/src/application/components/JsonDoc/JsonDoc.js @@ -15,7 +15,7 @@ type Props = {| importedServices: Service[], baseModel: string, includeModel?: boolean, // Include Model Documentation in JsonDoc - modelNameClick: (event: Event) => void, + toHref?: string, rawValue?: string, |}; @@ -102,7 +102,7 @@ class JsonDoc extends Component { baseModel={baseModel} service={service} importedServices={importedServices} - modelNameClick={this.props.modelNameClick} + toHref={this.props.toHref} /> : null}
diff --git a/src/application/components/JsonDoc/ModelDescription.js b/src/application/components/JsonDoc/ModelDescription.js index c277fd4..d634667 100644 --- a/src/application/components/JsonDoc/ModelDescription.js +++ b/src/application/components/JsonDoc/ModelDescription.js @@ -13,21 +13,19 @@ const ModelDescription = ({ baseModel, service, importedServices, - modelNameClick, + toHref, }: { baseModel: string, service: Service, importedServices: Service[], - modelNameClick: (event: Object) => void, + toHref?: string, }) => { const type = utils.getType(baseModel); const model = utils.getModel(type, service, importedServices); - //

- //

return (
-

+

{utils.simplifyName(baseModel)}

{model && model.description diff --git a/src/application/components/JsonDoc/ModelDescription.test.js b/src/application/components/JsonDoc/ModelDescription.test.js index d1f07c6..fabfa5b 100644 --- a/src/application/components/JsonDoc/ModelDescription.test.js +++ b/src/application/components/JsonDoc/ModelDescription.test.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; import renderer from 'react-test-renderer'; +import { MemoryRouter } from 'react-router'; import ModelDescription from 'application/components/JsonDoc/ModelDescription'; import Example from 'exampleService.json'; @@ -10,10 +11,13 @@ test('simple html', () => { baseModel: 'base', service: Example, importedServices: [], - modelNameClick: () => {}, }; - const component = renderer.create(); + const component = renderer.create( + + + + ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); diff --git a/src/application/components/JsonDoc/__snapshots__/Element.test.js.snap b/src/application/components/JsonDoc/__snapshots__/Element.test.js.snap index 20b8eba..2fa8920 100644 --- a/src/application/components/JsonDoc/__snapshots__/Element.test.js.snap +++ b/src/application/components/JsonDoc/__snapshots__/Element.test.js.snap @@ -8,6 +8,7 @@ exports[`Element Array 1`] = ` onMouseOver={[Function]} > @@ -30,6 +31,7 @@ exports[`Element Field Model 1`] = ` onMouseOver={[Function]} > @@ -52,6 +54,7 @@ exports[`Element Field Value string 1`] = ` onMouseOver={[Function]} > @@ -76,6 +79,7 @@ exports[`Element Model 1`] = ` onMouseOver={[Function]} > @@ -103,6 +107,7 @@ exports[`Element Model 1`] = ` onMouseOver={[Function]} > @@ -136,6 +141,7 @@ exports[`JField model 1`] = ` onMouseOver={[Function]} > @@ -151,11 +157,12 @@ exports[`JField model 1`] = `
@@ -168,6 +175,7 @@ exports[`JField model 1`] = ` onMouseOver={[Function]} > @@ -195,6 +203,7 @@ exports[`JField model 1`] = ` onMouseOver={[Function]} > @@ -230,6 +239,7 @@ exports[`JField value 1`] = ` onMouseOver={[Function]} > diff --git a/src/application/components/JsonDoc/__snapshots__/ModelDescription.test.js.snap b/src/application/components/JsonDoc/__snapshots__/ModelDescription.test.js.snap index 4737e04..f7dd9d2 100644 --- a/src/application/components/JsonDoc/__snapshots__/ModelDescription.test.js.snap +++ b/src/application/components/JsonDoc/__snapshots__/ModelDescription.test.js.snap @@ -6,7 +6,6 @@ exports[`simple html 1`] = ` >

base

diff --git a/src/application/components/Model.js b/src/application/components/Model.js index b07bf3f..8e8ab68 100644 --- a/src/application/components/Model.js +++ b/src/application/components/Model.js @@ -49,7 +49,6 @@ const Model = ({ service={service} importedServices={importedServices} includeModel={false} - modelNameClick={() => {}} /> : null}
diff --git a/src/application/components/Operation.js b/src/application/components/Operation.js index 06db554..d3c80be 100644 --- a/src/application/components/Operation.js +++ b/src/application/components/Operation.js @@ -1,6 +1,6 @@ // @flow import React from 'react'; -import { Link } from 'react-router'; +import { Link } from 'utils'; import Markdown from 'components/Markdown'; import Header from 'application/components/Header'; import Request from 'application/components/Request'; @@ -71,6 +71,8 @@ const Operation = ({

@@ -88,25 +83,23 @@ const ParameterList = ( :

No description

} {minimum ?

- Minimum{minimum} -

- : null - } + Minimum{minimum} +

+ : null} {maximum ?

- Maximum{maximum} -

- : null - } + Maximum{maximum} +

+ : null} {example ?

- Example{example} -

+ Example{example} +

: null} {defaultValue ?

- Default{defaultValue} -

+ Default{defaultValue} +

: null}
diff --git a/src/application/components/Request.js b/src/application/components/Request.js index 665a6e5..bf16db5 100644 --- a/src/application/components/Request.js +++ b/src/application/components/Request.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import { cleanPath } from 'utils'; +import { buildNavHref, getType, cleanPath } from 'utils'; import JsonDoc from 'application/components/JsonDoc/JsonDoc'; import ParameterListGroup from 'application/components/ParameterListGroup'; @@ -14,10 +14,14 @@ const Request = ({ operation, service, importedServices, + orgKey, + appKey, }: { operation: Operation, service: Service, importedServices: Service[], + orgKey: string, + appKey: string, }) => { const responseParameters = () => { if (operation.parameters && !!operation.parameters.length) { @@ -43,11 +47,15 @@ const Request = ({
{}} />
diff --git a/src/application/components/ResourceCard.js b/src/application/components/ResourceCard.js index 9f5682b..49a85ef 100644 --- a/src/application/components/ResourceCard.js +++ b/src/application/components/ResourceCard.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; import classnames from 'classnames'; +import { Link } from 'utils'; import Markdown from 'components/Markdown'; @@ -10,14 +11,14 @@ const ResourceCard = ( { method, path, - click, + toHref, description, - }: { + }: {| method: string, path: string, - click?: Function, + toHref?: string, description?: string, - } = {} + |} = {} ) => { const methodClasses = classnames( styles.method, @@ -26,7 +27,7 @@ const ResourceCard = ( ); const containerClasses = classnames( styles.container, - click ? styles.isClick : null + toHref ? styles.href : null ); const pathClasses = classnames( styles.path, @@ -35,7 +36,7 @@ const ResourceCard = ( return (
- +
); }; diff --git a/src/application/components/Response.js b/src/application/components/Response.js index 164ae7c..59f3e04 100644 --- a/src/application/components/Response.js +++ b/src/application/components/Response.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import { onClickHref, buildNavHref, getType } from 'utils'; +import { buildNavHref, getType } from 'utils'; import H2 from 'components/H2'; import Markdown from 'components/Markdown'; @@ -39,13 +39,11 @@ const Response = ({ return (
( -
- + {children} +
); -Button.propTypes = { - children: PropTypes.node.isRequired, - className: PropTypes.string, - classNameInner: PropTypes.string, - onClick: PropTypes.func.isRequired, - target: PropTypes.string, -}; - export default Button; export { styles }; diff --git a/src/components/Content/index.js b/src/components/Content/index.js index 8b7d3c8..f6bf7e3 100644 --- a/src/components/Content/index.js +++ b/src/components/Content/index.js @@ -1,19 +1,20 @@ -import React, { PropTypes } from 'react'; +// @flow +import React, { Children } from 'react'; import styles from 'components/Content/content.css'; -const Content = props => ( +const Content = ({ + children, +}: { + children?: Children, +}) => (
- {props.children} + {children}
); -Content.propTypes = { - children: PropTypes.node, -}; - export default Content; export { styles }; diff --git a/src/components/H1/index.js b/src/components/H1/index.js index bbae681..5a55132 100644 --- a/src/components/H1/index.js +++ b/src/components/H1/index.js @@ -1,19 +1,21 @@ -import React, { PropTypes } from 'react'; +// @flow +import React, { Children } from 'react'; import classnames from 'classnames'; import styles from 'components/H1/h1.css'; -const H1 = ({ className, children }) => ( +const H1 = ({ + className, + children, +}: { + className?: string, + children?: Children, +}) => (

{children}

); -H1.propTypes = { - children: PropTypes.node, - className: PropTypes.string, -}; - export default H1; export { styles }; diff --git a/src/components/H2/h2.css b/src/components/H2/h2.css index d00547b..82be175 100644 --- a/src/components/H2/h2.css +++ b/src/components/H2/h2.css @@ -12,3 +12,4 @@ font-size: 24px; font-weight: 400; } + diff --git a/src/components/H2/index.js b/src/components/H2/index.js index 479a6a6..101df4c 100644 --- a/src/components/H2/index.js +++ b/src/components/H2/index.js @@ -1,22 +1,28 @@ -import React, { PropTypes } from 'react'; +//@flow +import React, { Children } from 'react'; +import { Link } from 'utils'; import classnames from 'classnames'; import styles from 'components/H2/h2.css'; -const H2 = ({ className, children, click }) => ( -

- {children} -

-); - -H2.propTypes = { - children: PropTypes.node.isRequired, - className: PropTypes.string, - click: PropTypes.func, -}; +const H2 = ({ + className, + children, + toHref, +}: { + className?: string, + toHref?: string, + children?: Children, +}) => + (toHref + ? +

+ {children} +

+ + :

+ {children} +

); export default H2; diff --git a/src/components/H3/index.js b/src/components/H3/index.js index e1f4073..2871dd9 100644 --- a/src/components/H3/index.js +++ b/src/components/H3/index.js @@ -1,23 +1,26 @@ -import React, { PropTypes } from 'react'; +//@flow +import React, { Children } from 'react'; +import { Link } from 'utils'; import classnames from 'classnames'; import styles from 'components/H3/h3.css'; -const H3 = ({ className, children, click }) => ( -

- {children} -

+const H3 = ({ + className, + children, + toHref, +}: { + className?: string, + toHref?: string, + children?: Children, +}) => ( + +

+ {children} +

+ ); -H3.propTypes = { - children: PropTypes.node.isRequired, - className: PropTypes.string, - click: PropTypes.func, -}; - export default H3; export { styles }; diff --git a/src/components/LoadingOverlay/index.js b/src/components/LoadingOverlay/index.js index 5f4dce8..ac0551f 100644 --- a/src/components/LoadingOverlay/index.js +++ b/src/components/LoadingOverlay/index.js @@ -1,3 +1,4 @@ +//@flow import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import classnames from 'classnames'; diff --git a/src/components/Markdown/index.js b/src/components/Markdown/index.js index b753d7b..7fbd43a 100644 --- a/src/components/Markdown/index.js +++ b/src/components/Markdown/index.js @@ -1,20 +1,22 @@ -import React, { PropTypes } from 'react'; +//@flow +import React from 'react'; import ReactMarkdown from 'react-markdown'; import classnames from 'classnames'; import styles from 'components/Markdown/markdown.css'; -const Markdown = ({ source, className }) => ( +const Markdown = ({ + source, + className, +}: { + source: string, + className?: string, +}) => (
); -Markdown.propTypes = { - source: PropTypes.string.isRequired, - className: PropTypes.string, -}; - export default Markdown; export { styles }; diff --git a/src/components/NavBar/NavBar.js b/src/components/NavBar/NavBar.js new file mode 100644 index 0000000..428e4ed --- /dev/null +++ b/src/components/NavBar/NavBar.js @@ -0,0 +1,29 @@ +// @flow +import React from 'react'; +import { Route, Switch } from 'react-router-dom'; +import NavBarContents from 'components/NavBar/NavBarContents'; + +const NavBar = () => ( + + + + + {/* */} + + + +); + +export default NavBar; diff --git a/src/components/NavBar/NavBarContents.js b/src/components/NavBar/NavBarContents.js new file mode 100644 index 0000000..d8a3b90 --- /dev/null +++ b/src/components/NavBar/NavBarContents.js @@ -0,0 +1,126 @@ +// @flow +import React from 'react'; +import { Link } from 'utils'; +import { connect } from 'react-redux'; + +import Button from 'components/Button'; +import styles from 'components/NavBar/navbar.css'; +import * as utils from 'utils'; + +import type { NavItem } from 'nav/NavItem'; +import type { Props } from 'params'; +import type { State } from 'app/reducers'; + +const NavBarContents = (props: Props) => { + const title = process.env.TITLE ? process.env.TITLE : 'apidoc'; + let removeGithubLink = true; + if (typeof process.env.TITLE === 'undefined' || !process.env.TITLE) { + removeGithubLink = false; + } + const items = getItems(props); + return ( +
+ {title} +
+ {items.map( + (item, id) => + (item.toHref + ? + :
) + )} +
+ {removeGithubLink ? null : githubLink()} +
+ ); +}; + +const githubLink = () => ( +
+ + + + +); + +const getItems = (props: Props): NavItem[] => { + // FIXME test + if (!props.match || !props.match.params) { + return []; + } + // FIXME test + let operationPath = ''; + const params = props.match.params; + if (params.resource && props.service) { + const op = utils.getOperation( + params.resource, + params.method, + params.path, + props.service + ); + operationPath = op.path; + } + + return [].concat( + params.organizationKey + ? { + name: params.organizationKey, + toHref: utils.buildNavHref({ + organization: params.organizationKey, + }), + } + : [], + params.applicationKey + ? { + name: params.applicationKey, + toHref: utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + }), + } + : [], + params.resource + ? { + name: `${params.method.toUpperCase()} ${operationPath}`, + toHref: utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + resource: params.resource, + method: params.method, + path: params.path, + }), + } + : [], + params.model + ? { + name: `${params.model}`, + toHref: utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + model: params.model, + }), + } + : [] + ); +}; + +const mapStateToProps = (state: State) => ({ + service: state.application.service, +}); + +export default connect(mapStateToProps)(NavBarContents); diff --git a/src/components/NavBar/index.js b/src/components/NavBar/index.js deleted file mode 100644 index 8f2ecc8..0000000 --- a/src/components/NavBar/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import React, { PropTypes } from 'react'; - -import Button from 'components/Button'; -import styles from 'components/NavBar/navbar.css'; - -const githubLink = () => ( - - - - - -); - -const NavBar = ({ title, items, homeOnClick, removeGithubLink }) => ( -
- {title} -
- {items.map((item, id) => ( - - ))} -
- {removeGithubLink ? null : githubLink()} -
-); - -NavBar.propTypes = { - title: PropTypes.string.isRequired, - items: PropTypes.array.isRequired, - homeOnClick: PropTypes.func.isRequired, - removeGithubLink: PropTypes.bool.isRequired, -}; - -export default NavBar; - -export { styles }; diff --git a/src/components/SideBar/Section.js b/src/components/SideBar/Section.js new file mode 100644 index 0000000..fc8a2fb --- /dev/null +++ b/src/components/SideBar/Section.js @@ -0,0 +1,41 @@ +// @flow +import React from 'react'; +import { NavLink } from 'react-router-dom'; +import classnames from 'classnames'; + +import type { NavItem } from 'nav/NavItem'; + +import styles from 'components/SideBar/sidebar.css'; + +const Item = ({ item }: { item: NavItem }) => ( + + {/* { {...item.data} } > */} + {/* {item.path ? `${item.method} ${item.path}` : simplifyName(item.name)} */} + {item.name} + +); + +const Groups = ({ group }: { group: NavItem }) => ( +
+

{group.name}

+ {group.items + ? group.items.map((item, id) => ) + : null} +
+); + +const Section = ({ section }: { section: NavItem }) => ( +
+ + {section.items + ? section.items.map((group, id) => ( + + )) + : null} +
+); + +export default Section; diff --git a/src/components/SideBar/SideBar.js b/src/components/SideBar/SideBar.js new file mode 100644 index 0000000..c307935 --- /dev/null +++ b/src/components/SideBar/SideBar.js @@ -0,0 +1,231 @@ +// @flow +import React from 'react'; +import SideBarContents from 'components/SideBar/SideBarContents'; +import { Route, Switch } from 'react-router-dom'; +import snakeCase from 'lodash/fp/snakeCase'; +import { connect } from 'react-redux'; +import * as utils from 'utils'; +import { ConnectedRouter } from 'react-router-redux'; + +import type { + Application, + Organization, + Service, + Model, + Enum, + Resource, +} from 'generated/version/ServiceType'; +import type { ParamsApp, ParamsResource, ParamsModel, Props } from 'params'; +import type { NavItem } from 'nav/NavItem'; +import type { State } from 'app/reducers'; + +// FIXME typing https://github.com/facebook/flow/issues/620 +import docs from '../../../documents.json'; + +const getItems = (props: Props): NavItem[] => { + if (!props.match) { + // PropsHome + return homeItems(props.organizations); + } + if (props.match && props.match.organizationKey) { + if (props.match.applicationKey && props.service) { + // PropsApp + return applicationItems( + props.match.params, + props.service, + props.match.url + ); + } else if (props.applications) { + // PropsOrg + return orgItems( + props.match.organizationKey, + props.applications, + docsForOrg(props.match.organizationKey, docs) + ); + } + } + return []; +}; + +const homeItems = (organizations: Organization[]): NavItem[] => { + const organizationsWithHref = organizations.map(organization => ({ + name: organization.name, + toHref: utils.buildNavHref({ + organization: organization.key, + }), + })); + return [ + { + name: 'Organizations', + items: [ + { + name: '', + items: organizationsWithHref, + }, + ], + }, + ]; +}; + +const docsForOrg = (orgKey: string, documents: Object): Object[] => { + const orgDocsList = documents.organizations[orgKey]; + const docsByOrg = (orgDocsList && orgDocsList.documents) || []; + return docsByOrg; +}; + +const orgItems = ( + organizationKey, + applications: Application[], + documents: Object[] +): NavItem[] => { + const applicationsWithHref = applications.map(application => ({ + name: application.name, + toHref: utils.buildNavHref({ + organization: organizationKey, + application: application.key, + }), + })); + const docsWithHref = documents.map(doc => ({ + name: doc.name, + toHref: utils.buildNavHref({ + organization: organizationKey, + documentation: snakeCase(doc.name), + }), + })); + const applicationSidebarGroup = [ + { + name: 'Applications', + items: [ + { + name: '', + items: applicationsWithHref, + }, + ], + }, + ]; + return applicationSidebarGroup.concat( + docsWithHref.length + ? [ + { + name: 'Documentation', + items: [ + { + name: '', + items: docsWithHref, + }, + ], + }, + ] + : [] + ); +}; + +const applicationItems = ( + params: ParamsApp | ParamsResource | ParamsModel, + service: Service, + url: string +): NavItem[] => { + /* const currentItem = getCurrentItem(params);*/ + const allResources = service.resources; + + // FIXME - add back imports + /* const allModels = flatten(service.models.concat(imports.map(importValue => importValue.models)));*/ + const allModels = service.models; + + // FIXME - add back enums + /* const allEnums = flatten(service.enums.concat(imports.map(importValue => importValue.enums)));*/ + const allEnums = service.enums || []; + + return [ + { + name: 'Resources', + items: allResources.map(resource => + createResourceItem(params, resource, url) + ), + }, + { + name: 'Models', + items: [ + { + name: '', + items: allModels + .map(model => createModelItem(params, model, url, 'model')) + .concat( + allEnums.map(enumValue => + createModelItem(params, enumValue, url, 'enum') + ) + ), + }, + ], + }, + ]; +}; + +const createModelItem = ( + params: ParamsApp | ParamsResource | ParamsModel, + model: Model | Enum, + url: string, + type: string +): NavItem => { + const href = utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + model: model.name, + }); + return { + name: `${model.name}`, + toHref: href, + active: url === href, + type, + }; +}; + +const createResourceItem = ( + params: ParamsApp | ParamsResource | ParamsModel, + resource: Resource, + url: string +): NavItem => ({ + name: resource.type, + items: resource.operations.map(operation => { + const href = utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + resource: resource.type, + method: operation.method.toLowerCase(), + path: utils.cleanPath(operation.path), + }); + return { + name: `${operation.method} ${operation.path}`, + toHref: href, + active: url === href, + type: 'resource', + method: operation.method, + path: operation.path, + }; + }), +}); + +const SideBar = () => ( + + + + + {/* */} + + + +); + +export default SideBar; diff --git a/src/components/SideBar/SideBarContents.js b/src/components/SideBar/SideBarContents.js new file mode 100644 index 0000000..78f6a72 --- /dev/null +++ b/src/components/SideBar/SideBarContents.js @@ -0,0 +1,229 @@ +// @flow +import React from 'react'; +import { connect } from 'react-redux'; +import snakeCase from 'lodash/fp/snakeCase'; + +import * as utils from 'utils'; +import Section from 'components/SideBar/Section'; + +import type { + Application, + Organization, + Service, + Model, + Enum, + Resource, +} from 'generated/version/ServiceType'; +import type { NavItem } from 'nav/NavItem'; +import type { ParamsApp, ParamsResource, ParamsModel, Props } from 'params'; +import type { State } from 'app/reducers'; + +import styles from 'components/SideBar/sidebar.css'; + +// FIXME typing https://github.com/facebook/flow/issues/620 +import docs from '../../../documents.json'; + +const SideBarContents = (props: Props) => { + const sections = getItems(props); + return ( +
+
+ {sections.map((section, id) => ( +
+ ))} +
+
+ ); +}; + +const getItems = (props: Props): NavItem[] => { + if (props.match && props.match.params.organizationKey) { + if (props.match.params.applicationKey && props.service) { + // PropsApp + return applicationItems( + props.match.params, + props.service, + props.match.url + ); + } else if (props.applications) { + // PropsOrg + return orgItems( + props.match.params.organizationKey, + props.applications, + docsForOrg(props.match.params.organizationKey, docs) + ); + } + } + if (props.organizations) { + return homeItems(props.organizations); + } + return []; +}; + +const homeItems = (organizations: Organization[]): NavItem[] => { + const organizationsWithHref = organizations.map(organization => ({ + name: organization.name, + toHref: utils.buildNavHref({ + organization: organization.key, + }), + })); + return [ + { + name: 'Organizations', + items: [ + { + name: '', + items: organizationsWithHref, + }, + ], + }, + ]; +}; + +const docsForOrg = (orgKey: string, documents: Object): Object[] => { + const orgDocsList = documents.organizations[orgKey]; + const docsByOrg = (orgDocsList && orgDocsList.documents) || []; + return docsByOrg; +}; + +const orgItems = ( + organizationKey, + applications: Application[], + documents: Object[] +): NavItem[] => { + const applicationsWithHref = applications.map(application => ({ + name: application.name, + toHref: utils.buildNavHref({ + organization: organizationKey, + application: application.key, + }), + })); + const docsWithHref = documents.map(doc => ({ + name: doc.name, + toHref: utils.buildNavHref({ + organization: organizationKey, + documentation: snakeCase(doc.name), + }), + })); + const applicationSidebarGroup = [ + { + name: 'Applications', + items: [ + { + name: '', + items: applicationsWithHref, + }, + ], + }, + ]; + return applicationSidebarGroup.concat( + docsWithHref.length + ? [ + { + name: 'Documentation', + items: [ + { + name: '', + items: docsWithHref, + }, + ], + }, + ] + : [] + ); +}; + +const applicationItems = ( + params: ParamsApp | ParamsResource | ParamsModel, + service: Service, + url: string +): NavItem[] => { + /* const currentItem = getCurrentItem(params);*/ + const allResources = service.resources; + + // FIXME - add back imports + /* const allModels = flatten(service.models.concat(imports.map(importValue => importValue.models)));*/ + const allModels = service.models; + + // FIXME - add back enums + /* const allEnums = flatten(service.enums.concat(imports.map(importValue => importValue.enums)));*/ + const allEnums = service.enums || []; + + return [ + { + name: 'Resources', + items: allResources.map(resource => + createResourceItem(params, resource, url) + ), + }, + { + name: 'Models', + items: [ + { + name: '', + items: allModels + .map(model => createModelItem(params, model, url, 'model')) + .concat( + allEnums.map(enumValue => + createModelItem(params, enumValue, url, 'enum') + ) + ), + }, + ], + }, + ]; +}; + +const createModelItem = ( + params: ParamsApp | ParamsResource | ParamsModel, + model: Model | Enum, + url: string, + type: string +): NavItem => { + const href = utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + model: model.name, + }); + return { + name: `${model.name}`, + toHref: href, + active: url === href, + type, + }; +}; + +const createResourceItem = ( + params: ParamsApp | ParamsResource | ParamsModel, + resource: Resource, + url: string +): NavItem => ({ + name: resource.type, + items: resource.operations.map(operation => { + const href = utils.buildNavHref({ + organization: params.organizationKey, + application: params.applicationKey, + resource: resource.type, + method: operation.method.toLowerCase(), + path: utils.cleanPath(operation.path), + }); + return { + name: `${operation.method} ${operation.path}`, + toHref: href, + active: url === href, + type: 'resource', + method: operation.method, + path: operation.path, + }; + }), +}); + +const mapStateToProps = (state: State) => ({ + service: state.application.service, + organizations: state.app.organizations, + organization: state.organization.organization, + applications: state.organization.applications, + importedServices: state.application.importedServices, +}); + +export default connect(mapStateToProps)(SideBarContents); diff --git a/src/components/SideBar/index.js b/src/components/SideBar/index.js deleted file mode 100644 index 8635697..0000000 --- a/src/components/SideBar/index.js +++ /dev/null @@ -1,74 +0,0 @@ -import React, { PropTypes } from 'react'; -import classnames from 'classnames'; - -import { simplifyName } from 'utils'; - -import styles from 'components/SideBar/sidebar.css'; - -const SidebarIcon = ({ item }) => { - const iconClasses = classnames( - styles[item.type.toLowerCase()], - styles.icon, - item.method ? styles[item.method.toLowerCase()] : null - ); - - const markup = item.method ? item.method : item.type[0]; - - return
{markup}
; -}; - -SidebarIcon.propTypes = { - item: PropTypes.object.isRequired, -}; - -const Item = ({ item }) => ( -
- {item.path ? `${item.method} ${item.path}` : simplifyName(item.name)} -
-); - -Item.propTypes = { - item: PropTypes.object.isRequired, -}; - -const Groups = ({ group }) => ( -
-

{group.name}

- {group.items.map((item, id) => )} -
-); - -Groups.propTypes = { - group: PropTypes.object.isRequired, -}; - -const Section = ({ section }) => ( -
- - {section.items.map((group, id) => )} -
-); - -Section.propTypes = { - section: PropTypes.object.isRequired, -}; - -const SideBar = ({ sections }) => ( -
-
- {sections.map((section, id) =>
)} -
-
-); - -SideBar.propTypes = { - sections: PropTypes.array.isRequired, -}; - -export default SideBar; - -export { styles }; diff --git a/src/home/HomeCard.js b/src/home/HomeCard.js index 7d51237..920c9dc 100644 --- a/src/home/HomeCard.js +++ b/src/home/HomeCard.js @@ -1,8 +1,8 @@ // @flow import React from 'react'; +import { Link } from 'utils'; import Markdown from 'components/Markdown'; -import { onClickHref } from 'utils'; import styles from 'home/home-card.css'; @@ -18,14 +18,14 @@ const HomeCard = ( } = {} ) => ( ); diff --git a/src/home/index.js b/src/home/index.js index b497e0f..80582ae 100644 --- a/src/home/index.js +++ b/src/home/index.js @@ -18,7 +18,7 @@ const allActions = Object.assign({}, orgActions); const Org = ({ organization }: { organization: Organization }) => ( @@ -38,11 +38,11 @@ const Organizations = ({
); -type Props = { +type Props = {| loaded: boolean, actions: Object, // FIXME - types organizations: Organization[], -}; +|}; class Home extends Component { props: Props; diff --git a/src/index.js b/src/index.js index d9edf3a..ef50feb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,24 +1,21 @@ // @flow - import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; -import { Router, browserHistory } from 'react-router'; -import { syncHistoryWithStore } from 'react-router-redux'; +import createHistory from 'history/createBrowserHistory'; -import routes from 'routes'; -import configureStore from 'store/configureStore'; +import { App } from 'app'; +import { configureStore } from 'store/configureStore'; // Needed for React Developer Tools window.React = React; -const store = configureStore(); - -const history = syncHistoryWithStore(browserHistory, store); +export const history = createHistory(); +const store = configureStore(history); ReactDOM.render( - + , document.getElementById('root') ); diff --git a/src/nav/NavItem.js b/src/nav/NavItem.js new file mode 100644 index 0000000..7da591d --- /dev/null +++ b/src/nav/NavItem.js @@ -0,0 +1,9 @@ +// @flow + +export type NavItem = { + name: string, + active?: boolean, + type?: string, + toHref?: string, + items?: NavItem[], +}; diff --git a/src/organization/AppCard.js b/src/organization/AppCard.js index a4dce54..c42783b 100644 --- a/src/organization/AppCard.js +++ b/src/organization/AppCard.js @@ -1,8 +1,8 @@ // @flow import React from 'react'; +import { Link } from 'utils'; import Markdown from 'components/Markdown'; -import { onClickHref } from 'utils'; import styles from 'organization/app-card.css'; @@ -18,14 +18,14 @@ const AppCard = ( } = {} ) => ( ); diff --git a/src/organization/index.js b/src/organization/index.js index 46f73ba..ef946c2 100644 --- a/src/organization/index.js +++ b/src/organization/index.js @@ -10,6 +10,7 @@ import AppCard from 'organization/AppCard'; import styles from 'organization/organization.css'; import { actions } from 'organization/sagas'; +import type { Match } from 'params'; import type { State } from 'app/reducers'; import type { Application, @@ -47,19 +48,24 @@ const Applications = ({
); -type Props = { +type Params = {| + name: string, + organizationKey: string, +|}; + +type Props = {| loaded: boolean, - params: Object, // FIXME + match: Match, actions: Object, // FIXME organization?: OrganizationType, applications: any, // FIXME PropTypes.array.isRequired, -}; +|}; class Organization extends Component { props: Props; componentDidMount() { - const orgKey = this.props.params.organizationKey; + const orgKey = this.props.match.params.organizationKey; this.props.actions.getOrganizationDetails_get({ orgKey }); } @@ -74,7 +80,7 @@ class Organization extends Component {
diff --git a/src/params.js b/src/params.js new file mode 100644 index 0000000..40c92a0 --- /dev/null +++ b/src/params.js @@ -0,0 +1,68 @@ +// @flow +import type { + Application, + Organization, + Service, +} from 'generated/version/ServiceType'; + +// Extend React Router for Params match +export type Match = {| + params: T, + isExact: boolean, + path: string, + url: string, +|}; + +export type ParamsHome = {||}; + +export type ParamsOrg = {| + organizationKey: string, +|}; + +export type ParamsApp = {| + organizationKey: string, + applicationKey: string, +|}; + +export type ParamsResource = {| + organizationKey: string, + applicationKey: string, + resource: string, + method: string, + path: string, +|}; + +export type ParamsModel = {| + organizationKey: string, + applicationKey: string, + model: string, +|}; + +export type ParamsDoc = {| + organizationKey: string, + documentationKey: string, +|}; + +export type Params = + | ParamsHome + | ParamsOrg + | ParamsApp + | ParamsResource + | ParamsModel + | ParamsDoc; + +export type PropsHome = {| + organizations: Organization[], +|}; + +export type PropsOrg = {| + match: Match, + applications: Application[], +|}; + +export type PropsApp = {| + match: Match, + service: Service, +|}; + +export type Props = PropsHome | PropsOrg | PropsApp; diff --git a/src/routes.js b/src/routes.js deleted file mode 100644 index c25ebfe..0000000 --- a/src/routes.js +++ /dev/null @@ -1,32 +0,0 @@ -// @flow -import React from 'react'; -import { IndexRoute, Route } from 'react-router'; - -import { App } from 'app'; - -import Home from 'home'; -import Organization from 'organization'; -import { Appln } from 'application'; -import Documentation from 'documentation'; - -const routes = ( - - - - - - - - -); - -export default routes; diff --git a/src/store/configureStore.js b/src/store/configureStore.js index 48861b0..d3fa307 100644 --- a/src/store/configureStore.js +++ b/src/store/configureStore.js @@ -3,6 +3,7 @@ import { createStore, applyMiddleware, compose } from 'redux'; import createSagaMiddleware from 'redux-saga'; import rootReducer from 'app/rootReducer'; import allSagas from 'app/allSagas'; +import { routerMiddleware } from 'react-router-redux'; // for flowtype of module /* declare var module : { @@ -11,12 +12,14 @@ import allSagas from 'app/allSagas'; * }; * }; * */ -const configureStore = () => { + +export const configureStore = (history: string) => { + const historyMiddleware = routerMiddleware(history); const sagaMiddleware = createSagaMiddleware(); const store = createStore( rootReducer, compose( - applyMiddleware(sagaMiddleware), + applyMiddleware(historyMiddleware, sagaMiddleware), window.devToolsExtension ? window.devToolsExtension() : f => f ) ); @@ -34,5 +37,3 @@ const configureStore = () => { return store; }; - -export default configureStore; diff --git a/src/styles/global.css b/src/styles/global.css index fb1f9e9..35219ea 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -22,3 +22,8 @@ body { margin: 0; padding: 0; } + +a { + text-decoration: none; + color: inherit; +} diff --git a/src/utils.js b/src/utils.js index 3da9761..baaa356 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,6 +1,6 @@ // @flow -import { browserHistory } from 'react-router'; - +import React from 'react'; +import { Link as ReactLink } from 'react-router-dom'; import type { Service, Operation, @@ -12,12 +12,6 @@ import type { const cleanPath = (path: string) => path.replace(/\W/g, ''); -const onClickHref = (href: string) => (event: Event) => { - browserHistory.push(href); - // Stop parent nav events to be publishes - jsondoc nesting - if (event.stopPropagation) event.stopPropagation(); -}; - const getType = (type: string): string => { /* const ex = /[\[]?([^\]]+)/i;*/ const ex = /[[]?([^\]]+)/i; @@ -33,9 +27,9 @@ const simplifyName = (name: string): string => { const joined = splitName .map( word => - word.search('v[0-9]+') > -1 + (word.search('v[0-9]+') > -1 ? word - : word.substring(0, word.search('[A-Za-z]') + 1) + : word.substring(0, word.search('[A-Za-z]') + 1)) ) .join('.'); return `${joined.substring(0, joined.lastIndexOf('.') - 1)}${splitName[splitName.length - 1]}`; @@ -63,25 +57,23 @@ const getModelImport = (name: string, importedServices: Service[]): ?Model => { return service ? findByName(name, service.models) : null; }; -/* eslint-disable no-use-before-define */ - const getEnum = ( name: string, service: Service, importedServices: Service[] ): ?Enum => - importedServices && isImport(name, importedServices) + (importedServices && isImport(name, importedServices) ? getEnumImport(name, importedServices) - : findByName(name, service.enums); + : findByName(name, service.enums)); const getModel = ( name: string, service: Service, importedServices: Service[] ): ?Model => - importedServices && isImport(name, importedServices) + (importedServices && isImport(name, importedServices) ? getModelImport(name, importedServices) - : findByName(name, service.models); + : findByName(name, service.models)); const isEnum = ( type: string, @@ -107,8 +99,6 @@ const isImport = (type: string, importedServices: Service[]): boolean => .find(b => b === true) ); -/* eslint-enable no-use-before-define */ - const isImportOrInService = ( type: string, service: Service, @@ -178,9 +168,20 @@ const buildNavHref = ({ ) .join(''); +declare type LinkProps = { + to?: string, + tabIndex?: number, + className?: string, + children?: React$Element<*>, +}; + +export const Link = (props: LinkProps) => + (props.to + ? {props.children} + :
{props.children}
); + export { cleanPath, - onClickHref, getType, simplifyName, getModel, diff --git a/yarn.lock b/yarn.lock index 69a454e..c2d4de9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -36,7 +36,7 @@ acorn-globals@^3.1.0: dependencies: acorn "^4.0.4" -acorn-jsx@^3.0.0, acorn-jsx@^3.0.1: +acorn-jsx@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" dependencies: @@ -65,6 +65,13 @@ ajv@^4.11.2, ajv@^4.7.0: co "^4.6.0" json-stable-stringify "^1.0.1" +ajv@^5.0.0: + version "5.1.5" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.1.5.tgz#8734931b601f00d4feef7c65738d77d1b65d1f68" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" @@ -93,6 +100,10 @@ ansi-regex@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107" +ansi-regex@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" @@ -107,10 +118,6 @@ ansi-styles@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178" -any-promise@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-0.1.0.tgz#830b680aa7e56f33451d4b049f3bd8044498ee27" - anymatch@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" @@ -118,9 +125,11 @@ anymatch@^1.3.0: arrify "^1.0.0" micromatch "^2.1.5" -append-transform@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.3.0.tgz#d6933ce4a85f09445d9ccc4cc119051b7381a813" +append-transform@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" + dependencies: + default-require-extensions "^1.0.0" aproba@^1.0.3: version "1.0.4" @@ -139,9 +148,9 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -aria-query@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.3.0.tgz#cb8a9984e2862711c83c80ade5b8f5ca0de2b467" +aria-query@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.5.0.tgz#85e3152cd8cc5bab18dbed61cd9c4fce54fa79c3" dependencies: ast-types-flow "0.0.7" @@ -175,6 +184,13 @@ array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" +array-includes@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.7.0" + array-union@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" @@ -196,13 +212,6 @@ array.prototype.find@2.0.0: define-properties "^1.1.2" es-abstract "^1.5.0" -array.prototype.find@^2.0.1: - version "2.0.3" - resolved "https://registry.yarnpkg.com/array.prototype.find/-/array.prototype.find-2.0.3.tgz#08c3ec33e32ec4bab362a2958e686ae92f59271d" - dependencies: - define-properties "^1.1.2" - es-abstract "^1.7.0" - arrify@^1.0.0, arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -249,7 +258,7 @@ async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" -async@^1.4.0, async@^1.4.2, async@^1.5.2: +async@^1.4.0, async@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" @@ -302,6 +311,12 @@ aws4@^1.2.1: version "1.5.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" +axobject-query@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-0.1.0.tgz#62f59dbc59c9f9242759ca349960e7a2fe3c36c0" + dependencies: + ast-types-flow "0.0.7" + babel-code-frame@^6.11.0, babel-code-frame@^6.16.0, babel-code-frame@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" @@ -482,13 +497,13 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-jest@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-19.0.0.tgz#59323ced99a3a84d359da219ca881074ffc6ce3f" +babel-jest@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-20.0.3.tgz#e4a03b13dc10389e140fc645d09ffc4ced301671" dependencies: babel-core "^6.0.0" babel-plugin-istanbul "^4.0.0" - babel-preset-jest "^19.0.0" + babel-preset-jest "^20.0.3" babel-loader@^7.0.0: version "7.0.0" @@ -510,9 +525,9 @@ babel-plugin-check-es2015-constants@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-flow-react-proptypes@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-2.1.3.tgz#6db20e985baadf409ef3698b7f4645bb96761250" +babel-plugin-flow-react-proptypes@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-3.2.0.tgz#9e2dcb4f00875159105d3985b2309515da560310" dependencies: babel-core "^6.18.0" babel-template "^6.16.0" @@ -527,9 +542,9 @@ babel-plugin-istanbul@^4.0.0: istanbul-lib-instrument "^1.4.2" test-exclude "^4.0.0" -babel-plugin-jest-hoist@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-19.0.0.tgz#4ae2a04ea612a6e73651f3fde52c178991304bea" +babel-plugin-jest-hoist@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-20.0.3.tgz#afedc853bd3f8dc3548ea671fbe69d03cc2c1767" babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" @@ -911,11 +926,11 @@ babel-preset-flow@^6.23.0: dependencies: babel-plugin-transform-flow-strip-types "^6.22.0" -babel-preset-jest@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-19.0.0.tgz#22d67201d02324a195811288eb38294bb3cac396" +babel-preset-jest@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-20.0.3.tgz#cbacaadecb5d689ca1e1de1360ebfc66862c178a" dependencies: - babel-plugin-jest-hoist "^19.0.0" + babel-plugin-jest-hoist "^20.0.3" babel-preset-react@^6.24.1: version "6.24.1" @@ -1091,6 +1106,13 @@ brace-expansion@^1.0.0: balanced-match "^0.4.1" concat-map "0.0.1" +brace-expansion@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" + dependencies: + balanced-match "^0.4.1" + concat-map "0.0.1" + braces@^1.8.2: version "1.8.5" resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" @@ -1255,9 +1277,9 @@ caniuse-api@^1.5.3: lodash.memoize "^4.1.2" lodash.uniq "^4.5.0" -caniuse-db@^1.0.30000187, caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000601, caniuse-db@^1.0.30000604, caniuse-db@^1.0.30000664: - version "1.0.30000664" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000664.tgz#e16316e5fdabb9c7209b2bf0744ffc8a14201f22" +caniuse-db@^1.0.30000187, caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000601, caniuse-db@^1.0.30000604, caniuse-db@^1.0.30000665: + version "1.0.30000665" + resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000665.tgz#e84f4277935f295f546f8533cb0b410a8415b972" caseless@~0.11.0: version "0.11.0" @@ -1494,7 +1516,7 @@ commander@2.8.x: dependencies: graceful-readlink ">= 1.0.0" -commander@2.9.x, commander@^2.5.0, commander@^2.9.0: +commander@2.9.x, commander@^2.5.0, commander@^2.9.0, commander@~2.9.0: version "2.9.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" dependencies: @@ -1607,6 +1629,10 @@ convert-source-map@^1.1.0, convert-source-map@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" +convert-source-map@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" + cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" @@ -1669,11 +1695,12 @@ create-hmac@^1.1.0, create-hmac@^1.1.2: create-hash "^1.1.0" inherits "^2.0.1" -create-react-class@^15.5.1: - version "15.5.2" - resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.5.2.tgz#6a8758348df660b88326a0e764d569f274aad681" +create-react-class@^15.5.3: + version "15.5.3" + resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.5.3.tgz#fb0f7cae79339e9a179e194ef466efa3923820fe" dependencies: fbjs "^0.8.9" + loose-envify "^1.3.1" object-assign "^4.1.1" crypt@~0.0.1: @@ -1718,13 +1745,14 @@ css-color-names@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" -css-loader@^0.28.1: - version "0.28.1" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.28.1.tgz#220325599f8f00452d9ceb4c3ca6c8a66798642d" +css-loader@^0.28.4: + version "0.28.4" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.28.4.tgz#6cf3579192ce355e8b38d5f42dd7a1f2ec898d0f" dependencies: babel-code-frame "^6.11.0" css-selector-tokenizer "^0.7.0" cssnano ">=2.6.1 <4" + icss-utils "^2.1.0" loader-utils "^1.0.2" lodash.camelcase "^4.3.0" object-assign "^4.0.1" @@ -1877,6 +1905,12 @@ debug@^2.1.1, debug@^2.2.0, debug@^2.6.0: dependencies: ms "0.7.2" +debug@^2.6.3: + version "2.6.8" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" + dependencies: + ms "2.0.0" + debug@~0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/debug/-/debug-0.7.4.tgz#06e1ea8082c2cb14e39806e22e2f6f757f92af39" @@ -1893,6 +1927,12 @@ deep-is@~0.1.2, deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" +default-require-extensions@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" + dependencies: + strip-bom "^2.0.0" + define-properties@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" @@ -1952,7 +1992,7 @@ detective@^4.3.1: acorn "^3.1.0" defined "^1.0.0" -diff@^3.0.0: +diff@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" @@ -1964,7 +2004,7 @@ diffie-hellman@^5.0.0: miller-rabin "^4.0.0" randombytes "^2.0.0" -doctrine@1.5.0, doctrine@^1.2.2: +doctrine@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" dependencies: @@ -2252,19 +2292,19 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-airbnb-base@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.0.tgz#dc9b3ec70b8c74dcbe6d6257c9da3992c39ca2ca" +eslint-config-airbnb-base@^11.2.0: + version "11.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.2.0.tgz#19a9dc4481a26f70904545ec040116876018f853" -eslint-config-airbnb@^14.1.0: - version "14.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-14.1.0.tgz#355d290040bbf8e00bf8b4b19f4b70cbe7c2317f" +eslint-config-airbnb@^15.0.1: + version "15.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-15.0.1.tgz#7b5188e5b7c74b9b2ce639fd5e1daba8fd761aed" dependencies: - eslint-config-airbnb-base "^11.1.0" + eslint-config-airbnb-base "^11.2.0" -eslint-config-prettier@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-1.7.0.tgz#cda3ce22df1e852daa9370f1f3446e8b8a02ce44" +eslint-config-prettier@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.1.1.tgz#ab3923fb704eebecab6960906b7d0d6e801cde58" dependencies: get-stdin "^5.0.1" @@ -2310,15 +2350,15 @@ eslint-module-utils@^2.0.0: debug "2.2.0" pkg-dir "^1.0.0" -eslint-plugin-flowtype@^2.32.1: - version "2.32.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.32.1.tgz#bbee185dedf97e5f63ec975cdcddd199bd2a2501" +eslint-plugin-flowtype@^2.34.0: + version "2.34.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.34.0.tgz#b9875f314652e5081623c9d2b18a346bbb759c09" dependencies: lodash "^4.15.0" -eslint-plugin-import@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" +eslint-plugin-import@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.3.0.tgz#37c801e0ada0e296cbdf20c3f393acb5b52af36b" dependencies: builtin-modules "^1.1.1" contains-path "^0.1.0" @@ -2329,28 +2369,27 @@ eslint-plugin-import@^2.2.0: has "^1.0.1" lodash.cond "^4.3.0" minimatch "^3.0.3" - pkg-up "^1.0.0" + read-pkg-up "^2.0.0" -eslint-plugin-jsx-a11y@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-4.0.0.tgz#779bb0fe7b08da564a422624911de10061e048ee" +eslint-plugin-jsx-a11y@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-5.0.3.tgz#4a939f76ec125010528823331bf948cc573380b6" dependencies: - aria-query "^0.3.0" + aria-query "^0.5.0" + array-includes "^3.0.3" ast-types-flow "0.0.7" + axobject-query "^0.1.0" damerau-levenshtein "^1.0.0" emoji-regex "^6.1.0" - jsx-ast-utils "^1.0.0" - object-assign "^4.0.1" + jsx-ast-utils "^1.4.0" -eslint-plugin-react@^6.10.3: - version "6.10.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.10.3.tgz#c5435beb06774e12c7db2f6abaddcbf900cd3f78" +eslint-plugin-react@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.0.1.tgz#e78107e1e559c6e2b17786bb67c2e2a010ad0d2f" dependencies: - array.prototype.find "^2.0.1" - doctrine "^1.2.2" + doctrine "^2.0.0" has "^1.0.1" jsx-ast-utils "^1.3.4" - object.assign "^4.0.4" eslint@^3.19.0: version "3.19.0" @@ -2681,7 +2720,7 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" -find-up@^2.1.0: +find-up@^2.0.0, find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" dependencies: @@ -2704,9 +2743,9 @@ flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" -flow-bin@^0.45.0: - version "0.45.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.45.0.tgz#009dd0f577a3f665c74ca8be827ae8c2dd8fd6b5" +flow-bin@^0.47.0: + version "0.47.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.47.0.tgz#a2a08ab3e0d1f1cb57d17e27b30b118b62fda367" flow-coverage-report@^0.3.0: version "0.3.0" @@ -2875,6 +2914,17 @@ glob@^5.0.15: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.1: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + global@^4.3.0: version "4.3.1" resolved "https://registry.yarnpkg.com/global/-/global-4.3.1.tgz#5f757908c7cbabce54f386ae440e11e26b7916df" @@ -2915,7 +2965,7 @@ google-cdn-data@^0.1.6: version "0.1.23" resolved "https://registry.yarnpkg.com/google-cdn-data/-/google-cdn-data-0.1.23.tgz#54d340e77bf8960167f0088cbf141fbc8b40dd10" -graceful-fs@^4.1.2, graceful-fs@^4.1.6: +graceful-fs@^4.1.11, graceful-fs@^4.1.2: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -3007,13 +3057,14 @@ he@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/he/-/he-0.5.0.tgz#2c05ffaef90b68e860f3fd2b54ef580989277ee2" -history@^3.0.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/history/-/history-3.3.0.tgz#fcedcce8f12975371545d735461033579a6dae9c" +history@^4.5.1, history@^4.6.0, history@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/history/-/history-4.6.1.tgz#911cf8eb65728555a94f2b12780a0c531a14d2fd" dependencies: invariant "^2.2.1" loose-envify "^1.2.0" - query-string "^4.2.2" + resolve-pathname "^2.0.0" + value-equal "^0.2.0" warning "^3.0.0" hoek@2.x.x: @@ -3160,6 +3211,12 @@ icss-replace-symbols@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz#cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5" +icss-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-2.1.0.tgz#83f0a0ec378bf3246178b6c2ad9136f135b1c962" + dependencies: + postcss "^6.0.1" + identity-obj-proxy@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14" @@ -3241,7 +3298,7 @@ interpret@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" -invariant@^2.0.0, invariant@^2.2.0, invariant@^2.2.1: +invariant@^2.0.0, invariant@^2.2.0, invariant@^2.2.1, invariant@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" dependencies: @@ -3294,7 +3351,7 @@ is-callable@^1.1.1, is-callable@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" -is-ci@^1.0.9: +is-ci@^1.0.10: version "1.0.10" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e" dependencies: @@ -3490,18 +3547,18 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" -istanbul-api@^1.1.0-alpha.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.0.tgz#fb3f62edd5bfc6ae09da09453ded6e10ae7e483b" +istanbul-api@^1.1.1: + version "1.1.9" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.9.tgz#2827920d380d4286d857d57a2968a841db8a7ec8" dependencies: async "^2.1.4" fileset "^2.0.2" - istanbul-lib-coverage "^1.0.0" - istanbul-lib-hook "^1.0.0-alpha.4" - istanbul-lib-instrument "^1.3.0" - istanbul-lib-report "^1.0.0-alpha.3" - istanbul-lib-source-maps "^1.1.0" - istanbul-reports "^1.0.0" + istanbul-lib-coverage "^1.1.1" + istanbul-lib-hook "^1.0.7" + istanbul-lib-instrument "^1.7.2" + istanbul-lib-report "^1.1.1" + istanbul-lib-source-maps "^1.2.1" + istanbul-reports "^1.1.1" js-yaml "^3.7.0" mkdirp "^0.5.1" once "^1.4.0" @@ -3515,17 +3572,33 @@ istanbul-instrumenter-loader@^2.0.0: loader-utils "^0.2.16" object-assign "^4.1.0" -istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.0.0-alpha, istanbul-lib-coverage@^1.0.0-alpha.0: +istanbul-lib-coverage@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.0.tgz#c3f9b6d226da12424064cce87fce0fb57fdfa7a2" -istanbul-lib-hook@^1.0.0-alpha.4: - version "1.0.0-alpha.4" - resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.0-alpha.4.tgz#8c5bb9f6fbd8526e0ae6cf639af28266906b938f" +istanbul-lib-coverage@^1.0.0-alpha.0, istanbul-lib-coverage@^1.0.1, istanbul-lib-coverage@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.1.tgz#73bfb998885299415c93d38a3e9adf784a77a9da" + +istanbul-lib-hook@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.7.tgz#dd6607f03076578fe7d6f2a630cf143b49bacddc" dependencies: - append-transform "^0.3.0" + append-transform "^0.4.0" -istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.3.0, istanbul-lib-instrument@^1.4.2: +istanbul-lib-instrument@^1.1.3: + version "1.3.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.3.1.tgz#112c25a4f2f9bc361d13d14bbff992331b974e52" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.13.0" + istanbul-lib-coverage "^1.0.0" + semver "^5.3.0" + +istanbul-lib-instrument@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.4.2.tgz#0e2fdfac93c1dabf2e31578637dc78a19089f43e" dependencies: @@ -3537,27 +3610,25 @@ istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.3.0, istanbul-lib-ins istanbul-lib-coverage "^1.0.0" semver "^5.3.0" -istanbul-lib-instrument@^1.1.3: - version "1.3.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.3.1.tgz#112c25a4f2f9bc361d13d14bbff992331b974e52" +istanbul-lib-instrument@^1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.7.2.tgz#6014b03d3470fb77638d5802508c255c06312e56" dependencies: babel-generator "^6.18.0" babel-template "^6.16.0" babel-traverse "^6.18.0" babel-types "^6.18.0" babylon "^6.13.0" - istanbul-lib-coverage "^1.0.0" + istanbul-lib-coverage "^1.1.1" semver "^5.3.0" -istanbul-lib-report@^1.0.0-alpha.3: - version "1.0.0-alpha.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.0.0-alpha.3.tgz#32d5f6ec7f33ca3a602209e278b2e6ff143498af" +istanbul-lib-report@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz#f0e55f56655ffa34222080b7a0cd4760e1405fc9" dependencies: - async "^1.4.2" - istanbul-lib-coverage "^1.0.0-alpha" + istanbul-lib-coverage "^1.1.1" mkdirp "^0.5.1" path-parse "^1.0.5" - rimraf "^2.4.3" supports-color "^3.1.2" istanbul-lib-source-maps@^1.1.0: @@ -3569,213 +3640,232 @@ istanbul-lib-source-maps@^1.1.0: rimraf "^2.4.4" source-map "^0.5.3" -istanbul-reports@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.0.0.tgz#24b4eb2b1d29d50f103b369bd422f6e640aa0777" +istanbul-lib-source-maps@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.1.tgz#a6fe1acba8ce08eebc638e572e294d267008aa0c" + dependencies: + debug "^2.6.3" + istanbul-lib-coverage "^1.1.1" + mkdirp "^0.5.1" + rimraf "^2.6.1" + source-map "^0.5.3" + +istanbul-reports@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.1.1.tgz#042be5c89e175bc3f86523caab29c014e77fee4e" dependencies: handlebars "^4.0.3" -jest-changed-files@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-19.0.2.tgz#16c54c84c3270be408e06d2e8af3f3e37a885824" +jest-changed-files@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-20.0.3.tgz#9394d5cc65c438406149bef1bf4d52b68e03e3f8" -jest-cli@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-19.0.2.tgz#cc3620b62acac5f2d93a548cb6ef697d4ec85443" +jest-cli@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-20.0.4.tgz#e532b19d88ae5bc6c417e8b0593a6fe954b1dc93" dependencies: ansi-escapes "^1.4.0" callsites "^2.0.0" - chalk "^1.1.1" - graceful-fs "^4.1.6" - is-ci "^1.0.9" - istanbul-api "^1.1.0-alpha.1" - istanbul-lib-coverage "^1.0.0" - istanbul-lib-instrument "^1.1.1" - jest-changed-files "^19.0.2" - jest-config "^19.0.2" - jest-environment-jsdom "^19.0.2" - jest-haste-map "^19.0.0" - jest-jasmine2 "^19.0.2" - jest-message-util "^19.0.0" - jest-regex-util "^19.0.0" - jest-resolve-dependencies "^19.0.0" - jest-runtime "^19.0.2" - jest-snapshot "^19.0.2" - jest-util "^19.0.2" + chalk "^1.1.3" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + istanbul-api "^1.1.1" + istanbul-lib-coverage "^1.0.1" + istanbul-lib-instrument "^1.4.2" + istanbul-lib-source-maps "^1.1.0" + jest-changed-files "^20.0.3" + jest-config "^20.0.4" + jest-docblock "^20.0.3" + jest-environment-jsdom "^20.0.3" + jest-haste-map "^20.0.4" + jest-jasmine2 "^20.0.4" + jest-message-util "^20.0.3" + jest-regex-util "^20.0.3" + jest-resolve-dependencies "^20.0.3" + jest-runtime "^20.0.4" + jest-snapshot "^20.0.3" + jest-util "^20.0.3" micromatch "^2.3.11" - node-notifier "^5.0.1" + node-notifier "^5.0.2" + pify "^2.3.0" slash "^1.0.0" string-length "^1.0.1" throat "^3.0.0" - which "^1.1.1" + which "^1.2.12" worker-farm "^1.3.1" - yargs "^6.3.0" + yargs "^7.0.2" -jest-config@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.2.tgz#1b9bd2db0ddd16df61c2b10a54009e1768da6411" +jest-config@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-20.0.4.tgz#e37930ab2217c913605eff13e7bd763ec48faeea" dependencies: - chalk "^1.1.1" - jest-environment-jsdom "^19.0.2" - jest-environment-node "^19.0.2" - jest-jasmine2 "^19.0.2" - jest-regex-util "^19.0.0" - jest-resolve "^19.0.2" - jest-validate "^19.0.2" - pretty-format "^19.0.0" - -jest-diff@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-19.0.0.tgz#d1563cfc56c8b60232988fbc05d4d16ed90f063c" + chalk "^1.1.3" + glob "^7.1.1" + jest-environment-jsdom "^20.0.3" + jest-environment-node "^20.0.3" + jest-jasmine2 "^20.0.4" + jest-matcher-utils "^20.0.3" + jest-regex-util "^20.0.3" + jest-resolve "^20.0.4" + jest-validate "^20.0.3" + pretty-format "^20.0.3" + +jest-diff@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-20.0.3.tgz#81f288fd9e675f0fb23c75f1c2b19445fe586617" dependencies: chalk "^1.1.3" - diff "^3.0.0" - jest-matcher-utils "^19.0.0" - pretty-format "^19.0.0" + diff "^3.2.0" + jest-matcher-utils "^20.0.3" + pretty-format "^20.0.3" -jest-environment-jsdom@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-19.0.2.tgz#ceda859c4a4b94ab35e4de7dab54b926f293e4a3" - dependencies: - jest-mock "^19.0.0" - jest-util "^19.0.2" - jsdom "^9.11.0" +jest-docblock@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712" -jest-environment-node@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-19.0.2.tgz#6e84079db87ed21d0c05e1f9669f207b116fe99b" +jest-environment-jsdom@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-20.0.3.tgz#048a8ac12ee225f7190417713834bb999787de99" dependencies: - jest-mock "^19.0.0" - jest-util "^19.0.2" + jest-mock "^20.0.3" + jest-util "^20.0.3" + jsdom "^9.12.0" -jest-file-exists@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-19.0.0.tgz#cca2e587a11ec92e24cfeab3f8a94d657f3fceb8" +jest-environment-node@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-20.0.3.tgz#d488bc4612af2c246e986e8ae7671a099163d403" + dependencies: + jest-mock "^20.0.3" + jest-util "^20.0.3" -jest-haste-map@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-19.0.0.tgz#adde00b62b1fe04432a104b3254fc5004514b55e" +jest-haste-map@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.0.4.tgz#653eb55c889ce3c021f7b94693f20a4159badf03" dependencies: fb-watchman "^2.0.0" - graceful-fs "^4.1.6" + graceful-fs "^4.1.11" + jest-docblock "^20.0.3" micromatch "^2.3.11" - sane "~1.5.0" + sane "~1.6.0" worker-farm "^1.3.1" -jest-jasmine2@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.2.tgz#167991ac825981fb1a800af126e83afcca832c73" +jest-jasmine2@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-20.0.4.tgz#fcc5b1411780d911d042902ef1859e852e60d5e1" dependencies: - graceful-fs "^4.1.6" - jest-matcher-utils "^19.0.0" - jest-matchers "^19.0.0" - jest-message-util "^19.0.0" - jest-snapshot "^19.0.2" + chalk "^1.1.3" + graceful-fs "^4.1.11" + jest-diff "^20.0.3" + jest-matcher-utils "^20.0.3" + jest-matchers "^20.0.3" + jest-message-util "^20.0.3" + jest-snapshot "^20.0.3" + once "^1.4.0" + p-map "^1.1.1" -jest-matcher-utils@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-19.0.0.tgz#5ecd9b63565d2b001f61fbf7ec4c7f537964564d" +jest-matcher-utils@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-20.0.3.tgz#b3a6b8e37ca577803b0832a98b164f44b7815612" dependencies: chalk "^1.1.3" - pretty-format "^19.0.0" + pretty-format "^20.0.3" -jest-matchers@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-19.0.0.tgz#c74ecc6ebfec06f384767ba4d6fa4a42d6755754" +jest-matchers@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-20.0.3.tgz#ca69db1c32db5a6f707fa5e0401abb55700dfd60" dependencies: - jest-diff "^19.0.0" - jest-matcher-utils "^19.0.0" - jest-message-util "^19.0.0" - jest-regex-util "^19.0.0" + jest-diff "^20.0.3" + jest-matcher-utils "^20.0.3" + jest-message-util "^20.0.3" + jest-regex-util "^20.0.3" -jest-message-util@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-19.0.0.tgz#721796b89c0e4d761606f9ba8cb828a3b6246416" +jest-message-util@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-20.0.3.tgz#6aec2844306fcb0e6e74d5796c1006d96fdd831c" dependencies: - chalk "^1.1.1" + chalk "^1.1.3" micromatch "^2.3.11" + slash "^1.0.0" -jest-mock@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-19.0.0.tgz#67038641e9607ab2ce08ec4a8cb83aabbc899d01" +jest-mock@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-20.0.3.tgz#8bc070e90414aa155c11a8d64c869a0d5c71da59" -jest-regex-util@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-19.0.0.tgz#b7754587112aede1456510bb1f6afe74ef598691" +jest-regex-util@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-20.0.3.tgz#85bbab5d133e44625b19faf8c6aa5122d085d762" -jest-resolve-dependencies@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-19.0.0.tgz#a741ad1fa094140e64ecf2642a504f834ece22ee" +jest-resolve-dependencies@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-20.0.3.tgz#6e14a7b717af0f2cb3667c549de40af017b1723a" dependencies: - jest-file-exists "^19.0.0" + jest-regex-util "^20.0.3" -jest-resolve@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-19.0.2.tgz#5793575de4f07aec32f7d7ff0c6c181963eefb3c" +jest-resolve@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-20.0.4.tgz#9448b3e8b6bafc15479444c6499045b7ffe597a5" dependencies: browser-resolve "^1.11.2" - jest-haste-map "^19.0.0" - resolve "^1.2.0" + is-builtin-module "^1.0.0" + resolve "^1.3.2" -jest-runtime@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.2.tgz#d9a43e72de416d27d196fd9c7940d98fe6685407" +jest-runtime@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-20.0.4.tgz#a2c802219c4203f754df1404e490186169d124d8" dependencies: babel-core "^6.0.0" - babel-jest "^19.0.0" + babel-jest "^20.0.3" babel-plugin-istanbul "^4.0.0" chalk "^1.1.3" - graceful-fs "^4.1.6" - jest-config "^19.0.2" - jest-file-exists "^19.0.0" - jest-haste-map "^19.0.0" - jest-regex-util "^19.0.0" - jest-resolve "^19.0.2" - jest-util "^19.0.2" + convert-source-map "^1.4.0" + graceful-fs "^4.1.11" + jest-config "^20.0.4" + jest-haste-map "^20.0.4" + jest-regex-util "^20.0.3" + jest-resolve "^20.0.4" + jest-util "^20.0.3" json-stable-stringify "^1.0.1" micromatch "^2.3.11" strip-bom "3.0.0" - yargs "^6.3.0" + yargs "^7.0.2" -jest-snapshot@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-19.0.2.tgz#9c1b216214f7187c38bfd5c70b1efab16b0ff50b" +jest-snapshot@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-20.0.3.tgz#5b847e1adb1a4d90852a7f9f125086e187c76566" dependencies: chalk "^1.1.3" - jest-diff "^19.0.0" - jest-file-exists "^19.0.0" - jest-matcher-utils "^19.0.0" - jest-util "^19.0.2" + jest-diff "^20.0.3" + jest-matcher-utils "^20.0.3" + jest-util "^20.0.3" natural-compare "^1.4.0" - pretty-format "^19.0.0" + pretty-format "^20.0.3" -jest-util@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-19.0.2.tgz#e0a0232a2ab9e6b2b53668bdb3534c2b5977ed41" +jest-util@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-20.0.3.tgz#0c07f7d80d82f4e5a67c6f8b9c3fe7f65cfd32ad" dependencies: - chalk "^1.1.1" - graceful-fs "^4.1.6" - jest-file-exists "^19.0.0" - jest-message-util "^19.0.0" - jest-mock "^19.0.0" - jest-validate "^19.0.2" - leven "^2.0.0" + chalk "^1.1.3" + graceful-fs "^4.1.11" + jest-message-util "^20.0.3" + jest-mock "^20.0.3" + jest-validate "^20.0.3" + leven "^2.1.0" mkdirp "^0.5.1" -jest-validate@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-19.0.2.tgz#dc534df5f1278d5b63df32b14241d4dbf7244c0c" +jest-validate@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-20.0.3.tgz#d0cfd1de4f579f298484925c280f8f1d94ec3cab" dependencies: - chalk "^1.1.1" - jest-matcher-utils "^19.0.0" - leven "^2.0.0" - pretty-format "^19.0.0" + chalk "^1.1.3" + jest-matcher-utils "^20.0.3" + leven "^2.1.0" + pretty-format "^20.0.3" -jest@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest/-/jest-19.0.2.tgz#b794faaf8ff461e7388f28beef559a54f20b2c10" +jest@^20.0.4: + version "20.0.4" + resolved "https://registry.yarnpkg.com/jest/-/jest-20.0.4.tgz#3dd260c2989d6dad678b1e9cc4d91944f6d602ac" dependencies: - jest-cli "^19.0.2" + jest-cli "^20.0.4" jmespath@0.15.0: version "0.15.0" @@ -3791,10 +3881,6 @@ js-base64@^2.1.9: version "2.1.9" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce" -js-tokens@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-2.0.0.tgz#79903f5563ee778cc1162e6dcf1a0027c97f9cb5" - js-tokens@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" @@ -3823,9 +3909,9 @@ jsdelivr-cdn-data@^0.1.1: dependencies: semver "~2.2.1" -jsdom@^9.11.0: - version "9.11.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.11.0.tgz#a95b0304e521a2ca5a63c6ea47bf7708a7a84591" +jsdom@^9.12.0: + version "9.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" dependencies: abab "^1.0.3" acorn "^4.0.4" @@ -3920,12 +4006,9 @@ jstransform@^11.0.3: object-assign "^2.0.0" source-map "^0.4.2" -jsx-ast-utils@^1.0.0, jsx-ast-utils@^1.3.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.3.5.tgz#9ba6297198d9f754594d62e59496ffb923778dd4" - dependencies: - acorn-jsx "^3.0.1" - object-assign "^4.1.0" +jsx-ast-utils@^1.3.4, jsx-ast-utils@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" kind-of@^3.0.2: version "3.1.0" @@ -3970,7 +4053,7 @@ ldjson-stream@^1.2.1: split2 "^0.2.1" through2 "^0.6.1" -leven@^2.0.0: +leven@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" @@ -3998,6 +4081,15 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + loader-fs-cache@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/loader-fs-cache/-/loader-fs-cache-1.0.1.tgz#56e0bf08bd9708b26a765b68509840c8dec9fdbc" @@ -4018,7 +4110,7 @@ loader-utils@^0.2.16: json5 "^0.5.0" object-assign "^4.0.1" -loader-utils@^1.0.2: +loader-utils@^1.0.2, loader-utils@^1.x: version "1.0.2" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.0.2.tgz#a9f923c865a974623391a8602d031137fad74830" dependencies: @@ -4125,11 +4217,11 @@ longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.0.tgz#6b26248c42f6d4fa4b0d8542f78edfcde35642a8" +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" dependencies: - js-tokens "^2.0.0" + js-tokens "^3.0.0" loud-rejection@^1.0.0: version "1.6.0" @@ -4269,11 +4361,11 @@ minimalistic-assert@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" -"minimatch@2 || 3", minimatch@3.0.3, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" +"minimatch@2 || 3", minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: - brace-expansion "^1.0.0" + brace-expansion "^1.1.7" minimatch@3.0.2: version "3.0.2" @@ -4281,6 +4373,12 @@ minimatch@3.0.2: dependencies: brace-expansion "^1.0.0" +minimatch@3.0.3, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" + dependencies: + brace-expansion "^1.0.0" + minimist@0.0.8, minimist@~0.0.1: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" @@ -4303,6 +4401,10 @@ ms@0.7.2: version "0.7.2" resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + multimatch@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b" @@ -4411,9 +4513,9 @@ node-libs-browser@^2.0.0: util "^0.10.3" vm-browserify "0.0.4" -node-notifier@^5.0.1: - version "5.0.2" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.0.2.tgz#4438449fe69e321f941cef943986b0797032701b" +node-notifier@^5.0.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.1.2.tgz#2fa9e12605fa10009d44549d6fcd8a63dde0e4ff" dependencies: growly "^1.3.0" semver "^5.3.0" @@ -4524,18 +4626,10 @@ object-hash@^1.1.4: version "1.1.5" resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.1.5.tgz#bdd844e030d0861b692ca175c6cab6868ec233d7" -object-keys@^1.0.10, object-keys@^1.0.8: +object-keys@^1.0.8: version "1.0.11" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" -object.assign@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc" - dependencies: - define-properties "^1.1.2" - function-bind "^1.1.0" - object-keys "^1.0.10" - object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" @@ -4655,6 +4749,10 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" +p-map@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.1.1.tgz#05f5e4ae97a068371bc2a5cc86bfbdbc19c4ae7a" + pako@~0.2.0: version "0.2.9" resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" @@ -4732,6 +4830,12 @@ path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" +path-to-regexp@^1.5.3: + version "1.7.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d" + dependencies: + isarray "0.0.1" + path-type@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" @@ -4740,6 +4844,12 @@ path-type@^1.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + dependencies: + pify "^2.0.0" + pbkdf2@^3.0.3: version "3.0.9" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.9.tgz#f2c4b25a600058b3c3773c086c37dbbee1ffe693" @@ -4789,12 +4899,6 @@ pkg-dir@^1.0.0: dependencies: find-up "^1.0.0" -pkg-up@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" - dependencies: - find-up "^1.0.0" - pleeease-filters@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pleeease-filters/-/pleeease-filters-3.0.0.tgz#35a4d4c2086413eabc2ce17aaa2ec29054e3075c" @@ -4934,9 +5038,9 @@ postcss-convert-values@^2.3.4: postcss "^5.0.11" postcss-value-parser "^3.1.2" -postcss-cssnext@^2.10.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/postcss-cssnext/-/postcss-cssnext-2.10.0.tgz#30e0dddcfb978eae2523a340aa2c8ba49c5d7103" +postcss-cssnext@^2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/postcss-cssnext/-/postcss-cssnext-2.11.0.tgz#31e68f001e409604da703b66de14b8b8c8c9f2b1" dependencies: autoprefixer "^6.0.2" caniuse-api "^1.5.3" @@ -4960,6 +5064,7 @@ postcss-cssnext@^2.10.0: postcss-custom-selectors "^3.0.0" postcss-font-family-system-ui "^1.0.1" postcss-font-variant "^2.0.0" + postcss-image-set-polyfill "^0.3.3" postcss-initial "^1.3.1" postcss-media-minmax "^2.1.0" postcss-nesting "^2.0.5" @@ -5061,14 +5166,20 @@ postcss-hexrgba@^0.2.0: dependencies: postcss "^5.0.0" -postcss-import@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-9.1.0.tgz#95fe9876a1e79af49fbdc3589f01fe5aa7cc1e80" +postcss-image-set-polyfill@^0.3.3: + version "0.3.4" + resolved "https://registry.yarnpkg.com/postcss-image-set-polyfill/-/postcss-image-set-polyfill-0.3.4.tgz#46e08405098574eb5090c6af98c4bc99d73f5326" + dependencies: + postcss "^6.0.1" + postcss-media-query-parser "^0.2.3" + +postcss-import@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-10.0.0.tgz#4c85c97b099136cc5ea0240dc1dfdbfde4e2ebbe" dependencies: object-assign "^4.0.1" - postcss "^5.0.14" + postcss "^6.0.1" postcss-value-parser "^3.2.3" - promise-each "^2.2.0" read-cache "^1.0.0" resolve "^1.1.7" @@ -5091,7 +5202,7 @@ postcss-less@^0.14.0: dependencies: postcss "^5.0.21" -postcss-load-config@^1.2.0: +postcss-load-config@^1.x: version "1.2.0" resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-1.2.0.tgz#539e9afc9ddc8620121ebf9d8c3673e0ce50d28a" dependencies: @@ -5114,14 +5225,14 @@ postcss-load-plugins@^2.3.0: cosmiconfig "^2.1.1" object-assign "^4.1.0" -postcss-loader@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-1.3.3.tgz#a621ea1fa29062a83972a46f54486771301916eb" +postcss-loader@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.0.5.tgz#c19d3e8b83eb1ac316f5621ef4c0ef5b3d1b8b3a" dependencies: - loader-utils "^1.0.2" - object-assign "^4.1.1" - postcss "^5.2.15" - postcss-load-config "^1.2.0" + loader-utils "^1.x" + postcss "^6.x" + postcss-load-config "^1.x" + schema-utils "^0.x" postcss-media-minmax@^2.1.0: version "2.1.2" @@ -5129,7 +5240,7 @@ postcss-media-minmax@^2.1.0: dependencies: postcss "^5.0.4" -postcss-media-query-parser@^0.2.0: +postcss-media-query-parser@^0.2.0, postcss-media-query-parser@^0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" @@ -5425,7 +5536,7 @@ postcss-zindex@^2.0.1: postcss "^5.0.4" uniqs "^2.0.0" -postcss@^5.0, postcss@^5.0.0, postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.18, postcss@^5.0.19, postcss@^5.0.2, postcss@^5.0.20, postcss@^5.0.21, postcss@^5.0.3, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.1.1, postcss@^5.2.0, postcss@^5.2.12, postcss@^5.2.15, postcss@^5.2.4, postcss@^5.2.5, postcss@^5.2.8: +postcss@^5.0, postcss@^5.0.0, postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.18, postcss@^5.0.19, postcss@^5.0.2, postcss@^5.0.20, postcss@^5.0.21, postcss@^5.0.3, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.1.1, postcss@^5.2.0, postcss@^5.2.12, postcss@^5.2.4, postcss@^5.2.5, postcss@^5.2.8: version "5.2.16" resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.16.tgz#732b3100000f9ff8379a48a53839ed097376ad57" dependencies: @@ -5434,6 +5545,14 @@ postcss@^5.0, postcss@^5.0.0, postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, source-map "^0.5.6" supports-color "^3.2.3" +postcss@^6.0.1, postcss@^6.x: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2" + dependencies: + chalk "^1.1.3" + source-map "^0.5.6" + supports-color "^3.2.3" + prelude-ls@~1.1.0, prelude-ls@~1.1.1, prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -5453,10 +5572,11 @@ pretty-error@^2.0.2: renderkid "~2.0.0" utila "~0.4" -pretty-format@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-19.0.0.tgz#56530d32acb98a3fa4851c4e2b9d37b420684c84" +pretty-format@^20.0.3: + version "20.0.3" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-20.0.3.tgz#020e350a560a1fe1a98dc3beb6ccffb386de8b14" dependencies: + ansi-regex "^2.1.1" ansi-styles "^3.0.0" private@^0.1.6, private@~0.1.5: @@ -5479,24 +5599,25 @@ progress@^1.1.8: version "1.1.8" resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" -promise-each@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/promise-each/-/promise-each-2.2.0.tgz#3353174eff2694481037e04e01f77aa0fb6d1b60" - dependencies: - any-promise "^0.1.0" - promise@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" dependencies: asap "~2.0.3" -prop-types@^15.0.0, prop-types@^15.5.1, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@~15.5.7: +prop-types@^15.5.1, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@~15.5.7: version "15.5.8" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394" dependencies: fbjs "^0.8.9" +prop-types@^15.5.10, prop-types@^15.5.4: + version "15.5.10" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154" + dependencies: + fbjs "^0.8.9" + loose-envify "^1.3.1" + proxy-addr@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.2.tgz#b4cc5f22610d9535824c123aef9d3cf73c40ba37" @@ -5542,7 +5663,7 @@ qs@~2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/qs/-/qs-2.3.3.tgz#e9e85adbe75da0bbe4c8e0476a086290f863b404" -query-string@^4.1.0, query-string@^4.2.2: +query-string@^4.1.0: version "4.2.3" resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.2.3.tgz#9f27273d207a25a8ee4c7b8c74dcd45d556db822" dependencies: @@ -5622,7 +5743,7 @@ react-dom@^15.5.4: object-assign "^4.1.0" prop-types "~15.5.7" -react-hot-loader@next: +react-hot-loader@3.0.0-beta.6: version "3.0.0-beta.6" resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-3.0.0-beta.6.tgz#463fac0bfc8b63a8385258af20c91636abce75f4" dependencies: @@ -5656,30 +5777,45 @@ react-proxy@^3.0.0-alpha.0: dependencies: lodash "^4.6.1" -react-redux@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-5.0.4.tgz#1563babadcfb2672f57f9ceaa439fb16bf85d55b" +react-redux@^5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-5.0.5.tgz#f8e8c7b239422576e52d6b7db06439469be9846a" dependencies: - create-react-class "^15.5.1" + create-react-class "^15.5.3" hoist-non-react-statics "^1.0.3" invariant "^2.0.0" lodash "^4.2.0" lodash-es "^4.2.0" loose-envify "^1.1.0" - prop-types "^15.0.0" + prop-types "^15.5.10" -react-router-redux@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.8.tgz#227403596b5151e182377dab835b5d45f0f8054e" +react-router-dom@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.1.1.tgz#3021ade1f2c160af97cf94e25594c5f294583025" + dependencies: + history "^4.5.1" + loose-envify "^1.3.1" + prop-types "^15.5.4" + react-router "^4.1.1" -react-router@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-3.0.2.tgz#5a19156678810e01d81901f9c0fef63284b8a514" +react-router-redux@next: + version "5.0.0-alpha.6" + resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-5.0.0-alpha.6.tgz#7418663c2ecd3c51be856fcf28f3d1deecc1a576" + dependencies: + history "^4.5.1" + prop-types "^15.5.4" + react-router "^4.1.1" + +react-router@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/react-router/-/react-router-4.1.1.tgz#d448f3b7c1b429a6fbb03395099949c606b1fe95" dependencies: - history "^3.0.0" + history "^4.6.0" hoist-non-react-statics "^1.2.0" - invariant "^2.2.1" - loose-envify "^1.2.0" + invariant "^2.2.2" + loose-envify "^1.3.1" + path-to-regexp "^1.5.3" + prop-types "^15.5.4" warning "^3.0.0" react-test-renderer@^15.5.4: @@ -5725,6 +5861,13 @@ read-pkg-up@^1.0.1: find-up "^1.0.0" read-pkg "^1.0.0" +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + read-pkg@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" @@ -5733,6 +5876,14 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + readable-stream@1.0, "readable-stream@>=1.0.33-1 <1.1.0-0": version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" @@ -5841,9 +5992,9 @@ reduce-function-call@^1.0.1: dependencies: balanced-match "^0.4.2" -redux-saga@^0.15.0: - version "0.15.0" - resolved "https://registry.yarnpkg.com/redux-saga/-/redux-saga-0.15.0.tgz#14c4aae5bfece7266d6b16e9050556a102fc6d38" +redux-saga@^0.15.3: + version "0.15.3" + resolved "https://registry.yarnpkg.com/redux-saga/-/redux-saga-0.15.3.tgz#be2b86b4ad46bf0d84fcfcb0ca96cfc33db91acb" redux@^3.6.0: version "3.6.0" @@ -5991,6 +6142,10 @@ resolve-from@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" +resolve-pathname@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-2.1.0.tgz#e8358801b86b83b17560d4e3c382d7aef2100944" + resolve@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" @@ -5999,6 +6154,12 @@ resolve@^1.1.6, resolve@^1.1.7, resolve@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" +resolve@^1.3.2: + version "1.3.3" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5" + dependencies: + path-parse "^1.0.5" + restore-cursor@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" @@ -6020,7 +6181,7 @@ right-align@^0.1.1: dependencies: align-text "^0.1.1" -rimraf@2, rimraf@^2.2.8, rimraf@^2.4.3, rimraf@^2.4.4, rimraf@^2.6.1: +rimraf@2, rimraf@^2.2.8, rimraf@^2.4.4, rimraf@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" dependencies: @@ -6089,9 +6250,9 @@ s3@^4.4.0: rimraf "~2.2.8" streamsink "~1.2.0" -sane@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-1.5.0.tgz#a4adeae764d048621ecb27d5f9ecf513101939f3" +sane@~1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-1.6.0.tgz#9610c452307a135d29c1fdfe2547034180c46775" dependencies: anymatch "^1.3.0" exec-sh "^0.2.0" @@ -6113,6 +6274,12 @@ sax@>=0.6.0, sax@^1.2.1, sax@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.1.tgz#7b8e656190b228e81a66aea748480d828cd2d37a" +schema-utils@^0.3.0, schema-utils@^0.x: + version "0.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" + dependencies: + ajv "^5.0.0" + select-hose@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -6444,11 +6611,12 @@ strip-json-comments@~1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91" -style-loader@^0.17.0: - version "0.17.0" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.17.0.tgz#e8254bccdb7af74bd58274e36107b4d5ab4df310" +style-loader@^0.18.1: + version "0.18.1" + resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.18.1.tgz#6afca8953c842830e5e2dc84796309880a97f7e8" dependencies: loader-utils "^1.0.2" + schema-utils "^0.3.0" style-search@^0.1.0: version "0.1.0" @@ -6763,15 +6931,22 @@ uglify-js@2.7.x: uglify-to-browserify "~1.0.0" yargs "~3.10.0" -uglify-js@^2.6, uglify-js@^2.8.22, uglify-js@^2.8.5: - version "2.8.22" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.22.tgz#d54934778a8da14903fa29a326fb24c0ab51a1a0" +uglify-js@^2.6, uglify-js@^2.8.27: + version "2.8.27" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.27.tgz#47787f912b0f242e5b984343be8e35e95f694c9c" dependencies: source-map "~0.5.1" yargs "~3.10.0" optionalDependencies: uglify-to-browserify "~1.0.0" +uglify-js@^3.0.15: + version "3.0.15" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.0.15.tgz#aacb323a846b234602270dead8a32441a8806f42" + dependencies: + commander "~2.9.0" + source-map "~0.5.1" + uglify-to-browserify@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" @@ -6898,6 +7073,10 @@ validate-npm-package-license@^3.0.1: spdx-correct "~1.0.0" spdx-expression-parse "~1.0.0" +value-equal@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-0.2.1.tgz#c220a304361fce6994dbbedaa3c7e1a1b895871d" + vary@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.0.tgz#e1e5affbbd16ae768dd2674394b9ad3022653140" @@ -7031,9 +7210,9 @@ webpack-sources@^0.2.3: source-list-map "^1.1.1" source-map "~0.5.3" -webpack@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.4.1.tgz#15a91dbe34966d8a4b99c7d656efd92a2e5a6f6a" +webpack@^2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.6.1.tgz#2e0457f0abb1ac5df3ab106c69c672f236785f07" dependencies: acorn "^5.0.0" acorn-dynamic-import "^2.0.0" @@ -7052,7 +7231,7 @@ webpack@^2.4.1: source-map "^0.5.3" supports-color "^3.1.0" tapable "~0.2.5" - uglify-js "^2.8.5" + uglify-js "^2.8.27" watchpack "^1.3.1" webpack-sources "^0.2.3" yargs "^6.0.0" @@ -7092,7 +7271,7 @@ which-module@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" -which@^1.1.1, which@^1.2.12: +which@^1.2.12: version "1.2.12" resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192" dependencies: @@ -7204,6 +7383,12 @@ yargs-parser@^4.2.0: dependencies: camelcase "^3.0.0" +yargs-parser@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" + dependencies: + camelcase "^3.0.0" + yargs@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-5.0.0.tgz#3355144977d05757dbb86d6e38ec056123b3a66e" @@ -7236,7 +7421,7 @@ yargs@^3.5.4, yargs@~3.10.0: decamelize "^1.0.0" window-size "0.1.0" -yargs@^6.0.0, yargs@^6.3.0: +yargs@^6.0.0: version "6.6.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" dependencies: @@ -7253,3 +7438,21 @@ yargs@^6.0.0, yargs@^6.3.0: which-module "^1.0.0" y18n "^3.2.1" yargs-parser "^4.2.0" + +yargs@^7.0.2: + version "7.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^5.0.0"

): ClassComponent, S>; + + declare type MatchPathOptions = { + exact?: boolean, + strict?: boolean, + } + declare export function matchPath(pathname: string, path: string, options?: MatchPathOptions): null | Match +} 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 1dc2f4a..48fa4d4 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: 9479fb0464564051e9187e215f67c296 -// flow-typed version: <>/react-test-renderer_v^15.4.2/flow_v0.41.0 +// flow-typed signature: 00c5e6a8d76264087e126b696cff6fda +// flow-typed version: <>/react-test-renderer_v^15.5.4/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -86,243 +86,903 @@ declare module 'react-test-renderer/lib/getIteratorFn' { declare module.exports: any; } -declare module 'react-test-renderer/lib/getNextDebugID' { +declare module 'react-test-renderer/lib/instantiateReactComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/isTextInputElement' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/KeyEscapeUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/PluginModuleType' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/PooledClass' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactChildFiber' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactChildReconciler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactComponentEnvironment' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactCompositeComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactCoroutine' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactDebugTool' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactDefaultBatchingStrategy' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactElementSymbol' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactEmptyComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactErrorUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactEventEmitterMixin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFeatureFlags' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiber' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberBeginWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberCommitWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberCompleteWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberReconciler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberRoot' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberScheduler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactFiberUpdateQueue' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactHostComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactHostOperationHistoryHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactInstanceMap' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactInstanceType' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactInstrumentation' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactInvalidSetStateWarningHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactMultiChild' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactMultiChildUpdateTypes' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactNodeTypes' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactOwner' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactPerf' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactPriorityLevel' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/reactProdInvariant' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactPropTypeLocationNames' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactPropTypeLocations' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactPropTypesSecret' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactReconciler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactRef' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactReifiedYield' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactShallowRenderer' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactSimpleEmptyComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactSyntheticEventType' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTestEmptyComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTestMount' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTestReconcileTransaction' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTestRenderer' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTestTextComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTypeOfWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactTypes' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactUpdateQueue' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactUpdates' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ReactVersion' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ResponderEventPlugin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ResponderSyntheticEvent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/ResponderTouchHistoryStore' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/accumulate' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/accumulateInto' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/adler32' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ARIADOMPropertyConfig' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/AutoFocusUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/BeforeInputEventPlugin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/CallbackQueue' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/canDefineProperty' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ChangeEventPlugin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/checkReactTypeSpec' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/createMicrosoftUnsafeLocalFunction' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/CSSProperty' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/CSSPropertyOperations' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/Danger' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/dangerousStyleValue' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DefaultEventPluginOrder' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/deprecated' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DOMChildrenOperations' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DOMLazyTree' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DOMNamespaces' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DOMProperty' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/DOMPropertyOperations' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EnterLeaveEventPlugin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/escapeTextContentForBrowser' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EventConstants' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EventPluginHub' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EventPluginRegistry' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EventPluginUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/EventPropagators' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/FallbackCompositionState' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/findDOMNode' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/flattenChildren' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/forEachAccumulated' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getEventCharCode' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getEventKey' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getEventModifierState' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getEventTarget' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getHostComponentFromComposite' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getIteratorFn' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getNodeForCharacterOffset' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getTextContentAccessor' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/getVendorPrefixedEventName' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/HTMLDOMPropertyConfig' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/instantiateReactComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/isEventSupported' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/isTextInputElement' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/KeyEscapeUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/LinkedValueUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/PluginModuleType' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/PooledClass' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/quoteAttributeValueForBrowser' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactBrowserEventEmitter' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactChildFiber' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactChildReconciler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactComponentBrowserEnvironment' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactComponentEnvironment' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactCompositeComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactCoroutine' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDebugTool' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDefaultBatchingStrategy' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDefaultInjection' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOM' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMComponentFlags' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMComponentTree' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMContainerInfo' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMEmptyComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMFeatureFlags' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMFiber' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMIDOperations' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMInput' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMInvalidARIAHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMNullInputValuePropHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMOption' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMSelect' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMSelection' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMServer' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMTextarea' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMTextComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMTreeTraversal' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactDOMUnknownPropertyHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactElementSymbol' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactEmptyComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactErrorUtils' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactEventEmitterMixin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactEventListener' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFeatureFlags' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiber' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberBeginWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberCommitWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberCompleteWork' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberReconciler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberRoot' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberScheduler' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactFiberUpdateQueue' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactHostComponent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactHostOperationHistoryHook' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ReactInjection' { declare module.exports: any; } -declare module 'react-test-renderer/lib/instantiateReactComponent' { +declare module 'react-test-renderer/lib/shallow/ReactInputSelection' { declare module.exports: any; } -declare module 'react-test-renderer/lib/isTextInputElement' { +declare module 'react-test-renderer/lib/shallow/ReactInstanceMap' { declare module.exports: any; } -declare module 'react-test-renderer/lib/KeyEscapeUtils' { +declare module 'react-test-renderer/lib/shallow/ReactInstanceType' { declare module.exports: any; } -declare module 'react-test-renderer/lib/PluginModuleType' { +declare module 'react-test-renderer/lib/shallow/ReactInstrumentation' { declare module.exports: any; } -declare module 'react-test-renderer/lib/PooledClass' { +declare module 'react-test-renderer/lib/shallow/ReactInvalidSetStateWarningHook' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactChildFiber' { +declare module 'react-test-renderer/lib/shallow/ReactMarkupChecksum' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactChildReconciler' { +declare module 'react-test-renderer/lib/shallow/ReactMount' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactComponentEnvironment' { +declare module 'react-test-renderer/lib/shallow/ReactMultiChild' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactCompositeComponent' { +declare module 'react-test-renderer/lib/shallow/ReactMultiChildUpdateTypes' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactCoroutine' { +declare module 'react-test-renderer/lib/shallow/ReactNodeTypes' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactDebugTool' { +declare module 'react-test-renderer/lib/shallow/ReactOwner' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactDefaultBatchingStrategy' { +declare module 'react-test-renderer/lib/shallow/ReactPerf' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactElementSymbol' { +declare module 'react-test-renderer/lib/shallow/ReactPriorityLevel' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactEmptyComponent' { +declare module 'react-test-renderer/lib/shallow/reactProdInvariant' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactErrorUtils' { +declare module 'react-test-renderer/lib/shallow/ReactPropTypeLocationNames' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactEventEmitterMixin' { +declare module 'react-test-renderer/lib/shallow/ReactPropTypeLocations' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFeatureFlags' { +declare module 'react-test-renderer/lib/shallow/ReactPropTypesSecret' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiber' { +declare module 'react-test-renderer/lib/shallow/ReactReconciler' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberBeginWork' { +declare module 'react-test-renderer/lib/shallow/ReactReconcileTransaction' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberCommitWork' { +declare module 'react-test-renderer/lib/shallow/ReactRef' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberCompleteWork' { +declare module 'react-test-renderer/lib/shallow/ReactReifiedYield' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberReconciler' { +declare module 'react-test-renderer/lib/shallow/ReactServerBatchingStrategy' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberRoot' { +declare module 'react-test-renderer/lib/shallow/ReactServerRendering' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberScheduler' { +declare module 'react-test-renderer/lib/shallow/ReactServerRenderingTransaction' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactFiberUpdateQueue' { +declare module 'react-test-renderer/lib/shallow/ReactServerUpdateQueue' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactHostComponent' { +declare module 'react-test-renderer/lib/shallow/ReactShallowRenderer' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactHostOperationHistoryHook' { +declare module 'react-test-renderer/lib/shallow/ReactSimpleEmptyComponent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactInstanceMap' { +declare module 'react-test-renderer/lib/shallow/ReactSyntheticEventType' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactInstanceType' { +declare module 'react-test-renderer/lib/shallow/ReactTestEmptyComponent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactInstrumentation' { +declare module 'react-test-renderer/lib/shallow/ReactTestMount' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactInvalidSetStateWarningHook' { +declare module 'react-test-renderer/lib/shallow/ReactTestReconcileTransaction' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactMultiChild' { +declare module 'react-test-renderer/lib/shallow/ReactTestRenderer' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactMultiChildUpdateTypes' { +declare module 'react-test-renderer/lib/shallow/ReactTestTextComponent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactNodeTypes' { +declare module 'react-test-renderer/lib/shallow/ReactTypeOfWork' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactOwner' { +declare module 'react-test-renderer/lib/shallow/ReactTypes' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactPerf' { +declare module 'react-test-renderer/lib/shallow/ReactUpdateQueue' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactPriorityLevel' { +declare module 'react-test-renderer/lib/shallow/ReactUpdates' { declare module.exports: any; } -declare module 'react-test-renderer/lib/reactProdInvariant' { +declare module 'react-test-renderer/lib/shallow/ReactVersion' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactPropTypeLocationNames' { +declare module 'react-test-renderer/lib/shallow/renderSubtreeIntoContainer' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactPropTypeLocations' { +declare module 'react-test-renderer/lib/shallow/ResponderEventPlugin' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactPropTypesSecret' { +declare module 'react-test-renderer/lib/shallow/ResponderSyntheticEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactReconciler' { +declare module 'react-test-renderer/lib/shallow/ResponderTouchHistoryStore' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactRef' { +declare module 'react-test-renderer/lib/shallow/SelectEventPlugin' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactReifiedYield' { +declare module 'react-test-renderer/lib/shallow/setInnerHTML' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactSimpleEmptyComponent' { +declare module 'react-test-renderer/lib/shallow/setTextContent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactSyntheticEventType' { +declare module 'react-test-renderer/lib/shallow/shouldUpdateReactComponent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTestEmptyComponent' { +declare module 'react-test-renderer/lib/shallow/SimpleEventPlugin' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTestMount' { +declare module 'react-test-renderer/lib/shallow/SVGDOMPropertyConfig' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTestReconcileTransaction' { +declare module 'react-test-renderer/lib/shallow/SyntheticAnimationEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTestRenderer' { +declare module 'react-test-renderer/lib/shallow/SyntheticClipboardEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTestTextComponent' { +declare module 'react-test-renderer/lib/shallow/SyntheticCompositionEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTypeOfWork' { +declare module 'react-test-renderer/lib/shallow/SyntheticDragEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactTypes' { +declare module 'react-test-renderer/lib/shallow/SyntheticEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactUpdateQueue' { +declare module 'react-test-renderer/lib/shallow/SyntheticFocusEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactUpdates' { +declare module 'react-test-renderer/lib/shallow/SyntheticInputEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ReactVersion' { +declare module 'react-test-renderer/lib/shallow/SyntheticKeyboardEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ResponderEventPlugin' { +declare module 'react-test-renderer/lib/shallow/SyntheticMouseEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ResponderSyntheticEvent' { +declare module 'react-test-renderer/lib/shallow/SyntheticTouchEvent' { declare module.exports: any; } -declare module 'react-test-renderer/lib/ResponderTouchHistoryStore' { +declare module 'react-test-renderer/lib/shallow/SyntheticTransitionEvent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/SyntheticUIEvent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/SyntheticWheelEvent' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/TapEventPlugin' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/TouchHistoryMath' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/Transaction' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/traverseAllChildren' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/validateDOMNesting' { + declare module.exports: any; +} + +declare module 'react-test-renderer/lib/shallow/ViewportMetrics' { declare module.exports: any; } @@ -346,6 +1006,10 @@ declare module 'react-test-renderer/lib/traverseAllChildren' { declare module.exports: any; } +declare module 'react-test-renderer/shallow' { + declare module.exports: any; +} + // Filename aliases declare module 'react-test-renderer/index' { declare module.exports: $Exports<'react-test-renderer'>; @@ -401,9 +1065,6 @@ declare module 'react-test-renderer/lib/getHostComponentFromComposite.js' { declare module 'react-test-renderer/lib/getIteratorFn.js' { declare module.exports: $Exports<'react-test-renderer/lib/getIteratorFn'>; } -declare module 'react-test-renderer/lib/getNextDebugID.js' { - declare module.exports: $Exports<'react-test-renderer/lib/getNextDebugID'>; -} declare module 'react-test-renderer/lib/instantiateReactComponent.js' { declare module.exports: $Exports<'react-test-renderer/lib/instantiateReactComponent'>; } @@ -536,6 +1197,9 @@ declare module 'react-test-renderer/lib/ReactRef.js' { declare module 'react-test-renderer/lib/ReactReifiedYield.js' { declare module.exports: $Exports<'react-test-renderer/lib/ReactReifiedYield'>; } +declare module 'react-test-renderer/lib/ReactShallowRenderer.js' { + declare module.exports: $Exports<'react-test-renderer/lib/ReactShallowRenderer'>; +} declare module 'react-test-renderer/lib/ReactSimpleEmptyComponent.js' { declare module.exports: $Exports<'react-test-renderer/lib/ReactSimpleEmptyComponent'>; } @@ -581,6 +1245,501 @@ declare module 'react-test-renderer/lib/ResponderSyntheticEvent.js' { declare module 'react-test-renderer/lib/ResponderTouchHistoryStore.js' { declare module.exports: $Exports<'react-test-renderer/lib/ResponderTouchHistoryStore'>; } +declare module 'react-test-renderer/lib/shallow/accumulate.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/accumulate'>; +} +declare module 'react-test-renderer/lib/shallow/accumulateInto.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/accumulateInto'>; +} +declare module 'react-test-renderer/lib/shallow/adler32.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/adler32'>; +} +declare module 'react-test-renderer/lib/shallow/ARIADOMPropertyConfig.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ARIADOMPropertyConfig'>; +} +declare module 'react-test-renderer/lib/shallow/AutoFocusUtils.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/AutoFocusUtils'>; +} +declare module 'react-test-renderer/lib/shallow/BeforeInputEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/BeforeInputEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/CallbackQueue.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/CallbackQueue'>; +} +declare module 'react-test-renderer/lib/shallow/canDefineProperty.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/canDefineProperty'>; +} +declare module 'react-test-renderer/lib/shallow/ChangeEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ChangeEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/checkReactTypeSpec.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/checkReactTypeSpec'>; +} +declare module 'react-test-renderer/lib/shallow/createMicrosoftUnsafeLocalFunction.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/createMicrosoftUnsafeLocalFunction'>; +} +declare module 'react-test-renderer/lib/shallow/CSSProperty.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/CSSProperty'>; +} +declare module 'react-test-renderer/lib/shallow/CSSPropertyOperations.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/CSSPropertyOperations'>; +} +declare module 'react-test-renderer/lib/shallow/Danger.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/Danger'>; +} +declare module 'react-test-renderer/lib/shallow/dangerousStyleValue.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/dangerousStyleValue'>; +} +declare module 'react-test-renderer/lib/shallow/DefaultEventPluginOrder.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DefaultEventPluginOrder'>; +} +declare module 'react-test-renderer/lib/shallow/deprecated.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/deprecated'>; +} +declare module 'react-test-renderer/lib/shallow/DOMChildrenOperations.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DOMChildrenOperations'>; +} +declare module 'react-test-renderer/lib/shallow/DOMLazyTree.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DOMLazyTree'>; +} +declare module 'react-test-renderer/lib/shallow/DOMNamespaces.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DOMNamespaces'>; +} +declare module 'react-test-renderer/lib/shallow/DOMProperty.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DOMProperty'>; +} +declare module 'react-test-renderer/lib/shallow/DOMPropertyOperations.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/DOMPropertyOperations'>; +} +declare module 'react-test-renderer/lib/shallow/EnterLeaveEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EnterLeaveEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/escapeTextContentForBrowser.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/escapeTextContentForBrowser'>; +} +declare module 'react-test-renderer/lib/shallow/EventConstants.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EventConstants'>; +} +declare module 'react-test-renderer/lib/shallow/EventPluginHub.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EventPluginHub'>; +} +declare module 'react-test-renderer/lib/shallow/EventPluginRegistry.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EventPluginRegistry'>; +} +declare module 'react-test-renderer/lib/shallow/EventPluginUtils.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EventPluginUtils'>; +} +declare module 'react-test-renderer/lib/shallow/EventPropagators.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/EventPropagators'>; +} +declare module 'react-test-renderer/lib/shallow/FallbackCompositionState.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/FallbackCompositionState'>; +} +declare module 'react-test-renderer/lib/shallow/findDOMNode.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/findDOMNode'>; +} +declare module 'react-test-renderer/lib/shallow/flattenChildren.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/flattenChildren'>; +} +declare module 'react-test-renderer/lib/shallow/forEachAccumulated.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/forEachAccumulated'>; +} +declare module 'react-test-renderer/lib/shallow/getEventCharCode.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getEventCharCode'>; +} +declare module 'react-test-renderer/lib/shallow/getEventKey.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getEventKey'>; +} +declare module 'react-test-renderer/lib/shallow/getEventModifierState.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getEventModifierState'>; +} +declare module 'react-test-renderer/lib/shallow/getEventTarget.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getEventTarget'>; +} +declare module 'react-test-renderer/lib/shallow/getHostComponentFromComposite.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getHostComponentFromComposite'>; +} +declare module 'react-test-renderer/lib/shallow/getIteratorFn.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getIteratorFn'>; +} +declare module 'react-test-renderer/lib/shallow/getNodeForCharacterOffset.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getNodeForCharacterOffset'>; +} +declare module 'react-test-renderer/lib/shallow/getTextContentAccessor.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getTextContentAccessor'>; +} +declare module 'react-test-renderer/lib/shallow/getVendorPrefixedEventName.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/getVendorPrefixedEventName'>; +} +declare module 'react-test-renderer/lib/shallow/HTMLDOMPropertyConfig.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/HTMLDOMPropertyConfig'>; +} +declare module 'react-test-renderer/lib/shallow/instantiateReactComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/instantiateReactComponent'>; +} +declare module 'react-test-renderer/lib/shallow/isEventSupported.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/isEventSupported'>; +} +declare module 'react-test-renderer/lib/shallow/isTextInputElement.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/isTextInputElement'>; +} +declare module 'react-test-renderer/lib/shallow/KeyEscapeUtils.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/KeyEscapeUtils'>; +} +declare module 'react-test-renderer/lib/shallow/LinkedValueUtils.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/LinkedValueUtils'>; +} +declare module 'react-test-renderer/lib/shallow/PluginModuleType.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/PluginModuleType'>; +} +declare module 'react-test-renderer/lib/shallow/PooledClass.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/PooledClass'>; +} +declare module 'react-test-renderer/lib/shallow/quoteAttributeValueForBrowser.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/quoteAttributeValueForBrowser'>; +} +declare module 'react-test-renderer/lib/shallow/ReactBrowserEventEmitter.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactBrowserEventEmitter'>; +} +declare module 'react-test-renderer/lib/shallow/ReactChildFiber.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactChildFiber'>; +} +declare module 'react-test-renderer/lib/shallow/ReactChildReconciler.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactChildReconciler'>; +} +declare module 'react-test-renderer/lib/shallow/ReactComponentBrowserEnvironment.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactComponentBrowserEnvironment'>; +} +declare module 'react-test-renderer/lib/shallow/ReactComponentEnvironment.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactComponentEnvironment'>; +} +declare module 'react-test-renderer/lib/shallow/ReactCompositeComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactCompositeComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactCoroutine.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactCoroutine'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDebugTool.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDebugTool'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDefaultBatchingStrategy.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDefaultBatchingStrategy'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDefaultInjection.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDefaultInjection'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOM.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOM'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMComponentFlags.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMComponentFlags'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMComponentTree.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMComponentTree'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMContainerInfo.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMContainerInfo'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMEmptyComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMEmptyComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMFeatureFlags.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMFeatureFlags'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMFiber.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMFiber'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMIDOperations.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMIDOperations'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMInput.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMInput'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMInvalidARIAHook.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMInvalidARIAHook'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMNullInputValuePropHook.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMNullInputValuePropHook'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMOption.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMOption'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMSelect.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMSelect'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMSelection.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMSelection'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMServer.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMServer'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMTextarea.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMTextarea'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMTextComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMTextComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMTreeTraversal.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMTreeTraversal'>; +} +declare module 'react-test-renderer/lib/shallow/ReactDOMUnknownPropertyHook.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactDOMUnknownPropertyHook'>; +} +declare module 'react-test-renderer/lib/shallow/ReactElementSymbol.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactElementSymbol'>; +} +declare module 'react-test-renderer/lib/shallow/ReactEmptyComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactEmptyComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactErrorUtils.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactErrorUtils'>; +} +declare module 'react-test-renderer/lib/shallow/ReactEventEmitterMixin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactEventEmitterMixin'>; +} +declare module 'react-test-renderer/lib/shallow/ReactEventListener.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactEventListener'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFeatureFlags.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFeatureFlags'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiber.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiber'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberBeginWork.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberBeginWork'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberCommitWork.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberCommitWork'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberCompleteWork.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberCompleteWork'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberReconciler.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberReconciler'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberRoot.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberRoot'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberScheduler.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberScheduler'>; +} +declare module 'react-test-renderer/lib/shallow/ReactFiberUpdateQueue.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactFiberUpdateQueue'>; +} +declare module 'react-test-renderer/lib/shallow/ReactHostComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactHostComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactHostOperationHistoryHook.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactHostOperationHistoryHook'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInjection.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInjection'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInputSelection.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInputSelection'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInstanceMap.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInstanceMap'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInstanceType.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInstanceType'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInstrumentation.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInstrumentation'>; +} +declare module 'react-test-renderer/lib/shallow/ReactInvalidSetStateWarningHook.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactInvalidSetStateWarningHook'>; +} +declare module 'react-test-renderer/lib/shallow/ReactMarkupChecksum.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactMarkupChecksum'>; +} +declare module 'react-test-renderer/lib/shallow/ReactMount.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactMount'>; +} +declare module 'react-test-renderer/lib/shallow/ReactMultiChild.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactMultiChild'>; +} +declare module 'react-test-renderer/lib/shallow/ReactMultiChildUpdateTypes.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactMultiChildUpdateTypes'>; +} +declare module 'react-test-renderer/lib/shallow/ReactNodeTypes.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactNodeTypes'>; +} +declare module 'react-test-renderer/lib/shallow/ReactOwner.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactOwner'>; +} +declare module 'react-test-renderer/lib/shallow/ReactPerf.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactPerf'>; +} +declare module 'react-test-renderer/lib/shallow/ReactPriorityLevel.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactPriorityLevel'>; +} +declare module 'react-test-renderer/lib/shallow/reactProdInvariant.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/reactProdInvariant'>; +} +declare module 'react-test-renderer/lib/shallow/ReactPropTypeLocationNames.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactPropTypeLocationNames'>; +} +declare module 'react-test-renderer/lib/shallow/ReactPropTypeLocations.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactPropTypeLocations'>; +} +declare module 'react-test-renderer/lib/shallow/ReactPropTypesSecret.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactPropTypesSecret'>; +} +declare module 'react-test-renderer/lib/shallow/ReactReconciler.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactReconciler'>; +} +declare module 'react-test-renderer/lib/shallow/ReactReconcileTransaction.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactReconcileTransaction'>; +} +declare module 'react-test-renderer/lib/shallow/ReactRef.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactRef'>; +} +declare module 'react-test-renderer/lib/shallow/ReactReifiedYield.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactReifiedYield'>; +} +declare module 'react-test-renderer/lib/shallow/ReactServerBatchingStrategy.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactServerBatchingStrategy'>; +} +declare module 'react-test-renderer/lib/shallow/ReactServerRendering.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactServerRendering'>; +} +declare module 'react-test-renderer/lib/shallow/ReactServerRenderingTransaction.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactServerRenderingTransaction'>; +} +declare module 'react-test-renderer/lib/shallow/ReactServerUpdateQueue.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactServerUpdateQueue'>; +} +declare module 'react-test-renderer/lib/shallow/ReactShallowRenderer.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactShallowRenderer'>; +} +declare module 'react-test-renderer/lib/shallow/ReactSimpleEmptyComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactSimpleEmptyComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactSyntheticEventType.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactSyntheticEventType'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTestEmptyComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTestEmptyComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTestMount.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTestMount'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTestReconcileTransaction.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTestReconcileTransaction'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTestRenderer.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTestRenderer'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTestTextComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTestTextComponent'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTypeOfWork.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTypeOfWork'>; +} +declare module 'react-test-renderer/lib/shallow/ReactTypes.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactTypes'>; +} +declare module 'react-test-renderer/lib/shallow/ReactUpdateQueue.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactUpdateQueue'>; +} +declare module 'react-test-renderer/lib/shallow/ReactUpdates.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactUpdates'>; +} +declare module 'react-test-renderer/lib/shallow/ReactVersion.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ReactVersion'>; +} +declare module 'react-test-renderer/lib/shallow/renderSubtreeIntoContainer.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/renderSubtreeIntoContainer'>; +} +declare module 'react-test-renderer/lib/shallow/ResponderEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ResponderEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/ResponderSyntheticEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ResponderSyntheticEvent'>; +} +declare module 'react-test-renderer/lib/shallow/ResponderTouchHistoryStore.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ResponderTouchHistoryStore'>; +} +declare module 'react-test-renderer/lib/shallow/SelectEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SelectEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/setInnerHTML.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/setInnerHTML'>; +} +declare module 'react-test-renderer/lib/shallow/setTextContent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/setTextContent'>; +} +declare module 'react-test-renderer/lib/shallow/shouldUpdateReactComponent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/shouldUpdateReactComponent'>; +} +declare module 'react-test-renderer/lib/shallow/SimpleEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SimpleEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/SVGDOMPropertyConfig.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SVGDOMPropertyConfig'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticAnimationEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticAnimationEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticClipboardEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticClipboardEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticCompositionEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticCompositionEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticDragEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticDragEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticFocusEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticFocusEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticInputEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticInputEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticKeyboardEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticKeyboardEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticMouseEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticMouseEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticTouchEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticTouchEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticTransitionEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticTransitionEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticUIEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticUIEvent'>; +} +declare module 'react-test-renderer/lib/shallow/SyntheticWheelEvent.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/SyntheticWheelEvent'>; +} +declare module 'react-test-renderer/lib/shallow/TapEventPlugin.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/TapEventPlugin'>; +} +declare module 'react-test-renderer/lib/shallow/TouchHistoryMath.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/TouchHistoryMath'>; +} +declare module 'react-test-renderer/lib/shallow/Transaction.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/Transaction'>; +} +declare module 'react-test-renderer/lib/shallow/traverseAllChildren.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/traverseAllChildren'>; +} +declare module 'react-test-renderer/lib/shallow/validateDOMNesting.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/validateDOMNesting'>; +} +declare module 'react-test-renderer/lib/shallow/ViewportMetrics.js' { + declare module.exports: $Exports<'react-test-renderer/lib/shallow/ViewportMetrics'>; +} declare module 'react-test-renderer/lib/shouldUpdateReactComponent.js' { declare module.exports: $Exports<'react-test-renderer/lib/shouldUpdateReactComponent'>; } @@ -596,3 +1755,6 @@ declare module 'react-test-renderer/lib/Transaction.js' { declare module 'react-test-renderer/lib/traverseAllChildren.js' { declare module.exports: $Exports<'react-test-renderer/lib/traverseAllChildren'>; } +declare module 'react-test-renderer/shallow.js' { + declare module.exports: $Exports<'react-test-renderer/shallow'>; +} diff --git a/flow-typed/npm/redux-saga_vx.x.x.js b/flow-typed/npm/redux-saga_vx.x.x.js index 891cd59..cb00dea 100644 --- a/flow-typed/npm/redux-saga_vx.x.x.js +++ b/flow-typed/npm/redux-saga_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9252907a43ed24a07f7dcefb2c25cfc2 -// flow-typed version: <>/redux-saga_v^0.14.3/flow_v0.41.0 +// flow-typed signature: 2df62bdd44305b221a72bac70b6dc7f3 +// flow-typed version: <>/redux-saga_v^0.15.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -30,10 +30,6 @@ declare module 'redux-saga/dist/redux-saga.min' { declare module.exports: any; } -declare module 'redux-saga/effects' { - declare module.exports: any; -} - declare module 'redux-saga/es/effects' { declare module.exports: any; } @@ -130,6 +126,10 @@ declare module 'redux-saga/lib/utils' { declare module.exports: any; } +declare module 'redux-saga/rollup.config' { + declare module.exports: any; +} + declare module 'redux-saga/src/effects' { declare module.exports: any; } @@ -178,22 +178,6 @@ declare module 'redux-saga/src/utils' { declare module.exports: any; } -declare module 'redux-saga/utils' { - declare module.exports: any; -} - -declare module 'redux-saga/webpack.config.base' { - declare module.exports: any; -} - -declare module 'redux-saga/webpack.config.dev' { - declare module.exports: any; -} - -declare module 'redux-saga/webpack.config.prod' { - declare module.exports: any; -} - // Filename aliases declare module 'redux-saga/dist/redux-saga.js' { declare module.exports: $Exports<'redux-saga/dist/redux-saga'>; @@ -201,9 +185,6 @@ declare module 'redux-saga/dist/redux-saga.js' { declare module 'redux-saga/dist/redux-saga.min.js' { declare module.exports: $Exports<'redux-saga/dist/redux-saga.min'>; } -declare module 'redux-saga/effects.js' { - declare module.exports: $Exports<'redux-saga/effects'>; -} declare module 'redux-saga/es/effects.js' { declare module.exports: $Exports<'redux-saga/es/effects'>; } @@ -276,6 +257,9 @@ declare module 'redux-saga/lib/internal/utils.js' { declare module 'redux-saga/lib/utils.js' { declare module.exports: $Exports<'redux-saga/lib/utils'>; } +declare module 'redux-saga/rollup.config.js' { + declare module.exports: $Exports<'redux-saga/rollup.config'>; +} declare module 'redux-saga/src/effects.js' { declare module.exports: $Exports<'redux-saga/src/effects'>; } @@ -312,15 +296,3 @@ declare module 'redux-saga/src/internal/utils.js' { declare module 'redux-saga/src/utils.js' { declare module.exports: $Exports<'redux-saga/src/utils'>; } -declare module 'redux-saga/utils.js' { - declare module.exports: $Exports<'redux-saga/utils'>; -} -declare module 'redux-saga/webpack.config.base.js' { - declare module.exports: $Exports<'redux-saga/webpack.config.base'>; -} -declare module 'redux-saga/webpack.config.dev.js' { - declare module.exports: $Exports<'redux-saga/webpack.config.dev'>; -} -declare module 'redux-saga/webpack.config.prod.js' { - declare module.exports: $Exports<'redux-saga/webpack.config.prod'>; -} diff --git a/flow-typed/npm/redux_v3.x.x.js b/flow-typed/npm/redux_v3.x.x.js index 0094abf..f4f5e20 100644 --- a/flow-typed/npm/redux_v3.x.x.js +++ b/flow-typed/npm/redux_v3.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ba132c96664f1a05288f3eb2272a3c35 -// flow-typed version: c4bbd91cfc/redux_v3.x.x/flow_>=v0.33.x +// flow-typed signature: 7f1a115f75043c44385071ea3f33c586 +// flow-typed version: 358375125e/redux_v3.x.x/flow_>=v0.33.x declare module 'redux' { @@ -27,6 +27,8 @@ declare module 'redux' { declare type Reducer = (state: S, action: A) => S; + declare type CombinedReducer = (state: $Shape & {} | void, action: A) => S; + declare type Middleware = (api: MiddlewareAPI) => (next: Dispatch) => Dispatch; @@ -49,7 +51,7 @@ declare module 'redux' { declare function bindActionCreators>(actionCreator: C, dispatch: Dispatch): C; declare function bindActionCreators>(actionCreators: C, dispatch: Dispatch): C; - declare function combineReducers(reducers: O): Reducer<$ObjMap(r: Reducer) => S>, A>; + declare function combineReducers(reducers: O): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; declare function compose(...fns: Array>): Function; diff --git a/flow-typed/npm/rucksack-css_vx.x.x.js b/flow-typed/npm/rucksack-css_vx.x.x.js index b9507b2..0dde3a5 100644 --- a/flow-typed/npm/rucksack-css_vx.x.x.js +++ b/flow-typed/npm/rucksack-css_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: aacd8fcc8fe56df6365f37c807d9795d -// flow-typed version: <>/rucksack-css_v^0.9.1/flow_v0.41.0 +// flow-typed signature: 1d4a9e614f7c94dce92cb89f55166e26 +// flow-typed version: <>/rucksack-css_v^0.9.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/style-loader_vx.x.x.js b/flow-typed/npm/style-loader_vx.x.x.js index abcdb95..a7f667a 100644 --- a/flow-typed/npm/style-loader_vx.x.x.js +++ b/flow-typed/npm/style-loader_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 928590185114f43e743a6e47b1e972df -// flow-typed version: <>/style-loader_v^0.13.2/flow_v0.41.0 +// flow-typed signature: b5ac29c1289df94f6ebd31d544265a94 +// flow-typed version: <>/style-loader_v^0.17.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -30,6 +30,10 @@ declare module 'style-loader/addStyleUrl' { declare module.exports: any; } +declare module 'style-loader/fixUrls' { + declare module.exports: any; +} + declare module 'style-loader/url' { declare module.exports: any; } @@ -45,6 +49,9 @@ declare module 'style-loader/addStyles.js' { declare module 'style-loader/addStyleUrl.js' { declare module.exports: $Exports<'style-loader/addStyleUrl'>; } +declare module 'style-loader/fixUrls.js' { + declare module.exports: $Exports<'style-loader/fixUrls'>; +} declare module 'style-loader/index' { declare module.exports: $Exports<'style-loader'>; } diff --git a/flow-typed/npm/stylelint_vx.x.x.js b/flow-typed/npm/stylelint_vx.x.x.js index ec3a9e9..988724b 100644 --- a/flow-typed/npm/stylelint_vx.x.x.js +++ b/flow-typed/npm/stylelint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e6025831bd58b12eb2ea673fbf604c9a -// flow-typed version: <>/stylelint_v^7.9.0/flow_v0.41.0 +// flow-typed signature: f66126f6a0424408c557861c67d5d4b2 +// flow-typed version: <>/stylelint_v^7.10.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -26,6 +26,14 @@ declare module 'stylelint/bin/stylelint' { declare module.exports: any; } +declare module 'stylelint/decls/postcss' { + declare module.exports: any; +} + +declare module 'stylelint/decls/stylelint' { + declare module.exports: any; +} + declare module 'stylelint/lib/alwaysIgnoredGlobs' { declare module.exports: any; } @@ -54,6 +62,10 @@ declare module 'stylelint/lib/createStylelintResult' { declare module.exports: any; } +declare module 'stylelint/lib/dynamicRequire' { + declare module.exports: any; +} + declare module 'stylelint/lib/formatters/index' { declare module.exports: any; } @@ -158,6 +170,10 @@ declare module 'stylelint/lib/rules/at-rule-semicolon-newline-after/index' { declare module.exports: any; } +declare module 'stylelint/lib/rules/at-rule-semicolon-space-before/index' { + declare module.exports: any; +} + declare module 'stylelint/lib/rules/at-rule-whitelist/index' { declare module.exports: any; } @@ -930,6 +946,10 @@ declare module 'stylelint/lib/utils/declarationValueIndex' { declare module.exports: any; } +declare module 'stylelint/lib/utils/FileCache' { + declare module.exports: any; +} + declare module 'stylelint/lib/utils/findAnimationName' { declare module.exports: any; } @@ -950,6 +970,10 @@ declare module 'stylelint/lib/utils/functionArgumentsSearch' { declare module.exports: any; } +declare module 'stylelint/lib/utils/getCacheFile' { + declare module.exports: any; +} + declare module 'stylelint/lib/utils/getIsFileIgnored' { declare module.exports: any; } @@ -974,6 +998,10 @@ declare module 'stylelint/lib/utils/hasEmptyLine' { declare module.exports: any; } +declare module 'stylelint/lib/utils/hash' { + declare module.exports: any; +} + declare module 'stylelint/lib/utils/hasInterpolation' { declare module.exports: any; } @@ -998,6 +1026,10 @@ declare module 'stylelint/lib/utils/isCounterIncrementCustomIdentValue' { declare module.exports: any; } +declare module 'stylelint/lib/utils/isCounterResetCustomIdentValue' { + declare module.exports: any; +} + declare module 'stylelint/lib/utils/isCustomMediaQuery' { declare module.exports: any; } @@ -1146,6 +1178,12 @@ declare module 'stylelint/lib/utils/whitespaceChecker' { declare module 'stylelint/bin/stylelint.js' { declare module.exports: $Exports<'stylelint/bin/stylelint'>; } +declare module 'stylelint/decls/postcss.js' { + declare module.exports: $Exports<'stylelint/decls/postcss'>; +} +declare module 'stylelint/decls/stylelint.js' { + declare module.exports: $Exports<'stylelint/decls/stylelint'>; +} declare module 'stylelint/lib/alwaysIgnoredGlobs.js' { declare module.exports: $Exports<'stylelint/lib/alwaysIgnoredGlobs'>; } @@ -1167,6 +1205,9 @@ declare module 'stylelint/lib/createStylelint.js' { declare module 'stylelint/lib/createStylelintResult.js' { declare module.exports: $Exports<'stylelint/lib/createStylelintResult'>; } +declare module 'stylelint/lib/dynamicRequire.js' { + declare module.exports: $Exports<'stylelint/lib/dynamicRequire'>; +} declare module 'stylelint/lib/formatters/index.js' { declare module.exports: $Exports<'stylelint/lib/formatters/index'>; } @@ -1245,6 +1286,9 @@ declare module 'stylelint/lib/rules/at-rule-no-vendor-prefix/index.js' { declare module 'stylelint/lib/rules/at-rule-semicolon-newline-after/index.js' { declare module.exports: $Exports<'stylelint/lib/rules/at-rule-semicolon-newline-after/index'>; } +declare module 'stylelint/lib/rules/at-rule-semicolon-space-before/index.js' { + declare module.exports: $Exports<'stylelint/lib/rules/at-rule-semicolon-space-before/index'>; +} declare module 'stylelint/lib/rules/at-rule-whitelist/index.js' { declare module.exports: $Exports<'stylelint/lib/rules/at-rule-whitelist/index'>; } @@ -1824,6 +1868,9 @@ declare module 'stylelint/lib/utils/containsString.js' { declare module 'stylelint/lib/utils/declarationValueIndex.js' { declare module.exports: $Exports<'stylelint/lib/utils/declarationValueIndex'>; } +declare module 'stylelint/lib/utils/FileCache.js' { + declare module.exports: $Exports<'stylelint/lib/utils/FileCache'>; +} declare module 'stylelint/lib/utils/findAnimationName.js' { declare module.exports: $Exports<'stylelint/lib/utils/findAnimationName'>; } @@ -1839,6 +1886,9 @@ declare module 'stylelint/lib/utils/findListStyleType.js' { declare module 'stylelint/lib/utils/functionArgumentsSearch.js' { declare module.exports: $Exports<'stylelint/lib/utils/functionArgumentsSearch'>; } +declare module 'stylelint/lib/utils/getCacheFile.js' { + declare module.exports: $Exports<'stylelint/lib/utils/getCacheFile'>; +} declare module 'stylelint/lib/utils/getIsFileIgnored.js' { declare module.exports: $Exports<'stylelint/lib/utils/getIsFileIgnored'>; } @@ -1857,6 +1907,9 @@ declare module 'stylelint/lib/utils/hasEmptyBlock.js' { declare module 'stylelint/lib/utils/hasEmptyLine.js' { declare module.exports: $Exports<'stylelint/lib/utils/hasEmptyLine'>; } +declare module 'stylelint/lib/utils/hash.js' { + declare module.exports: $Exports<'stylelint/lib/utils/hash'>; +} declare module 'stylelint/lib/utils/hasInterpolation.js' { declare module.exports: $Exports<'stylelint/lib/utils/hasInterpolation'>; } @@ -1875,6 +1928,9 @@ declare module 'stylelint/lib/utils/isAutoprefixable.js' { declare module 'stylelint/lib/utils/isCounterIncrementCustomIdentValue.js' { declare module.exports: $Exports<'stylelint/lib/utils/isCounterIncrementCustomIdentValue'>; } +declare module 'stylelint/lib/utils/isCounterResetCustomIdentValue.js' { + declare module.exports: $Exports<'stylelint/lib/utils/isCounterResetCustomIdentValue'>; +} declare module 'stylelint/lib/utils/isCustomMediaQuery.js' { declare module.exports: $Exports<'stylelint/lib/utils/isCustomMediaQuery'>; } diff --git a/flow-typed/npm/superagent_vx.x.x.js b/flow-typed/npm/superagent_vx.x.x.js index a13aa0c..2ef278e 100644 --- a/flow-typed/npm/superagent_vx.x.x.js +++ b/flow-typed/npm/superagent_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 399badd84092c6f48a715d044757a58f -// flow-typed version: <>/superagent_v^3.5.0/flow_v0.41.0 +// flow-typed signature: fb26ba3df1e9de4ee88485a3c32911e6 +// flow-typed version: <>/superagent_v^3.5.2/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/uglify-js_vx.x.x.js b/flow-typed/npm/uglify-js_vx.x.x.js new file mode 100644 index 0000000..62405c3 --- /dev/null +++ b/flow-typed/npm/uglify-js_vx.x.x.js @@ -0,0 +1,116 @@ +// flow-typed signature: ef03bb4779741abbecd5e9102b32a66c +// flow-typed version: <>/uglify-js_v^2.8.22/flow_v0.45.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'uglify-js' + * + * 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 'uglify-js' { + 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 'uglify-js/bin/extract-props' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/ast' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/compress' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/mozilla-ast' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/output' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/parse' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/propmangle' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/scope' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/sourcemap' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/transform' { + declare module.exports: any; +} + +declare module 'uglify-js/lib/utils' { + declare module.exports: any; +} + +declare module 'uglify-js/tools/exports' { + declare module.exports: any; +} + +declare module 'uglify-js/tools/node' { + declare module.exports: any; +} + +// Filename aliases +declare module 'uglify-js/bin/extract-props.js' { + declare module.exports: $Exports<'uglify-js/bin/extract-props'>; +} +declare module 'uglify-js/lib/ast.js' { + declare module.exports: $Exports<'uglify-js/lib/ast'>; +} +declare module 'uglify-js/lib/compress.js' { + declare module.exports: $Exports<'uglify-js/lib/compress'>; +} +declare module 'uglify-js/lib/mozilla-ast.js' { + declare module.exports: $Exports<'uglify-js/lib/mozilla-ast'>; +} +declare module 'uglify-js/lib/output.js' { + declare module.exports: $Exports<'uglify-js/lib/output'>; +} +declare module 'uglify-js/lib/parse.js' { + declare module.exports: $Exports<'uglify-js/lib/parse'>; +} +declare module 'uglify-js/lib/propmangle.js' { + declare module.exports: $Exports<'uglify-js/lib/propmangle'>; +} +declare module 'uglify-js/lib/scope.js' { + declare module.exports: $Exports<'uglify-js/lib/scope'>; +} +declare module 'uglify-js/lib/sourcemap.js' { + declare module.exports: $Exports<'uglify-js/lib/sourcemap'>; +} +declare module 'uglify-js/lib/transform.js' { + declare module.exports: $Exports<'uglify-js/lib/transform'>; +} +declare module 'uglify-js/lib/utils.js' { + declare module.exports: $Exports<'uglify-js/lib/utils'>; +} +declare module 'uglify-js/tools/exports.js' { + declare module.exports: $Exports<'uglify-js/tools/exports'>; +} +declare module 'uglify-js/tools/node.js' { + declare module.exports: $Exports<'uglify-js/tools/node'>; +} diff --git a/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js b/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js new file mode 100644 index 0000000..ed48890 --- /dev/null +++ b/flow-typed/npm/uglifyjs-webpack-plugin_vx.x.x.js @@ -0,0 +1,39 @@ +// flow-typed signature: 2421edc818a6ab4c5a34fe6d7778fde1 +// flow-typed version: <>/uglifyjs-webpack-plugin_v^0.4.3/flow_v0.45.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'uglifyjs-webpack-plugin' + * + * 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 'uglifyjs-webpack-plugin' { + 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 'uglifyjs-webpack-plugin/dist/index' { + declare module.exports: any; +} + +declare module 'uglifyjs-webpack-plugin/lib/post_install' { + declare module.exports: any; +} + +// Filename aliases +declare module 'uglifyjs-webpack-plugin/dist/index.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/dist/index'>; +} +declare module 'uglifyjs-webpack-plugin/lib/post_install.js' { + declare module.exports: $Exports<'uglifyjs-webpack-plugin/lib/post_install'>; +} diff --git a/flow-typed/npm/webpack-dev-server_vx.x.x.js b/flow-typed/npm/webpack-dev-server_vx.x.x.js index 185c967..e60fd4f 100644 --- a/flow-typed/npm/webpack-dev-server_vx.x.x.js +++ b/flow-typed/npm/webpack-dev-server_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 335210586e44cd1877052bf1f433c8ff -// flow-typed version: <>/webpack-dev-server_v^2.4.1/flow_v0.41.0 +// flow-typed signature: e1f1c8085db604327420d1a07e7ba5e9 +// flow-typed version: <>/webpack-dev-server_v^2.4.5/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/webpack-hot-middleware_vx.x.x.js b/flow-typed/npm/webpack-hot-middleware_vx.x.x.js index eb7bcde..c2956f9 100644 --- a/flow-typed/npm/webpack-hot-middleware_vx.x.x.js +++ b/flow-typed/npm/webpack-hot-middleware_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1b820e349f3625e13516615b6f2a9389 -// flow-typed version: <>/webpack-hot-middleware_v^2.17.1/flow_v0.41.0 +// flow-typed signature: 39885c5ddf9e757fcc7270cc6a0c5a27 +// flow-typed version: <>/webpack-hot-middleware_v^2.18.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/webpack-md5-hash_vx.x.x.js b/flow-typed/npm/webpack-md5-hash_vx.x.x.js index 97ad386..2b22d10 100644 --- a/flow-typed/npm/webpack-md5-hash_vx.x.x.js +++ b/flow-typed/npm/webpack-md5-hash_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 29461e5bdab81aeaf34db83519ce3013 -// flow-typed version: <>/webpack-md5-hash_v^0.0.5/flow_v0.41.0 +// flow-typed signature: 06439eda98fef1519bbe50982cbc3bd7 +// flow-typed version: <>/webpack-md5-hash_v^0.0.5/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/webpack-s3-plugin_vx.x.x.js b/flow-typed/npm/webpack-s3-plugin_vx.x.x.js index 28c9462..19a8c7c 100644 --- a/flow-typed/npm/webpack-s3-plugin_vx.x.x.js +++ b/flow-typed/npm/webpack-s3-plugin_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: efae4e6482878fb0dd153ef86dba1ff0 -// flow-typed version: <>/webpack-s3-plugin_v^0.9.2/flow_v0.41.0 +// flow-typed signature: 490d9b12d5b37332b7c5fde5b9f4c12f +// flow-typed version: <>/webpack-s3-plugin_v^0.9.2/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ diff --git a/flow-typed/npm/webpack_vx.x.x.js b/flow-typed/npm/webpack_vx.x.x.js index 711c781..eff0f57 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: 1ba0d87ed0a2da79014e871f3d17152d -// flow-typed version: <>/webpack_v^2.2.1/flow_v0.41.0 +// flow-typed signature: 1ed68d6080465dd4aaa8df1bdaeea25d +// flow-typed version: <>/webpack_v^2.4.1/flow_v0.45.0 /** * This is an autogenerated libdef stub for: @@ -8,8 +8,8 @@ * * 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: + * 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 */ @@ -58,6 +58,10 @@ declare module 'webpack/buildin/module' { declare module.exports: any; } +declare module 'webpack/buildin/system' { + declare module.exports: any; +} + declare module 'webpack/hot/dev-server' { declare module.exports: any; } @@ -530,6 +534,10 @@ declare module 'webpack/lib/EnvironmentPlugin' { declare module.exports: any; } +declare module 'webpack/lib/ErrorHelpers' { + declare module.exports: any; +} + declare module 'webpack/lib/EvalDevToolModulePlugin' { declare module.exports: any; } @@ -726,6 +734,10 @@ declare module 'webpack/lib/MultiWatching' { declare module.exports: any; } +declare module 'webpack/lib/NamedChunksPlugin' { + declare module.exports: any; +} + declare module 'webpack/lib/NamedModulesPlugin' { declare module.exports: any; } @@ -974,6 +986,10 @@ declare module 'webpack/lib/UseStrictPlugin' { declare module.exports: any; } +declare module 'webpack/lib/util/identifier' { + declare module.exports: any; +} + declare module 'webpack/lib/validateSchema' { declare module.exports: any; } @@ -998,6 +1014,10 @@ declare module 'webpack/lib/webpack.web' { declare module.exports: any; } +declare module 'webpack/lib/WebpackError' { + declare module.exports: any; +} + declare module 'webpack/lib/WebpackOptionsApply' { declare module.exports: any; } @@ -1030,6 +1050,10 @@ declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin' { declare module.exports: any; } +declare module 'webpack/schemas/ajv.absolutePath' { + declare module.exports: any; +} + declare module 'webpack/web_modules/node-libs-browser' { declare module.exports: any; } @@ -1062,6 +1086,9 @@ declare module 'webpack/buildin/harmony-module.js' { declare module 'webpack/buildin/module.js' { declare module.exports: $Exports<'webpack/buildin/module'>; } +declare module 'webpack/buildin/system.js' { + declare module.exports: $Exports<'webpack/buildin/system'>; +} declare module 'webpack/hot/dev-server.js' { declare module.exports: $Exports<'webpack/hot/dev-server'>; } @@ -1416,6 +1443,9 @@ declare module 'webpack/lib/Entrypoint.js' { declare module 'webpack/lib/EnvironmentPlugin.js' { declare module.exports: $Exports<'webpack/lib/EnvironmentPlugin'>; } +declare module 'webpack/lib/ErrorHelpers.js' { + declare module.exports: $Exports<'webpack/lib/ErrorHelpers'>; +} declare module 'webpack/lib/EvalDevToolModulePlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalDevToolModulePlugin'>; } @@ -1563,6 +1593,9 @@ declare module 'webpack/lib/MultiStats.js' { declare module 'webpack/lib/MultiWatching.js' { declare module.exports: $Exports<'webpack/lib/MultiWatching'>; } +declare module 'webpack/lib/NamedChunksPlugin.js' { + declare module.exports: $Exports<'webpack/lib/NamedChunksPlugin'>; +} declare module 'webpack/lib/NamedModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/NamedModulesPlugin'>; } @@ -1749,6 +1782,9 @@ declare module 'webpack/lib/UnsupportedFeatureWarning.js' { declare module 'webpack/lib/UseStrictPlugin.js' { declare module.exports: $Exports<'webpack/lib/UseStrictPlugin'>; } +declare module 'webpack/lib/util/identifier.js' { + declare module.exports: $Exports<'webpack/lib/util/identifier'>; +} declare module 'webpack/lib/validateSchema.js' { declare module.exports: $Exports<'webpack/lib/validateSchema'>; } @@ -1767,6 +1803,9 @@ declare module 'webpack/lib/webpack.js' { declare module 'webpack/lib/webpack.web.js' { declare module.exports: $Exports<'webpack/lib/webpack.web'>; } +declare module 'webpack/lib/WebpackError.js' { + declare module.exports: $Exports<'webpack/lib/WebpackError'>; +} declare module 'webpack/lib/WebpackOptionsApply.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsApply'>; } @@ -1791,6 +1830,9 @@ declare module 'webpack/lib/webworker/WebWorkerMainTemplatePlugin.js' { declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerTemplatePlugin'>; } +declare module 'webpack/schemas/ajv.absolutePath.js' { + declare module.exports: $Exports<'webpack/schemas/ajv.absolutePath'>; +} declare module 'webpack/web_modules/node-libs-browser.js' { declare module.exports: $Exports<'webpack/web_modules/node-libs-browser'>; } diff --git a/package.json b/package.json index 3e76edc..2116555 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "lint:style": "stylelint \"src/**/*.css\"", "lint:style:ci": "stylelint \"src/**/*.css\"", "check": "yarn run test && yarn run flow && yarn run lint && yarn run lint:style", + "flow": "flow", "flow:cover": "flow coverage --color", "flow:coverage": "flow-coverage-report -i 'src/**/*.js' -x 'src/**/*.test.js' -x 'src/generated/**/*' -t text", "test": "jest --config=jest.config.json", @@ -35,9 +36,9 @@ "devDependencies": { "babel-core": "^6.24.1", "babel-eslint": "^7.2.3", - "babel-jest": "^19.0.0", + "babel-jest": "^20.0.3", "babel-loader": "^7.0.0", - "babel-plugin-flow-react-proptypes": "^2.1.3", + "babel-plugin-flow-react-proptypes": "^3.2.0", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-flow-strip-types": "^6.22.0", "babel-polyfill": "^6.23.0", @@ -45,43 +46,43 @@ "babel-preset-react": "^6.24.1", "babel-preset-stage-1": "^6.24.1", "babel-runtime": "^6.23.0", - "caniuse-db": "^1.0.30000664", + "caniuse-db": "^1.0.30000665", "clean-webpack-plugin": "^0.1.16", - "css-loader": "^0.28.1", + "css-loader": "^0.28.4", "cssnano": "^3.9.1", "empty": "^0.10.1", "eslint": "^3.19.0", - "eslint-config-airbnb": "^14.1.0", - "eslint-config-prettier": "^1.7.0", + "eslint-config-airbnb": "^15.0.1", + "eslint-config-prettier": "^2.1.1", "eslint-import-resolver-webpack": "^0.8.1", "eslint-loader": "^1.7.1", - "eslint-plugin-flowtype": "^2.32.1", - "eslint-plugin-import": "^2.2.0", - "eslint-plugin-jsx-a11y": "^4.0.0", - "eslint-plugin-react": "^6.10.3", + "eslint-plugin-flowtype": "^2.34.0", + "eslint-plugin-import": "^2.3.0", + "eslint-plugin-jsx-a11y": "^5.0.3", + "eslint-plugin-react": "^7.0.1", "extract-text-webpack-plugin": "^2.1.0", "file-loader": "^0.11.1", - "flow-bin": "^0.45.0", + "flow-bin": "^0.47.0", "flow-coverage-report": "^0.3.0", "html-webpack-plugin": "^2.28.0", "http-server": "^0.10.0", "identity-obj-proxy": "^3.0.0", "istanbul-instrumenter-loader": "^2.0.0", - "jest": "^19.0.2", + "jest": "^20.0.4", "json-loader": "^0.5.4", - "postcss-cssnext": "^2.10.0", - "postcss-import": "^9.1.0", - "postcss-loader": "^1.3.3", + "postcss-cssnext": "^2.11.0", + "postcss-import": "^10.0.0", + "postcss-loader": "^2.0.5", "postcss-reporter": "^3.0.0", "react-addons-test-utils": "^15.5.1", "react-hot-loader": "3.0.0-beta.6", "react-test-renderer": "^15.5.4", "rucksack-css": "^0.9.1", - "style-loader": "^0.17.0", + "style-loader": "^0.18.1", "stylelint": "^7.10.1", - "uglify-js": "^2.8.22", + "uglify-js": "^3.0.15", "uglifyjs-webpack-plugin": "^0.4.3", - "webpack": "^2.4.1", + "webpack": "^2.6.1", "webpack-dev-server": "^2.4.5", "webpack-hot-middleware": "^2.18.0", "webpack-md5-hash": "^0.0.5", @@ -89,6 +90,7 @@ }, "dependencies": { "classnames": "^2.2.5", + "history": "^4.6.1", "immutable": "^3.8.1", "lodash": "^4.17.2", "react": "^15.5.4", @@ -96,11 +98,12 @@ "react-dom": "^15.5.4", "react-markdown": "^2.5.0", "react-motion": "^0.5.0", - "react-redux": "^5.0.4", - "react-router": "^3.0.2", - "react-router-redux": "^4.0.8", + "react-redux": "^5.0.5", + "react-router": "^4.1.1", + "react-router-dom": "^4.1.1", + "react-router-redux": "next", "redux": "^3.6.0", - "redux-saga": "^0.15.0", + "redux-saga": "^0.15.3", "superagent": "^3.5.2" } } diff --git a/src/app/components/App.js b/src/app/components/App.js index e6cf60c..a5e68d5 100644 --- a/src/app/components/App.js +++ b/src/app/components/App.js @@ -1,362 +1,57 @@ // @flow -import React, { Component } from 'react'; -import { connect } from 'react-redux'; -import { bindActionCreators } from 'redux'; -import sortBy from 'lodash/fp/sortBy'; -import snakeCase from 'lodash/fp/snakeCase'; +import React from 'react'; +import { ConnectedRouter } from 'react-router-redux'; +import { Route, Switch } from 'react-router-dom'; -import NavBar from 'components/NavBar'; -import SideBar from 'components/SideBar'; -import Content from 'components/Content'; -import { actions } from 'app/actions'; -import * as utils from 'utils'; +import Home from 'home'; +import OrganizationComponent from 'organization'; +import { Appln } from 'application'; +import Documentation from 'documentation'; -import type { - Application, - Organization, - Service, - Resource, -} from 'generated/version/ServiceType'; -import type { State } from 'app/reducers'; +import NavBar from 'components/NavBar/NavBar'; +import SideBar from 'components/SideBar/SideBar'; +import Content from 'components/Content'; import styles from 'app/components/app.css'; -import docs from '../../../documents.json'; - -type Item = { - name: string, - active?: boolean, - type?: string, - onClick?: (event: Event) => void, - items?: Item[], -}; type Props = {| - children: React$Element<*>, - service: Service, - organizations: Organization[], - organization: Organization, - applications: Application[], - params: Object, // FIXME - importedServices: Service[], + history: string, |}; -class App extends Component { - props: Props; - - // FIXME nullable? + types - static getCurrentItem(params: Object): ?string { - if (params.model) { - return params.model; - } else if (params.path) { - return `${params.resource}${params.method}${params.path}`; - } - return null; - } - - static createResourceItem( - params: Object, - resource: Resource, - currentItem: string - ): Item { - return { - name: resource.type, - items: resource.operations.map(operation => ({ - name: `${operation.method} ${operation.path}`, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: params.applicationKey, - resource: resource.type, - method: operation.method.toLowerCase(), - path: utils.cleanPath(operation.path), - }) - ), - active: currentItem === - `${resource.type}${operation.method.toLowerCase()}${utils.cleanPath(operation.path)}`, - type: 'resource', - method: operation.method, - path: operation.path, - })), - }; - } - - // FIXME types - static createModelItem( - params: Object, - model: Object, - currentItem: string, - type: string = 'model' - ): Item { - return { - name: `${model.name}`, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: params.applicationKey, - model: model.name, - }) - ), - active: currentItem === model.name, - type, - }; - } - - // FIXME types - static createSideBarItems( - params: Object, - service: Service, - importedServices: Service[], - organizations: Organization[], - organizationObj: Organization, - applications: Application[] - ): Item[] { - if (!params.organizationKey) { - const organizationsWithHref = organizations.map(organization => ({ - name: organization.name, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: organization.key, - }) - ), - })); - return [ - { - name: 'Organizations', - items: [ - { - name: '', - items: organizationsWithHref, - }, - ], - }, - ]; - } else if (params.organizationKey && !params.applicationKey) { - const applicationsWithHref = applications.map(application => ({ - name: application.name, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: application.key, - }) - ), - })); - const orgDocsList = docs.organizations[params.organizationKey]; - const docsByOrg = (orgDocsList && orgDocsList.documents) || []; - const docsWithHref = docsByOrg.map(doc => ({ - name: doc.name, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - documentation: snakeCase(doc.name), - }) - ), - })); - const applicationSidebarGroup = [ - { - name: 'Applications', - items: [ - { - name: '', - items: applicationsWithHref, - }, - ], - }, - ]; - return applicationSidebarGroup.concat( - docsWithHref.length - ? [ - { - name: 'Documentation', - items: [ - { - name: '', - items: docsWithHref, - }, - ], - }, - ] - : [] - ); - } else if ( - params.organizationKey && - params.applicationKey && - service && - service.apidoc - ) { - const currentItem = App.getCurrentItem(params) || ''; // FIXME shouldn't be empty - const allResources = service.resources; - // FIXME - add back imports - /* const allModels = flatten(service.models.concat(imports.map(importValue => importValue.models)));*/ - const allModels = service.models; - // FIXME - add back enums - /* const allEnums = flatten(service.enums.concat(imports.map(importValue => importValue.enums)));*/ - const allEnums = service.enums || []; - - return [ - { - name: 'Resources', - items: allResources.map(resource => - App.createResourceItem(params, resource, currentItem) - ), - }, - { - name: 'Models', - items: [ - { - name: '', - items: allModels - .map(model => App.createModelItem(params, model, currentItem)) - .concat( - allEnums.map(enumValue => - App.createModelItem(params, enumValue, currentItem, 'enum') - ) - ), - }, - ], - }, - ]; - } - return [{ name: 'Unknown', items: [{ name: 'Unknown', items: [] }] }]; - } - - // FIXME types - static createNavBarItems(params: Object, service: Service): Item[] { - // FIXME test - if (!service || !service.apidoc) { - return []; - } - // FIXME test - let operationPath = ''; - if (params.resource) { - const op = utils.getOperation( - params.resource, - params.method, - params.path, - service - ); - operationPath = op.path; - } - - return [].concat( - params.organizationKey - ? { - name: params.organizationKey, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - }) - ), - } - : [], - params.applicationKey - ? { - name: params.applicationKey, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: params.applicationKey, - }) - ), - } - : [], - params.resource - ? { - name: `${params.method.toUpperCase()} ${operationPath}`, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: params.applicationKey, - resource: params.resource, - method: params.method, - path: params.path, - }) - ), - } - : [], - params.model - ? { - name: `${params.model}`, - onClick: utils.onClickHref( - utils.buildNavHref({ - organization: params.organizationKey, - application: params.applicationKey, - model: params.model, - }) - ), - } - : [] - ); - } - - render() { - const { - params, - service, - importedServices, - organizations, - organization, - applications, - children, - } = this.props; - - const title = process.env.TITLE ? process.env.TITLE : 'apidoc'; - let removeGithubLink = true; - if (typeof process.env.TITLE === 'undefined' || !process.env.TITLE) { - removeGithubLink = false; - } - - const sideBarItems = App.createSideBarItems( - params, - service, - importedServices, - organizations, - organization, - applications - ).map(sideBarItem => { - if (sideBarItem.items) { - sideBarItem.items.map(items => - Object.assign(items, { - items: sortBy(item => item.name, items.items), - }) - ); - } - return Object.assign(sideBarItem, { - items: sortBy(item => item.name, sideBarItem.items), - }); - }); - - const navBarItems = App.createNavBarItems(params, service); - - return ( -