Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dash 3.0 #3222

Merged
merged 310 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
1b4d1a3
Add hook cleanup for tests.
T4rk1n Oct 8, 2024
8b68e62
Add more typing to hooks
T4rk1n Oct 9, 2024
fde59e8
yield before tests hook cleanup fixture
T4rk1n Oct 9, 2024
a02a747
Add generate_prop_type
T4rk1n Oct 11, 2024
ede084f
Merge branch 'dev' into feat/tsx-prop-types
T4rk1n Oct 16, 2024
9197e8f
Add message if proptypes.js not included
T4rk1n Oct 18, 2024
59234db
Add priority and final keyword to hooks.
T4rk1n Oct 21, 2024
89d6a93
Set cblb001 flaky
T4rk1n Oct 22, 2024
d405c72
Set entrypoint group to dash-hooks
T4rk1n Oct 24, 2024
d26c9d3
Add hooks for index modification and adding script and stylesheet res…
T4rk1n Oct 24, 2024
ee1ddea
Reset hooks dist on cleanup
T4rk1n Oct 25, 2024
d69a87c
Fix test async resources.
T4rk1n Oct 25, 2024
bd1c8f2
reset final hooks
T4rk1n Oct 25, 2024
d3d88c1
disable too-many-ancestors broken pylint rule
T4rk1n Oct 25, 2024
998171a
add clientside callback hook
T4rk1n Oct 25, 2024
b405e1b
Add more typing/comments to hooks.
T4rk1n Oct 29, 2024
2cf1685
Merge branch 'dev' into feat/tsx-prop-types
T4rk1n Oct 29, 2024
8a5ab9a
Improve performance of context components re-rendering
T4rk1n Nov 7, 2024
378fec3
Fix list as layout
T4rk1n Nov 7, 2024
5bc4dfc
remove app.run_server
T4rk1n Nov 1, 2024
aae1f99
Remove LogoutButton
T4rk1n Nov 1, 2024
a8c2690
Remove component_loader
T4rk1n Nov 1, 2024
00da064
Merge branch 'dash-3.0' into prop-typing
T4rk1n Nov 8, 2024
d13b343
Fix type assertion
T4rk1n Nov 8, 2024
9705ae5
Merge pull request #2276 from plotly/prop-typing
T4rk1n Nov 8, 2024
7e2f37e
Merge branch 'dash-3.0' into feat/hooks
T4rk1n Nov 8, 2024
5fe20c7
Merge pull request #3029 from plotly/feat/hooks
T4rk1n Nov 8, 2024
304c8f6
Merge branch 'dev' into feat/tsx-prop-types
T4rk1n Nov 12, 2024
f17ca63
Allow dev_package_path only
T4rk1n Nov 15, 2024
8930494
add dev_only
T4rk1n Nov 15, 2024
daccac8
Merge branch 'dash-3.0' into feat/tsx-prop-types
T4rk1n Nov 15, 2024
87afdd9
Merge branch 'dash-3.0' into deprecation-removals
T4rk1n Nov 15, 2024
963b17f
Remove dash-flow/dash-dangerous
T4rk1n Nov 18, 2024
d0c4c3c
rename most long -> background callback
T4rk1n Nov 18, 2024
9c525ca
Fix celery manager tests.
T4rk1n Nov 18, 2024
3c1fa70
Fix error assert
T4rk1n Nov 18, 2024
473b0c4
Merge pull request #3035 from plotly/feat/tsx-prop-types
T4rk1n Nov 19, 2024
94a9ddf
Merge branch 'dash-3.0' into deprecation-removals
T4rk1n Nov 19, 2024
b3fda4c
Remove old dash_html_components, dash_core_component, dash_table from…
T4rk1n Nov 19, 2024
5dc63d0
remove test_old_imports
T4rk1n Nov 19, 2024
142d227
More long->background rename
T4rk1n Nov 19, 2024
d026cd9
Fix test background validation
T4rk1n Nov 22, 2024
a32d03a
Merge branch 'dev' into dash-3.0
T4rk1n Nov 22, 2024
e45095f
Merge branch 'dash-3.0' into deprecation-removals
T4rk1n Nov 22, 2024
92e0e3d
Set react default version to 18.3.1
T4rk1n Nov 25, 2024
34b856e
Remove react 18 tests
T4rk1n Nov 25, 2024
19ae407
Fix AppProvider default props
T4rk1n Nov 25, 2024
2fb3a12
Fix dash-table tooltip ref
T4rk1n Nov 25, 2024
ac3776c
build
T4rk1n Nov 26, 2024
cb5b75b
Remove more defaultProps
T4rk1n Nov 26, 2024
54f5cd5
replace react-resize-detector
T4rk1n Nov 26, 2024
4a84603
Merge pull request #3078 from plotly/deprecation-removals
T4rk1n Nov 27, 2024
47e7606
Handle window resize when responsive
T4rk1n Nov 28, 2024
577651b
Handle window resize when responsive
T4rk1n Nov 28, 2024
0ba919e
refactor dash table refs to createRef
T4rk1n Dec 2, 2024
dd4bfd2
fix col ref
T4rk1n Dec 2, 2024
fcab0d1
Add back r1
T4rk1n Dec 2, 2024
71bb86a
Update react-fontawesome
T4rk1n Dec 2, 2024
0800904
build
T4rk1n Dec 2, 2024
9ef0f6c
sleep before slider snapshot
T4rk1n Dec 3, 2024
ada24e5
sleep longer
T4rk1n Dec 5, 2024
65ffabd
memo wrapper, merge loading state selector, add back _dashprivate_layout
T4rk1n Dec 10, 2024
011ded9
Add get_props, extras to wrapper, set_props takes path
T4rk1n Dec 12, 2024
603cbce
get_props -> get_layout
T4rk1n Dec 13, 2024
e1cbc68
take loading_state out of selector
T4rk1n Dec 16, 2024
5424fe0
Rework loading component
T4rk1n Dec 19, 2024
1a56d4f
Add useLoading
T4rk1n Dec 19, 2024
1f56612
useLoading in html components
T4rk1n Dec 19, 2024
9741a69
Add LoadingDiv
T4rk1n Dec 19, 2024
957ec39
replace loading for data-dash-is-loading
T4rk1n Dec 20, 2024
19167a8
Fix forwardRef for LoadingElement
T4rk1n Jan 7, 2025
84700ea
Fix children not undefined rcap003
T4rk1n Jan 7, 2025
9cc9627
Fix multioutput loading
T4rk1n Jan 8, 2025
d5dddff
fix rdarp001
T4rk1n Jan 8, 2025
61b8ea6
Fix clipboard context
T4rk1n Jan 9, 2025
e616001
Fix confirm dialog provider
T4rk1n Jan 9, 2025
9954a2a
Fix loading target selector
T4rk1n Jan 9, 2025
e023e4f
Takes extras props directly from DashWrapper rest props
T4rk1n Jan 10, 2025
2eb3a4c
Add very basic notifications
marthacryan Jan 13, 2025
232c3c0
Refactor wrapper selectors to use path sums as equality comparator
T4rk1n Jan 14, 2025
5a68ecd
fix cbmo002
T4rk1n Jan 15, 2025
2bcb14d
Refactor TextArea to functional + new loading
T4rk1n Jan 16, 2025
f0b4908
Refactor upload to LoadingElement
T4rk1n Jan 16, 2025
fbdd794
Remove leftover loading_state from graph.
T4rk1n Jan 16, 2025
c520a82
Fix table loading.
T4rk1n Jan 17, 2025
5dce073
Fix missing export for Textarea.
T4rk1n Jan 20, 2025
71e70c3
Fix table.
T4rk1n Jan 20, 2025
b00668e
Merge branch 'dev' into fix/wrapper
T4rk1n Jan 21, 2025
6317702
Merge branch 'dash-3.0' into default-react-18
T4rk1n Jan 21, 2025
e0e3ad9
build
T4rk1n Jan 21, 2025
9a58dc6
Merge branch 'default-react-18' of github.com:plotly/dash into defaul…
T4rk1n Jan 21, 2025
0f07e88
build
T4rk1n Jan 21, 2025
d0d9540
Merge pull request #3093 from plotly/default-react-18
T4rk1n Jan 22, 2025
a1f6b5e
Merge branch 'dash-3.0' into fix/wrapper
T4rk1n Jan 22, 2025
6af9973
Take persistence from dashPersistence on element
T4rk1n Jan 22, 2025
8b3c153
Remove defaultProps from internal DataTable.
T4rk1n Jan 22, 2025
9874f8a
Mock dash_component_api in table tests.
T4rk1n Jan 22, 2025
2e77bdf
Update the sample URL
marthacryan Jan 23, 2025
51dfddf
build
T4rk1n Jan 23, 2025
0e38ed2
Merge branch 'dev' into dash-3.0
T4rk1n Jan 23, 2025
eb65854
Merge branch 'dash-3.0' into fix/wrapper
T4rk1n Jan 23, 2025
664e6dd
Fix tab new loading
T4rk1n Jan 24, 2025
5194e18
Move getLayout to dash_component_api
T4rk1n Jan 24, 2025
efbb5b1
fix prop typing generation
T4rk1n Jan 27, 2025
3249e22
fix table generation
T4rk1n Jan 27, 2025
00795e3
Change debug menu to use text
marthacryan Jan 28, 2025
8b3f422
Merge pull request #3066 from plotly/fix/wrapper
T4rk1n Jan 28, 2025
5b81f2c
Update changelog
T4rk1n Jan 28, 2025
b2dedd0
Update CHANGELOG.md
T4rk1n Jan 28, 2025
500e541
Dash version 3.0.0rc1
T4rk1n Jan 28, 2025
b711247
Merge pull request #3135 from plotly/dash-3.0-rc1
T4rk1n Jan 28, 2025
eba85ad
Add more style from the figma design
marthacryan Jan 28, 2025
200e30f
Add in children that had been deleted
marthacryan Jan 28, 2025
91e02dd
Add more style and update wording of buttons
marthacryan Jan 29, 2025
4ddda2f
Fix typing for date props
T4rk1n Jan 29, 2025
dade5c4
Fix id typing
T4rk1n Jan 29, 2025
62d2907
Update changelog
T4rk1n Jan 29, 2025
dc5aaae
Add icons for error and callback graph and clean up styles
marthacryan Jan 29, 2025
b710c65
Update logic for remind me later/skip this version
marthacryan Jan 29, 2025
b6b421e
Update style of icons
marthacryan Jan 29, 2025
4cdd7bf
Add better sizing of errors, use Inter font family
marthacryan Jan 31, 2025
79b27be
Apply more style updates
marthacryan Feb 3, 2025
3172428
undo pulling of font
marthacryan Feb 3, 2025
cd09ee4
Address review
marthacryan Feb 3, 2025
fb8e6b8
Remove unused files
marthacryan Feb 3, 2025
3ab3529
Move upgrade related css into separate file
marthacryan Feb 4, 2025
3d19705
Update to new endpoint name
marthacryan Feb 4, 2025
7caf01e
Merge branch 'dev' into dash-3.0
T4rk1n Feb 5, 2025
5cc988a
remove extra defaultProps from Dropdown
T4rk1n Jan 31, 2025
e3e2f5f
Merge branch 'dash-3.0' into fix/dates-types-id
T4rk1n Feb 5, 2025
eada77b
regen metadata_test.py
T4rk1n Feb 5, 2025
3b7dba8
Merge branch 'fix/dates-types-id' of github.com:plotly/dash into fix/…
T4rk1n Feb 5, 2025
e77aafb
Merge pull request #3142 from plotly/fix/dates-types-id
T4rk1n Feb 5, 2025
2731a04
Fix typing List to Sequence
T4rk1n Feb 5, 2025
c150a49
Add custom prop typing for component libs
T4rk1n Feb 6, 2025
e98cddc
Update changelog
T4rk1n Feb 7, 2025
eba4ccf
Merge pull request #3152 from plotly/custom-typing-generator
T4rk1n Feb 7, 2025
9e5c334
Fix hook priority
T4rk1n Feb 7, 2025
23e7535
Add comment on priority min
T4rk1n Feb 7, 2025
09dc4a9
Merge pull request #3157 from plotly/fix-hook-priority
T4rk1n Feb 7, 2025
b3ed248
Add opt out dialog
marthacryan Feb 8, 2025
f6a3fdb
Add basic caching and minor updates to UI
marthacryan Feb 10, 2025
6d558e1
Remove opt out dialog
marthacryan Feb 10, 2025
9da9528
Add back closing error container button and remove unused vars
marthacryan Feb 13, 2025
f60d05a
fix progress and cancel callback typing
T4rk1n Feb 13, 2025
fe3c5c3
Remove duplicated defaultProps from dcc fragments
T4rk1n Feb 13, 2025
328fbb9
Add missing entries to dash.__all__
T4rk1n Feb 13, 2025
1a6b59a
set navg003 flaky
T4rk1n Feb 13, 2025
c72b3b0
fix incorrect behavior when notifications are dismissed
marthacryan Feb 13, 2025
308d737
Merge with dev
marthacryan Feb 13, 2025
e949c96
use wait_for the title update in pare001
T4rk1n Feb 13, 2025
71cbc06
grva008 flaky
T4rk1n Feb 13, 2025
c2cd4a2
Merge pull request #3164 from plotly/fix-bg-typing
T4rk1n Feb 13, 2025
105c7ad
Add usage of link from server and send python / ddk version to server
marthacryan Feb 14, 2025
5f3199c
Use correct config name
marthacryan Feb 14, 2025
5e52fb0
add plotly version to data sent to server
marthacryan Feb 15, 2025
6418096
Add ExternalWrapper
T4rk1n Feb 17, 2025
acd2a2a
Merge pull request #3170 from plotly/api-render
T4rk1n Feb 18, 2025
5ec2514
Update method of accessing version to prevent circular imports
marthacryan Feb 18, 2025
e1f1a5e
Dash version 3.0.0rc2
T4rk1n Feb 18, 2025
3541ee4
Merge pull request #3172 from plotly/dash-3.0.0rc2
T4rk1n Feb 18, 2025
915fb58
Update dash/dash-renderer/src/components/error/menu/VersionInfo.react.js
marthacryan Feb 18, 2025
4e8ca6a
Fix unsafe access of newDashVersion
marthacryan Feb 18, 2025
f4404f4
Merge branch 'dash-3.0' into update-notification
T4rk1n Feb 19, 2025
86412ca
Remove non-numeric characters from version strings
marthacryan Feb 19, 2025
57b270f
Merge branch 'update-notification' of github.com:plotly/dash into upd…
marthacryan Feb 19, 2025
575bf33
add optionally removing a dot before non-numeric characters
marthacryan Feb 19, 2025
acf6e6e
Add class for error count
marthacryan Feb 19, 2025
dc40796
Fix failing integration tests
marthacryan Feb 19, 2025
bd45963
Reset lint changes to tests and remove opening debug menu in hot relo…
marthacryan Feb 19, 2025
b52f17b
undo more lint changes to tests
marthacryan Feb 19, 2025
4398203
Change arial to verdana and always use sans serif verdana
marthacryan Feb 19, 2025
a924a21
Reset lint changes to tests
marthacryan Feb 19, 2025
2abd161
Catch errors when fetch fails
marthacryan Feb 19, 2025
278fd2d
Update classname for testing
marthacryan Feb 19, 2025
058b193
Improve handling of errors in fetch call
marthacryan Feb 19, 2025
5d73d00
Delete more steps that open the debug menu in tests
marthacryan Feb 19, 2025
e716a0b
Remove checking for element that has been removed
marthacryan Feb 19, 2025
216dcf8
Expose stringifyId
T4rk1n Feb 20, 2025
0c3c400
Fix dark mode color issues
marthacryan Feb 20, 2025
e44f228
Improved error for removed attributes
T4rk1n Feb 20, 2025
1cd9c05
Fix ExternalWrapper children render
T4rk1n Feb 20, 2025
7abf17e
Merge pull request #3121 from plotly/update-notification
marthacryan Feb 20, 2025
64627a5
Merge branch 'dash-3.0' into external-children
T4rk1n Feb 21, 2025
f397f8a
Fix ExternalWrapper pattern matching ids.
T4rk1n Feb 21, 2025
0c01a79
Merge branch 'external-children' of github.com:plotly/dash into exter…
T4rk1n Feb 21, 2025
61ff4f6
build
T4rk1n Feb 21, 2025
707399b
Add custom_data hook
T4rk1n Feb 21, 2025
b415d22
Add docstring to custom_data hook.
T4rk1n Feb 21, 2025
901f03a
Update changelog
T4rk1n Feb 21, 2025
4336b34
Version 3.0.0rc3
T4rk1n Feb 21, 2025
0049cab
Merge pull request #3175 from plotly/external-children
T4rk1n Feb 21, 2025
92d61b3
Update CSS for dash version update
marthacryan Feb 21, 2025
c61a900
Merge pull request #3179 from plotly/upgrade-css
marthacryan Feb 21, 2025
5f00811
Fix font family issue in dialog
marthacryan Feb 21, 2025
3b7785b
Merge pull request #3180 from plotly/upgrade-css
marthacryan Feb 21, 2025
ff94771
Fix font overrides in debug menu
marthacryan Feb 21, 2025
77b0b0e
Add additional css override for font
marthacryan Feb 21, 2025
517346f
Add additional css override for font
marthacryan Feb 21, 2025
bba1f9d
Move font family courier into only error contents and not error title
marthacryan Feb 21, 2025
43af268
Merge pull request #3181 from plotly/upgrade-css
marthacryan Feb 21, 2025
0daf684
Fix missing id from ExternalWrapper.
T4rk1n Feb 24, 2025
10a6d97
Refactor ExternalWrapper props
T4rk1n Feb 24, 2025
9441873
build
T4rk1n Feb 24, 2025
6cf16b5
build
T4rk1n Feb 24, 2025
a9a5df5
Merge pull request #3183 from plotly/fix-external-wrapper-id
T4rk1n Feb 24, 2025
306c137
Fix color issue in dark mode
marthacryan Feb 24, 2025
daea0f7
Merge pull request #3184 from plotly/upgrade-css
marthacryan Feb 24, 2025
8eb95c9
Small padding changes to debug menu
marthacryan Feb 24, 2025
1d79719
Fix problems with stylesheet that is imported in docs
marthacryan Feb 25, 2025
f0f18bf
Merge pull request #3188 from plotly/upgrade-css
marthacryan Feb 25, 2025
bca9cb6
Change request to upgrade server to GET
marthacryan Feb 26, 2025
3c3f4a1
Add cors mode to prevent cors failure
marthacryan Feb 26, 2025
41c3de9
Lint
marthacryan Feb 26, 2025
1b4787d
Add silence_upgrade_notification flag to prevent upgrade notification…
marthacryan Feb 27, 2025
e431b51
Change name of flag for accuracy
marthacryan Feb 27, 2025
0c15c6d
fix incorrect setting of options for run
marthacryan Feb 27, 2025
e19e743
Add flag to more tests to prevent failures in CI
marthacryan Feb 27, 2025
ec924b4
Add flag to more tests to prevent failures in CI
marthacryan Feb 27, 2025
bf8a740
Add flag to more tests to prevent failures in CI
marthacryan Feb 27, 2025
ed9a8ad
Add flag to more tests to prevent failures in CI
marthacryan Feb 27, 2025
129dec0
Fix unsafe access of body.link
marthacryan Feb 28, 2025
4b2a31b
Fix unsafe access of body.link
marthacryan Feb 28, 2025
7c23dea
Lint
marthacryan Feb 28, 2025
e7130f2
Move catch to the end of the logic for version request handlers
marthacryan Mar 3, 2025
b2d1856
Update test to remove incorrect flag passed to start_server
marthacryan Mar 3, 2025
267cccd
Merge pull request #3195 from plotly/upgrade-get
marthacryan Mar 3, 2025
a234187
Fix initial props reset back
T4rk1n Mar 4, 2025
2d2e3d6
Set rdps005 flaky
T4rk1n Mar 4, 2025
0bd7d4a
Version 3.0.0rc4
T4rk1n Mar 4, 2025
e7d95c5
Merge pull request #3197 from plotly/fix-optimize-rc4
T4rk1n Mar 4, 2025
85b7950
Fix issues with padding
marthacryan Mar 11, 2025
c14aa01
Merge pull request #3209 from plotly/devtools-css
marthacryan Mar 11, 2025
09dd074
Fix getattr
T4rk1n Mar 12, 2025
eae2ca9
ci install ipython9.0.0
T4rk1n Mar 12, 2025
cef2549
mark dveh002 flaky
T4rk1n Mar 12, 2025
e0a2e16
Merge pull request #3213 from plotly/fix-getattr
T4rk1n Mar 12, 2025
87e439a
Improve proptypes.js generated size.
T4rk1n Mar 14, 2025
5fffe7e
Add ignore_props config to dash_prop_typing
T4rk1n Mar 14, 2025
3446248
Remove moved typing code
T4rk1n Mar 14, 2025
69d134f
Add wildcard * support for custom prop typing
T4rk1n Mar 14, 2025
73fd470
Also ignore props in docstring.
T4rk1n Mar 14, 2025
e9f4956
Add literal prop typing support
T4rk1n Mar 14, 2025
ec75aca
fix test_typing
T4rk1n Mar 14, 2025
52b698a
Merge pull request #3220 from plotly/improve-generation
T4rk1n Mar 14, 2025
1adb64c
Merge branch 'dev' into dash-3.0
T4rk1n Mar 17, 2025
6b86ea7
Fix long -> background
T4rk1n Mar 17, 2025
d8191bb
Update changelog
T4rk1n Mar 17, 2025
e993797
Upgrade dependencies
T4rk1n Mar 17, 2025
e2fefa7
Version 3.0.0
T4rk1n Mar 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,24 +227,6 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

