Skip to content

Commit b981588

Browse files
authored
feat(version): testing react 19 (#11754)
1 parent 2358348 commit b981588

File tree

28 files changed

+81
-85
lines changed

28 files changed

+81
-85
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default [
1919
'packages/react-docs/coverage',
2020
'.history/*',
2121
'packages/react-docs/static',
22+
'packages/react-docs/public',
2223
'**/.cache'
2324
]
2425
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"@testing-library/user-event": "^14.6.1",
4242
"@types/jest": "29.5.14",
4343
"@types/node": "^22.13.10",
44-
"@types/react": "^18.3.18",
45-
"@types/react-dom": "^18.3.5",
44+
"@types/react": "^19.1.0",
45+
"@types/react-dom": "^19.1.2",
4646
"babel-jest": "^29.7.0",
4747
"concurrently": "^9.1.2",
4848
"eslint": "^9.22.0",

packages/react-charts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
},
5353
"peerDependencies": {
5454
"echarts": "^5.6.0",
55-
"react": "^17 || ^18",
56-
"react-dom": "^17 || ^18",
55+
"react": "^17 || ^18 || ^19",
56+
"react-dom": "^17 || ^18 || ^19",
5757
"victory-area": "^37.3.6",
5858
"victory-axis": "^37.3.6",
5959
"victory-bar": "^37.3.6",

packages/react-charts/src/echarts/components/Charts/Charts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export const Charts: FunctionComponent<ChartsProps> = ({
143143
width,
144144
...rest
145145
}: ChartsProps) => {
146-
const containerRef = useRef<HTMLDivElement>();
147-
const echart = useRef<echarts.ECharts>();
146+
const containerRef = useRef<HTMLDivElement>(null);
147+
const echart = useRef<echarts.ECharts>(null);
148148
const [update, forceUpdate] = useReducer((x) => x + 1, 0);
149149

150150
const getSize = () => ({

packages/react-charts/src/victory/components/Chart/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ export const Chart: React.FunctionComponent<ChartProps> = ({
609609
const renderChildren = () =>
610610
Children.toArray(children).map((child, index) => {
611611
if (isValidElement(child)) {
612-
const { ...childProps } = child.props;
612+
const { ...childProps } = child.props as any;
613613
return cloneElement(child, {
614614
colorScale,
615615
...(defaultPatternScale && { patternScale: defaultPatternScale }),

packages/react-charts/src/victory/components/ChartDonutUtilization/ChartDonutThreshold.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export const ChartDonutThreshold: React.FunctionComponent<ChartDonutThresholdPro
502502
const renderChildren = () =>
503503
Children.toArray(children).map((child, index) => {
504504
if (isValidElement(child)) {
505-
const { data: childData, ...childProps } = child.props;
505+
const { data: childData, ...childProps } = child.props as any;
506506
const datum = Data.formatData([childData], childProps, ['x', 'y']); // Format child data independently of this component's props
507507
const dynamicTheme = childProps.theme || getDonutThresholdDynamicTheme(childProps.themeColor || themeColor);
508508
return cloneElement(child, {

packages/react-charts/src/victory/components/ChartUtils/chart-patterns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export const useDefaultPatternProps = ({
374374
export const renderChildrenWithPatterns = ({ children, patternScale, themeColor }: PatternPropsInterface) =>
375375
Children.toArray(children).map((child, index) => {
376376
if (isValidElement(child)) {
377-
const { ...childProps } = child.props;
377+
const { ...childProps } = child.props as any;
378378
const style = childProps.style ? { ...childProps.style } : {};
379379

380380
// Merge pattern IDs with `style.data.fill` property

packages/react-code-editor/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"tslib": "^2.8.1"
3939
},
4040
"peerDependencies": {
41-
"react": "^17 || ^18",
42-
"react-dom": "^17 || ^18"
41+
"react": "^17 || ^18 || ^19",
42+
"react-dom": "^17 || ^18 || ^19"
4343
},
4444
"devDependencies": {
4545
"monaco-editor": "^0.52.2"

packages/react-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fs-extra": "^11.3.0"
6161
},
6262
"peerDependencies": {
63-
"react": "^17 || ^18",
64-
"react-dom": "^17 || ^18"
63+
"react": "^17 || ^18 || ^19",
64+
"react-dom": "^17 || ^18 || ^19"
6565
}
6666
}

packages/react-core/src/components/ExpandableSection/ExpandableSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export enum ExpandableSectionVariant {
1515

1616
/** The main expandable section component. */
1717

18-
export interface ExpandableSectionProps extends React.HTMLProps<HTMLDivElement> {
18+
export interface ExpandableSectionProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
1919
/** Content rendered inside the expandable section. */
2020
children?: React.ReactNode;
2121
/** Additional classes added to the expandable section. */

0 commit comments

Comments
 (0)