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

Commit 4a0beba

Browse files
committed
Merge branch 'dev' into master-1.17.0
2 parents 44949a4 + 9042e86 commit 4a0beba

File tree

107 files changed

+25088
-19249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+25088
-19249
lines changed

.builderrc

-3
This file was deleted.

.circleci/config.yml

+23-95
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
steps:
1010
- run: percy finalize --all
1111

12-
lint-unit-37: &lint-unit
12+
lint-unit-39: &lint-unit
1313
working_directory: ~/project
1414
docker:
15-
- image: circleci/python:3.7.9-stretch-node-browsers
15+
- image: circleci/python:3.9.2-buster-node-browsers
1616
auth:
1717
username: dashautomation
1818
password: $DASH_PAT_DOCKERHUB
1919
environment:
20-
PYTHON_VERSION: py37
20+
PYTHON_VERSION: py39
2121
steps:
2222
- checkout
2323
- run: echo $PYTHON_VERSION > ver.txt
@@ -41,16 +41,11 @@ jobs:
4141
set -eo pipefail
4242
npm ci
4343
npm run lint
44-
- run:
45-
name: 🔎 Unit Tests
46-
command: |
47-
set -eo pipefail
48-
npm run test-unit
4944
5045
lint-unit-36:
5146
<<: *lint-unit
5247
docker:
53-
- image: circleci/python:3.6.12-stretch-node-browsers
48+
- image: circleci/python:3.6.13-stretch-node-browsers
5449
auth:
5550
username: dashautomation
5651
password: $DASH_PAT_DOCKERHUB
@@ -67,15 +62,15 @@ jobs:
6762
environment:
6863
PYTHON_VERSION: py27
6964