test-312-react-18:
<<: *test
docker:
- image: cimg/python:3.12.1-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PERCY_ENABLE: 0
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
PYVERSION: python312
REDIS_URL: redis://localhost:6379
REACT_VERSION: "18.2.0"
- image: cimg/redis:6.2.6
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB

test-38:
<<: *test
docker:
Expand Down Expand Up @@ -349,18 +331,6 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

dcc-312-react-18:
<<: *dcc-test
docker:
- image: cimg/python:3.12.1-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python312
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

dcc-38:
<<: *dcc-test
docker:
Expand Down Expand Up @@ -430,18 +400,6 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

html-312-react-18:
<<: *html-test
docker:
- image: cimg/python:3.12.1-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python312
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

html-38:
<<: *html-test
docker:
Expand Down Expand Up @@ -506,15 +464,6 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

table-server-react-18:
<<: *table-server
docker:
- image: cimg/python:3.12.1-browsers
environment:
PYVERSION: python312
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

table-unit-test:
working_directory: ~/dash
docker:
Expand Down Expand Up @@ -655,9 +604,6 @@ workflows:
- test-312:
requires:
- install-dependencies-312
- test-312-react-18:
requires:
- install-dependencies-312
- test-38:
requires:
- install-dependencies-38
Expand All @@ -672,19 +618,13 @@ workflows:
- dcc-312:
requires:
- install-dependencies-312
- dcc-312-react-18:
requires:
- install-dependencies-312
- dcc-38:
requires:
- install-dependencies-38

