Skip to content

Commit 95520f7

Browse files
authored
Merge pull request #2845 from plotly/master2.17.0
Master 2.17.0
2 parents 6c50a18 + 182acdd commit 95520f7

File tree

93 files changed

+62693
-59703
lines changed

Some content is hidden

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

93 files changed

+62693
-59703
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from "react";
2+
import PropTypes from "prop-types";
3+
4+
const AddPropsComponent = (props) => {
5+
const {children, id} = props;
6+
7+
8+
return (
9+
<div id={id}>
10+
{React.cloneElement(children, {
11+
receive: `Element #${id} pass`,
12+
id: id,
13+
})}
14+
</div>
15+
);
16+
};
17+
18+
AddPropsComponent.propTypes = {
19+
id: PropTypes.string,
20+
children: PropTypes.node,
21+
};
22+
23+
export default AddPropsComponent;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React, { useState, useEffect } from "react";
2+
import PropTypes from "prop-types";
3+
4+
const DrawCounter = (props) => {
5+
const [count, setCount] = useState(0);
6+
useEffect(() => {
7+
setCount(count + 1);
8+
}, [props]);
9+
return <div id={props.id}>{count}</div>;
10+
};
11+
12+
DrawCounter.propTypes = {
13+
id: PropTypes.string,
14+
};
15+
export default DrawCounter;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
4+
const ReceivePropsComponent = (props) => {
5+
const {id, text, receive} = props;
6+
7+
return (
8+
<div id={id}>
9+
{receive || text}
10+
</div>
11+
);
12+
}
13+
ReceivePropsComponent.propTypes = {
14+
id: PropTypes.string,
15+
text: PropTypes.string,
16+
receive: PropTypes.string,
17+
}
18+
19+
export default ReceivePropsComponent;

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import StyledComponent from './components/StyledComponent';
88
import WidthComponent from './components/WidthComponent';
99
import ComponentAsProp from './components/ComponentAsProp';
1010

11+
import DrawCounter from './components/DrawCounter';
12+
import AddPropsComponent from "./components/AddPropsComponent";
13+
import ReceivePropsComponent from "./components/ReceivePropsComponent";
14+
15+
1116
export {
1217
AsyncComponent,
1318
CollapseComponent,
@@ -18,4 +23,7 @@ export {
1823
StyledComponent,
1924
WidthComponent,
2025
ComponentAsProp,
26+
DrawCounter,
27+
AddPropsComponent,
28+
ReceivePropsComponent
2129
};

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
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.17.0] - 2024-05-03
6+
7+
## Added
8+
9+
- [#2832](https://github.com/plotly/dash/pull/2832) Add dash startup route setup on Dash init.
10+
- [#2819](https://github.com/plotly/dash/pull/2819) Add dash subcomponents receive additional parameters passed by the parent component. Fixes [#2814](https://github.com/plotly/dash/issues/2814).
11+
- [#2826](https://github.com/plotly/dash/pull/2826) When using Pages, allows for `app.title` and (new) `app.description` to be used as defaults for the page title and description. Fixes [#2811](https://github.com/plotly/dash/issues/2811).
12+
- [#2795](https://github.com/plotly/dash/pull/2795) Allow list of components to be passed as layout.
13+
- [#2760](https://github.com/plotly/dash/pull/2760) New additions to dcc.Loading resolving multiple issues:
14+
- `delay_show` and `delay_hide` props to prevent flickering during brief loading periods (similar to Dash Bootstrap Components dbc.Spinner)
15+
- `overlay_style` for styling the loading overlay, such as setting visibility and opacity for children
16+
- `target_components` specifies components/props triggering the loading spinner
17+
- `custom_spinner` enables using a custom component for loading messages instead of built-in spinners
18+
- `display` overrides the loading status with options for "show," "hide," or "auto"
19+
- [#2822](https://github.com/plotly/dash/pull/2822) Support no output callbacks. Fixes [#1549](https://github.com/plotly/dash/issues/1549)
20+
- [#2822](https://github.com/plotly/dash/pull/2822) Add global set_props. Fixes [#2803](https://github.com/plotly/dash/issues/2803)
21+
22+
## Fixed
23+
24+
- [#2362](https://github.com/plotly/dash/pull/2362) Global namespace not polluted any more when loading clientside callbacks.
25+
- [#2833](https://github.com/plotly/dash/pull/2833) Allow data url in link props. Fixes [#2764](https://github.com/plotly/dash/issues/2764)
26+
- [#2822](https://github.com/plotly/dash/pull/2822) Fix side update (running/progress/cancel) dict ids. Fixes [#2111](https://github.com/plotly/dash/issues/2111)
27+
- [#2817](https://github.com/plotly/dash/pull/2817) Change hashing algorithm from md5 to sha256, Fixes [#2697](https://github.com/plotly/dash/issues/2697).
28+
- [#2816](https://github.com/plotly/dash/pull/2816) Fix dcc.Dropdown value not updated when option is removed. Fixes [#2733](https://github.com/plotly/dash/issues/2733).
29+
- [#2823](https://github.com/plotly/dash/pull/2823) Fix None in "wait" methods causing incorrectly passing tests. Fixes [#2818](https://github.com/plotly/dash/issues/2818)
30+
531
## [2.16.1] - 2024-03-06
632

733
## Fixed

0 commit comments

Comments
 (0)