├── .eslintignore ├── .npmrc ├── .gitattributes ├── .gitignore ├── other ├── glamorous.png ├── ROADMAP.md └── CODE_OF_CONDUCT.md ├── .babelrc ├── CHANGELOG.md ├── examples ├── with-jest │ ├── README.md │ ├── index.js │ ├── testSetup.js │ ├── index.test.js │ ├── package.json │ ├── __snapshots__ │ │ └── index.test.js.snap │ └── yarn.lock └── README.md ├── src ├── dom-elements.js ├── umd-entry.js ├── react-compat.js ├── theme-provider.js ├── __tests__ │ ├── __snapshots__ │ │ ├── theme-provider.test.js.snap │ │ └── index.js.snap │ ├── theme-provider.test.js │ └── index.js ├── index.js └── should-forward-property.js ├── .travis.yml ├── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── LICENSE ├── rollup.config.js ├── dist-test └── index.js ├── CONTRIBUTING.md ├── package-scripts.js ├── package.json ├── .all-contributorsrc └── README.md /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | dist 4 | examples -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | registry=http://registry.npmjs.org/ 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.js text eol=lf 3 | README.md merge=union 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | dist 4 | .opt-in 5 | .opt-out 6 | 7 | -------------------------------------------------------------------------------- /other/glamorous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkh44/glamorous/master/other/glamorous.png -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "targets": { 5 | "node": 4.5 6 | } 7 | }], 8 | "stage-2", 9 | "react" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release). 4 | You can see it on the [releases page](../../releases). 5 | -------------------------------------------------------------------------------- /examples/with-jest/README.md: -------------------------------------------------------------------------------- 1 | ## Example for `glamorous` with `jest` and `enzyme` 2 | 3 | ### Steps to run 4 | 5 | ```bash 6 | git clone https://github.com/paypal/glamorous.git 7 | cd glamorous/examples/with-jest 8 | npm install 9 | npm run test 10 | ``` 11 | 12 | -------------------------------------------------------------------------------- /src/dom-elements.js: -------------------------------------------------------------------------------- 1 | import htmlTagNames from 'html-tag-names' 2 | import svgTagNames from 'svg-tag-names' 3 | 4 | const domElements = htmlTagNames 5 | .concat(svgTagNames) 6 | .filter((tag, index, array) => array.indexOf(tag) === index) 7 | 8 | export default domElements 9 | -------------------------------------------------------------------------------- /examples/with-jest/index.js: -------------------------------------------------------------------------------- 1 | import glamorous from 'glamorous' 2 | 3 | export const Wrapper = glamorous.section({ 4 | padding: '4em', 5 | background: 'papayawhip', 6 | }) 7 | 8 | export const Title = glamorous.h1({ 9 | fontSize: '1.5em', 10 | textAlign: 'center', 11 | color: 'palevioletred', 12 | }) 13 | -------------------------------------------------------------------------------- /examples/with-jest/testSetup.js: -------------------------------------------------------------------------------- 1 | import {matcher, serializer} from 'jest-glamor-react' 2 | 3 | // This is what adds the CSS to the output snapshot 4 | expect.addSnapshotSerializer(serializer) 5 | 6 | // this adds toMatchSnapshotWithGlamor to expect and makes the snapshot diff output look nice in the terminal 7 | expect.extend(matcher) -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | cache: 4 | directories: 5 | - node_modules 6 | notifications: 7 | email: false 8 | node_js: 9 | - '6' 10 | script: 11 | - yarn start validate 12 | after_success: 13 | - yarn start report-coverage 14 | - yarn start release 15 | - yarn start validate.examples 16 | branches: 17 | only: 18 | - master 19 | -------------------------------------------------------------------------------- /other/ROADMAP.md: -------------------------------------------------------------------------------- 1 | # Project Roadmap 2 | 3 | This is where we'll define a few things about the library's goals. 4 | 5 | We haven't filled this out yet though. Care to help? See `CONTRIBUTING.md` 6 | 7 | ## Want to do 8 | 9 | ## Might do 10 | 11 | ## Wont do 12 | 13 | - Support property-specific dynamic functions like `styled-components` [#5](https://github.com/paypal/glamorous/issues/5) 14 | -------------------------------------------------------------------------------- /src/umd-entry.js: -------------------------------------------------------------------------------- 1 | import * as glamorousStar from './' 2 | 3 | const glamorous = glamorousStar.default 4 | 5 | Object.assign( 6 | glamorous, 7 | Object.keys(glamorousStar).reduce( 8 | (e, prop) => { 9 | if (prop !== 'default') { 10 | // eslint-disable-next-line import/namespace 11 | e[prop] = glamorousStar[prop] 12 | } 13 | return e 14 | }, 15 | {}, 16 | ), 17 | ) 18 | 19 | export default glamorous 20 | -------------------------------------------------------------------------------- /src/react-compat.js: -------------------------------------------------------------------------------- 1 | /* eslint import/no-mutable-exports:0, import/prefer-default-export:0 */ 2 | import React from 'react' 3 | 4 | let PropTypes 5 | 6 | /* istanbul ignore next */ 7 | if (React.version.slice(0, 4) === '15.5') { 8 | /* istanbul ignore next */ 9 | try { 10 | PropTypes = require('prop-types') 11 | /* istanbul ignore next */ 12 | } catch (error) { 13 | // ignore 14 | } 15 | } 16 | /* istanbul ignore next */ 17 | PropTypes = PropTypes || React.PropTypes 18 | 19 | export {PropTypes} 20 | -------------------------------------------------------------------------------- /examples/with-jest/index.test.js: -------------------------------------------------------------------------------- 1 | import {matcher, serializer} from 'jest-glamor-react' 2 | import React from 'react' 3 | import {shallow, render, mount} from 'enzyme' 4 | import {Wrapper, Title} from './index' 5 | 6 | test('enzyme', () => { 7 | const ui = ( 8 | 9 | Hello World, this is my first glamor styled component! 10 | 11 | ) 12 | 13 | expect(shallow(ui)).toMatchSnapshotWithGlamor(`enzyme.shallow`) 14 | expect(mount(ui)).toMatchSnapshotWithGlamor(`enzyme.mount`) 15 | expect(render(ui)).toMatchSnapshotWithGlamor(`enzyme.render`) 16 | }) 17 | -------------------------------------------------------------------------------- /examples/with-jest/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "glamorous-jest-react", 3 | "version": "1.0.0", 4 | "description": "Example to test glamorous with jest", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "jest --coverage" 8 | }, 9 | "keywords": [ 10 | "glamorous", 11 | "jest", 12 | "react" 13 | ], 14 | "author": "pksjce", 15 | "license": "ISC", 16 | "dependencies": { 17 | "enzyme": "^2.8.0", 18 | "glamorous": "^1.0.1", 19 | "jest-glamor-react": "^1.2.0", 20 | "react": "^15.4.2" 21 | }, 22 | "devDependencies": { 23 | "enzyme-to-json": "^1.5.0", 24 | "jest": "^19.0.2" 25 | }, 26 | "jest": { 27 | "testEnvironment": "jsdom", 28 | "snapshotSerializers": [ 29 | "enzyme-to-json/serializer" 30 | ], 31 | "setupTestFrameworkScriptFile": "./testSetup.js" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | **What**: 19 | 20 | 21 | **Why**: 22 | 23 | 24 | **How**: 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2017 PayPal 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | SOFTWARE. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | - `glamorous` version: 15 | - `glamor` version: 16 | - `react` version: 17 | 18 | Relevant code. 19 | 20 | ```javascript 21 | 22 | ``` 23 | 24 | What you did: 25 | 26 | 27 | 28 | What happened: 29 | 30 | 31 | 32 | Reproduction: 33 | 34 | 38 | 39 | -- paste your link here -- 40 | 41 | Problem description: 42 | 43 | 44 | 45 | Suggested solution: 46 | 47 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import rollupBabel from 'rollup-plugin-babel' 2 | import commonjs from 'rollup-plugin-commonjs' 3 | import nodeResolve from 'rollup-plugin-node-resolve' 4 | import json from 'rollup-plugin-json' 5 | import uglify from 'rollup-plugin-uglify' 6 | 7 | const minify = process.env.MINIFY 8 | const format = process.env.FORMAT 9 | const esm = format === 'es' 10 | 11 | let targets 12 | 13 | if (minify) { 14 | targets = [{dest: 'dist/glamorous.umd.min.js', format: 'umd'}] 15 | } else if (esm) { 16 | targets = [{dest: 'dist/glamorous.es.js', format: 'es'}] 17 | } else { 18 | targets = [ 19 | {dest: 'dist/glamorous.umd.js', format: 'umd'}, 20 | {dest: 'dist/glamorous.cjs.js', format: 'cjs'}, 21 | ] 22 | } 23 | 24 | export default { 25 | entry: esm ? 'src/index.js' : 'src/umd-entry.js', 26 | targets, 27 | exports: esm ? 'named' : 'default', 28 | moduleName: 'glamorous', 29 | format, 30 | external: ['react', 'glamor', 'prop-types'], 31 | globals: { 32 | react: 'React', 33 | glamor: 'Glamor', 34 | 'prop-types': 'PropTypes', 35 | }, 36 | plugins: [ 37 | nodeResolve({jsnext: true, main: true}), 38 | commonjs({include: 'node_modules/**'}), 39 | json(), 40 | rollupBabel({ 41 | exclude: 'node_modules/**', 42 | babelrc: false, 43 | presets: [['env', {modules: false}], 'stage-2', 'react'], 44 | plugins: ['external-helpers'], 45 | }), 46 | minify ? uglify() : null, 47 | ].filter(Boolean), 48 | } 49 | -------------------------------------------------------------------------------- /examples/with-jest/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`enzyme.mount 1`] = ` 4 | .css-1otybxc, 5 | [data-css-1otybxc] { 6 | padding: 4em; 7 | background: papayawhip; 8 | } 9 | 10 | .css-1tnuino, 11 | [data-css-1tnuino] { 12 | font-size: 1.5em; 13 | text-align: center; 14 | color: palevioletred; 15 | } 16 | 17 | 18 |
21 | 22 |

25 | Hello World, this is my first glamor styled component! 26 |

27 |
28 |
29 |
30 | `; 31 | 32 | exports[`enzyme.render 1`] = ` 33 | .css-1otybxc, 34 | [data-css-1otybxc] { 35 | padding: 4em; 36 | background: papayawhip; 37 | } 38 | 39 | .css-1tnuino, 40 | [data-css-1tnuino] { 41 | font-size: 1.5em; 42 | text-align: center; 43 | color: palevioletred; 44 | } 45 | 46 |
49 |

52 | Hello World, this is my first glamor styled component! 53 |

