From cc1895750ef3dcb300ac53d2519c8700f294b82b Mon Sep 17 00:00:00 2001 From: benazeer-ben Date: Tue, 26 Nov 2024 11:40:54 +0530 Subject: [PATCH] Doc Build --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/embed/block.json | 8 +++----- packages/block-library/src/embed/embed-preview.js | 7 ++----- packages/block-library/src/embed/save.js | 7 ++----- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 88cab6efc156fe..dd49d156857249 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -263,7 +263,7 @@ Add a block that displays content pulled from other sites, like Twitter or YouTu - **Name:** core/embed - **Category:** embed -- **Supports:** align, interactivity (clientNavigation), spacing (margin, padding) +- **Supports:** align, interactivity (clientNavigation), spacing (margin) - **Attributes:** allowResponsive, caption, previewable, providerNameSlug, responsive, type, url ## File diff --git a/packages/block-library/src/embed/block.json b/packages/block-library/src/embed/block.json index 8d760f04cf9bc4..83f1f61a2ebee1 100644 --- a/packages/block-library/src/embed/block.json +++ b/packages/block-library/src/embed/block.json @@ -43,20 +43,18 @@ "supports": { "align": true, "spacing": { - "margin": true, - "padding": true, - "__experimentalSkipSerialization": [ "padding" ] + "margin": true }, "interactivity": { "clientNavigation": true }, "__experimentalBorder": { - "radius": true, + "radius": false, "color": true, "width": true, "style": true, "__experimentalDefaultControls": { - "radius": true, + "radius": false, "color": true, "width": true, "style": true diff --git a/packages/block-library/src/embed/embed-preview.js b/packages/block-library/src/embed/embed-preview.js index c76b096343df79..593f2c3d5be66e 100644 --- a/packages/block-library/src/embed/embed-preview.js +++ b/packages/block-library/src/embed/embed-preview.js @@ -16,7 +16,6 @@ import { Placeholder, SandBox } from '@wordpress/components'; import { BlockIcon, __experimentalUseBorderProps as useBorderProps, - __experimentalGetSpacingClassesAndStyles as getSpacingClassesAndStyles, } from '@wordpress/block-editor'; import { useState } from '@wordpress/element'; import { getAuthority } from '@wordpress/url'; @@ -70,7 +69,6 @@ export default function EmbedPreview( { 'wp-block-embed__wrapper' ); const borderProps = useBorderProps( attributes ); - const spacingProps = getSpacingClassesAndStyles( attributes ); // Disabled because the overlay div doesn't actually have a role or functionality // as far as the user is concerned. We're just catching the first click so that @@ -83,10 +81,9 @@ export default function EmbedPreview( {
{ `\n${ url }\n` /* URL needs to be on its own line. */ }