Commit b98b9586 authored by Alexandros Georgantas's avatar Alexandros Georgantas

feat: conventional commits added

parent 5c0860cc
{
"linters": {
"*.{js,jsx}": ["prettier --write", "eslint --fix", "stylelint", "git add"]
},
ignore: ["**/CHANGELOG.md"]
}
**/_build
**/node_modules
**/coverage
{
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"plugins": ["stylelint-order"],
"processors": ["stylelint-processor-styled-components"],
"rules": {
"order/order": ["declarations", "rules", "at-rules"],
"order/properties-alphabetical-order": true
}
}
...@@ -5,10 +5,11 @@ import ReactDOM from 'react-dom' ...@@ -5,10 +5,11 @@ import ReactDOM from 'react-dom'
import { configureStore, Root } from 'pubsweet-client' import { configureStore, Root } from 'pubsweet-client'
import theme from './theme'
import { AppContainer } from 'react-hot-loader' import { AppContainer } from 'react-hot-loader'
import createHistory from 'history/createBrowserHistory' import createHistory from 'history/createBrowserHistory'
import theme from './theme'
import routes from './routes' import routes from './routes'
const history = createHistory() const history = createHistory()
......
...@@ -38,8 +38,8 @@ class Navigation extends React.Component { ...@@ -38,8 +38,8 @@ class Navigation extends React.Component {
this.inEditor = pathname.match(/fragments/g) this.inEditor = pathname.match(/fragments/g)
this.inPaged = pathname.match(/pagedPreviewer\/paged/g) this.inPaged = pathname.match(/pagedPreviewer\/paged/g)
if (this.inEditor || this.inPaged) { if (this.inEditor || this.inPaged) {
const pathnameSplited = pathname.split('/') const pathnameSplitted = pathname.split('/')
this.collectionId = pathnameSplited[2] this.collectionId = pathnameSplitted[2] // eslint-disable-line
} }
} }
...@@ -52,8 +52,8 @@ class Navigation extends React.Component { ...@@ -52,8 +52,8 @@ class Navigation extends React.Component {
if (currentUser.isAuthenticated) { if (currentUser.isAuthenticated) {
logoutButtonIfAuthenticated = ( logoutButtonIfAuthenticated = (
<NavbarUser <NavbarUser
user={currentUser.user}
onLogoutClick={() => logoutUser('/login')} onLogoutClick={() => logoutUser('/login')}
user={currentUser.user}
/> />
) )
} }
...@@ -100,8 +100,8 @@ class Navigation extends React.Component { ...@@ -100,8 +100,8 @@ class Navigation extends React.Component {
} }
Navigation.propTypes = { Navigation.propTypes = {
currentUser: PropTypes.any, currentUser: PropTypes.any, // eslint-disable-line
history: PropTypes.any.isRequired, history: PropTypes.any.isRequired, // eslint-disable-line
logoutUser: PropTypes.func.isRequired, logoutUser: PropTypes.func.isRequired,
} }
......
...@@ -72,7 +72,7 @@ PrivateRoute.propTypes = { ...@@ -72,7 +72,7 @@ PrivateRoute.propTypes = {
isFetching: PropTypes.bool.isRequired, isFetching: PropTypes.bool.isRequired,
}).isRequired, }).isRequired,
getCurrentUser: PropTypes.func.isRequired, getCurrentUser: PropTypes.func.isRequired,
location: PropTypes.object.isRequired, location: PropTypes.object.isRequired, // eslint-disable-line
} }
export default withRouter( export default withRouter(
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
import 'typeface-fira-sans' import 'typeface-fira-sans'
export default { export default {
/* Text variables */ /* Text variables */
// fonts // fonts
......
module.exports = { extends: ['@commitlint/config-conventional'] }
...@@ -33,7 +33,7 @@ class EditoriaMode { ...@@ -33,7 +33,7 @@ class EditoriaMode {
return operationMap[operation] ? operationMap[operation] : operation return operationMap[operation] ? operationMap[operation] : operation
} }
/* eslint-disable */
static difference(object, base) { static difference(object, base) {
const changes = (object, base) => const changes = (object, base) =>
transform(object, (result, value, key) => { transform(object, (result, value, key) => {
...@@ -46,7 +46,7 @@ class EditoriaMode { ...@@ -46,7 +46,7 @@ class EditoriaMode {
}) })
return changes(object, base) return changes(object, base)
} }
/* eslint-enable */
async isTeamMember(teamType, object) { async isTeamMember(teamType, object) {
let membershipCondition let membershipCondition
if (object) { if (object) {
...@@ -74,7 +74,7 @@ class EditoriaMode { ...@@ -74,7 +74,7 @@ class EditoriaMode {
async hasMembership(object) { async hasMembership(object) {
let collection let collection
if (object.collection) { if (object.collection) {
collection = object.collection collection = object.collection //eslint-disable-line
} else { } else {
collection = object collection = object
} }
...@@ -82,7 +82,7 @@ class EditoriaMode { ...@@ -82,7 +82,7 @@ class EditoriaMode {
const membershipCondition = team => const membershipCondition = team =>
!team.global && team.object.id === collection.id !team.global && team.object.id === collection.id
const memberships = await Promise.all( const memberships = await Promise.all(
this.user.teams.map(async teamId => { this.user.teams.map(async teamId => {
const teamFound = await this.context.models.Team.find(teamId) const teamFound = await this.context.models.Team.find(teamId)
if (teamFound) { if (teamFound) {
...@@ -113,7 +113,7 @@ class EditoriaMode { ...@@ -113,7 +113,7 @@ class EditoriaMode {
async findCollectionByObject(object) { async findCollectionByObject(object) {
let id let id
if (object.collection) { if (object.collection) {
id = object.collection.id id = object.collection.id //eslint-disable-line
} else if (object.bookId && object.type) { } else if (object.bookId && object.type) {
id = object.bookId id = object.bookId
} else { } else {
...@@ -122,10 +122,10 @@ class EditoriaMode { ...@@ -122,10 +122,10 @@ class EditoriaMode {
id = object.book id = object.book
break break
case 'team': case 'team':
id = object.object.id id = object.object.id //eslint-disable-line
break break
default: default:
id = object.id id = object.id //eslint-disable-line
break break
} }
} }
...@@ -218,7 +218,7 @@ class EditoriaMode { ...@@ -218,7 +218,7 @@ class EditoriaMode {
this.user = await this.context.models.User.find(this.userId) this.user = await this.context.models.User.find(this.userId)
let current let current
if (this.object.current) { if (this.object.current) {
current = this.object.current current = this.object.current //eslint-disable-line
} else { } else {
current = this.object current = this.object
} }
...@@ -236,7 +236,7 @@ class EditoriaMode { ...@@ -236,7 +236,7 @@ class EditoriaMode {
this.user = await this.context.models.User.find(this.userId) this.user = await this.context.models.User.find(this.userId)
let current let current
if (this.object.current) { if (this.object.current) {
current = this.object.current current = this.object.current //eslint-disable-line
} else { } else {
current = this.object current = this.object
} }
...@@ -621,6 +621,7 @@ class EditoriaMode { ...@@ -621,6 +621,7 @@ class EditoriaMode {
} }
return 'selection' return 'selection'
} }
/* eslint-disable */
async canRemoveTeamMember() { async canRemoveTeamMember() {
// this.user = await this.context.models.User.find(this.userId) // this.user = await this.context.models.User.find(this.userId)
// const collection = await this.findCollectionByObject(this.object) // const collection = await this.findCollectionByObject(this.object)
...@@ -632,6 +633,8 @@ class EditoriaMode { ...@@ -632,6 +633,8 @@ class EditoriaMode {
// } // }
return true return true
} }
/* eslint-enable */
async canGo() { async canGo() {
this.user = await this.context.models.User.find(this.userId) this.user = await this.context.models.User.find(this.userId)
const collection = await this.findCollectionByObject(this.object) const collection = await this.findCollectionByObject(this.object)
...@@ -870,7 +873,7 @@ module.exports = { ...@@ -870,7 +873,7 @@ module.exports = {
'team:create': (userId, operation, object, context) => true, 'team:create': (userId, operation, object, context) => true,
'team:delete': (userId, operation, object, context) => true, 'team:delete': (userId, operation, object, context) => true,
'team:patch': (userId, operation, object, context) => true, 'team:patch': (userId, operation, object, context) => true,
'can view add team memeber': (userId, operation, object, context) => 'can view add team member': (userId, operation, object, context) =>
// if (object === 'Production Editor') { // if (object === 'Production Editor') {
// return false // return false
// } // }
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
"prop-types": "^15.6.0", "prop-types": "^15.6.0",
"pubsweet": "^2.2.8", "pubsweet": "^2.2.8",
"pubsweet-client": "^2.5.5", "pubsweet-client": "^2.5.5",
"pubsweet-component-bookbuilder": "^1.1.4", "pubsweet-component-bookbuilder": "^1.1.5",
"pubsweet-component-editoria-dashboard": "^0.1.2", "pubsweet-component-editoria-dashboard": "^0.1.3",
"pubsweet-component-editoria-global-teams": "^0.1.1", "pubsweet-component-editoria-global-teams": "^0.1.2",
"pubsweet-component-epub": "^0.5.2", "pubsweet-component-epub": "^0.5.2",
"pubsweet-component-epub-frontend": "^0.1.3", "pubsweet-component-epub-frontend": "^0.1.3",
"pubsweet-component-ink-backend": "^0.1.1", "pubsweet-component-ink-backend": "^0.1.1",
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
"pubsweet-component-signup": "^0.4.1", "pubsweet-component-signup": "^0.4.1",
"pubsweet-component-theme-editoria": "^0.0.5", "pubsweet-component-theme-editoria": "^0.0.5",
"pubsweet-component-users-manager": "1.0.0", "pubsweet-component-users-manager": "1.0.0",
"pubsweet-component-vivliostyle-viewer": "^1.0.0", "pubsweet-component-vivliostyle-viewer": "^1.0.1",
"pubsweet-component-wax": "^0.6.15", "pubsweet-component-wax": "^0.6.16",
"pubsweet-server": "^7.2.0", "pubsweet-server": "^7.2.0",
"pubsweet-theme-plugin": "^0.0.3", "pubsweet-theme-plugin": "^0.0.3",
"react": "^16.2.0", "react": "^16.2.0",
...@@ -136,7 +136,15 @@ ...@@ -136,7 +136,15 @@
"webpack": "^3.8.1", "webpack": "^3.8.1",
"webpack-dev-middleware": "^1.12.0", "webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.20.0", "webpack-hot-middleware": "^2.20.0",
"winston-daily-rotate-file": "^3.2.1" "winston-daily-rotate-file": "^3.2.1",
"@commitlint/cli": "^6.0.5",
"@commitlint/config-conventional": "^6.0.4",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
"stylelint-config-recommended": "^2.1.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.3.1",
"standard-version": "^4.4.0"
}, },
"jest": { "jest": {
"moduleNameMapper": { "moduleNameMapper": {
...@@ -164,6 +172,18 @@ ...@@ -164,6 +172,18 @@
"test": "NODE_ENV=test jest", "test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch", "test:watch": "NODE_ENV=test jest --watch",
"test:cover": "NODE_ENV=test jest --coverage", "test:cover": "NODE_ENV=test jest --coverage",
"build": "NODE_ENV=production pubsweet build" "build": "NODE_ENV=production pubsweet build",
"lint": "npm run lint:js && npm run lint:style",
"lint:js": "eslint 'app/**/*.{js,jsx}'",
"lint:style": "stylelint 'app/**/*.{js,jsx}'",
"precommit": "lint-staged",
"cz": "git-cz",
"commitmsg": "commitlint -e $GIT_PARAMS",
"release": "standard-version"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
} }
} }
...@@ -9,6 +9,13 @@ ...@@ -9,6 +9,13 @@
dependencies: dependencies:
"@babel/highlight" "7.0.0-beta.44" "@babel/highlight" "7.0.0-beta.44"
"@babel/code-frame@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8"
integrity sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==
dependencies:
"@babel/highlight" "^7.0.0"
"@babel/generator@7.0.0-beta.44": "@babel/generator@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42"
...@@ -20,6 +27,17 @@ ...@@ -20,6 +27,17 @@
source-map "^0.5.0" source-map "^0.5.0"
trim-right "^1.0.1" trim-right "^1.0.1"
"@babel/generator@^7.1.6":
version "7.1.6"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.1.6.tgz#001303cf87a5b9d093494a4bf251d7b5d03d3999"
integrity sha512-brwPBtVvdYdGxtenbQgfCdDPmtkmUBZPjUoK5SXJEBuHaA5BCubh9ly65fzXz7R6o5rA76Rs22ES8Z+HCc0YIQ==
dependencies:
"@babel/types" "^7.1.6"
jsesc "^2.5.1"
lodash "^4.17.10"
source-map "^0.5.0"
trim-right "^1.0.1"
"@babel/helper-function-name@7.0.0-beta.44": "@babel/helper-function-name@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd"
...@@ -29,6 +47,15 @@ ...@@ -29,6 +47,15 @@
"@babel/template" "7.0.0-beta.44" "@babel/template" "7.0.0-beta.44"
"@babel/types" "7.0.0-beta.44" "@babel/types" "7.0.0-beta.44"
"@babel/helper-function-name@^7.1.0":
version "7.1.0"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz#a0ceb01685f73355d4360c1247f582bfafc8ff53"
integrity sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==
dependencies:
"@babel/helper-get-function-arity" "^7.0.0"
"@babel/template" "^7.1.0"
"@babel/types" "^7.0.0"
"@babel/helper-get-function-arity@7.0.0-beta.44": "@babel/helper-get-function-arity@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15"
...@@ -36,6 +63,13 @@ ...@@ -36,6 +63,13 @@
dependencies: dependencies:
"@babel/types" "7.0.0-beta.44" "@babel/types" "7.0.0-beta.44"
"@babel/helper-get-function-arity@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3"
integrity sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==
dependencies:
"@babel/types" "^7.0.0"
"@babel/helper-module-imports@^7.0.0": "@babel/helper-module-imports@^7.0.0":
version "7.0.0" version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d"
...@@ -50,6 +84,13 @@ ...@@ -50,6 +84,13 @@
dependencies: dependencies:
"@babel/types" "7.0.0-beta.44" "@babel/types" "7.0.0-beta.44"
"@babel/helper-split-export-declaration@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz#3aae285c0311c2ab095d997b8c9a94cad547d813"
integrity sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==
dependencies:
"@babel/types" "^7.0.0"
"@babel/highlight@7.0.0-beta.44": "@babel/highlight@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.44.tgz#18c94ce543916a80553edcdcf681890b200747d5" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.44.tgz#18c94ce543916a80553edcdcf681890b200747d5"
...@@ -59,6 +100,20 @@ ...@@ -59,6 +100,20 @@
esutils "^2.0.2" esutils "^2.0.2"
js-tokens "^3.0.0" js-tokens "^3.0.0"
"@babel/highlight@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4"
integrity sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==
dependencies:
chalk "^2.0.0"
esutils "^2.0.2"
js-tokens "^4.0.0"
"@babel/parser@^7.0.0", "@babel/parser@^7.1.2", "@babel/parser@^7.1.6":
version "7.1.6"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.1.6.tgz#16e97aca1ec1062324a01c5a6a7d0df8dd189854"
integrity sha512-dWP6LJm9nKT6ALaa+bnL247GHHMWir3vSlZ2+IHgHgktZQx0L3Uvq2uAWcuzIe+fujRsYWBW2q622C5UvGK9iQ==
"@babel/runtime-corejs2@^7.0.0": "@babel/runtime-corejs2@^7.0.0":
version "7.1.5" version "7.1.5"
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.1.5.tgz#ec8341c9aec71d1139c985327314739d66b204a0" resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.1.5.tgz#ec8341c9aec71d1139c985327314739d66b204a0"
...@@ -84,6 +139,15 @@ ...@@ -84,6 +139,15 @@
babylon "7.0.0-beta.44" babylon "7.0.0-beta.44"
lodash "^4.2.0" lodash "^4.2.0"
"@babel/template@^7.1.0":
version "7.1.2"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.1.2.tgz#090484a574fef5a2d2d7726a674eceda5c5b5644"
integrity sha512-SY1MmplssORfFiLDcOETrW7fCLl+PavlwMh92rrGcikQaRq4iWPVH0MpwPpY3etVMx6RnDjXtr6VZYr/IbP/Ag==
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/parser" "^7.1.2"
"@babel/types" "^7.1.2"
"@babel/traverse@7.0.0-beta.44": "@babel/traverse@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966"
...@@ -100,6 +164,21 @@ ...@@ -100,6 +164,21 @@
invariant "^2.2.0" invariant "^2.2.0"
lodash "^4.2.0" lodash "^4.2.0"
"@babel/traverse@^7.0.0":
version "7.1.6"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.1.6.tgz#c8db9963ab4ce5b894222435482bd8ea854b7b5c"
integrity sha512-CXedit6GpISz3sC2k2FsGCUpOhUqKdyL0lqNrImQojagnUMXf8hex4AxYFRuMkNGcvJX5QAFGzB5WJQmSv8SiQ==
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/generator" "^7.1.6"
"@babel/helper-function-name" "^7.1.0"
"@babel/helper-split-export-declaration" "^7.0.0"
"@babel/parser" "^7.1.6"
"@babel/types" "^7.1.6"
debug "^4.1.0"
globals "^11.1.0"
lodash "^4.17.10"
"@babel/types@7.0.0-beta.44": "@babel/types@7.0.0-beta.44":
version "7.0.0-beta.44" version "7.0.0-beta.44"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757"
...@@ -109,7 +188,7 @@ ...@@ -109,7 +188,7 @@
lodash "^4.2.0" lodash "^4.2.0"
to-fast-properties "^2.0.0" to-fast-properties "^2.0.0"
"@babel/types@^7.0.0": "@babel/types@^7.0.0", "@babel/types@^7.1.2", "@babel/types@^7.1.6":
version "7.1.6" version "7.1.6"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1.6.tgz#0adb330c3a281348a190263aceb540e10f04bcce" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1.6.tgz#0adb330c3a281348a190263aceb540e10f04bcce"
integrity sha512-DMiUzlY9DSjVsOylJssxLHSgj6tWM9PRFJOGW/RaOglVOK9nzTxoOMfTfRQXGUCUQ/HmlG2efwC+XqUEJ5ay4w== integrity sha512-DMiUzlY9DSjVsOylJssxLHSgj6tWM9PRFJOGW/RaOglVOK9nzTxoOMfTfRQXGUCUQ/HmlG2efwC+XqUEJ5ay4w==
...@@ -118,6 +197,143 @@ ...@@ -118,6 +197,143 @@
lodash "^4.17.10" lodash "^4.17.10"
to-fast-properties "^2.0.0" to-fast-properties "^2.0.0"
"@commitlint/cli@^6.0.5":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-6.2.0.tgz#b2f8190eb08ccd78eea65114b864f3c65eca466a"
integrity sha1-svgZDrCMzXjuplEUuGTzxl7KRmo=
dependencies:
"@commitlint/format" "^6.1.3"
"@commitlint/lint" "^6.2.0"
"@commitlint/load" "^6.1.3"
"@commitlint/read" "^6.1.3"
babel-polyfill "6.26.0"
chalk "2.3.1"
get-stdin "5.0.1"
lodash.merge "4.6.1"
lodash.pick "4.4.0"
meow "4.0.0"
"@commitlint/config-conventional@^6.0.4":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-6.1.3.tgz#6c06eeae04c5ac789c3618df4d52aeda89ffb810"
integrity sha1-bAburgTFrHicNhjfTVKu2on/uBA=
"@commitlint/ensure@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-6.1.3.tgz#813b58c9fdfae15351b72fe646a162ebdb71ea2a"
integrity sha1-gTtYyf364VNRty/mRqFi69tx6io=
dependencies:
lodash.camelcase "4.3.0"
lodash.kebabcase "4.1.1"
lodash.snakecase "4.1.1"
lodash.startcase "4.4.0"
lodash.upperfirst "4.3.1"
"@commitlint/execute-rule@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-6.1.3.tgz#48928e736ef15e8710d332a15c7c899555e4e10b"
integrity sha1-SJKOc27xXocQ0zKhXHyJlVXk4Qs=
dependencies:
babel-runtime "6.26.0"
"@commitlint/format@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/format/-/format-6.1.3.tgz#414b9048a9af54587da96222717ba332347abde3"
integrity sha1-QUuQSKmvVFh9qWIicXujMjR6veM=
dependencies:
babel-runtime "^6.23.0"
chalk "^2.0.1"
"@commitlint/is-ignored@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/is-ignored/-/is-ignored-6.1.3.tgz#89c9b964a4d6228875a579c2bf552d003734b7e8"
integrity sha1-icm5ZKTWIoh1pXnCv1UtADc0t+g=
dependencies:
semver "5.5.0"
"@commitlint/lint@^6.2.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-6.2.0.tgz#d78f219745b77362e1b814d5f4cec2ecc3266619"
integrity sha1-148hl0W3c2LhuBTV9M7C7MMmZhk=
dependencies:
"@commitlint/is-ignored" "^6.1.3"
"@commitlint/parse" "^6.1.3"
"@commitlint/rules" "^6.2.0"
babel-runtime "^6.23.0"
lodash.topairs "4.3.0"
"@commitlint/load@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-6.1.3.tgz#1be40711397958f316cf40577a9c879a16f00a54"
integrity sha1-G+QHETl5WPMWz0BXepyHmhbwClQ=
dependencies:
"@commitlint/execute-rule" "^6.1.3"
"@commitlint/resolve-extends" "^6.1.3"
babel-runtime "^6.23.0"
cosmiconfig "^4.0.0"
lodash.merge "4.6.1"
lodash.mergewith "4.6.1"
lodash.pick "4.4.0"
lodash.topairs "4.3.0"
resolve-from "4.0.0"
"@commitlint/message@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/message/-/message-6.1.3.tgz#5e0473330c887016010c4c56270723b8001145d2"
integrity sha1-XgRzMwyIcBYBDExWJwcjuAARRdI=
"@commitlint/parse@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/parse/-/parse-6.1.3.tgz#ff1e4d92c27cd676812bb6b9d76cd8853c0d9407"
integrity sha1-/x5NksJ81naBK7a512zYhTwNlAc=
dependencies:
conventional-changelog-angular "^1.3.3"
conventional-commits-parser "^2.1.0"
"@commitlint/read@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/read/-/read-6.1.3.tgz#9f9d8db50fbf67f3000921657ed6efadb8cf9f1a"
integrity sha1-n52NtQ+/Z/MACSFlftbvrbjPnxo=
dependencies:
"@commitlint/top-level" "^6.1.3"
"@marionebl/sander" "^0.6.0"
babel-runtime "^6.23.0"
git-raw-commits "^1.3.0"
"@commitlint/resolve-extends@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-6.1.3.tgz#f45fcfe43860e05e38f3d94d54caed7ddaa41e25"
integrity sha1-9F/P5Dhg4F4489lNVMrtfdqkHiU=
dependencies:
babel-runtime "6.26.0"
lodash.merge "4.6.1"
lodash.omit "4.5.0"
require-uncached "^1.0.3"
resolve-from "^4.0.0"
resolve-global "^0.1.0"
"@commitlint/rules@^6.2.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-6.2.0.tgz#9391f65a16552822048d45a33ab6ce374686e06b"
integrity sha1-k5H2WhZVKCIEjUWjOrbON0aG4Gs=
dependencies:
"@commitlint/ensure" "^6.1.3"
"@commitlint/message" "^6.1.3"
"@commitlint/to-lines" "^6.1.3"
babel-runtime "^6.23.0"
"@commitlint/to-lines@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/to-lines/-/to-lines-6.1.3.tgz#7ab16a02caed8daa47e959269b96164610a29d0c"
integrity sha1-erFqAsrtjapH6Vkmm5YWRhCinQw=
"@commitlint/top-level@^6.1.3":
version "6.1.3"
resolved "https://registry.yarnpkg.com/@commitlint/top-level/-/top-level-6.1.3.tgz#126dcb6de1676342c69cd42261483f4478547299"
integrity sha1-Em3LbeFnY0LGnNQiYUg/RHhUcpk=
dependencies:
find-up "^2.1.0"
"@emotion/babel-utils@^0.6.4": "@emotion/babel-utils@^0.6.4":
version "0.6.10" version "0.6.10"
resolved "https://registry.yarnpkg.com/@emotion/babel-utils/-/babel-utils-0.6.10.tgz#83dbf3dfa933fae9fc566e54fbb45f14674c6ccc" resolved "https://registry.yarnpkg.com/@emotion/babel-utils/-/babel-utils-0.6.10.tgz#83dbf3dfa933fae9fc566e54fbb45f14674c6ccc"
...@@ -165,6 +381,15 @@ ...@@ -165,6 +381,15 @@
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.8.2.tgz#576ff7fb1230185b619a75d258cbc98f0867a8dc" resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.8.2.tgz#576ff7fb1230185b619a75d258cbc98f0867a8dc"
integrity sha512-rLu3wcBWH4P5q1CGoSSH/i9hrXs7SlbRLkoq9IGuoPYNGQvDJ3pt/wmOM+XgYjIDRMVIdkUWt0RsfzF50JfnCw== integrity sha512-rLu3wcBWH4P5q1CGoSSH/i9hrXs7SlbRLkoq9IGuoPYNGQvDJ3pt/wmOM+XgYjIDRMVIdkUWt0RsfzF50JfnCw==
"@marionebl/sander@^0.6.0":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
integrity sha1-GViWWHTyS8Ub5Ih1/rUNZC/EH3s=
dependencies:
graceful-fs "^4.1.3"
mkdirp "^0.5.1"
rimraf "^2.5.2"
"@pubsweet/component-polling-client@^0.0.3": "@pubsweet/component-polling-client@^0.0.3":
version "0.0.3" version "0.0.3"
resolved "https://registry.yarnpkg.com/@pubsweet/component-polling-client/-/component-polling-client-0.0.3.tgz#c59f2066c476587376980932e542c152629b6a32" resolved "https://registry.yarnpkg.com/@pubsweet/component-polling-client/-/component-polling-client-0.0.3.tgz#c59f2066c476587376980932e542c152629b6a32"
...@@ -269,6 +494,14 @@ ...@@ -269,6 +494,14 @@
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.0.tgz#8b63ab7f1aa5321248aad5ac890a485656dcea4d" resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.0.tgz#8b63ab7f1aa5321248aad5ac890a485656dcea4d"
integrity sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg== integrity sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg==
JSONStream@^1.0.4:
version "1.3.5"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==
dependencies:
jsonparse "^1.2.0"
through ">=2.2.7 <3"
abab@^1.0.3: abab@^1.0.3:
version "1.0.4" version "1.0.4"
resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e"
...@@ -730,6 +963,11 @@ array-flatten@1.1.1: ...@@ -730,6 +963,11 @@ array-flatten@1.1.1:
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
array-ify@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=
array-includes@^3.0.3: array-includes@^3.0.3:
version "3.0.3" version "3.0.3"
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d"
...@@ -1928,6 +2166,24 @@ babel-plugin-transform-undefined-to-void@^6.8.0, babel-plugin-transform-undefine ...@@ -1928,6 +2166,24 @@ babel-plugin-transform-undefined-to-void@^6.8.0, babel-plugin-transform-undefine
resolved "https://registry.yarnpkg.com/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz#be241ca81404030678b748717322b89d0c8fe280" resolved "https://registry.yarnpkg.com/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz#be241ca81404030678b748717322b89d0c8fe280"
integrity sha1-viQcqBQEAwZ4t0hxcyK4nQyP4oA= integrity sha1-viQcqBQEAwZ4t0hxcyK4nQyP4oA=
babel-polyfill@6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.23.0.tgz#8364ca62df8eafb830499f699177466c3b03499d"
integrity sha1-g2TKYt+Or7gwSZ9pkXdGbDsDSZ0=
dependencies:
babel-runtime "^6.22.0"
core-js "^2.4.0"
regenerator-runtime "^0.10.0"
babel-polyfill@6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=
dependencies:
babel-runtime "^6.26.0"
core-js "^2.5.0"
regenerator-runtime "^0.10.5"
babel-preset-babili@0.0.12, babel-preset-babili@^0.0.12: babel-preset-babili@0.0.12, babel-preset-babili@^0.0.12:
version "0.0.12" version "0.0.12"
resolved "https://registry.yarnpkg.com/babel-preset-babili/-/babel-preset-babili-0.0.12.tgz#74d79205d54feae6470bc84231da0b9ac9fc7de9" resolved "https://registry.yarnpkg.com/babel-preset-babili/-/babel-preset-babili-0.0.12.tgz#74d79205d54feae6470bc84231da0b9ac9fc7de9"
...@@ -2127,14 +2383,7 @@ babel-register@^6.26.0: ...@@ -2127,14 +2383,7 @@ babel-register@^6.26.0: