From a6a78fc7dc29ed133553cde971c606f10d41323c Mon Sep 17 00:00:00 2001 From: Alex Reardon Date: Mon, 30 Apr 2018 14:58:08 +1000 Subject: [PATCH] bumping redux and others (#477) --- .flowconfig | 2 +- flow-typed/npm/@atlaskit/css-reset_vx.x.x.js | 4 +- flow-typed/npm/@storybook/react_vx.x.x.js | 529 ----- flow-typed/npm/babel-cli_vx.x.x.js | 4 +- flow-typed/npm/babel-core_vx.x.x.js | 234 +++ flow-typed/npm/babel-eslint_vx.x.x.js | 4 +- ...af-schd_vx.x.x.js => babel-jest_vx.x.x.js} | 14 +- .../babel-plugin-styled-components_vx.x.x.js | 158 ++ ...lugin-transform-class-properties_vx.x.x.js | 4 +- ...ransform-es2015-modules-commonjs_vx.x.x.js | 4 +- ...ugin-transform-export-extensions_vx.x.x.js | 4 +- ...gin-transform-object-rest-spread_vx.x.x.js | 4 +- .../babel-plugin-transform-runtime_vx.x.x.js | 4 +- flow-typed/npm/babel-preset-env_vx.x.x.js | 4 +- flow-typed/npm/babel-preset-es2015_vx.x.x.js | 32 - flow-typed/npm/babel-preset-flow_vx.x.x.js | 4 +- flow-typed/npm/babel-preset-react_vx.x.x.js | 4 +- flow-typed/npm/babel-runtime_vx.x.x.js | 4 +- flow-typed/npm/cross-env_vx.x.x.js | 4 +- .../npm/enzyme-adapter-react-15_vx.x.x.js | 53 - .../npm/enzyme-adapter-react-16_vx.x.x.js | 4 +- flow-typed/npm/eslint-config-airbnb_vx.x.x.js | 4 +- .../npm/eslint-plugin-flowtype_vx.x.x.js | 4 +- flow-typed/npm/eslint-plugin-import_vx.x.x.js | 11 +- flow-typed/npm/eslint-plugin-jest_vx.x.x.js | 4 +- .../npm/eslint-plugin-jsx-a11y_vx.x.x.js | 4 +- flow-typed/npm/eslint-plugin-react_vx.x.x.js | 4 +- flow-typed/npm/eslint_vx.x.x.js | 4 +- flow-typed/npm/flow-copy-source_vx.x.x.js | 53 - flow-typed/npm/invariant_v2.x.x.js | 6 - flow-typed/npm/jest_v22.x.x.js | 75 +- flow-typed/npm/puppeteer_v1.2.x.js | 1465 ++++++++++++++ flow-typed/npm/react-redux_v5.x.x.js | 107 +- flow-typed/npm/react-test-renderer_vx.x.x.js | 1781 ----------------- flow-typed/npm/redux-thunk_vx.x.x.js | 4 +- flow-typed/npm/redux_v3.x.x.js | 59 - flow-typed/npm/redux_vx.x.x.js | 116 ++ flow-typed/npm/reselect_v3.x.x.js | 7 +- flow-typed/npm/rollup-plugin-babel_vx.x.x.js | 4 +- .../npm/rollup-plugin-commonjs_vx.x.x.js | 4 +- .../npm/rollup-plugin-node-resolve_vx.x.x.js | 4 +- .../npm/rollup-plugin-replace_vx.x.x.js | 4 +- .../npm/rollup-plugin-size-snapshot_vx.x.x.js | 130 ++ flow-typed/npm/rollup-plugin-strip_vx.x.x.js | 4 +- flow-typed/npm/rollup-plugin-uglify_vx.x.x.js | 4 +- flow-typed/npm/rollup_vx.x.x.js | 4 +- ..._v2.x.x.js => styled-components_v3.x.x.js} | 72 +- flow-typed/npm/styled-components_vx.x.x.js | 1257 ------------ package.json | 17 +- website/src/components/media.js | 3 +- yarn.lock | 182 +- 51 files changed, 2492 insertions(+), 3983 deletions(-) delete mode 100644 flow-typed/npm/@storybook/react_vx.x.x.js create mode 100644 flow-typed/npm/babel-core_vx.x.x.js rename flow-typed/npm/{raf-schd_vx.x.x.js => babel-jest_vx.x.x.js} (62%) create mode 100644 flow-typed/npm/babel-plugin-styled-components_vx.x.x.js delete mode 100644 flow-typed/npm/babel-preset-es2015_vx.x.x.js delete mode 100644 flow-typed/npm/enzyme-adapter-react-15_vx.x.x.js delete mode 100644 flow-typed/npm/flow-copy-source_vx.x.x.js delete mode 100644 flow-typed/npm/invariant_v2.x.x.js create mode 100644 flow-typed/npm/puppeteer_v1.2.x.js delete mode 100644 flow-typed/npm/react-test-renderer_vx.x.x.js delete mode 100644 flow-typed/npm/redux_v3.x.x.js create mode 100644 flow-typed/npm/redux_vx.x.x.js create mode 100644 flow-typed/npm/rollup-plugin-size-snapshot_vx.x.x.js rename flow-typed/npm/{styled-components_v2.x.x.js => styled-components_v3.x.x.js} (99%) delete mode 100644 flow-typed/npm/styled-components_vx.x.x.js diff --git a/.flowconfig b/.flowconfig index 03cfb3a8b6..d1d2a842f8 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,5 +1,5 @@ [ignore] -.*/node_modules/styled-components/.* +.*/website/node_modules/@atlaskit/theme/dist/cjs/components/AtlaskitThemeProvider.js.flow .*/website/public/.* .*/website/.cache/.* diff --git a/flow-typed/npm/@atlaskit/css-reset_vx.x.x.js b/flow-typed/npm/@atlaskit/css-reset_vx.x.x.js index 70076379be..222da8c9e0 100644 --- a/flow-typed/npm/@atlaskit/css-reset_vx.x.x.js +++ b/flow-typed/npm/@atlaskit/css-reset_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f7743c067ed24cbefc7e7b3286211ab5 -// flow-typed version: <>/@atlaskit/css-reset_v^1.2.0/flow_v0.68.0 +// flow-typed signature: 5beded99ebd82bcd258d0c505e80a05a +// flow-typed version: <>/@atlaskit/css-reset_v^2.0.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/@storybook/react_vx.x.x.js b/flow-typed/npm/@storybook/react_vx.x.x.js deleted file mode 100644 index b26a625f3d..0000000000 --- a/flow-typed/npm/@storybook/react_vx.x.x.js +++ /dev/null @@ -1,529 +0,0 @@ -// flow-typed signature: e1a3dbf32dba20faf93e94de9829f082 -// flow-typed version: <>/@storybook/react_v^3.2.16/flow_v0.68.0 - -/** - * This is an autogenerated libdef stub for: - * - * '@storybook/react' - * - * 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 '@storybook/react' { - 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 '@storybook/react/addons' { - declare module.exports: any; -} - -declare module '@storybook/react/bin/build' { - declare module.exports: any; -} - -declare module '@storybook/react/bin/index' { - declare module.exports: any; -} - -declare module '@storybook/react/demo' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/index' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/manager/index' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/manager/preview' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/manager/provider' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/actions' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/client_api' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/config_api' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/element_check' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/error_display' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/index' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/init' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/reducer' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/render' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/client/preview/story_store' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/demo/Button' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/demo/Welcome' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/addons' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/babel_config' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/build' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/babel' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/babel.prod' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/defaults/webpack.config' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/globals' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/polyfills' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/utils' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/WatchMissingNodeModulesPlugin' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/webpack.config' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/config/webpack.config.prod' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/index' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/middleware' { - declare module.exports: any; -} - -declare module '@storybook/react/dist/server/utils' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/index' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/manager/index' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/manager/preview' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/manager/provider' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/actions' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/client_api' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/client_api.test' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/config_api' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/element_check' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/element_check.test' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/error_display' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/index' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/init' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/reducer' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/render' { - declare module.exports: any; -} - -declare module '@storybook/react/src/client/preview/story_store' { - declare module.exports: any; -} - -declare module '@storybook/react/src/demo/Button' { - declare module.exports: any; -} - -declare module '@storybook/react/src/demo/Welcome' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/addons' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/babel_config' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/babel_config.test' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/build' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/babel' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/babel.prod' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/defaults/webpack.config' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/globals' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/polyfills' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/utils' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/WatchMissingNodeModulesPlugin' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/webpack.config' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/config/webpack.config.prod' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/index' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/middleware' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/utils' { - declare module.exports: any; -} - -declare module '@storybook/react/src/server/utils.test' { - declare module.exports: any; -} - -// Filename aliases -declare module '@storybook/react/addons.js' { - declare module.exports: $Exports<'@storybook/react/addons'>; -} -declare module '@storybook/react/bin/build.js' { - declare module.exports: $Exports<'@storybook/react/bin/build'>; -} -declare module '@storybook/react/bin/index.js' { - declare module.exports: $Exports<'@storybook/react/bin/index'>; -} -declare module '@storybook/react/demo.js' { - declare module.exports: $Exports<'@storybook/react/demo'>; -} -declare module '@storybook/react/dist/client/index.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/index'>; -} -declare module '@storybook/react/dist/client/manager/index.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/manager/index'>; -} -declare module '@storybook/react/dist/client/manager/preview.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/manager/preview'>; -} -declare module '@storybook/react/dist/client/manager/provider.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/manager/provider'>; -} -declare module '@storybook/react/dist/client/preview/actions.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/actions'>; -} -declare module '@storybook/react/dist/client/preview/client_api.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/client_api'>; -} -declare module '@storybook/react/dist/client/preview/config_api.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/config_api'>; -} -declare module '@storybook/react/dist/client/preview/element_check.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/element_check'>; -} -declare module '@storybook/react/dist/client/preview/error_display.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/error_display'>; -} -declare module '@storybook/react/dist/client/preview/index.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/index'>; -} -declare module '@storybook/react/dist/client/preview/init.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/init'>; -} -declare module '@storybook/react/dist/client/preview/reducer.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/reducer'>; -} -declare module '@storybook/react/dist/client/preview/render.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/render'>; -} -declare module '@storybook/react/dist/client/preview/story_store.js' { - declare module.exports: $Exports<'@storybook/react/dist/client/preview/story_store'>; -} -declare module '@storybook/react/dist/demo/Button.js' { - declare module.exports: $Exports<'@storybook/react/dist/demo/Button'>; -} -declare module '@storybook/react/dist/demo/Welcome.js' { - declare module.exports: $Exports<'@storybook/react/dist/demo/Welcome'>; -} -declare module '@storybook/react/dist/server/addons.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/addons'>; -} -declare module '@storybook/react/dist/server/babel_config.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/babel_config'>; -} -declare module '@storybook/react/dist/server/build.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/build'>; -} -declare module '@storybook/react/dist/server/config.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config'>; -} -declare module '@storybook/react/dist/server/config/babel.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/babel'>; -} -declare module '@storybook/react/dist/server/config/babel.prod.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/babel.prod'>; -} -declare module '@storybook/react/dist/server/config/defaults/webpack.config.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/defaults/webpack.config'>; -} -declare module '@storybook/react/dist/server/config/globals.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/globals'>; -} -declare module '@storybook/react/dist/server/config/polyfills.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/polyfills'>; -} -declare module '@storybook/react/dist/server/config/utils.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/utils'>; -} -declare module '@storybook/react/dist/server/config/WatchMissingNodeModulesPlugin.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/WatchMissingNodeModulesPlugin'>; -} -declare module '@storybook/react/dist/server/config/webpack.config.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/webpack.config'>; -} -declare module '@storybook/react/dist/server/config/webpack.config.prod.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/config/webpack.config.prod'>; -} -declare module '@storybook/react/dist/server/index.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/index'>; -} -declare module '@storybook/react/dist/server/middleware.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/middleware'>; -} -declare module '@storybook/react/dist/server/utils.js' { - declare module.exports: $Exports<'@storybook/react/dist/server/utils'>; -} -declare module '@storybook/react/src/client/index.js' { - declare module.exports: $Exports<'@storybook/react/src/client/index'>; -} -declare module '@storybook/react/src/client/manager/index.js' { - declare module.exports: $Exports<'@storybook/react/src/client/manager/index'>; -} -declare module '@storybook/react/src/client/manager/preview.js' { - declare module.exports: $Exports<'@storybook/react/src/client/manager/preview'>; -} -declare module '@storybook/react/src/client/manager/provider.js' { - declare module.exports: $Exports<'@storybook/react/src/client/manager/provider'>; -} -declare module '@storybook/react/src/client/preview/actions.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/actions'>; -} -declare module '@storybook/react/src/client/preview/client_api.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/client_api'>; -} -declare module '@storybook/react/src/client/preview/client_api.test.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/client_api.test'>; -} -declare module '@storybook/react/src/client/preview/config_api.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/config_api'>; -} -declare module '@storybook/react/src/client/preview/element_check.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/element_check'>; -} -declare module '@storybook/react/src/client/preview/element_check.test.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/element_check.test'>; -} -declare module '@storybook/react/src/client/preview/error_display.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/error_display'>; -} -declare module '@storybook/react/src/client/preview/index.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/index'>; -} -declare module '@storybook/react/src/client/preview/init.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/init'>; -} -declare module '@storybook/react/src/client/preview/reducer.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/reducer'>; -} -declare module '@storybook/react/src/client/preview/render.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/render'>; -} -declare module '@storybook/react/src/client/preview/story_store.js' { - declare module.exports: $Exports<'@storybook/react/src/client/preview/story_store'>; -} -declare module '@storybook/react/src/demo/Button.js' { - declare module.exports: $Exports<'@storybook/react/src/demo/Button'>; -} -declare module '@storybook/react/src/demo/Welcome.js' { - declare module.exports: $Exports<'@storybook/react/src/demo/Welcome'>; -} -declare module '@storybook/react/src/server/addons.js' { - declare module.exports: $Exports<'@storybook/react/src/server/addons'>; -} -declare module '@storybook/react/src/server/babel_config.js' { - declare module.exports: $Exports<'@storybook/react/src/server/babel_config'>; -} -declare module '@storybook/react/src/server/babel_config.test.js' { - declare module.exports: $Exports<'@storybook/react/src/server/babel_config.test'>; -} -declare module '@storybook/react/src/server/build.js' { - declare module.exports: $Exports<'@storybook/react/src/server/build'>; -} -declare module '@storybook/react/src/server/config.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config'>; -} -declare module '@storybook/react/src/server/config/babel.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/babel'>; -} -declare module '@storybook/react/src/server/config/babel.prod.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/babel.prod'>; -} -declare module '@storybook/react/src/server/config/defaults/webpack.config.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/defaults/webpack.config'>; -} -declare module '@storybook/react/src/server/config/globals.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/globals'>; -} -declare module '@storybook/react/src/server/config/polyfills.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/polyfills'>; -} -declare module '@storybook/react/src/server/config/utils.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/utils'>; -} -declare module '@storybook/react/src/server/config/WatchMissingNodeModulesPlugin.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/WatchMissingNodeModulesPlugin'>; -} -declare module '@storybook/react/src/server/config/webpack.config.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/webpack.config'>; -} -declare module '@storybook/react/src/server/config/webpack.config.prod.js' { - declare module.exports: $Exports<'@storybook/react/src/server/config/webpack.config.prod'>; -} -declare module '@storybook/react/src/server/index.js' { - declare module.exports: $Exports<'@storybook/react/src/server/index'>; -} -declare module '@storybook/react/src/server/middleware.js' { - declare module.exports: $Exports<'@storybook/react/src/server/middleware'>; -} -declare module '@storybook/react/src/server/utils.js' { - declare module.exports: $Exports<'@storybook/react/src/server/utils'>; -} -declare module '@storybook/react/src/server/utils.test.js' { - declare module.exports: $Exports<'@storybook/react/src/server/utils.test'>; -} diff --git a/flow-typed/npm/babel-cli_vx.x.x.js b/flow-typed/npm/babel-cli_vx.x.x.js index f09e48ec39..0a903b7f0c 100644 --- a/flow-typed/npm/babel-cli_vx.x.x.js +++ b/flow-typed/npm/babel-cli_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: f378965f8d54d704ec94462b6a297598 -// flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.68.0 +// flow-typed signature: 24d4375881b6266f1d2c7d8141bd55a5 +// flow-typed version: <>/babel-cli_v^6.26.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-core_vx.x.x.js b/flow-typed/npm/babel-core_vx.x.x.js new file mode 100644 index 0000000000..f146f1ee0d --- /dev/null +++ b/flow-typed/npm/babel-core_vx.x.x.js @@ -0,0 +1,234 @@ +// flow-typed signature: 0c32ff0e4327ff570163bd28f8a05e1b +// flow-typed version: <>/babel-core_v^6.26.3/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-core' + * + * 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-core' { + 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-core/lib/api/browser' { + declare module.exports: any; +} + +declare module 'babel-core/lib/api/node' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/get-possible-plugin-names' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/get-possible-preset-names' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/merge' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/normalize-ast' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/resolve-from-possible-names' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/resolve-plugin' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/resolve-preset' { + declare module.exports: any; +} + +declare module 'babel-core/lib/helpers/resolve' { + declare module.exports: any; +} + +declare module 'babel-core/lib/store' { + declare module.exports: any; +} + +declare module 'babel-core/lib/tools/build-external-helpers' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/index' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/logger' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/merge-map' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/metadata' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/build-config-chain' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/config' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/index' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/option-manager' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/parsers' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/file/options/removed' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/internal-plugins/block-hoist' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/pipeline' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/plugin-pass' { + declare module.exports: any; +} + +declare module 'babel-core/lib/transformation/plugin' { + declare module.exports: any; +} + +declare module 'babel-core/lib/util' { + declare module.exports: any; +} + +declare module 'babel-core/register' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-core/index' { + declare module.exports: $Exports<'babel-core'>; +} +declare module 'babel-core/index.js' { + declare module.exports: $Exports<'babel-core'>; +} +declare module 'babel-core/lib/api/browser.js' { + declare module.exports: $Exports<'babel-core/lib/api/browser'>; +} +declare module 'babel-core/lib/api/node.js' { + declare module.exports: $Exports<'babel-core/lib/api/node'>; +} +declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>; +} +declare module 'babel-core/lib/helpers/get-possible-preset-names.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>; +} +declare module 'babel-core/lib/helpers/merge.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/merge'>; +} +declare module 'babel-core/lib/helpers/normalize-ast.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>; +} +declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>; +} +declare module 'babel-core/lib/helpers/resolve-plugin.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>; +} +declare module 'babel-core/lib/helpers/resolve-preset.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>; +} +declare module 'babel-core/lib/helpers/resolve.js' { + declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>; +} +declare module 'babel-core/lib/store.js' { + declare module.exports: $Exports<'babel-core/lib/store'>; +} +declare module 'babel-core/lib/tools/build-external-helpers.js' { + declare module.exports: $Exports<'babel-core/lib/tools/build-external-helpers'>; +} +declare module 'babel-core/lib/transformation/file/index.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/index'>; +} +declare module 'babel-core/lib/transformation/file/logger.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>; +} +declare module 'babel-core/lib/transformation/file/merge-map.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/merge-map'>; +} +declare module 'babel-core/lib/transformation/file/metadata.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>; +} +declare module 'babel-core/lib/transformation/file/options/build-config-chain.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/build-config-chain'>; +} +declare module 'babel-core/lib/transformation/file/options/config.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/config'>; +} +declare module 'babel-core/lib/transformation/file/options/index.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/index'>; +} +declare module 'babel-core/lib/transformation/file/options/option-manager.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/option-manager'>; +} +declare module 'babel-core/lib/transformation/file/options/parsers.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/parsers'>; +} +declare module 'babel-core/lib/transformation/file/options/removed.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/file/options/removed'>; +} +declare module 'babel-core/lib/transformation/internal-plugins/block-hoist.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/block-hoist'>; +} +declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/shadow-functions'>; +} +declare module 'babel-core/lib/transformation/pipeline.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/pipeline'>; +} +declare module 'babel-core/lib/transformation/plugin-pass.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/plugin-pass'>; +} +declare module 'babel-core/lib/transformation/plugin.js' { + declare module.exports: $Exports<'babel-core/lib/transformation/plugin'>; +} +declare module 'babel-core/lib/util.js' { + declare module.exports: $Exports<'babel-core/lib/util'>; +} +declare module 'babel-core/register.js' { + declare module.exports: $Exports<'babel-core/register'>; +} diff --git a/flow-typed/npm/babel-eslint_vx.x.x.js b/flow-typed/npm/babel-eslint_vx.x.x.js index 195d69644e..cce8bb7347 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: a3d1544ce880d0d829224209752ea0cd -// flow-typed version: <>/babel-eslint_v^8.2.1/flow_v0.68.0 +// flow-typed signature: 6ae1b1e46703fcca4c72a23c8fe26ce1 +// flow-typed version: <>/babel-eslint_v^8.2.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/raf-schd_vx.x.x.js b/flow-typed/npm/babel-jest_vx.x.x.js similarity index 62% rename from flow-typed/npm/raf-schd_vx.x.x.js rename to flow-typed/npm/babel-jest_vx.x.x.js index 9b98fdbf64..e228084d92 100644 --- a/flow-typed/npm/raf-schd_vx.x.x.js +++ b/flow-typed/npm/babel-jest_vx.x.x.js @@ -1,10 +1,10 @@ -// flow-typed signature: bd33b489fa3604325cfab1304aa97fd7 -// flow-typed version: <>/raf-schd_v2.0.2/flow_v0.59.0 +// flow-typed signature: d904841f02e620c4e14cf02cfde87f3e +// flow-typed version: <>/babel-jest_v^22.4.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: * - * 'raf-schd' + * 'babel-jest' * * Fill this stub out by replacing all the `any` types. * @@ -13,7 +13,7 @@ * https://github.com/flowtype/flow-typed */ -declare module 'raf-schd' { +declare module 'babel-jest' { declare module.exports: any; } @@ -22,11 +22,11 @@ declare module 'raf-schd' { * require those files directly. Feel free to delete any files that aren't * needed. */ -declare module 'raf-schd/lib/index' { +declare module 'babel-jest/build/index' { declare module.exports: any; } // Filename aliases -declare module 'raf-schd/lib/index.js' { - declare module.exports: $Exports<'raf-schd/lib/index'>; +declare module 'babel-jest/build/index.js' { + declare module.exports: $Exports<'babel-jest/build/index'>; } diff --git a/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js b/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js new file mode 100644 index 0000000000..dc3dd5d4e6 --- /dev/null +++ b/flow-typed/npm/babel-plugin-styled-components_vx.x.x.js @@ -0,0 +1,158 @@ +// flow-typed signature: 6f65cc94919579ebe3c1c7afa599b2d8 +// flow-typed version: <>/babel-plugin-styled-components_v^1.5.1/flow_v0.71.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'babel-plugin-styled-components' + * + * 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-styled-components' { + 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-styled-components/lib/css/placeholderUtils' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocess' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessInjectGlobal' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessKeyframes' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/css/preprocessUtils' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/minify/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/detectors' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/getName' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/hash' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/utils/options' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/minify' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/noParserImport' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile' { + declare module.exports: any; +} + +declare module 'babel-plugin-styled-components/lib/visitors/uglifyPure' { + declare module.exports: any; +} + +// Filename aliases +declare module 'babel-plugin-styled-components/lib/css/placeholderUtils.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/placeholderUtils'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocess.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocess'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessInjectGlobal.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessInjectGlobal'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessKeyframes.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessKeyframes'>; +} +declare module 'babel-plugin-styled-components/lib/css/preprocessUtils.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/preprocessUtils'>; +} +declare module 'babel-plugin-styled-components/lib/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/index'>; +} +declare module 'babel-plugin-styled-components/lib/minify/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/minify/index'>; +} +declare module 'babel-plugin-styled-components/lib/utils/detectors.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/detectors'>; +} +declare module 'babel-plugin-styled-components/lib/utils/getName.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/getName'>; +} +declare module 'babel-plugin-styled-components/lib/utils/hash.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/hash'>; +} +declare module 'babel-plugin-styled-components/lib/utils/options.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/options'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/assignStyledRequired'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/displayNameAndId'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/minify.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/minify'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/noParserImport.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/noParserImport'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/index'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/preprocess'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile'>; +} +declare module 'babel-plugin-styled-components/lib/visitors/uglifyPure.js' { + declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/uglifyPure'>; +} diff --git a/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js index d277a93ca5..9167c3dd21 100644 --- a/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-class-properties_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9ff098d5f5575bc71487081f66ba0289 -// flow-typed version: <>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.68.0 +// flow-typed signature: b26839abd705c305219fee62938d492b +// flow-typed version: <>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js index a524a021ec..ee5e7ef1c0 100644 --- a/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-es2015-modules-commonjs_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a3471403c47fb5e17cdd9ac591aefd6d -// flow-typed version: <>/babel-plugin-transform-es2015-modules-commonjs_v^6.26.0/flow_v0.68.0 +// flow-typed signature: 2ee28be130228b02d003933e13e2aebe +// flow-typed version: <>/babel-plugin-transform-es2015-modules-commonjs_v^6.26.2/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js index c192b63b88..8bf5b8d99a 100644 --- a/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-export-extensions_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 031c0cc3657a8ede06bbac658edfeedf -// flow-typed version: <>/babel-plugin-transform-export-extensions_v^6.22.0/flow_v0.68.0 +// flow-typed signature: 7ba19c8f2010630546283250ce7455a1 +// flow-typed version: <>/babel-plugin-transform-export-extensions_v^6.22.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js index 8ba909cc6f..d0e3e5f7b3 100644 --- a/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: a87bd5d283c6b90f2b0550720106a228 -// flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.68.0 +// flow-typed signature: 8b21f413cac3c74250826db5838d5370 +// flow-typed version: <>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js index 1f47d53f2c..649f3a047f 100644 --- a/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-transform-runtime_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: b666b687bc2b3d8f0a00279ae8cc7224 -// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.68.0 +// flow-typed signature: c5f5534a9d127ed5a825d93b2fd5639f +// flow-typed version: <>/babel-plugin-transform-runtime_v^6.23.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-env_vx.x.x.js b/flow-typed/npm/babel-preset-env_vx.x.x.js index b907887ae5..3d7ac93eda 100644 --- a/flow-typed/npm/babel-preset-env_vx.x.x.js +++ b/flow-typed/npm/babel-preset-env_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: c5087c2ee461cb9e9a49b87fff7b36b1 -// flow-typed version: <>/babel-preset-env_v^1.6.1/flow_v0.68.0 +// flow-typed signature: aa711294bc392fcb7ff1d66eeb7156f2 +// flow-typed version: <>/babel-preset-env_v^1.6.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-es2015_vx.x.x.js b/flow-typed/npm/babel-preset-es2015_vx.x.x.js deleted file mode 100644 index eb990744dc..0000000000 --- a/flow-typed/npm/babel-preset-es2015_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: b6812d4acf234a42cbebae0b02f950cc -// flow-typed version: <>/babel-preset-es2015_v6.24.1/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-preset-es2015' - * - * 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-preset-es2015' { - 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-preset-es2015/lib/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'babel-preset-es2015/lib/index.js' { - declare module.exports: $Exports<'babel-preset-es2015/lib/index'>; -} diff --git a/flow-typed/npm/babel-preset-flow_vx.x.x.js b/flow-typed/npm/babel-preset-flow_vx.x.x.js index 2e890612d8..f504d9fc8f 100644 --- a/flow-typed/npm/babel-preset-flow_vx.x.x.js +++ b/flow-typed/npm/babel-preset-flow_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 51675ed83c30801e379a24c02e22490d -// flow-typed version: <>/babel-preset-flow_v^6.23.0/flow_v0.68.0 +// flow-typed signature: baf54b475d56f3ff14353ac2235248d3 +// flow-typed version: <>/babel-preset-flow_v^6.23.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-preset-react_vx.x.x.js b/flow-typed/npm/babel-preset-react_vx.x.x.js index 2212a94886..afd7d76c99 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: 25725911f542289385276583596739d1 -// flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.68.0 +// flow-typed signature: f0e3d73ea5f119ca92ff35e2c83cd0ed +// flow-typed version: <>/babel-preset-react_v^6.24.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js index d94bce7196..18d0146187 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: 04bb0a26417f872bf56ab01c17a9b3ba -// flow-typed version: <>/babel-runtime_v^6.26.0/flow_v0.68.0 +// flow-typed signature: 81eaa430f91ed4046a9f7f25857f9ca7 +// flow-typed version: <>/babel-runtime_v^6.26.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/cross-env_vx.x.x.js b/flow-typed/npm/cross-env_vx.x.x.js index 7a0f792c00..ca35a4aaca 100644 --- a/flow-typed/npm/cross-env_vx.x.x.js +++ b/flow-typed/npm/cross-env_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 76a221f652150632658def1f5c091d8c -// flow-typed version: <>/cross-env_v^5.1.3/flow_v0.68.0 +// flow-typed signature: a4d7a3688a7176328c7931b5fa2076bf +// flow-typed version: <>/cross-env_v^5.1.4/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/enzyme-adapter-react-15_vx.x.x.js b/flow-typed/npm/enzyme-adapter-react-15_vx.x.x.js deleted file mode 100644 index 484aa42b4e..0000000000 --- a/flow-typed/npm/enzyme-adapter-react-15_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: ac4aa2e2ad0fd9d822f1f64cec950e7e -// flow-typed version: <>/enzyme-adapter-react-15_v^1.0.5/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'enzyme-adapter-react-15' - * - * 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 'enzyme-adapter-react-15' { - 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 'enzyme-adapter-react-15/build/index' { - declare module.exports: any; -} - -declare module 'enzyme-adapter-react-15/build/ReactFifteenAdapter' { - declare module.exports: any; -} - -declare module 'enzyme-adapter-react-15/src/index' { - declare module.exports: any; -} - -declare module 'enzyme-adapter-react-15/src/ReactFifteenAdapter' { - declare module.exports: any; -} - -// Filename aliases -declare module 'enzyme-adapter-react-15/build/index.js' { - declare module.exports: $Exports<'enzyme-adapter-react-15/build/index'>; -} -declare module 'enzyme-adapter-react-15/build/ReactFifteenAdapter.js' { - declare module.exports: $Exports<'enzyme-adapter-react-15/build/ReactFifteenAdapter'>; -} -declare module 'enzyme-adapter-react-15/src/index.js' { - declare module.exports: $Exports<'enzyme-adapter-react-15/src/index'>; -} -declare module 'enzyme-adapter-react-15/src/ReactFifteenAdapter.js' { - declare module.exports: $Exports<'enzyme-adapter-react-15/src/ReactFifteenAdapter'>; -} diff --git a/flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js b/flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js index 286a291ef1..01af2d0576 100644 --- a/flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js +++ b/flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: d28eeb7e9183514ef88bf14f0a09eb86 -// flow-typed version: <>/enzyme-adapter-react-16_v^1.1.1/flow_v0.68.0 +// flow-typed signature: 6ab8caf8424250b85e6eea8397450146 +// flow-typed version: <>/enzyme-adapter-react-16_v^1.1.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-config-airbnb_vx.x.x.js b/flow-typed/npm/eslint-config-airbnb_vx.x.x.js index 019e1762a0..5e8519e2e1 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: 72ba8dfd359cea3b8c1efd96827fc118 -// flow-typed version: <>/eslint-config-airbnb_v^16.1.0/flow_v0.68.0 +// flow-typed signature: d088014a0416e16395334bf689ae1d1a +// flow-typed version: <>/eslint-config-airbnb_v^16.1.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js index b1858a61f3..4fc244e888 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: 97e9b5eca90ac9f33d48a14edcfba1b5 -// flow-typed version: <>/eslint-plugin-flowtype_v^2.41.0/flow_v0.68.0 +// flow-typed signature: 581a35898f76430e01fabba1050f674b +// flow-typed version: <>/eslint-plugin-flowtype_v^2.46.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-import_vx.x.x.js b/flow-typed/npm/eslint-plugin-import_vx.x.x.js index e88deb1ff1..8006242c43 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: 9ae35733d7ccd3dd4f4ae010499e7aa9 -// flow-typed version: <>/eslint-plugin-import_v^2.8.0/flow_v0.68.0 +// flow-typed signature: 2bb5efb5fa543f8fcbcb7fce867f9be6 +// flow-typed version: <>/eslint-plugin-import_v^2.11.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: @@ -134,6 +134,10 @@ declare module 'eslint-plugin-import/lib/rules/no-commonjs' { declare module.exports: any; } +declare module 'eslint-plugin-import/lib/rules/no-cycle' { + declare module.exports: any; +} + declare module 'eslint-plugin-import/lib/rules/no-default-export' { declare module.exports: any; } @@ -307,6 +311,9 @@ declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export.js' { declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>; } +declare module 'eslint-plugin-import/lib/rules/no-cycle.js' { + declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-cycle'>; +} declare module 'eslint-plugin-import/lib/rules/no-default-export.js' { declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-default-export'>; } diff --git a/flow-typed/npm/eslint-plugin-jest_vx.x.x.js b/flow-typed/npm/eslint-plugin-jest_vx.x.x.js index 89acba6a27..37d02ad70c 100644 --- a/flow-typed/npm/eslint-plugin-jest_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-jest_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 9fe756f352d699ac7acf77bbcec31bb8 -// flow-typed version: <>/eslint-plugin-jest_v^21.6.1/flow_v0.68.0 +// flow-typed signature: 10459b9817dd117769328a190d8c5faa +// flow-typed version: <>/eslint-plugin-jest_v^21.15.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js b/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js index f955f42334..63ce81faaf 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: d23585c0713e9a1f229b346337433ac5 -// flow-typed version: <>/eslint-plugin-jsx-a11y_v^6.0.3/flow_v0.68.0 +// flow-typed signature: d6a5fa7955b4981b856835975a1f157e +// flow-typed version: <>/eslint-plugin-jsx-a11y_v^6.0.3/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-react_vx.x.x.js b/flow-typed/npm/eslint-plugin-react_vx.x.x.js index 4371b392e1..b7550617f6 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: 84ba0b63aea4b71b1ca279c5ad6e3182 -// flow-typed version: <>/eslint-plugin-react_v^7.5.1/flow_v0.68.0 +// flow-typed signature: 515fae0a9ce3abae1679e31006016382 +// flow-typed version: <>/eslint-plugin-react_v^7.7.0/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index d2cdb262c8..5773582879 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: fa3cca1017d7a5fcb5d3e569945693c3 -// flow-typed version: <>/eslint_v^4.15.0/flow_v0.68.0 +// flow-typed signature: 65d10869e4ac1ad939dfcf9c70f3653b +// flow-typed version: <>/eslint_v^4.19.1/flow_v0.71.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-copy-source_vx.x.x.js b/flow-typed/npm/flow-copy-source_vx.x.x.js deleted file mode 100644 index 65effbd6e6..0000000000 --- a/flow-typed/npm/flow-copy-source_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 9daee147d10a364aa2dd1591db0a92e4 -// flow-typed version: <>/flow-copy-source_v1.2.1/flow_v0.59.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'flow-copy-source' - * - * 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 'flow-copy-source' { - 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 'flow-copy-source/bin/flow-copy-source' { - declare module.exports: any; -} - -declare module 'flow-copy-source/src/index' { - declare module.exports: any; -} - -declare module 'flow-copy-source/src/kefir-copy-file' { - declare module.exports: any; -} - -declare module 'flow-copy-source/src/kefir-glob' { - declare module.exports: any; -} - -// Filename aliases -declare module 'flow-copy-source/bin/flow-copy-source.js' { - declare module.exports: $Exports<'flow-copy-source/bin/flow-copy-source'>; -} -declare module 'flow-copy-source/src/index.js' { - declare module.exports: $Exports<'flow-copy-source/src/index'>; -} -declare module 'flow-copy-source/src/kefir-copy-file.js' { - declare module.exports: $Exports<'flow-copy-source/src/kefir-copy-file'>; -} -declare module 'flow-copy-source/src/kefir-glob.js' { - declare module.exports: $Exports<'flow-copy-source/src/kefir-glob'>; -} diff --git a/flow-typed/npm/invariant_v2.x.x.js b/flow-typed/npm/invariant_v2.x.x.js deleted file mode 100644 index 63221787c9..0000000000 --- a/flow-typed/npm/invariant_v2.x.x.js +++ /dev/null @@ -1,6 +0,0 @@ -// flow-typed signature: 60de437d85342dea19dcd82c5a50f88a -// flow-typed version: da30fe6876/invariant_v2.x.x/flow_>=v0.33.x - -declare module invariant { - declare module.exports: (condition: boolean, message: string) => void; -} diff --git a/flow-typed/npm/jest_v22.x.x.js b/flow-typed/npm/jest_v22.x.x.js index 493951c42a..d91f48e8c1 100644 --- a/flow-typed/npm/jest_v22.x.x.js +++ b/flow-typed/npm/jest_v22.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ebbcd423b1fcd29d6804fca91bb68879 -// flow-typed version: 7b9f6d2713/jest_v22.x.x/flow_>=v0.39.x +// flow-typed signature: 17c6ca97e1e560b9bc0d3400f8b2882f +// flow-typed version: a5bbe16c29/jest_v22.x.x/flow_>=v0.39.x type JestMockFn, TReturn> = { (...args: TArguments): TReturn, @@ -55,6 +55,11 @@ type JestMockFn, TReturn> = { mockImplementationOnce( fn: (...args: TArguments) => TReturn ): JestMockFn, + /** + * Accepts a string to use in test result output in place of "jest.fn()" to + * indicate which mock function is being referenced. + */ + mockName(name: string): JestMockFn, /** * Just a simple sugar function for returning `this` */ @@ -144,8 +149,15 @@ type EnzymeMatchersType = { toMatchSelector(selector: string): void }; +// DOM testing library extensions https://github.com/kentcdodds/dom-testing-library#custom-jest-matchers +type DomTestingLibraryType = { + toBeInTheDOM(): void, + toHaveTextContent(content: string): void, + toHaveAttribute(name: string, expectedValue?: string): void +}; + type JestExpectType = { - not: JestExpectType & EnzymeMatchersType, + not: JestExpectType & EnzymeMatchersType & DomTestingLibraryType, /** * If you have a mock function, you can use .lastCalledWith to test what * arguments it was last called with. @@ -399,6 +411,13 @@ type JestObjectType = { * Executes only the macro task queue (i.e. all tasks queued by setTimeout() * or setInterval() and setImmediate()). */ + advanceTimersByTime(msToRun: number): void, + /** + * Executes only the macro task queue (i.e. all tasks queued by setTimeout() + * or setInterval() and setImmediate()). + * + * Renamed to `advanceTimersByTime`. + */ runTimersToTime(msToRun: number): void, /** * Executes only the macro-tasks that are currently pending (i.e., only the @@ -550,14 +569,60 @@ declare var xit: typeof it; /** A disabled individual test */ declare var xtest: typeof it; +type JestPrettyFormatColors = { + comment: { close: string, open: string }, + content: { close: string, open: string }, + prop: { close: string, open: string }, + tag: { close: string, open: string }, + value: { close: string, open: string }, +}; + +type JestPrettyFormatIndent = string => string; +type JestPrettyFormatRefs = Array; +type JestPrettyFormatPrint = any => string; +type JestPrettyFormatStringOrNull = string | null; + +type JestPrettyFormatOptions = {| + callToJSON: boolean, + edgeSpacing: string, + escapeRegex: boolean, + highlight: boolean, + indent: number, + maxDepth: number, + min: boolean, + plugins: JestPrettyFormatPlugins, + printFunctionName: boolean, + spacing: string, + theme: {| + comment: string, + content: string, + prop: string, + tag: string, + value: string, + |}, +|}; + +type JestPrettyFormatPlugin = { + print: ( + val: any, + serialize: JestPrettyFormatPrint, + indent: JestPrettyFormatIndent, + opts: JestPrettyFormatOptions, + colors: JestPrettyFormatColors, + ) => string, + test: any => boolean, +}; + +type JestPrettyFormatPlugins = Array; + /** The expect function is used every time you want to test a value */ declare var expect: { /** The object that you want to make assertions against */ - (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType, + (value: any): JestExpectType & JestPromiseType & EnzymeMatchersType & DomTestingLibraryType, /** Add additional Jasmine matchers to Jest's roster */ extend(matchers: { [name: string]: JestMatcher }): void, /** Add a module that formats application-specific data structures. */ - addSnapshotSerializer(serializer: (input: Object) => string): void, + addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void, assertions(expectedAssertions: number): void, hasAssertions(): void, any(value: mixed): JestAsymmetricEqualityType, diff --git a/flow-typed/npm/puppeteer_v1.2.x.js b/flow-typed/npm/puppeteer_v1.2.x.js new file mode 100644 index 0000000000..e79159e961 --- /dev/null +++ b/flow-typed/npm/puppeteer_v1.2.x.js @@ -0,0 +1,1465 @@ +// flow-typed signature: 5424f3038583c263ad173d9a0e94e5f6 +// flow-typed version: 6175de7811/puppeteer_v1.2.x/flow_>=v0.58.x + +// @flow + +/** + * Based on typescript definitions found at the url below + * https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/puppeteer + */ + +declare module 'puppeteer' { + import type { ChildProcess } from 'child_process'; + + declare class OverridableEventEmitter extends events$EventEmitter { + /* eslint-disable flowtype/no-weak-types */ + +on: Function; + +once: Function; + /* eslint-enable flowtype/no-weak-types */ + } + + /** Keyboard provides an api for managing a virtual keyboard. */ + declare type Keyboard = { + /** + * Dispatches a keydown event. + * @param key Name of key to press, such as ArrowLeft. + * @param options Specifies a input text event. + */ + down(key: string, options?: { text?: string }): Promise, + + /** Shortcut for `keyboard.down` and `keyboard.up`. */ + press(key: string, options?: { delay?: number, text?: string }): Promise, + + /** Dispatches a `keypress` and `input` event. This does not send a `keydown` or keyup `event`. */ + sendCharacter(char: string): Promise, + + /** + * Sends a keydown, keypress/input, and keyup event for each character in the text. + * @param text A text to type into a focused element. + * @param options Specifies the typing options. + */ + type(text: string, options?: { delay?: number }): Promise, + + /** + * Dispatches a keyup event. + * @param key Name of key to release, such as ArrowLeft. + */ + up(key: string): Promise, + }; + + declare type MousePressOptions = { + /** + * left, right, or middle. + * @default left + */ + button?: MouseButtons, + + /** + * The number of clicks. + * @default 1 + */ + clickCount?: number, + }; + + declare type Mouse = { + /** + * Shortcut for `mouse.move`, `mouse.down` and `mouse.up`. + * @param x The x position. + * @param y The y position. + * @param options The click options. + */ + click(x: number, y: number, options?: ClickOptions): Promise, + + /** + * Dispatches a `mousedown` event. + * @param options The mouse press options. + */ + down(options?: MousePressOptions): Promise, + + /** + * Dispatches a `mousemove` event. + * @param x The x position. + * @param y The y position. + * @param options The mouse move options. + */ + move(x: number, y: number, options?: { steps: number }): Promise, + /** + * Dispatches a `mouseup` event. + * @param options The mouse press options. + */ + up(options?: MousePressOptions): Promise, + }; + + declare type Touchscreen = { + /** + * Dispatches a touchstart and touchend event. + * @param x The x position. + * @param y The y position. + */ + tap(x: number, y: number): Promise, + }; + + /** + * You can use `tracing.start` and `tracing.stop` to create a trace file which can be opened in Chrome DevTools or timeline viewer. + */ + declare type Tracing = { + start(options: TracingStartOptions): Promise, + + stop(): Promise, + }; + + declare type TracingStartOptions = { + categories?: Array, + path: string, + screenshots?: boolean, + }; + + /** Dialog objects are dispatched by page via the 'dialog' event. */ + declare type Dialog = { + /** + * Accepts the dialog. + * @param promptText A text to enter in prompt. Does not cause any effects if the dialog's type is not prompt. + */ + accept(promptText?: string): Promise, + + /** If dialog is prompt, returns default prompt value. Otherwise, returns empty string. */ + defaultValue(): string, + + /** Dismiss the dialog */ + dismiss(): Promise, + + /** Returns the message displayed in the dialog. */ + message(): string, + + /** The dialog type. Dialog's type, can be one of `alert`, `beforeunload`, `confirm` or `prompt`. */ + type(): 'alert' | 'beforeunload' | 'confirm' | 'prompt', + }; + + /** ConsoleMessage objects are dispatched by page via the 'console' event. */ + declare type ConsoleMessage = { + /** The message arguments. */ + args(): Array, + + /** The message text. */ + text(): string, + + type(): + | 'log' + | 'debug' + | 'info' + | 'error' + | 'warning' + | 'dir' + | 'dirxml' + | 'table' + | 'trace' + | 'clear' + | 'startGroup' + | 'startGroupCollapsed' + | 'endGroup' + | 'assert' + | 'profile' + | 'profileEnd' + | 'count' + | 'timeEnd', + }; + + declare type PageEvents = + | 'console' + | 'dialog' + | 'error' + | 'frameattached' + | 'framedetached' + | 'framenavigated' + | 'load' + | 'pageerror' + | 'request' + | 'requestfailed' + | 'requestfinished' + | 'response'; + + declare type BrowserEvents = + | 'disconnected' + | 'targetchanged' + | 'targetcreated' + | 'targetdestroyed'; + + declare type AuthOptions = { + password: string, + username: string, + }; + + declare type MouseButtons = 'left' | 'right' | 'middle'; + + declare type ClickOptions = { + /** defaults to left */ + button?: MouseButtons, + + /** defaults to 1 */ + clickCount?: number, + + /** + * Time to wait between mousedown and mouseup in milliseconds. + * Defaults to 0. + */ + delay?: number, + }; + + /** Represents a browser cookie. */ + declare type Cookie = { + /** The cookie domain. */ + domain: string, + + /** The cookie Unix expiration time in seconds. */ + expires: number, + + /** The cookie http only flag. */ + httpOnly: boolean, + + /** The cookie name. */ + name: string, + + /** The cookie path. */ + path: string, + + /** The cookie same site definition. */ + sameSite: 'Strict' | 'Lax', + + /** The cookie secure flag. */ + secure: boolean, + + /** The cookie value. */ + value: string, + }; + + declare type DeleteCookie = { + domain?: string, + /** The cookie name. */ + name: string, + path?: string, + secure?: boolean, + url?: string, + }; + + declare type SetCookie = { + /** The cookie domain. */ + domain?: string, + + /** The cookie Unix expiration time in seconds. */ + expires?: number, + + /** The cookie http only flag. */ + httpOnly?: boolean, + + /** The cookie name. */ + name: string, + + /** The cookie path. */ + path?: string, + + /** The cookie same site definition. */ + sameSite?: 'Strict' | 'Lax', + + /** The cookie secure flag. */ + secure?: boolean, + + /** The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. */ + url?: string, + + /** The cookie value. */ + value: string, + }; + + declare type Viewport = { + /** + * Specify device scale factor (can be thought of as dpr). + * @default 1 + */ + deviceScaleFactor?: number, + + /** + * Specifies if viewport supports touch events. + * @default false + */ + hasTouch?: boolean, + + /** The page height in pixels. */ + height: number, + + /** + * Specifies if viewport is in landscape mode. + * @default false + */ + isLandscape?: boolean, + + /** + * Whether the `meta viewport` tag is taken into account. + * @default false + */ + isMobile?: boolean, + + /** The page width in pixels. */ + width: number, + }; + + /** Page emulation options. */ + declare type EmulateOptions = { + /** The emulated user-agent. */ + userAgent?: string, + + /** The viewport emulation options. */ + viewport?: Viewport, + }; + + declare type EvaluateFn = string | ((...args: Array) => mixed); + + declare type LoadEvent = 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'; + + /** The navigation options. */ + declare type NavigationOptions = { + /** + * Maximum navigation time in milliseconds, pass 0 to disable timeout. + * @default 30000 + */ + timeout?: number, + /** + * When to consider navigation succeeded. + * @default load Navigation is consider when the `load` event is fired. + */ + waitUntil?: LoadEvent | Array, + }; + + declare type PDFFormat = + | 'Letter' + | 'Legal' + | 'Tabload' + | 'Ledger' + | 'A0' + | 'A1' + | 'A2' + | 'A3' + | 'A4' + | 'A5'; + + declare type PDFOptions = { + /** + * Display header and footer. + * @default false + */ + displayHeaderFooter?: boolean, + + /** + * HTML template for the print footer. Should be valid HTML markup with following classes used to inject printing values into them: + * - `date` formatted print date + * - `title` document title + * - `url` document location + * - `pageNumber` current page number + * - `totalPages` total pages in the document + */ + footerTemplate?: string, + + /** Paper format. If set, takes priority over width or height options. Defaults to 'Letter'. */ + format?: PDFFormat, + + /** + * HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: + * - `date` formatted print date + * - `title` document title + * - `url` document location + * - `pageNumber` current page number + * - `totalPages` total pages in the document + */ + headerTemplate?: string, + + /** Paper height, accepts values labeled with units. */ + height?: string, + + /** + * Paper orientation. + * @default false + */ + landscape?: boolean, + + /** Paper margins, defaults to none. */ + margin?: { + /** Bottom margin, accepts values labeled with units. */ + bottom?: string, + + /** Left margin, accepts values labeled with units. */ + left?: string, + + /** Right margin, accepts values labeled with units. */ + right?: string, + + /** Top margin, accepts values labeled with units. */ + top?: string, + }, + + /** + * Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty + * string, which means print all pages. + */ + pageRanges?: string, + + /** + * The file path to save the PDF to. + * If `path` is a relative path, then it is resolved relative to current working directory. + * If no path is provided, the PDF won't be saved to the disk. + */ + path?: string, + + /** + * Print background graphics. + * @default false + */ + printBackground?: boolean, + + /** + * Scale of the webpage rendering. + * @default 1 + */ + scale?: number, + + /** Paper width, accepts values labeled with units. */ + width?: string, + }; + + /** Defines the screenshot options. */ + declare type ScreenshotOptions = { + /** + * An object which specifies clipping region of the page. + */ + clip?: BoundingBox, + + /** + * When true, takes a screenshot of the full scrollable page. + * @default false + */ + fullPage?: boolean, + + /** + * Hides default white background and allows capturing screenshots with transparency. + * @default false + */ + omitBackground?: boolean, + + /** + * The file path to save the image to. The screenshot type will be inferred from file extension. + * If `path` is a relative path, then it is resolved relative to current working directory. + * If no path is provided, the image won't be saved to the disk. + */ + path?: string, + + /** The quality of the image, between 0-100. Not applicable to png images. */ + quality?: number, + + /** + * The screenshot type. + * @default png + */ + type?: 'jpeg' | 'png', + }; + + /** Options for `addStyleTag` */ + declare type StyleTagOptions = { + /** Raw CSS content to be injected into frame. */ + content?: string, + + /** Path to the CSS file to be injected into frame. If `path` is a relative path, then it is resolved relative to current working directory. */ + path?: string, + + /** Url of the tag. */ + url?: string, + }; + /** Options for `addScriptTag` */ + declare type ScriptTagOptions = { + /** Raw JavaScript content to be injected into frame. */ + content?: string, + + /** Path to the JavaScript file to be injected into frame. If `path` is a relative path, then it is resolved relative to current working directory. */ + path?: string, + + /** Script type. Use 'module' in order to load a Javascript ES6 module. */ + type?: string, + + /** Url of a script to be added. */ + url?: string, + }; + + declare type PageFnOptions = { + polling?: 'raf' | 'mutation' | number, + timeout?: number, + }; + + declare type BoundingBox = { + /** The height. */ + height: number, + + /** The width. */ + width: number, + + /** The x-coordinate of top-left corner. */ + x: number, + + /** The y-coordinate of top-left corner. */ + y: number, + }; + + /** + * Represents an in-page DOM element. ElementHandles can be created with the page.$ method. + */ + declare type ElementHandle = JSHandle & { + /** + * The method runs element.querySelector within the page. If no element matches the selector, the return value resolve to null. + * @param selector A selector to query element for + * @since 0.13.0 + */ + $(selector: string): Promise, + + /** + * The method runs element.querySelectorAll within the page. If no elements match the selector, the return value resolve to []. + * @param selector A selector to query element for + * @since 0.13.0 + */ + $$(selector: string): Promise>, + + /** + * @param selector XPath expression to evaluate. + */ + $x(expression: string): Promise>, + + /** + * This method returns the value resolve to the bounding box of the element (relative to the main frame), or null if the element is not visible. + */ + boundingBox(): Promise, + + /** + * This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element. + * If the element is detached from DOM, the method throws an error. + * @param options Specifies the options. + * @since 0.9.0 + */ + click(options?: ClickOptions): Promise, + + /** + * @returns Resolves to the content frame for element handles referencing iframe nodes, or null otherwise. + * @since 1.2.0 + */ + contentFrame(): Promise, + + /** + * Calls focus on the element. + */ + focus(): Promise, + + /** + * This method scrolls element into view if needed, and then uses page.mouse to hover over the center of the element. + * If the element is detached from DOM, the method throws an error. + */ + hover(): Promise, + + /** + * Focuses the element, and then uses keyboard.down and keyboard.up. + * @param key Name of key to press, such as ArrowLeft. See USKeyboardLayout for a list of all key names. + * @param options The text and delay options. + */ + press(key: string, options?: { delay?: number, text?: string }): Promise, + + /** + * This method scrolls element into view if needed, and then uses page.screenshot to take a screenshot of the element. + * If the element is detached from DOM, the method throws an error. + * @param options Same options as in page.screenshot. + */ + screenshot(options?: ScreenshotOptions): Promise, + + /** + * This method scrolls element into view if needed, and then uses touchscreen.tap to tap in the center of the element. + * If the element is detached from DOM, the method throws an error. + */ + tap(): Promise, + + toString(): string, + + /** + * Focuses the element, and then sends a keydown, keypress/input, and keyup event for each character in the text. + * @param text A text to type into a focused element. + * @param options The typing options. + */ + type(text: string, options?: { delay: number }): Promise, + + /** + * This method expects elementHandle to point to an input element. + * @param filePaths Sets the value of the file input these paths. If some of the filePaths are relative paths, then they are resolved relative to current working directory. + */ + uploadFile(...filePaths: Array): Promise, + }; + + /** The class represents a context for JavaScript execution. */ + declare type ExecutionContext = { + evaluate(fn: EvaluateFn, ...args: Array): Promise, + evaluateHandle(fn: EvaluateFn, ...args: Array): Promise, + queryObjects(prototypeHandle: JSHandle): JSHandle, + }; + + /** JSHandle represents an in-page JavaScript object. */ + declare type JSHandle = { + /** + * Returns a ElementHandle + */ + asElement(): ElementHandle | null, + + /** + * Stops referencing the element handle. + */ + dispose(): Promise, + + /** + * Gets the execution context. + */ + executionContext(): ExecutionContext, + + /** + * Returns a map with property names as keys and JSHandle instances for the property values. + */ + getProperties(): Promise>, + + /** + * Fetches a single property from the objectHandle. + * @param propertyName The property to get. + */ + getProperty(propertyName: string): Promise, + + /** + * Returns a JSON representation of the object. + * The JSON is generated by running JSON.stringify on the object in page and consequent JSON.parse in puppeteer. + * @throws The method will throw if the referenced object is not stringifiable. + */ + jsonValue(): Promise, + }; + + declare type Metrics = { + /** Number of documents in the page. */ + Documents: number, + + /** Number of frames in the page. */ + Frames: number, + + /** Number of events in the page. */ + JSEventListeners: number, + + /** Total JavaScript heap size. */ + JSHeapTotalSize: number, + + /** Used JavaScript heap size. */ + JSHeapUsedSize: number, + /** Total number of full or partial page layout. */ + LayoutCount: number, + + /** Combined durations of all page layouts. */ + LayoutDuration: number, + + /** Number of DOM nodes in the page. */ + Nodes: number, + + /** Total number of page style recalculations. */ + RecalcStyleCount: number, + + /** Combined duration of all page style recalculations. */ + RecalcStyleDuration: number, + + /** Combined duration of JavaScript execution. */ + ScriptDuration: number, + + /** Combined duration of all tasks performed by the browser. */ + TaskDuration: number, + + /** The timestamp when the metrics sample was taken. */ + Timestamp: number, + }; + + declare type Headers = { [key: string]: string }; + declare type HttpMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE' | 'OPTIONS'; + + declare type ResourceType = + | 'document' + | 'stylesheet' + | 'image' + | 'media' + | 'font' + | 'script' + | 'texttrack' + | 'xhr' + | 'fetch' + | 'eventsource' + | 'websocket' + | 'manifest' + | 'other'; + + declare type Overrides = { + headers?: Headers, + method?: HttpMethod, + postData?: string, + url?: string, + }; + + /** Represents a page request. */ + declare type Request = { + /** + * Aborts request. + * To use this, request interception should be enabled with `page.setRequestInterception`. + * @throws An exception is immediately thrown if the request interception is not enabled. + */ + abort(): Promise, + + /** + * Continues request with optional request overrides. + * To use this, request interception should be enabled with `page.setRequestInterception`. + * @throws An exception is immediately thrown if the request interception is not enabled. + */ + continue(overrides?: Overrides): Promise, + + /** + * @returns The `Frame` object that initiated the request, or `null` if navigating to error pages + */ + frame(): Promise, + + /** + * An object with HTTP headers associated with the request. + * All header names are lower-case. + */ + headers(): Headers, + /** Returns the request's method (GET, POST, etc.) */ + + method(): HttpMethod, + + /** Contains the request's post body, if any. */ + postData(): ?string, + + /** + * A `redirectChain` is a chain of requests initiated to fetch a resource. + * + * - If there are no redirects and the request was successful, the chain will be empty. + * - If a server responds with at least a single redirect, then the chain will contain all the requests that were redirected. + * + * `redirectChain` is shared between all the requests of the same chain. + * + * @since 1.2.0 + */ + redirectChain(): Array, + + /** Contains the request's resource type as it was perceived by the rendering engine. */ + resourceType(): ResourceType, + + /** + * Fulfills request with given response. + * To use this, request interception should be enabled with `page.setRequestInterception`. + * @throws An exception is immediately thrown if the request interception is not enabled. + * @param response The response options that will fulfill this request. + */ + respond(response: RespondOptions): Promise, + + /** A matching `Response` object, or `null` if the response has not been received yet. */ + response(): ?Response, + + /** Contains the URL of the request. */ + url(): string, + }; + + /** Options for `Request.respond` method */ + declare type RespondOptions = { + /** Specifies the response body. */ + body?: Buffer | string, + + /** Specifies the Content-Type response header. */ + contentType?: string, + + /** Specifies the response headers. */ + headers?: Headers, + + /** + * Specifies the response status code. + * @default 200 + */ + status?: number, + }; + + /** Response class represents responses which are received by page. */ + declare type Response = { + /** Promise which resolves to a buffer with response body. */ + buffer(): Promise, + + /** True if the response was served from either the browser's disk cache or memory cache. */ + fromCache(): boolean, + + /** True if the response was served by a service worker. */ + fromServiceWorker(): boolean, + + /** An object with HTTP headers associated with the response. All header names are lower-case. */ + headers(): Headers, + + /** + * Promise which resolves to a JSON representation of response body. + * @throws This method will throw if the response body is not parsable via `JSON.parse`. + */ + json(): Promise, + + /** Contains a boolean stating whether the response was successful (status in the range 200-299) or not. */ + ok(): boolean, + + /** A matching Request object. */ + request(): Request, + + /** Contains the status code of the response (e.g., 200 for a success). */ + status(): number, + + /** Promise which resolves to a text representation of response body. */ + text(): Promise, + + /** Contains the URL of the response. */ + url(): string, + }; + + declare type FrameBase = { + /** + * The method runs document.querySelector within the page. + * If no element matches the selector, the return value resolve to null. + */ + $(selector: string): Promise, + + /** + * The method runs document.querySelectorAll within the page. If no elements match the selector, the return value resolve to []. + */ + $$(selector: string): Promise>, + + /** + * This method runs document.querySelectorAll within the page and passes it as the first argument to `fn`. + * If `fn` returns a Promise, then $$eval would wait for the promise to resolve and return its value. + * @param selector A selector to query frame for + * @param fn Function to be evaluated in browser context + * @param args Arguments to pass to pageFunction + * @returns Promise which resolves to the return value of pageFunction + */ + $$eval( + selector: string, + pageFunction: (elements: NodeList, ...args: Array) => mixed, + ...args: Array + ): Promise, + + /** + * This method runs document.querySelector within the page and passes it as the first argument to `fn`. + * If there's no element matching selector, the method throws an error. + * If `fn` returns a Promise, then $eval would wait for the promise to resolve and return its value. + */ + $eval( + selector: string, + pageFunction: (element: Element, ...args: Array) => mixed, + ...args: Array + ): Promise, + + /** + * @param expression XPath expression to evaluate. + */ + $x(expression: string): Promise>, + + /** Adds a `