Skip to content

Commit 2f5bed2

Browse files
authored
Merge pull request #2544 from plotly/master-2.10.0
Master 2.10.0
2 parents 64a1c25 + 7d11f0a commit 2f5bed2

File tree

102 files changed

+29099
-21412
lines changed

Some content is hidden

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

102 files changed

+29099
-21412
lines changed

@plotly/dash-component-plugins/webpack.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ module.exports = {
66
output: {
77
path: path.resolve(__dirname, `./dist`),
88
filename: 'index.js',
9-
library: `dash-component-plugins`,
10-
libraryTarget: 'umd'
9+
library: {name: `dash-component-plugins`, type: 'umd' },
1110
},
1211
externals: {
1312
react: {
@@ -27,4 +26,4 @@ module.exports = {
2726
}
2827
]
2928
}
30-
};
29+
};

@plotly/dash-generator-test-component-nested/webpack.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ module.exports = {
1515
output: {
1616
path: path.resolve(__dirname, dashLibraryName, 'nested'),
1717
filename: `${dashLibraryName}.js`,
18-
library: dashLibraryName,
19-
libraryTarget: 'window',
18+
library: {
19+
name: dashLibraryName,
20+
type: 'window',
21+
}
2022
},
2123
module: {
2224
rules: [
@@ -29,4 +31,4 @@ module.exports = {
2931
}
3032
],
3133
}
32-
};
34+
};

@plotly/dash-generator-test-component-standard/webpack.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ module.exports = {
1515
output: {
1616
path: path.resolve(__dirname, dashLibraryName),
1717
filename: `${dashLibraryName}.js`,
18-
library: dashLibraryName,
19-
libraryTarget: 'window',
18+
library: {
19+
name: dashLibraryName,
20+
type: 'window',
21+
}
2022
},
2123
module: {
2224
rules: [
@@ -29,4 +31,4 @@ module.exports = {
2931
}
3032
],
3133
}
32-
};
34+
};

@plotly/dash-generator-test-component-typescript/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ module.exports = function (env, argv) {
1010
const output = {
1111
path: path.resolve(__dirname, dashLibraryName),
1212
filename: `${dashLibraryName}.js`,
13-
library: dashLibraryName,
14-
libraryTarget: 'umd',
13+
library: {
14+
name: dashLibraryName,
15+
type: 'umd',
16+
}
1517
}
1618

1719
const externals = {

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,36 @@ import PropTypes from 'prop-types';
33

44

55
const ComponentAsProp = (props) => {
6-
const { element, id, shapeEl, list_of_shapes, multi_components } = props;
6+
const {
7+
element,
8+
id,
9+
shapeEl,
10+
list_of_shapes,
11+
multi_components,
12+
dynamic,
13+
dynamic_list,
14+
dynamic_dict,
15+
dynamic_nested_list,
16+
} = props;
717
return (
818
<div id={id}>
919
{shapeEl && shapeEl.header}
1020
{element}
1121
{shapeEl && shapeEl.footer}
1222
{list_of_shapes && <ul>{list_of_shapes.map(e => <li key={e.value}>{e.label}</li>)}</ul> }
1323
{multi_components && <div>{multi_components.map(m => <div id={m.id} key={m.id}>{m.first} - {m.second}</div>)}</div>}
24+
{
25+
dynamic && <div>{Object.keys(dynamic).map(key => <div id={key} key={key}>{dynamic[key]}</div>)}</div>
26+
}
27+
{
28+
dynamic_dict && dynamic_dict.node && <div>{Object.keys(dynamic_dict.node).map(key => <div id={key} key={key}>{dynamic_dict.node[key]}</div>)}</div>
29+
}
30+
{
31+
dynamic_list && <div>{dynamic_list.map((obj, i) => Object.keys(obj).map(key => <div id={key} key={key}>{obj[key]}</div>))}</div>
32+
}
33+
{
34+
dynamic_nested_list && <div>{dynamic_nested_list.map((e => <>{Object.values(e.obj)}</>))}</div>
35+
}
1436
</div>
1537
)
1638
}
@@ -37,7 +59,18 @@ ComponentAsProp.propTypes = {
3759
first: PropTypes.node,
3860
second: PropTypes.node,
3961
})
40-
)
62+
),
63+
64+
dynamic: PropTypes.objectOf(PropTypes.node),
65+
66+
dynamic_list: PropTypes.arrayOf(PropTypes.objectOf(PropTypes.node)),
67+
68+
dynamic_dict: PropTypes.shape({
69+
node: PropTypes.objectOf(PropTypes.node),
70+
}),
71+
dynamic_nested_list: PropTypes.arrayOf(
72+
PropTypes.shape({ obj: PropTypes.objectOf(PropTypes.node)})
73+
),
4174
}
4275

