Skip to content

Commit

Permalink
Merge pull request #2845 from plotly/master2.17.0
Browse files Browse the repository at this point in the history
Master 2.17.0
  • Loading branch information
T4rk1n authored May 3, 2024
2 parents 6c50a18 + 182acdd commit 95520f7
Show file tree
Hide file tree
Showing 93 changed files with 62,693 additions and 59,703 deletions.
23 changes: 23 additions & 0 deletions @plotly/dash-test-components/src/components/AddPropsComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import PropTypes from "prop-types";

const AddPropsComponent = (props) => {
const {children, id} = props;


return (
<div id={id}>
{React.cloneElement(children, {
receive: `Element #${id} pass`,
id: id,
})}
</div>
);
};

AddPropsComponent.propTypes = {
id: PropTypes.string,
children: PropTypes.node,
};

export default AddPropsComponent;
15 changes: 15 additions & 0 deletions @plotly/dash-test-components/src/components/DrawCounter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";

const DrawCounter = (props) => {
const [count, setCount] = useState(0);
useEffect(() => {
setCount(count + 1);
}, [props]);
return <div id={props.id}>{count}</div>;
};

DrawCounter.propTypes = {
id: PropTypes.string,
};
export default DrawCounter;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import PropTypes from 'prop-types';

const ReceivePropsComponent = (props) => {
const {id, text, receive} = props;

return (
<div id={id}>
{receive || text}
</div>
);
}
ReceivePropsComponent.propTypes = {
id: PropTypes.string,
text: PropTypes.string,
receive: PropTypes.string,
}

export default ReceivePropsComponent;
8 changes: 8 additions & 0 deletions @plotly/dash-test-components/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import StyledComponent from './components/StyledComponent';
import WidthComponent from './components/WidthComponent';
import ComponentAsProp from './components/ComponentAsProp';

import DrawCounter from './components/DrawCounter';
import AddPropsComponent from "./components/AddPropsComponent";
import ReceivePropsComponent from "./components/ReceivePropsComponent";


export {
AsyncComponent,
CollapseComponent,
Expand All @@ -18,4 +23,7 @@ export {
StyledComponent,
WidthComponent,
ComponentAsProp,
DrawCounter,
AddPropsComponent,
ReceivePropsComponent
};
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [2.17.0] - 2024-05-03

## Added

- [#2832](https://github.com/plotly/dash/pull/2832) Add dash startup route setup on Dash init.
- [#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).
- [#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).
- [#2795](https://github.com/plotly/dash/pull/2795) Allow list of components to be passed as layout.
- [#2760](https://github.com/plotly/dash/pull/2760) New additions to dcc.Loading resolving multiple issues:
- `delay_show` and `delay_hide` props to prevent flickering during brief loading periods (similar to Dash Bootstrap Components dbc.Spinner)
- `overlay_style` for styling the loading overlay, such as setting visibility and opacity for children
- `target_components` specifies components/props triggering the loading spinner
- `custom_spinner` enables using a custom component for loading messages instead of built-in spinners
- `display` overrides the loading status with options for "show," "hide," or "auto"
- [#2822](https://github.com/plotly/dash/pull/2822) Support no output callbacks. Fixes [#1549](https://github.com/plotly/dash/issues/1549)
- [#2822](https://github.com/plotly/dash/pull/2822) Add global set_props. Fixes [#2803](https://github.com/plotly/dash/issues/2803)

## Fixed

- [#2362](https://github.com/plotly/dash/pull/2362) Global namespace not polluted any more when loading clientside callbacks.
- [#2833](https://github.com/plotly/dash/pull/2833) Allow data url in link props. Fixes [#2764](https://github.com/plotly/dash/issues/2764)
- [#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)
- [#2817](https://github.com/plotly/dash/pull/2817) Change hashing algorithm from md5 to sha256, Fixes [#2697](https://github.com/plotly/dash/issues/2697).
- [#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).
- [#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)

## [2.16.1] - 2024-03-06

## Fixed
Expand Down
Loading

0 comments on commit 95520f7

Please sign in to comment.