From 40dfac18bd98d64b013bd726f5c212aef0d9e4d1 Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 7 Sep 2021 09:52:16 -0400 Subject: [PATCH 1/2] import plotly.js-dist v2 instead of v1 plotly.js/dist --- package.json | 4 ++-- src/react-plotly.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 945785a..2f1835b 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "mkdirp": "^1.0.4", "nodemon": "^2.0.6", "onetime": "^5.1.2", - "plotly.js": "^1.35.0", + "plotly.js-dist": "^2.0.0", "prettier": "^2.2.1", "react": "^16.13.1", "react-addons-test-utils": "^15.6.0", @@ -69,7 +69,7 @@ "uglify-js": "^3.12.1" }, "peerDependencies": { - "plotly.js": ">1.34.0", + "plotly.js-dist": ">=2.0.0", "react": ">0.13.0" }, "browserify-global-shim": { diff --git a/src/react-plotly.js b/src/react-plotly.js index ac2794a..60ee933 100644 --- a/src/react-plotly.js +++ b/src/react-plotly.js @@ -1,5 +1,5 @@ import plotComponentFactory from './factory'; -import Plotly from 'plotly.js/dist/plotly'; +import Plotly from 'plotly.js-dist'; const PlotComponent = plotComponentFactory(Plotly); From 4ecac06b1af7152f6cca7d1d0c577b9c594c9b9b Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 7 Sep 2021 14:22:20 -0400 Subject: [PATCH 2/2] move plotly.js-dist to dependencies --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 2f1835b..3a97b5e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react" ], "dependencies": { + "plotly.js-dist": "^2.0.0", "prop-types": "^15.7.2" }, "devDependencies": { @@ -58,7 +59,6 @@ "mkdirp": "^1.0.4", "nodemon": "^2.0.6", "onetime": "^5.1.2", - "plotly.js-dist": "^2.0.0", "prettier": "^2.2.1", "react": "^16.13.1", "react-addons-test-utils": "^15.6.0", @@ -69,7 +69,6 @@ "uglify-js": "^3.12.1" }, "peerDependencies": { - "plotly.js-dist": ">=2.0.0", "react": ">0.13.0" }, "browserify-global-shim": {