diff --git a/packages/block-library/src/gallery/transforms.js b/packages/block-library/src/gallery/transforms.js index f499b689b2a0df..676d8276413976 100644 --- a/packages/block-library/src/gallery/transforms.js +++ b/packages/block-library/src/gallery/transforms.js @@ -13,10 +13,6 @@ import { LINK_DESTINATION_NONE, LINK_DESTINATION_MEDIA, } from './constants'; -import { - LINK_DESTINATION_ATTACHMENT as DEPRECATED_LINK_DESTINATION_ATTACHMENT, - LINK_DESTINATION_MEDIA as DEPRECATED_LINK_DESTINATION_MEDIA, -} from './v1/constants'; import { pickRelevantMediaFiles, isGalleryV2Enabled } from './shared'; const parseShortcodeIds = ( ids ) => { @@ -177,56 +173,6 @@ const transforms = { { type: 'shortcode', tag: 'gallery', - - attributes: { - images: { - type: 'array', - shortcode: ( { named: { ids } } ) => { - if ( ! isGalleryV2Enabled() ) { - return parseShortcodeIds( ids ).map( ( id ) => ( { - id: id.toString(), - } ) ); - } - }, - }, - ids: { - type: 'array', - shortcode: ( { named: { ids } } ) => { - if ( ! isGalleryV2Enabled() ) { - return parseShortcodeIds( ids ); - } - }, - }, - columns: { - type: 'number', - shortcode: ( { named: { columns = '3' } } ) => { - return parseInt( columns, 10 ); - }, - }, - linkTo: { - type: 'string', - shortcode: ( { named: { link } } ) => { - if ( ! isGalleryV2Enabled() ) { - switch ( link ) { - case 'post': - return DEPRECATED_LINK_DESTINATION_ATTACHMENT; - case 'file': - return DEPRECATED_LINK_DESTINATION_MEDIA; - default: - return DEPRECATED_LINK_DESTINATION_ATTACHMENT; - } - } - switch ( link ) { - case 'post': - return LINK_DESTINATION_ATTACHMENT; - case 'file': - return LINK_DESTINATION_MEDIA; - default: - return LINK_DESTINATION_NONE; - } - }, - }, - }, transform( { named: { ids, columns = 3, link } } ) { const imageIds = parseShortcodeIds( ids ).map( ( id ) => parseInt( id, 10 ) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index f23b7ae308ede0..acf5a57bfe6d69 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -14,6 +14,7 @@ - `Snackbar`: Remove erroneous `__unstableHTML` prop from TypeScript definitions ([#57218](https://github.com/WordPress/gutenberg/pull/57218)). - `Truncate`: improve handling of non-string `children` ([#57261](https://github.com/WordPress/gutenberg/pull/57261)). - `PaletteEdit`: Don't discard colors with default name and slug ([#54332](https://github.com/WordPress/gutenberg/pull/54332)). +- `RadioControl`: Fully encapsulate styles ([#57347](https://github.com/WordPress/gutenberg/pull/57347)). ### Enhancements @@ -21,6 +22,7 @@ - `DropdownMenuV2`: do not collapse suffix width ([#57238](https://github.com/WordPress/gutenberg/pull/57238)). - `DateTimePicker`: Adjustment of the dot position on DayButton and expansion of the button area. ([#55502](https://github.com/WordPress/gutenberg/pull/55502)). - `Modal`: Improve application of body class names ([#55430](https://github.com/WordPress/gutenberg/pull/55430)). +- `ToggleGroupControl`: Update button size in large variant to be 32px ([#57338](https://github.com/WordPress/gutenberg/pull/57338)). ### Experimental diff --git a/packages/components/src/radio-control/index.tsx b/packages/components/src/radio-control/index.tsx index 4a8875bce0a2a3..0f87f5de7c94e2 100644 --- a/packages/components/src/radio-control/index.tsx +++ b/packages/components/src/radio-control/index.tsx @@ -92,7 +92,10 @@ export function RadioControl( } { ...additionalProps } /> -