From 63afb64bfb8580101b3e2ae3f6c22e751fec92f7 Mon Sep 17 00:00:00 2001 From: Marcelo Serpa Date: Thu, 18 Apr 2024 19:27:04 -0600 Subject: [PATCH 1/3] Remove "experimental" designation for `View` --- packages/components/src/index.ts | 8 +++++++- packages/components/src/spacer/README.md | 2 +- packages/components/src/view/README.md | 2 +- packages/components/src/view/stories/index.story.tsx | 2 +- storybook/manager-head.html | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index a824162cb24129..8844977b2a6903 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -187,7 +187,13 @@ export { useCustomUnits as __experimentalUseCustomUnits, parseQuantityAndUnitFromRawValue as __experimentalParseQuantityAndUnitFromRawValue, } from './unit-control'; -export { View as __experimentalView } from './view'; +export { + /** + * @deprecated Import `View` instead. + */ + View as __experimentalView, + View, +} from './view'; export { VisuallyHidden } from './visually-hidden'; export { VStack as __experimentalVStack } from './v-stack'; export { default as IsolatedEventContainer } from './isolated-event-container'; diff --git a/packages/components/src/spacer/README.md b/packages/components/src/spacer/README.md index 16160d39b61fa0..6daca7f7cb3b35 100644 --- a/packages/components/src/spacer/README.md +++ b/packages/components/src/spacer/README.md @@ -14,7 +14,7 @@ This feature is still experimental. “Experimental” means this is an early im import { __experimentalSpacer as Spacer, __experimentalHeading as Heading, - __experimentalView as View, + View, } from '@wordpress/components'; function Example() { diff --git a/packages/components/src/view/README.md b/packages/components/src/view/README.md index c1e04ebd8cfff4..ce5b0746b82495 100644 --- a/packages/components/src/view/README.md +++ b/packages/components/src/view/README.md @@ -13,7 +13,7 @@ This feature is still experimental. “Experimental” means this is an early im ```jsx import { __experimentalText as Text, - __experimentalView as View, + View, } from '@wordpress/components'; function Example() { diff --git a/packages/components/src/view/stories/index.story.tsx b/packages/components/src/view/stories/index.story.tsx index 324825059deb20..233cee15f8ffcb 100644 --- a/packages/components/src/view/stories/index.story.tsx +++ b/packages/components/src/view/stories/index.story.tsx @@ -10,7 +10,7 @@ import { View } from '..'; const meta: Meta< typeof View > = { component: View, - title: 'Components (Experimental)/View', + title: 'Components/View', argTypes: { as: { control: { type: null } }, children: { control: { type: 'text' } }, diff --git a/storybook/manager-head.html b/storybook/manager-head.html index 629f06bf98edf9..c1151e77b0209b 100644 --- a/storybook/manager-head.html +++ b/storybook/manager-head.html @@ -1,6 +1,6 @@