Skip to content

Commit

Permalink
Merge pull request #2544 from plotly/master-2.10.0
Browse files Browse the repository at this point in the history
Master 2.10.0
  • Loading branch information
T4rk1n committed May 25, 2023
2 parents 64a1c25 + 7d11f0a commit 2f5bed2
Show file tree
Hide file tree
Showing 102 changed files with 29,099 additions and 21,412 deletions.
5 changes: 2 additions & 3 deletions @plotly/dash-component-plugins/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, `./dist`),
filename: 'index.js',
library: `dash-component-plugins`,
libraryTarget: 'umd'
library: {name: `dash-component-plugins`, type: 'umd' },
},
externals: {
react: {
Expand All @@ -27,4 +26,4 @@ module.exports = {
}
]
}
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ module.exports = {
output: {
path: path.resolve(__dirname, dashLibraryName, 'nested'),
filename: `${dashLibraryName}.js`,
library: dashLibraryName,
libraryTarget: 'window',
library: {
name: dashLibraryName,
type: 'window',
}
},
module: {
rules: [
Expand All @@ -29,4 +31,4 @@ module.exports = {
}
],
}
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ module.exports = {
output: {
path: path.resolve(__dirname, dashLibraryName),
filename: `${dashLibraryName}.js`,
library: dashLibraryName,
libraryTarget: 'window',
library: {
name: dashLibraryName,
type: 'window',
}
},
module: {
rules: [
Expand All @@ -29,4 +31,4 @@ module.exports = {
}
],
}
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module.exports = function (env, argv) {
const output = {
path: path.resolve(__dirname, dashLibraryName),
filename: `${dashLibraryName}.js`,
library: dashLibraryName,
libraryTarget: 'umd',
library: {
name: dashLibraryName,
type: 'umd',
}
}

const externals = {
Expand Down
37 changes: 35 additions & 2 deletions @plotly/dash-test-components/src/components/ComponentAsProp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,36 @@ import PropTypes from 'prop-types';


const ComponentAsProp = (props) => {
const { element, id, shapeEl, list_of_shapes, multi_components } = props;
const {
element,
id,
shapeEl,
list_of_shapes,
multi_components,
dynamic,
dynamic_list,
dynamic_dict,
dynamic_nested_list,
} = props;
return (
<div id={id}>
{shapeEl && shapeEl.header}
{element}
{shapeEl && shapeEl.footer}
{list_of_shapes && <ul>{list_of_shapes.map(e => <li key={e.value}>{e.label}</li>)}</ul> }
{multi_components && <div>{multi_components.map(m => <div id={m.id} key={m.id}>{m.first} - {m.second}</div>)}</div>}
{
dynamic && <div>{Object.keys(dynamic).map(key => <div id={key} key={key}>{dynamic[key]}</div>)}</div>
}
{
dynamic_dict && dynamic_dict.node && <div>{Object.keys(dynamic_dict.node).map(key => <div id={key} key={key}>{dynamic_dict.node[key]}</div>)}</div>
}
{
dynamic_list && <div>{dynamic_list.map((obj, i) => Object.keys(obj).map(key => <div id={key} key={key}>{obj[key]}</div>))}</div>
}
{
dynamic_nested_list && <div>{dynamic_nested_list.map((e => <>{Object.values(e.obj)}</>))}</div>
}
</div>
)
}
Expand All @@ -37,7 +59,18 @@ ComponentAsProp.propTypes = {
first: PropTypes.node,
second: PropTypes.node,
})
)
),

dynamic: PropTypes.objectOf(PropTypes.node),

dynamic_list: PropTypes.arrayOf(PropTypes.objectOf(PropTypes.node)),

dynamic_dict: PropTypes.shape({
node: PropTypes.objectOf(PropTypes.node),
}),
dynamic_nested_list: PropTypes.arrayOf(
PropTypes.shape({ obj: PropTypes.objectOf(PropTypes.node)})
),
}

export default ComponentAsProp;
6 changes: 4 additions & 2 deletions @plotly/dash-test-components/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ module.exports = {
path: path.resolve(__dirname, dashLibraryName),
chunkFilename: '[name].js',
filename: `${dashLibraryName}.js`,
library: dashLibraryName,
libraryTarget: 'window',
library: {
name: dashLibraryName,
type: 'window',
}
},
module: {
rules: [
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [2.10.0] - 2023-05-25

## Changed

- [#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.

## Added

- [#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).

## Fixed

- [#2508](https://github.com/plotly/dash/pull/2508) Fix error message, when callback output has different length than spec
- [#2207](https://github.com/plotly/dash/pull/2207) Fix object of components support.
- [#2500](https://github.com/plotly/dash/pull/2500) Passing customdata by click for scattermapbox, fix [#2493](https://github.com/plotly/dash/issues/2493)
- [#2513](https://github.com/plotly/dash/pull/2513) Raise error when iterating over patch objects, fix [#2512](https://github.com/plotly/dash/issues/2512)

## Updated

- [#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.
- Feature release [2.23.0](https://github.com/plotly/plotly.js/releases/tag/v2.23.0) adds legend/colorbar xref/yref.
- Feature release [2.22.0](https://github.com/plotly/plotly.js/releases/tag/v2.22.0) adds `legend` references to traces.
- Feature release [2.21.0](https://github.com/plotly/plotly.js/releases/tag/v2.21.0) adds `label.texttemplate` to parametric shapes.
- 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.

- [#2538](https://github.com/plotly/dash/pull/2538) Update JS dependencies in dcc, html, dash-table, dash-renderer, and dash

## [2.9.3] - 2023-04-13

## Fixed
Expand Down
Loading

0 comments on commit 2f5bed2

Please sign in to comment.