Skip to content

Commit 94d2b3c

Browse files
authored
Merge pull request #474 from plotly/add-namespaced-module
Use namespaced npm module
2 parents d705bc3 + 53ceed4 commit 94d2b3c

File tree

12 files changed

+44
-14
lines changed

12 files changed

+44
-14
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"classnames": "^2.2.5",
1111
"draft-js": "^0.10.4",
12-
"draft-js-export-html": "github:plotly/draft-js-export-html",
12+
"@plotly/draft-js-export-html": "1.2.0",
1313
"draft-js-import-html": "^1.2.1",
1414
"draft-js-utils": "^1.2.0",
1515
"fast-isnumeric": "^1.1.1",
@@ -60,7 +60,7 @@
6060
"postcss-combine-duplicated-selectors": "^3.1.4",
6161
"postcss-custom-properties": "^6.2.0",
6262
"postcss-remove-root": "^0.0.2",
63-
"prettier": "^1.9.2",
63+
"prettier": "1.12.1",
6464
"react": "^16.0.0",
6565
"react-ace": "^5.9.0",
6666
"react-dom": "^16.0.0",

src/components/containers/AnnotationAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const AnnotationFold = connectAnnotationToLayout(PlotlyFold);
88

99
class AnnotationAccordion extends Component {
1010
render() {
11-
const {layout: {annotations = []}, localize: _} = this.context;
11+
const {
12+
layout: {annotations = []},
13+
localize: _,
14+
} = this.context;
1215
const {canAdd, children} = this.props;
1316

1417
const content =

src/components/containers/ImageAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const ImageFold = connectImageToLayout(PlotlyFold);
88

99
class ImageAccordion extends Component {
1010
render() {
11-
const {layout: {images = []}, localize: _} = this.context;
11+
const {
12+
layout: {images = []},
13+
localize: _,
14+
} = this.context;
1215
const {canAdd, children} = this.props;
1316

1417
const content =

src/components/containers/RangeSelectorAccordion.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class RangeSelectorAccordion extends Component {
1919
}
2020

2121
const {
22-
fullContainer: {rangeselector: {buttons = []}},
22+
fullContainer: {
23+
rangeselector: {buttons = []},
24+
},
2325
localize: _,
2426
} = this.context;
2527
const {children} = this.props;

src/components/containers/ShapeAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const ShapeFold = connectShapeToLayout(PlotlyFold);
88

99
class ShapeAccordion extends Component {
1010
render() {
11-
const {layout: {shapes = []}, localize: _} = this.context;
11+
const {
12+
layout: {shapes = []},
13+
localize: _,
14+
} = this.context;
1215
const {canAdd, children} = this.props;
1316

1417
const content =

src/components/containers/SliderAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const SliderFold = connectSliderToLayout(PlotlyFold);
88

99
class SliderAccordion extends Component {
1010
render() {
11-
const {layout: {sliders = []}, localize: _} = this.context;
11+
const {
12+
layout: {sliders = []},
13+
localize: _,
14+
} = this.context;
1215
const {children} = this.props;
1316

1417
const content =

src/components/containers/TransformAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const TransformFold = connectTransformToTrace(PlotlyFold);
88

99
class TransformAccordion extends Component {
1010
render() {
11-
const {fullContainer: {transforms = []}, localize: _} = this.context;
11+
const {
12+
fullContainer: {transforms = []},
13+
localize: _,
14+
} = this.context;
1215
const {children} = this.props;
1316

1417
const transformTypes = [

src/components/containers/UpdateMenuAccordion.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const UpdateMenuFold = connectUpdateMenuToLayout(PlotlyFold);
88

99
class UpdateMenuAccordion extends Component {
1010
render() {
11-
const {fullLayout: {updatemenus = []}, localize: _} = this.context;
11+
const {
12+
fullLayout: {updatemenus = []},
13+
localize: _,
14+
} = this.context;
1215
const {children} = this.props;
1316

1417
const content =

src/components/fields/derived.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ export const AnnotationArrowRef = connectToContainer(UnconnectedDropdown, {
324324
if (!context.fullContainer) {
325325
return;
326326
}
327-
const {fullContainer: {xref, yref}} = context;
327+
const {
328+
fullContainer: {xref, yref},
329+
} = context;
328330

329331
let currentAxisRef;
330332
if (props.attr === 'axref') {
@@ -363,7 +365,9 @@ export const AnnotationRef = connectToContainer(UnconnectedDropdown, {
363365
if (!context.fullContainer) {
364366
return;
365367
}
366-
const {fullContainer: {axref, ayref}} = context;
368+
const {
369+
fullContainer: {axref, ayref},
370+
} = context;
367371

368372
let currentOffsetRef;
369373
if (props.attr === 'xref') {

src/components/widgets/TraceTypeSelector.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ class TraceTypeSelector extends Component {
133133

134134
export class TraceTypeSelectorButton extends Component {
135135
render() {
136-
const {handleClick, container, traceTypesConfig: {traces}} = this.props;
136+
const {
137+
handleClick,
138+
container,
139+
traceTypesConfig: {traces},
140+
} = this.props;
137141

138142
const {localize: _} = this.context;
139143

0 commit comments

Comments
 (0)