Skip to content

Commit d0fe611

Browse files
refactor: upgrade webpack deps (#1939)
1 parent 5bd9be8 commit d0fe611

32 files changed

+217
-509
lines changed

package-lock.json

+122-407
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@
9494
"babel-plugin-transform-object-rest-spread": "6.26.0",
9595
"core-js": "3.6.5",
9696
"cross-env": "7.0.2",
97-
"css-loader": "3.5.2",
97+
"css-loader": "6.5.1",
9898
"eslint": "6.8.0",
9999
"eslint-plugin-jest": "23.8.2",
100100
"eslint-plugin-react": "7.19.0",
101101
"http-server": "14.0.0",
102102
"jest": "24.8.0",
103103
"madge": "5.0.1",
104104
"marked": "0.8.2",
105-
"node-sass": "6.0.0",
105+
"node-sass": "6.0.1",
106106
"null-loader": "4.0.1",
107107
"path-to-regexp": "3.2.0",
108108
"puppeteer": "3.0.0",
109109
"react-test-renderer": "16.13.1",
110110
"request": "2.88.2",
111111
"request-promise": "4.2.5",
112-
"sass-loader": "11.1.1",
112+
"sass-loader": "12.3.0",
113113
"semantic-release": "17.4.6",
114-
"style-loader": "1.1.2",
114+
"style-loader": "3.3.1",
115115
"svg-prep": "1.0.4",
116-
"webpack": "5.61.0",
116+
"webpack": "5.64.4",
117117
"webpack-cli": "4.9.1",
118118
"yaml": "1.10.0"
119119
},

src/components/BrowserCell/BrowserCell.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Parse from 'parse';
1313
import Pill from 'components/Pill/Pill.react';
1414
import React, { Component } from 'react';
1515
import styles from 'components/BrowserCell/BrowserCell.scss';
16-
import { unselectable } from 'stylesheets/base.scss';
16+
import baseStyles from 'stylesheets/base.scss';
1717
import Tooltip from '../Tooltip/PopperTooltip.react';
1818
import * as ColumnPreferences from 'lib/ColumnPreferences';
1919