- html-312:
requires:
- install-dependencies-312
- html-312-react-18:
requires:
- install-dependencies-312
- html-38:
requires:
- install-dependencies-38
Expand All @@ -699,9 +639,6 @@ workflows:
- table-server:
requires:
- install-dependencies-312
- table-server-react-18:
requires:
- install-dependencies-312

- percy/finalize_all:
requires:
Expand Down
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ disable=fixme,
unnecessary-lambda-assignment,
broad-exception-raised,
consider-using-generator,
too-many-ancestors


# Enable the message, report, category or checker with the given id(s). You can
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
/**
* MyNestedComponent description
*/
const MyNestedComponent = ({ id, value }) => (<div id={id}>{value}</div>);
const MyNestedComponent = ({ id, value = '' }) => (<div id={id}>{value}</div>);

MyNestedComponent.propTypes = {
/**
Expand All @@ -18,8 +18,4 @@ MyNestedComponent.propTypes = {
value: PropTypes.string
};

MyNestedComponent.defaultProps = {
value: ''
};

export default MyNestedComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
/**
* MyComponent description
*/
const MyStandardComponent = ({ id, style, value }) => (<div id={id} style={style}>{value}</div>);
const MyStandardComponent = ({ id, style, value = '' }) => (<div id={id} style={style}>{value}</div>);

MyStandardComponent.propTypes = {
/**
Expand All @@ -23,8 +23,4 @@ MyStandardComponent.propTypes = {
value: PropTypes.string
};

MyStandardComponent.defaultProps = {
value: ''
};

export default MyStandardComponent;
export default MyStandardComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
dict(
relative_package_path='dash_generator_test_component_typescript.js',
namespace='dash_generator_test_component_typescript'
)
),
{
"dev_package_path": "proptypes.js",
"dev_only": True,
"namespace": 'dash_generator_test_component_typescript'
}
]

for _component in __all__:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore_props = ['ignored_prop']
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,23 @@ describe('Test Typescript component metadata generation', () => {
);
expect(objectOfComponents).toBe("node");
}
);

test(
'union and literal values', () => {
const propType = R.path(
propPath('TypeScriptComponent', 'union_enum').concat(
'type'
),
metadata
);
expect(propType.name).toBe('union');
expect(propType.value.length).toBe(3);
expect(propType.value[0].name).toBe('number');
expect(propType.value[1].name).toBe('literal');
expect(propType.value[2].name).toBe('literal');
expect(propType.value[1].value).toBe('small');
}
)
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type TypescriptComponentProps = {
array_obj?: {a: string}[];
array_any?: any[];
enum_string?: 'one' | 'two';
enum_number?: 2 | 3 | 4 | 5 | 6;
union?: number | string;
union_shape?: {a: string} | string;
array_union_shape?: ({a: string} | string)[];
Expand All @@ -46,6 +47,8 @@ export type TypescriptComponentProps = {

object_of_string?: {[k: string]: string};
object_of_components?: {[k: string]: JSX.Element};
ignored_prop?: {ignore: {me: string}};
union_enum?: number | 'small' | 'large'
};

export type WrappedHTMLProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const AddPropsComponent = (props) => {

return (
<div id={id}>
{React.cloneElement(children, {
{React.cloneElement(children, {
receive: `Element #${id} pass`,
id: id,
})}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ AsyncComponent.propTypes = {
value: PropTypes.string
};

AsyncComponent.defaultProps = {};

export default AsyncComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ CollapseComponent.propTypes = {
id: PropTypes.string
};

CollapseComponent.defaultProps = {
display: false
};

export default CollapseComponent;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';

const DelayedEventComponent = ({ id, n_clicks, setProps }) => (<button
const DelayedEventComponent = ({ id, n_clicks = 0, setProps }) => (<button
id={id}
onClick={() => setTimeout(() => setProps({ n_clicks: n_clicks + 1 }), 20)}
/>);
Expand All @@ -11,8 +11,4 @@ DelayedEventComponent.propTypes = {
n_clicks: PropTypes.number
};

DelayedEventComponent.defaultProps = {
n_clicks: 0
};

export default DelayedEventComponent;
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react';
import PropTypes from 'prop-types';


const ExternalComponent = ({ id, text, input_id, extra_component }) => {
const ctx = window.dash_component_api.useDashContext();
const ExternalWrapper = window.dash_component_api.ExternalWrapper;

return (
<div id={id}>
{text && <ExternalWrapper

component={{
type: "Input",
namespace: "dash_core_components",
props: {
value: text,
id: input_id
}
}}
componentPath={[...ctx.componentPath, 'external']}
/>}
{
extra_component &&
<ExternalWrapper
component={extra_component}
componentPath={[...ctx.componentPath, 'extra']}
/>}
</div>
)
}

ExternalComponent.propTypes = {
id: PropTypes.string,
text: PropTypes.string,
input_id: PropTypes.string,
extra_component: PropTypes.exact({
type: PropTypes.string,
namespace: PropTypes.string,
props: PropTypes.object,
}),
};

export default ExternalComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ FragmentComponent.propTypes = {
id: PropTypes.string
};

FragmentComponent.defaultProps = {};

export default FragmentComponent;
export default FragmentComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
/**
* MyComponent description
*/
const StyledComponent = ({ id, style, value }) => (<div id={id} style={style}>{value}</div>);
const StyledComponent = ({ id, style, value = '' }) => (<div id={id} style={style}>{value}</div>);

StyledComponent.propTypes = {
/**
Expand All @@ -23,8 +23,4 @@ StyledComponent.propTypes = {
value: PropTypes.string
};

StyledComponent.defaultProps = {
value: ''
};

export default StyledComponent;
10 changes: 3 additions & 7 deletions @plotly/dash-test-components/src/components/WidthComponent.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import PropTypes from 'prop-types';
import React, { Fragment } from 'react';

const WidthComponent = props => (<Fragment>
{props.width}
const WidthComponent = ({width = 0}) => (<Fragment>
{width}
</Fragment>);

WidthComponent.propTypes = {
id: PropTypes.string,
width: PropTypes.number
};

WidthComponent.defaultProps = {
width: 0
};

export default WidthComponent;
export default WidthComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ AsyncComponent.propTypes = {
value: PropTypes.string
};

AsyncComponent.defaultProps = {};

export default AsyncComponent;
4 changes: 3 additions & 1 deletion @plotly/dash-test-components/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import AddPropsComponent from "./components/AddPropsComponent";
import ReceivePropsComponent from "./components/ReceivePropsComponent";
import ShapeOrExactKeepOrderComponent from "./components/ShapeOrExactKeepOrderComponent";
import ArrayOfExactOrShapeWithNodePropAssignNone from './components/ArrayOfExactOrShapeWithNodePropAssignNone';
import ExternalComponent from './components/ExternalComponent';


export {
Expand All @@ -29,5 +30,6 @@ export {
AddPropsComponent,
ReceivePropsComponent,
ShapeOrExactKeepOrderComponent,
ArrayOfExactOrShapeWithNodePropAssignNone
ArrayOfExactOrShapeWithNodePropAssignNone,
ExternalComponent,
};
Loading