From 8edfdea705c2e007512b98ffcaf4640c271163f0 Mon Sep 17 00:00:00 2001 From: hbhalodia Date: Fri, 1 Nov 2024 09:30:02 +0530 Subject: [PATCH 1/3] Group the storybook components in Layout category --- packages/components/src/h-stack/stories/index.story.tsx | 3 ++- .../components/src/responsive-wrapper/stories/index.story.tsx | 3 ++- packages/components/src/v-stack/stories/index.story.tsx | 3 ++- storybook/preview.js | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/components/src/h-stack/stories/index.story.tsx b/packages/components/src/h-stack/stories/index.story.tsx index 88aebb7682e476..1eb865ed8a9613 100644 --- a/packages/components/src/h-stack/stories/index.story.tsx +++ b/packages/components/src/h-stack/stories/index.story.tsx @@ -42,7 +42,8 @@ const JUSTIFICATIONS = { const meta: Meta< typeof HStack > = { component: HStack, - title: 'Components (Experimental)/HStack', + title: 'Components (Experimental)/Layout/HStack', + id: 'components-hstack', argTypes: { as: { control: { type: null }, diff --git a/packages/components/src/responsive-wrapper/stories/index.story.tsx b/packages/components/src/responsive-wrapper/stories/index.story.tsx index cf676c3bcec801..d684a00c870028 100644 --- a/packages/components/src/responsive-wrapper/stories/index.story.tsx +++ b/packages/components/src/responsive-wrapper/stories/index.story.tsx @@ -10,7 +10,8 @@ import ResponsiveWrapper from '..'; const meta: Meta< typeof ResponsiveWrapper > = { component: ResponsiveWrapper, - title: 'Components/ResponsiveWrapper', + title: 'Components/Layout/ResponsiveWrapper', + id: 'components-responsivewrapper', argTypes: { children: { control: { type: null } }, }, diff --git a/packages/components/src/v-stack/stories/index.story.tsx b/packages/components/src/v-stack/stories/index.story.tsx index 781c1bce6676cc..af6a4f437f6580 100644 --- a/packages/components/src/v-stack/stories/index.story.tsx +++ b/packages/components/src/v-stack/stories/index.story.tsx @@ -25,7 +25,8 @@ const ALIGNMENTS = { const meta: Meta< typeof VStack > = { component: VStack, - title: 'Components (Experimental)/VStack', + title: 'Components (Experimental)/Layout/VStack', + id: 'components-vstack', argTypes: { alignment: { control: { type: 'select' }, diff --git a/storybook/preview.js b/storybook/preview.js index 21f2eab912059a..6a86976176e234 100644 --- a/storybook/preview.js +++ b/storybook/preview.js @@ -132,9 +132,11 @@ export const parameters = { 'Contributing Guidelines', 'Actions', 'Containers', + 'Layout', 'Utilities', ], 'Components (Experimental)', + [ 'Layout' ], 'Icons', ], }, From 3263cb22864560f724f68176f4f45e0da6c3706c Mon Sep 17 00:00:00 2001 From: hbhalodia Date: Thu, 7 Nov 2024 10:31:22 +0530 Subject: [PATCH 2/3] Fix the experimental component id --- packages/components/src/h-stack/stories/index.story.tsx | 2 +- packages/components/src/v-stack/stories/index.story.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/h-stack/stories/index.story.tsx b/packages/components/src/h-stack/stories/index.story.tsx index 1eb865ed8a9613..025c3384bddceb 100644 --- a/packages/components/src/h-stack/stories/index.story.tsx +++ b/packages/components/src/h-stack/stories/index.story.tsx @@ -43,7 +43,7 @@ const JUSTIFICATIONS = { const meta: Meta< typeof HStack > = { component: HStack, title: 'Components (Experimental)/Layout/HStack', - id: 'components-hstack', + id: 'components-experimental-hstack', argTypes: { as: { control: { type: null }, diff --git a/packages/components/src/v-stack/stories/index.story.tsx b/packages/components/src/v-stack/stories/index.story.tsx index af6a4f437f6580..11d6d579abc81e 100644 --- a/packages/components/src/v-stack/stories/index.story.tsx +++ b/packages/components/src/v-stack/stories/index.story.tsx @@ -26,7 +26,7 @@ const ALIGNMENTS = { const meta: Meta< typeof VStack > = { component: VStack, title: 'Components (Experimental)/Layout/VStack', - id: 'components-vstack', + id: 'components-experimental-vstack', argTypes: { alignment: { control: { type: 'select' }, From f4b5befb59038c88a20c5344f34bba1c5d239510 Mon Sep 17 00:00:00 2001 From: hbhalodia Date: Fri, 8 Nov 2024 10:14:43 +0530 Subject: [PATCH 3/3] Revert the unwanted changes in PR --- packages/block-library/src/image/block.json | 9 +-------- packages/block-library/src/post-content/block.json | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index 26835df9e856cd..16e31217476026 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -4,14 +4,7 @@ "name": "core/image", "title": "Image", "category": "media", - "usesContext": [ - "allowResize", - "imageCrop", - "fixedHeight", - "postId", - "postType", - "queryId" - ], + "usesContext": [ "allowResize", "imageCrop", "fixedHeight", "postId", "postType", "queryId" ], "description": "Insert an image to make a visual statement.", "keywords": [ "img", "photo", "picture" ], "textdomain": "default", diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index e5d455b97a8a3d..ed9c47154b2f8e 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -69,4 +69,4 @@ }, "style": "wp-block-post-content", "editorStyle": "wp-block-post-content-editor" -} +} \ No newline at end of file