Skip to content

Commit 1f18e39

Browse files
authored
Merge pull request #2247 from plotly/master-2.6.2
Master 2.6.2
2 parents d0d7749 + 51779f4 commit 1f18e39

File tree

228 files changed

+2737
-5254
lines changed

Some content is hidden

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

228 files changed

+2737
-5254
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ jobs:
294294
. venv/bin/activate && rm -rf components/dash-core-components/dash_core_components
295295
cd components/dash-core-components
296296
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
297-
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES} --reruns 3
297+
pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml --junitprefix="components.dash-core-components" ${TESTFILES}
298298
- store_artifacts:
299299
path: ~/dash/components/dash-core-components/test-reports
300300
- store_test_results:

@plotly/dash-component-plugins/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Plotly, Inc
3+
Copyright (c) 2022 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
import { RequiredChildrenComponentProps } from "../props";
3+
4+
5+
const RequiredChildrenComponent = (props: RequiredChildrenComponentProps) => {
6+
const {children} = props;
7+
return (
8+
<div>
9+
{children}
10+
</div>
11+
)
12+
}
13+
14+
export default RequiredChildrenComponent;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import WrappedHTML from './components/WrappedHTML';
66
import FCComponent from './components/FCComponent';
77
import EmptyComponent from './components/EmptyComponent';
88
import MixedComponent from './components/MixedComponent';
9+
import RequiredChildrenComponent from './components/RequiredChildrenComponent';
910

1011
export {
1112
TypeScriptComponent,
@@ -16,4 +17,5 @@ export {
1617
FCComponent,
1718
EmptyComponent,
1819
MixedComponent,
20+
RequiredChildrenComponent,
1921
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ export type WrappedHTMLProps = {
4848
children?: React.ReactNode;
4949
id?: string;
5050
} & Pick<React.ButtonHTMLAttributes<any>, 'autoFocus'>
51+
52+
export type RequiredChildrenComponentProps = {
53+
children: React.ReactNode;
54+
}

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import PropTypes from 'prop-types';
33

44

55
const ComponentAsProp = (props) => {
6-
const { element, id, shapeEl, list_of_shapes } = props;
6+
const { element, id, shapeEl, list_of_shapes, multi_components } = props;
77
return (
88
<div id={id}>
99
{shapeEl && shapeEl.header}
1010
{element}
1111
{shapeEl && shapeEl.footer}
1212
{list_of_shapes && <ul>{list_of_shapes.map(e => <li key={e.value}>{e.label}</li>)}</ul> }
13+
{multi_components && <div>{multi_components.map(m => <div id={m.id} key={m.id}>{m.first} - {m.second}</div>)}</div>}
1314
</div>
1415
)
1516
}
@@ -28,6 +29,14 @@ ComponentAsProp.propTypes = {
2829
label: PropTypes.node,
2930
value: PropTypes.number,
3031
})
32+
),
33+
34+
multi_components: PropTypes.arrayOf(
35+
PropTypes.exact({
36+
id: PropTypes.string,
37+
first: PropTypes.node,
38+
second: PropTypes.node,
39+
})
3140
)
3241
}
3342

@plotly/webpack-dash-dynamic-import/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Plotly, Inc
3+
Copyright (c) 2022 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
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.6.2] - 2022-09-23
6+
7+
### Fixed
8+
9+
- [#2237](https://github.com/plotly/dash/pull/2237) Ensure calls to `plotly.js` from `dcc.Graph` are properly sequenced even if React initiates multiple render cycles in quick succession.
10+
- [#2218](https://github.com/plotly/dash/pull/2218) Fix bug [#1348](https://github.com/plotly/dash/issues/1348) Validate children prop (required or not).
11+
- [#2223](https://github.com/plotly/dash/pull/2223) Exclude hidden folders when building `dash.page_registry`.
12+
- [#2182](https://github.com/plotly/dash/pull/2182) Fix [#2172](https://github.com/plotly/dash/issues/2172) Make it so that when using pages, if `suppress_callback_exceptions=True` the `validation_layout` is not set.
13+
- [#2152](https://github.com/plotly/dash/pull/2152) Fix bug [#2128](https://github.com/plotly/dash/issues/2128) preventing rendering of multiple components inside a dictionary.
14+
- [#2187](https://github.com/plotly/dash/pull/2187) Fix confusing error message when trying to use pytest fixtures but `dash[testing]` is not installed.
15+
- [#2202](https://github.com/plotly/dash/pull/2202) Fix bug [#2185](https://github.com/plotly/dash/issues/2185) when you copy text with multiple quotes into a table
16+
- [#2226](https://github.com/plotly/dash/pull/2226) Fix [#2219](https://github.com/plotly/dash/issues/2219) pages register & background callbacks.
17+
518
## [2.6.1] - 2022-08-01
619

720
### Fixed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Plotly, Inc
3+
Copyright (c) 2022 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

components/dash-core-components/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Plotly Technologies
3+
Copyright (c) 2022 Plotly Technologies
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)