@@ -34,7 +34,7 @@ export default class BrowserCell extends Component {
3434
let content = this.props.value;
3535
let isNewRow = this.props.row < 0;
3636
this.copyableValue = content;
37-
let classes = [styles.cell, unselectable];
37+
let classes = [styles.cell, baseStyles.unselectable];
3838
if (this.props.hidden) {
3939
content = this.props.value !== undefined || !isNewRow ? '(hidden)' : this.props.isRequired ? '(required)' : '(undefined)';
4040
classes.push(styles.empty);

src/components/Button/Button.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { unselectable } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
99
import PropTypes from 'lib/PropTypes';
1010
import React from 'react';
1111
import styles from 'components/Button/Button.scss';
@@ -14,7 +14,7 @@ const noop = () => {};
1414

1515
let Button = (props) => {
1616
const hasOnClick = props.onClick && !props.disabled;
17-
let classes = [styles.button, unselectable];
17+
let classes = [styles.button, baseStyles.unselectable];
1818
// if a button is disabled, that overrides any color selection
1919
if (props.disabled) {
2020
classes.push(styles.disabled);

src/components/CascadingView/CascadingView.react.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss'
9-
import PropTypes from 'lib/PropTypes';
10-
import React from 'react';
11-
import styles from 'components/CascadingView/CascadingView.scss';
8+
import baseStyles from 'stylesheets/base.scss'
9+
import PropTypes from 'lib/PropTypes';
10+
import React from 'react';
11+
import styles from 'components/CascadingView/CascadingView.scss';
1212

1313
export default class CascadingView extends React.Component {
1414
constructor() {
@@ -24,7 +24,7 @@ export default class CascadingView extends React.Component {
2424
href='javascript:;'
2525
role='button'
2626
className={styles.right}>
27-
<div className={[center, this.state.expanded ? styles.expanded : styles.collapsed].join(' ') } />
27+
<div className={[baseStyles.center, this.state.expanded ? styles.expanded : styles.collapsed].join(' ') } />
2828
</a>;
2929
let childrenContainer = this.state.expanded ? (<div className={styles.childrenContainer}>
3030
<div className={styles.children}>{children}</div>

src/components/DataBrowserHeader/DataBrowserHeader.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import PropTypes from 'lib/PropTypes';
99
import React from 'react';
1010
import styles from 'components/DataBrowserHeader/DataBrowserHeader.scss';
11-
import { unselectable } from 'stylesheets/base.scss';
11+
import baseStyles from 'stylesheets/base.scss';
1212
import { DragSource, DropTarget } from 'react-dnd';
1313

1414
const Types = {
@@ -55,7 +55,7 @@ const dataBrowserHeaderSource = {
5555
class DataBrowserHeader extends React.Component {
5656
render() {
5757
let { connectDragSource, connectDropTarget, name, type, targetClass, order, style, isDragging, isOver } = this.props;
58-
let classes = [styles.header, unselectable];
58+
let classes = [styles.header, baseStyles.unselectable];
5959
if (order) {
6060
classes.push(styles[order]);
6161
}

src/components/EmptyState/EmptyState.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import PropTypes from 'lib/PropTypes';
1111
import React from 'react';
1212
import styles from 'components/EmptyState/EmptyState.scss';
1313
import stylesButton from 'components/Button/Button.scss';
14-
import { center } from 'stylesheets/base.scss';
14+
import baseStyles from 'stylesheets/base.scss';
1515

1616
let ctaButton = (cta, action) => {
1717
if (cta) {
@@ -44,7 +44,7 @@ let EmptyState = ({
4444
secondaryCta='',
4545
secondaryAction=() => {},
4646
}) => (
47-
<div className={center}>
47+
<div className={baseStyles.center}>
4848
<div className={styles.icon}>
4949
<Icon
5050
width={80}

src/components/ExplorerActiveChartButton/ExplorerActiveChartButton.react.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import PropTypes from 'lib/PropTypes';
1414
import React from 'react';
1515
import ReactDOM from 'react-dom';
1616
import styles from 'components/ExplorerActiveChartButton/ExplorerActiveChartButton.scss';
17-
import { verticalCenter } from 'stylesheets/base.scss';
17+
import baseStyles from 'stylesheets/base.scss';
1818

1919
export default class ExplorerActiveChartButton extends React.Component {
2020
constructor() {
@@ -62,7 +62,7 @@ export default class ExplorerActiveChartButton extends React.Component {
6262
if (!this.props.disableDropdown) {
6363
dropdown = (
6464
<div
65-
className={[styles.rightArrow, verticalCenter].join(' ')}
65+
className={[styles.rightArrow, baseStyles.verticalCenter].join(' ')}
6666
onClick={() => {
6767
let position = Position.inDocument(this.node);
6868
let align = Directions.LEFT;
@@ -82,7 +82,7 @@ export default class ExplorerActiveChartButton extends React.Component {
8282
return (
8383
<div className={styles.button}>
8484
<div
85-
className={[styles.checkbox, verticalCenter].join(' ')}
85+
className={[styles.checkbox, baseStyles.verticalCenter].join(' ')}
8686
onClick={this.handleCheckbox.bind(this)}
8787
style={{
8888
backgroundColor: this.state.active ? this.props.color : null,

src/components/ExplorerQueryComposer/ExplorerQueryComposer.react.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import base from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
99
import Button from 'components/Button/Button.react';
1010
import ChromeDropdown from 'components/ChromeDropdown/ChromeDropdown.react';
1111
import DateTimeEntry from 'components/DateTimeEntry/DateTimeEntry.react';
@@ -584,12 +584,12 @@ export default class ExplorerQueryComposer extends React.Component {
584584
return (
585585
<div className={styles.queryComposer}>
586586
<div className={styles.header}>
587-
<div className={[base.center, styles.headerView].join(' ')}>
587+
<div className={[baseStyles.center, styles.headerView].join(' ')}>
588588
<h3 className={styles.headerLabel}>{query.name}</h3>
589589
</div>
590590
</div>
591591
<div className={styles.footer}>
592-
<div className={[base.center, styles.boxContent].join(' ')}>
592+
<div className={[baseStyles.center, styles.boxContent].join(' ')}>
593593
<Button
594594
width='100%'
595595
value='Dismiss query'
@@ -606,7 +606,7 @@ export default class ExplorerQueryComposer extends React.Component {
606606

607607
if (!isNew && this.state.editing) {
608608
headerView = (
609-
<div className={[base.center, styles.headerView].join(' ')}>
609+
<div className={[baseStyles.center, styles.headerView].join(' ')}>
610610
<input
611611
type='text'
612612
className={[styles.headerLabel, styles.textInput].join(' ')}
@@ -631,7 +631,7 @@ export default class ExplorerQueryComposer extends React.Component {
631631
);
632632
} else {
633633
headerView = (
634-
<div className={[base.center, styles.headerView].join(' ')}>
634+
<div className={[baseStyles.center, styles.headerView].join(' ')}>
635635
<h3 className={styles.headerLabel}>{ this.state.name || 'Build a custom query' }</h3>
636636
{ isNew ? null : <a
637637
href='javascript:;'

src/components/ExplorerQueryPicker/ExplorerQueryPicker.react.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import base from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
99
import Button from 'components/Button/Button.react';
1010
import CascadingView from 'components/CascadingView/CascadingView.react';
1111
import PropTypes from 'lib/PropTypes';
@@ -16,7 +16,7 @@ let ExplorerQueryPicker = ({ queries, onCompose, onSelect, onDelete }) => {
1616
return (
1717
<div className={styles.queryPicker}>
1818
<div className={styles.header}>
19-
<h3 className={base.verticalCenter}>Choose a query to visualize</h3>
19+
<h3 className={baseStyles.verticalCenter}>Choose a query to visualize</h3>
2020
</div>
2121
<div className={styles.queryContainer}>
2222
{queries.map((queryGroup) => {
@@ -68,7 +68,7 @@ let ExplorerQueryPicker = ({ queries, onCompose, onSelect, onDelete }) => {
6868
})}
6969
</div>
7070
<div className={styles.footer}>
71-
<div className={base.center} style={{ width:'95%' }}>
71+
<div className={baseStyles.center} style={{ width:'95%' }}>
7272
<Button
7373
width='100%'
7474
value='Build a custom query'

src/components/Label/Label.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { centered } from 'components/Field/Field.scss';
8+
import fieldStyles from 'components/Field/Field.scss';
99
import PropTypes from 'lib/PropTypes';
1010
import React from 'react';
1111
import styles from 'components/Label/Label.scss';
@@ -14,7 +14,7 @@ let Label = (props) => {
1414
let padding = (props.padding || 20) + 'px';
1515
return (
1616
<div
17-
className={[styles.label, centered].join(' ')}
17+
className={[styles.label, fieldStyles.centered].join(' ')}
1818
style={{ padding: '0 ' + padding }}>
1919
<div className={styles.text}>{props.text}</div>
2020
{props.description ? <div className={styles.description}>{props.description}</div> : null}

src/components/Loader/Loader.example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
99
import Loader from 'components/Loader/Loader.react';
1010
import React from 'react';
1111

@@ -21,7 +21,7 @@ export const demos = [
2121
margin: '10px auto',
2222
position: 'relative'
2323
}}>
24-
<Loader className={center} />
24+
<Loader className={baseStyles.center} />
2525
</div>
2626
);
2727
}

src/components/LoaderContainer/LoaderContainer.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
99
import Loader from 'components/Loader/Loader.react';
1010
import PropTypes from 'lib/PropTypes';
1111
import React from 'react';
@@ -19,7 +19,7 @@ const LoaderContainer = ({ loading, hideAnimation, children, solid = true }) =>
1919
{children}
2020
</div>
2121
<div className={[styles.loaderParent, loading ? styles.visible : '', solid ? styles.solid : ''].join(' ')}>
22-
{(hideAnimation || !loading) ? null : <Loader className={center}/>}
22+
{(hideAnimation || !loading) ? null : <Loader className={baseStyles.center}/>}
2323
</div>
2424
</div>
2525
);

src/components/LoginForm/LoginForm.react.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import CSRFInput from 'components/CSRFInput/CSRFInput.react';
9-
import Icon from 'components/Icon/Icon.react';
10-
import React from 'react';
11-
import styles from 'components/LoginForm/LoginForm.scss';
12-
import { verticalCenter } from 'stylesheets/base.scss';
8+
import CSRFInput from 'components/CSRFInput/CSRFInput.react';
9+
import Icon from 'components/Icon/Icon.react';
10+
import React from 'react';
11+
import styles from 'components/LoginForm/LoginForm.scss';
12+
import baseStyles from 'stylesheets/base.scss';
1313

1414
// Class-style component, because we need refs
1515
export default class LoginForm extends React.Component {
@@ -26,7 +26,7 @@ export default class LoginForm extends React.Component {
2626
<div className={styles.header}>{this.props.header}</div>
2727
{this.props.children}
2828
<div className={styles.footer}>
29-
<div className={verticalCenter} style={{ width: '100%' }}>
29+
<div className={baseStyles.verticalCenter} style={{ width: '100%' }}>
3030
{this.props.footer}
3131
</div>
3232
</div>

src/components/PermissionsDialog/PermissionsDialog.react.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import {
9-
unselectable,
10-
verticalCenter } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
119
import Button from 'components/Button/Button.react';
1210
import Checkbox from 'components/Checkbox/Checkbox.react';
1311
import Icon from 'components/Icon/Icon.react';
@@ -1155,7 +1153,7 @@ export default class PermissionsDialog extends React.Component {
11551153
}
11561154

11571155
render() {
1158-
let classes = [styles.dialog, unselectable];
1156+
let classes = [styles.dialog, baseStyles.unselectable];
11591157

11601158
// for 3-column CLP dialog
11611159
if (this.props.advanced) {
@@ -1300,7 +1298,7 @@ export default class PermissionsDialog extends React.Component {
13001298
onClick={() => this.props.onConfirm(this.outputPerms())}
13011299
/>
13021300
</div>
1303-
<div className={[styles.details, verticalCenter].join(' ')}>
1301+
<div className={[styles.details, baseStyles.verticalCenter].join(' ')}>
13041302
{this.props.details}
13051303
</div>
13061304
</div>

src/components/ProtectedFieldsDialog/ProtectedFieldsDialog.react.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import styles from 'components/ProtectedFieldsDialog/ProtectedFields
1919
import MultiSelect from 'components/MultiSelect/MultiSelect.react';
2020
import MultiSelectOption from 'components/MultiSelect/MultiSelectOption.react';
2121
import TrackVisibility from 'components/TrackVisibility/TrackVisibility.react';
22-
import {
23-
unselectable,
24-
verticalCenter } from 'stylesheets/base.scss';
22+
import baseStyles from 'stylesheets/base.scss';
2523

2624
let origin = new Position(0, 0);
2725
const intersectionMargin = '10px 0px 0px 20px';
@@ -446,7 +444,7 @@ export default class ProtectedFieldsDialog extends React.Component {
446444
}
447445

448446
render() {
449-
let classes = [styles.dialog, unselectable];
447+
let classes = [styles.dialog, baseStyles.unselectable];
450448

451449
let placeholderText = 'Role/User id/name * or authenticated\u2026';
452450

@@ -510,7 +508,7 @@ export default class ProtectedFieldsDialog extends React.Component {
510508
onClick={() => this.props.onConfirm(this.outputPerms())}
511509
/>
512510
</div>
513-
<div className={[styles.details, verticalCenter].join(' ')}>
511+
<div className={[styles.details, baseStyles.verticalCenter].join(' ')}>
514512
{this.props.details}
515513
</div>
516514
</div>

src/components/Range/Range.react.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { input } from 'components/Field/Field.scss';
9-
import PropTypes from 'lib/PropTypes';
10-
import React from 'react';
11-
import styles from 'components/Range/Range.scss';
8+
import fieldStyles from 'components/Field/Field.scss';
9+
import PropTypes from 'lib/PropTypes';
10+
import React from 'react';
11+
import styles from 'components/Range/Range.scss';
1212

1313
const DEFAULT_COLOR = '#fd9539';
1414

@@ -66,7 +66,7 @@ export default class Range extends React.Component {
6666
<div
6767
style={wrapperStyle}
6868
ref={this.metricsRef}
69-
className={[styles.range, input].join(' ')}>
69+
className={[styles.range, fieldStyles.input].join(' ')}>
7070
{tracker}
7171
<input
7272
type='range'

0 commit comments

Comments
 (0)