Skip to content

Components: Assess stabilization of ConfirmDialog - #61014

Closed
fullofcaffeine wants to merge 2 commits into
trunkfrom
remove/wp-components-experimental-designation-for-confirmdialog
Closed

Components: Assess stabilization of ConfirmDialog#61014
fullofcaffeine wants to merge 2 commits into
trunkfrom
remove/wp-components-experimental-designation-for-confirmdialog

Conversation

@fullofcaffeine

Copy link
Copy Markdown
Member

Issue: #59418.

What?

This is part of a larger effort to remove __experimental prefix from all "experimental" components, effectively promoting them to regular stable components. See the related issue for more context.

Why?

The strategy of prefixing exports with __experimental has become deprecated after the introduction of private APIs.

How?

  1. Export it from components without the __experimental prefix;
  2. Keep the old __experimental export for backwards compatibility;
  3. Change all imports of the old __experimental in GB and components to the one without the prefix (including in storybook stories). Also, update the docs to refer to the new unprefixed component;
  4. Add the component storybook id (get it from the storybook URL) to the PREVIOUSLY_EXPERIMENTAL_COMPONENTS const array in manager-head.html so that old experimental story paths are redirected to the new one;
  5. Add a changelog for the change.

@fullofcaffeine fullofcaffeine added [Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality labels Apr 24, 2024
@fullofcaffeine fullofcaffeine changed the title Components: Remove "experimental" designation for ConfirmDialog Components: Assess stabilization of ConfirmDialog Apr 30, 2024
@mirka

mirka commented Jun 17, 2026

Copy link
Copy Markdown
Member

Will be succeeded by AlertDialog in @wordpress/ui. Added a note to the Storybook in #79293.

@mirka mirka closed this Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants