/**
 * External dependencies
 */
import { addFilter } from '@wordpress/hooks';

/**
 * Internal dependencies
 */
import AnimationOptions from './controls';

/**
 * Filters additional animation options into the block editor.
 *
 * This filter hook injects the Pro version of the `AnimationOptions` panel
 * into the block editor's inspector controls. It enhances the core animation
 * settings by appending advanced controls (e.g. duration, delay, easing, once),
 * and is conditionally rendered only when an animation type is selected.
 *
 * Hook Name: `spectra.animations-extension.options`
 * Namespace: `spectra-pro/add-animations-options`
 *
 * @since x.x.x
 *
 * @param {null}   defaultValue Default value passed to the filter.
 * @param {Object} props        Props including attributes and setAttributes.
 * @return {Element|null} JSX element containing extra controls, or the original default.
 */
addFilter( 'spectra.animations-extension.options', 'spectra-pro/add-animations-options', AnimationOptions );
