Skip to content

Commit

Permalink
Update react markdown (plotly#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Mar 19, 2019
1 parent 6ae0245 commit 6e8bea8
Show file tree
Hide file tree
Showing 7 changed files with 424 additions and 207 deletions.
3 changes: 3 additions & 0 deletions packages/dash-core-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- `restyleData` prop for `Graph` component [#483](https://github.com/plotly/dash-core-components/pull/483)

### Updated
- Upgraded `react-markdown` third party library from 2.4.5 to [4.0.6](https://github.com/rexxars/react-markdown/blob/master/CHANGELOG.md#406---2019-01-04)

### Fixed
- Fix Vertical Slider regression [#479](https://github.com/plotly/dash/issues/479)
- Fix Slider regression [#485](https://github.com/plotly/dash/issues/485)
Expand Down
21 changes: 14 additions & 7 deletions packages/dash-core-components/dash_core_components/Graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,25 @@ class Graph(Component):
- id (string; optional): The ID of this component, used to identify dash components
in callbacks. The ID needs to be unique across all of the
components in an app.
- clickData (dict; optional): Data from latest click event
- clickAnnotationData (dict; optional): Data from latest click annotation event
- hoverData (dict; optional): Data from latest hover event
- clickData (dict; optional): Data from latest click event. Read-only.
- clickAnnotationData (dict; optional): Data from latest click annotation event. Read-only.
- hoverData (dict; optional): Data from latest hover event. Read-only.
- clear_on_unhover (boolean; optional): If True, `clear_on_unhover` will clear the `hoverData` property
when the user "unhovers" from a point.
If False, then the `hoverData` property will be equal to the
data from the last point that was hovered over.
- selectedData (dict; optional): Data from latest select event
- selectedData (dict; optional): Data from latest select event. Read-only.
- relayoutData (dict; optional): Data from latest relayout event which occurs
when the user zooms or pans on the plot
- restyleData (dict; optional): Data from latest restyle event which occurs
when the user toggles a legend item
when the user zooms or pans on the plot or other
layout-level edits. Has the form `{<attr string>: <value>}`
describing the changes made. Read-only.
- restyleData (list; optional): Data from latest restyle event which occurs
when the user toggles a legend item, changes
parcoords selections, or other trace-level edits.
Has the form `[edits, indices]`, where `edits` is an object
`{<attr string>: <value>}` describing the changes made,
and `indices` is an array of trace indices that were edited.
Read-only.
- figure (dict; optional): Plotly `figure` object. See schema:
https://plot.ly/javascript/reference
Only supports `data` array and `layout` object.
Expand Down
14 changes: 7 additions & 7 deletions packages/dash-core-components/dash_core_components/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@
"name": "object"
},
"required": false,
"description": "Data from latest click event",
"description": "Data from latest click event. Read-only.",
"defaultValue": {
"value": "null",
"computed": false
Expand All @@ -1214,7 +1214,7 @@
"name": "object"
},
"required": false,
"description": "Data from latest click annotation event",
"description": "Data from latest click annotation event. Read-only.",
"defaultValue": {
"value": "null",
"computed": false
Expand All @@ -1225,7 +1225,7 @@
"name": "object"
},
"required": false,
"description": "Data from latest hover event",
"description": "Data from latest hover event. Read-only.",
"defaultValue": {
"value": "null",
"computed": false
Expand All @@ -1247,7 +1247,7 @@
"name": "object"
},
"required": false,
"description": "Data from latest select event",
"description": "Data from latest select event. Read-only.",
"defaultValue": {
"value": "null",
"computed": false
Expand All @@ -1258,18 +1258,18 @@
"name": "object"
},
"required": false,
"description": "Data from latest relayout event which occurs\nwhen the user zooms or pans on the plot",
"description": "Data from latest relayout event which occurs\nwhen the user zooms or pans on the plot or other\nlayout-level edits. Has the form `{<attr string>: <value>}`\ndescribing the changes made. Read-only.",
"defaultValue": {
"value": "null",
"computed": false
}
},
"restyleData": {
"type": {
"name": "object"
"name": "array"
},
"required": false,
"description": "Data from latest restyle event which occurs\nwhen the user toggles a legend item",
"description": "Data from latest restyle event which occurs\nwhen the user toggles a legend item, changes\nparcoords selections, or other trace-level edits.\nHas the form `[edits, indices]`, where `edits` is an object\n`{<attr string>: <value>}` describing the changes made,\nand `indices` is an array of trace indices that were edited.\nRead-only.",
"defaultValue": {
"value": "null",
"computed": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"react-dates": "^12.3.0",
"react-docgen": "^2.21.0",
"react-dropzone": "^4.1.2",
"react-markdown": "^2.4.5",
"react-markdown": "^4.0.6",
"react-select-fast-filter-options": "^0.2.3",
"react-syntax-highlighter": "^5.0.0",
"react-virtualized-select": "^3.1.3"
Expand Down
Loading

0 comments on commit 6e8bea8

Please sign in to comment.