70-
build-dash-37: &build-dash
65+
build-dash-39: &build-dash
7166
working_directory: ~/project
7267
docker:
73-
- image: circleci/python:3.7.9-stretch-node-browsers
68+
- image: circleci/python:3.9.2-buster-node-browsers
7469
auth:
7570
username: dashautomation
7671
password: $DASH_PAT_DOCKERHUB
7772
environment:
78-
PYTHON_VERSION: py37
73+
PYTHON_VERSION: py39
7974
steps:
8075
- checkout
8176
- run: echo $PYTHON_VERSION > ver.txt
@@ -97,11 +92,10 @@ jobs:
9792
command: |
9893
. venv/bin/activate && mkdir packages
9994
set -eo pipefail
100-
# build main dash
95+
# build main dash & renderer
10196
git clone --depth 1 https://github.com/plotly/dash.git dash-main
102-
cd dash-main && pip install -e .[dev] --progress-bar off && python setup.py sdist && mv dist/* ../packages/
103-
cd dash-renderer && npm ci && npm run build
104-
python setup.py sdist && mv dist/* ../../packages/ && cd ../..
97+
cd dash-main && pip install -e .[dev] --progress-bar off && renderer build
98+
python setup.py sdist && mv dist/* ../packages/ && cd ..
10599
# build html
106100
git clone --depth 1 https://github.com/plotly/dash-html-components.git
107101
cd dash-html-components && npm ci && npm run build
@@ -116,7 +110,7 @@ jobs:
116110
build-dash-36:
117111
<<: *build-dash
118112
docker:
119-
- image: circleci/python:3.6.12-stretch-node-browsers
113+
- image: circleci/python:3.6.13-stretch-node-browsers
120114
auth:
121115
username: dashautomation
122116
password: $DASH_PAT_DOCKERHUB
@@ -133,16 +127,17 @@ jobs:
133127
environment:
134128
PYTHON_VERSION: py27
135129

136-
test-37: &test
130+
test-39: &test
137131
working_directory: ~/project
138132
docker:
139-
- image: circleci/python:3.7.9-stretch-node-browsers
133+
- image: circleci/python:3.9.2-buster-node-browsers
140134
auth:
141135
username: dashautomation
142136
password: $DASH_PAT_DOCKERHUB
143137
environment:
144-
PYTHON_VERSION: py37
138+
PYTHON_VERSION: py39
145139
PERCY_PARALLEL_TOTAL: -1
140+
PERCY_ENABLE: 1
146141
parallelism: 3
147142
steps:
148143
- checkout
@@ -160,6 +155,7 @@ jobs:
160155
find . -name "dash_*.gz" | xargs pip install -I --progress-bar off --no-cache-dir
161156
pip install --no-cache-dir --progress-bar off main.tar.gz[dev,testing]
162157
pip list | grep dash | xargs pip show && cd ..
158+
echo $(python -V 2>&1) | grep 3. && python -m unittest tests/test_dash_import.py
163159
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
164160
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml ${TESTFILES}
165161
- store_artifacts:
@@ -172,7 +168,7 @@ jobs:
172168
test-36:
173169
<<: *test
174170
docker:
175-
- image: circleci/python:3.6.12-stretch-node-browsers
171+
- image: circleci/python:3.6.13-stretch-node-browsers
176172
auth:
177173
username: dashautomation
178174
password: $DASH_PAT_DOCKERHUB
@@ -191,80 +187,18 @@ jobs:
191187
PYTHON_VERSION: py27
192188
PERCY_ENABLE: 0
193189

194-
test-legacy-37: &test-legacy
195-
working_directory: ~/project
196-
docker:
197-
- image: circleci/python:3.7.9-stretch-node-browsers
198-
auth:
199-
username: dashautomation
200-
password: $DASH_PAT_DOCKERHUB
201-
environment:
202-
PYTHON_VERSION: py37
203-
PERCY_PARALLEL_TOTAL: -1
204-
parallelism: 2
205-
steps:
206-
- checkout
207-
- run: echo $PYTHON_VERSION > ver.txt
208-
- restore_cache:
209-
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
210-
- attach_workspace:
211-
at: ~/project
212-
- run:
213-
name: 🧪 Run Legacy Integration Tests
214-
command: |
215-
. venv/bin/activate && rm -rf dash_core_components && ls -la
216-
set -eo pipefail
217-
cd packages && mv dash-*.tar.gz main.tar.gz && ls -la
218-
find . -name "dash_*.gz" | xargs pip install -I --progress-bar off --no-cache-dir
219-
pip install --no-cache-dir --progress-bar off main.tar.gz[dev,testing]
220-
pip list | grep dash | xargs pip show && cd ..
221-
echo $(python -V 2>&1) | grep 3. && python -m unittest tests/test_dash_import.py
222-
TESTFILES=$(circleci tests glob "tests/test_integration_*.py" | circleci tests split --split-by=timings)
223-
pytest --durations=10 --junitxml=test-reports/junit_legacy.xml ${TESTFILES}
224-
- store_artifacts:
225-
path: test-reports
226-
- store_test_results:
227-
path: test-reports
228-
- store_artifacts:
229-
path: /tmp/dash_artifacts
230-
231-
test-legacy-36:
232-
<<: *test-legacy
233-
docker:
234-
- image: circleci/python:3.6.12-stretch-node-browsers
235-
auth:
236-
username: dashautomation
237-
password: $DASH_PAT_DOCKERHUB
238-
environment:
239-
PYTHON_VERSION: py36
240-
PERCY_ENABLE: 0
241-
test-legacy-27:
242-
<<: *test-legacy
243-
docker:
244-
- image: circleci/python:2.7.18-stretch-node-browsers
245-
auth:
246-
username: dashautomation
247-
password: $DASH_PAT_DOCKERHUB
248-
environment:
249-
PYTHON_VERSION: py27
250-
PERCY_ENABLE: 0
251-
252190
workflows:
253191
version: 2
254-
python3.7:
192+
python3.9:
255193
jobs:
256-
- lint-unit-37
257-
- build-dash-37
258-
- test-37:
259-
requires:
260-
- build-dash-37
261-
- test-legacy-37:
194+
- lint-unit-39
195+
- build-dash-39
196+
- test-39:
262197
requires:
263-
- build-dash-37
198+
- build-dash-39
264199
- percy-finalize:
265200
requires:
266-
- test-37
267-
- test-legacy-37
201+
- test-39
268202

269203
python3.6:
270204
jobs:
@@ -273,9 +207,6 @@ workflows:
273207
- test-36:
274208
requires:
275209
- build-dash-36
276-
- test-legacy-36:
277-
requires:
278-
- build-dash-36
279210

280211
python2.7:
281212
jobs:
@@ -284,6 +215,3 @@ workflows:
284215
- test-27:
285216
requires:
286217
- build-dash-27
287-
- test-legacy-27:
288-
requires:
289-
- build-dash-27

.eslintrc

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@
2121
"browser": true,
2222
"es6": true,
2323
"jasmine": true,
24-
"jest": true,
2524
"node": true
2625
},
27-
"globals": {
28-
"jest": true
29-
},
3026
"plugins": [
3127
"react",
3228
"import"
@@ -80,6 +76,7 @@
8076
"no-param-reassign": ["off"],
8177
"no-process-env": ["warn"],
8278
"no-proto": ["error"],
79+
"no-prototype-builtins": ["off"],
8380
"no-redeclare": ["error"],
8481
"no-return-assign": ["error"],
8582
"no-script-url": ["error"],

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = C901, E203, E266, E501, E731, W503
2+
ignore = C901, E203, E231, E266, E501, E731, W503
33
select = B,C,E,F,W,T4
44
per-file-ignores =
55
tests/*: E722, F811

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

.huskyrc

-5
This file was deleted.

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"arrowParens": "avoid",
23
"tabWidth": 4,
34
"singleQuote": true,
45
"bracketSpacing": false,

CHANGELOG.md

+39
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,45 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
6+
## [1.17.0] - 2021-07-09
7+
8+
### Fixed
9+
10+
- [#963](https://github.com/plotly/dash-core-components/pull/963) Fixes [#885](https://github.com/plotly/dash-core-components/issues/885)
11+
12+
This applies the fix from [#878](https://github.com/plotly/dash-core-components/pull/878) to the RangeSlider.
13+
It not only fixes the bug where the tooltips were visible when slider was not, but it also reduces the lag in the
14+
tooltip when the slider handles are moved.
15+
16+
### Updated
17+
- [#939](https://github.com/plotly/dash-core-components/pull/939) Upgrade Plotly.js to v2.2.1. Note that this is a major version upgrade to Plotly.js, however we are not treating this as a breaking change for DCC as the majority of breaking changes in Plotly.js do not affect the Dash API. The one exception is that several trace types that have long been deprecated are removed entirely.
18+
- [Major release 2.0.0](https://github.com/plotly/plotly.js/releases/tag/v2.0.0):
19+
- Stop exporting d3 as `Plotly.d3`, and remove many other deep pieces of the public API. This does not affect the `dcc.Graph` component, but if you make use of `Plotly` from the global scope in some other way you may be affected.
20+
- Drop the deprecated trace types `contourgl` and `area`, as well as legacy pre-`scatterpolar` polar attributes `bar.r`, `bar.t`, `scatter.r`, `scatter.t`, `layout.radialaxis`, `layout.angularaxis`. Use `scatterpolar`, `barpolar`, and `polar` subplots instead.
21+
- `heatmapgl` and `pointcloud` trace types, and the `transform` attribute are deprecated, and will be removed in a future release.
22+
- Increase CSP safety by removing function constructors. 3D plots still use function constructors, but if you place one of the non-3D bundles (including the new `strict` bundle) in your `assets` folder you will have no function constructors.
23+
- Remove "Aa" text in legends.
24+
- Default `hovermode` to "closest".
25+
- Default `textposition` to "auto" in `bar` traces. If you previously used the `bar.text` attribute for hover only, you will need to explicitly set `textposition="none"`.
26+
- Add `bar.marker.pattern`, `image.zsmooth`, and various other features and bugfixes.
27+
- [Feature release 2.1.0](https://github.com/plotly/plotly.js/releases/tag/v2.1.0):
28+
- New `icicle` trace type.
29+
- New `legendrank` trace attribute.
30+
- Several other additions and bug fixes.
31+
- [Feature release 2.2.0](https://github.com/plotly/plotly.js/releases/tag/v2.2.0):
32+
- Legend group titles
33+
- Half-year directive (`%h`) for date formatting
34+
- Several other bug fixes and performance improvements
35+
- [Patch release 2.2.1](https://github.com/plotly/plotly.js/releases/tag/v2.2.1) containing a security fix.
36+
37+
### Added
38+
- [#932](https://github.com/plotly/dash-core-components/pull/932) Adds a new copy to clipboard component.
39+
- [#948](https://github.com/plotly/dash-core-components/pull/948)] Adds `disabled_days` prop to `DatePickerRange` and `DatePickerSingle` components. With this prop you can specify days that should be made unselectable in the date picker, in addition to those that fall outside of the range specified by `min_date_allowed` and `max_date_allowed`.
40+
41+
### Changed
42+
- [#972](https://github.com/plotly/dash-core-components/pull/972) Updated R package vignettes and `dash-info.yaml` to regenerate examples without attaching now-deprecated core component packages (`dashHtmlComponents`, `dashCoreComponents`, or `dashTable`).
43+
544
## [1.16.0] - 2021-04-08
645
### Added
746
- [#863](https://github.com/plotly/dash-core-components/pull/863) Adds a new `Download` component. Along with this several utility functions are added to help construct the appropriate data format:

MANIFEST.in

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
include dash_core_components/dash_core_components.min.js
2-
include dash_core_components/dash_core_components.min.js.map
3-
include dash_core_components/dash_core_components-shared.js
4-
include dash_core_components/dash_core_components-shared.js.map
5-
include dash_core_components/async-*.js
6-
include dash_core_components/async-*.js.map
1+
include dash_core_components/*.js
2+
include dash_core_components/*.js.map
73
include dash_core_components/metadata.json
84
include dash_core_components/package-info.json
9-
include dash_core_components/plotly.min.js
105
include README.md
116
include LICENSE.txt
127
include package.json

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

33
export(dccChecklist)
4+
export(dccClipboard)
45
export(dccConfirmDialog)
56
export(dccConfirmDialogProvider)
67
export(dccDatePickerRange)

README.md

+1-16
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,13 @@ $ npm i --ignore-scripts && npm run build
2929
$ pip install -e .
3030
```
3131

32-
### Demo server
33-
34-
You can start up a demo development server to see a demo of the rendered
35-
components:
36-
37-
```sh
38-
$ npm start
39-
```
40-
41-
You have to maintain the list of components in `demo/Demo.react.js`.
42-
4332
### Code quality and tests
4433

4534
### To run integration tests (test_integration.py)
4635
You can run the Selenium integration tests with the
4736
```sh
4837
npm test
4938
```
50-
command, and the Jest unit tests with the
51-
```sh
52-
npm run test-unit
53-
```
5439

5540
### Testing your components in Dash
5641
1. Run the build watcher by running
@@ -88,4 +73,4 @@ See the [dash-component-boilerplate](https://github.com/plotly/dash-component-bo
8873

8974

9075
## Big Thanks
91-
Cross-browser Testing Powered by [![image](https://user-images.githubusercontent.com/1394467/64290307-e4c66600-cf33-11e9-85a1-12c82230a597.png)](https://saucelabs.com)
76+
Cross-browser Testing Powered by [![image](https://user-images.githubusercontent.com/1394467/64290307-e4c66600-cf33-11e9-85a1-12c82230a597.png)](https://saucelabs.com)

babel.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const presets = [
44
];
55

66
const plugins = [
7-
'@babel/plugin-proposal-nullish-coalescing-operator',
8-
'@babel/plugin-proposal-optional-chaining',
97
'@babel/plugin-syntax-dynamic-import'
108
];
119

0 commit comments

Comments
 (0)