Skip to content

Commit 888be13

Browse files
committed
Merge branch 'dev' into jupyter
2 parents 4c105ab + db23cdc commit 888be13

Some content is hidden

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

49 files changed

+22031
-15674
lines changed

@plotly/dash-generator-test-component-typescript/generator.test.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,15 @@ describe('Test Typescript component metadata generation', () => {
106106
test(
107107
`${componentName} tuple tuple`,
108108
testTypeFactory('a_tuple', 'tuple')
109-
)
109+
);
110+
test(
111+
`${componentName} object of string`,
112+
testTypeFactory('object_of_string', 'objectOf')
113+
);
114+
test(
115+
`${componentName} object of components`,
116+
testTypeFactory('object_of_components', 'objectOf')
117+
);
110118
});
111119

112120
describe('Test prop attributes', () => {
@@ -252,6 +260,17 @@ describe('Test Typescript component metadata generation', () => {
252260
R.path(tuplePath.concat(1, 'name'), metadata)
253261
).toBe('string');
254262
}
263+
);
264+
265+
test(
266+
'objectOf node', () => {
267+
const objectOfComponents = R.path(
268+
propPath("TypeScriptComponent", "object_of_components")
269+
.concat(["type", "value", "name"]),
270+
metadata
271+
);
272+
expect(objectOfComponents).toBe("node");
273+
}
255274
)
256275
});
257276

@plotly/dash-generator-test-component-typescript/src/props.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export type TypescriptComponentProps = {
4343
nested?: Nested;
4444

4545
a_tuple?: [number, string];
46+
47+
object_of_string?: {[k: string]: string};
48+
object_of_components?: {[k: string]: JSX.Element};
4649
};
4750

4851
export type WrappedHTMLProps = {

CHANGELOG.md

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

5-
## [UNRELEASED]
5+
## [2.10.2] - 2023-05-31
6+
7+
## Changed
8+
9+
- Set Flask and Werkzeug version upper bound to `<2.3`.
10+
11+
## [2.10.1] - 2023-05-30
12+
13+
## Fixed
14+
15+
- [#2545](https://github.com/plotly/dash/pull/2545) Fix typescript objectOf generation.
16+
- [#2548](https://github.com/plotly/dash/pull/2548) Fix component as props callback triggering other callbacks not in response, fix [#2487](https://github.com/plotly/dash/issues/2487).
17+
18+
## [2.10.0] - 2023-05-25
19+
20+
## Changed
21+
22+
- [#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.
23+
24+
## Added
25+
26+
- [#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).
627

728
## Fixed
829

930
- [#2508](https://github.com/plotly/dash/pull/2508) Fix error message, when callback output has different length than spec
1031
- [#2207](https://github.com/plotly/dash/pull/2207) Fix object of components support.
32+
- [#2500](https://github.com/plotly/dash/pull/2500) Passing customdata by click for scattermapbox, fix [#2493](https://github.com/plotly/dash/issues/2493)
33+
- [#2513](https://github.com/plotly/dash/pull/2513) Raise error when iterating over patch objects, fix [#2512](https://github.com/plotly/dash/issues/2512)
34+
35+
## Updated
36+
37+
- [#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.
38+
- Feature release [2.23.0](https://github.com/plotly/plotly.js/releases/tag/v2.23.0) adds legend/colorbar xref/yref.
39+
- Feature release [2.22.0](https://github.com/plotly/plotly.js/releases/tag/v2.22.0) adds `legend` references to traces.
40+
- Feature release [2.21.0](https://github.com/plotly/plotly.js/releases/tag/v2.21.0) adds `label.texttemplate` to parametric shapes.
41+
- 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.
42+
43+
- [#2538](https://github.com/plotly/dash/pull/2538) Update JS dependencies in dcc, html, dash-table, dash-renderer, and dash
1144

1245
## [2.9.3] - 2023-04-13
1346

@@ -51,6 +84,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
5184
- [#2260](https://github.com/plotly/dash/pull/2260) Experimental support for React 18. The default is still React v16.14.0, but to use React 18 you can either set the environment variable `REACT_VERSION=18.2.0` before running your app, or inside the app call `dash._dash_renderer._set_react_version("18.2.0")`. THIS FEATURE IS EXPERIMENTAL. It has not been tested with component suites outside the Dash core, and we may add or remove available React versions in any future release.
5285
- [#2414](https://github.com/plotly/dash/pull/2414) Add `dash.Patch`for partial update Output props without transferring the previous value in a State.
5386
- [#2414](https://github.com/plotly/dash/pull/2414) Add `allow_duplicate` to `Output` arguments allowing duplicate callbacks to target the same prop.
87+
- [#2349](https://github.com/plotly/dash/pull/2349) Added new `dcc.Geolocation` component
5488

5589
## Fixed
5690

@@ -123,7 +157,6 @@ This project adheres to [Semantic Versioning](https://semver.org/).
123157

124158
### Added
125159

126-
- [#2349](https://github.com/plotly/dash/pull/2349) Added new `dcc.Geolocation` component
127160
- [#2261](https://github.com/plotly/dash/pull/2261) Added new `placeholder_text` property to `filterOptions` for DataTable which allows overriding the default filter field placeholder.
128161

129162
### Updated

0 commit comments

Comments
 (0)