diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 0d819fd3d02c3f..2cf9c66df824ab 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -2,10 +2,6 @@ ## Unreleased -### New Feature - -- `Motion`: Expose `useAnimation` from framer motion package. - ## 23.8.0 (2023-04-12) ### Internal diff --git a/packages/components/src/animation/index.tsx b/packages/components/src/animation/index.tsx index c7a81b1e7633b6..ceeb89da7f3297 100644 --- a/packages/components/src/animation/index.tsx +++ b/packages/components/src/animation/index.tsx @@ -10,5 +10,4 @@ export { motion as __unstableMotion, AnimatePresence as __unstableAnimatePresence, - useAnimation as __unstableUseAnimation, } from 'framer-motion'; diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index 429a03b2cd7def..90ed86944dbec4 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -17,11 +17,7 @@ export { default as Animate, getAnimateClassName as __unstableGetAnimateClassName, } from './animate'; -export { - __unstableMotion, - __unstableAnimatePresence, - __unstableUseAnimation, -} from './animation'; +export { __unstableMotion, __unstableAnimatePresence } from './animation'; export { default as AnglePickerControl } from './angle-picker-control'; export { default as Autocomplete, diff --git a/packages/edit-site/src/components/site-hub/index.js b/packages/edit-site/src/components/site-hub/index.js index a13d45d4d46321..469f48d129eb69 100644 --- a/packages/edit-site/src/components/site-hub/index.js +++ b/packages/edit-site/src/components/site-hub/index.js @@ -11,7 +11,6 @@ import { Button, __unstableMotion as motion, __unstableAnimatePresence as AnimatePresence, - __unstableUseAnimation as useAnimation, __experimentalHStack as HStack, } from '@wordpress/components'; import { useReducedMotion } from '@wordpress/compose'; @@ -19,7 +18,7 @@ import { __ } from '@wordpress/i18n'; import { store as blockEditorStore } from '@wordpress/block-editor'; import { store as coreStore } from '@wordpress/core-data'; import { decodeEntities } from '@wordpress/html-entities'; -import { forwardRef, useEffect } from '@wordpress/element'; +import { forwardRef } from '@wordpress/element'; /** * Internal dependencies @@ -58,18 +57,12 @@ const SiteHub = forwardRef( ( props, ref ) => { [] ); - const controls = useAnimation(); - useEffect( () => { - controls.set( { layout: true } ); - }, [ controls ] ); - return ( {