├── .gitignore ├── .eslintignore ├── demo ├── .eslintrc ├── Root.js ├── index.js ├── index.html ├── Demo.js └── examples │ └── SignupDemo.js ├── test ├── .eslintrc └── index.js ├── githooks.cjs ├── nyc.config.cjs ├── prettier.config.cjs ├── lint-staged.config.cjs ├── .mocharc.cjs ├── toolchain.config.cjs ├── .eslintrc.cjs ├── release.config.cjs ├── .babelrc.cjs ├── tsconfig.json ├── flow-typed └── npm │ ├── flow-bin_v0.x.x.js │ ├── react-hot-loader_v3.x.x.js │ ├── rimraf_v2.x.x.js │ ├── delay_vx.x.x.js │ ├── @storybook │ ├── storybook-deployer_vx.x.x.js │ └── react_v3.x.x.js │ ├── @jedwards1211 │ ├── eslint-config_vx.x.x.js │ ├── commitlint-config_vx.x.x.js │ ├── eslint-config-flow_vx.x.x.js │ └── eslint-config-react_vx.x.x.js │ ├── @commitlint │ ├── config-conventional_vx.x.x.js │ └── cli_vx.x.x.js │ ├── @babel │ ├── preset-flow_vx.x.x.js │ ├── preset-react_vx.x.x.js │ ├── plugin-syntax-dynamic-import_vx.x.x.js │ ├── plugin-proposal-class-properties_vx.x.x.js │ ├── plugin-proposal-object-rest-spread_vx.x.x.js │ ├── plugin-proposal-export-default-from_vx.x.x.js │ ├── plugin-proposal-export-namespace-from_vx.x.x.js │ ├── register_v7.x.x.js │ ├── plugin-transform-runtime_vx.x.x.js │ ├── cli_vx.x.x.js │ ├── preset-env_vx.x.x.js │ └── core_vx.x.x.js │ ├── babel-plugin-istanbul_vx.x.x.js │ ├── flow-watch_vx.x.x.js │ ├── prettier-eslint_vx.x.x.js │ ├── prop-types_v15.x.x.js │ ├── jsdom-global_vx.x.x.js │ ├── flow-copy-source_vx.x.x.js │ ├── babel-loader_vx.x.x.js │ ├── cross-env_vx.x.x.js │ ├── gh-pages_vx.x.x.js │ ├── webpack-cli_vx.x.x.js │ ├── babel-plugin-flow-react-proptypes_vx.x.x.js │ ├── get-node-dimensions_vx.x.x.js │ ├── copy_vx.x.x.js │ ├── eslint-config-prettier_vx.x.x.js │ ├── babel-plugin-lodash_vx.x.x.js │ ├── enzyme-adapter-react-16_vx.x.x.js │ ├── husky_vx.x.x.js │ ├── lint-staged_vx.x.x.js │ ├── nyc_vx.x.x.js │ ├── babel-eslint_vx.x.x.js │ ├── coveralls_vx.x.x.js │ ├── eslint-watch_vx.x.x.js │ ├── enzyme_v3.x.x.js │ ├── semantic-release_vx.x.x.js │ ├── webpack-dev-server_vx.x.x.js │ ├── prettier_v1.x.x.js │ ├── mocha_v6.x.x.js │ ├── sinon_vx.x.x.js │ └── react-transition-context_vx.x.x.js ├── tsconfig.build.json ├── .vscode ├── launch.json └── tasks.json ├── .flowconfig ├── .circleci └── config.yml ├── LICENSE.md ├── src ├── index.d.ts ├── simple.d.ts └── simple.js ├── webpack.config.js ├── package.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /dist 2 | .nyc_output 3 | node_modules 4 | /coverage 5 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /dist 2 | .nyc_output 3 | node_modules 4 | /coverage 5 | /demo/bundle.js 6 | -------------------------------------------------------------------------------- /demo/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "commonjs": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "es6": true, 4 | "mocha": true, 5 | "browser": true 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /githooks.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | const base = require('@jcoreio/toolchain/githooks.cjs') 3 | module.exports = { 4 | ...base, 5 | } 6 | -------------------------------------------------------------------------------- /nyc.config.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | const base = require('@jcoreio/toolchain-mocha/nyc.config.cjs') 3 | module.exports = { 4 | ...base, 5 | } 6 | -------------------------------------------------------------------------------- /prettier.config.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | const base = require('@jcoreio/toolchain/prettier.config.cjs') 3 | module.exports = { 4 | ...base, 5 | } 6 | -------------------------------------------------------------------------------- /lint-staged.config.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | const base = require('@jcoreio/toolchain/lint-staged.config.cjs') 3 | module.exports = { 4 | ...base, 5 | } 6 | -------------------------------------------------------------------------------- /.mocharc.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs') 3 | module.exports = { 4 | ...base, 5 | exit: true, 6 | } 7 | -------------------------------------------------------------------------------- /toolchain.config.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | module.exports = { 3 | cjsBabelEnv: { forceAllTransforms: true }, 4 | esmBabelEnv: { targets: { node: 16 } }, 5 | } 6 | -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | module.exports = { 3 | extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')], 4 | env: { 5 | es6: true, 6 | }, 7 | } 8 | -------------------------------------------------------------------------------- /release.config.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | module.exports = { 3 | extends: [ 4 | require.resolve('@jcoreio/toolchain-semantic-release/release.config.cjs'), 5 | ], 6 | } 7 | -------------------------------------------------------------------------------- /.babelrc.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node, es2018 */ 2 | module.exports = function (api) { 3 | const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api) 4 | return { 5 | ...base, 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./node_modules/@jcoreio/toolchain-typescript/tsconfig.json", 3 | "include": ["./src"], 4 | "exclude": ["node_modules"], 5 | "compilerOptions": { 6 | "skipLibCheck": false 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 28fdff7f110e1c75efab63ff205dda30 2 | // flow-typed version: c6154227d1/flow-bin_v0.x.x/flow_>=v0.104.x 3 | 4 | declare module 'flow-bin' { 5 | declare module.exports: string 6 | } 7 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "include": ["./src"], 4 | "exclude": ["node_modules", "./src/**/*.spec.ts", "./test"], 5 | "compilerOptions": { 6 | "outDir": "./dist", 7 | "declaration": true, 8 | "noEmit": false, 9 | "emitDeclarationOnly": true 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "test:debug ", 6 | "port": 9229, 7 | "request": "attach", 8 | "skipFiles": ["/**"], 9 | "type": "node", 10 | "preLaunchTask": "test:debug " 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /flow-typed/npm/react-hot-loader_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b169a0b0a56d309a879f29731a7b6d26 2 | // flow-typed version: c6154227d1/react-hot-loader_v3.x.x/flow_>=v0.104.x 3 | 4 | // @flow 5 | declare module 'react-hot-loader' { 6 | declare class AppContainer 7 | extends 8 | React$Component<{ 9 | errorReporter?: React$Element | (() => React$Element), 10 | children: React$Element, 11 | ... 12 | }> {} 13 | } 14 | -------------------------------------------------------------------------------- /demo/Root.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import withStyles from '@material-ui/core/styles/withStyles' 3 | import SignupDemo from './examples/SignupDemo' 4 | import Typography from '@material-ui/core/Typography' 5 | 6 | const styles = { 7 | root: { 8 | margin: '0 auto', 9 | maxWidth: 600, 10 | }, 11 | } 12 | 13 | const Root = ({ classes }) => ( 14 |
15 | react-view-slider demo 16 | 17 |
18 | ) 19 | 20 | export default withStyles(styles)(Root) 21 | -------------------------------------------------------------------------------- /demo/index.js: -------------------------------------------------------------------------------- 1 | /* eslint-env browser, commonjs */ 2 | 3 | import * as React from 'react' 4 | import { createRoot } from 'react-dom/client' 5 | import Root from './Root' 6 | 7 | let reloads = 0 8 | const rootElement = document.getElementById('root') 9 | if (!rootElement) throw new Error('#root not found') 10 | 11 | const root = createRoot(rootElement) 12 | 13 | function mount(Root) { 14 | root.render() 15 | } 16 | 17 | if (module.hot instanceof Object) { 18 | module.hot.accept('./Root', () => { 19 | mount(require('./Root').default) 20 | }) 21 | } 22 | 23 | mount(Root) 24 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | /[^/\\]+\.js$ 3 | /[^/\\]+\.js\.flow$ 4 | /es/.* 5 | /lib/.* 6 | /node_modules/immutable/.* 7 | /node_modules/jss/.* 8 | /node_modules/.*/fbjs/.* 9 | /node_modules/fbjs/.* 10 | /node_modules/.*/config-chain/.* 11 | /dist/.* 12 | .*/malformed_package_json/.* 13 | 14 | [include] 15 | ./src 16 | ./test 17 | 18 | [libs] 19 | 20 | [options] 21 | module.system=node 22 | esproposal.class_static_fields=enable 23 | esproposal.class_instance_fields=enable 24 | -------------------------------------------------------------------------------- /flow-typed/npm/rimraf_v2.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8b21843f43134917177d82a3b993b609 2 | // flow-typed version: c6154227d1/rimraf_v2.x.x/flow_>=v0.104.x 3 | 4 | declare module 'rimraf' { 5 | declare type Options = { 6 | maxBusyTries?: number, 7 | emfileWait?: number, 8 | glob?: boolean, 9 | disableGlob?: boolean, 10 | ... 11 | } 12 | 13 | declare type Callback = (err: ?Error, path: ?string) => void 14 | 15 | declare module.exports: { 16 | (f: string, opts?: Options | Callback, callback?: Callback): void, 17 | sync(path: string, opts?: Options): void, 18 | ... 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | react-view-slider 13 | 24 | 25 | 26 |

Loading...

27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /flow-typed/npm/delay_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c499af47685e515e74fcc71885de9815 2 | // flow-typed version: <>/delay_v^2.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'delay' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'delay' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | // Filename aliases 27 | declare module 'delay/index' { 28 | declare module.exports: $Exports<'delay'> 29 | } 30 | declare module 'delay/index.js' { 31 | declare module.exports: $Exports<'delay'> 32 | } 33 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | # created by @jcoreio/toolchain-circle 2 | 3 | version: 2.1 4 | jobs: 5 | build: 6 | docker: 7 | - image: cimg/node:20.10.0 8 | 9 | steps: 10 | - checkout 11 | - run: 12 | name: Setup NPM Token 13 | command: | 14 | npm config set \ 15 | "//registry.npmjs.org/:_authToken=$NPM_TOKEN" \ 16 | "registry=https://registry.npmjs.org/" 17 | - run: 18 | name: Corepack enable 19 | command: sudo corepack enable 20 | - run: 21 | name: Install Dependencies 22 | command: pnpm install --frozen-lockfile 23 | - run: 24 | name: Prepublish 25 | command: | 26 | [[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish 27 | - run: 28 | name: Release 29 | command: | 30 | [[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release 31 | 32 | workflows: 33 | build: 34 | jobs: 35 | - build: 36 | context: 37 | - npm-release 38 | - github-release 39 | -------------------------------------------------------------------------------- /flow-typed/npm/@storybook/storybook-deployer_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f40d4f6b593a08fb98bc57d2dd81e5a9 2 | // flow-typed version: <>/@storybook/storybook-deployer_v^2.2.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@storybook/storybook-deployer' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@storybook/storybook-deployer' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@storybook/storybook-deployer/src/utils' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@storybook/storybook-deployer/src/utils.js' { 31 | declare module.exports: $Exports<'@storybook/storybook-deployer/src/utils'> 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4c1f8d7a182cb6d0c376436acb7d473b 2 | // flow-typed version: <>/@jedwards1211/eslint-config_v^2.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@jedwards1211/eslint-config' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@jedwards1211/eslint-config' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | // Filename aliases 27 | declare module '@jedwards1211/eslint-config/index' { 28 | declare module.exports: $Exports<'@jedwards1211/eslint-config'> 29 | } 30 | declare module '@jedwards1211/eslint-config/index.js' { 31 | declare module.exports: $Exports<'@jedwards1211/eslint-config'> 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016-present Andy Edwards 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /flow-typed/npm/@commitlint/config-conventional_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 35bb50acd3a6ee0514d3254d07305640 2 | // flow-typed version: <>/@commitlint/config-conventional_v^6.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@commitlint/config-conventional' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@commitlint/config-conventional' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | // Filename aliases 27 | declare module '@commitlint/config-conventional/index' { 28 | declare module.exports: $Exports<'@commitlint/config-conventional'> 29 | } 30 | declare module '@commitlint/config-conventional/index.js' { 31 | declare module.exports: $Exports<'@commitlint/config-conventional'> 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/preset-flow_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 65c6576f7dc5adbe512496913357df96 2 | // flow-typed version: <>/@babel/preset-flow_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/preset-flow' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/preset-flow' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/preset-flow/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/preset-flow/lib/index' { 31 | declare module.exports: $Exports<'@babel/preset-flow/lib'> 32 | } 33 | declare module '@babel/preset-flow/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/preset-flow/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/@jedwards1211/commitlint-config_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 9463f02c5ddbaf620c86135917cac623 2 | // flow-typed version: <>/@jedwards1211/commitlint-config_v^1.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@jedwards1211/commitlint-config' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@jedwards1211/commitlint-config' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@jedwards1211/commitlint-config/commitlint.config' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@jedwards1211/commitlint-config/commitlint.config.js' { 31 | declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'> 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/preset-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 9d4ba3fc99bbc8c09e3e06fe6c1231ac 2 | // flow-typed version: <>/@babel/preset-react_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/preset-react' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/preset-react' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/preset-react/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/preset-react/lib/index' { 31 | declare module.exports: $Exports<'@babel/preset-react/lib'> 32 | } 33 | declare module '@babel/preset-react/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/preset-react/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e2f3a3696f6dedb58db3645b7928fd98 2 | // flow-typed version: <>/@jedwards1211/eslint-config-flow_v^1.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@jedwards1211/eslint-config-flow' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@jedwards1211/eslint-config-flow' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | // Filename aliases 27 | declare module '@jedwards1211/eslint-config-flow/index' { 28 | declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'> 29 | } 30 | declare module '@jedwards1211/eslint-config-flow/index.js' { 31 | declare module.exports: $Exports<'@jedwards1211/eslint-config-flow'> 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/@jedwards1211/eslint-config-react_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e619913686fe9a336ce23a43a795ee63 2 | // flow-typed version: <>/@jedwards1211/eslint-config-react_v^4.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@jedwards1211/eslint-config-react' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@jedwards1211/eslint-config-react' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | // Filename aliases 27 | declare module '@jedwards1211/eslint-config-react/index' { 28 | declare module.exports: $Exports<'@jedwards1211/eslint-config-react'> 29 | } 30 | declare module '@jedwards1211/eslint-config-react/index.js' { 31 | declare module.exports: $Exports<'@jedwards1211/eslint-config-react'> 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-istanbul_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d695438a9d2b330c94c1ef7ecd901793 2 | // flow-typed version: <>/babel-plugin-istanbul_v^5.1.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-istanbul' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-istanbul' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-istanbul/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module 'babel-plugin-istanbul/lib/index' { 31 | declare module.exports: $Exports<'babel-plugin-istanbul/lib'> 32 | } 33 | declare module 'babel-plugin-istanbul/lib/index.js' { 34 | declare module.exports: $Exports<'babel-plugin-istanbul/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-watch_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 7338a2afc24702805051c33b938ac0f3 2 | // flow-typed version: <>/flow-watch_v^1.1.4/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'flow-watch' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'flow-watch' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'flow-watch/src/flow-watch' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'flow-watch/src/runFlow' { 30 | declare module.exports: any 31 | } 32 | 33 | // Filename aliases 34 | declare module 'flow-watch/src/flow-watch.js' { 35 | declare module.exports: $Exports<'flow-watch/src/flow-watch'> 36 | } 37 | declare module 'flow-watch/src/runFlow.js' { 38 | declare module.exports: $Exports<'flow-watch/src/runFlow'> 39 | } 40 | -------------------------------------------------------------------------------- /src/index.d.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { TransitionState } from 'react-transition-context' 3 | import { Prefix } from 'inline-style-prefixer' 4 | 5 | export type ViewProps = { 6 | index: number 7 | active: boolean 8 | transitionState: TransitionState 9 | } 10 | 11 | export type ViewSliderProps = { 12 | activeView: number 13 | numViews: number 14 | renderView: (props: ViewProps) => React.ReactNode 15 | keepViewsMounted?: boolean | null 16 | animateHeight?: boolean | null 17 | transitionDuration?: number | null 18 | transitionTimingFunction?: string | null 19 | onSlideTransitionEnd?: (() => void) | null 20 | prefixer?: Prefix | null 21 | fillParent?: boolean | null 22 | className?: string | null 23 | style?: React.CSSProperties | null 24 | viewportClassName?: string | null 25 | viewportStyle?: React.CSSProperties | null 26 | viewStyle?: React.CSSProperties | null 27 | innerViewWrapperStyle?: React.CSSProperties | null 28 | rootRef?: React.Ref | null 29 | viewportRef?: React.Ref | null 30 | rtl?: boolean | null 31 | spacing?: number | null 32 | } 33 | 34 | declare const ViewSlider: React.ComponentType 35 | 36 | export default ViewSlider 37 | -------------------------------------------------------------------------------- /src/simple.d.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { Prefix } from 'inline-style-prefixer' 3 | import BaseViewSlider, { ViewProps } from '.' 4 | 5 | export type SimpleViewSliderProps = { 6 | children?: any 7 | keepViewsMounted?: boolean | null 8 | keepPrecedingViewsMounted?: boolean | null 9 | animateHeight?: boolean | null 10 | transitionDuration?: number | null 11 | transitionTimingFunction?: string | null 12 | onSlideTransitionEnd?: (() => void) | null 13 | prefixer?: Prefix | null 14 | fillParent?: boolean | null 15 | className?: string | null 16 | style?: React.CSSProperties | null 17 | viewportClassName?: string | null 18 | viewportStyle?: React.CSSProperties | null 19 | viewStyle?: React.CSSProperties | null 20 | innerViewWrapperStyle?: React.CSSProperties | null 21 | rootRef?: React.Ref 22 | viewportRef?: React.Ref 23 | rtl?: boolean | null 24 | spacing?: number | null 25 | } 26 | 27 | export function createSimpleViewSlider( 28 | ViewSlider: typeof BaseViewSlider, 29 | renderView?: (props: ViewProps) => React.ReactNode 30 | ): React.ComponentType 31 | 32 | declare const SimpleViewSlider: React.ComponentType 33 | export default SimpleViewSlider 34 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-syntax-dynamic-import_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e61bfbd53a89fa8bb6114e2ef320e556 2 | // flow-typed version: <>/@babel/plugin-syntax-dynamic-import_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-syntax-dynamic-import' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-syntax-dynamic-import' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-syntax-dynamic-import/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/plugin-syntax-dynamic-import/lib/index' { 31 | declare module.exports: $Exports<'@babel/plugin-syntax-dynamic-import/lib'> 32 | } 33 | declare module '@babel/plugin-syntax-dynamic-import/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/plugin-syntax-dynamic-import/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: af68e7f39b1ac6bddc42b696ce8d822b 2 | // flow-typed version: <>/@babel/plugin-proposal-class-properties_v^7.1.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-proposal-class-properties' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-proposal-class-properties' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-proposal-class-properties/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/plugin-proposal-class-properties/lib/index' { 31 | declare module.exports: $Exports<'@babel/plugin-proposal-class-properties/lib'> 32 | } 33 | declare module '@babel/plugin-proposal-class-properties/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/plugin-proposal-class-properties/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-object-rest-spread_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 429b23878ea4207fd17d987d7af942b1 2 | // flow-typed version: <>/@babel/plugin-proposal-object-rest-spread_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-proposal-object-rest-spread' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-proposal-object-rest-spread' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-proposal-object-rest-spread/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/plugin-proposal-object-rest-spread/lib/index' { 31 | declare module.exports: $Exports<'@babel/plugin-proposal-object-rest-spread/lib'> 32 | } 33 | declare module '@babel/plugin-proposal-object-rest-spread/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/plugin-proposal-object-rest-spread/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier-eslint_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: a008e63f3a4842b0c8cb20462ae8750a 2 | // flow-typed version: <>/prettier-eslint_v^8.8.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'prettier-eslint' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'prettier-eslint' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'prettier-eslint/dist' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'prettier-eslint/dist/utils' { 30 | declare module.exports: any 31 | } 32 | 33 | // Filename aliases 34 | declare module 'prettier-eslint/dist/index' { 35 | declare module.exports: $Exports<'prettier-eslint/dist'> 36 | } 37 | declare module 'prettier-eslint/dist/index.js' { 38 | declare module.exports: $Exports<'prettier-eslint/dist'> 39 | } 40 | declare module 'prettier-eslint/dist/utils.js' { 41 | declare module.exports: $Exports<'prettier-eslint/dist/utils'> 42 | } 43 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-export-default-from_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 843c924d8e09adc88d7a8adc3e8980e6 2 | // flow-typed version: <>/@babel/plugin-proposal-export-default-from_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-proposal-export-default-from' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-proposal-export-default-from' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-proposal-export-default-from/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/plugin-proposal-export-default-from/lib/index' { 31 | declare module.exports: $Exports<'@babel/plugin-proposal-export-default-from/lib'> 32 | } 33 | declare module '@babel/plugin-proposal-export-default-from/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/plugin-proposal-export-default-from/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-export-namespace-from_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 745a2f8a38c6ef6d376d9671fee8e845 2 | // flow-typed version: <>/@babel/plugin-proposal-export-namespace-from_v^7.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-proposal-export-namespace-from' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-proposal-export-namespace-from' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-proposal-export-namespace-from/lib' { 26 | declare module.exports: any 27 | } 28 | 29 | // Filename aliases 30 | declare module '@babel/plugin-proposal-export-namespace-from/lib/index' { 31 | declare module.exports: $Exports<'@babel/plugin-proposal-export-namespace-from/lib'> 32 | } 33 | declare module '@babel/plugin-proposal-export-namespace-from/lib/index.js' { 34 | declare module.exports: $Exports<'@babel/plugin-proposal-export-namespace-from/lib'> 35 | } 36 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "type": "shell", 6 | "options": { 7 | "shell": { 8 | "executable": "bash", 9 | "args": ["-c", "-l"] 10 | } 11 | }, 12 | "command": "pnpm", 13 | "isBackground": false, 14 | "group": "test", 15 | "presentation": { 16 | "panel": "dedicated", 17 | "clear": true 18 | }, 19 | "label": "test ", 20 | "args": ["tc", "test", "${file}"] 21 | }, 22 | { 23 | "type": "shell", 24 | "options": { 25 | "shell": { 26 | "executable": "bash", 27 | "args": ["-c", "-l"] 28 | } 29 | }, 30 | "command": "pnpm", 31 | "isBackground": false, 32 | "group": "test", 33 | "presentation": { 34 | "panel": "dedicated", 35 | "clear": true 36 | }, 37 | "label": "test:watch ", 38 | "args": ["tc", "test", "--watch", "${file}"] 39 | }, 40 | { 41 | "type": "shell", 42 | "options": { 43 | "shell": { 44 | "executable": "bash", 45 | "args": ["-c", "-l"] 46 | } 47 | }, 48 | "command": "pnpm", 49 | "isBackground": false, 50 | "group": "test", 51 | "presentation": { 52 | "panel": "dedicated", 53 | "clear": true 54 | }, 55 | "label": "test:debug ", 56 | "args": ["tc", "test", "-n", "inspect-brk", "${file}"] 57 | } 58 | ] 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/@storybook/react_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1aeadf523ef2d96985697463dd71c89d 2 | // flow-typed version: 35108faf5b/@storybook/react_v3.x.x/flow_>=v0.72.x 3 | 4 | type NodeModule = typeof module 5 | 6 | declare module '@storybook/react' { 7 | declare type Context = { kind: string, story: string } 8 | declare type Renderable = React$Element<*> 9 | declare type RenderCallback = ( 10 | context: Context 11 | ) => Renderable | Array 12 | declare type RenderFunction = () => Renderable | Array 13 | 14 | declare type StoryDecorator = ( 15 | story: RenderFunction, 16 | context: Context 17 | ) => Renderable | null 18 | 19 | declare interface Story { 20 | +kind: string; 21 | add(storyName: string, callback: RenderCallback): Story; 22 | addDecorator(decorator: StoryDecorator): Story; 23 | } 24 | 25 | declare interface StoryObject { 26 | name: string; 27 | render: RenderFunction; 28 | } 29 | 30 | declare interface StoryBucket { 31 | kind: string; 32 | filename: string; 33 | stories: Array; 34 | } 35 | 36 | declare function addDecorator(decorator: StoryDecorator): void 37 | declare function configure(fn: () => void, module: NodeModule): void 38 | declare function setAddon(addon: Object): void 39 | declare function storiesOf(name: string, module: NodeModule): Story 40 | declare function storiesOf(name: string, module: NodeModule): Story & T 41 | declare function forceReRender(): void 42 | 43 | declare function getStorybook(): Array 44 | } 45 | -------------------------------------------------------------------------------- /flow-typed/npm/prop-types_v15.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: c2be98acf88fa4c9915a337a66702bb5 2 | // flow-typed version: c6154227d1/prop-types_v15.x.x/flow_>=v0.104.x 3 | 4 | type $npm$propTypes$ReactPropsCheckType = ( 5 | props: any, 6 | propName: string, 7 | componentName: string, 8 | href?: string 9 | ) => ?Error 10 | 11 | // Copied from: https://github.com/facebook/flow/blob/0938da8d7293d0077fbe95c3a3e0eebadb57b012/lib/react.js#L433-L449 12 | declare module 'prop-types' { 13 | declare var array: React$PropType$Primitive> 14 | declare var bool: React$PropType$Primitive 15 | declare var func: React$PropType$Primitive<(...a: Array) => mixed> 16 | declare var number: React$PropType$Primitive 17 | declare var object: React$PropType$Primitive<{ +[string]: mixed, ... }> 18 | declare var string: React$PropType$Primitive 19 | declare var symbol: React$PropType$Primitive 20 | declare var any: React$PropType$Primitive 21 | declare var arrayOf: React$PropType$ArrayOf 22 | declare var element: React$PropType$Primitive 23 | declare var instanceOf: React$PropType$InstanceOf 24 | declare var node: React$PropType$Primitive 25 | declare var objectOf: React$PropType$ObjectOf 26 | declare var oneOf: React$PropType$OneOf 27 | declare var oneOfType: React$PropType$OneOfType 28 | declare var shape: React$PropType$Shape 29 | 30 | declare function checkPropTypes( 31 | propTypes: { [key: $Keys]: $npm$propTypes$ReactPropsCheckType, ... }, 32 | values: V, 33 | location: string, 34 | componentName: string, 35 | getStack: ?() => ?string 36 | ): void 37 | } 38 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | /* eslint-env node */ 4 | 5 | const path = require('path') 6 | const ProgressPlugin = require('webpack/lib/ProgressPlugin') 7 | const env = process.env.NODE_ENV 8 | const isTest = env === 'test' 9 | const isProd = env === 'production' 10 | 11 | const plugins = [new ProgressPlugin({ profile: false })] 12 | 13 | const externals = isTest 14 | ? { 15 | cheerio: 'window', 16 | 'react/addons': true, 17 | 'react/lib/ExecutionEnvironment': true, 18 | 'react/lib/ReactContext': true, 19 | } 20 | : {} 21 | 22 | module.exports = { 23 | mode: isProd ? 'production' : 'development', 24 | devtool: isTest ? 'source-map' : 'eval', 25 | output: isTest 26 | ? { 27 | library: 'reactViewSlider', 28 | libraryTarget: 'umd', 29 | } 30 | : { 31 | path: path.join(__dirname, 'demo'), 32 | filename: 'bundle.js', 33 | }, 34 | plugins, 35 | resolve: { 36 | alias: { 37 | 'react-view-slider': path.join(__dirname, 'src'), 38 | }, 39 | }, 40 | module: { 41 | rules: [ 42 | { 43 | loader: 'babel-loader', 44 | exclude: /node_modules/, 45 | options: { 46 | cacheDirectory: true, 47 | presets: [ 48 | ['@babel/preset-env', { targets: { browsers: 'last 2 versions' } }], 49 | '@babel/preset-react', 50 | '@babel/preset-flow', 51 | ], 52 | }, 53 | test: /\.js$/, 54 | }, 55 | ], 56 | }, 57 | externals, 58 | } 59 | 60 | if (!isTest) { 61 | module.exports.entry = ['core-js/stable', './demo/index.js'] 62 | module.exports.devServer = { 63 | port: 3000, 64 | static: { 65 | directory: path.join(__dirname, 'demo'), 66 | }, 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /flow-typed/npm/jsdom-global_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e046f23c12b9a411339dac9471e163c2 2 | // flow-typed version: <>/jsdom-global_v^3.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'jsdom-global' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'jsdom-global' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'jsdom-global/browser' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'jsdom-global/keys' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'jsdom-global/register' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'jsdom-global/test' { 38 | declare module.exports: any 39 | } 40 | 41 | // Filename aliases 42 | declare module 'jsdom-global/browser.js' { 43 | declare module.exports: $Exports<'jsdom-global/browser'> 44 | } 45 | declare module 'jsdom-global/index' { 46 | declare module.exports: $Exports<'jsdom-global'> 47 | } 48 | declare module 'jsdom-global/index.js' { 49 | declare module.exports: $Exports<'jsdom-global'> 50 | } 51 | declare module 'jsdom-global/keys.js' { 52 | declare module.exports: $Exports<'jsdom-global/keys'> 53 | } 54 | declare module 'jsdom-global/register.js' { 55 | declare module.exports: $Exports<'jsdom-global/register'> 56 | } 57 | declare module 'jsdom-global/test.js' { 58 | declare module.exports: $Exports<'jsdom-global/test'> 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-copy-source_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 95e4d27ea76a4979abc02671ec980807 2 | // flow-typed version: <>/flow-copy-source_v^2.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'flow-copy-source' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'flow-copy-source' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'flow-copy-source/bin/flow-copy-source' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'flow-copy-source/src' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'flow-copy-source/src/kefir-copy-file' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'flow-copy-source/src/kefir-glob' { 38 | declare module.exports: any 39 | } 40 | 41 | // Filename aliases 42 | declare module 'flow-copy-source/bin/flow-copy-source.js' { 43 | declare module.exports: $Exports<'flow-copy-source/bin/flow-copy-source'> 44 | } 45 | declare module 'flow-copy-source/src/index' { 46 | declare module.exports: $Exports<'flow-copy-source/src'> 47 | } 48 | declare module 'flow-copy-source/src/index.js' { 49 | declare module.exports: $Exports<'flow-copy-source/src'> 50 | } 51 | declare module 'flow-copy-source/src/kefir-copy-file.js' { 52 | declare module.exports: $Exports<'flow-copy-source/src/kefir-copy-file'> 53 | } 54 | declare module 'flow-copy-source/src/kefir-glob.js' { 55 | declare module.exports: $Exports<'flow-copy-source/src/kefir-glob'> 56 | } 57 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/register_v7.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 9fd1ed52c746a31b4121d9a2c4503cfd 2 | // flow-typed version: c6154227d1/@babel/register_v7.x.x/flow_>=v0.104.x 3 | 4 | declare module '@babel/register' { 5 | declare type Ignore = 6 | | boolean 7 | | string 8 | | RegExp 9 | | ((filename: string) => boolean) 10 | declare type Options = {| 11 | ast?: boolean, 12 | auxiliaryCommentAfter?: ?string, 13 | auxiliaryCommentBefore?: ?string, 14 | babelrc?: boolean, 15 | code?: boolean, 16 | comments?: boolean, 17 | compact?: 'auto' | boolean, 18 | configFile?: string | boolean, 19 | env?: Object, 20 | extends?: ?string, 21 | extensions?: Array, 22 | filename?: string, 23 | filenameRelative?: string, 24 | generatorOpts?: Object, 25 | getModuleId?: void | null | ((moduleName: string) => string), 26 | highlightCode?: boolean, 27 | ignore?: Ignore | Array, 28 | inputSourceMap?: Object, 29 | minified?: boolean, 30 | moduleId?: string, 31 | moduleIds?: boolean, 32 | moduleRoot?: string, 33 | only?: RegExp, 34 | parserOpts?: Object, 35 | plugins?: Array<[string, Object] | string>, 36 | presets?: Array, 37 | retainLines?: boolean, 38 | resolveModuleSource?: 39 | | null 40 | | ((source: string, filename: string) => boolean), 41 | shouldPrintComment?: null | ((commentContents: string) => string), 42 | sourceFileName?: string, 43 | sourceMaps?: boolean | 'inline' | 'both', 44 | sourceMapTarget?: string, 45 | sourceRoot?: string, 46 | sourceType?: 'script' | 'module', 47 | wrapPluginVisitorMethod?: 48 | | null 49 | | (( 50 | pluginAlias: string, 51 | visitorType: string, 52 | callback: Function 53 | ) => boolean), 54 | extensions?: Array, 55 | cache?: boolean, 56 | |} 57 | 58 | declare module.exports: (options?: Options) => void 59 | } 60 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-loader_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 32d9eb6d72c57673b7813cc05e75ddeb 2 | // flow-typed version: <>/babel-loader_v^8.0.5/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-loader' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-loader' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-loader/lib/cache' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'babel-loader/lib/Error' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'babel-loader/lib' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'babel-loader/lib/injectCaller' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'babel-loader/lib/transform' { 42 | declare module.exports: any 43 | } 44 | 45 | // Filename aliases 46 | declare module 'babel-loader/lib/cache.js' { 47 | declare module.exports: $Exports<'babel-loader/lib/cache'> 48 | } 49 | declare module 'babel-loader/lib/Error.js' { 50 | declare module.exports: $Exports<'babel-loader/lib/Error'> 51 | } 52 | declare module 'babel-loader/lib/index' { 53 | declare module.exports: $Exports<'babel-loader/lib'> 54 | } 55 | declare module 'babel-loader/lib/index.js' { 56 | declare module.exports: $Exports<'babel-loader/lib'> 57 | } 58 | declare module 'babel-loader/lib/injectCaller.js' { 59 | declare module.exports: $Exports<'babel-loader/lib/injectCaller'> 60 | } 61 | declare module 'babel-loader/lib/transform.js' { 62 | declare module.exports: $Exports<'babel-loader/lib/transform'> 63 | } 64 | -------------------------------------------------------------------------------- /flow-typed/npm/cross-env_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1df197faf22910f3e983f15ddf32684b 2 | // flow-typed version: <>/cross-env_v^5.2.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cross-env' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'cross-env' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'cross-env/dist/bin/cross-env-shell' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'cross-env/dist/bin/cross-env' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'cross-env/dist/command' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'cross-env/dist' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'cross-env/dist/variable' { 42 | declare module.exports: any 43 | } 44 | 45 | // Filename aliases 46 | declare module 'cross-env/dist/bin/cross-env-shell.js' { 47 | declare module.exports: $Exports<'cross-env/dist/bin/cross-env-shell'> 48 | } 49 | declare module 'cross-env/dist/bin/cross-env.js' { 50 | declare module.exports: $Exports<'cross-env/dist/bin/cross-env'> 51 | } 52 | declare module 'cross-env/dist/command.js' { 53 | declare module.exports: $Exports<'cross-env/dist/command'> 54 | } 55 | declare module 'cross-env/dist/index' { 56 | declare module.exports: $Exports<'cross-env/dist'> 57 | } 58 | declare module 'cross-env/dist/index.js' { 59 | declare module.exports: $Exports<'cross-env/dist'> 60 | } 61 | declare module 'cross-env/dist/variable.js' { 62 | declare module.exports: $Exports<'cross-env/dist/variable'> 63 | } 64 | -------------------------------------------------------------------------------- /flow-typed/npm/gh-pages_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: ed4b58563e6fa2904870ee4331369348 2 | // flow-typed version: <>/gh-pages_v^2.0.1/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'gh-pages' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'gh-pages' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'gh-pages/bin/gh-pages-clean' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'gh-pages/bin/gh-pages' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'gh-pages/lib/git' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'gh-pages/lib' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'gh-pages/lib/util' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'gh-pages/plugin' { 46 | declare module.exports: any 47 | } 48 | 49 | // Filename aliases 50 | declare module 'gh-pages/bin/gh-pages-clean.js' { 51 | declare module.exports: $Exports<'gh-pages/bin/gh-pages-clean'> 52 | } 53 | declare module 'gh-pages/bin/gh-pages.js' { 54 | declare module.exports: $Exports<'gh-pages/bin/gh-pages'> 55 | } 56 | declare module 'gh-pages/lib/git.js' { 57 | declare module.exports: $Exports<'gh-pages/lib/git'> 58 | } 59 | declare module 'gh-pages/lib/index' { 60 | declare module.exports: $Exports<'gh-pages/lib'> 61 | } 62 | declare module 'gh-pages/lib/index.js' { 63 | declare module.exports: $Exports<'gh-pages/lib'> 64 | } 65 | declare module 'gh-pages/lib/util.js' { 66 | declare module.exports: $Exports<'gh-pages/lib/util'> 67 | } 68 | declare module 'gh-pages/plugin.js' { 69 | declare module.exports: $Exports<'gh-pages/plugin'> 70 | } 71 | -------------------------------------------------------------------------------- /flow-typed/npm/webpack-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5aebf13b191835c786ba6ba968927bc5 2 | // flow-typed version: <>/webpack-cli_v^3.3.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'webpack-cli' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'webpack-cli' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'webpack-cli/bin/cli' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'webpack-cli/bin/config-yargs' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'webpack-cli/bin/convert-argv' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'webpack-cli/bin/errorHelpers' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'webpack-cli/bin/prepareOptions' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'webpack-cli/bin/prompt-command' { 46 | declare module.exports: any 47 | } 48 | 49 | // Filename aliases 50 | declare module 'webpack-cli/bin/cli.js' { 51 | declare module.exports: $Exports<'webpack-cli/bin/cli'> 52 | } 53 | declare module 'webpack-cli/bin/config-yargs.js' { 54 | declare module.exports: $Exports<'webpack-cli/bin/config-yargs'> 55 | } 56 | declare module 'webpack-cli/bin/convert-argv.js' { 57 | declare module.exports: $Exports<'webpack-cli/bin/convert-argv'> 58 | } 59 | declare module 'webpack-cli/bin/errorHelpers.js' { 60 | declare module.exports: $Exports<'webpack-cli/bin/errorHelpers'> 61 | } 62 | declare module 'webpack-cli/bin/prepareOptions.js' { 63 | declare module.exports: $Exports<'webpack-cli/bin/prepareOptions'> 64 | } 65 | declare module 'webpack-cli/bin/prompt-command.js' { 66 | declare module.exports: $Exports<'webpack-cli/bin/prompt-command'> 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 02cbfd71a1e35d7e2cf4b12cc46beaf3 2 | // flow-typed version: <>/babel-plugin-flow-react-proptypes_v^24.1.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-flow-react-proptypes' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-flow-react-proptypes' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-flow-react-proptypes/lib/convertToPropTypes' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'babel-plugin-flow-react-proptypes/lib' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'babel-plugin-flow-react-proptypes/lib/makePropTypesAst' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'babel-plugin-flow-react-proptypes/lib/util' { 38 | declare module.exports: any 39 | } 40 | 41 | // Filename aliases 42 | declare module 'babel-plugin-flow-react-proptypes/lib/convertToPropTypes.js' { 43 | declare module.exports: $Exports<'babel-plugin-flow-react-proptypes/lib/convertToPropTypes'> 44 | } 45 | declare module 'babel-plugin-flow-react-proptypes/lib/index' { 46 | declare module.exports: $Exports<'babel-plugin-flow-react-proptypes/lib'> 47 | } 48 | declare module 'babel-plugin-flow-react-proptypes/lib/index.js' { 49 | declare module.exports: $Exports<'babel-plugin-flow-react-proptypes/lib'> 50 | } 51 | declare module 'babel-plugin-flow-react-proptypes/lib/makePropTypesAst.js' { 52 | declare module.exports: $Exports<'babel-plugin-flow-react-proptypes/lib/makePropTypesAst'> 53 | } 54 | declare module 'babel-plugin-flow-react-proptypes/lib/util.js' { 55 | declare module.exports: $Exports<'babel-plugin-flow-react-proptypes/lib/util'> 56 | } 57 | -------------------------------------------------------------------------------- /flow-typed/npm/get-node-dimensions_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cac7ca7b6507916c8be93c9a174dc0fe 2 | // flow-typed version: <>/get-node-dimensions_v^1.2.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'get-node-dimensions' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'get-node-dimensions' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'get-node-dimensions/dist/get-node-dimensions' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'get-node-dimensions/dist/get-node-dimensions.min' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'get-node-dimensions/lib/get-clone-dimensions' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'get-node-dimensions/lib/get-margin' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'get-node-dimensions/lib/get-node-dimensions' { 42 | declare module.exports: any 43 | } 44 | 45 | // Filename aliases 46 | declare module 'get-node-dimensions/dist/get-node-dimensions.js' { 47 | declare module.exports: $Exports<'get-node-dimensions/dist/get-node-dimensions'> 48 | } 49 | declare module 'get-node-dimensions/dist/get-node-dimensions.min.js' { 50 | declare module.exports: $Exports<'get-node-dimensions/dist/get-node-dimensions.min'> 51 | } 52 | declare module 'get-node-dimensions/lib/get-clone-dimensions.js' { 53 | declare module.exports: $Exports<'get-node-dimensions/lib/get-clone-dimensions'> 54 | } 55 | declare module 'get-node-dimensions/lib/get-margin.js' { 56 | declare module.exports: $Exports<'get-node-dimensions/lib/get-margin'> 57 | } 58 | declare module 'get-node-dimensions/lib/get-node-dimensions.js' { 59 | declare module.exports: $Exports<'get-node-dimensions/lib/get-node-dimensions'> 60 | } 61 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-transform-runtime_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2a2223a42b3c00e1f3ac4c497c070d86 2 | // flow-typed version: <>/@babel/plugin-transform-runtime_v^7.1.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/plugin-transform-runtime' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/plugin-transform-runtime' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/plugin-transform-runtime/lib/helpers' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module '@babel/plugin-transform-runtime/lib' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module '@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module '@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions' { 38 | declare module.exports: any 39 | } 40 | 41 | // Filename aliases 42 | declare module '@babel/plugin-transform-runtime/lib/helpers.js' { 43 | declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/helpers'> 44 | } 45 | declare module '@babel/plugin-transform-runtime/lib/index' { 46 | declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib'> 47 | } 48 | declare module '@babel/plugin-transform-runtime/lib/index.js' { 49 | declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib'> 50 | } 51 | declare module '@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions.js' { 52 | declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/runtime-corejs2-definitions'> 53 | } 54 | declare module '@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions.js' { 55 | declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/runtime-corejs3-definitions'> 56 | } 57 | -------------------------------------------------------------------------------- /flow-typed/npm/copy_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2c9a349741fc18235d9a00b684079811 2 | // flow-typed version: <>/copy_v^0.3.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'copy' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'copy' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'copy/bin/cli' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'copy/lib/base' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'copy/lib/dest' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'copy/lib/invalid' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'copy/lib/once' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'copy/lib/recurse' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'copy/lib/utils' { 50 | declare module.exports: any 51 | } 52 | 53 | // Filename aliases 54 | declare module 'copy/bin/cli.js' { 55 | declare module.exports: $Exports<'copy/bin/cli'> 56 | } 57 | declare module 'copy/index' { 58 | declare module.exports: $Exports<'copy'> 59 | } 60 | declare module 'copy/index.js' { 61 | declare module.exports: $Exports<'copy'> 62 | } 63 | declare module 'copy/lib/base.js' { 64 | declare module.exports: $Exports<'copy/lib/base'> 65 | } 66 | declare module 'copy/lib/dest.js' { 67 | declare module.exports: $Exports<'copy/lib/dest'> 68 | } 69 | declare module 'copy/lib/invalid.js' { 70 | declare module.exports: $Exports<'copy/lib/invalid'> 71 | } 72 | declare module 'copy/lib/once.js' { 73 | declare module.exports: $Exports<'copy/lib/once'> 74 | } 75 | declare module 'copy/lib/recurse.js' { 76 | declare module.exports: $Exports<'copy/lib/recurse'> 77 | } 78 | declare module 'copy/lib/utils.js' { 79 | declare module.exports: $Exports<'copy/lib/utils'> 80 | } 81 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 29e3f9a52747ae63fc1a39ad7c6a5140 2 | // flow-typed version: <>/@babel/cli_v^7.1.5/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/cli' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/cli' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/cli/bin/babel-external-helpers' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module '@babel/cli/bin/babel' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module '@babel/cli/lib/babel-external-helpers' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module '@babel/cli/lib/babel/dir' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module '@babel/cli/lib/babel/file' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module '@babel/cli/lib/babel' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module '@babel/cli/lib/babel/options' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module '@babel/cli/lib/babel/util' { 54 | declare module.exports: any 55 | } 56 | 57 | // Filename aliases 58 | declare module '@babel/cli/bin/babel-external-helpers.js' { 59 | declare module.exports: $Exports<'@babel/cli/bin/babel-external-helpers'> 60 | } 61 | declare module '@babel/cli/bin/babel.js' { 62 | declare module.exports: $Exports<'@babel/cli/bin/babel'> 63 | } 64 | declare module '@babel/cli/index' { 65 | declare module.exports: $Exports<'@babel/cli'> 66 | } 67 | declare module '@babel/cli/index.js' { 68 | declare module.exports: $Exports<'@babel/cli'> 69 | } 70 | declare module '@babel/cli/lib/babel-external-helpers.js' { 71 | declare module.exports: $Exports<'@babel/cli/lib/babel-external-helpers'> 72 | } 73 | declare module '@babel/cli/lib/babel/dir.js' { 74 | declare module.exports: $Exports<'@babel/cli/lib/babel/dir'> 75 | } 76 | declare module '@babel/cli/lib/babel/file.js' { 77 | declare module.exports: $Exports<'@babel/cli/lib/babel/file'> 78 | } 79 | declare module '@babel/cli/lib/babel/index' { 80 | declare module.exports: $Exports<'@babel/cli/lib/babel'> 81 | } 82 | declare module '@babel/cli/lib/babel/index.js' { 83 | declare module.exports: $Exports<'@babel/cli/lib/babel'> 84 | } 85 | declare module '@babel/cli/lib/babel/options.js' { 86 | declare module.exports: $Exports<'@babel/cli/lib/babel/options'> 87 | } 88 | declare module '@babel/cli/lib/babel/util.js' { 89 | declare module.exports: $Exports<'@babel/cli/lib/babel/util'> 90 | } 91 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-config-prettier_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 503801532ee36e1d9cbdb1018c46fa78 2 | // flow-typed version: <>/eslint-config-prettier_v^3.3.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-config-prettier' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-config-prettier' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'eslint-config-prettier/babel' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'eslint-config-prettier/bin/cli' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'eslint-config-prettier/bin/validators' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'eslint-config-prettier/flowtype' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'eslint-config-prettier/react' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'eslint-config-prettier/standard' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'eslint-config-prettier/typescript' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'eslint-config-prettier/unicorn' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'eslint-config-prettier/vue' { 58 | declare module.exports: any 59 | } 60 | 61 | // Filename aliases 62 | declare module 'eslint-config-prettier/babel.js' { 63 | declare module.exports: $Exports<'eslint-config-prettier/babel'> 64 | } 65 | declare module 'eslint-config-prettier/bin/cli.js' { 66 | declare module.exports: $Exports<'eslint-config-prettier/bin/cli'> 67 | } 68 | declare module 'eslint-config-prettier/bin/validators.js' { 69 | declare module.exports: $Exports<'eslint-config-prettier/bin/validators'> 70 | } 71 | declare module 'eslint-config-prettier/flowtype.js' { 72 | declare module.exports: $Exports<'eslint-config-prettier/flowtype'> 73 | } 74 | declare module 'eslint-config-prettier/index' { 75 | declare module.exports: $Exports<'eslint-config-prettier'> 76 | } 77 | declare module 'eslint-config-prettier/index.js' { 78 | declare module.exports: $Exports<'eslint-config-prettier'> 79 | } 80 | declare module 'eslint-config-prettier/react.js' { 81 | declare module.exports: $Exports<'eslint-config-prettier/react'> 82 | } 83 | declare module 'eslint-config-prettier/standard.js' { 84 | declare module.exports: $Exports<'eslint-config-prettier/standard'> 85 | } 86 | declare module 'eslint-config-prettier/typescript.js' { 87 | declare module.exports: $Exports<'eslint-config-prettier/typescript'> 88 | } 89 | declare module 'eslint-config-prettier/unicorn.js' { 90 | declare module.exports: $Exports<'eslint-config-prettier/unicorn'> 91 | } 92 | declare module 'eslint-config-prettier/vue.js' { 93 | declare module.exports: $Exports<'eslint-config-prettier/vue'> 94 | } 95 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-plugin-lodash_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: ad094bc8cd25553e36bb03bfefddd229 2 | // flow-typed version: <>/babel-plugin-lodash_v^3.3.4/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-plugin-lodash' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-plugin-lodash' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-plugin-lodash/lib/config' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'babel-plugin-lodash/lib/importModule' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'babel-plugin-lodash/lib' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'babel-plugin-lodash/lib/Map' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'babel-plugin-lodash/lib/MapCache' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'babel-plugin-lodash/lib/mapping' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'babel-plugin-lodash/lib/ModuleCache' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'babel-plugin-lodash/lib/Package' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'babel-plugin-lodash/lib/Store' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'babel-plugin-lodash/lib/util' { 62 | declare module.exports: any 63 | } 64 | 65 | // Filename aliases 66 | declare module 'babel-plugin-lodash/lib/config.js' { 67 | declare module.exports: $Exports<'babel-plugin-lodash/lib/config'> 68 | } 69 | declare module 'babel-plugin-lodash/lib/importModule.js' { 70 | declare module.exports: $Exports<'babel-plugin-lodash/lib/importModule'> 71 | } 72 | declare module 'babel-plugin-lodash/lib/index' { 73 | declare module.exports: $Exports<'babel-plugin-lodash/lib'> 74 | } 75 | declare module 'babel-plugin-lodash/lib/index.js' { 76 | declare module.exports: $Exports<'babel-plugin-lodash/lib'> 77 | } 78 | declare module 'babel-plugin-lodash/lib/Map.js' { 79 | declare module.exports: $Exports<'babel-plugin-lodash/lib/Map'> 80 | } 81 | declare module 'babel-plugin-lodash/lib/MapCache.js' { 82 | declare module.exports: $Exports<'babel-plugin-lodash/lib/MapCache'> 83 | } 84 | declare module 'babel-plugin-lodash/lib/mapping.js' { 85 | declare module.exports: $Exports<'babel-plugin-lodash/lib/mapping'> 86 | } 87 | declare module 'babel-plugin-lodash/lib/ModuleCache.js' { 88 | declare module.exports: $Exports<'babel-plugin-lodash/lib/ModuleCache'> 89 | } 90 | declare module 'babel-plugin-lodash/lib/Package.js' { 91 | declare module.exports: $Exports<'babel-plugin-lodash/lib/Package'> 92 | } 93 | declare module 'babel-plugin-lodash/lib/Store.js' { 94 | declare module.exports: $Exports<'babel-plugin-lodash/lib/Store'> 95 | } 96 | declare module 'babel-plugin-lodash/lib/util.js' { 97 | declare module.exports: $Exports<'babel-plugin-lodash/lib/util'> 98 | } 99 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 36c5bdbffd09bb71590397deb39efbac 2 | // flow-typed version: <>/enzyme-adapter-react-16_v^1.7.1/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'enzyme-adapter-react-16' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'enzyme-adapter-react-16' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'enzyme-adapter-react-16/build/detectFiberTags' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'enzyme-adapter-react-16/build' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'enzyme-adapter-react-16/src/detectFiberTags' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'enzyme-adapter-react-16/src' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter' { 54 | declare module.exports: any 55 | } 56 | 57 | // Filename aliases 58 | declare module 'enzyme-adapter-react-16/build/detectFiberTags.js' { 59 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/detectFiberTags'> 60 | } 61 | declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath.js' { 62 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath'> 63 | } 64 | declare module 'enzyme-adapter-react-16/build/index' { 65 | declare module.exports: $Exports<'enzyme-adapter-react-16/build'> 66 | } 67 | declare module 'enzyme-adapter-react-16/build/index.js' { 68 | declare module.exports: $Exports<'enzyme-adapter-react-16/build'> 69 | } 70 | declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter.js' { 71 | declare module.exports: $Exports<'enzyme-adapter-react-16/build/ReactSixteenAdapter'> 72 | } 73 | declare module 'enzyme-adapter-react-16/src/detectFiberTags.js' { 74 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/detectFiberTags'> 75 | } 76 | declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath.js' { 77 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath'> 78 | } 79 | declare module 'enzyme-adapter-react-16/src/index' { 80 | declare module.exports: $Exports<'enzyme-adapter-react-16/src'> 81 | } 82 | declare module 'enzyme-adapter-react-16/src/index.js' { 83 | declare module.exports: $Exports<'enzyme-adapter-react-16/src'> 84 | } 85 | declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter.js' { 86 | declare module.exports: $Exports<'enzyme-adapter-react-16/src/ReactSixteenAdapter'> 87 | } 88 | -------------------------------------------------------------------------------- /demo/Demo.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import withStyles from '@material-ui/core/styles/withStyles' 3 | import Code from '@material-ui/icons/Code' 4 | import Collapse from '@material-ui/core/Collapse' 5 | import Button from '@material-ui/core/Button' 6 | import IconButton from '@material-ui/core/IconButton' 7 | import Typography from '@material-ui/core/Typography' 8 | import Tooltip from '@material-ui/core/Tooltip' 9 | 10 | const { useState, useCallback } = React 11 | 12 | const styles = { 13 | title: { 14 | marginTop: 40, 15 | marginBottom: 0, 16 | }, 17 | root: { 18 | margin: '20px auto', 19 | }, 20 | toolbar: { 21 | display: 'flex', 22 | alignItems: 'center', 23 | }, 24 | toolbarSpacer: { 25 | flex: '1 1 auto', 26 | }, 27 | code: { 28 | margin: 0, 29 | padding: 20, 30 | backgroundColor: 'white', 31 | borderRadius: 4, 32 | }, 33 | example: { 34 | backgroundColor: '#eee', 35 | borderRadius: 4, 36 | display: 'flex', 37 | alignContent: 'center', 38 | alignItems: 'center', 39 | justifyContent: 'center', 40 | padding: 40, 41 | }, 42 | titleAnchor: { 43 | color: '#aaa', 44 | marginLeft: 10, 45 | textDecoration: 'none', 46 | visibility: 'hidden', 47 | '$title:hover > &': { 48 | visibility: 'visible', 49 | }, 50 | }, 51 | } 52 | 53 | const Demo = ({ 54 | headerId, 55 | classes, 56 | title, 57 | code, 58 | example, 59 | hooksCode, 60 | hooksExample, 61 | }) => { 62 | const [showSource, setShowSource] = useState(false) 63 | const [api, setApi] = useState('hooks') 64 | const setRenderProps = useCallback(() => setApi('render-props'), []) 65 | const setHooks = useCallback(() => setApi('hooks'), []) 66 | return ( 67 |
68 | 69 | {title} 70 | {headerId && ( 71 | 72 | # 73 | 74 | )} 75 | 76 |
77 | {code != null && hooksCode != null && ( 78 | 79 | 85 | 91 | 92 | )} 93 |
94 | 95 | setShowSource(!showSource)}> 96 | 97 | 98 | 99 |
100 | 101 |
102 |           {api === 'hooks' ? hooksCode || code : code || hooksCode}
103 |         
104 |
105 |
106 | {api === 'hooks' ? hooksExample || example : example || hooksExample} 107 |
108 |
109 | ) 110 | } 111 | 112 | export default withStyles(styles)(Demo) 113 | -------------------------------------------------------------------------------- /flow-typed/npm/husky_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bc370d26a0f3229624a13a0cffe40b31 2 | // flow-typed version: <>/husky_v^1.1.4/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'husky' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'husky' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'husky/husky' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'husky/lib/getConf' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'husky/lib/installer/bin' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'husky/lib/installer/getScript' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'husky/lib/installer' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'husky/lib/installer/is' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'husky/lib/installer/resolveGitDir' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'husky/lib/runner/bin' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'husky/lib/runner' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'husky/lib/upgrader/bin' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'husky/lib/upgrader' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'husky/run' { 70 | declare module.exports: any 71 | } 72 | 73 | // Filename aliases 74 | declare module 'husky/husky.js' { 75 | declare module.exports: $Exports<'husky/husky'> 76 | } 77 | declare module 'husky/lib/getConf.js' { 78 | declare module.exports: $Exports<'husky/lib/getConf'> 79 | } 80 | declare module 'husky/lib/installer/bin.js' { 81 | declare module.exports: $Exports<'husky/lib/installer/bin'> 82 | } 83 | declare module 'husky/lib/installer/getScript.js' { 84 | declare module.exports: $Exports<'husky/lib/installer/getScript'> 85 | } 86 | declare module 'husky/lib/installer/index' { 87 | declare module.exports: $Exports<'husky/lib/installer'> 88 | } 89 | declare module 'husky/lib/installer/index.js' { 90 | declare module.exports: $Exports<'husky/lib/installer'> 91 | } 92 | declare module 'husky/lib/installer/is.js' { 93 | declare module.exports: $Exports<'husky/lib/installer/is'> 94 | } 95 | declare module 'husky/lib/installer/resolveGitDir.js' { 96 | declare module.exports: $Exports<'husky/lib/installer/resolveGitDir'> 97 | } 98 | declare module 'husky/lib/runner/bin.js' { 99 | declare module.exports: $Exports<'husky/lib/runner/bin'> 100 | } 101 | declare module 'husky/lib/runner/index' { 102 | declare module.exports: $Exports<'husky/lib/runner'> 103 | } 104 | declare module 'husky/lib/runner/index.js' { 105 | declare module.exports: $Exports<'husky/lib/runner'> 106 | } 107 | declare module 'husky/lib/upgrader/bin.js' { 108 | declare module.exports: $Exports<'husky/lib/upgrader/bin'> 109 | } 110 | declare module 'husky/lib/upgrader/index' { 111 | declare module.exports: $Exports<'husky/lib/upgrader'> 112 | } 113 | declare module 'husky/lib/upgrader/index.js' { 114 | declare module.exports: $Exports<'husky/lib/upgrader'> 115 | } 116 | declare module 'husky/run.js' { 117 | declare module.exports: $Exports<'husky/run'> 118 | } 119 | -------------------------------------------------------------------------------- /src/simple.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint-env browser */ 3 | 4 | import * as React from 'react' 5 | import Prefixer from 'inline-style-prefixer' 6 | import ViewSlider from './index' 7 | import type { Props as ViewSliderProps, ViewProps } from './index' 8 | 9 | export type Props = { 10 | children?: any, 11 | keepViewsMounted?: ?boolean, 12 | keepPrecedingViewsMounted?: ?boolean, 13 | animateHeight?: ?boolean, 14 | transitionDuration?: ?number, 15 | transitionTimingFunction?: ?string, 16 | onSlideTransitionEnd?: ?() => mixed, 17 | prefixer?: ?Prefixer, 18 | fillParent?: ?boolean, 19 | className?: ?string, 20 | style?: ?Object, 21 | viewportClassName?: ?string, 22 | viewportStyle?: ?Object, 23 | viewStyle?: ?Object, 24 | innerViewWrapperStyle?: ?Object, 25 | rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed, 26 | viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed, 27 | rtl?: ?boolean, 28 | spacing?: ?number, 29 | } 30 | 31 | export type State = { 32 | views: Array, 33 | activeView: number, 34 | } 35 | 36 | function defaultRenderView({ index }: ViewProps): React.Element<'div'> { 37 | return this.state.views[index] 38 | } 39 | 40 | export function createSimpleViewSlider( 41 | ViewSlider: React.ComponentType, 42 | renderView: (props: ViewProps) => React.Node = defaultRenderView 43 | ): Class> { 44 | return class SimpleViewSlider extends React.Component { 45 | state: State 46 | 47 | constructor(props: Props) { 48 | super(props) 49 | const child = React.Children.only(props.children) 50 | const activeView = parseInt(child.key) 51 | const views = [] 52 | views[activeView] = child 53 | this.state = { views, activeView } 54 | } 55 | 56 | componentDidUpdate(prevProps: Props) { 57 | if (prevProps.children !== this.props.children) { 58 | const child = React.Children.only(this.props.children) 59 | const activeView = parseInt(child.key) 60 | const views = [...this.state.views] 61 | views[activeView] = child 62 | this.setState({ views, activeView }) 63 | } 64 | } 65 | 66 | renderView = renderView.bind(this) 67 | 68 | handleSlideTransitionEnd = () => { 69 | if (!this.props.keepViewsMounted) { 70 | const { views, activeView } = this.state 71 | if (activeView < views.length - 1) { 72 | this.setState( 73 | { 74 | views: views.slice(0, activeView + 1), 75 | }, 76 | () => { 77 | const { onSlideTransitionEnd } = this.props 78 | if (onSlideTransitionEnd) onSlideTransitionEnd() 79 | } 80 | ) 81 | } 82 | } 83 | } 84 | 85 | render(): React.Node { 86 | const { 87 | children, // eslint-disable-line no-unused-vars 88 | // Flow's React.ComponentType + defaultProps is foobar... 89 | spacing, 90 | rtl, 91 | keepViewsMounted, 92 | keepPrecedingViewsMounted, 93 | ...props 94 | } = this.props 95 | const { activeView, views } = this.state 96 | 97 | return ( 98 | 108 | ) 109 | } 110 | } 111 | } 112 | 113 | export default createSimpleViewSlider(ViewSlider) 114 | -------------------------------------------------------------------------------- /flow-typed/npm/lint-staged_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: eea9906755b6d7d80ea6b5541f0d9c09 2 | // flow-typed version: <>/lint-staged_v^8.0.4/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'lint-staged' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'lint-staged' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'lint-staged/src/calcChunkSize' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'lint-staged/src/checkPkgScripts' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'lint-staged/src/findBin' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'lint-staged/src/generateTasks' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'lint-staged/src/getConfig' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'lint-staged/src/gitWorkflow' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'lint-staged/src' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'lint-staged/src/makeCmdTasks' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'lint-staged/src/printErrors' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'lint-staged/src/resolveGitDir' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'lint-staged/src/resolveTaskFn' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'lint-staged/src/runAll' { 70 | declare module.exports: any 71 | } 72 | 73 | // Filename aliases 74 | declare module 'lint-staged/index' { 75 | declare module.exports: $Exports<'lint-staged'> 76 | } 77 | declare module 'lint-staged/index.js' { 78 | declare module.exports: $Exports<'lint-staged'> 79 | } 80 | declare module 'lint-staged/src/calcChunkSize.js' { 81 | declare module.exports: $Exports<'lint-staged/src/calcChunkSize'> 82 | } 83 | declare module 'lint-staged/src/checkPkgScripts.js' { 84 | declare module.exports: $Exports<'lint-staged/src/checkPkgScripts'> 85 | } 86 | declare module 'lint-staged/src/findBin.js' { 87 | declare module.exports: $Exports<'lint-staged/src/findBin'> 88 | } 89 | declare module 'lint-staged/src/generateTasks.js' { 90 | declare module.exports: $Exports<'lint-staged/src/generateTasks'> 91 | } 92 | declare module 'lint-staged/src/getConfig.js' { 93 | declare module.exports: $Exports<'lint-staged/src/getConfig'> 94 | } 95 | declare module 'lint-staged/src/gitWorkflow.js' { 96 | declare module.exports: $Exports<'lint-staged/src/gitWorkflow'> 97 | } 98 | declare module 'lint-staged/src/index' { 99 | declare module.exports: $Exports<'lint-staged/src'> 100 | } 101 | declare module 'lint-staged/src/index.js' { 102 | declare module.exports: $Exports<'lint-staged/src'> 103 | } 104 | declare module 'lint-staged/src/makeCmdTasks.js' { 105 | declare module.exports: $Exports<'lint-staged/src/makeCmdTasks'> 106 | } 107 | declare module 'lint-staged/src/printErrors.js' { 108 | declare module.exports: $Exports<'lint-staged/src/printErrors'> 109 | } 110 | declare module 'lint-staged/src/resolveGitDir.js' { 111 | declare module.exports: $Exports<'lint-staged/src/resolveGitDir'> 112 | } 113 | declare module 'lint-staged/src/resolveTaskFn.js' { 114 | declare module.exports: $Exports<'lint-staged/src/resolveTaskFn'> 115 | } 116 | declare module 'lint-staged/src/runAll.js' { 117 | declare module.exports: $Exports<'lint-staged/src/runAll'> 118 | } 119 | -------------------------------------------------------------------------------- /flow-typed/npm/nyc_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4f3f6f1367e1d8c853691dc112540fb9 2 | // flow-typed version: <>/nyc_v^13.1.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'nyc' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'nyc' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'nyc/bin/nyc' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'nyc/bin/wrap' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'nyc/lib/commands/check-coverage' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'nyc/lib/commands/instrument' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'nyc/lib/commands/merge' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'nyc/lib/commands/report' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'nyc/lib/config-util' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'nyc/lib/hash' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'nyc/lib/instrumenters/istanbul' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'nyc/lib/instrumenters/noop' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'nyc/lib/process-args' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'nyc/lib/process' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'nyc/lib/self-coverage-helper' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'nyc/lib/source-maps' { 78 | declare module.exports: any 79 | } 80 | 81 | // Filename aliases 82 | declare module 'nyc/bin/nyc.js' { 83 | declare module.exports: $Exports<'nyc/bin/nyc'> 84 | } 85 | declare module 'nyc/bin/wrap.js' { 86 | declare module.exports: $Exports<'nyc/bin/wrap'> 87 | } 88 | declare module 'nyc/index' { 89 | declare module.exports: $Exports<'nyc'> 90 | } 91 | declare module 'nyc/index.js' { 92 | declare module.exports: $Exports<'nyc'> 93 | } 94 | declare module 'nyc/lib/commands/check-coverage.js' { 95 | declare module.exports: $Exports<'nyc/lib/commands/check-coverage'> 96 | } 97 | declare module 'nyc/lib/commands/instrument.js' { 98 | declare module.exports: $Exports<'nyc/lib/commands/instrument'> 99 | } 100 | declare module 'nyc/lib/commands/merge.js' { 101 | declare module.exports: $Exports<'nyc/lib/commands/merge'> 102 | } 103 | declare module 'nyc/lib/commands/report.js' { 104 | declare module.exports: $Exports<'nyc/lib/commands/report'> 105 | } 106 | declare module 'nyc/lib/config-util.js' { 107 | declare module.exports: $Exports<'nyc/lib/config-util'> 108 | } 109 | declare module 'nyc/lib/hash.js' { 110 | declare module.exports: $Exports<'nyc/lib/hash'> 111 | } 112 | declare module 'nyc/lib/instrumenters/istanbul.js' { 113 | declare module.exports: $Exports<'nyc/lib/instrumenters/istanbul'> 114 | } 115 | declare module 'nyc/lib/instrumenters/noop.js' { 116 | declare module.exports: $Exports<'nyc/lib/instrumenters/noop'> 117 | } 118 | declare module 'nyc/lib/process-args.js' { 119 | declare module.exports: $Exports<'nyc/lib/process-args'> 120 | } 121 | declare module 'nyc/lib/process.js' { 122 | declare module.exports: $Exports<'nyc/lib/process'> 123 | } 124 | declare module 'nyc/lib/self-coverage-helper.js' { 125 | declare module.exports: $Exports<'nyc/lib/self-coverage-helper'> 126 | } 127 | declare module 'nyc/lib/source-maps.js' { 128 | declare module.exports: $Exports<'nyc/lib/source-maps'> 129 | } 130 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-view-slider", 3 | "version": "4.6.1", 4 | "description": "animates horizontal slide transitions between steps of a wizard or levels of a drilldown", 5 | "sideEffects": false, 6 | "scripts": { 7 | "demo:dev": "webpack-dev-server", 8 | "build:demo": "cross-env NODE_ENV=production BABEL_ENV=es5 webpack", 9 | "predeploy": "yarn build:demo", 10 | "deploy": "gh-pages -d demo", 11 | "tc": "toolchain", 12 | "toolchain": "toolchain", 13 | "test": "toolchain test", 14 | "prepublishOnly": "echo This package is meant to be published by semantic-release from the dist build directory. && exit 1" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/jcoreio/react-view-slider.git" 19 | }, 20 | "keywords": [ 21 | "es2015", 22 | "react", 23 | "skeleton" 24 | ], 25 | "author": "Andy Edwards", 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/jcoreio/react-view-slider/issues" 29 | }, 30 | "homepage": "https://github.com/jcoreio/react-view-slider#readme", 31 | "devDependencies": { 32 | "@babel/core": "^7.24.4", 33 | "@babel/plugin-syntax-flow": "^7.14.5", 34 | "@babel/plugin-transform-react-jsx": "^7.14.9", 35 | "@babel/preset-env": "^7.24.4", 36 | "@babel/preset-flow": "^7.24.1", 37 | "@babel/preset-react": "^7.24.1", 38 | "@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1", 39 | "@jcoreio/toolchain": "^3.10.3", 40 | "@jcoreio/toolchain-circle": "^3.10.3", 41 | "@jcoreio/toolchain-esnext": "^3.10.3", 42 | "@jcoreio/toolchain-flow": "^3.10.3", 43 | "@jcoreio/toolchain-mocha": "^3.10.3", 44 | "@jcoreio/toolchain-react": "^3.10.3", 45 | "@jcoreio/toolchain-semantic-release": "^3.10.3", 46 | "@jcoreio/toolchain-typescript": "^3.10.3", 47 | "@material-ui/core": "^3.9.3", 48 | "@material-ui/icons": "^3.0.2", 49 | "@storybook/storybook-deployer": "^2.2.0", 50 | "@testing-library/react": "^14.1.0", 51 | "@types/inline-style-prefixer": "^5.0.3", 52 | "@types/react": "^18.2.37", 53 | "@types/react-dom": "^18.2.15", 54 | "@typescript-eslint/eslint-plugin": "^7.6.0", 55 | "@typescript-eslint/parser": "^7.6.0", 56 | "babel-loader": "^9.1.3", 57 | "babel-plugin-lodash": "^3.3.4", 58 | "chai": "^4.3.7", 59 | "copy": "^0.3.2", 60 | "core-js": "^3.36.1", 61 | "cross-env": "^5.2.0", 62 | "delay": "^2.0.0", 63 | "eslint": "^8.56.0", 64 | "eslint-config-prettier": "^3.3.0", 65 | "eslint-plugin-flowtype": "^8.0.3", 66 | "eslint-plugin-no-only-tests": "^3.1.0", 67 | "eslint-plugin-react": "^7.32.2", 68 | "flow-bin": "^0.113.0", 69 | "get-node-dimensions": "^1.2.0", 70 | "gh-pages": "^2.0.1", 71 | "global-jsdom": "^9.0.1", 72 | "jsdom": "^22.1.0", 73 | "mocha": "^10.2.0", 74 | "react": "^18.2.0", 75 | "react-dom": "^18.2.0", 76 | "react-hot-loader": "^3.1.3", 77 | "rimraf": "^2.6.0", 78 | "sinon": "^17.0.1", 79 | "typescript": "^5.2.2", 80 | "webpack": "^5.91.0", 81 | "webpack-cli": "^5.1.4", 82 | "webpack-dev-server": "^5.0.4" 83 | }, 84 | "dependencies": { 85 | "@babel/runtime": "^7.18.6", 86 | "inline-style-prefixer": "^4.0.0", 87 | "prop-types": "^15.6.0", 88 | "react-transition-context": "^5.0.0" 89 | }, 90 | "peerDependencies": { 91 | "react": "*" 92 | }, 93 | "main": "dist/index.js", 94 | "module": "dist/index.mjs", 95 | "types": "dist/index.d.ts", 96 | "exports": { 97 | "./package.json": "./dist/package.json", 98 | ".": { 99 | "types": "./dist/index.d.ts", 100 | "import": "./dist/index.mjs", 101 | "default": "./dist/index.js" 102 | }, 103 | "./simple": { 104 | "types": "./dist/simple.d.ts", 105 | "import": "./dist/simple.mjs", 106 | "default": "./dist/simple.js" 107 | } 108 | }, 109 | "engines": { 110 | "node": ">=16" 111 | }, 112 | "packageManager": "pnpm@8.11.0" 113 | } 114 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-eslint_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 46a49498cc3808f3f9846013e1e5cdfd 2 | // flow-typed version: <>/babel-eslint_v^10.0.1/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-eslint' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-eslint' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'babel-eslint/lib/analyze-scope' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'babel-eslint/lib/babylon-to-espree/attachComments' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'babel-eslint/lib/babylon-to-espree/convertComments' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'babel-eslint/lib/babylon-to-espree' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'babel-eslint/lib/babylon-to-espree/toAST' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'babel-eslint/lib/babylon-to-espree/toToken' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'babel-eslint/lib/babylon-to-espree/toTokens' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'babel-eslint/lib' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'babel-eslint/lib/parse-with-scope' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'babel-eslint/lib/parse' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'babel-eslint/lib/visitor-keys' { 70 | declare module.exports: any 71 | } 72 | 73 | // Filename aliases 74 | declare module 'babel-eslint/lib/analyze-scope.js' { 75 | declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'> 76 | } 77 | declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' { 78 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'> 79 | } 80 | declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' { 81 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'> 82 | } 83 | declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' { 84 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'> 85 | } 86 | declare module 'babel-eslint/lib/babylon-to-espree/index' { 87 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree'> 88 | } 89 | declare module 'babel-eslint/lib/babylon-to-espree/index.js' { 90 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree'> 91 | } 92 | declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' { 93 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'> 94 | } 95 | declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' { 96 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'> 97 | } 98 | declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' { 99 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'> 100 | } 101 | declare module 'babel-eslint/lib/index' { 102 | declare module.exports: $Exports<'babel-eslint/lib'> 103 | } 104 | declare module 'babel-eslint/lib/index.js' { 105 | declare module.exports: $Exports<'babel-eslint/lib'> 106 | } 107 | declare module 'babel-eslint/lib/parse-with-scope.js' { 108 | declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'> 109 | } 110 | declare module 'babel-eslint/lib/parse.js' { 111 | declare module.exports: $Exports<'babel-eslint/lib/parse'> 112 | } 113 | declare module 'babel-eslint/lib/visitor-keys.js' { 114 | declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'> 115 | } 116 | -------------------------------------------------------------------------------- /flow-typed/npm/coveralls_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b5bf14146a25198b8f2e81204c82dbcd 2 | // flow-typed version: <>/coveralls_v^3.0.0/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'coveralls' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'coveralls' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'coveralls/bin/coveralls' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'coveralls/fixtures/lib' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'coveralls/lib/convertLcovToCoveralls' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'coveralls/lib/detectLocalGit' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'coveralls/lib/fetchGitData' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'coveralls/lib/getOptions' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'coveralls/lib/handleInput' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'coveralls/lib/logger' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'coveralls/lib/sendToCoveralls' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'coveralls/test/convertLcovToCoveralls' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'coveralls/test/detectLocalGit' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'coveralls/test/fetchGitData' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'coveralls/test/getOptions' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'coveralls/test/handleInput' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'coveralls/test/logger' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'coveralls/test/sendToCoveralls' { 86 | declare module.exports: any 87 | } 88 | 89 | // Filename aliases 90 | declare module 'coveralls/bin/coveralls.js' { 91 | declare module.exports: $Exports<'coveralls/bin/coveralls'> 92 | } 93 | declare module 'coveralls/fixtures/lib/index' { 94 | declare module.exports: $Exports<'coveralls/fixtures/lib'> 95 | } 96 | declare module 'coveralls/fixtures/lib/index.js' { 97 | declare module.exports: $Exports<'coveralls/fixtures/lib'> 98 | } 99 | declare module 'coveralls/index' { 100 | declare module.exports: $Exports<'coveralls'> 101 | } 102 | declare module 'coveralls/index.js' { 103 | declare module.exports: $Exports<'coveralls'> 104 | } 105 | declare module 'coveralls/lib/convertLcovToCoveralls.js' { 106 | declare module.exports: $Exports<'coveralls/lib/convertLcovToCoveralls'> 107 | } 108 | declare module 'coveralls/lib/detectLocalGit.js' { 109 | declare module.exports: $Exports<'coveralls/lib/detectLocalGit'> 110 | } 111 | declare module 'coveralls/lib/fetchGitData.js' { 112 | declare module.exports: $Exports<'coveralls/lib/fetchGitData'> 113 | } 114 | declare module 'coveralls/lib/getOptions.js' { 115 | declare module.exports: $Exports<'coveralls/lib/getOptions'> 116 | } 117 | declare module 'coveralls/lib/handleInput.js' { 118 | declare module.exports: $Exports<'coveralls/lib/handleInput'> 119 | } 120 | declare module 'coveralls/lib/logger.js' { 121 | declare module.exports: $Exports<'coveralls/lib/logger'> 122 | } 123 | declare module 'coveralls/lib/sendToCoveralls.js' { 124 | declare module.exports: $Exports<'coveralls/lib/sendToCoveralls'> 125 | } 126 | declare module 'coveralls/test/convertLcovToCoveralls.js' { 127 | declare module.exports: $Exports<'coveralls/test/convertLcovToCoveralls'> 128 | } 129 | declare module 'coveralls/test/detectLocalGit.js' { 130 | declare module.exports: $Exports<'coveralls/test/detectLocalGit'> 131 | } 132 | declare module 'coveralls/test/fetchGitData.js' { 133 | declare module.exports: $Exports<'coveralls/test/fetchGitData'> 134 | } 135 | declare module 'coveralls/test/getOptions.js' { 136 | declare module.exports: $Exports<'coveralls/test/getOptions'> 137 | } 138 | declare module 'coveralls/test/handleInput.js' { 139 | declare module.exports: $Exports<'coveralls/test/handleInput'> 140 | } 141 | declare module 'coveralls/test/logger.js' { 142 | declare module.exports: $Exports<'coveralls/test/logger'> 143 | } 144 | declare module 'coveralls/test/sendToCoveralls.js' { 145 | declare module.exports: $Exports<'coveralls/test/sendToCoveralls'> 146 | } 147 | -------------------------------------------------------------------------------- /flow-typed/npm/eslint-watch_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 07b7c3dba06ef0add659f7000262055e 2 | // flow-typed version: <>/eslint-watch_v^4.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'eslint-watch' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'eslint-watch' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'eslint-watch/build/arg-parser' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'eslint-watch/build/eslint/cli' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'eslint-watch/build/eslint/help' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'eslint-watch/build/executor' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'eslint-watch/build/formatters/helpers/characters' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'eslint-watch/build/formatters/helpers/clear-terminal' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'eslint-watch/build/formatters/helpers/error-warning' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'eslint-watch/build/formatters/helpers/success' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'eslint-watch/build/formatters/simple-detail' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'eslint-watch/build/formatters/simple-success' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'eslint-watch/build/formatters/simple' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'eslint-watch/build' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'eslint-watch/build/logger' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'eslint-watch/build/options' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'eslint-watch/build/settings' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'eslint-watch/build/watcher' { 86 | declare module.exports: any 87 | } 88 | 89 | // Filename aliases 90 | declare module 'eslint-watch/build/arg-parser.js' { 91 | declare module.exports: $Exports<'eslint-watch/build/arg-parser'> 92 | } 93 | declare module 'eslint-watch/build/eslint/cli.js' { 94 | declare module.exports: $Exports<'eslint-watch/build/eslint/cli'> 95 | } 96 | declare module 'eslint-watch/build/eslint/help.js' { 97 | declare module.exports: $Exports<'eslint-watch/build/eslint/help'> 98 | } 99 | declare module 'eslint-watch/build/executor.js' { 100 | declare module.exports: $Exports<'eslint-watch/build/executor'> 101 | } 102 | declare module 'eslint-watch/build/formatters/helpers/characters.js' { 103 | declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/characters'> 104 | } 105 | declare module 'eslint-watch/build/formatters/helpers/clear-terminal.js' { 106 | declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/clear-terminal'> 107 | } 108 | declare module 'eslint-watch/build/formatters/helpers/error-warning.js' { 109 | declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/error-warning'> 110 | } 111 | declare module 'eslint-watch/build/formatters/helpers/success.js' { 112 | declare module.exports: $Exports<'eslint-watch/build/formatters/helpers/success'> 113 | } 114 | declare module 'eslint-watch/build/formatters/simple-detail.js' { 115 | declare module.exports: $Exports<'eslint-watch/build/formatters/simple-detail'> 116 | } 117 | declare module 'eslint-watch/build/formatters/simple-success.js' { 118 | declare module.exports: $Exports<'eslint-watch/build/formatters/simple-success'> 119 | } 120 | declare module 'eslint-watch/build/formatters/simple.js' { 121 | declare module.exports: $Exports<'eslint-watch/build/formatters/simple'> 122 | } 123 | declare module 'eslint-watch/build/index' { 124 | declare module.exports: $Exports<'eslint-watch/build'> 125 | } 126 | declare module 'eslint-watch/build/index.js' { 127 | declare module.exports: $Exports<'eslint-watch/build'> 128 | } 129 | declare module 'eslint-watch/build/logger.js' { 130 | declare module.exports: $Exports<'eslint-watch/build/logger'> 131 | } 132 | declare module 'eslint-watch/build/options.js' { 133 | declare module.exports: $Exports<'eslint-watch/build/options'> 134 | } 135 | declare module 'eslint-watch/build/settings.js' { 136 | declare module.exports: $Exports<'eslint-watch/build/settings'> 137 | } 138 | declare module 'eslint-watch/build/watcher.js' { 139 | declare module.exports: $Exports<'eslint-watch/build/watcher'> 140 | } 141 | -------------------------------------------------------------------------------- /flow-typed/npm/enzyme_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1b68a1969e8305bf53fbaa98b4a5aaae 2 | // flow-typed version: f7ac3b9713/enzyme_v3.x.x/flow_>=v0.104.x 3 | 4 | declare module 'enzyme' { 5 | declare type PredicateFunction> = ( 6 | wrapper: T, 7 | index: number 8 | ) => boolean 9 | declare type UntypedSelector = 10 | | string 11 | | { [key: string]: number | string | boolean, ... } 12 | declare type EnzymeSelector = UntypedSelector | React$ElementType 13 | 14 | // CheerioWrapper is a type alias for an actual cheerio instance 15 | // TODO: Reference correct type from cheerio's type declarations 16 | declare type CheerioWrapper = any 17 | 18 | declare class Wrapper { 19 | equals(node: React$Element): boolean; 20 | find(selector: UntypedSelector): this; 21 | find(selector: T): ReactWrapper; 22 | findWhere(predicate: PredicateFunction): this; 23 | filter(selector: UntypedSelector): this; 24 | filter(selector: T): ReactWrapper; 25 | filterWhere(predicate: PredicateFunction): this; 26 | hostNodes(): this; 27 | contains(nodes: React$Node): boolean; 28 | containsMatchingElement(node: React$Node): boolean; 29 | containsAllMatchingElements(nodes: React$Node): boolean; 30 | containsAnyMatchingElements(nodes: React$Node): boolean; 31 | dive(option?: { context?: Object, ... }): this; 32 | exists(selector?: EnzymeSelector): boolean; 33 | isEmptyRender(): boolean; 34 | matchesElement(node: React$Node): boolean; 35 | hasClass(className: string): boolean; 36 | is(selector: EnzymeSelector): boolean; 37 | isEmpty(): boolean; 38 | not(selector: EnzymeSelector): this; 39 | children(selector?: UntypedSelector): this; 40 | children(selector: T): ReactWrapper; 41 | childAt(index: number): this; 42 | parents(selector?: UntypedSelector): this; 43 | parents(selector: T): ReactWrapper; 44 | parent(): this; 45 | closest(selector: UntypedSelector): this; 46 | closest(selector: T): ReactWrapper; 47 | render(): CheerioWrapper; 48 | renderProp(propName: string): (...args: Array) => this; 49 | unmount(): this; 50 | text(): string; 51 | html(): string; 52 | get(index: number): React$Node; 53 | getDOMNode(): HTMLElement | HTMLInputElement; 54 | at(index: number): this; 55 | first(): this; 56 | last(): this; 57 | state(key?: string): any; 58 | context(key?: string): any; 59 | props(): Object; 60 | prop(key: string): any; 61 | key(): string; 62 | simulate(event: string, ...args: Array): this; 63 | simulateError(error: Error): this; 64 | slice(begin?: number, end?: number): this; 65 | setState(state: { ... }, callback?: () => void): this; 66 | setProps(props: { ... }, callback?: () => void): this; 67 | setContext(context: Object): this; 68 | instance(): React$ElementRef; 69 | update(): this; 70 | debug(options?: Object): string; 71 | type(): string | Function | null; 72 | name(): string; 73 | forEach(fn: (node: this, index: number) => mixed): this; 74 | map(fn: (node: this, index: number) => T): Array; 75 | reduce( 76 | fn: (value: T, node: this, index: number) => T, 77 | initialValue?: T 78 | ): Array; 79 | reduceRight( 80 | fn: (value: T, node: this, index: number) => T, 81 | initialValue?: T 82 | ): Array; 83 | some(selector: EnzymeSelector): boolean; 84 | someWhere(predicate: PredicateFunction): boolean; 85 | every(selector: EnzymeSelector): boolean; 86 | everyWhere(predicate: PredicateFunction): boolean; 87 | length: number; 88 | } 89 | 90 | declare class ReactWrapper extends Wrapper { 91 | constructor( 92 | nodes: React$Element, 93 | root: any, 94 | options?: ?Object 95 | ): ReactWrapper; 96 | mount(): this; 97 | ref(refName: string): this; 98 | detach(): void; 99 | } 100 | 101 | declare class ShallowWrapper extends Wrapper { 102 | constructor( 103 | nodes: React$Element, 104 | root: any, 105 | options?: ?Object 106 | ): ShallowWrapper; 107 | equals(node: React$Node): boolean; 108 | shallow(options?: { context?: Object, ... }): ShallowWrapper; 109 | getElement(): React$Node; 110 | getElements(): Array; 111 | } 112 | 113 | declare function shallow( 114 | node: React$Element, 115 | options?: { 116 | context?: Object, 117 | disableLifecycleMethods?: boolean, 118 | ... 119 | } 120 | ): ShallowWrapper 121 | declare function mount( 122 | node: React$Element, 123 | options?: { 124 | context?: Object, 125 | attachTo?: HTMLElement, 126 | childContextTypes?: Object, 127 | ... 128 | } 129 | ): ReactWrapper 130 | declare function render( 131 | node: React$Node, 132 | options?: { context?: Object, ... } 133 | ): CheerioWrapper 134 | 135 | declare module.exports: { 136 | configure(options: { 137 | Adapter?: any, 138 | disableLifecycleMethods?: boolean, 139 | ... 140 | }): void, 141 | render: typeof render, 142 | mount: typeof mount, 143 | shallow: typeof shallow, 144 | ShallowWrapper: typeof ShallowWrapper, 145 | ReactWrapper: typeof ReactWrapper, 146 | ... 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /flow-typed/npm/@commitlint/cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5c5f14d4d6dd11897f69d1de58d39b74 2 | // flow-typed version: <>/@commitlint/cli_v^6.0.2/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@commitlint/cli' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@commitlint/cli' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@commitlint/cli/fixtures/empty/commitlint.config' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module '@commitlint/cli/fixtures/extends-root/extended' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module '@commitlint/cli/fixtures/parser-preset/parser-preset' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module '@commitlint/cli/fixtures/signoff/commitlint.config' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module '@commitlint/cli/fixtures/simple/commitlint.config' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module '@commitlint/cli/fixtures/specify-config-file/commitlint.config' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module '@commitlint/cli/fixtures/specify-config-file/config/commitlint.config' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module '@commitlint/cli/lib/cli' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module '@commitlint/cli/lib/cli.test' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module '@commitlint/cli/lib/help' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module '@commitlint/cli/src/cli' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module '@commitlint/cli/src/cli.test' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module '@commitlint/cli/src/help' { 94 | declare module.exports: any 95 | } 96 | 97 | // Filename aliases 98 | declare module '@commitlint/cli/fixtures/empty/commitlint.config.js' { 99 | declare module.exports: $Exports<'@commitlint/cli/fixtures/empty/commitlint.config'> 100 | } 101 | declare module '@commitlint/cli/fixtures/extends-root/extended.js' { 102 | declare module.exports: $Exports<'@commitlint/cli/fixtures/extends-root/extended'> 103 | } 104 | declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' { 105 | declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/commitlint.config'> 106 | } 107 | declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' { 108 | declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'> 109 | } 110 | declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config.js' { 111 | declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'> 112 | } 113 | declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' { 114 | declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'> 115 | } 116 | declare module '@commitlint/cli/fixtures/parser-preset/commitlint.config.js' { 117 | declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/commitlint.config'> 118 | } 119 | declare module '@commitlint/cli/fixtures/parser-preset/parser-preset.js' { 120 | declare module.exports: $Exports<'@commitlint/cli/fixtures/parser-preset/parser-preset'> 121 | } 122 | declare module '@commitlint/cli/fixtures/signoff/commitlint.config.js' { 123 | declare module.exports: $Exports<'@commitlint/cli/fixtures/signoff/commitlint.config'> 124 | } 125 | declare module '@commitlint/cli/fixtures/simple/commitlint.config.js' { 126 | declare module.exports: $Exports<'@commitlint/cli/fixtures/simple/commitlint.config'> 127 | } 128 | declare module '@commitlint/cli/fixtures/specify-config-file/commitlint.config.js' { 129 | declare module.exports: $Exports<'@commitlint/cli/fixtures/specify-config-file/commitlint.config'> 130 | } 131 | declare module '@commitlint/cli/fixtures/specify-config-file/config/commitlint.config.js' { 132 | declare module.exports: $Exports<'@commitlint/cli/fixtures/specify-config-file/config/commitlint.config'> 133 | } 134 | declare module '@commitlint/cli/index' { 135 | declare module.exports: $Exports<'@commitlint/cli'> 136 | } 137 | declare module '@commitlint/cli/index.js' { 138 | declare module.exports: $Exports<'@commitlint/cli'> 139 | } 140 | declare module '@commitlint/cli/lib/cli.js' { 141 | declare module.exports: $Exports<'@commitlint/cli/lib/cli'> 142 | } 143 | declare module '@commitlint/cli/lib/cli.test.js' { 144 | declare module.exports: $Exports<'@commitlint/cli/lib/cli.test'> 145 | } 146 | declare module '@commitlint/cli/lib/help.js' { 147 | declare module.exports: $Exports<'@commitlint/cli/lib/help'> 148 | } 149 | declare module '@commitlint/cli/src/cli.js' { 150 | declare module.exports: $Exports<'@commitlint/cli/src/cli'> 151 | } 152 | declare module '@commitlint/cli/src/cli.test.js' { 153 | declare module.exports: $Exports<'@commitlint/cli/src/cli.test'> 154 | } 155 | declare module '@commitlint/cli/src/help.js' { 156 | declare module.exports: $Exports<'@commitlint/cli/src/help'> 157 | } 158 | -------------------------------------------------------------------------------- /flow-typed/npm/semantic-release_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 9249c9dc890357208e41755dea9c53a1 2 | // flow-typed version: <>/semantic-release_v^15.13.3/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'semantic-release' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'semantic-release' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'semantic-release/bin/semantic-release' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'semantic-release/cli' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'semantic-release/lib/definitions/constants' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'semantic-release/lib/definitions/errors' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'semantic-release/lib/definitions/plugins' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'semantic-release/lib/get-commits' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'semantic-release/lib/get-config' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'semantic-release/lib/get-error' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'semantic-release/lib/get-git-auth-url' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'semantic-release/lib/get-last-release' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'semantic-release/lib/get-logger' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'semantic-release/lib/get-next-version' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'semantic-release/lib/git' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'semantic-release/lib/hide-sensitive' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'semantic-release/lib/plugins' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'semantic-release/lib/plugins/normalize' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module 'semantic-release/lib/plugins/pipeline' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module 'semantic-release/lib/plugins/utils' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module 'semantic-release/lib/utils' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module 'semantic-release/lib/verify' { 102 | declare module.exports: any 103 | } 104 | 105 | // Filename aliases 106 | declare module 'semantic-release/bin/semantic-release.js' { 107 | declare module.exports: $Exports<'semantic-release/bin/semantic-release'> 108 | } 109 | declare module 'semantic-release/cli.js' { 110 | declare module.exports: $Exports<'semantic-release/cli'> 111 | } 112 | declare module 'semantic-release/index' { 113 | declare module.exports: $Exports<'semantic-release'> 114 | } 115 | declare module 'semantic-release/index.js' { 116 | declare module.exports: $Exports<'semantic-release'> 117 | } 118 | declare module 'semantic-release/lib/definitions/constants.js' { 119 | declare module.exports: $Exports<'semantic-release/lib/definitions/constants'> 120 | } 121 | declare module 'semantic-release/lib/definitions/errors.js' { 122 | declare module.exports: $Exports<'semantic-release/lib/definitions/errors'> 123 | } 124 | declare module 'semantic-release/lib/definitions/plugins.js' { 125 | declare module.exports: $Exports<'semantic-release/lib/definitions/plugins'> 126 | } 127 | declare module 'semantic-release/lib/get-commits.js' { 128 | declare module.exports: $Exports<'semantic-release/lib/get-commits'> 129 | } 130 | declare module 'semantic-release/lib/get-config.js' { 131 | declare module.exports: $Exports<'semantic-release/lib/get-config'> 132 | } 133 | declare module 'semantic-release/lib/get-error.js' { 134 | declare module.exports: $Exports<'semantic-release/lib/get-error'> 135 | } 136 | declare module 'semantic-release/lib/get-git-auth-url.js' { 137 | declare module.exports: $Exports<'semantic-release/lib/get-git-auth-url'> 138 | } 139 | declare module 'semantic-release/lib/get-last-release.js' { 140 | declare module.exports: $Exports<'semantic-release/lib/get-last-release'> 141 | } 142 | declare module 'semantic-release/lib/get-logger.js' { 143 | declare module.exports: $Exports<'semantic-release/lib/get-logger'> 144 | } 145 | declare module 'semantic-release/lib/get-next-version.js' { 146 | declare module.exports: $Exports<'semantic-release/lib/get-next-version'> 147 | } 148 | declare module 'semantic-release/lib/git.js' { 149 | declare module.exports: $Exports<'semantic-release/lib/git'> 150 | } 151 | declare module 'semantic-release/lib/hide-sensitive.js' { 152 | declare module.exports: $Exports<'semantic-release/lib/hide-sensitive'> 153 | } 154 | declare module 'semantic-release/lib/plugins/index' { 155 | declare module.exports: $Exports<'semantic-release/lib/plugins'> 156 | } 157 | declare module 'semantic-release/lib/plugins/index.js' { 158 | declare module.exports: $Exports<'semantic-release/lib/plugins'> 159 | } 160 | declare module 'semantic-release/lib/plugins/normalize.js' { 161 | declare module.exports: $Exports<'semantic-release/lib/plugins/normalize'> 162 | } 163 | declare module 'semantic-release/lib/plugins/pipeline.js' { 164 | declare module.exports: $Exports<'semantic-release/lib/plugins/pipeline'> 165 | } 166 | declare module 'semantic-release/lib/plugins/utils.js' { 167 | declare module.exports: $Exports<'semantic-release/lib/plugins/utils'> 168 | } 169 | declare module 'semantic-release/lib/utils.js' { 170 | declare module.exports: $Exports<'semantic-release/lib/utils'> 171 | } 172 | declare module 'semantic-release/lib/verify.js' { 173 | declare module.exports: $Exports<'semantic-release/lib/verify'> 174 | } 175 | -------------------------------------------------------------------------------- /flow-typed/npm/webpack-dev-server_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1088d91b2823ad35a8252fd18d5e487d 2 | // flow-typed version: <>/webpack-dev-server_v^3.3.1/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'webpack-dev-server' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'webpack-dev-server' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'webpack-dev-server/bin/options' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'webpack-dev-server/bin/webpack-dev-server' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'webpack-dev-server/client/index.bundle' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'webpack-dev-server/client' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'webpack-dev-server/client/live.bundle' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'webpack-dev-server/client/overlay' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'webpack-dev-server/client/socket' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'webpack-dev-server/client/sockjs.bundle' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'webpack-dev-server/client/webpack.config' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'webpack-dev-server/lib/Server' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'webpack-dev-server/lib/utils/addEntries' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'webpack-dev-server/lib/utils/colors' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'webpack-dev-server/lib/utils/createCertificate' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'webpack-dev-server/lib/utils/createConfig' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'webpack-dev-server/lib/utils/createDomain' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'webpack-dev-server/lib/utils/createLogger' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module 'webpack-dev-server/lib/utils/defaultTo' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module 'webpack-dev-server/lib/utils/findPort' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module 'webpack-dev-server/lib/utils/getVersions' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module 'webpack-dev-server/lib/utils/runBonjour' { 102 | declare module.exports: any 103 | } 104 | 105 | declare module 'webpack-dev-server/lib/utils/status' { 106 | declare module.exports: any 107 | } 108 | 109 | declare module 'webpack-dev-server/lib/utils/tryParseInt' { 110 | declare module.exports: any 111 | } 112 | 113 | declare module 'webpack-dev-server/lib/utils/updateCompiler' { 114 | declare module.exports: any 115 | } 116 | 117 | // Filename aliases 118 | declare module 'webpack-dev-server/bin/options.js' { 119 | declare module.exports: $Exports<'webpack-dev-server/bin/options'> 120 | } 121 | declare module 'webpack-dev-server/bin/webpack-dev-server.js' { 122 | declare module.exports: $Exports<'webpack-dev-server/bin/webpack-dev-server'> 123 | } 124 | declare module 'webpack-dev-server/client/index.bundle.js' { 125 | declare module.exports: $Exports<'webpack-dev-server/client/index.bundle'> 126 | } 127 | declare module 'webpack-dev-server/client/index' { 128 | declare module.exports: $Exports<'webpack-dev-server/client'> 129 | } 130 | declare module 'webpack-dev-server/client/index.js' { 131 | declare module.exports: $Exports<'webpack-dev-server/client'> 132 | } 133 | declare module 'webpack-dev-server/client/live.bundle.js' { 134 | declare module.exports: $Exports<'webpack-dev-server/client/live.bundle'> 135 | } 136 | declare module 'webpack-dev-server/client/overlay.js' { 137 | declare module.exports: $Exports<'webpack-dev-server/client/overlay'> 138 | } 139 | declare module 'webpack-dev-server/client/socket.js' { 140 | declare module.exports: $Exports<'webpack-dev-server/client/socket'> 141 | } 142 | declare module 'webpack-dev-server/client/sockjs.bundle.js' { 143 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs.bundle'> 144 | } 145 | declare module 'webpack-dev-server/client/webpack.config.js' { 146 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.config'> 147 | } 148 | declare module 'webpack-dev-server/lib/Server.js' { 149 | declare module.exports: $Exports<'webpack-dev-server/lib/Server'> 150 | } 151 | declare module 'webpack-dev-server/lib/utils/addEntries.js' { 152 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/addEntries'> 153 | } 154 | declare module 'webpack-dev-server/lib/utils/colors.js' { 155 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/colors'> 156 | } 157 | declare module 'webpack-dev-server/lib/utils/createCertificate.js' { 158 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createCertificate'> 159 | } 160 | declare module 'webpack-dev-server/lib/utils/createConfig.js' { 161 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createConfig'> 162 | } 163 | declare module 'webpack-dev-server/lib/utils/createDomain.js' { 164 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createDomain'> 165 | } 166 | declare module 'webpack-dev-server/lib/utils/createLogger.js' { 167 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createLogger'> 168 | } 169 | declare module 'webpack-dev-server/lib/utils/defaultTo.js' { 170 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/defaultTo'> 171 | } 172 | declare module 'webpack-dev-server/lib/utils/findPort.js' { 173 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/findPort'> 174 | } 175 | declare module 'webpack-dev-server/lib/utils/getVersions.js' { 176 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/getVersions'> 177 | } 178 | declare module 'webpack-dev-server/lib/utils/runBonjour.js' { 179 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/runBonjour'> 180 | } 181 | declare module 'webpack-dev-server/lib/utils/status.js' { 182 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/status'> 183 | } 184 | declare module 'webpack-dev-server/lib/utils/tryParseInt.js' { 185 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/tryParseInt'> 186 | } 187 | declare module 'webpack-dev-server/lib/utils/updateCompiler.js' { 188 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/updateCompiler'> 189 | } 190 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-view-slider 2 | 3 | [![CircleCI](https://circleci.com/gh/jcoreio/react-view-slider.svg?style=svg)](https://circleci.com/gh/jcoreio/react-view-slider) 4 | [![Coverage Status](https://codecov.io/gh/jcoreio/react-view-slider)](https://codecov.io/gh/jcoreio/react-view-slider) 5 | [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) 6 | [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) 7 | [![npm version](https://badge.fury.io/js/react-view-slider.svg)](https://badge.fury.io/js/react-view-slider) 8 | 9 | Not another carousel; animates horizontal slide transitions between steps of 10 | a form or levels of a drilldown. 11 | 12 | # Table of Contents 13 | 14 | - [Usage](#usage) 15 | - [Props](#props) 16 | - [`SimpleViewSlider`](#simpleviewslider) 17 | 18 | ## Usage 19 | 20 | ```sh 21 | npm install --save react-view-slider 22 | ``` 23 | 24 | ```js 25 | import React from 'react' 26 | import ReactDOM from 'react-dom' 27 | import ViewSlider from 'react-view-slider' 28 | 29 | // This function renders the view at the given index. 30 | const renderView = ({ index, active, transitionState }) => ( 31 |
32 |

