Skip to content

Commit 8a3f8a2

Browse files
committed
Make importing individual components more reasonable
1 parent f99495a commit 8a3f8a2

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed

lib/index.js

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"description": "A React component for plotly.js charts",
66
"author": "Plotly, Inc.",
7-
"main": "lib/plotly.js-react-editor.js",
7+
"main": "lib/index.js",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/plotly/plotly.js-react-editor.git"

src/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import PlotlyReactEditor from "./plotly.js-react-editor";
2+
3+
import Field from "./components/field";
4+
import Select from "./components/select";
5+
import Panel from "./components/panel";
6+
import TraceAccordion from "./components/trace-accordion";
7+
8+
PlotlyReactEditor.Field = Field;
9+
PlotlyReactEditor.Select = Select;
10+
PlotlyReactEditor.Panel = Panel;
11+
PlotlyReactEditor.TraceAccordion = TraceAccordion;
12+
13+
export default PlotlyReactEditor;

0 commit comments

Comments
 (0)