Skip to content

Commit

Permalink
Upgrade React to v18.3 (#61202)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: derekblank <[email protected]>
  • Loading branch information
5 people authored Apr 30, 2024
1 parent 0cb3850 commit d504dd1
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 79 deletions.
124 changes: 62 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"@storybook/source-loader": "7.6.15",
"@storybook/theming": "7.6.15",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
"@testing-library/react": "14.3.0",
"@testing-library/react-native": "12.4.3",
"@testing-library/user-event": "14.4.3",
"@types/eslint": "8.56.9",
Expand Down Expand Up @@ -231,12 +231,12 @@
"postcss-loader": "6.2.1",
"prettier": "npm:[email protected]",
"progress": "2.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.73.3",
"react-native-url-polyfill": "1.1.2",
"react-refresh": "0.14.0",
"react-test-renderer": "18.2.0",
"react-test-renderer": "18.3.1",
"reassure": "0.7.1",
"redux": "4.1.2",
"resize-observer-polyfill": "1.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@wordpress/warning": "file:../warning",
"browserslist": "^4.21.10",
"core-js": "^3.31.0",
"react": "^18.2.0"
"react": "^18.3.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"hpq": "^1.3.0",
"is-plain-object": "^5.0.0",
"memize": "^2.1.0",
"react-is": "^18.2.0",
"react-is": "^18.3.0",
"remove-accents": "^0.5.0",
"showdown": "^1.9.1",
"simple-html-tokenizer": "^0.5.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Tooltip( { children, onPress, style, visible } ) {
);
}

function Label( { align, text, xOffset, yOffset } ) {
function Label( { align = 'center', text, xOffset = 0, yOffset = 0 } ) {
const animationValue = useRef( new Animated.Value( 0 ) ).current;
const [ dimensions, setDimensions ] = useState( null );
const visible = useContext( TooltipContext );
Expand Down Expand Up @@ -139,12 +139,6 @@ function Label( { align, text, xOffset, yOffset } ) {
);
}

Label.defaultProps = {
align: 'center',
xOffset: 0,
yOffset: 0,
};

Tooltip.Label = Label;

export default Tooltip;
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@wordpress/escape-html": "file:../escape-html",
"change-case": "^4.1.2",
"is-plain-object": "^5.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.0",
"react-dom": "^18.3.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions platform-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.0",
"react-dom": "^18.3.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.1.1",
Expand Down

0 comments on commit d504dd1

Please sign in to comment.