Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"classnames": "^2.2.5",
"draft-js": "^0.10.4",
"draft-js-export-html": "github:plotly/draft-js-export-html",
"@plotly/draft-js-export-html": "1.2.0",
"draft-js-import-html": "^1.2.1",
"draft-js-utils": "^1.2.0",
"fast-isnumeric": "^1.1.1",
Expand Down Expand Up @@ -60,7 +60,7 @@
"postcss-combine-duplicated-selectors": "^3.1.4",
"postcss-custom-properties": "^6.2.0",
"postcss-remove-root": "^0.0.2",
"prettier": "^1.9.2",
"prettier": "1.12.1",
"react": "^16.0.0",
"react-ace": "^5.9.0",
"react-dom": "^16.0.0",
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/AnnotationAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const AnnotationFold = connectAnnotationToLayout(PlotlyFold);

class AnnotationAccordion extends Component {
render() {
const {layout: {annotations = []}, localize: _} = this.context;
const {
layout: {annotations = []},
localize: _,
} = this.context;
const {canAdd, children} = this.props;

const content =
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/ImageAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const ImageFold = connectImageToLayout(PlotlyFold);

class ImageAccordion extends Component {
render() {
const {layout: {images = []}, localize: _} = this.context;
const {
layout: {images = []},
localize: _,
} = this.context;
const {canAdd, children} = this.props;

const content =
Expand Down
4 changes: 3 additions & 1 deletion src/components/containers/RangeSelectorAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class RangeSelectorAccordion extends Component {
}

const {
fullContainer: {rangeselector: {buttons = []}},
fullContainer: {
rangeselector: {buttons = []},
},
localize: _,
} = this.context;
const {children} = this.props;
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/ShapeAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const ShapeFold = connectShapeToLayout(PlotlyFold);

class ShapeAccordion extends Component {
render() {
const {layout: {shapes = []}, localize: _} = this.context;
const {
layout: {shapes = []},
localize: _,
} = this.context;
const {canAdd, children} = this.props;

const content =
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/SliderAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const SliderFold = connectSliderToLayout(PlotlyFold);

class SliderAccordion extends Component {
render() {
const {layout: {sliders = []}, localize: _} = this.context;
const {
layout: {sliders = []},
localize: _,
} = this.context;
const {children} = this.props;

const content =
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/TransformAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const TransformFold = connectTransformToTrace(PlotlyFold);

class TransformAccordion extends Component {
render() {
const {fullContainer: {transforms = []}, localize: _} = this.context;
const {
fullContainer: {transforms = []},
localize: _,
} = this.context;
const {children} = this.props;

const transformTypes = [
Expand Down
5 changes: 4 additions & 1 deletion src/components/containers/UpdateMenuAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const UpdateMenuFold = connectUpdateMenuToLayout(PlotlyFold);

class UpdateMenuAccordion extends Component {
render() {
const {fullLayout: {updatemenus = []}, localize: _} = this.context;
const {
fullLayout: {updatemenus = []},
localize: _,
} = this.context;
const {children} = this.props;

const content =
Expand Down
8 changes: 6 additions & 2 deletions src/components/fields/derived.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ export const AnnotationArrowRef = connectToContainer(UnconnectedDropdown, {
if (!context.fullContainer) {
return;
}
const {fullContainer: {xref, yref}} = context;
const {
fullContainer: {xref, yref},
} = context;

let currentAxisRef;
if (props.attr === 'axref') {
Expand Down Expand Up @@ -363,7 +365,9 @@ export const AnnotationRef = connectToContainer(UnconnectedDropdown, {
if (!context.fullContainer) {
return;
}
const {fullContainer: {axref, ayref}} = context;
const {
fullContainer: {axref, ayref},
} = context;

let currentOffsetRef;
if (props.attr === 'xref') {
Expand Down
6 changes: 5 additions & 1 deletion src/components/widgets/TraceTypeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ class TraceTypeSelector extends Component {

export class TraceTypeSelectorButton extends Component {
render() {
const {handleClick, container, traceTypesConfig: {traces}} = this.props;
const {
handleClick,
container,
traceTypesConfig: {traces},
} = this.props;

const {localize: _} = this.context;

Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/text_editors/RichText/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Entity,
RichUtils,
} from 'draft-js';
import {stateToHTML} from 'draft-js-export-html';
import {stateToHTML} from '@plotly/draft-js-export-html';
import {stateFromHTML} from 'draft-js-import-html';

// Constants
Expand Down
4 changes: 3 additions & 1 deletion src/default_panels/GraphTransformsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const AggregationSection = connectAggregationToTransform(PlotlySection);

export class Aggregations extends Component {
render() {
const {fullContainer: {aggregations = []}} = this.context;
const {
fullContainer: {aggregations = []},
} = this.context;
const {localize: _} = this.context;
if (aggregations.length === 0) {
return null;
Expand Down