From db3b7f45acedd45a00d4912e931cd5145391205f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 07:24:32 +0000 Subject: [PATCH 1/2] Bump prettier from 3.2.5 to 3.3.3 Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.3. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.3) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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", From 2a79aed095ddf8f4488ed2677323000b5d5315ac Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 27 Aug 2024 09:35:44 +0200 Subject: [PATCH 2/2] Format files [dependabot skip] --- .../src/components/inlineInputForm/index.js | 12 ++++-------- .../useVirtualizedGridNavigation.js | 10 +++------- .../src/components/library/panes/text/textPane.js | 10 +++------- .../components/editorSettings/publisherLogo/index.js | 12 ++++-------- 4 files changed, 14 insertions(+), 30 deletions(-) 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 (