4376
export default ComponentAsProp;

@plotly/dash-test-components/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ module.exports = {
1717
path: path.resolve(__dirname, dashLibraryName),
1818
chunkFilename: '[name].js',
1919
filename: `${dashLibraryName}.js`,
20-
library: dashLibraryName,
21-
libraryTarget: 'window',
20+
library: {
21+
name: dashLibraryName,
22+
type: 'window',
23+
}
2224
},
2325
module: {
2426
rules: [

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [2.10.0] - 2023-05-25
6+
7+
## Changed
8+
9+
- [#2538](https://github.com/plotly/dash/pull/2538) Add an upper bound to Flask and Werkzeug versions at `<2.2.3` because we expect the Dash ecosystem to be incompatible with the next minor release of Flask (this excludes the current latest Flask release 2.3.x). We will raise the upper bound to `<2.4` after we fix incompatibilities elsewhere in the Dash ecosystem.
10+
11+
## Added
12+
13+
- [#2540](https://github.com/plotly/dash/pull/2540) Add `include_pages_meta=True` to `Dash` constructor, and fix a security issue in pages meta tags [#2536](https://github.com/plotly/dash/issues/2536).
14+
15+
## Fixed
16+
17+
- [#2508](https://github.com/plotly/dash/pull/2508) Fix error message, when callback output has different length than spec
18+
- [#2207](https://github.com/plotly/dash/pull/2207) Fix object of components support.
19+
- [#2500](https://github.com/plotly/dash/pull/2500) Passing customdata by click for scattermapbox, fix [#2493](https://github.com/plotly/dash/issues/2493)
20+
- [#2513](https://github.com/plotly/dash/pull/2513) Raise error when iterating over patch objects, fix [#2512](https://github.com/plotly/dash/issues/2512)
21+
22+
## Updated
23+
24+
- [#2533](https://github.com/plotly/dash/pull/2533) and [#2538](https://github.com/plotly/dash/pull/2538) Update Plotly.js to v2.23.2 from v2.20.0.
25+
- Feature release [2.23.0](https://github.com/plotly/plotly.js/releases/tag/v2.23.0) adds legend/colorbar xref/yref.
26+
- Feature release [2.22.0](https://github.com/plotly/plotly.js/releases/tag/v2.22.0) adds `legend` references to traces.
27+
- Feature release [2.21.0](https://github.com/plotly/plotly.js/releases/tag/v2.21.0) adds `label.texttemplate` to parametric shapes.
28+
- Patch releases [2.23.1](https://github.com/plotly/plotly.js/releases/tag/v2.23.1) and [2.23.2](https://github.com/plotly/plotly.js/releases/tag/v2.23.2) fix heatmap rendering on iOS and Safari when zsmooth is set to false and shape text when drawing a new shape.
29+
30+
- [#2538](https://github.com/plotly/dash/pull/2538) Update JS dependencies in dcc, html, dash-table, dash-renderer, and dash
31+
532
## [2.9.3] - 2023-04-13
633

734
## Fixed

0 commit comments

Comments
 (0)