Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump prettier from 3.2.5 to 3.3.3 #13753

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"postcss-jsx": "^0.36.4",
"postcss-styled-syntax": "^0.6.4",
"postcss-syntax": "^0.36.2",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"puppeteer": "^21.9.0",
"react-refresh": "^0.14.2",
"react-test-renderer": "^17.0.2",
Expand Down
12 changes: 4 additions & 8 deletions packages/dashboard/src/components/inlineInputForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@
setNewValue(value);
}, [value]);

useFocusOut(
inputContainerRef,
() => {
// cancel changes when user focuses away from input
onEditCancel();
},
[onEditCancel]
);
useFocusOut(inputContainerRef, () => {
// cancel changes when user focuses away from input
onEditCancel();

Check warning on line 65 in packages/dashboard/src/components/inlineInputForm/index.js

View check run for this annotation

Codecov / codecov/patch

packages/dashboard/src/components/inlineInputForm/index.js#L65

Added line #L65 was not covered by tests
}, [onEditCancel]);

useEffect(() => {
if (!noAutoFocus && inputContainerRef.current) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,9 @@ export default function useVirtualizedGridNavigation({

useKeyDownEffect(containerRef, 'tab', onTabKeyDown, [onTabKeyDown]);

useFocusOut(
containerRef,
() => {
setIsGridFocused(false);
},
[]
);
useFocusOut(containerRef, () => {
setIsGridFocused(false);
}, []);

return useMemo(
() => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,9 @@ function TextPane(props) {
({ actions }) => actions.generateDeferredCurrentPageCanvas
);

useResizeEffect(
paneRef,
() => {
forceUpdate(Date.now());
},
[]
);
useResizeEffect(paneRef, () => {
forceUpdate(Date.now());
}, []);

const handleToggleClick = useCallback(
() => setShouldUseSmartColor((currentValue) => !currentValue),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,10 @@
setFocusedPublisherLogoId(newMenuId);
}, []);

useFocusOut(
containerRef,
() => {
setFocusedPublisherLogoId(null);
setContextMenuId(null);
},
[]
);
useFocusOut(containerRef, () => {
setFocusedPublisherLogoId(null);
setContextMenuId(null);

Check warning on line 154 in packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js

View check run for this annotation

Codecov / codecov/patch

packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js#L153-L154

Added lines #L153 - L154 were not covered by tests
}, []);

return (
<SettingForm>
Expand Down
Loading