Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit e28fd25

Browse files
Merge pull request #74 from brainhubeu/fix/renovate/npm-dependencies
[renovate] Update NPM dependencies
2 parents 8c55297 + 6ae5ca1 commit e28fd25

File tree

20 files changed

+2338
-1996
lines changed

20 files changed

+2338
-1996
lines changed

docs-www/.babelrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[
44
"@babel/preset-env",
55
{
6+
"loose": true,
67
"modules": false,
78
"shippedProposals": true,
89
"useBuiltIns": "usage"
@@ -11,7 +12,12 @@
1112
"@babel/react"
1213
],
1314
"plugins": [
14-
"@babel/plugin-proposal-class-properties"
15+
[
16+
"@babel/plugin-proposal-class-properties",
17+
{
18+
"loose": true
19+
}
20+
]
1521
],
1622
"env": {
1723
"production": {

docs-www/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@brainhubeu/gatsby-docs-kit-start",
33
"description": "Gatsby-Docs-Kit starter repository",
4-
"version": "0.0.49",
4+
"version": "0.0.50",
55
"author": "Brainhub",
66
"license": "MIT",
77
"scripts": {
@@ -15,29 +15,29 @@
1515
},
1616
"dependencies": {
1717
"@brainhubeu/gatsby-docs-kit": "3.0.8",
18-
"@brainhubeu/react-file-input": "^0.8.2",
18+
"@brainhubeu/react-file-input": "^0.9.3",
1919
"gatsby": "2.20.29",
2020
"gatsby-link": "2.3.0",
2121
"lodash": "^4.17.15",
2222
"react-fa": "^5.0.0"
2323
},
2424
"devDependencies": {
25-
"@babel/plugin-proposal-class-properties": "^7.8.3",
26-
"@babel/plugin-transform-react-constant-elements": "^7.9.0",
25+
"@babel/plugin-proposal-class-properties": "^7.10.1",
26+
"@babel/plugin-transform-react-constant-elements": "^7.10.1",
2727
"@babel/polyfill": "^7.8.7",
28-
"@babel/preset-env": "^7.9.5",
29-
"@babel/preset-react": "^7.9.4",
28+
"@babel/preset-env": "^7.10.2",
29+
"@babel/preset-react": "^7.10.1",
3030
"@babel/preset-stage-1": "^7.8.3",
31-
"@babel/register": "^7.9.0",
31+
"@babel/register": "^7.10.1",
3232
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
3333
"eslint": "^6.8.0",
34-
"eslint-config-brainhub": "^1.12.0",
34+
"eslint-config-brainhub": "^1.13.0",
3535
"gatsby-plugin-google-analytics": "2.2.2",
3636
"gh-pages": "^2.2.0",
3737
"react": "^16.13.1",
3838
"react-dom": "^16.13.1"
3939
},
4040
"peerDependencies": {
41-
"@babel/core": "^7.9.0"
41+
"@babel/core": "^7.10.2"
4242
}
4343
}

docs-www/yarn.lock

Lines changed: 100 additions & 421 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,57 +27,57 @@
2727
"author": "Brainhub",
2828
"license": "MIT",
2929
"dependencies": {
30-
"@fortawesome/fontawesome-free-solid": "^5.0.6",
31-
"browser-sync": "^2.18.12",
32-
"connect-history-api-fallback": "^1.3.0",
33-
"css-loader": "^0.28.4",
34-
"express": "^4.15.2",
30+
"@fortawesome/fontawesome-free-solid": "^5.0.13",
31+
"browser-sync": "^2.26.7",
32+
"connect-history-api-fallback": "^1.6.0",
33+
"css-loader": "^0.28.11",
34+
"express": "^4.17.1",
3535
"extract-text-webpack-plugin": "^3.0.2",
36-
"file-loader": "^1.1.5",
37-
"filesize": "^3.6.0",
38-
"history": "^4.7.2",
39-
"html-webpack-plugin": "^2.29.0",
36+
"file-loader": "^1.1.11",
37+
"filesize": "^3.6.1",
38+
"history": "^4.10.1",
39+
"html-webpack-plugin": "^2.30.1",
4040
"identity-obj-proxy": "^3.0.0",
41-
"jsdom": "^11.6.2",
42-
"json-loader": "^0.5.4",
43-
"mime-db": "^1.32.0",
44-
"node-sass": "^4.13.1",
45-
"postcss-loader": "^2.0.8",
46-
"prop-types": "^15.6.0",
47-
"react": "^16.1.1",
48-
"react-dom": "^16.1.1",
49-
"react-router": "^4.1.1",
50-
"react-router-dom": "^4.2.2",
51-
"react-test-renderer": "^16.1.1",
52-
"sass-loader": "^6.0.6",
53-
"style-loader": "^0.19.0",
54-
"superagent": "^3.8.1",
41+
"jsdom": "^11.12.0",
42+
"json-loader": "^0.5.7",
43+
"mime-db": "^1.44.0",
44+
"node-sass": "^4.14.1",
45+
"postcss-loader": "^2.1.6",
46+
"prop-types": "^15.7.2",
47+
"react": "^16.13.1",
48+
"react-dom": "^16.13.1",
49+
"react-router": "^4.3.1",
50+
"react-router-dom": "^4.3.1",
51+
"react-test-renderer": "^16.13.1",
52+
"sass-loader": "^6.0.7",
53+
"style-loader": "^0.23.1",
54+
"superagent": "^3.8.3",
5555
"url-loader": "^0.6.2",
56-
"webpack": "^3.8.1",
57-
"webpack-dev-middleware": "^1.11.0",
58-
"webpack-hot-middleware": "^2.20.0"
56+
"webpack": "^3.12.0",
57+
"webpack-dev-middleware": "^1.12.2",
58+
"webpack-hot-middleware": "^2.25.0"
5959
},
6060
"devDependencies": {
61-
"@babel/cli": "^7.8.4",
62-
"@babel/core": "^7.9.0",
63-
"@babel/plugin-proposal-class-properties": "^7.8.3",
61+
"@babel/cli": "^7.10.1",
62+
"@babel/core": "^7.10.2",
63+
"@babel/plugin-proposal-class-properties": "^7.10.1",
6464
"@babel/polyfill": "^7.8.7",
65-
"@babel/preset-env": "^7.9.5",
66-
"@babel/preset-react": "^7.9.4",
67-
"@babel/register": "^7.9.0",
68-
"@babel/plugin-transform-runtime": "^7.9.6",
69-
"autoprefixer": "^9.7.6",
65+
"@babel/preset-env": "^7.10.2",
66+
"@babel/preset-react": "^7.10.1",
67+
"@babel/register": "^7.10.1",
68+
"@babel/plugin-transform-runtime": "^7.10.1",
69+
"autoprefixer": "^9.8.0",
7070
"babel-eslint": "^10.1.0",
7171
"babel-loader": "^8.1.0",
7272
"babel-plugin-transform-react-constant-elements": "^6.23.0",
7373
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
74-
"chalk": "^2.3.0",
75-
"coveralls": "^3.0.11",
76-
"enzyme": "^3.3.0",
77-
"enzyme-adapter-react-16": "^1.1.1",
78-
"eslint": "^4.11.0",
79-
"eslint-config-brainhub": "^1.6.3",
80-
"eslint-watch": "^3.1.3",
74+
"chalk": "^2.4.2",
75+
"coveralls": "^3.1.0",
76+
"enzyme": "^3.11.0",
77+
"enzyme-adapter-react-16": "^1.15.2",
78+
"eslint": "^4.19.1",
79+
"eslint-config-brainhub": "^1.13.0",
80+
"eslint-watch": "^3.1.5",
8181
"jest": "^26.0.1"
8282
},
8383
"keywords": [

src/components/FileInfo/Metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Metadata = ({ extension, name, size, type }) => {
1010
return (
1111
<div className="brainhub-file-info__metadata">
1212
<div className="brainhub-file-info__metadata__info">
13-
<span className="brainhub-file-info__metadata__info_name">{name}</span>{extension ? `.${extension}`: ''} ({formattedSize}) {type}
13+
<span className="brainhub-file-info__metadata__info_name">{name}</span>{extension ? `.${extension}` : ''} ({formattedSize}) {type}
1414
</div>
1515
</div>
1616
);

src/components/ImageEditor/CanvasPrinter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ class CanvasPrinter extends PureComponent {
7171
};
7272

7373
const sourceSize = {
74-
width: (x1 - x0 ) * widthFactor,
75-
height: (y1 - y0 ) * heightFactor,
74+
width: (x1 - x0) * widthFactor,
75+
height: (y1 - y0) * heightFactor,
7676
};
7777

7878
return this.printImage(image, offset, sourceSize, scaleOptions || sourceSize);
@@ -108,7 +108,7 @@ class CanvasPrinter extends PureComponent {
108108
const baseWidth = (scaleOptions && scaleOptions.width) || naturalWidth;
109109
const baseHeight = (scaleOptions && scaleOptions.height) || naturalHeight;
110110

111-
const inverted = !(angle %2 === 0);
111+
const inverted = !(angle % 2 === 0);
112112

113113
const width = (inverted && baseHeight) || baseWidth;
114114
const height = (inverted && baseWidth) || baseHeight;
@@ -123,7 +123,7 @@ class CanvasPrinter extends PureComponent {
123123
const context = this.canvas.getContext('2d');
124124

125125
context.translate(baseWidth / 2, baseHeight / 2);
126-
context.rotate((angle * Math.PI) /2);
126+
context.rotate((angle * Math.PI) / 2);
127127
context.drawImage(
128128
image,
129129
offset.x,
@@ -144,7 +144,7 @@ class CanvasPrinter extends PureComponent {
144144
rotateImage(image, angle) {
145145
const { naturalWidth, naturalHeight } = image;
146146

147-
const inverted = !(angle %2 === 0);
147+
const inverted = !(angle % 2 === 0);
148148

149149
const width = (inverted && naturalHeight) || naturalWidth;
150150
const height = (inverted && naturalWidth) || naturalHeight;
@@ -155,7 +155,7 @@ class CanvasPrinter extends PureComponent {
155155
const context = this.canvas.getContext('2d');
156156

157157
context.translate(width / 2, height / 2);
158-
context.rotate((angle * Math.PI) /2);
158+
context.rotate((angle * Math.PI) / 2);
159159
context.drawImage(
160160
image,
161161
- naturalWidth / 2,

src/components/ImageEditor/CropTool.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class CropTool extends Component {
4545
this.saveEdition = this.saveEdition.bind(this);
4646
}
4747

48-
componentWillMount() {
48+
// eslint-disable-next-line camelcase
49+
UNSAFE_componentWillMount() {
4950
document.addEventListener('mousemove', this.onMouseMove, false);
5051
document.addEventListener('onmousemove', this.onMouseMove, false);
5152
document.addEventListener('mouseup', this.onMouseUp, false);
@@ -104,10 +105,10 @@ class CropTool extends Component {
104105
const { offsetLeft, offsetTop } = this.image;
105106

106107
return {
107-
top: `${100*(Math.min(y0, y1) + offsetTop) / height}%`,
108-
right: `${100*(width - Math.max(x0, x1) - offsetLeft) / width}%`,
109-
bottom: `${100*(height - Math.max(y0, y1) - offsetTop) / height}%`,
110-
left: `${100*(Math.min(x0, x1) + offsetLeft) / width}%`,
108+
top: `${100 * (Math.min(y0, y1) + offsetTop) / height}%`,
109+
right: `${100 * (width - Math.max(x0, x1) - offsetLeft) / width}%`,
110+
bottom: `${100 * (height - Math.max(y0, y1) - offsetTop) / height}%`,
111+
left: `${100 * (Math.min(x0, x1) + offsetLeft) / width}%`,
111112
};
112113
}
113114

@@ -154,7 +155,7 @@ class CropTool extends Component {
154155
resizeVertical: !!resizeVertical,
155156
x0: invertX ? state.x1 : state.x0,
156157
y0: invertY ? state.y1 : state.y0,
157-
x1: invertX ? state.x0: state.x1,
158+
x1: invertX ? state.x0 : state.x1,
158159
y1: invertY ? state.y0 : state.y1,
159160
}));
160161
}
@@ -177,7 +178,7 @@ class CropTool extends Component {
177178
}
178179

179180
onMouseMove(event) {
180-
const { isResizing, isMoving }= this.state;
181+
const { isResizing, isMoving } = this.state;
181182
if (isMoving) {
182183
this.handleMove(event);
183184
} else if (isResizing) {
@@ -187,7 +188,7 @@ class CropTool extends Component {
187188

188189
onMouseUp(event) {
189190
const { isResizing, isMoving } = this.state;
190-
if ( isResizing || isMoving) {
191+
if (isResizing || isMoving) {
191192
event.preventDefault();
192193

193194
this.setState(state => ({
@@ -249,13 +250,13 @@ class CropTool extends Component {
249250
className="brainhub-crop-tool__button brainhub-crop-tool__button--cancel"
250251
onClick={this.cancelEdition}
251252
>
252-
Cancel
253+
Cancel
253254
</button>
254255
<button
255256
className="brainhub-crop-tool__button brainhub-crop-tool__button--save"
256257
onClick={this.saveEdition}
257258
>
258-
Save image
259+
Save image
259260
</button>
260261
</div>
261262
</div>

src/components/ImageEditor/ImageRotator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class ImageRotator extends PureComponent {
2323
this.save = this.save.bind(this);
2424
}
2525

26-
componentWillReceiveProps(nextProps) {
26+
// eslint-disable-next-line camelcase
27+
UNSAFE_componentWillReceiveProps(nextProps) {
2728
const { image } = this.props;
2829

2930
if (nextProps.image !== image) {
@@ -81,7 +82,7 @@ class ImageRotator extends PureComponent {
8182
className="brainhub-image-rotator__button brainhub-image-rotator__button--save"
8283
onClick={this.save}
8384
>
84-
Save image
85+
Save image
8586
</button>
8687
<button
8788
className="brainhub-image-rotator__button brainhub-image-rotator__button--arrow"

src/components/ImageEditor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class ImageEditor extends PureComponent {
3030
this.onCropCanceled = this.onCropCanceled.bind(this);
3131
}
3232

33-
componentWillReceiveProps(nextProps) {
33+
// eslint-disable-next-line camelcase
34+
UNSAFE_componentWillReceiveProps(nextProps) {
3435
const { image } = this.props;
3536

3637
if (nextProps.image !== image) {

src/helpers/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const addPropsToFile = file => {
2424
};
2525

2626
export const handleChangeEvent = event => {
27-
if (!event.target || !event.target.files || !event.target.files.length ) {
27+
if (!event.target || !event.target.files || !event.target.files.length) {
2828
return null;
2929
}
3030

0 commit comments

Comments
 (0)