diff --git a/package-lock.json b/package-lock.json index a46c96e1a2dd..7b4119bf19ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -134,7 +134,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", @@ -29352,9 +29352,9 @@ } }, "node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/package.json b/package.json index b91848e4d3e3..9a6df9dcf309 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/dashboard/src/components/inlineInputForm/index.js b/packages/dashboard/src/components/inlineInputForm/index.js index 295f53b86ffe..287d7cb2d700 100644 --- a/packages/dashboard/src/components/inlineInputForm/index.js +++ b/packages/dashboard/src/components/inlineInputForm/index.js @@ -60,14 +60,10 @@ const InlineInputForm = ({ 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(); + }, [onEditCancel]); useEffect(() => { if (!noAutoFocus && inputContainerRef.current) { diff --git a/packages/story-editor/src/components/library/panes/shared/virtualizedPanelGrid/useVirtualizedGridNavigation.js b/packages/story-editor/src/components/library/panes/shared/virtualizedPanelGrid/useVirtualizedGridNavigation.js index f5366fb1d0b6..c71a6df362c2 100644 --- a/packages/story-editor/src/components/library/panes/shared/virtualizedPanelGrid/useVirtualizedGridNavigation.js +++ b/packages/story-editor/src/components/library/panes/shared/virtualizedPanelGrid/useVirtualizedGridNavigation.js @@ -118,13 +118,9 @@ export default function useVirtualizedGridNavigation({ useKeyDownEffect(containerRef, 'tab', onTabKeyDown, [onTabKeyDown]); - useFocusOut( - containerRef, - () => { - setIsGridFocused(false); - }, - [] - ); + useFocusOut(containerRef, () => { + setIsGridFocused(false); + }, []); return useMemo( () => ({ diff --git a/packages/story-editor/src/components/library/panes/text/textPane.js b/packages/story-editor/src/components/library/panes/text/textPane.js index dc46ee8aaf66..31f7e8f23d7e 100644 --- a/packages/story-editor/src/components/library/panes/text/textPane.js +++ b/packages/story-editor/src/components/library/panes/text/textPane.js @@ -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), diff --git a/packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js b/packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js index e613824aa585..6a9a789adbdc 100644 --- a/packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js +++ b/packages/wp-dashboard/src/components/editorSettings/publisherLogo/index.js @@ -149,14 +149,10 @@ function PublisherLogoSettings({ setFocusedPublisherLogoId(newMenuId); }, []); - useFocusOut( - containerRef, - () => { - setFocusedPublisherLogoId(null); - setContextMenuId(null); - }, - [] - ); + useFocusOut(containerRef, () => { + setFocusedPublisherLogoId(null); + setContextMenuId(null); + }, []); return (