Skip to content

Commit 801a33e

Browse files
authored
Merge branch 'dev' into DataTable-whitespace-fix
2 parents 0017806 + cac1276 commit 801a33e

Some content is hidden

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

44 files changed

+9112
-7916
lines changed

@plotly/dash-jupyterlab/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@
3333
"watch": "tsc -w"
3434
},
3535
"dependencies": {
36-
"@jupyterlab/application": "^2.0.0 || ^3.0.0",
37-
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0",
38-
"@jupyterlab/console": "^2.0.0 || ^3.0.0"
36+
"@jupyterlab/application": "^2.0.0 || ^3.0.0 || ^4.0.0",
37+
"@jupyterlab/console": "^2.0.0 || ^3.0.0 || ^4.0.0",
38+
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0 || ^4.0.0"
3939
},
4040
"devDependencies": {
41+
"@types/json-schema": "^7.0.15",
42+
"mkdirp": "^0.5.1",
4143
"prettier": "2.0.5",
4244
"rimraf": "3.0.2",
43-
"typescript": "3.9.3",
44-
"mkdirp": "^0.5.1"
45+
"typescript": "5.6.2"
4546
},
4647
"jupyterlab": {
4748
"extension": true

@plotly/dash-jupyterlab/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4-
"lib": ["es2015", "dom"],
4+
"lib": ["es2018", "dom"],
55
"module": "commonjs",
66
"moduleResolution": "node",
77
"noEmitOnError": true,
@@ -10,7 +10,7 @@
1010
"rootDir": "src",
1111
"strict": true,
1212
"strictNullChecks": false,
13-
"target": "es2015",
13+
"target": "es2018",
1414
"types": [],
1515
"esModuleInterop": true
1616
},

@plotly/dash-jupyterlab/yarn.lock

Lines changed: 1357 additions & 1050 deletions
Large diffs are not rendered by default.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
4+
const ArrayOfExactOrShapeWithNodePropAssignNone = (props) => {
5+
const { id, test_array_of_exact_prop, test_array_of_shape_prop } = props;
6+
7+
return (
8+
<div id={id}>
9+
{`length of test_array_of_exact_prop: ${(test_array_of_exact_prop || []).length}, length of test_array_of_shape_prop: ${(test_array_of_shape_prop || []).length}`}
10+
</div>
11+
);
12+
};
13+
14+
ArrayOfExactOrShapeWithNodePropAssignNone.propTypes = {
15+
id: PropTypes.string,
16+
test_array_of_exact_prop: PropTypes.arrayOf(
17+
PropTypes.exact({
18+
label: PropTypes.node,
19+
value: PropTypes.string
20+
})
21+
),
22+
test_array_of_shape_prop: PropTypes.arrayOf(
23+
PropTypes.shape({
24+
label: PropTypes.node,
25+
value: PropTypes.string
26+
})
27+
)
28+
};
29+
30+
export default ArrayOfExactOrShapeWithNodePropAssignNone;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
4+
const ShapeOrExactKeepOrderComponent = (props) => {
5+
const { id } = props;
6+
7+
return (
8+
<div id={id} />
9+
);
10+
};
11+
12+
ShapeOrExactKeepOrderComponent.propTypes = {
13+
id: PropTypes.string,
14+
/**
15+
* test prop for shape
16+
*/
17+
shape_test_prop: PropTypes.shape({
18+
/**
19+
* z
20+
*/
21+
z: PropTypes.string,
22+
/**
23+
* a
24+
*/
25+
a: PropTypes.string,
26+
/**
27+
* y
28+
*/
29+
y: PropTypes.string
30+
}),
31+
/**
32+
* test prop for exact
33+
*/
34+
exact_test_prop: PropTypes.exact({
35+
/**
36+
* z
37+
*/
38+
z: PropTypes.string,
39+
/**
40+
* a
41+
*/
42+
a: PropTypes.string,
43+
/**
44+
* y
45+
*/
46+
y: PropTypes.string
47+
}),
48+
};
49+
50+
export default ShapeOrExactKeepOrderComponent;