View {index}

33 |

I am {active ? 'active' : 'inactive'}

34 |

transitionState: {transitionState}

35 |
36 | ) 37 | 38 | // activeView specifies which view should currently be showing. Whenever you change it, ViewSlider will make the 39 | // view at the new activeView horizontally slide into view. 40 | 41 | ReactDOM.render( 42 | , 48 | document.getElementById('root') 49 | ) 50 | ``` 51 | 52 | ## Props 53 | 54 | ##### `renderView: (props: ViewProps) => React.Node` **(required)** 55 | 56 | This function renders each view. `ViewSlider` will call it with the following `props`: 57 | 58 | - `index: number` - the index of the view (starting at 0) 59 | - `active: boolean` - whether the view should currently be showing 60 | - `transitionState: 'in' | 'out' | 'entering' | 'leaving'` - the view's transition state 61 | 62 | ##### `numViews: number` **(required)** 63 | 64 | The number of views present. `ViewSlider` will only render all views when transitioning; when idle, it will 65 | only render the active view. 66 | 67 | ##### `activeView: number` **(required)** 68 | 69 | The index of the view that should be showing. Whenever you change this, `ViewSlider` will animate a horizontal slide 70 | transition to the view at the new index. 71 | 72 | ##### `spacing: number` (default: `1`) 73 | 74 | How much horizontal space to put between the views. `spacing={1.5}` will space 75 | the views apart by 50% of the width, `spacing={2}` will space the views apart 76 | by 100% of the width, etc. 77 | 78 | Views without much horizontal padding or margin of their own will look jammed 79 | together during transitions with a default `spacing` of 1, so in that case 80 | you'll want to increase the `spacing`. 81 | 82 | A negative number will reverse the view order; 83 | `spacing={-1.5}` will arrange views from right to left with 50% width view 84 | spacing. You can also use the `rtl` property for this, especially if you want 85 | the views to inherit `direction: rtl` for their own content layout. 86 | 87 | ##### `rtl: boolean` (default: `false`) 88 | 89 | Whether to use right-to-left layout. This will reverse the view order and apply 90 | `direction: rtl` to the viewport style, and each view will inherit that layout 91 | direction for its own content as well. 92 | 93 | To reverse the view order without 94 | changing layout direction of each view's content, you can use a negative number 95 | for `spacing`. 96 | 97 | ##### `keepViewsMounted: boolean` (default: `false`) 98 | 99 | If `true`, `ViewSlider` will keep all views mounted after transitioning, not just the active view. 100 | You may want to use this if there is a noticeable lag while other views mount at the beginning of a transition. 101 | However, it disables height animation and will cause the height of `ViewSlider` to be the max of all views' heights, 102 | so you will get best results if you also use `fillParent={true}`. 103 | 104 | ##### `animateHeight: boolean` (default: `true`) 105 | 106 | If truthy, `ViewSlider` will animate its height to match the height of the view at `activeView`. 107 | 108 | ##### `transitionDuration: number` (default: `500`) 109 | 110 | The duration of the transition between views. 111 | 112 | ##### `transitionTimingFunction: string` (default: `'ease'`) 113 | 114 | The timing function for the transition between views. 115 | 116 | ##### `onSlideTransitionEnd: () => any` 117 | 118 | If given, will be called when the slide transition ends. 119 | 120 | ##### `prefixer: Prefixer` 121 | 122 | If given, overrides the `inline-style-prefixer` used to autoprefix inline styles. 123 | 124 | ##### `fillParent: boolean` (default: `false`) 125 | 126 | If truthy, `ViewSlider` will use absolute positioning on itself and its views to fill its parent element. 127 | 128 | ##### `className: string` 129 | 130 | Any extra class names to add to the root element. 131 | 132 | ##### `style: Object` 133 | 134 | Extra inline styles to add to the root element. 135 | 136 | ##### `viewportClassName: string` 137 | 138 | Any extra class names to add to the inner "viewport" element. 139 | 140 | ##### `viewportStyle: Object` 141 | 142 | Extra inline styles to add to the inner "viewport" element. 143 | 144 | ##### `viewStyle: Object` 145 | 146 | Extra inline styles to add to the view wrapper elements. 147 | 148 | ##### `innerViewWrapperStyle: Object` 149 | 150 | Extra inline styles to add to the inner div between the `viewStyle` div and your 151 | view content element. (The inner div was added to ensure perfect height 152 | animation.) 153 | 154 | ##### `rootRef: (node: ?HTMLDivElement) => any` 155 | 156 | The `ref` to pass to the root `
` element rendered by `ViewSlider`. 157 | 158 | ##### `viewportRef: (node: ?HTMLDivElement) => any` 159 | 160 | The `ref` to pass to the viewport `
` element rendered inside the root `
` by `ViewSlider`. 161 | 162 | ## `SimpleViewSlider` 163 | 164 | This is a wrapper for `ViewSlider` that takes a single child element. It renders the `ViewSlider` with the child's key 165 | (converted to a number) as the `activeView` and caches past child elements by key. 166 | 167 | ### Example 168 | 169 | ```js 170 | import SimpleViewSlider from 'react-view-slider/simple' 171 | 172 | ReactDOM.render( 173 | 174 |
This is view 0
175 |
, 176 | document.getElementById('root') 177 | ) 178 | 179 | // Rendering a child with a different key will trigger the transition. 180 | ReactDOM.render( 181 | 182 |
This is view 1
183 |
, 184 | document.getElementById('root') 185 | ) 186 | ``` 187 | 188 | ### Additional props 189 | 190 | ##### `keepPrecedingViewsMounted: boolean` (default: `false`) 191 | 192 | If `true`, `SimpleViewSlider` will keep views preceding the active view mounted, but not views following the active view. 193 | (As mentioned above, the order is determined by the `children`'s `key`s.) 194 | -------------------------------------------------------------------------------- /demo/examples/SignupDemo.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @flow 3 | * @prettier 4 | */ 5 | 6 | import * as React from 'react' 7 | import Link from '@material-ui/core/Link' 8 | import Button from '@material-ui/core/Button' 9 | import TextField from '@material-ui/core/TextField' 10 | import Typography from '@material-ui/core/Typography' 11 | import Paper from '@material-ui/core/Paper' 12 | import ViewSlider from '../../src/simple' 13 | import ArrowBack from '@material-ui/icons/ArrowBack' 14 | import ArrowForward from '@material-ui/icons/ArrowForward' 15 | import withStyles from '@material-ui/core/styles/withStyles' 16 | import { useAutofocusRef } from 'react-transition-context' 17 | 18 | type Classes = $Call< 19 | ((theme: any) => T) => $ObjMap string>, 20 | typeof styles 21 | > 22 | 23 | export type Props = { 24 | classes: Classes, 25 | } 26 | 27 | const styles = (theme: any) => ({ 28 | root: { 29 | margin: '32px auto', 30 | }, 31 | contentHolder: {}, 32 | backButton: { 33 | marginTop: 32, 34 | marginBottom: 8, 35 | }, 36 | paper: {}, 37 | form: { 38 | margin: 32, 39 | [theme.breakpoints.down('xs')]: { 40 | margin: 16, 41 | }, 42 | '& button[type="submit"]': { 43 | alignSelf: 'flex-start', 44 | marginTop: 32, 45 | }, 46 | }, 47 | h5: { 48 | marginBottom: 32, 49 | '& > em': { 50 | fontStyle: 'initial', 51 | fontWeight: 'bold', 52 | color: theme.palette.primary.main, 53 | }, 54 | }, 55 | }) 56 | 57 | const SignupDemo = ({ classes }: Props): React.Node => { 58 | const [step, setStep] = React.useState(0) 59 | let content 60 | const Step = steps[step] 61 | if (Step) { 62 | content = ( 63 | { 67 | e.preventDefault() 68 | setStep(step + 1) 69 | }} 70 | /> 71 | ) 72 | } 73 | return ( 74 |
75 | Signup Form Example 76 | 83 |
84 | 85 | 86 | {content} 87 | 88 | 89 |
90 |
91 | ) 92 | } 93 | 94 | export default withStyles(styles)(SignupDemo) 95 | 96 | type FormProps = { 97 | classes: Classes, 98 | onSubmit: (e: Event) => any, 99 | } 100 | 101 | const EmailForm = ({ classes, onSubmit }: FormProps): React.Node => { 102 | const autofocusRef = useAutofocusRef() 103 | return ( 104 |
105 | 106 | Welcome, enter your email address to get started. 107 | 108 | 115 | 118 | 119 | ) 120 | } 121 | 122 | const VerificationCodeForm = ({ classes, onSubmit }: FormProps): React.Node => { 123 | const autofocusRef = useAutofocusRef() 124 | return ( 125 |
126 | 127 | Next, enter the code we sent to you. 128 | 129 | 136 | 139 | 140 | ) 141 | } 142 | 143 | const OrganizationForm = ({ classes, onSubmit }: FormProps): React.Node => { 144 | const autofocusRef = useAutofocusRef() 145 | return ( 146 |
147 | 148 | Success! Next, set up your organization. 149 | 150 | 157 | 163 | 166 | 167 | ) 168 | } 169 | 170 | const PasswordForm = ({ classes, onSubmit }: FormProps): React.Node => { 171 | const autofocusRef = useAutofocusRef() 172 | return ( 173 |
174 | 175 | Almost Done! Finally, create a password. 176 | 177 | 184 | 190 | 193 | 194 | ) 195 | } 196 | 197 | const DoneForm = ({ classes, onSubmit }: FormProps): React.Node => ( 198 |
199 | 200 | Thank you for viewing the demo! 201 | 202 | Additional libraries to check out: 203 | 204 | 205 | react-router-drilldown 206 | 207 | 208 | 209 | uses react-view-slider to animate transitions between routes 210 | in react-router. 211 | 212 | 213 | 214 | react-fader 215 | 216 | 217 | 218 | component that fades out its old child, then fades in its new child when 219 | its children change. It can also optionally animate its height and/or 220 | width from one child{"'"}s size to the other. Also works well with{' '} 221 | react-router! 222 | 223 | 224 | 225 | react-transition-context 226 | 227 | 228 | 229 | Allows you to perform effects when transitions in an ancestor component 230 | start or end (used to automatically focus the inputs in this demo). Also 231 | works with react-router-drilldown and{' '} 232 | react-fader! 233 | 234 |
235 | ) 236 | 237 | const steps = [ 238 | EmailForm, 239 | VerificationCodeForm, 240 | OrganizationForm, 241 | PasswordForm, 242 | DoneForm, 243 | ] 244 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/preset-env_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d937d6f12a74816213de415c61a624e8 2 | // flow-typed version: <>/@babel/preset-env_v^7.1.6/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/preset-env' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/preset-env' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/preset-env/data/built-ins.json' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module '@babel/preset-env/data/corejs2-built-in-features' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module '@babel/preset-env/data/plugin-features' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module '@babel/preset-env/data/shipped-proposals' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module '@babel/preset-env/data/unreleased-labels' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module '@babel/preset-env/lib/available-plugins' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module '@babel/preset-env/lib/debug' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module '@babel/preset-env/lib/filter-items' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module '@babel/preset-env/lib/get-option-specific-excludes' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module '@babel/preset-env/lib' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module '@babel/preset-env/lib/module-transformations' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module '@babel/preset-env/lib/normalize-options' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module '@babel/preset-env/lib/options' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module '@babel/preset-env/lib/polyfills/corejs2/built-in-definitions' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module '@babel/preset-env/lib/polyfills/corejs2/entry-plugin' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module '@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module '@babel/preset-env/lib/polyfills/corejs2/usage-plugin' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module '@babel/preset-env/lib/polyfills/corejs3/built-in-definitions' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module '@babel/preset-env/lib/polyfills/corejs3/entry-plugin' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module '@babel/preset-env/lib/polyfills/corejs3/shipped-proposals' { 102 | declare module.exports: any 103 | } 104 | 105 | declare module '@babel/preset-env/lib/polyfills/corejs3/usage-plugin' { 106 | declare module.exports: any 107 | } 108 | 109 | declare module '@babel/preset-env/lib/polyfills/regenerator/entry-plugin' { 110 | declare module.exports: any 111 | } 112 | 113 | declare module '@babel/preset-env/lib/polyfills/regenerator/usage-plugin' { 114 | declare module.exports: any 115 | } 116 | 117 | declare module '@babel/preset-env/lib/targets-parser' { 118 | declare module.exports: any 119 | } 120 | 121 | declare module '@babel/preset-env/lib/utils' { 122 | declare module.exports: any 123 | } 124 | 125 | // Filename aliases 126 | declare module '@babel/preset-env/data/built-ins.json.js' { 127 | declare module.exports: $Exports<'@babel/preset-env/data/built-ins.json'> 128 | } 129 | declare module '@babel/preset-env/data/corejs2-built-in-features.js' { 130 | declare module.exports: $Exports<'@babel/preset-env/data/corejs2-built-in-features'> 131 | } 132 | declare module '@babel/preset-env/data/plugin-features.js' { 133 | declare module.exports: $Exports<'@babel/preset-env/data/plugin-features'> 134 | } 135 | declare module '@babel/preset-env/data/shipped-proposals.js' { 136 | declare module.exports: $Exports<'@babel/preset-env/data/shipped-proposals'> 137 | } 138 | declare module '@babel/preset-env/data/unreleased-labels.js' { 139 | declare module.exports: $Exports<'@babel/preset-env/data/unreleased-labels'> 140 | } 141 | declare module '@babel/preset-env/lib/available-plugins.js' { 142 | declare module.exports: $Exports<'@babel/preset-env/lib/available-plugins'> 143 | } 144 | declare module '@babel/preset-env/lib/debug.js' { 145 | declare module.exports: $Exports<'@babel/preset-env/lib/debug'> 146 | } 147 | declare module '@babel/preset-env/lib/filter-items.js' { 148 | declare module.exports: $Exports<'@babel/preset-env/lib/filter-items'> 149 | } 150 | declare module '@babel/preset-env/lib/get-option-specific-excludes.js' { 151 | declare module.exports: $Exports<'@babel/preset-env/lib/get-option-specific-excludes'> 152 | } 153 | declare module '@babel/preset-env/lib/index' { 154 | declare module.exports: $Exports<'@babel/preset-env/lib'> 155 | } 156 | declare module '@babel/preset-env/lib/index.js' { 157 | declare module.exports: $Exports<'@babel/preset-env/lib'> 158 | } 159 | declare module '@babel/preset-env/lib/module-transformations.js' { 160 | declare module.exports: $Exports<'@babel/preset-env/lib/module-transformations'> 161 | } 162 | declare module '@babel/preset-env/lib/normalize-options.js' { 163 | declare module.exports: $Exports<'@babel/preset-env/lib/normalize-options'> 164 | } 165 | declare module '@babel/preset-env/lib/options.js' { 166 | declare module.exports: $Exports<'@babel/preset-env/lib/options'> 167 | } 168 | declare module '@babel/preset-env/lib/polyfills/corejs2/built-in-definitions.js' { 169 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/built-in-definitions'> 170 | } 171 | declare module '@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js' { 172 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/entry-plugin'> 173 | } 174 | declare module '@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default.js' { 175 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default'> 176 | } 177 | declare module '@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js' { 178 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs2/usage-plugin'> 179 | } 180 | declare module '@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js' { 181 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/built-in-definitions'> 182 | } 183 | declare module '@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js' { 184 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/entry-plugin'> 185 | } 186 | declare module '@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js' { 187 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/shipped-proposals'> 188 | } 189 | declare module '@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js' { 190 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/corejs3/usage-plugin'> 191 | } 192 | declare module '@babel/preset-env/lib/polyfills/regenerator/entry-plugin.js' { 193 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/regenerator/entry-plugin'> 194 | } 195 | declare module '@babel/preset-env/lib/polyfills/regenerator/usage-plugin.js' { 196 | declare module.exports: $Exports<'@babel/preset-env/lib/polyfills/regenerator/usage-plugin'> 197 | } 198 | declare module '@babel/preset-env/lib/targets-parser.js' { 199 | declare module.exports: $Exports<'@babel/preset-env/lib/targets-parser'> 200 | } 201 | declare module '@babel/preset-env/lib/utils.js' { 202 | declare module.exports: $Exports<'@babel/preset-env/lib/utils'> 203 | } 204 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: ec743a1b5c1197353e0849812930f32a 2 | // flow-typed version: c6154227d1/prettier_v1.x.x/flow_>=v0.104.x 3 | 4 | declare module 'prettier' { 5 | declare export type AST = { [key: string]: any, ... } 6 | declare export type Doc = { 7 | [key: string]: any, 8 | ... 9 | } 10 | declare export type FastPath = { 11 | stack: any[], 12 | getName(): null | string | number | Symbol, 13 | getValue(): T, 14 | getNode(count?: number): null | T, 15 | getParentNode(count?: number): null | T, 16 | call( 17 | callback: (path: FastPath) => U, 18 | ...names: Array 19 | ): U, 20 | each( 21 | callback: (path: FastPath) => void, 22 | ...names: Array 23 | ): void, 24 | map( 25 | callback: (path: FastPath, index: number) => U, 26 | ...names: Array 27 | ): U[], 28 | ... 29 | } 30 | 31 | declare export type PrettierParserName = 32 | | 'babylon' // deprecated 33 | | 'babel' 34 | | 'babel-flow' 35 | | 'flow' 36 | | 'typescript' 37 | | 'postcss' // deprecated 38 | | 'css' 39 | | 'less' 40 | | 'scss' 41 | | 'json' 42 | | 'json5' 43 | | 'json-stringify' 44 | | 'graphql' 45 | | 'markdown' 46 | | 'vue' 47 | | 'html' 48 | | 'angular' 49 | | 'mdx' 50 | | 'yaml' 51 | 52 | declare export type PrettierParser = { 53 | [name: PrettierParserName]: ( 54 | text: string, 55 | options?: { [key: string]: any, ... } 56 | ) => AST, 57 | ... 58 | } 59 | 60 | declare export type CustomParser = ( 61 | text: string, 62 | parsers: PrettierParser, 63 | options: Options 64 | ) => AST 65 | 66 | declare export type Options = {| 67 | printWidth?: number, 68 | tabWidth?: number, 69 | useTabs?: boolean, 70 | semi?: boolean, 71 | singleQuote?: boolean, 72 | trailingComma?: 'none' | 'es5' | 'all', 73 | bracketSpacing?: boolean, 74 | jsxBracketSameLine?: boolean, 75 | arrowParens?: 'avoid' | 'always', 76 | rangeStart?: number, 77 | rangeEnd?: number, 78 | parser?: PrettierParserName | CustomParser, 79 | filepath?: string, 80 | requirePragma?: boolean, 81 | insertPragma?: boolean, 82 | proseWrap?: 'always' | 'never' | 'preserve', 83 | plugins?: Array, 84 | |} 85 | 86 | declare export type Plugin = { 87 | languages: SupportLanguage, 88 | parsers: { [parserName: string]: Parser, ... }, 89 | printers: { [astFormat: string]: Printer, ... }, 90 | options?: SupportOption[], 91 | ... 92 | } 93 | 94 | declare export type Parser = { 95 | parse: ( 96 | text: string, 97 | parsers: { [parserName: string]: Parser, ... }, 98 | options: { [key: string]: any, ... } 99 | ) => AST, 100 | astFormat: string, 101 | hasPragma?: (text: string) => boolean, 102 | locStart: (node: any) => number, 103 | locEnd: (node: any) => number, 104 | preprocess?: (text: string, options: { [key: string]: any, ... }) => string, 105 | ... 106 | } 107 | 108 | declare export type Printer = { 109 | print: ( 110 | path: FastPath<>, 111 | options: { [key: string]: any, ... }, 112 | print: (path: FastPath<>) => Doc 113 | ) => Doc, 114 | embed: ( 115 | path: FastPath<>, 116 | print: (path: FastPath<>) => Doc, 117 | textToDoc: (text: string, options: { [key: string]: any, ... }) => Doc, 118 | options: { [key: string]: any, ... } 119 | ) => ?Doc, 120 | insertPragma?: (text: string) => string, 121 | massageAstNode?: (node: any, newNode: any, parent: any) => any, 122 | hasPrettierIgnore?: (path: FastPath<>) => boolean, 123 | canAttachComment?: (node: any) => boolean, 124 | willPrintOwnComments?: (path: FastPath<>) => boolean, 125 | printComments?: ( 126 | path: FastPath<>, 127 | print: (path: FastPath<>) => Doc, 128 | options: { [key: string]: any, ... }, 129 | needsSemi: boolean 130 | ) => Doc, 131 | handleComments?: { 132 | ownLine?: ( 133 | commentNode: any, 134 | text: string, 135 | options: { [key: string]: any, ... }, 136 | ast: any, 137 | isLastComment: boolean 138 | ) => boolean, 139 | endOfLine?: ( 140 | commentNode: any, 141 | text: string, 142 | options: { [key: string]: any, ... }, 143 | ast: any, 144 | isLastComment: boolean 145 | ) => boolean, 146 | remaining?: ( 147 | commentNode: any, 148 | text: string, 149 | options: { [key: string]: any, ... }, 150 | ast: any, 151 | isLastComment: boolean 152 | ) => boolean, 153 | ... 154 | }, 155 | ... 156 | } 157 | 158 | declare export type CursorOptions = {| 159 | cursorOffset: number, 160 | printWidth?: $PropertyType, 161 | tabWidth?: $PropertyType, 162 | useTabs?: $PropertyType, 163 | semi?: $PropertyType, 164 | singleQuote?: $PropertyType, 165 | trailingComma?: $PropertyType, 166 | bracketSpacing?: $PropertyType, 167 | jsxBracketSameLine?: $PropertyType, 168 | arrowParens?: $PropertyType, 169 | parser?: $PropertyType, 170 | filepath?: $PropertyType, 171 | requirePragma?: $PropertyType, 172 | insertPragma?: $PropertyType, 173 | proseWrap?: $PropertyType, 174 | plugins?: $PropertyType, 175 | |} 176 | 177 | declare export type CursorResult = {| 178 | formatted: string, 179 | cursorOffset: number, 180 | |} 181 | 182 | declare export type ResolveConfigOptions = {| 183 | useCache?: boolean, 184 | config?: string, 185 | editorconfig?: boolean, 186 | |} 187 | 188 | declare export type SupportLanguage = { 189 | name: string, 190 | since: string, 191 | parsers: Array, 192 | group?: string, 193 | tmScope: string, 194 | aceMode: string, 195 | codemirrorMode: string, 196 | codemirrorMimeType: string, 197 | aliases?: Array, 198 | extensions: Array, 199 | filenames?: Array, 200 | linguistLanguageId: number, 201 | vscodeLanguageIds: Array, 202 | ... 203 | } 204 | 205 | declare export type SupportOption = {| 206 | since: string, 207 | type: 'int' | 'boolean' | 'choice' | 'path', 208 | deprecated?: string, 209 | redirect?: SupportOptionRedirect, 210 | description: string, 211 | oppositeDescription?: string, 212 | default: SupportOptionValue, 213 | range?: SupportOptionRange, 214 | choices?: SupportOptionChoice, 215 | |} 216 | 217 | declare export type SupportOptionRedirect = {| 218 | options: string, 219 | value: SupportOptionValue, 220 | |} 221 | 222 | declare export type SupportOptionRange = {| 223 | start: number, 224 | end: number, 225 | step: number, 226 | |} 227 | 228 | declare export type SupportOptionChoice = {| 229 | value: boolean | string, 230 | description?: string, 231 | since?: string, 232 | deprecated?: string, 233 | redirect?: SupportOptionValue, 234 | |} 235 | 236 | declare export type SupportOptionValue = number | boolean | string 237 | 238 | declare export type SupportInfo = {| 239 | languages: Array, 240 | options: Array, 241 | |} 242 | 243 | declare export type Prettier = {| 244 | format: (source: string, options?: Options) => string, 245 | check: (source: string, options?: Options) => boolean, 246 | formatWithCursor: (source: string, options: CursorOptions) => CursorResult, 247 | resolveConfig: { 248 | (filePath: string, options?: ResolveConfigOptions): Promise, 249 | sync(filePath: string, options?: ResolveConfigOptions): ?Options, 250 | ... 251 | }, 252 | clearConfigCache: () => void, 253 | getSupportInfo: (version?: string) => SupportInfo, 254 | |} 255 | 256 | declare export default Prettier 257 | } 258 | -------------------------------------------------------------------------------- /flow-typed/npm/mocha_v6.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 03fc62001bb373473e2e4208d31a9f73 2 | // flow-typed version: c6154227d1/mocha_v6.x.x/flow_>=v0.104.x 3 | 4 | declare interface $npm$mocha$SetupOptions { 5 | slow?: number; 6 | timeout?: number; 7 | ui?: string; 8 | globals?: Array; 9 | reporter?: any; 10 | bail?: boolean; 11 | ignoreLeaks?: boolean; 12 | grep?: any; 13 | } 14 | 15 | declare type $npm$mocha$done = (error?: any) => any 16 | 17 | // declare interface $npm$mocha$SuiteCallbackContext { 18 | // timeout(ms: number): void; 19 | // retries(n: number): void; 20 | // slow(ms: number): void; 21 | // } 22 | 23 | // declare interface $npm$mocha$TestCallbackContext { 24 | // skip(): void; 25 | // timeout(ms: number): void; 26 | // retries(n: number): void; 27 | // slow(ms: number): void; 28 | // [index: string]: any; 29 | // } 30 | 31 | declare interface $npm$mocha$Suite { 32 | parent: $npm$mocha$Suite; 33 | title: string; 34 | fullTitle(): string; 35 | } 36 | 37 | declare interface $npm$mocha$ContextDefinition { 38 | ( 39 | description: string, 40 | callback: () => /* this: $npm$mocha$SuiteCallbackContext */ void 41 | ): $npm$mocha$Suite; 42 | only( 43 | description: string, 44 | callback: () => /* this: $npm$mocha$SuiteCallbackContext */ void 45 | ): $npm$mocha$Suite; 46 | skip( 47 | description: string, 48 | callback: () => /* this: $npm$mocha$SuiteCallbackContext */ void 49 | ): void; 50 | timeout(ms: number): void; 51 | } 52 | 53 | declare interface $npm$mocha$TestDefinition { 54 | ( 55 | expectation: string, 56 | callback?: ( 57 | /* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done 58 | ) => mixed 59 | ): $npm$mocha$Test; 60 | only( 61 | expectation: string, 62 | callback?: ( 63 | /* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done 64 | ) => mixed 65 | ): $npm$mocha$Test; 66 | skip( 67 | expectation: string, 68 | callback?: ( 69 | /* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done 70 | ) => mixed 71 | ): void; 72 | timeout(ms: number): void; 73 | state: 'failed' | 'passed'; 74 | } 75 | 76 | declare interface $npm$mocha$Runner {} 77 | 78 | declare class $npm$mocha$BaseReporter { 79 | stats: { 80 | suites: number, 81 | tests: number, 82 | passes: number, 83 | pending: number, 84 | failures: number, 85 | ... 86 | }; 87 | 88 | constructor(runner: $npm$mocha$Runner): $npm$mocha$BaseReporter; 89 | } 90 | 91 | declare class $npm$mocha$DocReporter extends $npm$mocha$BaseReporter {} 92 | declare class $npm$mocha$DotReporter extends $npm$mocha$BaseReporter {} 93 | declare class $npm$mocha$HTMLReporter extends $npm$mocha$BaseReporter {} 94 | declare class $npm$mocha$HTMLCovReporter extends $npm$mocha$BaseReporter {} 95 | declare class $npm$mocha$JSONReporter extends $npm$mocha$BaseReporter {} 96 | declare class $npm$mocha$JSONCovReporter extends $npm$mocha$BaseReporter {} 97 | declare class $npm$mocha$JSONStreamReporter extends $npm$mocha$BaseReporter {} 98 | declare class $npm$mocha$LandingReporter extends $npm$mocha$BaseReporter {} 99 | declare class $npm$mocha$ListReporter extends $npm$mocha$BaseReporter {} 100 | declare class $npm$mocha$MarkdownReporter extends $npm$mocha$BaseReporter {} 101 | declare class $npm$mocha$MinReporter extends $npm$mocha$BaseReporter {} 102 | declare class $npm$mocha$NyanReporter extends $npm$mocha$BaseReporter {} 103 | declare class $npm$mocha$ProgressReporter extends $npm$mocha$BaseReporter { 104 | constructor( 105 | runner: $npm$mocha$Runner, 106 | options?: { 107 | open?: string, 108 | complete?: string, 109 | incomplete?: string, 110 | close?: string, 111 | ... 112 | } 113 | ): $npm$mocha$ProgressReporter; 114 | } 115 | declare class $npm$mocha$SpecReporter extends $npm$mocha$BaseReporter {} 116 | declare class $npm$mocha$TAPReporter extends $npm$mocha$BaseReporter {} 117 | declare class $npm$mocha$XUnitReporter extends $npm$mocha$BaseReporter { 118 | constructor( 119 | runner: $npm$mocha$Runner, 120 | options?: any 121 | ): $npm$mocha$XUnitReporter; 122 | } 123 | 124 | declare class $npm$mocha$Mocha { 125 | currentTest: $npm$mocha$TestDefinition; 126 | constructor(options?: { 127 | grep?: RegExp, 128 | ui?: string, 129 | reporter?: string, 130 | timeout?: number, 131 | reporterOptions?: any, 132 | slow?: number, 133 | bail?: boolean, 134 | ... 135 | }): $npm$mocha$Mocha; 136 | setup(options: $npm$mocha$SetupOptions): this; 137 | bail(value?: boolean): this; 138 | addFile(file: string): this; 139 | reporter(name: string): this; 140 | reporter(reporter: (runner: $npm$mocha$Runner, options: any) => any): this; 141 | ui(value: string): this; 142 | grep(value: string): this; 143 | grep(value: RegExp): this; 144 | invert(): this; 145 | ignoreLeaks(value: boolean): this; 146 | checkLeaks(): this; 147 | throwError(error: Error): void; 148 | growl(): this; 149 | globals(value: string): this; 150 | globals(values: Array): this; 151 | useColors(value: boolean): this; 152 | useInlineDiffs(value: boolean): this; 153 | timeout(value: number): this; 154 | slow(value: number): this; 155 | enableTimeouts(value: boolean): this; 156 | asyncOnly(value: boolean): this; 157 | noHighlighting(value: boolean): this; 158 | run(onComplete?: (failures: number) => void): $npm$mocha$Runner; 159 | 160 | static reporters: { 161 | Doc: $npm$mocha$DocReporter, 162 | Dot: $npm$mocha$DotReporter, 163 | HTML: $npm$mocha$HTMLReporter, 164 | HTMLCov: $npm$mocha$HTMLCovReporter, 165 | JSON: $npm$mocha$JSONReporter, 166 | JSONCov: $npm$mocha$JSONCovReporter, 167 | JSONStream: $npm$mocha$JSONStreamReporter, 168 | Landing: $npm$mocha$LandingReporter, 169 | List: $npm$mocha$ListReporter, 170 | Markdown: $npm$mocha$MarkdownReporter, 171 | Min: $npm$mocha$MinReporter, 172 | Nyan: $npm$mocha$NyanReporter, 173 | Progress: $npm$mocha$ProgressReporter, 174 | ... 175 | }; 176 | } 177 | 178 | // declare interface $npm$mocha$HookCallbackContext { 179 | // skip(): void; 180 | // timeout(ms: number): void; 181 | // [index: string]: any; 182 | // } 183 | 184 | declare interface $npm$mocha$Runnable { 185 | title: string; 186 | fn: Function; 187 | async: boolean; 188 | sync: boolean; 189 | timedOut: boolean; 190 | } 191 | 192 | declare interface $npm$mocha$Test extends $npm$mocha$Runnable { 193 | parent: $npm$mocha$Suite; 194 | pending: boolean; 195 | state: 'failed' | 'passed' | void; 196 | fullTitle(): string; 197 | timeout(ms: number): void; 198 | } 199 | 200 | // declare interface $npm$mocha$BeforeAndAfterContext extends $npm$mocha$HookCallbackContext { 201 | // currentTest: $npm$mocha$Test; 202 | // } 203 | 204 | declare var mocha: $npm$mocha$Mocha 205 | declare var describe: $npm$mocha$ContextDefinition 206 | declare var xdescribe: $npm$mocha$ContextDefinition 207 | declare var context: $npm$mocha$ContextDefinition 208 | declare var suite: $npm$mocha$ContextDefinition 209 | declare var it: $npm$mocha$TestDefinition 210 | declare var xit: $npm$mocha$TestDefinition 211 | declare var test: $npm$mocha$TestDefinition 212 | declare var specify: $npm$mocha$TestDefinition 213 | 214 | declare function run(): void 215 | 216 | declare function setup( 217 | callback: ( 218 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 219 | ) => mixed 220 | ): void 221 | declare function teardown( 222 | callback: ( 223 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 224 | ) => mixed 225 | ): void 226 | declare function suiteSetup( 227 | callback: ( 228 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 229 | ) => mixed 230 | ): void 231 | declare function suiteTeardown( 232 | callback: ( 233 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 234 | ) => mixed 235 | ): void 236 | declare function before( 237 | callback: ( 238 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 239 | ) => mixed 240 | ): void 241 | declare function before( 242 | description: string, 243 | callback: ( 244 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 245 | ) => mixed 246 | ): void 247 | declare function after( 248 | callback: ( 249 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 250 | ) => mixed 251 | ): void 252 | declare function after( 253 | description: string, 254 | callback: ( 255 | /* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done 256 | ) => mixed 257 | ): void 258 | declare function beforeEach( 259 | callback: ( 260 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 261 | ) => mixed 262 | ): void 263 | declare function beforeEach( 264 | description: string, 265 | callback: ( 266 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 267 | ) => mixed 268 | ): void 269 | declare function afterEach( 270 | callback: ( 271 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 272 | ) => mixed 273 | ): void 274 | declare function afterEach( 275 | description: string, 276 | callback: ( 277 | /* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done 278 | ) => mixed 279 | ): void 280 | 281 | declare module 'mocha' { 282 | declare export var mocha: typeof mocha 283 | declare export var describe: typeof describe 284 | declare export var xdescribe: typeof xdescribe 285 | declare export var context: typeof context 286 | declare export var suite: typeof suite 287 | declare export var it: typeof it 288 | declare export var xit: typeof xit 289 | declare export var test: typeof test 290 | declare export var specify: typeof specify 291 | 292 | declare export var run: typeof run 293 | 294 | declare export var setup: typeof setup 295 | declare export var teardown: typeof teardown 296 | declare export var suiteSetup: typeof suiteSetup 297 | declare export var suiteTeardown: typeof suiteTeardown 298 | declare export var before: typeof before 299 | declare export var before: typeof before 300 | declare export var after: typeof after 301 | declare export var after: typeof after 302 | declare export var beforeEach: typeof beforeEach 303 | declare export var beforeEach: typeof beforeEach 304 | declare export var afterEach: typeof afterEach 305 | declare export var afterEach: typeof afterEach 306 | 307 | declare export default $npm$mocha$Mocha 308 | } 309 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | import { describe, it } from 'mocha' 3 | import { render } from '@testing-library/react' 4 | import { expect } from 'chai' 5 | import sinon from 'sinon' 6 | 7 | import ViewSlider from '../src' 8 | import SimpleViewSlider from '../src/simple' 9 | 10 | let clock 11 | beforeEach(() => { 12 | clock = sinon.useFakeTimers() 13 | }) 14 | afterEach(() => { 15 | clock.restore() 16 | }) 17 | 18 | describe('ViewSlider', () => { 19 | it('single transition works', async () => { 20 | const renderView = ({ index }) => ( 21 |
Child {index}
22 | ) 23 | 24 | const comp = render( 25 | 31 | ) 32 | 33 | expect(comp.queryByTestId('Child 0')).to.exist 34 | expect(comp.queryByTestId('Child 1')).not.to.exist 35 | expect(comp.queryByTestId('Child 2')).not.to.exist 36 | 37 | comp.rerender( 38 | 44 | ) 45 | expect(comp.queryByTestId('Child 1')).to.exist 46 | }) 47 | it('fillParent works', () => { 48 | const views = [] 49 | 50 | const renderView = ({ index }) => ( 51 |
{ 53 | views[index] = c 54 | }} 55 | style={{ 56 | height: (index + 1) * 100, 57 | }} 58 | > 59 | Child {index} 60 |
61 | ) 62 | 63 | let root, viewport 64 | const comp = render( 65 | (root = c)} 67 | viewportRef={(c) => (viewport = c)} 68 | fillParent 69 | numViews={3} 70 | renderView={renderView} 71 | activeView={0} 72 | /> 73 | ) 74 | 75 | function expectHasFillStyle(element, left = '0px') { 76 | expect(element.style.position).to.equal('absolute') 77 | expect(element.style.top).to.equal('0px') 78 | expect(element.style.left).to.equal(left) 79 | expect(element.style.right).to.equal('0px') 80 | expect(element.style.bottom).to.equal('0px') 81 | } 82 | 83 | expectHasFillStyle(root) 84 | expect(viewport.style.position).to.equal('relative') 85 | expect(viewport.style.height).to.equal('100%') 86 | expectHasFillStyle(views[0].parentElement.parentElement, '0%') 87 | 88 | comp.rerender( 89 | (root = c)} 91 | viewportRef={(c) => (viewport = c)} 92 | fillParent 93 | numViews={3} 94 | renderView={renderView} 95 | activeView={1} 96 | /> 97 | ) 98 | expectHasFillStyle(views[1].parentElement.parentElement, '100%') 99 | 100 | comp.unmount() 101 | }) 102 | it('multiple transitions work', async () => { 103 | const renderView = ({ index }) => ( 104 |
110 | Child {index} 111 |
112 | ) 113 | 114 | const comp = render( 115 | 116 | ) 117 | 118 | expect(comp.queryByTestId('Child 0')).to.exist 119 | 120 | comp.rerender( 121 | 122 | ) 123 | expect(comp.queryByTestId('Child 0')).to.exist 124 | expect(comp.queryByTestId('Child 1')).to.exist 125 | expect(comp.queryByTestId('Child 2')).to.exist 126 | await await clock.tickAsync(200) 127 | comp.rerender( 128 | 129 | ) 130 | expect(comp.queryByTestId('Child 0')).to.exist 131 | expect(comp.queryByTestId('Child 1')).to.exist 132 | expect(comp.queryByTestId('Child 2')).to.exist 133 | await await clock.tickAsync(1000) 134 | expect(comp.queryByTestId('Child 0')).not.to.exist 135 | }) 136 | it('keepViewsMounted works', () => { 137 | const views = [] 138 | 139 | const renderView = ({ index }) => ( 140 |
{ 142 | views[index] = c 143 | }} 144 | style={{ 145 | height: (index + 1) * 1000, 146 | }} 147 | data-testid={`Child ${index}`} 148 | > 149 | Child {index} 150 |
151 | ) 152 | 153 | const comp = render( 154 | 161 | ) 162 | expect(comp.queryByTestId('Child 0')).to.exist 163 | expect(comp.queryByTestId('Child 1')).to.exist 164 | expect(comp.queryByTestId('Child 2')).to.exist 165 | 166 | views[2].parentElement.parentElement.scrollTop = 800 167 | expect(views[2].parentElement.parentElement.scrollTop).to.equal(800) 168 | comp.rerender( 169 | 176 | ) 177 | expect(views[2].parentElement.parentElement.scrollTop).to.equal(0) 178 | }) 179 | }) 180 | 181 | describe('SimpleViewSlider', () => { 182 | it('single transition works', async () => { 183 | const comp = render( 184 | 185 |
186 | Child 0 187 |
188 |
189 | ) 190 | 191 | expect(comp.queryByTestId('Child 0')).to.exist 192 | 193 | comp.rerender( 194 | 195 |
196 | Child 1 197 |
198 |
199 | ) 200 | expect(comp.queryByTestId('Child 0')).to.exist 201 | expect(comp.queryByTestId('Child 1')).to.exist 202 | 203 | await await clock.tickAsync(1000) 204 | expect(comp.queryByTestId('Child 0')).not.to.exist 205 | expect(comp.queryByTestId('Child 1')).to.exist 206 | }) 207 | it('keepViewsMounted works', async () => { 208 | const comp = render( 209 | 210 |
211 | Child 0 212 |
213 |
214 | ) 215 | expect(comp.queryByTestId('Child 0')).to.exist 216 | 217 | comp.rerender( 218 | 219 |
220 | Child 1 221 |
222 |
223 | ) 224 | 225 | await clock.tickAsync(1000) 226 | expect(comp.queryByTestId('Child 0')).to.exist 227 | expect(comp.queryByTestId('Child 1')).to.exist 228 | 229 | comp.rerender( 230 | 231 |
232 | Child 2 233 |
234 |
235 | ) 236 | 237 | await clock.tickAsync(1000) 238 | expect(comp.queryByTestId('Child 0')).to.exist 239 | expect(comp.queryByTestId('Child 1')).to.exist 240 | expect(comp.queryByTestId('Child 2')).to.exist 241 | 242 | comp.rerender( 243 | 244 |
245 | Child a 246 |
247 |
248 | ) 249 | 250 | await clock.tickAsync(1000) 251 | expect(comp.queryByTestId('Child 0')).to.exist 252 | expect(comp.queryByTestId('Child 1')).not.to.exist 253 | expect(comp.queryByTestId('Child 1a')).to.exist 254 | expect(comp.queryByTestId('Child 2')).to.exist 255 | }) 256 | it('keepPrecedingViewsMounted works', async () => { 257 | const comp = render( 258 | 259 |
260 | Child 0 261 |
262 |
263 | ) 264 | expect(comp.queryByTestId('Child 0')).to.exist 265 | 266 | comp.rerender( 267 | 268 |
269 | Child 1 270 |
271 |
272 | ) 273 | 274 | await clock.tickAsync(1000) 275 | expect(comp.queryByTestId('Child 0')).to.exist 276 | expect(comp.queryByTestId('Child 1')).to.exist 277 | 278 | comp.rerender( 279 | 280 |
281 | Child 2 282 |
283 |
284 | ) 285 | 286 | await clock.tickAsync(1000) 287 | expect(comp.queryByTestId('Child 0')).to.exist 288 | expect(comp.queryByTestId('Child 1')).to.exist 289 | expect(comp.queryByTestId('Child 2')).to.exist 290 | 291 | comp.rerender( 292 | 293 |
294 | Child 1 295 |
296 |
297 | ) 298 | 299 | await clock.tickAsync(200) 300 | expect(comp.queryByTestId('Child 0')).to.exist 301 | expect(comp.queryByTestId('Child 1')).to.exist 302 | expect(comp.queryByTestId('Child 2')).to.exist 303 | 304 | await clock.tickAsync(1000) 305 | expect(comp.queryByTestId('Child 0')).to.exist 306 | expect(comp.queryByTestId('Child 1')).to.exist 307 | expect(comp.queryByTestId('Child 2')).not.to.exist 308 | }) 309 | it('changing keepPrecedingViewsMounted works', async () => { 310 | const comp = render( 311 | 312 |
313 | Child 0 314 |
315 |
316 | ) 317 | 318 | expect(comp.queryByTestId('Child 0')).to.exist 319 | 320 | comp.rerender( 321 | 322 |
323 | Child 1 324 |
325 |
326 | ) 327 | 328 | await clock.tickAsync(1000) 329 | expect(comp.queryByTestId('Child 0')).to.exist 330 | expect(comp.queryByTestId('Child 1')).to.exist 331 | 332 | comp.rerender( 333 | 334 |
335 | Child 2 336 |
337 |
338 | ) 339 | 340 | await clock.tickAsync(1000) 341 | expect(comp.queryByTestId('Child 0')).to.exist 342 | expect(comp.queryByTestId('Child 1')).to.exist 343 | expect(comp.queryByTestId('Child 2')).to.exist 344 | 345 | comp.rerender( 346 | 347 |
348 | Child 1a 349 |
350 |
351 | ) 352 | 353 | await clock.tickAsync(1000) 354 | expect(comp.queryByTestId('Child 0')).to.exist 355 | expect(comp.queryByTestId('Child 1')).not.to.exist 356 | expect(comp.queryByTestId('Child 1a')).to.exist 357 | expect(comp.queryByTestId('Child 2')).not.to.exist 358 | }) 359 | }) 360 | -------------------------------------------------------------------------------- /flow-typed/npm/sinon_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 888ae5666bd76ba6eb505042c6ff3a8d 2 | // flow-typed version: <>/sinon_v^4.1.4/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'sinon' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'sinon' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'sinon/lib/sinon' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'sinon/lib/sinon/assert' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'sinon/lib/sinon/behavior' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'sinon/lib/sinon/blob' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'sinon/lib/sinon/call' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'sinon/lib/sinon/collect-own-methods' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'sinon/lib/sinon/collection' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'sinon/lib/sinon/color' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'sinon/lib/sinon/default-behaviors' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'sinon/lib/sinon/match' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'sinon/lib/sinon/mock-expectation' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'sinon/lib/sinon/mock' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'sinon/lib/sinon/sandbox' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'sinon/lib/sinon/spy-formatters' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'sinon/lib/sinon/spy' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'sinon/lib/sinon/stub-entire-object' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module 'sinon/lib/sinon/stub-non-function-property' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module 'sinon/lib/sinon/stub' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module 'sinon/lib/sinon/throw-on-falsy-object' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module 'sinon/lib/sinon/util/core/called-in-order' { 102 | declare module.exports: any 103 | } 104 | 105 | declare module 'sinon/lib/sinon/util/core/deep-equal' { 106 | declare module.exports: any 107 | } 108 | 109 | declare module 'sinon/lib/sinon/util/core/default-config' { 110 | declare module.exports: any 111 | } 112 | 113 | declare module 'sinon/lib/sinon/util/core/deprecated' { 114 | declare module.exports: any 115 | } 116 | 117 | declare module 'sinon/lib/sinon/util/core/every' { 118 | declare module.exports: any 119 | } 120 | 121 | declare module 'sinon/lib/sinon/util/core/extend' { 122 | declare module.exports: any 123 | } 124 | 125 | declare module 'sinon/lib/sinon/util/core/format' { 126 | declare module.exports: any 127 | } 128 | 129 | declare module 'sinon/lib/sinon/util/core/function-name' { 130 | declare module.exports: any 131 | } 132 | 133 | declare module 'sinon/lib/sinon/util/core/function-to-string' { 134 | declare module.exports: any 135 | } 136 | 137 | declare module 'sinon/lib/sinon/util/core/get-config' { 138 | declare module.exports: any 139 | } 140 | 141 | declare module 'sinon/lib/sinon/util/core/get-property-descriptor' { 142 | declare module.exports: any 143 | } 144 | 145 | declare module 'sinon/lib/sinon/util/core/is-es-module' { 146 | declare module.exports: any 147 | } 148 | 149 | declare module 'sinon/lib/sinon/util/core/iterable-to-string' { 150 | declare module.exports: any 151 | } 152 | 153 | declare module 'sinon/lib/sinon/util/core/order-by-first-call' { 154 | declare module.exports: any 155 | } 156 | 157 | declare module 'sinon/lib/sinon/util/core/restore' { 158 | declare module.exports: any 159 | } 160 | 161 | declare module 'sinon/lib/sinon/util/core/times-in-words' { 162 | declare module.exports: any 163 | } 164 | 165 | declare module 'sinon/lib/sinon/util/core/typeOf' { 166 | declare module.exports: any 167 | } 168 | 169 | declare module 'sinon/lib/sinon/util/core/value-to-string' { 170 | declare module.exports: any 171 | } 172 | 173 | declare module 'sinon/lib/sinon/util/core/walk' { 174 | declare module.exports: any 175 | } 176 | 177 | declare module 'sinon/lib/sinon/util/core/wrap-method' { 178 | declare module.exports: any 179 | } 180 | 181 | declare module 'sinon/lib/sinon/util/fake_timers' { 182 | declare module.exports: any 183 | } 184 | 185 | declare module 'sinon/pkg/sinon-no-sourcemaps' { 186 | declare module.exports: any 187 | } 188 | 189 | declare module 'sinon/pkg/sinon' { 190 | declare module.exports: any 191 | } 192 | 193 | declare module 'sinon/scripts/support-sinon' { 194 | declare module.exports: any 195 | } 196 | 197 | // Filename aliases 198 | declare module 'sinon/lib/sinon.js' { 199 | declare module.exports: $Exports<'sinon/lib/sinon'> 200 | } 201 | declare module 'sinon/lib/sinon/assert.js' { 202 | declare module.exports: $Exports<'sinon/lib/sinon/assert'> 203 | } 204 | declare module 'sinon/lib/sinon/behavior.js' { 205 | declare module.exports: $Exports<'sinon/lib/sinon/behavior'> 206 | } 207 | declare module 'sinon/lib/sinon/blob.js' { 208 | declare module.exports: $Exports<'sinon/lib/sinon/blob'> 209 | } 210 | declare module 'sinon/lib/sinon/call.js' { 211 | declare module.exports: $Exports<'sinon/lib/sinon/call'> 212 | } 213 | declare module 'sinon/lib/sinon/collect-own-methods.js' { 214 | declare module.exports: $Exports<'sinon/lib/sinon/collect-own-methods'> 215 | } 216 | declare module 'sinon/lib/sinon/collection.js' { 217 | declare module.exports: $Exports<'sinon/lib/sinon/collection'> 218 | } 219 | declare module 'sinon/lib/sinon/color.js' { 220 | declare module.exports: $Exports<'sinon/lib/sinon/color'> 221 | } 222 | declare module 'sinon/lib/sinon/default-behaviors.js' { 223 | declare module.exports: $Exports<'sinon/lib/sinon/default-behaviors'> 224 | } 225 | declare module 'sinon/lib/sinon/match.js' { 226 | declare module.exports: $Exports<'sinon/lib/sinon/match'> 227 | } 228 | declare module 'sinon/lib/sinon/mock-expectation.js' { 229 | declare module.exports: $Exports<'sinon/lib/sinon/mock-expectation'> 230 | } 231 | declare module 'sinon/lib/sinon/mock.js' { 232 | declare module.exports: $Exports<'sinon/lib/sinon/mock'> 233 | } 234 | declare module 'sinon/lib/sinon/sandbox.js' { 235 | declare module.exports: $Exports<'sinon/lib/sinon/sandbox'> 236 | } 237 | declare module 'sinon/lib/sinon/spy-formatters.js' { 238 | declare module.exports: $Exports<'sinon/lib/sinon/spy-formatters'> 239 | } 240 | declare module 'sinon/lib/sinon/spy.js' { 241 | declare module.exports: $Exports<'sinon/lib/sinon/spy'> 242 | } 243 | declare module 'sinon/lib/sinon/stub-entire-object.js' { 244 | declare module.exports: $Exports<'sinon/lib/sinon/stub-entire-object'> 245 | } 246 | declare module 'sinon/lib/sinon/stub-non-function-property.js' { 247 | declare module.exports: $Exports<'sinon/lib/sinon/stub-non-function-property'> 248 | } 249 | declare module 'sinon/lib/sinon/stub.js' { 250 | declare module.exports: $Exports<'sinon/lib/sinon/stub'> 251 | } 252 | declare module 'sinon/lib/sinon/throw-on-falsy-object.js' { 253 | declare module.exports: $Exports<'sinon/lib/sinon/throw-on-falsy-object'> 254 | } 255 | declare module 'sinon/lib/sinon/util/core/called-in-order.js' { 256 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/called-in-order'> 257 | } 258 | declare module 'sinon/lib/sinon/util/core/deep-equal.js' { 259 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/deep-equal'> 260 | } 261 | declare module 'sinon/lib/sinon/util/core/default-config.js' { 262 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/default-config'> 263 | } 264 | declare module 'sinon/lib/sinon/util/core/deprecated.js' { 265 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/deprecated'> 266 | } 267 | declare module 'sinon/lib/sinon/util/core/every.js' { 268 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/every'> 269 | } 270 | declare module 'sinon/lib/sinon/util/core/extend.js' { 271 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/extend'> 272 | } 273 | declare module 'sinon/lib/sinon/util/core/format.js' { 274 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/format'> 275 | } 276 | declare module 'sinon/lib/sinon/util/core/function-name.js' { 277 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/function-name'> 278 | } 279 | declare module 'sinon/lib/sinon/util/core/function-to-string.js' { 280 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/function-to-string'> 281 | } 282 | declare module 'sinon/lib/sinon/util/core/get-config.js' { 283 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-config'> 284 | } 285 | declare module 'sinon/lib/sinon/util/core/get-property-descriptor.js' { 286 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-property-descriptor'> 287 | } 288 | declare module 'sinon/lib/sinon/util/core/is-es-module.js' { 289 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-es-module'> 290 | } 291 | declare module 'sinon/lib/sinon/util/core/iterable-to-string.js' { 292 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/iterable-to-string'> 293 | } 294 | declare module 'sinon/lib/sinon/util/core/order-by-first-call.js' { 295 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/order-by-first-call'> 296 | } 297 | declare module 'sinon/lib/sinon/util/core/restore.js' { 298 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/restore'> 299 | } 300 | declare module 'sinon/lib/sinon/util/core/times-in-words.js' { 301 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/times-in-words'> 302 | } 303 | declare module 'sinon/lib/sinon/util/core/typeOf.js' { 304 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/typeOf'> 305 | } 306 | declare module 'sinon/lib/sinon/util/core/value-to-string.js' { 307 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/value-to-string'> 308 | } 309 | declare module 'sinon/lib/sinon/util/core/walk.js' { 310 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk'> 311 | } 312 | declare module 'sinon/lib/sinon/util/core/wrap-method.js' { 313 | declare module.exports: $Exports<'sinon/lib/sinon/util/core/wrap-method'> 314 | } 315 | declare module 'sinon/lib/sinon/util/fake_timers.js' { 316 | declare module.exports: $Exports<'sinon/lib/sinon/util/fake_timers'> 317 | } 318 | declare module 'sinon/pkg/sinon-no-sourcemaps.js' { 319 | declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps'> 320 | } 321 | declare module 'sinon/pkg/sinon.js' { 322 | declare module.exports: $Exports<'sinon/pkg/sinon'> 323 | } 324 | declare module 'sinon/scripts/support-sinon.js' { 325 | declare module.exports: $Exports<'sinon/scripts/support-sinon'> 326 | } 327 | -------------------------------------------------------------------------------- /flow-typed/npm/@babel/core_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 73f25914026ea63eab1843b65fca665a 2 | // flow-typed version: <>/@babel/core_v^7.1.6/flow_v0.113.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@babel/core' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@babel/core' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@babel/core/lib/config/caching' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module '@babel/core/lib/config/config-chain' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module '@babel/core/lib/config/config-descriptors' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module '@babel/core/lib/config/files/configuration' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module '@babel/core/lib/config/files/index-browser' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module '@babel/core/lib/config/files' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module '@babel/core/lib/config/files/package' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module '@babel/core/lib/config/files/plugins' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module '@babel/core/lib/config/files/types' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module '@babel/core/lib/config/files/utils' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module '@babel/core/lib/config/full' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module '@babel/core/lib/config/helpers/config-api' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module '@babel/core/lib/config/helpers/environment' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module '@babel/core/lib/config' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module '@babel/core/lib/config/item' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module '@babel/core/lib/config/partial' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module '@babel/core/lib/config/pattern-to-regex' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module '@babel/core/lib/config/plugin' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module '@babel/core/lib/config/util' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module '@babel/core/lib/config/validation/option-assertions' { 102 | declare module.exports: any 103 | } 104 | 105 | declare module '@babel/core/lib/config/validation/options' { 106 | declare module.exports: any 107 | } 108 | 109 | declare module '@babel/core/lib/config/validation/plugins' { 110 | declare module.exports: any 111 | } 112 | 113 | declare module '@babel/core/lib/config/validation/removed' { 114 | declare module.exports: any 115 | } 116 | 117 | declare module '@babel/core/lib' { 118 | declare module.exports: any 119 | } 120 | 121 | declare module '@babel/core/lib/parse' { 122 | declare module.exports: any 123 | } 124 | 125 | declare module '@babel/core/lib/tools/build-external-helpers' { 126 | declare module.exports: any 127 | } 128 | 129 | declare module '@babel/core/lib/transform-ast' { 130 | declare module.exports: any 131 | } 132 | 133 | declare module '@babel/core/lib/transform-file-browser' { 134 | declare module.exports: any 135 | } 136 | 137 | declare module '@babel/core/lib/transform-file' { 138 | declare module.exports: any 139 | } 140 | 141 | declare module '@babel/core/lib/transform' { 142 | declare module.exports: any 143 | } 144 | 145 | declare module '@babel/core/lib/transformation/block-hoist-plugin' { 146 | declare module.exports: any 147 | } 148 | 149 | declare module '@babel/core/lib/transformation/file/file' { 150 | declare module.exports: any 151 | } 152 | 153 | declare module '@babel/core/lib/transformation/file/generate' { 154 | declare module.exports: any 155 | } 156 | 157 | declare module '@babel/core/lib/transformation/file/merge-map' { 158 | declare module.exports: any 159 | } 160 | 161 | declare module '@babel/core/lib/transformation' { 162 | declare module.exports: any 163 | } 164 | 165 | declare module '@babel/core/lib/transformation/normalize-file' { 166 | declare module.exports: any 167 | } 168 | 169 | declare module '@babel/core/lib/transformation/normalize-opts' { 170 | declare module.exports: any 171 | } 172 | 173 | declare module '@babel/core/lib/transformation/plugin-pass' { 174 | declare module.exports: any 175 | } 176 | 177 | declare module '@babel/core/lib/transformation/util/missing-plugin-helper' { 178 | declare module.exports: any 179 | } 180 | 181 | // Filename aliases 182 | declare module '@babel/core/lib/config/caching.js' { 183 | declare module.exports: $Exports<'@babel/core/lib/config/caching'> 184 | } 185 | declare module '@babel/core/lib/config/config-chain.js' { 186 | declare module.exports: $Exports<'@babel/core/lib/config/config-chain'> 187 | } 188 | declare module '@babel/core/lib/config/config-descriptors.js' { 189 | declare module.exports: $Exports<'@babel/core/lib/config/config-descriptors'> 190 | } 191 | declare module '@babel/core/lib/config/files/configuration.js' { 192 | declare module.exports: $Exports<'@babel/core/lib/config/files/configuration'> 193 | } 194 | declare module '@babel/core/lib/config/files/index-browser.js' { 195 | declare module.exports: $Exports<'@babel/core/lib/config/files/index-browser'> 196 | } 197 | declare module '@babel/core/lib/config/files/index' { 198 | declare module.exports: $Exports<'@babel/core/lib/config/files'> 199 | } 200 | declare module '@babel/core/lib/config/files/index.js' { 201 | declare module.exports: $Exports<'@babel/core/lib/config/files'> 202 | } 203 | declare module '@babel/core/lib/config/files/package.js' { 204 | declare module.exports: $Exports<'@babel/core/lib/config/files/package'> 205 | } 206 | declare module '@babel/core/lib/config/files/plugins.js' { 207 | declare module.exports: $Exports<'@babel/core/lib/config/files/plugins'> 208 | } 209 | declare module '@babel/core/lib/config/files/types.js' { 210 | declare module.exports: $Exports<'@babel/core/lib/config/files/types'> 211 | } 212 | declare module '@babel/core/lib/config/files/utils.js' { 213 | declare module.exports: $Exports<'@babel/core/lib/config/files/utils'> 214 | } 215 | declare module '@babel/core/lib/config/full.js' { 216 | declare module.exports: $Exports<'@babel/core/lib/config/full'> 217 | } 218 | declare module '@babel/core/lib/config/helpers/config-api.js' { 219 | declare module.exports: $Exports<'@babel/core/lib/config/helpers/config-api'> 220 | } 221 | declare module '@babel/core/lib/config/helpers/environment.js' { 222 | declare module.exports: $Exports<'@babel/core/lib/config/helpers/environment'> 223 | } 224 | declare module '@babel/core/lib/config/index' { 225 | declare module.exports: $Exports<'@babel/core/lib/config'> 226 | } 227 | declare module '@babel/core/lib/config/index.js' { 228 | declare module.exports: $Exports<'@babel/core/lib/config'> 229 | } 230 | declare module '@babel/core/lib/config/item.js' { 231 | declare module.exports: $Exports<'@babel/core/lib/config/item'> 232 | } 233 | declare module '@babel/core/lib/config/partial.js' { 234 | declare module.exports: $Exports<'@babel/core/lib/config/partial'> 235 | } 236 | declare module '@babel/core/lib/config/pattern-to-regex.js' { 237 | declare module.exports: $Exports<'@babel/core/lib/config/pattern-to-regex'> 238 | } 239 | declare module '@babel/core/lib/config/plugin.js' { 240 | declare module.exports: $Exports<'@babel/core/lib/config/plugin'> 241 | } 242 | declare module '@babel/core/lib/config/util.js' { 243 | declare module.exports: $Exports<'@babel/core/lib/config/util'> 244 | } 245 | declare module '@babel/core/lib/config/validation/option-assertions.js' { 246 | declare module.exports: $Exports<'@babel/core/lib/config/validation/option-assertions'> 247 | } 248 | declare module '@babel/core/lib/config/validation/options.js' { 249 | declare module.exports: $Exports<'@babel/core/lib/config/validation/options'> 250 | } 251 | declare module '@babel/core/lib/config/validation/plugins.js' { 252 | declare module.exports: $Exports<'@babel/core/lib/config/validation/plugins'> 253 | } 254 | declare module '@babel/core/lib/config/validation/removed.js' { 255 | declare module.exports: $Exports<'@babel/core/lib/config/validation/removed'> 256 | } 257 | declare module '@babel/core/lib/index' { 258 | declare module.exports: $Exports<'@babel/core/lib'> 259 | } 260 | declare module '@babel/core/lib/index.js' { 261 | declare module.exports: $Exports<'@babel/core/lib'> 262 | } 263 | declare module '@babel/core/lib/parse.js' { 264 | declare module.exports: $Exports<'@babel/core/lib/parse'> 265 | } 266 | declare module '@babel/core/lib/tools/build-external-helpers.js' { 267 | declare module.exports: $Exports<'@babel/core/lib/tools/build-external-helpers'> 268 | } 269 | declare module '@babel/core/lib/transform-ast.js' { 270 | declare module.exports: $Exports<'@babel/core/lib/transform-ast'> 271 | } 272 | declare module '@babel/core/lib/transform-file-browser.js' { 273 | declare module.exports: $Exports<'@babel/core/lib/transform-file-browser'> 274 | } 275 | declare module '@babel/core/lib/transform-file.js' { 276 | declare module.exports: $Exports<'@babel/core/lib/transform-file'> 277 | } 278 | declare module '@babel/core/lib/transform.js' { 279 | declare module.exports: $Exports<'@babel/core/lib/transform'> 280 | } 281 | declare module '@babel/core/lib/transformation/block-hoist-plugin.js' { 282 | declare module.exports: $Exports<'@babel/core/lib/transformation/block-hoist-plugin'> 283 | } 284 | declare module '@babel/core/lib/transformation/file/file.js' { 285 | declare module.exports: $Exports<'@babel/core/lib/transformation/file/file'> 286 | } 287 | declare module '@babel/core/lib/transformation/file/generate.js' { 288 | declare module.exports: $Exports<'@babel/core/lib/transformation/file/generate'> 289 | } 290 | declare module '@babel/core/lib/transformation/file/merge-map.js' { 291 | declare module.exports: $Exports<'@babel/core/lib/transformation/file/merge-map'> 292 | } 293 | declare module '@babel/core/lib/transformation/index' { 294 | declare module.exports: $Exports<'@babel/core/lib/transformation'> 295 | } 296 | declare module '@babel/core/lib/transformation/index.js' { 297 | declare module.exports: $Exports<'@babel/core/lib/transformation'> 298 | } 299 | declare module '@babel/core/lib/transformation/normalize-file.js' { 300 | declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-file'> 301 | } 302 | declare module '@babel/core/lib/transformation/normalize-opts.js' { 303 | declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-opts'> 304 | } 305 | declare module '@babel/core/lib/transformation/plugin-pass.js' { 306 | declare module.exports: $Exports<'@babel/core/lib/transformation/plugin-pass'> 307 | } 308 | declare module '@babel/core/lib/transformation/util/missing-plugin-helper.js' { 309 | declare module.exports: $Exports<'@babel/core/lib/transformation/util/missing-plugin-helper'> 310 | } 311 | -------------------------------------------------------------------------------- /flow-typed/npm/react-transition-context_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5ecbea46573789bdee4cad27f978cddd 2 | // flow-typed version: <>/react-transition-context_v^2.0.0/flow_v0.92.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'react-transition-context' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'react-transition-context' { 17 | declare module.exports: any 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'react-transition-context/flow-typed/npm/babel-cli_vx.x.x' { 26 | declare module.exports: any 27 | } 28 | 29 | declare module 'react-transition-context/flow-typed/npm/babel-core_vx.x.x' { 30 | declare module.exports: any 31 | } 32 | 33 | declare module 'react-transition-context/flow-typed/npm/babel-eslint_vx.x.x' { 34 | declare module.exports: any 35 | } 36 | 37 | declare module 'react-transition-context/flow-typed/npm/babel-loader_vx.x.x' { 38 | declare module.exports: any 39 | } 40 | 41 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x' { 42 | declare module.exports: any 43 | } 44 | 45 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x' { 46 | declare module.exports: any 47 | } 48 | 49 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-react-inline-elements_vx.x.x' { 50 | declare module.exports: any 51 | } 52 | 53 | declare module 'react-transition-context/flow-typed/npm/babel-polyfill_vx.x.x' { 54 | declare module.exports: any 55 | } 56 | 57 | declare module 'react-transition-context/flow-typed/npm/babel-preset-es2015_vx.x.x' { 58 | declare module.exports: any 59 | } 60 | 61 | declare module 'react-transition-context/flow-typed/npm/babel-preset-react_vx.x.x' { 62 | declare module.exports: any 63 | } 64 | 65 | declare module 'react-transition-context/flow-typed/npm/babel-preset-stage-1_vx.x.x' { 66 | declare module.exports: any 67 | } 68 | 69 | declare module 'react-transition-context/flow-typed/npm/enzyme_v2.3.x' { 70 | declare module.exports: any 71 | } 72 | 73 | declare module 'react-transition-context/flow-typed/npm/eslint_vx.x.x' { 74 | declare module.exports: any 75 | } 76 | 77 | declare module 'react-transition-context/flow-typed/npm/eslint-loader_vx.x.x' { 78 | declare module.exports: any 79 | } 80 | 81 | declare module 'react-transition-context/flow-typed/npm/eslint-plugin-react_vx.x.x' { 82 | declare module.exports: any 83 | } 84 | 85 | declare module 'react-transition-context/flow-typed/npm/flow-bin_v0.x.x' { 86 | declare module.exports: any 87 | } 88 | 89 | declare module 'react-transition-context/flow-typed/npm/jasmine_v2.4.x' { 90 | declare module.exports: any 91 | } 92 | 93 | declare module 'react-transition-context/flow-typed/npm/karma_vx.x.x' { 94 | declare module.exports: any 95 | } 96 | 97 | declare module 'react-transition-context/flow-typed/npm/karma-chrome-launcher_vx.x.x' { 98 | declare module.exports: any 99 | } 100 | 101 | declare module 'react-transition-context/flow-typed/npm/karma-firefox-launcher_vx.x.x' { 102 | declare module.exports: any 103 | } 104 | 105 | declare module 'react-transition-context/flow-typed/npm/karma-jasmine_vx.x.x' { 106 | declare module.exports: any 107 | } 108 | 109 | declare module 'react-transition-context/flow-typed/npm/karma-safari-launcher_vx.x.x' { 110 | declare module.exports: any 111 | } 112 | 113 | declare module 'react-transition-context/flow-typed/npm/karma-sourcemap-loader_vx.x.x' { 114 | declare module.exports: any 115 | } 116 | 117 | declare module 'react-transition-context/flow-typed/npm/karma-webpack_vx.x.x' { 118 | declare module.exports: any 119 | } 120 | 121 | declare module 'react-transition-context/flow-typed/npm/progress-bar-webpack-plugin_vx.x.x' { 122 | declare module.exports: any 123 | } 124 | 125 | declare module 'react-transition-context/flow-typed/npm/prop-types_v15.x.x' { 126 | declare module.exports: any 127 | } 128 | 129 | declare module 'react-transition-context/flow-typed/npm/react-addons-test-utils_v15.x.x' { 130 | declare module.exports: any 131 | } 132 | 133 | declare module 'react-transition-context/flow-typed/npm/react-test-renderer_vx.x.x' { 134 | declare module.exports: any 135 | } 136 | 137 | declare module 'react-transition-context/flow-typed/npm/webpack_vx.x.x' { 138 | declare module.exports: any 139 | } 140 | 141 | declare module 'react-transition-context/flow-typed/npm/webpack-dev-server_vx.x.x' { 142 | declare module.exports: any 143 | } 144 | 145 | declare module 'react-transition-context/flow-typed/npm/webpack-merge_vx.x.x' { 146 | declare module.exports: any 147 | } 148 | 149 | declare module 'react-transition-context/lib/index' { 150 | declare module.exports: any 151 | } 152 | 153 | declare module 'react-transition-context/src/index' { 154 | declare module.exports: any 155 | } 156 | 157 | // Filename aliases 158 | declare module 'react-transition-context/flow-typed/npm/babel-cli_vx.x.x.js' { 159 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-cli_vx.x.x'> 160 | } 161 | declare module 'react-transition-context/flow-typed/npm/babel-core_vx.x.x.js' { 162 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-core_vx.x.x'> 163 | } 164 | declare module 'react-transition-context/flow-typed/npm/babel-eslint_vx.x.x.js' { 165 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-eslint_vx.x.x'> 166 | } 167 | declare module 'react-transition-context/flow-typed/npm/babel-loader_vx.x.x.js' { 168 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-loader_vx.x.x'> 169 | } 170 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x.js' { 171 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-plugin-transform-flow-strip-types_vx.x.x'> 172 | } 173 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x.js' { 174 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-plugin-transform-react-constant-elements_vx.x.x'> 175 | } 176 | declare module 'react-transition-context/flow-typed/npm/babel-plugin-transform-react-inline-elements_vx.x.x.js' { 177 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-plugin-transform-react-inline-elements_vx.x.x'> 178 | } 179 | declare module 'react-transition-context/flow-typed/npm/babel-polyfill_vx.x.x.js' { 180 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-polyfill_vx.x.x'> 181 | } 182 | declare module 'react-transition-context/flow-typed/npm/babel-preset-es2015_vx.x.x.js' { 183 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-preset-es2015_vx.x.x'> 184 | } 185 | declare module 'react-transition-context/flow-typed/npm/babel-preset-react_vx.x.x.js' { 186 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-preset-react_vx.x.x'> 187 | } 188 | declare module 'react-transition-context/flow-typed/npm/babel-preset-stage-1_vx.x.x.js' { 189 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/babel-preset-stage-1_vx.x.x'> 190 | } 191 | declare module 'react-transition-context/flow-typed/npm/enzyme_v2.3.x.js' { 192 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/enzyme_v2.3.x'> 193 | } 194 | declare module 'react-transition-context/flow-typed/npm/eslint_vx.x.x.js' { 195 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/eslint_vx.x.x'> 196 | } 197 | declare module 'react-transition-context/flow-typed/npm/eslint-loader_vx.x.x.js' { 198 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/eslint-loader_vx.x.x'> 199 | } 200 | declare module 'react-transition-context/flow-typed/npm/eslint-plugin-react_vx.x.x.js' { 201 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/eslint-plugin-react_vx.x.x'> 202 | } 203 | declare module 'react-transition-context/flow-typed/npm/flow-bin_v0.x.x.js' { 204 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/flow-bin_v0.x.x'> 205 | } 206 | declare module 'react-transition-context/flow-typed/npm/jasmine_v2.4.x.js' { 207 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/jasmine_v2.4.x'> 208 | } 209 | declare module 'react-transition-context/flow-typed/npm/karma_vx.x.x.js' { 210 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma_vx.x.x'> 211 | } 212 | declare module 'react-transition-context/flow-typed/npm/karma-chrome-launcher_vx.x.x.js' { 213 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-chrome-launcher_vx.x.x'> 214 | } 215 | declare module 'react-transition-context/flow-typed/npm/karma-firefox-launcher_vx.x.x.js' { 216 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-firefox-launcher_vx.x.x'> 217 | } 218 | declare module 'react-transition-context/flow-typed/npm/karma-jasmine_vx.x.x.js' { 219 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-jasmine_vx.x.x'> 220 | } 221 | declare module 'react-transition-context/flow-typed/npm/karma-safari-launcher_vx.x.x.js' { 222 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-safari-launcher_vx.x.x'> 223 | } 224 | declare module 'react-transition-context/flow-typed/npm/karma-sourcemap-loader_vx.x.x.js' { 225 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-sourcemap-loader_vx.x.x'> 226 | } 227 | declare module 'react-transition-context/flow-typed/npm/karma-webpack_vx.x.x.js' { 228 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/karma-webpack_vx.x.x'> 229 | } 230 | declare module 'react-transition-context/flow-typed/npm/progress-bar-webpack-plugin_vx.x.x.js' { 231 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/progress-bar-webpack-plugin_vx.x.x'> 232 | } 233 | declare module 'react-transition-context/flow-typed/npm/prop-types_v15.x.x.js' { 234 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/prop-types_v15.x.x'> 235 | } 236 | declare module 'react-transition-context/flow-typed/npm/react-addons-test-utils_v15.x.x.js' { 237 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/react-addons-test-utils_v15.x.x'> 238 | } 239 | declare module 'react-transition-context/flow-typed/npm/react-test-renderer_vx.x.x.js' { 240 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/react-test-renderer_vx.x.x'> 241 | } 242 | declare module 'react-transition-context/flow-typed/npm/webpack_vx.x.x.js' { 243 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/webpack_vx.x.x'> 244 | } 245 | declare module 'react-transition-context/flow-typed/npm/webpack-dev-server_vx.x.x.js' { 246 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/webpack-dev-server_vx.x.x'> 247 | } 248 | declare module 'react-transition-context/flow-typed/npm/webpack-merge_vx.x.x.js' { 249 | declare module.exports: $Exports<'react-transition-context/flow-typed/npm/webpack-merge_vx.x.x'> 250 | } 251 | declare module 'react-transition-context/lib/index.js' { 252 | declare module.exports: $Exports<'react-transition-context/lib/index'> 253 | } 254 | declare module 'react-transition-context/src/index.js' { 255 | declare module.exports: $Exports<'react-transition-context/src/index'> 256 | } 257 | --------------------------------------------------------------------------------