54 |
55 | `; 56 | 57 | exports[`enzyme.shallow 1`] = ` 58 | .css-1otybxc, 59 | [data-css-1otybxc] { 60 | padding: 4em; 61 | background: papayawhip; 62 | } 63 | 64 |
67 | 68 | Hello World, this is my first glamor styled component! 69 | 70 |
71 | `; 72 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- 1 | # Examples 2 | 3 | ### [Simple Example](https://github.com/MicheleBertoli/css-in-js/blob/master/glamorous/button.js) 4 | This example includes both the object literal styles and prop based styles. 5 | Additionally, shows how to to psuedo selectors and a media query. 6 | 7 | ## Dynamic + Static Styles 8 | 9 | One of the nice bits of glamorous is that it allows you to make a clear 10 | separation between your dynamic and static styles by forcing you to choose 11 | between an object literal and a function. Here's an example of having both 12 | dynamic and static styles: 13 | 14 | ```javascript 15 | const MyLink = glamorous.a( 16 | { 17 | color: 'blue', 18 | textDecoration: 'none', 19 | }, 20 | ({size = 'small'}) => ({ 21 | fontSize: size === 'big' ? 24 : 16, 22 | }) 23 | ) 24 | ``` 25 | 26 | You can see a live preview of this example here: https://codesandbox.io/s/mZkpo0lKA 27 | 28 | ## @supports + CSS Grid 29 | 30 | Want to use CSS Grid, but worried about browser support? Because `glamor` 31 | supports the `@supports` statement, you can use that with `glamorous` easily. 32 | 33 | Play with it [here](https://codesandbox.io/s/2k8yll8qj): 34 | 35 | ```javascript 36 | const MyGrid = glamorous.div({ 37 | margin: 'auto', 38 | backgroundColor: '#fff', 39 | color: '#444', 40 | // You can use @supports with glamor! 41 | // So you can use @supports with glamorous as well! 42 | '@supports (display: grid)': { 43 | display: 'grid', 44 | gridGap: 10, 45 | gridTemplateAreas: ` 46 | "....... header header" 47 | "sidebar content content" 48 | "footer footer footer" 49 | `, 50 | }, 51 | }) 52 | ``` 53 | 54 | ## with Next.js 55 | 56 | Here's a [deployed example](https://with-glamorous-zrqwerosse.now.sh/) of using 57 | `glamorous` with `Next.js`. See the code [here][next]. 58 | 59 | [next]: https://github.com/zeit/next.js/tree/master/examples/with-glamorous 60 | 61 | ## with create-react-app 62 | 63 | [Here](https://github.com/patitonar/create-react-app-glamorous) is an example of using 64 | `glamorous` with `create-react-app`. 65 | -------------------------------------------------------------------------------- /dist-test/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is here to validate that the built version 3 | * of the library exposes the module in the way that we 4 | * want it to. Specifically that the ES6 module import can 5 | * get the glamorous function via default import. Also that 6 | * the CommonJS require returns the glamorous function 7 | * (rather than an object that has the glamorous as a 8 | * `default` property). 9 | * 10 | * This file is unable to validate the global export. 11 | */ 12 | import assert from 'assert' 13 | import {oneLine} from 'common-tags' 14 | 15 | import esImport from '../dist/glamorous.es' 16 | import cjsImport from '../' // picks up the main from package.json 17 | import umdImport from '../dist/glamorous.umd' 18 | 19 | // intentionally left out because you shouldn't ever 20 | // try to require the ES file in CommonJS 21 | // const esRequire = require('../dist/glamorous.es') 22 | const cjsRequire = require('../') // picks up the main from package.json 23 | const umdRequire = require('../dist/glamorous.umd') 24 | 25 | assert(isGlamorousFunction(esImport), 'ES build has a problem with ES Modules') 26 | 27 | // intentionally left out ☝️ 28 | // assert(isGlamorousFunction(esRequire), 'ES build has a problem with CJS') 29 | 30 | assert( 31 | isGlamorousFunction(cjsImport), 32 | 'CJS build has a problem with ES Modules', 33 | ) 34 | 35 | assert(isGlamorousFunction(cjsRequire), 'CJS build has a problem with CJS') 36 | 37 | assert( 38 | isGlamorousFunction(umdImport), 39 | 'UMD build has a problem with ES Modules', 40 | ) 41 | 42 | assert(isGlamorousFunction(umdRequire), 'UMD build has a problem with CJS') 43 | 44 | // TODO: how could we validate the global export? 45 | 46 | console.log('Built modules look good 👍') 47 | 48 | function isGlamorousFunction(thing) { 49 | if (typeof thing !== 'function') { 50 | console.error( 51 | oneLine` 52 | glamorous thing should be a function. 53 | It's a ${typeof thing} with the 54 | properties of: ${Object.keys(thing).join(', ')} 55 | `, 56 | ) 57 | return false 58 | } 59 | return true 60 | } 61 | 62 | /* 63 | eslint 64 | no-console: 0, 65 | import/extensions: 0, 66 | import/no-unresolved: 0, 67 | import/no-duplicates: 0, 68 | */ 69 | -------------------------------------------------------------------------------- /src/theme-provider.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react' 2 | import brcast from 'brcast' 3 | import {PropTypes} from './react-compat' 4 | 5 | export const CHANNEL = '__glamorous__' 6 | 7 | /** 8 | * This is a component which will provide a theme to the entire tree 9 | * via context and event listener 10 | * (because pure components block context updates) 11 | * inspired by the styled-components implementation 12 | * https://github.com/styled-components/styled-components 13 | * @param {Object} theme the theme object.. 14 | */ 15 | class ThemeProvider extends Component { 16 | broadcast = brcast(this.props.theme) 17 | 18 | // create theme, by merging with outer theme, if present 19 | getTheme(passedTheme) { 20 | const theme = passedTheme || this.props.theme 21 | return {...this.outerTheme, ...theme} 22 | } 23 | 24 | getChildContext() { 25 | return { 26 | [CHANNEL]: this.broadcast, 27 | } 28 | } 29 | 30 | setOuterTheme = theme => { 31 | this.outerTheme = theme 32 | } 33 | 34 | componentDidMount() { 35 | // create a new subscription for keeping track of outer theme, if present 36 | if (this.context[CHANNEL]) { 37 | this.unsubscribe = this.context[CHANNEL].subscribe(this.setOuterTheme) 38 | } 39 | } 40 | 41 | componentWillMount() { 42 | // set broadcast state by merging outer theme with own 43 | if (this.context[CHANNEL]) { 44 | this.setOuterTheme(this.context[CHANNEL].getState()) 45 | this.broadcast.setState(this.getTheme()) 46 | } 47 | } 48 | 49 | componentWillReceiveProps(nextProps) { 50 | if (this.props.theme !== nextProps.theme) { 51 | this.broadcast.setState(this.getTheme(nextProps.theme)) 52 | } 53 | } 54 | 55 | componentWillUnmount() { 56 | this.unsubscribe && this.unsubscribe() 57 | } 58 | 59 | render() { 60 | return this.props.children ? 61 | React.Children.only(this.props.children) : 62 | null 63 | } 64 | } 65 | 66 | ThemeProvider.childContextTypes = { 67 | [CHANNEL]: PropTypes.object.isRequired, 68 | } 69 | 70 | ThemeProvider.contextTypes = { 71 | [CHANNEL]: PropTypes.object, 72 | } 73 | 74 | ThemeProvider.propTypes = { 75 | theme: PropTypes.object.isRequired, 76 | children: PropTypes.node, 77 | } 78 | 79 | export default ThemeProvider 80 | -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/theme-provider.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`merges nested themes 1`] = ` 4 | .css-mhpxxj, 5 | [data-css-mhpxxj] { 6 | padding: 1px; 7 | margin: 1px; 8 | } 9 | 10 | .css-19cobm9, 11 | [data-css-19cobm9] { 12 | padding: 1px; 13 | margin: 2px; 14 | } 15 | 16 |
17 | 25 |
26 | 27 |
30 | 31 | 38 | 39 |
42 | 43 | 44 |
45 |
46 |
47 | `; 48 | 49 | exports[`renders a component with theme 1`] = ` 50 | .css-1fyph4i, 51 | [data-css-1fyph4i] { 52 | color: red; 53 | padding: 10px; 54 | } 55 | 56 |
59 | `; 60 | 61 | exports[`renders if children are null 1`] = ` 62 | 69 | `; 70 | 71 | exports[`with theme prop of margin 2px 1`] = ` 72 | 79 | `; 80 | 81 | exports[`with theme prop of margin 2px 2`] = ` 82 | 89 | `; 90 | 91 | exports[`with theme prop of padding 10px 1`] = ` 92 | .css-1p841yy, 93 | [data-css-1p841yy] { 94 | color: red; 95 | padding: 10px; 96 | } 97 | 98 | 99 | 106 | 107 |
110 | 111 | 112 | 113 | `; 114 | 115 | exports[`with theme prop of padding 20px 1`] = ` 116 | .css-1e41o48, 117 | [data-css-1e41o48] { 118 | color: red; 119 | padding: 20px; 120 | } 121 | 122 | 123 | 130 | 131 |
134 | 135 | 136 | 137 | `; 138 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Thanks for being willing to contribute! 4 | 5 | **Working on your first Pull Request?** You can learn how from this *free* series 6 | [How to Contribute to an Open Source Project on GitHub][egghead] 7 | 8 | ## Project setup 9 | 10 | 1. Fork and clone the repo 11 | 2. `$ npm install` to install dependencies 12 | 3. `$ npm start validate` to validate you've got it working 13 | 4. Create a branch for your PR 14 | 15 | This project uses [`nps`][nps] and you can run `npm start` to see what scripts are available. 16 | 17 | ## Add yourself as a contributor 18 | 19 | This project follows the [all contributors][all-contributors] specification. To add yourself to the table of 20 | contributors on the README.md, please use the automated script as part of your PR: 21 | 22 | ```console 23 | npm start "contributors.add" 24 | ``` 25 | 26 | Follow the prompt. If you've already added yourself to the list and are making a new type of contribution, you can run 27 | it again and select the added contribution type. 28 | 29 | ## Committing and Pushing changes 30 | 31 | This project uses [`semantic-release`][semantic-release] to do automatic releases and generate a changelog based on the 32 | commit history. So we follow [a convention][convention] for commit messages. Please follow this convention for your 33 | commit messages. 34 | 35 | You can use `commitizen` to help you to follow [the convention][convention] 36 | 37 | Once you are ready to commit the changes, please use the below commands 38 | 39 | 1. `git add ` 40 | 2. `$ npm start commit` 41 | 42 | ... and follow the instruction of the interactive prompt. 43 | 44 | ### opt into git hooks 45 | 46 | There are git hooks set up with this project that are automatically installed when you install dependencies. They're 47 | really handy, but are turned off by default (so as to not hinder new contributors). You can opt into these by creating 48 | a file called `.opt-in` at the root of the project and putting this inside: 49 | 50 | ``` 51 | commit-msg 52 | pre-commit 53 | ``` 54 | 55 | ## Help needed 56 | 57 | Please checkout the [ROADMAP.md][ROADMAP] and raise an issue to discuss 58 | any of the items in the want to do or might do list. 59 | 60 | Also, please watch the repo and respond to questions/bug reports/feature requests! Thanks! 61 | 62 | [egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github 63 | [semantic-release]: https://npmjs.com/package/semantic-release 64 | [convention]: https://github.com/conventional-changelog/conventional-changelog-angular/blob/ed32559941719a130bb0327f886d6a32a8cbc2ba/convention.md 65 | [all-contributors]: https://github.com/kentcdodds/all-contributors 66 | [ROADMAP]: ./other/ROADMAP.md 67 | [nps]: https://npmjs.com/package/nps 68 | -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/index.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`allows you to specify the tag rendered by a component 1`] = ` 4 | .css-110n7f9, 5 | [data-css-110n7f9] { 6 | height: 1px; 7 | width: 2px; 8 | } 9 | 10 | 14 | `; 15 | 16 | exports[`can use pre-glamorous components with css attributes 1`] = ` 17 | .css-1t62idy, 18 | [data-css-1t62idy] { 19 | -webkit-flex-direction: column; 20 | -ms-flex-direction: column; 21 | -webkit-box-orient: vertical; 22 | -webkit-box-direction: normal; 23 | display: -webkit-box; 24 | display: -moz-box; 25 | display: -ms-flexbox; 26 | display: -webkit-flex; 27 | display: flex; 28 | flex-direction: column; 29 | } 30 | 31 | 36 | `; 37 | 38 | exports[`forwards props when the GlamorousComponent.rootEl is known 1`] = ` 39 | .css-mhpxxj, 40 | [data-css-mhpxxj] { 41 | padding: 1px; 42 | margin: 1px; 43 | } 44 | 45 |
48 | He likes it! Hey Mikey! 49 |
50 | `; 51 | 52 | exports[`merges composed component styles for reasonable overrides 1`] = ` 53 | .css-1k8eh41, 54 | [data-css-1k8eh41] { 55 | margin-top: 1px; 56 | margin-right: 2px; 57 | padding-top: 5px; 58 | padding-right: 6px; 59 | margin-bottom: 3px; 60 | margin-left: 4px; 61 | } 62 | 63 |
66 | `; 67 | 68 | exports[`renders a component with theme properties 1`] = ` 69 | .css-1fyph4i, 70 | [data-css-1fyph4i] { 71 | color: red; 72 | padding: 10px; 73 | } 74 | 75 |
78 | `; 79 | 80 | exports[`sanity test 1`] = ` 81 | .css-1b98bkc, 82 | [data-css-1b98bkc] { 83 | margin-left: 24px; 84 | } 85 | 86 |
89 | `; 90 | 91 | exports[`styles can be functions that accept props 1`] = ` 92 | .css-ig7b2c, 93 | [data-css-ig7b2c] { 94 | margin-top: 2px; 95 | } 96 | 97 |
100 | `; 101 | 102 | exports[`will forward \`color\` to an svg 1`] = ` 103 | 107 | `; 108 | 109 | exports[`will not forward \`color\` to a div 1`] = ` 110 | .css-1ezp9xe, 111 | [data-css-1ezp9xe] { 112 | color: red; 113 | } 114 | 115 |
118 | `; 119 | 120 | exports[`with theme prop of padding 10px 1`] = ` 121 | .css-1p841yy, 122 | [data-css-1p841yy] { 123 | color: red; 124 | padding: 10px; 125 | } 126 | 127 | 134 |
137 | 138 | `; 139 | 140 | exports[`with theme prop of padding 20px 1`] = ` 141 | .css-1e41o48, 142 | [data-css-1e41o48] { 143 | color: red; 144 | padding: 20px; 145 | } 146 | 147 | 154 |
157 | 158 | `; 159 | -------------------------------------------------------------------------------- /src/__tests__/theme-provider.test.js: -------------------------------------------------------------------------------- 1 | /* eslint func-style:0 */ 2 | import React, {Component} from 'react' 3 | import {render, mount} from 'enzyme' 4 | import * as jestGlamorReact from 'jest-glamor-react' 5 | import glamorous from '../' 6 | import ThemeProvider, {CHANNEL} from '../theme-provider' 7 | 8 | expect.extend(jestGlamorReact.matcher) 9 | expect.addSnapshotSerializer(jestGlamorReact.serializer) 10 | 11 | const getMockedContext = unsubscribe => ({ 12 | [CHANNEL]: { 13 | getState: () => {}, 14 | setState: () => {}, 15 | subscribe: () => unsubscribe, 16 | }, 17 | }) 18 | 19 | test('renders a component with theme', () => { 20 | const Comp = glamorous.div( 21 | { 22 | color: 'red', 23 | }, 24 | (props, theme) => ({padding: theme.padding}), 25 | ) 26 | expect( 27 | render( 28 | 29 | 30 | , 31 | ), 32 | ).toMatchSnapshotWithGlamor() 33 | }) 34 | 35 | test('theme properties updates get propagated down the tree', () => { 36 | class Parent extends Component { 37 | state = { 38 | padding: 10, 39 | } 40 | 41 | render() { 42 | return ( 43 | 44 | 45 | 46 | ) 47 | } 48 | } 49 | const Child = glamorous.div( 50 | { 51 | color: 'red', 52 | }, 53 | (props, theme) => ({padding: theme.padding}), 54 | ) 55 | const wrapper = mount() 56 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of padding 10px`) 57 | wrapper.setState({padding: 20}) 58 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of padding 20px`) 59 | }) 60 | 61 | test('merges nested themes', () => { 62 | const One = glamorous.div({}, (props, {padding, margin}) => ({ 63 | padding, 64 | margin, 65 | })) 66 | const Two = glamorous.div({}, (props, {padding, margin}) => ({ 67 | padding, 68 | margin, 69 | })) 70 | expect( 71 | mount( 72 |
73 | 74 |
75 | 76 | 77 | 78 | 79 |
80 |
81 |
, 82 | ), 83 | ).toMatchSnapshotWithGlamor() 84 | }) 85 | 86 | test('renders if children are null', () => { 87 | expect( 88 | mount( 89 | 90 | {false &&
} 91 | , 92 | ), 93 | ).toMatchSnapshotWithGlamor() 94 | }) 95 | 96 | test('cleans up outer theme subscription when unmounts', () => { 97 | const unsubscribe = jest.fn() 98 | const context = getMockedContext(unsubscribe) 99 | const wrapper = mount(, {context}) 100 | wrapper.unmount() 101 | expect(unsubscribe).toHaveBeenCalled() 102 | }) 103 | 104 | test('does nothing when receive same theme via props', () => { 105 | const theme = {margin: 2} 106 | const wrapper = mount() 107 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of margin 2px`) 108 | wrapper.setProps({theme}) 109 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of margin 2px`) 110 | }) 111 | -------------------------------------------------------------------------------- /package-scripts.js: -------------------------------------------------------------------------------- 1 | const npsUtils = require('nps-utils') 2 | 3 | const series = npsUtils.series 4 | const concurrent = npsUtils.concurrent 5 | const rimraf = npsUtils.rimraf 6 | 7 | module.exports = { 8 | scripts: { 9 | contributors: { 10 | add: { 11 | description: 'When new people contribute to the project, run this', 12 | script: 'all-contributors add', 13 | }, 14 | generate: { 15 | description: 'Update the badge and contributors table', 16 | script: 'all-contributors generate', 17 | }, 18 | }, 19 | commit: { 20 | description: 'This uses commitizen to help us generate well formatted commit messages', 21 | script: 'git-cz', 22 | }, 23 | test: { 24 | default: 'jest --coverage', 25 | watch: 'jest --watch', 26 | build: { 27 | description: 'validates the built files', 28 | script: 'babel-node dist-test/index.js', 29 | }, 30 | }, 31 | build: { 32 | description: 'delete the dist directory and run all builds', 33 | default: series( 34 | rimraf('dist'), 35 | concurrent.nps('build.es', 'build.umd.main', 'build.umd.min') 36 | ), 37 | es: { 38 | description: 'run the build with rollup (uses rollup.config.js)', 39 | script: 'rollup --config --environment FORMAT:es', 40 | }, 41 | umd: { 42 | min: { 43 | description: 'run the rollup build with sourcemaps', 44 | script: 'rollup --config --sourcemap --environment MINIFY,FORMAT:umd', 45 | }, 46 | main: { 47 | description: 'builds the cjs and umd files', 48 | script: 'rollup --config --sourcemap --environment FORMAT:umd', 49 | }, 50 | }, 51 | andTest: series.nps('build', 'test.build'), 52 | }, 53 | lint: { 54 | description: 'lint the entire project', 55 | script: 'eslint .', 56 | }, 57 | reportCoverage: { 58 | description: 'Report coverage stats to codecov. This should be run after the `test` script', 59 | script: 'codecov', 60 | }, 61 | release: { 62 | description: 'We automate releases with semantic-release. This should only be run on travis', 63 | script: series( 64 | 'semantic-release pre', 65 | 'npm publish', 66 | 'semantic-release post' 67 | ), 68 | }, 69 | examples: { 70 | withJest: { 71 | description: 'This jumpstarts and validates the with-jest example.', 72 | script: series( 73 | 'cd examples/with-jest', 74 | 'yarn install', 75 | 'yarn run test', 76 | 'cd ../../' 77 | ), 78 | }, 79 | }, 80 | validate: { 81 | description: 'This runs several scripts to make sure things look good before committing or on clean install', 82 | default: concurrent.nps('lint', 'build.andTest', 'test'), 83 | examples: { 84 | description: 'Validates the examples folder', 85 | script: 'nps examples.withJest', 86 | }, 87 | }, 88 | }, 89 | options: { 90 | silent: false, 91 | }, 92 | } 93 | 94 | // this is not transpiled 95 | /* 96 | eslint 97 | max-len: 0, 98 | comma-dangle: [ 99 | 2, 100 | { 101 | arrays: 'always-multiline', 102 | objects: 'always-multiline', 103 | functions: 'never' 104 | } 105 | ] 106 | */ 107 | -------------------------------------------------------------------------------- /other/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at kent+coc@doddsfamily.us. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at [http://contributor-covenant.org/version/1/4][version] 72 | 73 | [homepage]: http://contributor-covenant.org 74 | [version]: http://contributor-covenant.org/version/1/4/ 75 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "glamorous", 3 | "version": "0.0.0-semantically-released", 4 | "description": "React component styling solved", 5 | "main": "dist/glamorous.cjs.js", 6 | "jsnext:main": "dist/glamorous.es.js", 7 | "module": "dist/glamorous.es.js", 8 | "scripts": { 9 | "start": "nps", 10 | "test": "nps test", 11 | "commitmsg": "opt --in commit-msg --exec \"validate-commit-msg\"", 12 | "precommit": "lint-staged && opt --in pre-commit --exec \"npm start validate\"" 13 | }, 14 | "files": [ 15 | "dist" 16 | ], 17 | "keywords": [ 18 | "react", 19 | "css", 20 | "css-in-js", 21 | "styled-components", 22 | "glamor", 23 | "jsxstyle" 24 | ], 25 | "author": "Kent C. Dodds (http://kentcdodds.com/)", 26 | "license": "MIT", 27 | "dependencies": { 28 | "brcast": "^1.1.6", 29 | "html-tag-names": "^1.1.1", 30 | "svg-tag-names": "^1.1.0" 31 | }, 32 | "peerDependencies": { 33 | "glamor": ">=2", 34 | "react": ">=14" 35 | }, 36 | "devDependencies": { 37 | "all-contributors-cli": "^4.1.0", 38 | "babel-cli": "^6.24.1", 39 | "babel-jest": "^19.0.0", 40 | "babel-plugin-external-helpers": "^6.22.0", 41 | "babel-preset-env": "^1.3.3", 42 | "babel-preset-react": "^6.24.1", 43 | "babel-preset-stage-2": "^6.24.1", 44 | "babel-register": "^6.24.1", 45 | "codecov": "^2.1.0", 46 | "commitizen": "^2", 47 | "common-tags": "^1.4.0", 48 | "cz-conventional-changelog": "^2.0.0", 49 | "enzyme": "^2.8.0", 50 | "enzyme-to-json": "^1.5.0", 51 | "eslint": "^3.17.0", 52 | "eslint-config-kentcdodds": "^12.0.0", 53 | "glamor": "^2.20.24", 54 | "husky": "^0.13.2", 55 | "jest-cli": "^19.0.2", 56 | "jest-glamor-react": "^1.2.0", 57 | "lint-staged": "^3.3.1", 58 | "nps": "^5.0.3", 59 | "nps-utils": "^1.1.2", 60 | "opt-cli": "^1.5.1", 61 | "prettier-eslint-cli": "^3.1.2", 62 | "prop-types": "^15.5.6", 63 | "react": "^15.5.3", 64 | "react-addons-test-utils": "^15.5.1", 65 | "react-dom": "^15.5.3", 66 | "rollup": "^0.41.6", 67 | "rollup-plugin-babel": "^2.7.1", 68 | "rollup-plugin-commonjs": "^8.0.2", 69 | "rollup-plugin-json": "^2.1.1", 70 | "rollup-plugin-node-resolve": "^3.0.0", 71 | "rollup-plugin-uglify": "^1.0.1", 72 | "semantic-release": "^6.3.6", 73 | "validate-commit-msg": "^2.12.1" 74 | }, 75 | "eslintConfig": { 76 | "extends": [ 77 | "kentcdodds", 78 | "kentcdodds/jest", 79 | "kentcdodds/react", 80 | "kentcdodds/prettier" 81 | ] 82 | }, 83 | "lint-staged": { 84 | "*.js": [ 85 | "prettier-eslint --write", 86 | "git add" 87 | ] 88 | }, 89 | "jest": { 90 | "testEnvironment": "jsdom", 91 | "coverageThreshold": { 92 | "global": { 93 | "branches": 100, 94 | "functions": 100, 95 | "lines": 100, 96 | "statements": 100 97 | } 98 | }, 99 | "snapshotSerializers": [ 100 | "enzyme-to-json/serializer" 101 | ], 102 | "roots": [ 103 | "src" 104 | ] 105 | }, 106 | "config": { 107 | "commitizen": { 108 | "path": "node_modules/cz-conventional-changelog" 109 | } 110 | }, 111 | "repository": { 112 | "type": "git", 113 | "url": "https://github.com/paypal/glamorous.git" 114 | }, 115 | "bugs": { 116 | "url": "https://github.com/paypal/glamorous/issues" 117 | }, 118 | "homepage": "https://github.com/paypal/glamorous#readme" 119 | } 120 | -------------------------------------------------------------------------------- /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | { 2 | "projectName": "glamorous", 3 | "projectOwner": "paypal", 4 | "files": [ 5 | "README.md" 6 | ], 7 | "imageSize": 100, 8 | "commit": false, 9 | "contributors": [ 10 | { 11 | "login": "kentcdodds", 12 | "name": "Kent C. Dodds", 13 | "avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=3", 14 | "profile": "https://kentcdodds.com", 15 | "contributions": [ 16 | "code", 17 | "doc", 18 | "infra", 19 | "test", 20 | "review" 21 | ] 22 | }, 23 | { 24 | "login": "CompuIves", 25 | "name": "Ives van Hoorne", 26 | "avatar_url": "https://avatars0.githubusercontent.com/u/587016?v=3", 27 | "profile": "http://ivesvh.com", 28 | "contributions": [ 29 | "example" 30 | ] 31 | }, 32 | { 33 | "login": "patitonar", 34 | "name": "Gerardo Nardelli", 35 | "avatar_url": "https://avatars3.githubusercontent.com/u/4614574?v=3", 36 | "profile": "https://gnardelli.com", 37 | "contributions": [ 38 | "doc" 39 | ] 40 | }, 41 | { 42 | "login": "crowchirp", 43 | "name": "Chandan Rai", 44 | "avatar_url": "https://avatars0.githubusercontent.com/u/14236753?v=3", 45 | "profile": "https://github.com/crowchirp", 46 | "contributions": [ 47 | "doc" 48 | ] 49 | }, 50 | { 51 | "login": "binhonglee", 52 | "name": "BinHong Lee", 53 | "avatar_url": "https://avatars3.githubusercontent.com/u/16726210?v=3", 54 | "profile": "https://binhonglee.github.io", 55 | "contributions": [ 56 | "doc" 57 | ] 58 | }, 59 | { 60 | "login": "paulmolluzzo", 61 | "name": "Paul Molluzzo", 62 | "avatar_url": "https://avatars2.githubusercontent.com/u/737065?v=3", 63 | "profile": "https://paul.molluzzo.com", 64 | "contributions": [ 65 | "doc", 66 | "example" 67 | ] 68 | }, 69 | { 70 | "login": "tsriram", 71 | "name": "Sriram Thiagarajan", 72 | "avatar_url": "https://avatars0.githubusercontent.com/u/450559?v=3", 73 | "profile": "http://tsriram.in", 74 | "contributions": [ 75 | "code" 76 | ] 77 | }, 78 | { 79 | "login": "pksjce", 80 | "name": "Pavithra Kodmad", 81 | "avatar_url": "https://avatars1.githubusercontent.com/u/417268?v=3", 82 | "profile": "https://github.com/pksjce", 83 | "contributions": [ 84 | "example" 85 | ] 86 | }, 87 | { 88 | "login": "vesparny", 89 | "name": "Alessandro Arnodo", 90 | "avatar_url": "https://avatars0.githubusercontent.com/u/82070?v=3", 91 | "profile": "http://alessandro.arnodo.net", 92 | "contributions": [ 93 | "code", 94 | "doc", 95 | "test" 96 | ] 97 | }, 98 | { 99 | "login": "developit", 100 | "name": "Jason Miller", 101 | "avatar_url": "https://avatars1.githubusercontent.com/u/105127?v=3", 102 | "profile": "https://jasonformat.com", 103 | "contributions": [ 104 | "review" 105 | ] 106 | }, 107 | { 108 | "login": "kwelch", 109 | "name": "Kyle Welch", 110 | "avatar_url": "https://avatars0.githubusercontent.com/u/1295580?v=3", 111 | "profile": "http://www.krwelch.com", 112 | "contributions": [ 113 | "review", 114 | "example" 115 | ] 116 | }, 117 | { 118 | "login": "javivelasco", 119 | "name": "Javi Velasco", 120 | "avatar_url": "https://avatars0.githubusercontent.com/u/1634922?v=3", 121 | "profile": "http://javivelasco.com", 122 | "contributions": [ 123 | "review" 124 | ] 125 | }, 126 | { 127 | "login": "aweary", 128 | "name": "Brandon Dail", 129 | "avatar_url": "https://avatars1.githubusercontent.com/u/6886061?v=3", 130 | "profile": "https://twitter.com/aweary", 131 | "contributions": [ 132 | "review" 133 | ] 134 | }, 135 | { 136 | "login": "browniefed", 137 | "name": "Jason Brown", 138 | "avatar_url": "https://avatars2.githubusercontent.com/u/1714673?v=3", 139 | "profile": "http://browniefed.com", 140 | "contributions": [ 141 | "review" 142 | ] 143 | } 144 | ] 145 | } 146 | -------------------------------------------------------------------------------- /src/__tests__/index.js: -------------------------------------------------------------------------------- 1 | /* eslint func-style:0 */ 2 | import React from 'react' 3 | import * as glamor from 'glamor' 4 | import {render, mount} from 'enzyme' 5 | import * as jestGlamorReact from 'jest-glamor-react' 6 | import {oneLine} from 'common-tags' 7 | import glamorous from '../' 8 | import {CHANNEL} from '../theme-provider' 9 | 10 | expect.extend(jestGlamorReact.matcher) 11 | expect.addSnapshotSerializer(jestGlamorReact.serializer) 12 | 13 | const getMockedContext = unsubscribe => ({ 14 | [CHANNEL]: { 15 | getState: () => {}, 16 | setState: () => {}, 17 | subscribe: () => unsubscribe, 18 | }, 19 | }) 20 | 21 | test('sanity test', () => { 22 | const Div = glamorous.div({marginLeft: 24}) 23 | expect(render(
)).toMatchSnapshotWithGlamor() 24 | }) 25 | 26 | test('can use pre-glamorous components with css attributes', () => { 27 | expect( 28 | render( 29 | , 36 | ), 37 | ).toMatchSnapshotWithGlamor() 38 | }) 39 | 40 | test('merges composed component styles for reasonable overrides', () => { 41 | const Parent = glamorous.div({ 42 | marginTop: 1, 43 | marginRight: 1, 44 | paddingTop: 1, 45 | paddingRight: 1, 46 | }) 47 | const Child = glamorous(Parent)({ 48 | marginRight: 2, 49 | marginBottom: 2, 50 | paddingTop: 2, 51 | paddingRight: 2, 52 | }) 53 | const Grandchild = glamorous(Child)({ 54 | marginBottom: 3, 55 | marginLeft: 3, 56 | }) 57 | const otherGlamorStyles1 = glamor.css({ 58 | marginLeft: 4, 59 | paddingTop: 4, 60 | }) 61 | const otherGlamorStyles2 = glamor.css({ 62 | paddingTop: 5, 63 | paddingRight: 5, 64 | }) 65 | const wrapper = render( 66 | , 80 | ) 81 | const el = wrapper.children()[0] 82 | // being explicit 83 | const included = ['other', 'classes', 'are', 'not', 'removed'] 84 | included.forEach(className => { 85 | expect(el.attribs.class).toContain(className) 86 | }) 87 | // still using a snapshot though for good measure 88 | expect(wrapper).toMatchSnapshotWithGlamor() 89 | }) 90 | 91 | test('styles can be functions that accept props', () => { 92 | const MyDiv = glamorous.div({marginTop: 1}, ({margin}) => ({ 93 | marginTop: margin, 94 | })) 95 | expect(render()).toMatchSnapshotWithGlamor() 96 | }) 97 | 98 | test('falls back to `name` if displayName cannot be inferred', () => { 99 | const MyDiv = props =>
100 | const MyComp = glamorous(MyDiv)() 101 | expect(MyComp.displayName).toBe('glamorous(MyDiv)') 102 | }) 103 | 104 | test('falls back to `unknown` if name cannot be inferred', () => { 105 | const MyComp = glamorous(props =>
)() 106 | expect(MyComp.displayName).toBe('glamorous(unknown)') 107 | }) 108 | 109 | test('allows you to specify a displayName', () => { 110 | const MyComp = glamorous(props =>
, { 111 | displayName: 'HiThere', 112 | })() 113 | expect(MyComp.displayName).toBe('HiThere') 114 | }) 115 | 116 | test('will not forward `color` to a div', () => { 117 | expect(render()).toMatchSnapshotWithGlamor() 118 | }) 119 | 120 | test('will forward `color` to an svg', () => { 121 | expect(render()).toMatchSnapshotWithGlamor() 122 | }) 123 | 124 | test('allows you to specify the tag rendered by a component', () => { 125 | const MySvgComponent = props => 126 | const MyStyledSvgComponent = glamorous(MySvgComponent, {rootEl: 'svg'})({ 127 | height: 1, 128 | width: 1, 129 | }) 130 | expect( 131 | render( 132 | , 133 | ), 134 | ).toMatchSnapshotWithGlamor() 135 | }) 136 | 137 | test('forwards props when the GlamorousComponent.rootEl is known', () => { 138 | // this test demonstrates how to prevent glamorous from forwarding 139 | // props all the way down to components which shouldn't be getting them 140 | // (components you have no control over). 141 | 142 | // here's a component you can't change, it renders all props to it's 143 | // `rootEl` which is a `div` in this case. They probably shouldn't be doing 144 | // this, but there are use cases for libraries to do this: 145 | const SomeComponentIHaveNoControlOver = jest.fn(props =>
) 146 | 147 | // to prevent glamorous from forwarding non-div attributes to this 148 | // component, you can make a glamorous version out of it and specify the 149 | // `rootEl` as `div` (doesn't matter a whole lot, except in the case of 150 | // `svg`, if it's an `svg`, then definitely put `svg` otherwise, put 151 | // something else... 152 | const MyWrappedVersion = glamorous(SomeComponentIHaveNoControlOver, { 153 | rootEl: 'div', 154 | })() 155 | // no need to pass anything. This will just create be a no-op class, 156 | // no problem 157 | const MyWrappedVersionMock = jest.fn(props => ( 158 | 159 | )) 160 | 161 | // from there we can use our wrapped version and it will function the 162 | // same as the original 163 | const MyMyWrappedVersion = jest.fn(props => ( 164 | 165 | )) 166 | 167 | // then if we make a parent glamorous, it will forward props down until 168 | // it hits our wrapper at which time it will check whether the prop is 169 | // valid for `rootEl === 'div'`, and if it's not then it wont forward the 170 | // prop along to `SomeComponentIHaveNoControlOver` and we wont have the 171 | // warning from react about noForward being an invalid property for a 172 | // `div`. Yay! 173 | const MyStyledMyMyWrappedVersion = glamorous(MyMyWrappedVersion)({ 174 | padding: 1, 175 | margin: 1, 176 | }) 177 | const secretMessage = 'He likes it! Hey Mikey!' 178 | const ui = render( 179 | 180 | {secretMessage} 181 | , 182 | ) 183 | const {calls: [[calledProps]]} = SomeComponentIHaveNoControlOver.mock 184 | expect(calledProps.noForward).toBe(undefined) 185 | expect(MyWrappedVersionMock).toHaveBeenCalledWith( 186 | { 187 | className: expect.anything(), 188 | children: secretMessage, 189 | noForward: 42, 190 | }, 191 | expect.anything(), 192 | expect.anything(), 193 | ) 194 | expect(MyMyWrappedVersion).toHaveBeenCalledWith( 195 | { 196 | children: secretMessage, 197 | className: expect.anything(), 198 | noForward: 42, 199 | }, 200 | expect.anything(), 201 | expect.anything(), 202 | ) 203 | expect(ui).toMatchSnapshotWithGlamor() 204 | }) 205 | 206 | test('renders a component with theme properties', () => { 207 | const Comp = glamorous.div( 208 | { 209 | color: 'red', 210 | }, 211 | (props, theme) => ({padding: theme.padding}), 212 | ) 213 | expect( 214 | render(), 215 | ).toMatchSnapshotWithGlamor() 216 | }) 217 | 218 | test('passes an updated theme when theme prop changes', () => { 219 | const Comp = glamorous.div( 220 | { 221 | color: 'red', 222 | }, 223 | (props, theme) => ({padding: theme.padding}), 224 | ) 225 | const wrapper = mount() 226 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of padding 10px`) 227 | wrapper.setProps({theme: {padding: 20}}) 228 | expect(wrapper).toMatchSnapshotWithGlamor(`with theme prop of padding 20px`) 229 | }) 230 | 231 | test('cleans up theme subscription when unmounts', () => { 232 | const unsubscribe = jest.fn() 233 | const context = getMockedContext(unsubscribe) 234 | const Comp = glamorous.div() 235 | const wrapper = mount(, {context}) 236 | wrapper.unmount() 237 | expect(unsubscribe).toHaveBeenCalled() 238 | }) 239 | 240 | test('ignores context if a theme props is passed', () => { 241 | const unsubscribe = jest.fn() 242 | const context = getMockedContext(unsubscribe) 243 | const Comp = glamorous.div() 244 | const wrapper = mount(, {context}) 245 | wrapper.unmount() 246 | expect(unsubscribe).toHaveBeenCalledTimes(0) 247 | }) 248 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a relatively small abstraction that's ripe for open sourcing. 3 | * Documentation is in the README.md 4 | */ 5 | import React, {Component} from 'react' 6 | import {css, styleSheet} from 'glamor' 7 | import shouldForwardProperty from './should-forward-property' 8 | import domElements from './dom-elements' 9 | import {PropTypes} from './react-compat' 10 | import ThemeProvider, {CHANNEL} from './theme-provider' 11 | 12 | /** 13 | * This is the main export and the function that people 14 | * interact with most directly. 15 | * 16 | * It accepts a component which can be a string or a React Component and returns 17 | * a "glamorousComponentFactory" 18 | * @param {String|ReactComponent} comp the component to render 19 | * @param {Object} options helpful info for the GlamorousComponents 20 | * @return {Function} the glamorousComponentFactory 21 | */ 22 | function glamorous(comp, {rootEl, displayName} = {}) { 23 | return glamorousComponentFactory 24 | 25 | /** 26 | * This returns a React Component that renders the comp (closure) 27 | * with a className based on the given glamor styles object(s) 28 | * @param {...Object|Function} styles the styles to create with glamor. 29 | * If any of these are functions, they are invoked with the component 30 | * props and the return value is used. 31 | * @return {ReactComponent} the ReactComponent function 32 | */ 33 | function glamorousComponentFactory(...styles) { 34 | /** 35 | * This is a component which will render the comp (closure) 36 | * with the glamorous styles (closure). Forwards any valid 37 | * props to the underlying component. 38 | * @param {Object} theme the theme object 39 | * @return {ReactElement} React.createElement 40 | */ 41 | class GlamorousComponent extends Component { 42 | state = {theme: null} 43 | setTheme = theme => this.setState({theme}) 44 | 45 | componentWillMount() { 46 | const {theme} = this.props 47 | if (this.context[CHANNEL]) { 48 | // if a theme is provided via props, it takes precedence over context 49 | this.setTheme(theme ? theme : this.context[CHANNEL].getState()) 50 | } else { 51 | this.setTheme(theme || {}) 52 | } 53 | } 54 | 55 | componentWillReceiveProps(nextProps) { 56 | if (this.props.theme !== nextProps.theme) { 57 | this.setTheme(nextProps.theme) 58 | } 59 | } 60 | 61 | componentDidMount() { 62 | if (this.context[CHANNEL] && !this.props.theme) { 63 | // subscribe to future theme changes 64 | this.unsubscribe = this.context[CHANNEL].subscribe(this.setTheme) 65 | } 66 | } 67 | 68 | componentWillUnmount() { 69 | // cleanup subscription 70 | this.unsubscribe && this.unsubscribe() 71 | } 72 | 73 | render() { 74 | const {className, ...rest} = this.props 75 | const {toForward, cssOverrides} = splitProps(rest, GlamorousComponent) 76 | // create className to apply 77 | const mappedArgs = GlamorousComponent.styles.map(glamorRules => { 78 | if (typeof glamorRules === 'function') { 79 | return glamorRules(this.props, {...this.state.theme}) 80 | } 81 | return glamorRules 82 | }) 83 | const { 84 | glamorStyles: parentGlamorStyles, 85 | glamorlessClassName, 86 | } = extractGlamorStyles(className) 87 | const glamorClassName = css( 88 | ...mappedArgs, 89 | ...parentGlamorStyles, 90 | cssOverrides, 91 | ).toString() 92 | const fullClassName = joinClasses(glamorlessClassName, glamorClassName) 93 | 94 | return React.createElement(GlamorousComponent.comp, { 95 | className: fullClassName, 96 | ...toForward, 97 | }) 98 | } 99 | } 100 | 101 | GlamorousComponent.propTypes = { 102 | className: PropTypes.string, 103 | cssOverrides: PropTypes.object, 104 | theme: PropTypes.object, 105 | } 106 | 107 | GlamorousComponent.contextTypes = { 108 | [CHANNEL]: PropTypes.object, 109 | } 110 | 111 | Object.assign( 112 | GlamorousComponent, 113 | getGlamorousComponentMetadata({comp, styles, rootEl, displayName}), 114 | ) 115 | return GlamorousComponent 116 | } 117 | } 118 | 119 | function getGlamorousComponentMetadata({comp, styles, rootEl, displayName}) { 120 | const componentsComp = comp.comp ? comp.comp : comp 121 | return { 122 | // join styles together (for anyone doing: glamorous(glamorous.a({}), {})) 123 | styles: comp.styles ? comp.styles.concat(styles) : styles, 124 | // keep track of the ultimate rootEl to render (we never 125 | // actually render anything but 126 | // the base component, even when people wrap a glamorous 127 | // component in glamorous 128 | comp: componentsComp, 129 | rootEl: rootEl || componentsComp, 130 | // set the displayName to something that's slightly more 131 | // helpful than `GlamorousComponent` :) 132 | displayName: displayName || `glamorous(${getDisplayName(comp)})`, 133 | } 134 | } 135 | 136 | function getDisplayName(comp) { 137 | return typeof comp === 'string' ? 138 | comp : 139 | comp.displayName || comp.name || 'unknown' 140 | } 141 | 142 | /* 143 | * This creates a glamorousComponentFactory for every DOM element so you can 144 | * simply do: 145 | * const GreenButton = glamorous.button({ 146 | * backgroundColor: 'green', 147 | * padding: 20, 148 | * }) 149 | * Click Me! 150 | */ 151 | Object.assign( 152 | glamorous, 153 | domElements.reduce( 154 | (getters, tag) => { 155 | getters[tag] = glamorous(tag) 156 | return getters 157 | }, 158 | {}, 159 | ), 160 | ) 161 | 162 | /* 163 | * This creates a glamorous component for each DOM element so you can 164 | * simply do: 165 | * 169 | * I'm green! 170 | * 171 | */ 172 | Object.assign( 173 | glamorous, 174 | domElements.reduce( 175 | (comps, tag) => { 176 | const capitalTag = capitalize(tag) 177 | comps[capitalTag] = glamorous[tag]() 178 | comps[capitalTag].displayName = `glamorous.${capitalTag}` 179 | comps[capitalTag].propsAreCssOverrides = true 180 | return comps 181 | }, 182 | {}, 183 | ), 184 | ) 185 | 186 | /** 187 | * This function takes a className string and gets all the 188 | * associated glamor styles. It's used to merge glamor styles 189 | * from a className to make sure that specificity is not 190 | * a problem when passing a className to a component. 191 | * @param {String} [className=''] the className string 192 | * @return {Object} { glamorStyles, glamorlessClassName } 193 | * - glamorStyles is an array of all the glamor styles objects 194 | * - glamorlessClassName is the rest of the className string 195 | * without the glamor classNames 196 | */ 197 | function extractGlamorStyles(className = '') { 198 | return className.toString().split(' ').reduce((groups, name) => { 199 | if (name.indexOf('css-') === 0) { 200 | const id = name.slice('css-'.length) 201 | const {style} = styleSheet.registered[id] 202 | groups.glamorStyles.push(style) 203 | } else { 204 | groups.glamorlessClassName = joinClasses( 205 | groups.glamorlessClassName, 206 | name, 207 | ) 208 | } 209 | return groups 210 | }, {glamorlessClassName: '', glamorStyles: []}) 211 | } 212 | 213 | function splitProps( 214 | {css: cssOverrides = {}, ...rest}, 215 | {propsAreCssOverrides, rootEl}, 216 | ) { 217 | const returnValue = {toForward: {}, cssOverrides: {}} 218 | if (!propsAreCssOverrides) { 219 | returnValue.cssOverrides = cssOverrides 220 | if (typeof rootEl !== 'string') { 221 | // if it's not a string, then we can forward everything 222 | // (because it's a component) 223 | returnValue.toForward = rest 224 | return returnValue 225 | } 226 | } 227 | return Object.keys(rest).reduce( 228 | (split, propName) => { 229 | if (shouldForwardProperty(rootEl, propName)) { 230 | split.toForward[propName] = rest[propName] 231 | } else if (propsAreCssOverrides) { 232 | split.cssOverrides[propName] = rest[propName] 233 | } 234 | return split 235 | }, 236 | returnValue, 237 | ) 238 | } 239 | 240 | function capitalize(s) { 241 | return s.slice(0, 1).toUpperCase() + s.slice(1) 242 | } 243 | 244 | function joinClasses(...classes) { 245 | return classes.filter(Boolean).join(' ') 246 | } 247 | 248 | export default glamorous 249 | export {ThemeProvider} 250 | -------------------------------------------------------------------------------- /src/should-forward-property.js: -------------------------------------------------------------------------------- 1 | /* eslint max-lines:0, func-style:0 */ 2 | // copied from: 3 | // https://github.com/styled-components/styled-components/tree/ 4 | // 956e8210b6277860c89404f9cb08735f97eaa7e1/src/utils/validAttr.js 5 | /* Trying to avoid the unknown-prop errors on glamorous components 6 | by filtering by React's attribute whitelist. 7 | */ 8 | 9 | /* Logic copied from ReactDOMUnknownPropertyHook */ 10 | const reactProps = [ 11 | 'children', 12 | 'dangerouslySetInnerHTML', 13 | 'key', 14 | 'ref', 15 | 'autoFocus', 16 | 'defaultValue', 17 | 'valueLink', 18 | 'defaultChecked', 19 | 'checkedLink', 20 | 'innerHTML', 21 | 'suppressContentEditableWarning', 22 | 'onFocusIn', 23 | 'onFocusOut', 24 | 'className', 25 | 26 | /* List copied from https://facebook.github.io/react/docs/events.html */ 27 | 'onCopy', 28 | 'onCut', 29 | 'onPaste', 30 | 'onCompositionEnd', 31 | 'onCompositionStart', 32 | 'onCompositionUpdate', 33 | 'onKeyDown', 34 | 'onKeyPress', 35 | 'onKeyUp', 36 | 'onFocus', 37 | 'onBlur', 38 | 'onChange', 39 | 'onInput', 40 | 'onSubmit', 41 | 'onClick', 42 | 'onContextMenu', 43 | 'onDoubleClick', 44 | 'onDrag', 45 | 'onDragEnd', 46 | 'onDragEnter', 47 | 'onDragExit', 48 | 'onDragLeave', 49 | 'onDragOver', 50 | 'onDragStart', 51 | 'onDrop', 52 | 'onMouseDown', 53 | 'onMouseEnter', 54 | 'onMouseLeave', 55 | 'onMouseMove', 56 | 'onMouseOut', 57 | 'onMouseOver', 58 | 'onMouseUp', 59 | 'onSelect', 60 | 'onTouchCancel', 61 | 'onTouchEnd', 62 | 'onTouchMove', 63 | 'onTouchStart', 64 | 'onScroll', 65 | 'onWheel', 66 | 'onAbort', 67 | 'onCanPlay', 68 | 'onCanPlayThrough', 69 | 'onDurationChange', 70 | 'onEmptied', 71 | 'onEncrypted', 72 | 'onEnded', 73 | 'onError', 74 | 'onLoadedData', 75 | 'onLoadedMetadata', 76 | 'onLoadStart', 77 | 'onPause', 78 | 'onPlay', 79 | 'onPlaying', 80 | 'onProgress', 81 | 'onRateChange', 82 | 'onSeeked', 83 | 'onSeeking', 84 | 'onStalled', 85 | 'onSuspend', 86 | 'onTimeUpdate', 87 | 'onVolumeChange', 88 | 'onWaiting', 89 | 'onLoad', 90 | 'onAnimationStart', 91 | 'onAnimationEnd', 92 | 'onAnimationIteration', 93 | 'onTransitionEnd', 94 | 95 | 'onCopyCapture', 96 | 'onCutCapture', 97 | 'onPasteCapture', 98 | 'onCompositionEndCapture', 99 | 'onCompositionStartCapture', 100 | 'onCompositionUpdateCapture', 101 | 'onKeyDownCapture', 102 | 'onKeyPressCapture', 103 | 'onKeyUpCapture', 104 | 'onFocusCapture', 105 | 'onBlurCapture', 106 | 'onChangeCapture', 107 | 'onInputCapture', 108 | 'onSubmitCapture', 109 | 'onClickCapture', 110 | 'onContextMenuCapture', 111 | 'onDoubleClickCapture', 112 | 'onDragCapture', 113 | 'onDragEndCapture', 114 | 'onDragEnterCapture', 115 | 'onDragExitCapture', 116 | 'onDragLeaveCapture', 117 | 'onDragOverCapture', 118 | 'onDragStartCapture', 119 | 'onDropCapture', 120 | 'onMouseDownCapture', 121 | 'onMouseEnterCapture', 122 | 'onMouseLeaveCapture', 123 | 'onMouseMoveCapture', 124 | 'onMouseOutCapture', 125 | 'onMouseOverCapture', 126 | 'onMouseUpCapture', 127 | 'onSelectCapture', 128 | 'onTouchCancelCapture', 129 | 'onTouchEndCapture', 130 | 'onTouchMoveCapture', 131 | 'onTouchStartCapture', 132 | 'onScrollCapture', 133 | 'onWheelCapture', 134 | 'onAbortCapture', 135 | 'onCanPlayCapture', 136 | 'onCanPlayThroughCapture', 137 | 'onDurationChangeCapture', 138 | 'onEmptiedCapture', 139 | 'onEncryptedCapture', 140 | 'onEndedCapture', 141 | 'onErrorCapture', 142 | 'onLoadedDataCapture', 143 | 'onLoadedMetadataCapture', 144 | 'onLoadStartCapture', 145 | 'onPauseCapture', 146 | 'onPlayCapture', 147 | 'onPlayingCapture', 148 | 'onProgressCapture', 149 | 'onRateChangeCapture', 150 | 'onSeekedCapture', 151 | 'onSeekingCapture', 152 | 'onStalledCapture', 153 | 'onSuspendCapture', 154 | 'onTimeUpdateCapture', 155 | 'onVolumeChangeCapture', 156 | 'onWaitingCapture', 157 | 'onLoadCapture', 158 | 'onAnimationStartCapture', 159 | 'onAnimationEndCapture', 160 | 'onAnimationIterationCapture', 161 | 'onTransitionEndCapture', 162 | ] 163 | 164 | /* From HTMLDOMPropertyConfig */ 165 | const htmlProps = [ 166 | /** 167 | * Standard Properties 168 | */ 169 | 'accept', 170 | 'acceptCharset', 171 | 'accessKey', 172 | 'action', 173 | 'allowFullScreen', 174 | 'allowTransparency', 175 | 'alt', 176 | // specifies target context for links with `preload` type 177 | 'as', 178 | 'async', 179 | 'autoComplete', 180 | // autoFocus is polyfilled/normalized by AutoFocusUtils 181 | '// autoFocus', 182 | 'autoPlay', 183 | 'capture', 184 | 'cellPadding', 185 | 'cellSpacing', 186 | 'charSet', 187 | 'challenge', 188 | 'checked', 189 | 'cite', 190 | 'classID', 191 | 'className', 192 | 'cols', 193 | 'colSpan', 194 | 'content', 195 | 'contentEditable', 196 | 'contextMenu', 197 | 'controls', 198 | 'coords', 199 | 'crossOrigin', 200 | 'data', // For `` acts as `src`. 201 | 'dateTime', 202 | 'default', 203 | 'defer', 204 | 'dir', 205 | 'disabled', 206 | 'download', 207 | 'draggable', 208 | 'encType', 209 | 'form', 210 | 'formAction', 211 | 'formEncType', 212 | 'formMethod', 213 | 'formNoValidate', 214 | 'formTarget', 215 | 'frameBorder', 216 | 'headers', 217 | 'height', 218 | 'hidden', 219 | 'high', 220 | 'href', 221 | 'hrefLang', 222 | 'htmlFor', 223 | 'httpEquiv', 224 | 'icon', 225 | 'id', 226 | 'inputMode', 227 | 'integrity', 228 | 'is', 229 | 'keyParams', 230 | 'keyType', 231 | 'kind', 232 | 'label', 233 | 'lang', 234 | 'list', 235 | 'loop', 236 | 'low', 237 | 'manifest', 238 | 'marginHeight', 239 | 'marginWidth', 240 | 'max', 241 | 'maxLength', 242 | 'media', 243 | 'mediaGroup', 244 | 'method', 245 | 'min', 246 | 'minLength', 247 | // Caution; `option.selected` is not updated if `select.multiple` is 248 | // disabled with `removeAttribute`. 249 | 'multiple', 250 | 'muted', 251 | 'name', 252 | 'nonce', 253 | 'noValidate', 254 | 'open', 255 | 'optimum', 256 | 'pattern', 257 | 'placeholder', 258 | 'playsInline', 259 | 'poster', 260 | 'preload', 261 | 'profile', 262 | 'radioGroup', 263 | 'readOnly', 264 | 'referrerPolicy', 265 | 'rel', 266 | 'required', 267 | 'reversed', 268 | 'role', 269 | 'rows', 270 | 'rowSpan', 271 | 'sandbox', 272 | 'scope', 273 | 'scoped', 274 | 'scrolling', 275 | 'seamless', 276 | 'selected', 277 | 'shape', 278 | 'size', 279 | 'sizes', 280 | 'span', 281 | 'spellCheck', 282 | 'src', 283 | 'srcDoc', 284 | 'srcLang', 285 | 'srcSet', 286 | 'start', 287 | 'step', 288 | 'style', 289 | 'summary', 290 | 'tabIndex', 291 | 'target', 292 | 'title', 293 | // Setting .type throws on non- tags 294 | 'type', 295 | 'useMap', 296 | 'value', 297 | 'width', 298 | 'wmode', 299 | 'wrap', 300 | 301 | /** 302 | * RDFa Properties 303 | */ 304 | 'about', 305 | 'datatype', 306 | 'inlist', 307 | 'prefix', 308 | // property is also supported for OpenGraph in meta tags. 309 | 'property', 310 | 'resource', 311 | 'typeof', 312 | 'vocab', 313 | 314 | /** 315 | * Non-standard Properties 316 | */ 317 | // autoCapitalize and autoCorrect are supported in Mobile Safari for 318 | // keyboard hints. 319 | 'autoCapitalize', 320 | 'autoCorrect', 321 | // autoSave allows WebKit/Blink to persist values of 322 | // input fields on page reloads 323 | 'autoSave', 324 | // color is for Safari mask-icon link 325 | 'color', 326 | // itemProp, itemScope, itemType are for 327 | // Microdata support. See http://schema.org/docs/gs.html 328 | 'itemProp', 329 | 'itemScope', 330 | 'itemType', 331 | // itemID and itemRef are for Microdata support as well but 332 | // only specified in the WHATWG spec document. See 333 | // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api 334 | 'itemID', 335 | 'itemRef', 336 | // results show looking glass icon and recent searches on input 337 | // search fields in WebKit/Blink 338 | 'results', 339 | // IE-only attribute that specifies security restrictions on an iframe 340 | // as an alternative to the sandbox attribute on IE<10 341 | 'security', 342 | // IE-only attribute that controls focus behavior 343 | 'unselectable', 344 | ] 345 | 346 | const svgProps = [ 347 | 'accentHeight', 348 | 'accumulate', 349 | 'additive', 350 | 'alignmentBaseline', 351 | 'allowReorder', 352 | 'alphabetic', 353 | 'amplitude', 354 | 'arabicForm', 355 | 'ascent', 356 | 'attributeName', 357 | 'attributeType', 358 | 'autoReverse', 359 | 'azimuth', 360 | 'baseFrequency', 361 | 'baseProfile', 362 | 'baselineShift', 363 | 'bbox', 364 | 'begin', 365 | 'bias', 366 | 'by', 367 | 'calcMode', 368 | 'capHeight', 369 | 'clip', 370 | 'clipPath', 371 | 'clipRule', 372 | 'clipPathUnits', 373 | 'colorInterpolation', 374 | 'colorInterpolationFilters', 375 | 'colorProfile', 376 | 'colorRendering', 377 | 'contentScriptType', 378 | 'contentStyleType', 379 | 'cursor', 380 | 'cx', 381 | 'cy', 382 | 'd', 383 | 'decelerate', 384 | 'descent', 385 | 'diffuseConstant', 386 | 'direction', 387 | 'display', 388 | 'divisor', 389 | 'dominantBaseline', 390 | 'dur', 391 | 'dx', 392 | 'dy', 393 | 'edgeMode', 394 | 'elevation', 395 | 'enableBackground', 396 | 'end', 397 | 'exponent', 398 | 'externalResourcesRequired', 399 | 'fill', 400 | 'fillOpacity', 401 | 'fillRule', 402 | 'filter', 403 | 'filterRes', 404 | 'filterUnits', 405 | 'floodColor', 406 | 'floodOpacity', 407 | 'focusable', 408 | 'fontFamily', 409 | 'fontSize', 410 | 'fontSizeAdjust', 411 | 'fontStretch', 412 | 'fontStyle', 413 | 'fontVariant', 414 | 'fontWeight', 415 | 'format', 416 | 'from', 417 | 'fx', 418 | 'fy', 419 | 'g1', 420 | 'g2', 421 | 'glyphName', 422 | 'glyphOrientationHorizontal', 423 | 'glyphOrientationVertical', 424 | 'glyphRef', 425 | 'gradientTransform', 426 | 'gradientUnits', 427 | 'hanging', 428 | 'horizAdvX', 429 | 'horizOriginX', 430 | 'ideographic', 431 | 'imageRendering', 432 | 'in', 433 | 'in2', 434 | 'intercept', 435 | 'k', 436 | 'k1', 437 | 'k2', 438 | 'k3', 439 | 'k4', 440 | 'kernelMatrix', 441 | 'kernelUnitLength', 442 | 'kerning', 443 | 'keyPoints', 444 | 'keySplines', 445 | 'keyTimes', 446 | 'lengthAdjust', 447 | 'letterSpacing', 448 | 'lightingColor', 449 | 'limitingConeAngle', 450 | 'local', 451 | 'markerEnd', 452 | 'markerMid', 453 | 'markerStart', 454 | 'markerHeight', 455 | 'markerUnits', 456 | 'markerWidth', 457 | 'mask', 458 | 'maskContentUnits', 459 | 'maskUnits', 460 | 'mathematical', 461 | 'mode', 462 | 'numOctaves', 463 | 'offset', 464 | 'opacity', 465 | 'operator', 466 | 'order', 467 | 'orient', 468 | 'orientation', 469 | 'origin', 470 | 'overflow', 471 | 'overlinePosition', 472 | 'overlineThickness', 473 | 'paintOrder', 474 | 'panose1', 475 | 'pathLength', 476 | 'patternContentUnits', 477 | 'patternTransform', 478 | 'patternUnits', 479 | 'pointerEvents', 480 | 'points', 481 | 'pointsAtX', 482 | 'pointsAtY', 483 | 'pointsAtZ', 484 | 'preserveAlpha', 485 | 'preserveAspectRatio', 486 | 'primitiveUnits', 487 | 'r', 488 | 'radius', 489 | 'refX', 490 | 'refY', 491 | 'renderingIntent', 492 | 'repeatCount', 493 | 'repeatDur', 494 | 'requiredExtensions', 495 | 'requiredFeatures', 496 | 'restart', 497 | 'result', 498 | 'rotate', 499 | 'rx', 500 | 'ry', 501 | 'scale', 502 | 'seed', 503 | 'shapeRendering', 504 | 'slope', 505 | 'spacing', 506 | 'specularConstant', 507 | 'specularExponent', 508 | 'speed', 509 | 'spreadMethod', 510 | 'startOffset', 511 | 'stdDeviation', 512 | 'stemh', 513 | 'stemv', 514 | 'stitchTiles', 515 | 'stopColor', 516 | 'stopOpacity', 517 | 'strikethroughPosition', 518 | 'strikethroughThickness', 519 | 'string', 520 | 'stroke', 521 | 'strokeDasharray', 522 | 'strokeDashoffset', 523 | 'strokeLinecap', 524 | 'strokeLinejoin', 525 | 'strokeMiterlimit', 526 | 'strokeOpacity', 527 | 'strokeWidth', 528 | 'surfaceScale', 529 | 'systemLanguage', 530 | 'tableValues', 531 | 'targetX', 532 | 'targetY', 533 | 'textAnchor', 534 | 'textDecoration', 535 | 'textRendering', 536 | 'textLength', 537 | 'to', 538 | 'transform', 539 | 'u1', 540 | 'u2', 541 | 'underlinePosition', 542 | 'underlineThickness', 543 | 'unicode', 544 | 'unicodeBidi', 545 | 'unicodeRange', 546 | 'unitsPerEm', 547 | 'vAlphabetic', 548 | 'vHanging', 549 | 'vIdeographic', 550 | 'vMathematical', 551 | 'values', 552 | 'vectorEffect', 553 | 'version', 554 | 'vertAdvY', 555 | 'vertOriginX', 556 | 'vertOriginY', 557 | 'viewBox', 558 | 'viewTarget', 559 | 'visibility', 560 | 'widths', 561 | 'wordSpacing', 562 | 'writingMode', 563 | 'x', 564 | 'xHeight', 565 | 'x1', 566 | 'x2', 567 | 'xChannelSelector', 568 | 'xlinkActuate', 569 | 'xlinkArcrole', 570 | 'xlinkHref', 571 | 'xlinkRole', 572 | 'xlinkShow', 573 | 'xlinkTitle', 574 | 'xlinkType', 575 | 'xmlBase', 576 | 'xmlns', 577 | 'xmlnsXlink', 578 | 'xmlLang', 579 | 'xmlSpace', 580 | 'y', 581 | 'y1', 582 | 'y2', 583 | 'yChannelSelector', 584 | 'z', 585 | 'zoomAndPan', 586 | ] 587 | 588 | // these are valid attributes that have the 589 | // same name as CSS properties, and is used 590 | // for css overrides API 591 | const cssProps = ['color', 'height', 'width'] 592 | 593 | /* From DOMProperty */ 594 | // eslint-disable-next-line max-len 595 | const ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD' 596 | // eslint-disable-next-line max-len 597 | const ATTRIBUTE_NAME_CHAR = `${ATTRIBUTE_NAME_START_CHAR}\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040` 598 | const isCustomAttribute = RegExp.prototype.test.bind( 599 | new RegExp(`^(data|aria)-[${ATTRIBUTE_NAME_CHAR}]*$`), 600 | ) 601 | 602 | const hasItem = (list, name) => list.indexOf(name) !== -1 603 | const isHtmlProp = name => hasItem(htmlProps, name) 604 | const isCssProp = name => hasItem(cssProps, name) 605 | const isSvgProp = (tagName, name) => 606 | tagName === 'svg' && hasItem(svgProps, name) 607 | const isReactProp = name => hasItem(reactProps, name) 608 | 609 | // eslint-disable-next-line complexity 610 | const shouldForwardProperty = (tagName, name) => 611 | typeof tagName !== 'string' || 612 | ((isHtmlProp(name) || 613 | isSvgProp(tagName, name) || 614 | isCustomAttribute(name.toLowerCase()) || 615 | isReactProp(name)) && 616 | (tagName === 'svg' || !isCssProp(name))) 617 | 618 | export default shouldForwardProperty 619 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | glamorous logo 2 | 3 | # glamorous 4 | 5 | React component styling solved with an elegant ([inspired](#inspiration)) API, 6 | small footprint (~6kb gzipped), and great performance (via [`glamor`][glamor]). 7 | 8 | > Read [the intro blogpost][intro-blogpost] 9 | 10 | [![Build Status][build-badge]][build] 11 | [![Code Coverage][coverage-badge]][coverage] 12 | [![Dependencies][dependencyci-badge]][dependencyci] 13 | [![version][version-badge]][package] 14 | [![downloads][downloads-badge]][npm-stat] 15 | [![MIT License][license-badge]][LICENSE] 16 | 17 | [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors) 18 | [![PRs Welcome][prs-badge]][prs] 19 | [![Chat][chat-badge]][chat] 20 | [![Donate][donate-badge]][donate] 21 | [![Code of Conduct][coc-badge]][coc] 22 | [![Roadmap][roadmap-badge]][roadmap] 23 | [![Examples][examples-badge]][examples] 24 | 25 | [![gzip size][gzip-badge]][unpkg-dist] 26 | [![size][size-badge]][unpkg-dist] 27 | [![module formats: umd, cjs, and es][module-formats-badge]][unpkg-dist] 28 | [![Watch on GitHub][github-watch-badge]][github-watch] 29 | [![Star on GitHub][github-star-badge]][github-star] 30 | [![Tweet][twitter-badge]][twitter] 31 | 32 | ## The problem 33 | 34 | You like CSS in JS, but you don't like having to create entire component 35 | functions just for styling purposes. You don't want to give a name to something 36 | that's purely style-related. And it's just kind of annoying to do the 37 | style-creating, `className` assigning, and props-forwarding song and dance. 38 | 39 | For example, this is what you have to do with raw `glamor` (or `aphrodite` or 40 | similar for that matter): 41 | 42 | ```jsx 43 | const styles = glamor.css({ 44 | fontSize: 20, 45 | textAlign: 'center', 46 | }) 47 | function MyStyledDiv({className = '', ...rest}) { 48 | return ( 49 |
53 | ) 54 | } 55 | ``` 56 | 57 | ## This solution 58 | 59 | With `glamorous`, that example above looks as simple as this: 60 | 61 | ```javascript 62 | const MyStyledDiv = glamorous.div({ 63 | fontSize: 20, 64 | textAlign: 'center', 65 | }) 66 | ``` 67 | 68 | In fact, it's even better, because there are a bunch of features that make 69 | composing these components together really nice! 70 | 71 | Oh, and what if you didn't care to give `MyStyledDiv` a name? If you just want 72 | a div that's styled using glamor? You can do that too: 73 | 74 | ```jsx 75 | const { Div } = glamorous 76 | 77 | function App() { 78 | return ( 79 |
83 | Hello world! 84 |
85 | ) 86 | } 87 | ``` 88 | 89 | So that's the basics of this solution... Let's get to the details! 90 | 91 | ## Installation 92 | 93 | This module is distributed via [npm][npm] which is bundled with [node][node] and 94 | should be installed as one of your project's `dependencies`: 95 | 96 | ``` 97 | npm install --save glamorous 98 | ``` 99 | 100 | This also depends on `react` and `glamor` so you'll need those in your project 101 | as well (if you don't already have them): 102 | 103 | ``` 104 | npm install --save react glamor 105 | ``` 106 | 107 | > NOTE: If you're using React v15.5 or greater, you'll also need to have 108 | > `prop-types` installed: `npm install --save prop-types` 109 | 110 | You can then use one of the module formats: 111 | 112 | - `main`: `dist/glamorous.cjs.js` - exports itself as a CommonJS module 113 | - `global`: `dist/glamorous.umd.js` and `dist/glamorous.umd.min.js` - exports 114 | itself as a [umd][umd] module which is consumable in several environments, the 115 | most notable as a global. 116 | - `jsnext:main` and `module`: `dist/glamorous.es.js` - exports itself using the 117 | ES modules specification, you'll need to configure webpack to make use of this 118 | file do this using the [resolve.mainFields][mainFields] property. 119 | 120 | The most common use-case is consuming this module via CommonJS: 121 | 122 | ```javascript 123 | const glamorous = require('glamorous') 124 | const {ThemeProvider} = glamorous 125 | // etc. 126 | ``` 127 | 128 | If you're transpiling (and/or using the `jsnext:main`): 129 | 130 | ```javascript 131 | import glamorous, {ThemeProvider} from 'glamorous' 132 | ``` 133 | 134 | If you want to use the global: 135 | 136 | ```html 137 | 138 | 139 | 140 | 141 | 142 | 143 | 148 | ``` 149 | 150 | ## Terms and concepts 151 | 152 | ### glamorous 153 | 154 | The `glamorous` function is the main (only) export. It allows you to create 155 | glamorous components that render the styles to the component you give it. This 156 | is done by forwarding a `className` prop to the component you tell it to render. 157 | But before we get into how you wrap custom components, let's talk about the 158 | built-in DOM components. 159 | 160 | #### built-in DOM component factories 161 | 162 | For every DOM element, there is an associated `glamorous` component factory 163 | attached to the `glamorous` function. As above, you can access these factories 164 | like so: `glamorous.div`, `glamorous.a`, `glamorous.article`, etc. 165 | 166 | #### glamorousComponentFactory 167 | 168 | Whether you create one yourself or use one of the built-in ones mentioned above, 169 | each `glamorousComponentFactory` allows you to invoke it with styles and it 170 | returns you a new component which will have those styles applied when it's 171 | rendered. This is accomplished by generating a `className` for the styles you 172 | give and forwarding that `className` onto the rendered element. So if you're 173 | wrapping a component you intend to style, you'll need to make sure you accept 174 | the `className` as a prop and apply it to where you want the styles applied in 175 | your custom component (normally the root element). 176 | 177 | ##### ...styles 178 | 179 | The `glamorousComponentFactory` accepts any number of style object arguments. 180 | These can be style objects or functions which are invoked with `props` on every 181 | render and return style objects. To learn more about what these style objects 182 | can look like, please take a look at the [`glamor`][glamor] documentation. 183 | 184 | #### GlamorousComponent 185 | 186 | The `GlamorousComponent` is what is returned from the 187 | `glamorousComponentFactory`. Its job is to get all the styles together get a 188 | `className` (from [`glamor`][glamor]) and forward that on to your component. 189 | 190 | For examples below, we'll use this as our GlamorousComponent: 191 | 192 | ```javascript 193 | const MyStyledDiv = glamorous.div({margin: 1, fontSize: 1, padding: 1}) 194 | ``` 195 | 196 | It does a few interesting things based on the props you pass it: 197 | 198 | ##### `className` 199 | 200 | For each `className` you provide, the `GlamorousComponent` will check to see 201 | whether it is a [`glamor`][glamor] generated `className` (can be from raw glamor 202 | or from `glamorous`, doesn't matter). If it is, it will get the original styles 203 | that were used to generate that `className` and merge those with the styles for 204 | the element that's rendered in a way that the provided `className`'s styles win 205 | in the event of a conflict. 206 | 207 | If the `className` is not generated by `glamor`, then it will simply be 208 | forwarded along with the `GlamorousComponent`-generated `className`. 209 | 210 | ```jsx 211 | const myCustomGlamorStyles = glamor.css({fontSize: 2}) 212 | 213 | // styles applied: 214 | // {margin: 1, fontSize: 2, padding: 1} 215 | // as well as any styles custom-class applies 216 | ``` 217 | 218 | ##### `cssOverrides` 219 | 220 | This is an object and if provided, it will be merged with this component's and 221 | take highest priority over the component's predefined styles. 222 | 223 | ```jsx 224 | const myCustomGlamorStyles = glamor.css({fontSize: 2, padding: 2}) 225 | 229 | // styles applied: 230 | // {margin: 1, fontSize: 2, padding: 3} 231 | // as well as any styles custom-class applies 232 | ``` 233 | 234 | ##### other props 235 | 236 | Only props that are safe to forward to the specific `element` that will 237 | ultimately be rendered will be forwarded. So this is totally legit: 238 | 239 | ```jsx 240 | 241 | ``` 242 | 243 | A use case for doing something like this would be for dynamic styles: 244 | 245 | ```javascript 246 | const staticStyles = {color: 'green'} 247 | const dynamicStyles = props => {fontSize: props.size === 'big' ? 32 : 24} 248 | const MyDynamicallyStyledDiv = glamorous.div(staticStyles, dynamicStyles) 249 | ``` 250 | 251 | > The exception to this prop forwarding is the pre-created `GlamorousComponent`s 252 | > (see below). 253 | 254 | #### built-in GlamorousComponents 255 | 256 | Often you want to style something without actually giving it a name (because 257 | naming things is hard). So glamorous also exposes a pre-created 258 | `GlamorousComponent` for each DOM node type which make this reasonable to do: 259 | 260 | ```jsx 261 | const { Div, Span, A, Img } = glamorous 262 | 263 | function MyUserInterface({name, tagline, imageUrl, homepage, size}) { 264 | const nameSize = size 265 | const taglineSize = size * 0.5 266 | return ( 267 |
268 | 269 | 270 |
{name}
271 |
272 | 273 | {tagline} 274 | 275 |
276 | ) 277 | } 278 | ``` 279 | 280 | Having to name all of that stuff could be tedious, so having these pre-built 281 | components is handy. The other handy bit here is that the props _are_ the styles 282 | for these components. Notice that glamorous can distinguish between props that 283 | are for styling and those that are have semantic meaning (like with the `Img` 284 | and `A` components which make use of `src` and `href` props). 285 | 286 | One other tip... This totally works: 287 | 288 | ```jsx 289 | 290 | JSX is pretty wild! 291 | 292 | ``` 293 | 294 | ### Theming 295 | 296 | `glamorous` fully supports theming using a special `` component. 297 | 298 | It provides the `theme` to all glamorous components down the tree. 299 | 300 | > Try this out in your browser [here](https://codesandbox.io/s/o2yq9MkQk)! 301 | 302 | ```jsx 303 | import glamorous, {ThemeProvider} from glamorous 304 | 305 | // our main theme object 306 | const theme = { 307 | main: {color: 'red'} 308 | } 309 | 310 | // our secondary theme object 311 | const secondaryTheme = { 312 | main: {color: 'blue'} 313 | } 314 | 315 | // a themed component 316 | const Title = glamorous.h1({ 317 | fontSize: '10px' 318 | }, (props, theme) => ({ 319 | color: theme.main.color 320 | })) 321 | 322 | // use <ThemeProvider> to pass theme down the tree 323 | <ThemeProvider theme={theme}> 324 | <Title>Hello! 325 | 326 | 327 | // it is possible to nest themes 328 | // inner themes will be merged with outers 329 | 330 |
331 | Hello! 332 | 333 | {/* this will be blue */} 334 | Hello from here! 335 | 336 |
337 |
338 | 339 | // to override a theme, just pass a theme prop to a glamorous component 340 | // the component will ignore any surrounding theme, applying the one passed directly via props 341 | 342 | {/* this will be yellow */} 343 | Hello! 344 | 345 | ``` 346 | 347 | ### Server Side Rendering (SSR) 348 | 349 | Because both `glamor` and `react` support SSR, `glamorous` does too! I actually 350 | do this on [my personal site](https://github.com/kentcdodds/kentcdodds.com) 351 | which is generated at build-time on the server. Learn about rendering 352 | [`react` on the server][react-ssr] and [`glamor` too][glamor-ssr]. 353 | 354 | ### Example Style Objects 355 | 356 | Style objects can affect pseudo-classes and pseduo-elements, complex CSS 357 | selectors, introduce keyframe animations, and use media queries: 358 | 359 |
360 | pseudo-class 361 | 362 | ```javascript 363 | const MyLink = glamorous.a({ 364 | ':hover': { 365 | color: 'red' 366 | } 367 | }) 368 | 369 | // Use in a render function 370 | GitHub 371 | ``` 372 |
373 | 374 |
375 | pseudo-element 376 | 377 | ```jsx 378 | const MyListItem = glamorous.li({ 379 | listStyleType: 'none', 380 | position: 'relative', 381 | '&::before': { 382 | content: `'#'`, // be sure the quotes are included in the passed string 383 | display: 'block', 384 | position: 'absolute', 385 | left: '-20px', 386 | width: '20px', 387 | height: '20px' 388 | } 389 | }) 390 | // Use in a render function 391 |
    392 | Item 1 393 | Item 2 394 | Item 3 395 |
396 | ``` 397 |
398 | 399 |
400 | Relational CSS Selectors 401 | 402 | ```jsx 403 | const MyDiv = glamorous.div({ 404 | display: 'block', 405 | '& div': { color: 'red' }, // child selector 406 | '& div:first-of-type': { textDecoration: 'underline' }, // psuedo-selector 407 | '& > p': { color: 'blue' } // direct descendent 408 | }) 409 | 410 | // Use in a render function 411 | 412 |

Red Underlined Paragraph

413 |
Red Paragraph
414 |

Blue Paragraph

415 |
416 | ``` 417 |
418 | 419 |
420 | Animations 421 | 422 | ```jsx 423 | // import css from glamor 424 | import { css } from 'glamor' 425 | 426 | // Define the animation styles 427 | const animationStyles = props => { 428 | const bounce = css.keyframes({ 429 | '0%': { transform: `scale(1.01)` }, 430 | '100%': { transform: `scale(0.99)` } 431 | }) 432 | return {animation: `${bounce} 0.2s infinite ease-in-out alternate`} 433 | } 434 | 435 | // Define the element 436 | const AnimatedDiv = glamorous.div(animationStyles) 437 | 438 | // Use in a render function 439 | 440 | Bounce. 441 | 442 | ``` 443 |
444 | 445 |
446 | Media Queries 447 | 448 | ```jsx 449 | const MyResponsiveDiv = glamorous.div({ 450 | width: '100%', 451 | padding: 20, 452 | '@media(min-width: 400px)': { 453 | width: '85%', 454 | padding: 0 455 | } 456 | }) 457 | // Use in a render function 458 | 459 | Responsive Content 460 | 461 | ``` 462 |
463 | 464 | ## Inspiration 465 | 466 | This package was inspired by the work from people's work on the following 467 | projects: 468 | 469 | - [styled-components](https://github.com/styled-components/styled-components) 470 | - [jsxstyle](https://github.com/smyte/jsxstyle) 471 | 472 | The biggest inspiration for building this is because I love the API offered by 473 | `styled-components`, but I wanted: 474 | 475 | 1. Not to ship a CSS parser to the browser (because it's huge and less 476 | performant). 477 | 2. Support for RTL (via something like [rtl-css-js][rtl-css-js]) 478 | 3. Support for using _real_ JavaScript objects rather than a CSS string (better 479 | tooling support, ESLint, etc.) 480 | 481 | > You can get around the parser issue if you use a certain babel plugin, but 482 | > then you can't do any dynamic construction of your CSS string (like 483 | > [this][styled-components-util]) which is a bummer for custom utilities. 484 | 485 | ## Other Solutions 486 | 487 | There are actually quite a few solutions to the general problem of styling in 488 | React. This isn't the place for a full-on comparison of features, but I'm 489 | unaware of any which supports _all_ of the features which this library supports. 490 | 491 | ## Support 492 | 493 | If you need help, please fork [this codepen][help-pen] and bring it up in 494 | [the chat][chat] 495 | 496 | ## Contributors 497 | 498 | Thanks goes to these people ([emoji key][emojis]): 499 | 500 | 501 | | [
Kent C. Dodds](https://kentcdodds.com)
[💻](https://github.com/paypal/glamorous/commits?author=kentcdodds) [📖](https://github.com/paypal/glamorous/commits?author=kentcdodds) 🚇 [⚠️](https://github.com/paypal/glamorous/commits?author=kentcdodds) 👀 | [
Ives van Hoorne](http://ivesvh.com)
💡 | [
Gerardo Nardelli](https://gnardelli.com)
[📖](https://github.com/paypal/glamorous/commits?author=patitonar) | [
Chandan Rai](https://github.com/crowchirp)
[📖](https://github.com/paypal/glamorous/commits?author=crowchirp) | [
BinHong Lee](https://binhonglee.github.io)
[📖](https://github.com/paypal/glamorous/commits?author=binhonglee) | [
Paul Molluzzo](https://paul.molluzzo.com)
[📖](https://github.com/paypal/glamorous/commits?author=paulmolluzzo) 💡 | [
Sriram Thiagarajan](http://tsriram.in)
[💻](https://github.com/paypal/glamorous/commits?author=tsriram) | 502 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | 503 | | [
Pavithra Kodmad](https://github.com/pksjce)
💡 | [
Alessandro Arnodo](http://alessandro.arnodo.net)
[💻](https://github.com/paypal/glamorous/commits?author=vesparny) [📖](https://github.com/paypal/glamorous/commits?author=vesparny) [⚠️](https://github.com/paypal/glamorous/commits?author=vesparny) | [
Jason Miller](https://jasonformat.com)
👀 | [
Kyle Welch](http://www.krwelch.com)
👀 💡 | [
Javi Velasco](http://javivelasco.com)
👀 | [
Brandon Dail](https://twitter.com/aweary)
👀 | [
Jason Brown](http://browniefed.com)
👀 | 504 | 505 | 506 | This project follows the [all-contributors][all-contributors] specification. 507 | Contributions of any kind welcome! 508 | 509 | ## LICENSE 510 | 511 | MIT 512 | 513 | [npm]: https://www.npmjs.com/ 514 | [node]: https://nodejs.org 515 | [build-badge]: https://img.shields.io/travis/paypal/glamorous.svg?style=flat-square 516 | [build]: https://travis-ci.org/paypal/glamorous 517 | [coverage-badge]: https://img.shields.io/codecov/c/github/paypal/glamorous.svg?style=flat-square 518 | [coverage]: https://codecov.io/github/paypal/glamorous 519 | [dependencyci-badge]: https://dependencyci.com/github/paypal/glamorous/badge?style=flat-square 520 | [dependencyci]: https://dependencyci.com/github/paypal/glamorous 521 | [version-badge]: https://img.shields.io/npm/v/glamorous.svg?style=flat-square 522 | [package]: https://www.npmjs.com/package/glamorous 523 | [downloads-badge]: https://img.shields.io/npm/dm/glamorous.svg?style=flat-square 524 | [npm-stat]: http://npm-stat.com/charts.html?package=glamorous&from=2017-04-01 525 | [license-badge]: https://img.shields.io/npm/l/glamorous.svg?style=flat-square 526 | [license]: https://github.com/paypal/glamorous/blob/master/LICENSE 527 | [prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square 528 | [prs]: http://makeapullrequest.com 529 | [donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square 530 | [donate]: http://kcd.im/donate 531 | [chat]: https://gitter.im/paypal/glamorous 532 | [chat-badge]: https://img.shields.io/gitter/room/paypal/glamorous.svg?style=flat-square 533 | [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square 534 | [coc]: https://github.com/paypal/glamorous/blob/master/other/CODE_OF_CONDUCT.md 535 | [roadmap-badge]: https://img.shields.io/badge/%F0%9F%93%94-roadmap-CD9523.svg?style=flat-square 536 | [roadmap]: https://github.com/paypal/glamorous/blob/master/other/ROADMAP.md 537 | [examples-badge]: https://img.shields.io/badge/%F0%9F%92%A1-examples-8C8E93.svg?style=flat-square 538 | [examples]: https://github.com/paypal/glamorous/blob/master/examples 539 | [github-watch-badge]: https://img.shields.io/github/watchers/paypal/glamorous.svg?style=social 540 | [github-watch]: https://github.com/paypal/glamorous/watchers 541 | [github-star-badge]: https://img.shields.io/github/stars/paypal/glamorous.svg?style=social 542 | [github-star]: https://github.com/paypal/glamorous/stargazers 543 | [twitter]: https://twitter.com/intent/tweet?text=Check%20out%20glamorous!%20https://github.com/paypal/glamorous%20%F0%9F%91%8D 544 | [twitter-badge]: https://img.shields.io/twitter/url/https/github.com/paypal/glamorous.svg?style=social 545 | [emojis]: https://github.com/kentcdodds/all-contributors#emoji-key 546 | [all-contributors]: https://github.com/kentcdodds/all-contributors 547 | [glamor]: https://github.com/threepointone/glamor 548 | [rtl-css-js]: https://github.com/kentcdodds/rtl-css-js 549 | [gzip-badge]: http://img.badgesize.io/https://unpkg.com/glamorous/dist/glamorous.umd.min.js?compression=gzip&label=gzip%20size&style=flat-square 550 | [size-badge]: http://img.badgesize.io/https://unpkg.com/glamorous/dist/glamorous.umd.min.js?label=size&style=flat-square 551 | [unpkg-dist]: https://unpkg.com/glamorous/dist/ 552 | [module-formats-badge]: https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20es-green.svg?style=flat-square 553 | [mainFields]: https://webpack.js.org/configuration/resolve/#resolve-mainfields 554 | [umd]: https://github.com/umdjs/umd 555 | [styled-components-util]: https://codepen.io/kentcdodds/pen/MpxMge 556 | [intro-blogpost]: https://medium.com/p/fb3c9f4ed20e 557 | [react-ssr]: https://facebook.github.io/react/docs/react-dom-server.html 558 | [glamor-ssr]: https://github.com/threepointone/glamor/blob/5e7d988211330b8e2fca5bb8da78e35051444efd/docs/server.md 559 | [help-pen]: http://kcd.im/glamorous-help 560 | -------------------------------------------------------------------------------- /examples/with-jest/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | abab@^1.0.3: 6 | version "1.0.3" 7 | resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.3.tgz#b81de5f7274ec4e756d797cd834f303642724e5d" 8 | 9 | acorn-globals@^3.1.0: 10 | version "3.1.0" 11 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" 12 | dependencies: 13 | acorn "^4.0.4" 14 | 15 | acorn@^4.0.4: 16 | version "4.0.11" 17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.11.tgz#edcda3bd937e7556410d42ed5860f67399c794c0" 18 | 19 | ajv@^4.9.1: 20 | version "4.11.6" 21 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.6.tgz#947e93049790942b2a2d60a8289b28924d39f987" 22 | dependencies: 23 | co "^4.6.0" 24 | json-stable-stringify "^1.0.1" 25 | 26 | align-text@^0.1.1, align-text@^0.1.3: 27 | version "0.1.4" 28 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" 29 | dependencies: 30 | kind-of "^3.0.2" 31 | longest "^1.0.1" 32 | repeat-string "^1.5.2" 33 | 34 | amdefine@>=0.0.4: 35 | version "1.0.1" 36 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" 37 | 38 | ansi-escapes@^1.4.0: 39 | version "1.4.0" 40 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" 41 | 42 | ansi-regex@^2.0.0: 43 | version "2.1.1" 44 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 45 | 46 | ansi-styles@^2.2.1: 47 | version "2.2.1" 48 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" 49 | 50 | ansi-styles@^3.0.0: 51 | version "3.0.0" 52 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.0.0.tgz#5404e93a544c4fec7f048262977bebfe3155e0c1" 53 | dependencies: 54 | color-convert "^1.0.0" 55 | 56 | anymatch@^1.3.0: 57 | version "1.3.0" 58 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" 59 | dependencies: 60 | arrify "^1.0.0" 61 | micromatch "^2.1.5" 62 | 63 | append-transform@^0.4.0: 64 | version "0.4.0" 65 | resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" 66 | dependencies: 67 | default-require-extensions "^1.0.0" 68 | 69 | argparse@^1.0.7: 70 | version "1.0.9" 71 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" 72 | dependencies: 73 | sprintf-js "~1.0.2" 74 | 75 | arr-diff@^2.0.0: 76 | version "2.0.0" 77 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" 78 | dependencies: 79 | arr-flatten "^1.0.1" 80 | 81 | arr-flatten@^1.0.1: 82 | version "1.0.1" 83 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" 84 | 85 | array-equal@^1.0.0: 86 | version "1.0.0" 87 | resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" 88 | 89 | array-unique@^0.2.1: 90 | version "0.2.1" 91 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" 92 | 93 | arrify@^1.0.0, arrify@^1.0.1: 94 | version "1.0.1" 95 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 96 | 97 | asap@~2.0.3: 98 | version "2.0.5" 99 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" 100 | 101 | asn1@~0.2.3: 102 | version "0.2.3" 103 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" 104 | 105 | assert-plus@1.0.0, assert-plus@^1.0.0: 106 | version "1.0.0" 107 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 108 | 109 | assert-plus@^0.2.0: 110 | version "0.2.0" 111 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" 112 | 113 | async@^1.4.0: 114 | version "1.5.2" 115 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 116 | 117 | async@^2.1.4: 118 | version "2.3.0" 119 | resolved "https://registry.yarnpkg.com/async/-/async-2.3.0.tgz#1013d1051047dd320fe24e494d5c66ecaf6147d9" 120 | dependencies: 121 | lodash "^4.14.0" 122 | 123 | asynckit@^0.4.0: 124 | version "0.4.0" 125 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 126 | 127 | atob@~1.1.0: 128 | version "1.1.3" 129 | resolved "https://registry.yarnpkg.com/atob/-/atob-1.1.3.tgz#95f13629b12c3a51a5d215abdce2aa9f32f80773" 130 | 131 | aws-sign2@~0.6.0: 132 | version "0.6.0" 133 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" 134 | 135 | aws4@^1.2.1: 136 | version "1.6.0" 137 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" 138 | 139 | babel-code-frame@^6.22.0: 140 | version "6.22.0" 141 | resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" 142 | dependencies: 143 | chalk "^1.1.0" 144 | esutils "^2.0.2" 145 | js-tokens "^3.0.0" 146 | 147 | babel-core@^6.0.0, babel-core@^6.24.1: 148 | version "6.24.1" 149 | resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.1.tgz#8c428564dce1e1f41fb337ec34f4c3b022b5ad83" 150 | dependencies: 151 | babel-code-frame "^6.22.0" 152 | babel-generator "^6.24.1" 153 | babel-helpers "^6.24.1" 154 | babel-messages "^6.23.0" 155 | babel-register "^6.24.1" 156 | babel-runtime "^6.22.0" 157 | babel-template "^6.24.1" 158 | babel-traverse "^6.24.1" 159 | babel-types "^6.24.1" 160 | babylon "^6.11.0" 161 | convert-source-map "^1.1.0" 162 | debug "^2.1.1" 163 | json5 "^0.5.0" 164 | lodash "^4.2.0" 165 | minimatch "^3.0.2" 166 | path-is-absolute "^1.0.0" 167 | private "^0.1.6" 168 | slash "^1.0.0" 169 | source-map "^0.5.0" 170 | 171 | babel-generator@^6.18.0, babel-generator@^6.24.1: 172 | version "6.24.1" 173 | resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.1.tgz#e715f486c58ded25649d888944d52aa07c5d9497" 174 | dependencies: 175 | babel-messages "^6.23.0" 176 | babel-runtime "^6.22.0" 177 | babel-types "^6.24.1" 178 | detect-indent "^4.0.0" 179 | jsesc "^1.3.0" 180 | lodash "^4.2.0" 181 | source-map "^0.5.0" 182 | trim-right "^1.0.1" 183 | 184 | babel-helpers@^6.24.1: 185 | version "6.24.1" 186 | resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" 187 | dependencies: 188 | babel-runtime "^6.22.0" 189 | babel-template "^6.24.1" 190 | 191 | babel-jest@^19.0.0: 192 | version "19.0.0" 193 | resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-19.0.0.tgz#59323ced99a3a84d359da219ca881074ffc6ce3f" 194 | dependencies: 195 | babel-core "^6.0.0" 196 | babel-plugin-istanbul "^4.0.0" 197 | babel-preset-jest "^19.0.0" 198 | 199 | babel-messages@^6.23.0: 200 | version "6.23.0" 201 | resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" 202 | dependencies: 203 | babel-runtime "^6.22.0" 204 | 205 | babel-plugin-istanbul@^4.0.0: 206 | version "4.1.1" 207 | resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.1.tgz#c12de0fc6fe42adfb16be56f1ad11e4a9782eca9" 208 | dependencies: 209 | find-up "^2.1.0" 210 | istanbul-lib-instrument "^1.6.2" 211 | test-exclude "^4.0.3" 212 | 213 | babel-plugin-jest-hoist@^19.0.0: 214 | version "19.0.0" 215 | resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-19.0.0.tgz#4ae2a04ea612a6e73651f3fde52c178991304bea" 216 | 217 | babel-preset-jest@^19.0.0: 218 | version "19.0.0" 219 | resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-19.0.0.tgz#22d67201d02324a195811288eb38294bb3cac396" 220 | dependencies: 221 | babel-plugin-jest-hoist "^19.0.0" 222 | 223 | babel-register@^6.24.1: 224 | version "6.24.1" 225 | resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f" 226 | dependencies: 227 | babel-core "^6.24.1" 228 | babel-runtime "^6.22.0" 229 | core-js "^2.4.0" 230 | home-or-tmp "^2.0.0" 231 | lodash "^4.2.0" 232 | mkdirp "^0.5.1" 233 | source-map-support "^0.4.2" 234 | 235 | babel-runtime@^6.18.0, babel-runtime@^6.22.0: 236 | version "6.23.0" 237 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" 238 | dependencies: 239 | core-js "^2.4.0" 240 | regenerator-runtime "^0.10.0" 241 | 242 | babel-template@^6.16.0, babel-template@^6.24.1: 243 | version "6.24.1" 244 | resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.24.1.tgz#04ae514f1f93b3a2537f2a0f60a5a45fb8308333" 245 | dependencies: 246 | babel-runtime "^6.22.0" 247 | babel-traverse "^6.24.1" 248 | babel-types "^6.24.1" 249 | babylon "^6.11.0" 250 | lodash "^4.2.0" 251 | 252 | babel-traverse@^6.18.0, babel-traverse@^6.24.1: 253 | version "6.24.1" 254 | resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.24.1.tgz#ab36673fd356f9a0948659e7b338d5feadb31695" 255 | dependencies: 256 | babel-code-frame "^6.22.0" 257 | babel-messages "^6.23.0" 258 | babel-runtime "^6.22.0" 259 | babel-types "^6.24.1" 260 | babylon "^6.15.0" 261 | debug "^2.2.0" 262 | globals "^9.0.0" 263 | invariant "^2.2.0" 264 | lodash "^4.2.0" 265 | 266 | babel-types@^6.18.0, babel-types@^6.24.1: 267 | version "6.24.1" 268 | resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.24.1.tgz#a136879dc15b3606bda0d90c1fc74304c2ff0975" 269 | dependencies: 270 | babel-runtime "^6.22.0" 271 | esutils "^2.0.2" 272 | lodash "^4.2.0" 273 | to-fast-properties "^1.0.1" 274 | 275 | babylon@^6.11.0, babylon@^6.13.0, babylon@^6.15.0: 276 | version "6.16.1" 277 | resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" 278 | 279 | balanced-match@^0.4.1: 280 | version "0.4.2" 281 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" 282 | 283 | bcrypt-pbkdf@^1.0.0: 284 | version "1.0.1" 285 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" 286 | dependencies: 287 | tweetnacl "^0.14.3" 288 | 289 | boolbase@~1.0.0: 290 | version "1.0.0" 291 | resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" 292 | 293 | boom@2.x.x: 294 | version "2.10.1" 295 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" 296 | dependencies: 297 | hoek "2.x.x" 298 | 299 | brace-expansion@^1.0.0: 300 | version "1.1.7" 301 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" 302 | dependencies: 303 | balanced-match "^0.4.1" 304 | concat-map "0.0.1" 305 | 306 | braces@^1.8.2: 307 | version "1.8.5" 308 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" 309 | dependencies: 310 | expand-range "^1.8.1" 311 | preserve "^0.2.0" 312 | repeat-element "^1.1.2" 313 | 314 | browser-resolve@^1.11.2: 315 | version "1.11.2" 316 | resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" 317 | dependencies: 318 | resolve "1.1.7" 319 | 320 | bser@1.0.2: 321 | version "1.0.2" 322 | resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" 323 | dependencies: 324 | node-int64 "^0.4.0" 325 | 326 | bser@^2.0.0: 327 | version "2.0.0" 328 | resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" 329 | dependencies: 330 | node-int64 "^0.4.0" 331 | 332 | buffer-shims@~1.0.0: 333 | version "1.0.0" 334 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" 335 | 336 | builtin-modules@^1.0.0: 337 | version "1.1.1" 338 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 339 | 340 | callsites@^2.0.0: 341 | version "2.0.0" 342 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 343 | 344 | camelcase@^1.0.2: 345 | version "1.2.1" 346 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" 347 | 348 | camelcase@^3.0.0: 349 | version "3.0.0" 350 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" 351 | 352 | caseless@~0.12.0: 353 | version "0.12.0" 354 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 355 | 356 | center-align@^0.1.1: 357 | version "0.1.3" 358 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" 359 | dependencies: 360 | align-text "^0.1.3" 361 | lazy-cache "^1.0.3" 362 | 363 | chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: 364 | version "1.1.3" 365 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" 366 | dependencies: 367 | ansi-styles "^2.2.1" 368 | escape-string-regexp "^1.0.2" 369 | has-ansi "^2.0.0" 370 | strip-ansi "^3.0.0" 371 | supports-color "^2.0.0" 372 | 373 | cheerio@^0.22.0: 374 | version "0.22.0" 375 | resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-0.22.0.tgz#a9baa860a3f9b595a6b81b1a86873121ed3a269e" 376 | dependencies: 377 | css-select "~1.2.0" 378 | dom-serializer "~0.1.0" 379 | entities "~1.1.1" 380 | htmlparser2 "^3.9.1" 381 | lodash.assignin "^4.0.9" 382 | lodash.bind "^4.1.4" 383 | lodash.defaults "^4.0.1" 384 | lodash.filter "^4.4.0" 385 | lodash.flatten "^4.2.0" 386 | lodash.foreach "^4.3.0" 387 | lodash.map "^4.4.0" 388 | lodash.merge "^4.4.0" 389 | lodash.pick "^4.2.1" 390 | lodash.reduce "^4.4.0" 391 | lodash.reject "^4.4.0" 392 | lodash.some "^4.4.0" 393 | 394 | ci-info@^1.0.0: 395 | version "1.0.0" 396 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534" 397 | 398 | cliui@^2.1.0: 399 | version "2.1.0" 400 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" 401 | dependencies: 402 | center-align "^0.1.1" 403 | right-align "^0.1.1" 404 | wordwrap "0.0.2" 405 | 406 | cliui@^3.2.0: 407 | version "3.2.0" 408 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 409 | dependencies: 410 | string-width "^1.0.1" 411 | strip-ansi "^3.0.1" 412 | wrap-ansi "^2.0.0" 413 | 414 | co@^4.6.0: 415 | version "4.6.0" 416 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 417 | 418 | code-point-at@^1.0.0: 419 | version "1.1.0" 420 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 421 | 422 | color-convert@^1.0.0: 423 | version "1.9.0" 424 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" 425 | dependencies: 426 | color-name "^1.1.1" 427 | 428 | color-name@^1.1.1: 429 | version "1.1.2" 430 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d" 431 | 432 | combined-stream@^1.0.5, combined-stream@~1.0.5: 433 | version "1.0.5" 434 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" 435 | dependencies: 436 | delayed-stream "~1.0.0" 437 | 438 | concat-map@0.0.1: 439 | version "0.0.1" 440 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 441 | 442 | content-type-parser@^1.0.1: 443 | version "1.0.1" 444 | resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.1.tgz#c3e56988c53c65127fb46d4032a3a900246fdc94" 445 | 446 | convert-source-map@^1.1.0: 447 | version "1.5.0" 448 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" 449 | 450 | core-js@^1.0.0: 451 | version "1.2.7" 452 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" 453 | 454 | core-js@^2.4.0: 455 | version "2.4.1" 456 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" 457 | 458 | core-util-is@~1.0.0: 459 | version "1.0.2" 460 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 461 | 462 | cryptiles@2.x.x: 463 | version "2.0.5" 464 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" 465 | dependencies: 466 | boom "2.x.x" 467 | 468 | css-select@~1.2.0: 469 | version "1.2.0" 470 | resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" 471 | dependencies: 472 | boolbase "~1.0.0" 473 | css-what "2.1" 474 | domutils "1.5.1" 475 | nth-check "~1.0.1" 476 | 477 | css-what@2.1: 478 | version "2.1.0" 479 | resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.0.tgz#9467d032c38cfaefb9f2d79501253062f87fa1bd" 480 | 481 | css@^2.2.1: 482 | version "2.2.1" 483 | resolved "https://registry.yarnpkg.com/css/-/css-2.2.1.tgz#73a4c81de85db664d4ee674f7d47085e3b2d55dc" 484 | dependencies: 485 | inherits "^2.0.1" 486 | source-map "^0.1.38" 487 | source-map-resolve "^0.3.0" 488 | urix "^0.1.0" 489 | 490 | cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": 491 | version "0.3.2" 492 | resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" 493 | 494 | "cssstyle@>= 0.2.37 < 0.3.0": 495 | version "0.2.37" 496 | resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" 497 | dependencies: 498 | cssom "0.3.x" 499 | 500 | dashdash@^1.12.0: 501 | version "1.14.1" 502 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 503 | dependencies: 504 | assert-plus "^1.0.0" 505 | 506 | debug@^2.1.1, debug@^2.2.0: 507 | version "2.6.3" 508 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.3.tgz#0f7eb8c30965ec08c72accfa0130c8b79984141d" 509 | dependencies: 510 | ms "0.7.2" 511 | 512 | decamelize@^1.0.0, decamelize@^1.1.1: 513 | version "1.2.0" 514 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 515 | 516 | deep-is@~0.1.3: 517 | version "0.1.3" 518 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 519 | 520 | default-require-extensions@^1.0.0: 521 | version "1.0.0" 522 | resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" 523 | dependencies: 524 | strip-bom "^2.0.0" 525 | 526 | define-properties@^1.1.2: 527 | version "1.1.2" 528 | resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" 529 | dependencies: 530 | foreach "^2.0.5" 531 | object-keys "^1.0.8" 532 | 533 | delayed-stream@~1.0.0: 534 | version "1.0.0" 535 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 536 | 537 | detect-indent@^4.0.0: 538 | version "4.0.0" 539 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" 540 | dependencies: 541 | repeating "^2.0.0" 542 | 543 | diff@^3.0.0: 544 | version "3.2.0" 545 | resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" 546 | 547 | dom-serializer@0, dom-serializer@~0.1.0: 548 | version "0.1.0" 549 | resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" 550 | dependencies: 551 | domelementtype "~1.1.1" 552 | entities "~1.1.1" 553 | 554 | domelementtype@1, domelementtype@^1.3.0: 555 | version "1.3.0" 556 | resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.0.tgz#b17aed82e8ab59e52dd9c19b1756e0fc187204c2" 557 | 558 | domelementtype@~1.1.1: 559 | version "1.1.3" 560 | resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b" 561 | 562 | domhandler@^2.3.0: 563 | version "2.3.0" 564 | resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.3.0.tgz#2de59a0822d5027fabff6f032c2b25a2a8abe738" 565 | dependencies: 566 | domelementtype "1" 567 | 568 | domutils@1.5.1, domutils@^1.5.1: 569 | version "1.5.1" 570 | resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" 571 | dependencies: 572 | dom-serializer "0" 573 | domelementtype "1" 574 | 575 | ecc-jsbn@~0.1.1: 576 | version "0.1.1" 577 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" 578 | dependencies: 579 | jsbn "~0.1.0" 580 | 581 | encoding@^0.1.11: 582 | version "0.1.12" 583 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" 584 | dependencies: 585 | iconv-lite "~0.4.13" 586 | 587 | entities@^1.1.1, entities@~1.1.1: 588 | version "1.1.1" 589 | resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" 590 | 591 | enzyme-to-json@^1.5.0: 592 | version "1.5.0" 593 | resolved "https://registry.yarnpkg.com/enzyme-to-json/-/enzyme-to-json-1.5.0.tgz#bb94f21346866d68378adc9b26856dd6e2bfa60b" 594 | dependencies: 595 | lodash.filter "^4.6.0" 596 | lodash.isnil "^4.0.0" 597 | lodash.isplainobject "^4.0.6" 598 | lodash.omitby "^4.5.0" 599 | lodash.range "^3.2.0" 600 | object-values "^1.0.0" 601 | object.entries "^1.0.3" 602 | 603 | enzyme@^2.8.0: 604 | version "2.8.0" 605 | resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-2.8.0.tgz#86cc1fc96e5cbd7695766dd6e89deb13a0aead51" 606 | dependencies: 607 | cheerio "^0.22.0" 608 | function.prototype.name "^1.0.0" 609 | is-subset "^0.1.1" 610 | lodash "^4.17.2" 611 | object-is "^1.0.1" 612 | object.assign "^4.0.4" 613 | object.entries "^1.0.3" 614 | object.values "^1.0.3" 615 | uuid "^2.0.3" 616 | 617 | "errno@>=0.1.1 <0.2.0-0": 618 | version "0.1.4" 619 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" 620 | dependencies: 621 | prr "~0.0.0" 622 | 623 | error-ex@^1.2.0: 624 | version "1.3.1" 625 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" 626 | dependencies: 627 | is-arrayish "^0.2.1" 628 | 629 | es-abstract@^1.6.1: 630 | version "1.7.0" 631 | resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c" 632 | dependencies: 633 | es-to-primitive "^1.1.1" 634 | function-bind "^1.1.0" 635 | is-callable "^1.1.3" 636 | is-regex "^1.0.3" 637 | 638 | es-to-primitive@^1.1.1: 639 | version "1.1.1" 640 | resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" 641 | dependencies: 642 | is-callable "^1.1.1" 643 | is-date-object "^1.0.1" 644 | is-symbol "^1.0.1" 645 | 646 | escape-string-regexp@^1.0.2: 647 | version "1.0.5" 648 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 649 | 650 | escodegen@^1.6.1: 651 | version "1.8.1" 652 | resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" 653 | dependencies: 654 | esprima "^2.7.1" 655 | estraverse "^1.9.1" 656 | esutils "^2.0.2" 657 | optionator "^0.8.1" 658 | optionalDependencies: 659 | source-map "~0.2.0" 660 | 661 | esprima@^2.7.1: 662 | version "2.7.3" 663 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" 664 | 665 | esprima@^3.1.1: 666 | version "3.1.3" 667 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 668 | 669 | estraverse@^1.9.1: 670 | version "1.9.3" 671 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" 672 | 673 | esutils@^2.0.2: 674 | version "2.0.2" 675 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 676 | 677 | exec-sh@^0.2.0: 678 | version "0.2.0" 679 | resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.0.tgz#14f75de3f20d286ef933099b2ce50a90359cef10" 680 | dependencies: 681 | merge "^1.1.3" 682 | 683 | expand-brackets@^0.1.4: 684 | version "0.1.5" 685 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" 686 | dependencies: 687 | is-posix-bracket "^0.1.0" 688 | 689 | expand-range@^1.8.1: 690 | version "1.8.2" 691 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" 692 | dependencies: 693 | fill-range "^2.1.0" 694 | 695 | extend@~3.0.0: 696 | version "3.0.0" 697 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" 698 | 699 | extglob@^0.3.1: 700 | version "0.3.2" 701 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" 702 | dependencies: 703 | is-extglob "^1.0.0" 704 | 705 | extsprintf@1.0.2: 706 | version "1.0.2" 707 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" 708 | 709 | fast-levenshtein@~2.0.4: 710 | version "2.0.6" 711 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 712 | 713 | fb-watchman@^1.8.0: 714 | version "1.9.2" 715 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" 716 | dependencies: 717 | bser "1.0.2" 718 | 719 | fb-watchman@^2.0.0: 720 | version "2.0.0" 721 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" 722 | dependencies: 723 | bser "^2.0.0" 724 | 725 | fbjs@^0.8.8, fbjs@^0.8.9: 726 | version "0.8.12" 727 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" 728 | dependencies: 729 | core-js "^1.0.0" 730 | isomorphic-fetch "^2.1.1" 731 | loose-envify "^1.0.0" 732 | object-assign "^4.1.0" 733 | promise "^7.1.1" 734 | setimmediate "^1.0.5" 735 | ua-parser-js "^0.7.9" 736 | 737 | filename-regex@^2.0.0: 738 | version "2.0.0" 739 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" 740 | 741 | fileset@^2.0.2: 742 | version "2.0.3" 743 | resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" 744 | dependencies: 745 | glob "^7.0.3" 746 | minimatch "^3.0.3" 747 | 748 | fill-range@^2.1.0: 749 | version "2.2.3" 750 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" 751 | dependencies: 752 | is-number "^2.1.0" 753 | isobject "^2.0.0" 754 | randomatic "^1.1.3" 755 | repeat-element "^1.1.2" 756 | repeat-string "^1.5.2" 757 | 758 | find-up@^1.0.0: 759 | version "1.1.2" 760 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 761 | dependencies: 762 | path-exists "^2.0.0" 763 | pinkie-promise "^2.0.0" 764 | 765 | find-up@^2.1.0: 766 | version "2.1.0" 767 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 768 | dependencies: 769 | locate-path "^2.0.0" 770 | 771 | for-in@^1.0.1: 772 | version "1.0.2" 773 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" 774 | 775 | for-own@^0.1.4: 776 | version "0.1.5" 777 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" 778 | dependencies: 779 | for-in "^1.0.1" 780 | 781 | foreach@^2.0.5: 782 | version "2.0.5" 783 | resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" 784 | 785 | forever-agent@~0.6.1: 786 | version "0.6.1" 787 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 788 | 789 | form-data@~2.1.1: 790 | version "2.1.4" 791 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" 792 | dependencies: 793 | asynckit "^0.4.0" 794 | combined-stream "^1.0.5" 795 | mime-types "^2.1.12" 796 | 797 | fs.realpath@^1.0.0: 798 | version "1.0.0" 799 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 800 | 801 | function-bind@^1.0.2, function-bind@^1.1.0: 802 | version "1.1.0" 803 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" 804 | 805 | function.prototype.name@^1.0.0: 806 | version "1.0.0" 807 | resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.0.0.tgz#5f523ca64e491a5f95aba80cc1e391080a14482e" 808 | dependencies: 809 | define-properties "^1.1.2" 810 | function-bind "^1.1.0" 811 | is-callable "^1.1.2" 812 | 813 | get-caller-file@^1.0.1: 814 | version "1.0.2" 815 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" 816 | 817 | getpass@^0.1.1: 818 | version "0.1.6" 819 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" 820 | dependencies: 821 | assert-plus "^1.0.0" 822 | 823 | glamor@^2.20.24: 824 | version "2.20.24" 825 | resolved "https://registry.yarnpkg.com/glamor/-/glamor-2.20.24.tgz#a299af2eec687322634ba38e4a0854d8743d2041" 826 | dependencies: 827 | babel-runtime "^6.18.0" 828 | fbjs "^0.8.8" 829 | object-assign "^4.1.0" 830 | 831 | glamorous@^1.0.1: 832 | version "1.0.1" 833 | resolved "https://registry.yarnpkg.com/glamorous/-/glamorous-1.0.1.tgz#df69bd5de7bd39ba4e57c693bb552b8b09cfd995" 834 | 835 | glob-base@^0.3.0: 836 | version "0.3.0" 837 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" 838 | dependencies: 839 | glob-parent "^2.0.0" 840 | is-glob "^2.0.0" 841 | 842 | glob-parent@^2.0.0: 843 | version "2.0.0" 844 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" 845 | dependencies: 846 | is-glob "^2.0.0" 847 | 848 | glob@^7.0.3, glob@^7.0.5: 849 | version "7.1.1" 850 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" 851 | dependencies: 852 | fs.realpath "^1.0.0" 853 | inflight "^1.0.4" 854 | inherits "2" 855 | minimatch "^3.0.2" 856 | once "^1.3.0" 857 | path-is-absolute "^1.0.0" 858 | 859 | globals@^9.0.0: 860 | version "9.17.0" 861 | resolved "https://registry.yarnpkg.com/globals/-/globals-9.17.0.tgz#0c0ca696d9b9bb694d2e5470bd37777caad50286" 862 | 863 | graceful-fs@^4.1.2, graceful-fs@^4.1.6: 864 | version "4.1.11" 865 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 866 | 867 | growly@^1.3.0: 868 | version "1.3.0" 869 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" 870 | 871 | handlebars@^4.0.3: 872 | version "4.0.6" 873 | resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7" 874 | dependencies: 875 | async "^1.4.0" 876 | optimist "^0.6.1" 877 | source-map "^0.4.4" 878 | optionalDependencies: 879 | uglify-js "^2.6" 880 | 881 | har-schema@^1.0.5: 882 | version "1.0.5" 883 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" 884 | 885 | har-validator@~4.2.1: 886 | version "4.2.1" 887 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" 888 | dependencies: 889 | ajv "^4.9.1" 890 | har-schema "^1.0.5" 891 | 892 | has-ansi@^2.0.0: 893 | version "2.0.0" 894 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" 895 | dependencies: 896 | ansi-regex "^2.0.0" 897 | 898 | has-flag@^1.0.0: 899 | version "1.0.0" 900 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" 901 | 902 | has@^1.0.1: 903 | version "1.0.1" 904 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" 905 | dependencies: 906 | function-bind "^1.0.2" 907 | 908 | hawk@~3.1.3: 909 | version "3.1.3" 910 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" 911 | dependencies: 912 | boom "2.x.x" 913 | cryptiles "2.x.x" 914 | hoek "2.x.x" 915 | sntp "1.x.x" 916 | 917 | hoek@2.x.x: 918 | version "2.16.3" 919 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" 920 | 921 | home-or-tmp@^2.0.0: 922 | version "2.0.0" 923 | resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" 924 | dependencies: 925 | os-homedir "^1.0.0" 926 | os-tmpdir "^1.0.1" 927 | 928 | hosted-git-info@^2.1.4: 929 | version "2.4.1" 930 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.1.tgz#4b0445e41c004a8bd1337773a4ff790ca40318c8" 931 | 932 | html-encoding-sniffer@^1.0.1: 933 | version "1.0.1" 934 | resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.1.tgz#79bf7a785ea495fe66165e734153f363ff5437da" 935 | dependencies: 936 | whatwg-encoding "^1.0.1" 937 | 938 | htmlparser2@^3.9.1: 939 | version "3.9.2" 940 | resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.9.2.tgz#1bdf87acca0f3f9e53fa4fcceb0f4b4cbb00b338" 941 | dependencies: 942 | domelementtype "^1.3.0" 943 | domhandler "^2.3.0" 944 | domutils "^1.5.1" 945 | entities "^1.1.1" 946 | inherits "^2.0.1" 947 | readable-stream "^2.0.2" 948 | 949 | http-signature@~1.1.0: 950 | version "1.1.1" 951 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" 952 | dependencies: 953 | assert-plus "^0.2.0" 954 | jsprim "^1.2.2" 955 | sshpk "^1.7.0" 956 | 957 | iconv-lite@0.4.13: 958 | version "0.4.13" 959 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2" 960 | 961 | iconv-lite@~0.4.13: 962 | version "0.4.15" 963 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" 964 | 965 | inflight@^1.0.4: 966 | version "1.0.6" 967 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 968 | dependencies: 969 | once "^1.3.0" 970 | wrappy "1" 971 | 972 | inherits@2, inherits@^2.0.1, inherits@~2.0.1: 973 | version "2.0.3" 974 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 975 | 976 | invariant@^2.2.0: 977 | version "2.2.2" 978 | resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" 979 | dependencies: 980 | loose-envify "^1.0.0" 981 | 982 | invert-kv@^1.0.0: 983 | version "1.0.0" 984 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 985 | 986 | is-arrayish@^0.2.1: 987 | version "0.2.1" 988 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 989 | 990 | is-buffer@^1.0.2: 991 | version "1.1.5" 992 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" 993 | 994 | is-builtin-module@^1.0.0: 995 | version "1.0.0" 996 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 997 | dependencies: 998 | builtin-modules "^1.0.0" 999 | 1000 | is-callable@^1.1.1, is-callable@^1.1.2, is-callable@^1.1.3: 1001 | version "1.1.3" 1002 | resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" 1003 | 1004 | is-ci@^1.0.9: 1005 | version "1.0.10" 1006 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e" 1007 | dependencies: 1008 | ci-info "^1.0.0" 1009 | 1010 | is-date-object@^1.0.1: 1011 | version "1.0.1" 1012 | resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" 1013 | 1014 | is-dotfile@^1.0.0: 1015 | version "1.0.2" 1016 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" 1017 | 1018 | is-equal-shallow@^0.1.3: 1019 | version "0.1.3" 1020 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" 1021 | dependencies: 1022 | is-primitive "^2.0.0" 1023 | 1024 | is-extendable@^0.1.1: 1025 | version "0.1.1" 1026 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" 1027 | 1028 | is-extglob@^1.0.0: 1029 | version "1.0.0" 1030 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" 1031 | 1032 | is-finite@^1.0.0: 1033 | version "1.0.2" 1034 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 1035 | dependencies: 1036 | number-is-nan "^1.0.0" 1037 | 1038 | is-fullwidth-code-point@^1.0.0: 1039 | version "1.0.0" 1040 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 1041 | dependencies: 1042 | number-is-nan "^1.0.0" 1043 | 1044 | is-glob@^2.0.0, is-glob@^2.0.1: 1045 | version "2.0.1" 1046 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" 1047 | dependencies: 1048 | is-extglob "^1.0.0" 1049 | 1050 | is-number@^2.0.2, is-number@^2.1.0: 1051 | version "2.1.0" 1052 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" 1053 | dependencies: 1054 | kind-of "^3.0.2" 1055 | 1056 | is-posix-bracket@^0.1.0: 1057 | version "0.1.1" 1058 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" 1059 | 1060 | is-primitive@^2.0.0: 1061 | version "2.0.0" 1062 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" 1063 | 1064 | is-regex@^1.0.3: 1065 | version "1.0.4" 1066 | resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" 1067 | dependencies: 1068 | has "^1.0.1" 1069 | 1070 | is-stream@^1.0.1: 1071 | version "1.1.0" 1072 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 1073 | 1074 | is-subset@^0.1.1: 1075 | version "0.1.1" 1076 | resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" 1077 | 1078 | is-symbol@^1.0.1: 1079 | version "1.0.1" 1080 | resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" 1081 | 1082 | is-typedarray@~1.0.0: 1083 | version "1.0.0" 1084 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 1085 | 1086 | is-utf8@^0.2.0: 1087 | version "0.2.1" 1088 | resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" 1089 | 1090 | isarray@1.0.0, isarray@~1.0.0: 1091 | version "1.0.0" 1092 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 1093 | 1094 | isexe@^2.0.0: 1095 | version "2.0.0" 1096 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1097 | 1098 | isobject@^2.0.0: 1099 | version "2.1.0" 1100 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" 1101 | dependencies: 1102 | isarray "1.0.0" 1103 | 1104 | isomorphic-fetch@^2.1.1: 1105 | version "2.2.1" 1106 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" 1107 | dependencies: 1108 | node-fetch "^1.0.1" 1109 | whatwg-fetch ">=0.10.0" 1110 | 1111 | isstream@~0.1.2: 1112 | version "0.1.2" 1113 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 1114 | 1115 | istanbul-api@^1.1.0-alpha.1: 1116 | version "1.1.7" 1117 | resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.7.tgz#f6f37f09f8002b130f891c646b70ee4a8e7345ae" 1118 | dependencies: 1119 | async "^2.1.4" 1120 | fileset "^2.0.2" 1121 | istanbul-lib-coverage "^1.0.2" 1122 | istanbul-lib-hook "^1.0.5" 1123 | istanbul-lib-instrument "^1.7.0" 1124 | istanbul-lib-report "^1.0.0" 1125 | istanbul-lib-source-maps "^1.1.1" 1126 | istanbul-reports "^1.0.2" 1127 | js-yaml "^3.7.0" 1128 | mkdirp "^0.5.1" 1129 | once "^1.4.0" 1130 | 1131 | istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.0.2: 1132 | version "1.0.2" 1133 | resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.2.tgz#87a0c015b6910651cb3b184814dfb339337e25e1" 1134 | 1135 | istanbul-lib-hook@^1.0.5: 1136 | version "1.0.5" 1137 | resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.5.tgz#6ca3d16d60c5f4082da39f7c5cd38ea8a772b88e" 1138 | dependencies: 1139 | append-transform "^0.4.0" 1140 | 1141 | istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.6.2, istanbul-lib-instrument@^1.7.0: 1142 | version "1.7.0" 1143 | resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.7.0.tgz#b8e0dc25709bb44e17336ab47b7bb5c97c23f659" 1144 | dependencies: 1145 | babel-generator "^6.18.0" 1146 | babel-template "^6.16.0" 1147 | babel-traverse "^6.18.0" 1148 | babel-types "^6.18.0" 1149 | babylon "^6.13.0" 1150 | istanbul-lib-coverage "^1.0.2" 1151 | semver "^5.3.0" 1152 | 1153 | istanbul-lib-report@^1.0.0: 1154 | version "1.0.0" 1155 | resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.0.0.tgz#d83dac7f26566b521585569367fe84ccfc7aaecb" 1156 | dependencies: 1157 | istanbul-lib-coverage "^1.0.2" 1158 | mkdirp "^0.5.1" 1159 | path-parse "^1.0.5" 1160 | supports-color "^3.1.2" 1161 | 1162 | istanbul-lib-source-maps@^1.1.1: 1163 | version "1.1.1" 1164 | resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.1.1.tgz#f8c8c2e8f2160d1d91526d97e5bd63b2079af71c" 1165 | dependencies: 1166 | istanbul-lib-coverage "^1.0.2" 1167 | mkdirp "^0.5.1" 1168 | rimraf "^2.4.4" 1169 | source-map "^0.5.3" 1170 | 1171 | istanbul-reports@^1.0.2: 1172 | version "1.0.2" 1173 | resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.0.2.tgz#4e8366abe6fa746cc1cd6633f108de12cc6ac6fa" 1174 | dependencies: 1175 | handlebars "^4.0.3" 1176 | 1177 | jest-changed-files@^19.0.2: 1178 | version "19.0.2" 1179 | resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-19.0.2.tgz#16c54c84c3270be408e06d2e8af3f3e37a885824" 1180 | 1181 | jest-cli@^19.0.2: 1182 | version "19.0.2" 1183 | resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-19.0.2.tgz#cc3620b62acac5f2d93a548cb6ef697d4ec85443" 1184 | dependencies: 1185 | ansi-escapes "^1.4.0" 1186 | callsites "^2.0.0" 1187 | chalk "^1.1.1" 1188 | graceful-fs "^4.1.6" 1189 | is-ci "^1.0.9" 1190 | istanbul-api "^1.1.0-alpha.1" 1191 | istanbul-lib-coverage "^1.0.0" 1192 | istanbul-lib-instrument "^1.1.1" 1193 | jest-changed-files "^19.0.2" 1194 | jest-config "^19.0.2" 1195 | jest-environment-jsdom "^19.0.2" 1196 | jest-haste-map "^19.0.0" 1197 | jest-jasmine2 "^19.0.2" 1198 | jest-message-util "^19.0.0" 1199 | jest-regex-util "^19.0.0" 1200 | jest-resolve-dependencies "^19.0.0" 1201 | jest-runtime "^19.0.2" 1202 | jest-snapshot "^19.0.2" 1203 | jest-util "^19.0.2" 1204 | micromatch "^2.3.11" 1205 | node-notifier "^5.0.1" 1206 | slash "^1.0.0" 1207 | string-length "^1.0.1" 1208 | throat "^3.0.0" 1209 | which "^1.1.1" 1210 | worker-farm "^1.3.1" 1211 | yargs "^6.3.0" 1212 | 1213 | jest-config@^19.0.2: 1214 | version "19.0.2" 1215 | resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.2.tgz#1b9bd2db0ddd16df61c2b10a54009e1768da6411" 1216 | dependencies: 1217 | chalk "^1.1.1" 1218 | jest-environment-jsdom "^19.0.2" 1219 | jest-environment-node "^19.0.2" 1220 | jest-jasmine2 "^19.0.2" 1221 | jest-regex-util "^19.0.0" 1222 | jest-resolve "^19.0.2" 1223 | jest-validate "^19.0.2" 1224 | pretty-format "^19.0.0" 1225 | 1226 | jest-diff@^19.0.0: 1227 | version "19.0.0" 1228 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-19.0.0.tgz#d1563cfc56c8b60232988fbc05d4d16ed90f063c" 1229 | dependencies: 1230 | chalk "^1.1.3" 1231 | diff "^3.0.0" 1232 | jest-matcher-utils "^19.0.0" 1233 | pretty-format "^19.0.0" 1234 | 1235 | jest-environment-jsdom@^19.0.2: 1236 | version "19.0.2" 1237 | resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-19.0.2.tgz#ceda859c4a4b94ab35e4de7dab54b926f293e4a3" 1238 | dependencies: 1239 | jest-mock "^19.0.0" 1240 | jest-util "^19.0.2" 1241 | jsdom "^9.11.0" 1242 | 1243 | jest-environment-node@^19.0.2: 1244 | version "19.0.2" 1245 | resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-19.0.2.tgz#6e84079db87ed21d0c05e1f9669f207b116fe99b" 1246 | dependencies: 1247 | jest-mock "^19.0.0" 1248 | jest-util "^19.0.2" 1249 | 1250 | jest-file-exists@^19.0.0: 1251 | version "19.0.0" 1252 | resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-19.0.0.tgz#cca2e587a11ec92e24cfeab3f8a94d657f3fceb8" 1253 | 1254 | jest-glamor-react@^1.2.0: 1255 | version "1.2.0" 1256 | resolved "https://registry.yarnpkg.com/jest-glamor-react/-/jest-glamor-react-1.2.0.tgz#f9b0efbd3284b996bbe3a5fbb750f99674130a96" 1257 | dependencies: 1258 | chalk "^1.1.3" 1259 | css "^2.2.1" 1260 | glamor "^2.20.24" 1261 | jest-diff "^19.0.0" 1262 | jest-snapshot "^19.0.2" 1263 | strip-ansi "^3.0.1" 1264 | 1265 | jest-haste-map@^19.0.0: 1266 | version "19.0.0" 1267 | resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-19.0.0.tgz#adde00b62b1fe04432a104b3254fc5004514b55e" 1268 | dependencies: 1269 | fb-watchman "^2.0.0" 1270 | graceful-fs "^4.1.6" 1271 | micromatch "^2.3.11" 1272 | sane "~1.5.0" 1273 | worker-farm "^1.3.1" 1274 | 1275 | jest-jasmine2@^19.0.2: 1276 | version "19.0.2" 1277 | resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.2.tgz#167991ac825981fb1a800af126e83afcca832c73" 1278 | dependencies: 1279 | graceful-fs "^4.1.6" 1280 | jest-matcher-utils "^19.0.0" 1281 | jest-matchers "^19.0.0" 1282 | jest-message-util "^19.0.0" 1283 | jest-snapshot "^19.0.2" 1284 | 1285 | jest-matcher-utils@^19.0.0: 1286 | version "19.0.0" 1287 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-19.0.0.tgz#5ecd9b63565d2b001f61fbf7ec4c7f537964564d" 1288 | dependencies: 1289 | chalk "^1.1.3" 1290 | pretty-format "^19.0.0" 1291 | 1292 | jest-matchers@^19.0.0: 1293 | version "19.0.0" 1294 | resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-19.0.0.tgz#c74ecc6ebfec06f384767ba4d6fa4a42d6755754" 1295 | dependencies: 1296 | jest-diff "^19.0.0" 1297 | jest-matcher-utils "^19.0.0" 1298 | jest-message-util "^19.0.0" 1299 | jest-regex-util "^19.0.0" 1300 | 1301 | jest-message-util@^19.0.0: 1302 | version "19.0.0" 1303 | resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-19.0.0.tgz#721796b89c0e4d761606f9ba8cb828a3b6246416" 1304 | dependencies: 1305 | chalk "^1.1.1" 1306 | micromatch "^2.3.11" 1307 | 1308 | jest-mock@^19.0.0: 1309 | version "19.0.0" 1310 | resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-19.0.0.tgz#67038641e9607ab2ce08ec4a8cb83aabbc899d01" 1311 | 1312 | jest-regex-util@^19.0.0: 1313 | version "19.0.0" 1314 | resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-19.0.0.tgz#b7754587112aede1456510bb1f6afe74ef598691" 1315 | 1316 | jest-resolve-dependencies@^19.0.0: 1317 | version "19.0.0" 1318 | resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-19.0.0.tgz#a741ad1fa094140e64ecf2642a504f834ece22ee" 1319 | dependencies: 1320 | jest-file-exists "^19.0.0" 1321 | 1322 | jest-resolve@^19.0.2: 1323 | version "19.0.2" 1324 | resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-19.0.2.tgz#5793575de4f07aec32f7d7ff0c6c181963eefb3c" 1325 | dependencies: 1326 | browser-resolve "^1.11.2" 1327 | jest-haste-map "^19.0.0" 1328 | resolve "^1.2.0" 1329 | 1330 | jest-runtime@^19.0.2: 1331 | version "19.0.2" 1332 | resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.2.tgz#d9a43e72de416d27d196fd9c7940d98fe6685407" 1333 | dependencies: 1334 | babel-core "^6.0.0" 1335 | babel-jest "^19.0.0" 1336 | babel-plugin-istanbul "^4.0.0" 1337 | chalk "^1.1.3" 1338 | graceful-fs "^4.1.6" 1339 | jest-config "^19.0.2" 1340 | jest-file-exists "^19.0.0" 1341 | jest-haste-map "^19.0.0" 1342 | jest-regex-util "^19.0.0" 1343 | jest-resolve "^19.0.2" 1344 | jest-util "^19.0.2" 1345 | json-stable-stringify "^1.0.1" 1346 | micromatch "^2.3.11" 1347 | strip-bom "3.0.0" 1348 | yargs "^6.3.0" 1349 | 1350 | jest-snapshot@^19.0.2: 1351 | version "19.0.2" 1352 | resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-19.0.2.tgz#9c1b216214f7187c38bfd5c70b1efab16b0ff50b" 1353 | dependencies: 1354 | chalk "^1.1.3" 1355 | jest-diff "^19.0.0" 1356 | jest-file-exists "^19.0.0" 1357 | jest-matcher-utils "^19.0.0" 1358 | jest-util "^19.0.2" 1359 | natural-compare "^1.4.0" 1360 | pretty-format "^19.0.0" 1361 | 1362 | jest-util@^19.0.2: 1363 | version "19.0.2" 1364 | resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-19.0.2.tgz#e0a0232a2ab9e6b2b53668bdb3534c2b5977ed41" 1365 | dependencies: 1366 | chalk "^1.1.1" 1367 | graceful-fs "^4.1.6" 1368 | jest-file-exists "^19.0.0" 1369 | jest-message-util "^19.0.0" 1370 | jest-mock "^19.0.0" 1371 | jest-validate "^19.0.2" 1372 | leven "^2.0.0" 1373 | mkdirp "^0.5.1" 1374 | 1375 | jest-validate@^19.0.2: 1376 | version "19.0.2" 1377 | resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-19.0.2.tgz#dc534df5f1278d5b63df32b14241d4dbf7244c0c" 1378 | dependencies: 1379 | chalk "^1.1.1" 1380 | jest-matcher-utils "^19.0.0" 1381 | leven "^2.0.0" 1382 | pretty-format "^19.0.0" 1383 | 1384 | jest@^19.0.2: 1385 | version "19.0.2" 1386 | resolved "https://registry.yarnpkg.com/jest/-/jest-19.0.2.tgz#b794faaf8ff461e7388f28beef559a54f20b2c10" 1387 | dependencies: 1388 | jest-cli "^19.0.2" 1389 | 1390 | jodid25519@^1.0.0: 1391 | version "1.0.2" 1392 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" 1393 | dependencies: 1394 | jsbn "~0.1.0" 1395 | 1396 | js-tokens@^3.0.0: 1397 | version "3.0.1" 1398 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" 1399 | 1400 | js-yaml@^3.7.0: 1401 | version "3.8.3" 1402 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.3.tgz#33a05ec481c850c8875929166fe1beb61c728766" 1403 | dependencies: 1404 | argparse "^1.0.7" 1405 | esprima "^3.1.1" 1406 | 1407 | jsbn@~0.1.0: 1408 | version "0.1.1" 1409 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 1410 | 1411 | jsdom@^9.11.0: 1412 | version "9.12.0" 1413 | resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" 1414 | dependencies: 1415 | abab "^1.0.3" 1416 | acorn "^4.0.4" 1417 | acorn-globals "^3.1.0" 1418 | array-equal "^1.0.0" 1419 | content-type-parser "^1.0.1" 1420 | cssom ">= 0.3.2 < 0.4.0" 1421 | cssstyle ">= 0.2.37 < 0.3.0" 1422 | escodegen "^1.6.1" 1423 | html-encoding-sniffer "^1.0.1" 1424 | nwmatcher ">= 1.3.9 < 2.0.0" 1425 | parse5 "^1.5.1" 1426 | request "^2.79.0" 1427 | sax "^1.2.1" 1428 | symbol-tree "^3.2.1" 1429 | tough-cookie "^2.3.2" 1430 | webidl-conversions "^4.0.0" 1431 | whatwg-encoding "^1.0.1" 1432 | whatwg-url "^4.3.0" 1433 | xml-name-validator "^2.0.1" 1434 | 1435 | jsesc@^1.3.0: 1436 | version "1.3.0" 1437 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" 1438 | 1439 | json-schema@0.2.3: 1440 | version "0.2.3" 1441 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 1442 | 1443 | json-stable-stringify@^1.0.1: 1444 | version "1.0.1" 1445 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" 1446 | dependencies: 1447 | jsonify "~0.0.0" 1448 | 1449 | json-stringify-safe@~5.0.1: 1450 | version "5.0.1" 1451 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 1452 | 1453 | json5@^0.5.0: 1454 | version "0.5.1" 1455 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" 1456 | 1457 | jsonify@~0.0.0: 1458 | version "0.0.0" 1459 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" 1460 | 1461 | jsprim@^1.2.2: 1462 | version "1.4.0" 1463 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" 1464 | dependencies: 1465 | assert-plus "1.0.0" 1466 | extsprintf "1.0.2" 1467 | json-schema "0.2.3" 1468 | verror "1.3.6" 1469 | 1470 | kind-of@^3.0.2: 1471 | version "3.1.0" 1472 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" 1473 | dependencies: 1474 | is-buffer "^1.0.2" 1475 | 1476 | lazy-cache@^1.0.3: 1477 | version "1.0.4" 1478 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" 1479 | 1480 | lcid@^1.0.0: 1481 | version "1.0.0" 1482 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 1483 | dependencies: 1484 | invert-kv "^1.0.0" 1485 | 1486 | leven@^2.0.0: 1487 | version "2.1.0" 1488 | resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" 1489 | 1490 | levn@~0.3.0: 1491 | version "0.3.0" 1492 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 1493 | dependencies: 1494 | prelude-ls "~1.1.2" 1495 | type-check "~0.3.2" 1496 | 1497 | load-json-file@^1.0.0: 1498 | version "1.1.0" 1499 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" 1500 | dependencies: 1501 | graceful-fs "^4.1.2" 1502 | parse-json "^2.2.0" 1503 | pify "^2.0.0" 1504 | pinkie-promise "^2.0.0" 1505 | strip-bom "^2.0.0" 1506 | 1507 | locate-path@^2.0.0: 1508 | version "2.0.0" 1509 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 1510 | dependencies: 1511 | p-locate "^2.0.0" 1512 | path-exists "^3.0.0" 1513 | 1514 | lodash.assignin@^4.0.9: 1515 | version "4.2.0" 1516 | resolved "https://registry.yarnpkg.com/lodash.assignin/-/lodash.assignin-4.2.0.tgz#ba8df5fb841eb0a3e8044232b0e263a8dc6a28a2" 1517 | 1518 | lodash.bind@^4.1.4: 1519 | version "4.2.1" 1520 | resolved "https://registry.yarnpkg.com/lodash.bind/-/lodash.bind-4.2.1.tgz#7ae3017e939622ac31b7d7d7dcb1b34db1690d35" 1521 | 1522 | lodash.defaults@^4.0.1: 1523 | version "4.2.0" 1524 | resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" 1525 | 1526 | lodash.filter@^4.4.0, lodash.filter@^4.6.0: 1527 | version "4.6.0" 1528 | resolved "https://registry.yarnpkg.com/lodash.filter/-/lodash.filter-4.6.0.tgz#668b1d4981603ae1cc5a6fa760143e480b4c4ace" 1529 | 1530 | lodash.flatten@^4.2.0: 1531 | version "4.4.0" 1532 | resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" 1533 | 1534 | lodash.foreach@^4.3.0: 1535 | version "4.5.0" 1536 | resolved "https://registry.yarnpkg.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz#1a6a35eace401280c7f06dddec35165ab27e3e53" 1537 | 1538 | lodash.isnil@^4.0.0: 1539 | version "4.0.0" 1540 | resolved "https://registry.yarnpkg.com/lodash.isnil/-/lodash.isnil-4.0.0.tgz#49e28cd559013458c814c5479d3c663a21bfaa6c" 1541 | 1542 | lodash.isplainobject@^4.0.6: 1543 | version "4.0.6" 1544 | resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" 1545 | 1546 | lodash.map@^4.4.0: 1547 | version "4.6.0" 1548 | resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3" 1549 | 1550 | lodash.merge@^4.4.0: 1551 | version "4.6.0" 1552 | resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5" 1553 | 1554 | lodash.omitby@^4.5.0: 1555 | version "4.6.0" 1556 | resolved "https://registry.yarnpkg.com/lodash.omitby/-/lodash.omitby-4.6.0.tgz#5c15ff4754ad555016b53c041311e8f079204791" 1557 | 1558 | lodash.pick@^4.2.1: 1559 | version "4.4.0" 1560 | resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" 1561 | 1562 | lodash.range@^3.2.0: 1563 | version "3.2.0" 1564 | resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" 1565 | 1566 | lodash.reduce@^4.4.0: 1567 | version "4.6.0" 1568 | resolved "https://registry.yarnpkg.com/lodash.reduce/-/lodash.reduce-4.6.0.tgz#f1ab6b839299ad48f784abbf476596f03b914d3b" 1569 | 1570 | lodash.reject@^4.4.0: 1571 | version "4.6.0" 1572 | resolved "https://registry.yarnpkg.com/lodash.reject/-/lodash.reject-4.6.0.tgz#80d6492dc1470864bbf583533b651f42a9f52415" 1573 | 1574 | lodash.some@^4.4.0: 1575 | version "4.6.0" 1576 | resolved "https://registry.yarnpkg.com/lodash.some/-/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d" 1577 | 1578 | lodash@^4.14.0, lodash@^4.17.2, lodash@^4.2.0: 1579 | version "4.17.4" 1580 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 1581 | 1582 | longest@^1.0.1: 1583 | version "1.0.1" 1584 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" 1585 | 1586 | loose-envify@^1.0.0, loose-envify@^1.1.0: 1587 | version "1.3.1" 1588 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" 1589 | dependencies: 1590 | js-tokens "^3.0.0" 1591 | 1592 | makeerror@1.0.x: 1593 | version "1.0.11" 1594 | resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" 1595 | dependencies: 1596 | tmpl "1.0.x" 1597 | 1598 | merge@^1.1.3: 1599 | version "1.2.0" 1600 | resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" 1601 | 1602 | micromatch@^2.1.5, micromatch@^2.3.11: 1603 | version "2.3.11" 1604 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" 1605 | dependencies: 1606 | arr-diff "^2.0.0" 1607 | array-unique "^0.2.1" 1608 | braces "^1.8.2" 1609 | expand-brackets "^0.1.4" 1610 | extglob "^0.3.1" 1611 | filename-regex "^2.0.0" 1612 | is-extglob "^1.0.0" 1613 | is-glob "^2.0.1" 1614 | kind-of "^3.0.2" 1615 | normalize-path "^2.0.1" 1616 | object.omit "^2.0.0" 1617 | parse-glob "^3.0.4" 1618 | regex-cache "^0.4.2" 1619 | 1620 | mime-db@~1.27.0: 1621 | version "1.27.0" 1622 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" 1623 | 1624 | mime-types@^2.1.12, mime-types@~2.1.7: 1625 | version "2.1.15" 1626 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" 1627 | dependencies: 1628 | mime-db "~1.27.0" 1629 | 1630 | minimatch@^3.0.2, minimatch@^3.0.3: 1631 | version "3.0.3" 1632 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" 1633 | dependencies: 1634 | brace-expansion "^1.0.0" 1635 | 1636 | minimist@0.0.8, minimist@~0.0.1: 1637 | version "0.0.8" 1638 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 1639 | 1640 | minimist@^1.1.1: 1641 | version "1.2.0" 1642 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 1643 | 1644 | mkdirp@^0.5.1: 1645 | version "0.5.1" 1646 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 1647 | dependencies: 1648 | minimist "0.0.8" 1649 | 1650 | ms@0.7.2: 1651 | version "0.7.2" 1652 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" 1653 | 1654 | natural-compare@^1.4.0: 1655 | version "1.4.0" 1656 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1657 | 1658 | node-fetch@^1.0.1: 1659 | version "1.6.3" 1660 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04" 1661 | dependencies: 1662 | encoding "^0.1.11" 1663 | is-stream "^1.0.1" 1664 | 1665 | node-int64@^0.4.0: 1666 | version "0.4.0" 1667 | resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" 1668 | 1669 | node-notifier@^5.0.1: 1670 | version "5.1.2" 1671 | resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.1.2.tgz#2fa9e12605fa10009d44549d6fcd8a63dde0e4ff" 1672 | dependencies: 1673 | growly "^1.3.0" 1674 | semver "^5.3.0" 1675 | shellwords "^0.1.0" 1676 | which "^1.2.12" 1677 | 1678 | normalize-package-data@^2.3.2: 1679 | version "2.3.6" 1680 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.6.tgz#498fa420c96401f787402ba21e600def9f981fff" 1681 | dependencies: 1682 | hosted-git-info "^2.1.4" 1683 | is-builtin-module "^1.0.0" 1684 | semver "2 || 3 || 4 || 5" 1685 | validate-npm-package-license "^3.0.1" 1686 | 1687 | normalize-path@^2.0.1: 1688 | version "2.1.1" 1689 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" 1690 | dependencies: 1691 | remove-trailing-separator "^1.0.1" 1692 | 1693 | nth-check@~1.0.1: 1694 | version "1.0.1" 1695 | resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.1.tgz#9929acdf628fc2c41098deab82ac580cf149aae4" 1696 | dependencies: 1697 | boolbase "~1.0.0" 1698 | 1699 | number-is-nan@^1.0.0: 1700 | version "1.0.1" 1701 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1702 | 1703 | "nwmatcher@>= 1.3.9 < 2.0.0": 1704 | version "1.3.9" 1705 | resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.3.9.tgz#8bab486ff7fa3dfd086656bbe8b17116d3692d2a" 1706 | 1707 | oauth-sign@~0.8.1: 1708 | version "0.8.2" 1709 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" 1710 | 1711 | object-assign@^4.1.0: 1712 | version "4.1.1" 1713 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1714 | 1715 | object-is@^1.0.1: 1716 | version "1.0.1" 1717 | resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.1.tgz#0aa60ec9989a0b3ed795cf4d06f62cf1ad6539b6" 1718 | 1719 | object-keys@^1.0.10, object-keys@^1.0.8: 1720 | version "1.0.11" 1721 | resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" 1722 | 1723 | object-values@^1.0.0: 1724 | version "1.0.0" 1725 | resolved "https://registry.yarnpkg.com/object-values/-/object-values-1.0.0.tgz#72af839630119e5b98c3b02bb8c27e3237158105" 1726 | 1727 | object.assign@^4.0.4: 1728 | version "4.0.4" 1729 | resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc" 1730 | dependencies: 1731 | define-properties "^1.1.2" 1732 | function-bind "^1.1.0" 1733 | object-keys "^1.0.10" 1734 | 1735 | object.entries@^1.0.3: 1736 | version "1.0.4" 1737 | resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.0.4.tgz#1bf9a4dd2288f5b33f3a993d257661f05d161a5f" 1738 | dependencies: 1739 | define-properties "^1.1.2" 1740 | es-abstract "^1.6.1" 1741 | function-bind "^1.1.0" 1742 | has "^1.0.1" 1743 | 1744 | object.omit@^2.0.0: 1745 | version "2.0.1" 1746 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" 1747 | dependencies: 1748 | for-own "^0.1.4" 1749 | is-extendable "^0.1.1" 1750 | 1751 | object.values@^1.0.3: 1752 | version "1.0.4" 1753 | resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.0.4.tgz#e524da09b4f66ff05df457546ec72ac99f13069a" 1754 | dependencies: 1755 | define-properties "^1.1.2" 1756 | es-abstract "^1.6.1" 1757 | function-bind "^1.1.0" 1758 | has "^1.0.1" 1759 | 1760 | once@^1.3.0, once@^1.4.0: 1761 | version "1.4.0" 1762 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1763 | dependencies: 1764 | wrappy "1" 1765 | 1766 | optimist@^0.6.1: 1767 | version "0.6.1" 1768 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 1769 | dependencies: 1770 | minimist "~0.0.1" 1771 | wordwrap "~0.0.2" 1772 | 1773 | optionator@^0.8.1: 1774 | version "0.8.2" 1775 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 1776 | dependencies: 1777 | deep-is "~0.1.3" 1778 | fast-levenshtein "~2.0.4" 1779 | levn "~0.3.0" 1780 | prelude-ls "~1.1.2" 1781 | type-check "~0.3.2" 1782 | wordwrap "~1.0.0" 1783 | 1784 | os-homedir@^1.0.0: 1785 | version "1.0.2" 1786 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 1787 | 1788 | os-locale@^1.4.0: 1789 | version "1.4.0" 1790 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" 1791 | dependencies: 1792 | lcid "^1.0.0" 1793 | 1794 | os-tmpdir@^1.0.1: 1795 | version "1.0.2" 1796 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1797 | 1798 | p-limit@^1.1.0: 1799 | version "1.1.0" 1800 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" 1801 | 1802 | p-locate@^2.0.0: 1803 | version "2.0.0" 1804 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 1805 | dependencies: 1806 | p-limit "^1.1.0" 1807 | 1808 | parse-glob@^3.0.4: 1809 | version "3.0.4" 1810 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" 1811 | dependencies: 1812 | glob-base "^0.3.0" 1813 | is-dotfile "^1.0.0" 1814 | is-extglob "^1.0.0" 1815 | is-glob "^2.0.0" 1816 | 1817 | parse-json@^2.2.0: 1818 | version "2.2.0" 1819 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 1820 | dependencies: 1821 | error-ex "^1.2.0" 1822 | 1823 | parse5@^1.5.1: 1824 | version "1.5.1" 1825 | resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" 1826 | 1827 | path-exists@^2.0.0: 1828 | version "2.1.0" 1829 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1830 | dependencies: 1831 | pinkie-promise "^2.0.0" 1832 | 1833 | path-exists@^3.0.0: 1834 | version "3.0.0" 1835 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1836 | 1837 | path-is-absolute@^1.0.0: 1838 | version "1.0.1" 1839 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1840 | 1841 | path-parse@^1.0.5: 1842 | version "1.0.5" 1843 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" 1844 | 1845 | path-type@^1.0.0: 1846 | version "1.1.0" 1847 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" 1848 | dependencies: 1849 | graceful-fs "^4.1.2" 1850 | pify "^2.0.0" 1851 | pinkie-promise "^2.0.0" 1852 | 1853 | performance-now@^0.2.0: 1854 | version "0.2.0" 1855 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" 1856 | 1857 | pify@^2.0.0: 1858 | version "2.3.0" 1859 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1860 | 1861 | pinkie-promise@^2.0.0: 1862 | version "2.0.1" 1863 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1864 | dependencies: 1865 | pinkie "^2.0.0" 1866 | 1867 | pinkie@^2.0.0: 1868 | version "2.0.4" 1869 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1870 | 1871 | prelude-ls@~1.1.2: 1872 | version "1.1.2" 1873 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1874 | 1875 | preserve@^0.2.0: 1876 | version "0.2.0" 1877 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" 1878 | 1879 | pretty-format@^19.0.0: 1880 | version "19.0.0" 1881 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-19.0.0.tgz#56530d32acb98a3fa4851c4e2b9d37b420684c84" 1882 | dependencies: 1883 | ansi-styles "^3.0.0" 1884 | 1885 | private@^0.1.6: 1886 | version "0.1.7" 1887 | resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" 1888 | 1889 | process-nextick-args@~1.0.6: 1890 | version "1.0.7" 1891 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1892 | 1893 | promise@^7.1.1: 1894 | version "7.1.1" 1895 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" 1896 | dependencies: 1897 | asap "~2.0.3" 1898 | 1899 | prop-types@^15.5.2: 1900 | version "15.5.6" 1901 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.6.tgz#797a915b1714b645ebb7c5d6cc690346205bd2aa" 1902 | dependencies: 1903 | fbjs "^0.8.9" 1904 | 1905 | prr@~0.0.0: 1906 | version "0.0.0" 1907 | resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" 1908 | 1909 | punycode@^1.4.1: 1910 | version "1.4.1" 1911 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1912 | 1913 | qs@~6.4.0: 1914 | version "6.4.0" 1915 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" 1916 | 1917 | randomatic@^1.1.3: 1918 | version "1.1.6" 1919 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" 1920 | dependencies: 1921 | is-number "^2.0.2" 1922 | kind-of "^3.0.2" 1923 | 1924 | react@^15.4.2: 1925 | version "15.5.3" 1926 | resolved "https://registry.yarnpkg.com/react/-/react-15.5.3.tgz#84055382c025dec4e3b902bb61a8697cc79c1258" 1927 | dependencies: 1928 | fbjs "^0.8.9" 1929 | loose-envify "^1.1.0" 1930 | object-assign "^4.1.0" 1931 | prop-types "^15.5.2" 1932 | 1933 | read-pkg-up@^1.0.1: 1934 | version "1.0.1" 1935 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" 1936 | dependencies: 1937 | find-up "^1.0.0" 1938 | read-pkg "^1.0.0" 1939 | 1940 | read-pkg@^1.0.0: 1941 | version "1.1.0" 1942 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" 1943 | dependencies: 1944 | load-json-file "^1.0.0" 1945 | normalize-package-data "^2.3.2" 1946 | path-type "^1.0.0" 1947 | 1948 | readable-stream@^2.0.2: 1949 | version "2.2.9" 1950 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.9.tgz#cf78ec6f4a6d1eb43d26488cac97f042e74b7fc8" 1951 | dependencies: 1952 | buffer-shims "~1.0.0" 1953 | core-util-is "~1.0.0" 1954 | inherits "~2.0.1" 1955 | isarray "~1.0.0" 1956 | process-nextick-args "~1.0.6" 1957 | string_decoder "~1.0.0" 1958 | util-deprecate "~1.0.1" 1959 | 1960 | regenerator-runtime@^0.10.0: 1961 | version "0.10.3" 1962 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" 1963 | 1964 | regex-cache@^0.4.2: 1965 | version "0.4.3" 1966 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" 1967 | dependencies: 1968 | is-equal-shallow "^0.1.3" 1969 | is-primitive "^2.0.0" 1970 | 1971 | remove-trailing-separator@^1.0.1: 1972 | version "1.0.1" 1973 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4" 1974 | 1975 | repeat-element@^1.1.2: 1976 | version "1.1.2" 1977 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" 1978 | 1979 | repeat-string@^1.5.2: 1980 | version "1.6.1" 1981 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" 1982 | 1983 | repeating@^2.0.0: 1984 | version "2.0.1" 1985 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1986 | dependencies: 1987 | is-finite "^1.0.0" 1988 | 1989 | request@^2.79.0: 1990 | version "2.81.0" 1991 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" 1992 | dependencies: 1993 | aws-sign2 "~0.6.0" 1994 | aws4 "^1.2.1" 1995 | caseless "~0.12.0" 1996 | combined-stream "~1.0.5" 1997 | extend "~3.0.0" 1998 | forever-agent "~0.6.1" 1999 | form-data "~2.1.1" 2000 | har-validator "~4.2.1" 2001 | hawk "~3.1.3" 2002 | http-signature "~1.1.0" 2003 | is-typedarray "~1.0.0" 2004 | isstream "~0.1.2" 2005 | json-stringify-safe "~5.0.1" 2006 | mime-types "~2.1.7" 2007 | oauth-sign "~0.8.1" 2008 | performance-now "^0.2.0" 2009 | qs "~6.4.0" 2010 | safe-buffer "^5.0.1" 2011 | stringstream "~0.0.4" 2012 | tough-cookie "~2.3.0" 2013 | tunnel-agent "^0.6.0" 2014 | uuid "^3.0.0" 2015 | 2016 | require-directory@^2.1.1: 2017 | version "2.1.1" 2018 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 2019 | 2020 | require-main-filename@^1.0.1: 2021 | version "1.0.1" 2022 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 2023 | 2024 | resolve-url@~0.2.1: 2025 | version "0.2.1" 2026 | resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" 2027 | 2028 | resolve@1.1.7: 2029 | version "1.1.7" 2030 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" 2031 | 2032 | resolve@^1.2.0: 2033 | version "1.3.2" 2034 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235" 2035 | dependencies: 2036 | path-parse "^1.0.5" 2037 | 2038 | right-align@^0.1.1: 2039 | version "0.1.3" 2040 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" 2041 | dependencies: 2042 | align-text "^0.1.1" 2043 | 2044 | rimraf@^2.4.4: 2045 | version "2.6.1" 2046 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" 2047 | dependencies: 2048 | glob "^7.0.5" 2049 | 2050 | safe-buffer@^5.0.1: 2051 | version "5.0.1" 2052 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" 2053 | 2054 | sane@~1.5.0: 2055 | version "1.5.0" 2056 | resolved "https://registry.yarnpkg.com/sane/-/sane-1.5.0.tgz#a4adeae764d048621ecb27d5f9ecf513101939f3" 2057 | dependencies: 2058 | anymatch "^1.3.0" 2059 | exec-sh "^0.2.0" 2060 | fb-watchman "^1.8.0" 2061 | minimatch "^3.0.2" 2062 | minimist "^1.1.1" 2063 | walker "~1.0.5" 2064 | watch "~0.10.0" 2065 | 2066 | sax@^1.2.1: 2067 | version "1.2.2" 2068 | resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828" 2069 | 2070 | "semver@2 || 3 || 4 || 5", semver@^5.3.0: 2071 | version "5.3.0" 2072 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" 2073 | 2074 | set-blocking@^2.0.0: 2075 | version "2.0.0" 2076 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 2077 | 2078 | setimmediate@^1.0.5: 2079 | version "1.0.5" 2080 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" 2081 | 2082 | shellwords@^0.1.0: 2083 | version "0.1.0" 2084 | resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.0.tgz#66afd47b6a12932d9071cbfd98a52e785cd0ba14" 2085 | 2086 | slash@^1.0.0: 2087 | version "1.0.0" 2088 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 2089 | 2090 | sntp@1.x.x: 2091 | version "1.0.9" 2092 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" 2093 | dependencies: 2094 | hoek "2.x.x" 2095 | 2096 | source-map-resolve@^0.3.0: 2097 | version "0.3.1" 2098 | resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.3.1.tgz#610f6122a445b8dd51535a2a71b783dfc1248761" 2099 | dependencies: 2100 | atob "~1.1.0" 2101 | resolve-url "~0.2.1" 2102 | source-map-url "~0.3.0" 2103 | urix "~0.1.0" 2104 | 2105 | source-map-support@^0.4.2: 2106 | version "0.4.14" 2107 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.14.tgz#9d4463772598b86271b4f523f6c1f4e02a7d6aef" 2108 | dependencies: 2109 | source-map "^0.5.6" 2110 | 2111 | source-map-url@~0.3.0: 2112 | version "0.3.0" 2113 | resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.3.0.tgz#7ecaf13b57bcd09da8a40c5d269db33799d4aaf9" 2114 | 2115 | source-map@^0.1.38: 2116 | version "0.1.43" 2117 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" 2118 | dependencies: 2119 | amdefine ">=0.0.4" 2120 | 2121 | source-map@^0.4.4: 2122 | version "0.4.4" 2123 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" 2124 | dependencies: 2125 | amdefine ">=0.0.4" 2126 | 2127 | source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1: 2128 | version "0.5.6" 2129 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" 2130 | 2131 | source-map@~0.2.0: 2132 | version "0.2.0" 2133 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" 2134 | dependencies: 2135 | amdefine ">=0.0.4" 2136 | 2137 | spdx-correct@~1.0.0: 2138 | version "1.0.2" 2139 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" 2140 | dependencies: 2141 | spdx-license-ids "^1.0.2" 2142 | 2143 | spdx-expression-parse@~1.0.0: 2144 | version "1.0.4" 2145 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" 2146 | 2147 | spdx-license-ids@^1.0.2: 2148 | version "1.2.2" 2149 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" 2150 | 2151 | sprintf-js@~1.0.2: 2152 | version "1.0.3" 2153 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 2154 | 2155 | sshpk@^1.7.0: 2156 | version "1.11.0" 2157 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.11.0.tgz#2d8d5ebb4a6fab28ffba37fa62a90f4a3ea59d77" 2158 | dependencies: 2159 | asn1 "~0.2.3" 2160 | assert-plus "^1.0.0" 2161 | dashdash "^1.12.0" 2162 | getpass "^0.1.1" 2163 | optionalDependencies: 2164 | bcrypt-pbkdf "^1.0.0" 2165 | ecc-jsbn "~0.1.1" 2166 | jodid25519 "^1.0.0" 2167 | jsbn "~0.1.0" 2168 | tweetnacl "~0.14.0" 2169 | 2170 | string-length@^1.0.1: 2171 | version "1.0.1" 2172 | resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" 2173 | dependencies: 2174 | strip-ansi "^3.0.0" 2175 | 2176 | string-width@^1.0.1, string-width@^1.0.2: 2177 | version "1.0.2" 2178 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 2179 | dependencies: 2180 | code-point-at "^1.0.0" 2181 | is-fullwidth-code-point "^1.0.0" 2182 | strip-ansi "^3.0.0" 2183 | 2184 | string_decoder@~1.0.0: 2185 | version "1.0.0" 2186 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.0.tgz#f06f41157b664d86069f84bdbdc9b0d8ab281667" 2187 | dependencies: 2188 | buffer-shims "~1.0.0" 2189 | 2190 | stringstream@~0.0.4: 2191 | version "0.0.5" 2192 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" 2193 | 2194 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 2195 | version "3.0.1" 2196 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 2197 | dependencies: 2198 | ansi-regex "^2.0.0" 2199 | 2200 | strip-bom@3.0.0: 2201 | version "3.0.0" 2202 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 2203 | 2204 | strip-bom@^2.0.0: 2205 | version "2.0.0" 2206 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" 2207 | dependencies: 2208 | is-utf8 "^0.2.0" 2209 | 2210 | supports-color@^2.0.0: 2211 | version "2.0.0" 2212 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" 2213 | 2214 | supports-color@^3.1.2: 2215 | version "3.2.3" 2216 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" 2217 | dependencies: 2218 | has-flag "^1.0.0" 2219 | 2220 | symbol-tree@^3.2.1: 2221 | version "3.2.2" 2222 | resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" 2223 | 2224 | test-exclude@^4.0.3: 2225 | version "4.0.3" 2226 | resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.0.3.tgz#86a13ce3effcc60e6c90403cf31a27a60ac6c4e7" 2227 | dependencies: 2228 | arrify "^1.0.1" 2229 | micromatch "^2.3.11" 2230 | object-assign "^4.1.0" 2231 | read-pkg-up "^1.0.1" 2232 | require-main-filename "^1.0.1" 2233 | 2234 | throat@^3.0.0: 2235 | version "3.0.0" 2236 | resolved "https://registry.yarnpkg.com/throat/-/throat-3.0.0.tgz#e7c64c867cbb3845f10877642f7b60055b8ec0d6" 2237 | 2238 | tmpl@1.0.x: 2239 | version "1.0.4" 2240 | resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" 2241 | 2242 | to-fast-properties@^1.0.1: 2243 | version "1.0.2" 2244 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" 2245 | 2246 | tough-cookie@^2.3.2, tough-cookie@~2.3.0: 2247 | version "2.3.2" 2248 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" 2249 | dependencies: 2250 | punycode "^1.4.1" 2251 | 2252 | tr46@~0.0.3: 2253 | version "0.0.3" 2254 | resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" 2255 | 2256 | trim-right@^1.0.1: 2257 | version "1.0.1" 2258 | resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 2259 | 2260 | tunnel-agent@^0.6.0: 2261 | version "0.6.0" 2262 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 2263 | dependencies: 2264 | safe-buffer "^5.0.1" 2265 | 2266 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 2267 | version "0.14.5" 2268 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 2269 | 2270 | type-check@~0.3.2: 2271 | version "0.3.2" 2272 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 2273 | dependencies: 2274 | prelude-ls "~1.1.2" 2275 | 2276 | ua-parser-js@^0.7.9: 2277 | version "0.7.12" 2278 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" 2279 | 2280 | uglify-js@^2.6: 2281 | version "2.8.22" 2282 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.22.tgz#d54934778a8da14903fa29a326fb24c0ab51a1a0" 2283 | dependencies: 2284 | source-map "~0.5.1" 2285 | yargs "~3.10.0" 2286 | optionalDependencies: 2287 | uglify-to-browserify "~1.0.0" 2288 | 2289 | uglify-to-browserify@~1.0.0: 2290 | version "1.0.2" 2291 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" 2292 | 2293 | urix@^0.1.0, urix@~0.1.0: 2294 | version "0.1.0" 2295 | resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 2296 | 2297 | util-deprecate@~1.0.1: 2298 | version "1.0.2" 2299 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 2300 | 2301 | uuid@^2.0.3: 2302 | version "2.0.3" 2303 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" 2304 | 2305 | uuid@^3.0.0: 2306 | version "3.0.1" 2307 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" 2308 | 2309 | validate-npm-package-license@^3.0.1: 2310 | version "3.0.1" 2311 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" 2312 | dependencies: 2313 | spdx-correct "~1.0.0" 2314 | spdx-expression-parse "~1.0.0" 2315 | 2316 | verror@1.3.6: 2317 | version "1.3.6" 2318 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" 2319 | dependencies: 2320 | extsprintf "1.0.2" 2321 | 2322 | walker@~1.0.5: 2323 | version "1.0.7" 2324 | resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" 2325 | dependencies: 2326 | makeerror "1.0.x" 2327 | 2328 | watch@~0.10.0: 2329 | version "0.10.0" 2330 | resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" 2331 | 2332 | webidl-conversions@^3.0.0: 2333 | version "3.0.1" 2334 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" 2335 | 2336 | webidl-conversions@^4.0.0: 2337 | version "4.0.1" 2338 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.1.tgz#8015a17ab83e7e1b311638486ace81da6ce206a0" 2339 | 2340 | whatwg-encoding@^1.0.1: 2341 | version "1.0.1" 2342 | resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.1.tgz#3c6c451a198ee7aec55b1ec61d0920c67801a5f4" 2343 | dependencies: 2344 | iconv-lite "0.4.13" 2345 | 2346 | whatwg-fetch@>=0.10.0: 2347 | version "2.0.3" 2348 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" 2349 | 2350 | whatwg-url@^4.3.0: 2351 | version "4.7.0" 2352 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.7.0.tgz#202035ac1955b087cdd20fa8b58ded3ab1cd2af5" 2353 | dependencies: 2354 | tr46 "~0.0.3" 2355 | webidl-conversions "^3.0.0" 2356 | 2357 | which-module@^1.0.0: 2358 | version "1.0.0" 2359 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" 2360 | 2361 | which@^1.1.1, which@^1.2.12: 2362 | version "1.2.14" 2363 | resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" 2364 | dependencies: 2365 | isexe "^2.0.0" 2366 | 2367 | window-size@0.1.0: 2368 | version "0.1.0" 2369 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" 2370 | 2371 | wordwrap@0.0.2: 2372 | version "0.0.2" 2373 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" 2374 | 2375 | wordwrap@~0.0.2: 2376 | version "0.0.3" 2377 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 2378 | 2379 | wordwrap@~1.0.0: 2380 | version "1.0.0" 2381 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 2382 | 2383 | worker-farm@^1.3.1: 2384 | version "1.3.1" 2385 | resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.3.1.tgz#4333112bb49b17aa050b87895ca6b2cacf40e5ff" 2386 | dependencies: 2387 | errno ">=0.1.1 <0.2.0-0" 2388 | xtend ">=4.0.0 <4.1.0-0" 2389 | 2390 | wrap-ansi@^2.0.0: 2391 | version "2.1.0" 2392 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 2393 | dependencies: 2394 | string-width "^1.0.1" 2395 | strip-ansi "^3.0.1" 2396 | 2397 | wrappy@1: 2398 | version "1.0.2" 2399 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2400 | 2401 | xml-name-validator@^2.0.1: 2402 | version "2.0.1" 2403 | resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" 2404 | 2405 | "xtend@>=4.0.0 <4.1.0-0": 2406 | version "4.0.1" 2407 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 2408 | 2409 | y18n@^3.2.1: 2410 | version "3.2.1" 2411 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 2412 | 2413 | yargs-parser@^4.2.0: 2414 | version "4.2.1" 2415 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" 2416 | dependencies: 2417 | camelcase "^3.0.0" 2418 | 2419 | yargs@^6.3.0: 2420 | version "6.6.0" 2421 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" 2422 | dependencies: 2423 | camelcase "^3.0.0" 2424 | cliui "^3.2.0" 2425 | decamelize "^1.1.1" 2426 | get-caller-file "^1.0.1" 2427 | os-locale "^1.4.0" 2428 | read-pkg-up "^1.0.1" 2429 | require-directory "^2.1.1" 2430 | require-main-filename "^1.0.1" 2431 | set-blocking "^2.0.0" 2432 | string-width "^1.0.2" 2433 | which-module "^1.0.0" 2434 | y18n "^3.2.1" 2435 | yargs-parser "^4.2.0" 2436 | 2437 | yargs@~3.10.0: 2438 | version "3.10.0" 2439 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" 2440 | dependencies: 2441 | camelcase "^1.0.2" 2442 | cliui "^2.1.0" 2443 | decamelize "^1.0.0" 2444 | window-size "0.1.0" 2445 | --------------------------------------------------------------------------------