Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 49fc1ea

Browse files
committed
Merge branch 'dev' into 674-map-uirevision
2 parents 1cb8da3 + c0687b3 commit 49fc1ea

32 files changed

+749
-341
lines changed

.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333
. venv/bin/activate
3434
set -eo pipefail
3535
npm ci
36-
npm run format:test
3736
npm run lint
38-
flake8 --ignore=E501,F401,F841,F811,W503 tests
3937
- run:
4038
name: 🔎 Unit Tests
4139
command: |

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = C901, E203, E266, E501, E731, W503
3+
select = B,C,E,F,W,T4
4+
per-file-ignores =
5+
tests/*: E722, F811

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom: https://plot.ly/products/consulting-and-oem/
1+
custom: https://plotly.com/products/consulting-and-oem/

.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint"
4+
}
5+
}

CHANGELOG.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,30 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66
### Changed
7-
- [#766](https://github.com/plotly/dash-core-components/pull/766) Update from React 16.8.6 to 16.13.0
87
- [#740](https://github.com/plotly/dash-core-components/pull/740) Keep components that are loading in the DOM, but not visible, as opposed to removing them entirely
98

109
### Fixed
1110
- [#740](https://github.com/plotly/dash-core-components/pull/740) Fixed bug in which mapbox `uirevision` was not behaving when inside a `dcc.Loading` component
1211

12+
## [1.9.0] - 2020-04-01
13+
### Changed
14+
- [#766](https://github.com/plotly/dash-core-components/pull/766) Update from React 16.8.6 to 16.13.0
15+
- [#768](https://github.com/plotly/dash-core-components/pull/768) Added title property to dcc.Link
16+
- [#776](https://github.com/plotly/dash-core-components/pull/776) Update dcc.Link to set href as children if children not defined. Makes href a required prop as well.
17+
- [#767](https://github.com/plotly/dash-core-components/pull/767) Updated dcc.Link to respond to click modifiers, and added a target prop.
18+
- [#774](https://github.com/plotly/dash-core-components/pull/774) Fixed dcc.Location firing callbacks for wrong property.
19+
- [772](https://github.com/plotly/dash-core-components/pull/772) Modified dcc.Link to work with absolute paths if refresh=True.
20+
21+
### Updated
22+
- [#784](https://github.com/plotly/dash-core-components/pull/784)
23+
- [Feature release of Plotly.js 1.53.0](https://github.com/plotly/plotly.js/releases/tag/v1.53.0) which contains:
24+
- `rangebreaks` on date axes [#4614](https://github.com/plotly/plotly.js/pull/4614)
25+
- (x|y) unified `hovermode` [#4620](https://github.com/plotly/plotly.js/pull/4620)
26+
- "hovered data" mode to `spikesnap` [#4665](https://github.com/plotly/plotly.js/pull/4665)
27+
- "full-json" export format to `Plotly.toImage` and `Plotly.dowloadImage` [#4593](https://github.com/plotly/plotly.js/pull/4593)
28+
- node.customdata and link.customdata in `sankey` traces [#4621](https://github.com/plotly/plotly.js/pull/4621)
29+
- `opacityscale` for `surface` traces [#4480](https://github.com/plotly/plotly.js/pull/4480)
30+
1331
## [1.8.1] -2020-02-27
1432
### Added
1533
- [#760](https://github.com/plotly/dash-core-components/pull/760) Added R examples to package help
@@ -503,7 +521,7 @@ See https://github.com/plotly/dash-core-components/pull/182.
503521
- A `responsive` plot config option
504522
- And various other features and bug fixes.
505523
506-
Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
524+
Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plotly.com/products/consulting-and-oem
507525
508526
## [0.28.3] - 2018-09-07
509527
### Changed
@@ -576,7 +594,7 @@ adding support for IDE autocomplete etc.
576594
- `polar` polygon grids
577595
- And many other features and bug fixes
578596
- Patch releases [1.39.1](https://github.com/plotly/plotly.js/releases/tag/v1.39.1), [1.38.3](https://github.com/plotly/plotly.js/releases/tag/v1.38.3), [1.38.2](https://github.com/plotly/plotly.js/releases/tag/v1.38.2), and [1.38.1](https://github.com/plotly/plotly.js/releases/tag/v1.38.1) containing numerous bug fixes.
579-
- Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
597+
- Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plotly.com/products/consulting-and-oem
580598
581599
## [0.23.0]
582600
### Updated
@@ -664,7 +682,7 @@ removed every time the graph was updated. They are now removed and reattached. #
664682
- Add official Spanish translation (locale `es`) [plotly.js#2249](https://github.com/plotly/plotly.js/pull/2249)
665683
- Add official French translation (locale `fr`) [plotly.js#2252](https://github.com/plotly/plotly.js/pull/2252)
666684
- And numerous other features and bug fixes
667-
- Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
685+
- Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plotly.com/products/consulting-and-oem
668686
669687
## [0.17.1] - 2017-01-18
670688
### Fixed
@@ -751,7 +769,7 @@ Big thanks to community contributor @Akronix!
751769
752770
## [0.14.0] - 2017-10-17
753771
### :sparkles: Added
754-
- An `Upload` component! :tada: See [https://plot.ly/dash/dash-core-components/upload](https://plot.ly/dash/dash-core-components/upload) for docs.
772+
- An `Upload` component! :tada: See [https://plotly.com/dash/dash-core-components/upload](https://plotly.com/dash/dash-core-components/upload) for docs.
755773
756774
## [0.13.0] - 2017-10-05
757775
### Updated
@@ -779,7 +797,7 @@ Big thanks to community contributor @Akronix!
779797
780798
## [0.12.5] - 2017-09-11
781799
### :bug: Fixed
782-
- The `Interval` component was constantly resetting its interval on every update. Initially reported in https://community.plot.ly/t/multiple-interval-object-in-a-single-page/5699/3
800+
- The `Interval` component was constantly resetting its interval on every update. Initially reported in https://community.plotly.com/t/multiple-interval-object-in-a-single-page/5699/3
783801
- Removed the used `label` property from the `Slider` component
784802
- Provide a more descriptive documentation for the `marks` property of the `Slider` component
785803
@@ -792,11 +810,11 @@ Big thanks to community contributor @Akronix!
792810
793811
## [0.12.3] - 2017-08-17
794812
### Fixed
795-
- Previously, the `max_date_allowed` could not be selected. This issue has been fixed, issue first reported in https://community.plot.ly/t/solved-datepicker-in-dash/4816/10
813+
- Previously, the `max_date_allowed` could not be selected. This issue has been fixed, issue first reported in https://community.plotly.com/t/solved-datepicker-in-dash/4816/10
796814
797815
## [0.12.2] - 2017-08-10
798816
### Fixed
799-
- Previously, when the `options` of a `dcc.Dropdown` would change, the options would no longer be searchable. That has been fixed. Issue was originally reported in https://community.plot.ly/t/dropdown-not-searching-values-when-typing/5323/3
817+
- Previously, when the `options` of a `dcc.Dropdown` would change, the options would no longer be searchable. That has been fixed. Issue was originally reported in https://community.plotly.com/t/dropdown-not-searching-values-when-typing/5323/3
800818
801819
## [0.12.1] - 2017-08-09
802820
### Fixed
@@ -834,7 +852,7 @@ Big thanks to community contributor @Akronix!
834852
835853
## [0.9.0] - 2017-07-28
836854
### Added
837-
- A `config` property of the `Graph` component that exposes the [plotly.js config properties](https://plot.ly/javascript/configuration-options/). Here's an example that hides 2 buttons and makes the elements in the graph "editable":
855+
- A `config` property of the `Graph` component that exposes the [plotly.js config properties](https://plotly.com/javascript/configuration-options/). Here's an example that hides 2 buttons and makes the elements in the graph "editable":
838856
```
839857
import dash
840858
import dash_core_components as dcc

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ Locally](README.md#testing-locally) section of README.md.
4646

4747
If your company wishes to sponsor development of open source dash components, please [get in touch][].
4848

49-
[Dash Core Components]: https://dash.plot.ly/dash-core-components
49+
[Dash Core Components]: https://dash.plotly.com/dash-core-components
5050
[Dash HTML Components]: https://github.com/plotly/dash-html-components
51-
[write your own components]: https://dash.plot.ly/plugins
51+
[write your own components]: https://dash.plotly.com/plugins
5252
[Dash Components Archetype]: https://github.com/plotly/dash-components-archetype
5353
[issues]: https://github.com/plotly/dash-core-components/issues
5454
[GitHub flow]: https://guides.github.com/introduction/flow/
5555
[eslintrc-react.json]: https://github.com/plotly/dash-components-archetype/blob/master/config/eslint/eslintrc-react.json
5656
[contributors]: https://github.com/plotly/dash-core-components/graphs/contributors
5757
[semantic versioning]: https://semver.org/
58-
[Dash Community Forum]: https://community.plot.ly/c/dash
58+
[Dash Community Forum]: https://community.plotly.com/c/dash
5959
[Confirmation Modal component]: https://github.com/plotly/dash-core-components/pull/211#issue-195280462
60-
[Confirmation Modal announcement]: https://community.plot.ly/t/announcing-dash-confirmation-modal-feedback-welcome/11627
61-
[get in touch]: https://plot.ly/products/consulting-and-oem
60+
[Confirmation Modal announcement]: https://community.plotly.com/t/announcing-dash-confirmation-modal-feedback-welcome/11627
61+
[get in touch]: https://plotly.com/products/consulting-and-oem

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ See the [Publishing New Components/Features](CONTRIBUTING.md#publishing-new-comp
8181

8282
See the [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate) repo for more information.
8383

84-
[Dash]: https://plot.ly/dash
84+
[Dash]: https://plotly.com/dash
8585
[Dash Component Boilerplate]: (https://github.com/plotly/dash-component-boilerplate)
8686
[NPM package authors]: https://www.npmjs.com/package/dash-core-components/access
8787
[PyPi]: https://pypi.python.org/pypi

dash_core_components_base/__init__.py

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""This package provides the core React component suite for Dash."""
2-
31
from __future__ import print_function as _
42

53
import json
@@ -29,10 +27,8 @@
2927
file=_sys.stderr)
3028
_sys.exit(1)
3129

32-
33-
from ._imports_ import *
34-
from ._imports_ import __all__
35-
30+
from ._imports_ import * # noqa: F401, F403
31+
from ._imports_ import __all__ # noqa: E402
3632

3733
_current_path = _os.path.dirname(_os.path.abspath(__file__))
3834

@@ -52,24 +48,24 @@
5248
_js_dist = []
5349

5450
_js_dist.extend([{
55-
'relative_package_path': 'async-{}.js'.format(async_resource),
56-
'external_url': (
57-
'https://unpkg.com/dash-core-components@{}'
58-
'/dash_core_components/async-{}.js'
59-
).format(__version__, async_resource),
60-
'namespace': 'dash_core_components',
61-
'async': True
62-
} for async_resource in async_resources])
51+
'relative_package_path': 'async-{}.js'.format(async_resource),
52+
'external_url': (
53+
'https://unpkg.com/dash-core-components@{}'
54+
'/dash_core_components/async-{}.js'
55+
).format(__version__, async_resource),
56+
'namespace': 'dash_core_components',
57+
'async': True
58+
} for async_resource in async_resources])
6359

6460
_js_dist.extend([{
65-
'relative_package_path': 'async-{}.js.map'.format(async_resource),
66-
'external_url': (
67-
'https://unpkg.com/dash-core-components@{}'
68-
'/dash_core_components/async-{}.js.map'
69-
).format(__version__, async_resource),
70-
'namespace': 'dash_core_components',
71-
'dynamic': True
72-
} for async_resource in async_resources])
61+
'relative_package_path': 'async-{}.js.map'.format(async_resource),
62+
'external_url': (
63+
'https://unpkg.com/dash-core-components@{}'
64+
'/dash_core_components/async-{}.js.map'
65+
).format(__version__, async_resource),
66+
'namespace': 'dash_core_components',
67+
'dynamic': True
68+
} for async_resource in async_resources])
7369

7470
_js_dist.extend([
7571
{
@@ -136,4 +132,4 @@
136132
])
137133

138134
for _component in __all__:
139-
setattr(locals()[_component], '_js_dist', _js_dist)
135+
setattr(locals()[_component], '_js_dist', _js_dist)

demo/Demo.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const markdown = \`
2828
2929
Learn more in our [Dash user guide](https://dash-docs.herokuapp.com).
3030
31-
![Image Alt Text](https://plot.ly/~chris/1638.png)
31+
![Image Alt Text](https://plotly.com/~chris/1638.png)
3232
3333
***
3434

0 commit comments

Comments
 (0)