@plotly/dash-test-components/src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import ComponentAsProp from './components/ComponentAsProp';
1111
import DrawCounter from './components/DrawCounter';
1212
import AddPropsComponent from "./components/AddPropsComponent";
1313
import ReceivePropsComponent from "./components/ReceivePropsComponent";
14+
import ShapeOrExactKeepOrderComponent from "./components/ShapeOrExactKeepOrderComponent";
15+
import ArrayOfExactOrShapeWithNodePropAssignNone from './components/ArrayOfExactOrShapeWithNodePropAssignNone';
1416

1517

1618
export {
@@ -25,5 +27,7 @@ export {
2527
ComponentAsProp,
2628
DrawCounter,
2729
AddPropsComponent,
28-
ReceivePropsComponent
30+
ReceivePropsComponent,
31+
ShapeOrExactKeepOrderComponent,
32+
ArrayOfExactOrShapeWithNodePropAssignNone
2933
};

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,36 @@ This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## [UNRELEASED]
66

7+
## Fixed
8+
9+
- [#2994](https://github.com/plotly/dash/pull/2994) Keep generated doc-string order for shape or exact props. Fixes [#2990](https://github.com/plotly/dash/issues/2990)
10+
- [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010)
11+
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.
12+
- [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error.
13+
- [#3034](https://github.com/plotly/dash/pull/3034) Remove whitespace from `metadata.json` files to reduce package size.
14+
- [#3009](https://github.com/plotly/dash/pull/3009) Performance improvement on (pattern-matching) callbacks.
15+
- [3028](https://github.com/plotly/dash/pull/3028) Fix jupyterlab v4 support.
16+
17+
## [2.18.1] - 2024-09-12
18+
19+
## Fixed
20+
21+
- [#2987](https://github.com/plotly/dash/pull/2987) Fix multioutput requiring same number of no_update. Fixes [#2986](https://github.com/plotly/dash/issues/2986)
22+
- [2988](https://github.com/plotly/dash/pull/2988) Fix error handler and grouped outputs. Fixes [#2983](https://github.com/plotly/dash/issues/2983)
23+
- [#2841](https://github.com/plotly/dash/pull/2841) Fix typing on Dash init.
24+
- [#1548](https://github.com/plotly/dash/pull/1548) Enable changing of selenium url, fix for selenium grid support.
25+
26+
## Deprecated
27+
28+
- [#2985](https://github.com/plotly/dash/pull/2985) Deprecate dynamic component loader.
29+
- [#2985](https://github.com/plotly/dash/pull/2985) Deprecate `run_server`, use `run` instead.
30+
- [#2899](https://github.com/plotly/dash/pull/2899) Deprecate `dcc.LogoutButton`, can be replaced with a `html.Button` or `html.A`. eg: `html.A(href=os.getenv('DASH_LOGOUT_URL'))` on a Dash Enterprise instance.
31+
- [#2995](https://github.com/plotly/dash/pull/2995) Deprecate `Dash.__init__` keywords:
32+
- The `plugins` keyword will be removed.
33+
- Old `long_callback_manager` keyword will be removed, can use `background_callback_manager` instead.
34+
35+
## [2.18.0] - 2024-09-04
36+
737
## Added
838

939
- [#2881](https://github.com/plotly/dash/pull/2881) Add outputs_list to window.dash_clientside.callback_context. Fixes [#2877](https://github.com/plotly/dash/issues/2877).
@@ -22,6 +52,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2252
- [#2922](https://github.com/plotly/dash/pull/2922) Fix background callback hash_function when source is unavailable. Fixes [#1885](https://github.com/plotly/dash/issues/1885)
2353
- [#2915](https://github.com/plotly/dash/pull/2915) Fix 'AttributeError' when layout is a function that returns a list of components. Fixes [#2905](https://github.com/plotly/dash/issues/2905)
2454
- [#2956](https://github.com/plotly/dash/pull/2956) Add missing useEffect dependency to dcc.Loading component.
55+
- [#2909](https://github.com/plotly/dash/pull/2909) Rehighlights dcc.Markdown when it is updated, fixes [#2895](https://github.com/plotly/dash/issues/2895)
2556

2657
## [2.17.1] - 2024-06-12
2758

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2023 Plotly, Inc
3+
Copyright (c) 2015-2024 Plotly Technologies Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)