Skip to content

Add Filter for animationsList #2677

@Sisanu

Description

@Sisanu

What problem does this address?

It would be a nice-to-have to add a filter for the animationsList. This would be especially useful for simplifying the list of animations shown in the editor.

What is your proposed solution?

import { applyFilters } from '@wordpress/hooks';

...

<AnimationPopover
	animationsList={ applyFilters( 'otter.blockAnimation.animationsList', animationsList ) }
	updateAnimation={ updateAnimation }
	currentAnimationLabel={ currentAnimationLabel }
	setCurrentAnimationLabel={ setCurrentAnimationLabel }
/>

Will this feature require documentation? (Optional)

Yes, it requires documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-neededThis issue requires documentation updates or additions once it has been completed.new featureRequest for a new feature or functionality to be added to the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions