From 1ee2e3c10f60212a9e1e1c27d62d9000401653aa Mon Sep 17 00:00:00 2001 From: Amit Raj <77401999+amitraj2203@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:14:06 +0530 Subject: [PATCH 01/34] Add tooltip on hover of color and typography presets (#62201) * Add tooltip to color presets * Adds inline comment for the extra div Co-authored-by: Ben Dwyer * Add tooltip to variation --------- Co-authored-by: Ben Dwyer Unlinked contributors: sahiladit. Co-authored-by: amitraj2203 Co-authored-by: scruffian Co-authored-by: bgardner Co-authored-by: carolinan --- .../global-styles/variations/variation.js | 59 ++++++++++++------- .../variations/variations-color.js | 1 + .../variations/variations-typography.js | 1 + 3 files changed, 39 insertions(+), 22 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/variations/variation.js b/packages/edit-site/src/components/global-styles/variations/variation.js index 1c1418a54931f..d08116577b0c8 100644 --- a/packages/edit-site/src/components/global-styles/variations/variation.js +++ b/packages/edit-site/src/components/global-styles/variations/variation.js @@ -6,6 +6,7 @@ import clsx from 'clsx'; /** * WordPress dependencies */ +import { Tooltip } from '@wordpress/components'; import { useMemo, useContext, useState } from '@wordpress/element'; import { ENTER } from '@wordpress/keycodes'; import { __, sprintf } from '@wordpress/i18n'; @@ -23,7 +24,13 @@ const { GlobalStylesContext, areGlobalStyleConfigsEqual } = unlock( blockEditorPrivateApis ); -export default function Variation( { variation, children, isPill, property } ) { +export default function Variation( { + variation, + children, + isPill, + property, + showTooltip, +} ) { const [ isFocused, setIsFocused ] = useState( false ); const { base, user, setUserConfig } = useContext( GlobalStylesContext ); @@ -64,30 +71,38 @@ export default function Variation( { variation, children, isPill, property } ) { ); } - return ( - + const content = ( +
setIsFocused( true ) } + onBlur={ () => setIsFocused( false ) } + >
setIsFocused( true ) } - onBlur={ () => setIsFocused( false ) } + className={ clsx( + 'edit-site-global-styles-variations_item-preview', + { 'is-pill': isPill } + ) } > -
- { children( isFocused ) } -
+ { children( isFocused ) }
+
+ ); + + return ( + + { showTooltip ? ( + { content } + ) : ( + content + ) } ); } diff --git a/packages/edit-site/src/components/global-styles/variations/variations-color.js b/packages/edit-site/src/components/global-styles/variations/variations-color.js index e84145afe2858..6422ac0cb72d8 100644 --- a/packages/edit-site/src/components/global-styles/variations/variations-color.js +++ b/packages/edit-site/src/components/global-styles/variations/variations-color.js @@ -32,6 +32,7 @@ export default function ColorVariations( { title, gap = 2 } ) { variation={ variation } isPill property="color" + showTooltip > { () => } diff --git a/packages/edit-site/src/components/global-styles/variations/variations-typography.js b/packages/edit-site/src/components/global-styles/variations/variations-typography.js index 689340cee9bd8..2aa5aaf80ee1f 100644 --- a/packages/edit-site/src/components/global-styles/variations/variations-typography.js +++ b/packages/edit-site/src/components/global-styles/variations/variations-typography.js @@ -39,6 +39,7 @@ export default function TypographyVariations( { title, gap = 2 } ) { key={ index } variation={ variation } property="typography" + showTooltip > { ( isFocused ) => ( Date: Tue, 25 Jun 2024 19:12:35 +0200 Subject: [PATCH 02/34] Fix lock modal dialog accessibility and semantics (#62795) * Use fieldset and legend instead of labeled group. * Make lock options a nested list. Co-authored-by: afercia Co-authored-by: alexstine Co-authored-by: t-hamano Co-authored-by: Mamaduka --- .../src/components/block-lock/modal.js | 177 ++++++++++-------- .../src/components/block-lock/style.scss | 12 +- 2 files changed, 106 insertions(+), 83 deletions(-) diff --git a/packages/block-editor/src/components/block-lock/modal.js b/packages/block-editor/src/components/block-lock/modal.js index cfafa6c031bbd..11a03c5aff4dd 100644 --- a/packages/block-editor/src/components/block-lock/modal.js +++ b/packages/block-editor/src/components/block-lock/modal.js @@ -13,7 +13,6 @@ import { ToggleControl, } from '@wordpress/components'; import { lock as lockIcon, unlock as unlockIcon } from '@wordpress/icons'; -import { useInstanceId } from '@wordpress/compose'; import { useDispatch, useSelect } from '@wordpress/data'; import { getBlockType } from '@wordpress/blocks'; @@ -64,10 +63,6 @@ export default function BlockLockModal( { clientId, onClose } ) { ); const { updateBlockAttributes } = useDispatch( blockEditorStore ); const blockInformation = useBlockDisplayInformation( clientId ); - const instanceId = useInstanceId( - BlockLockModal, - 'block-editor-block-lock-modal__options-title' - ); useEffect( () => { setLock( { @@ -90,11 +85,6 @@ export default function BlockLockModal( { clientId, onClose } ) { overlayClassName="block-editor-block-lock-modal" onRequestClose={ onClose } > -

- { __( - 'Choose specific attributes to restrict or lock all available options.' - ) } -

{ event.preventDefault(); @@ -107,84 +97,107 @@ export default function BlockLockModal( { clientId, onClose } ) { onClose(); } } > -
- { __( 'Lock all' ) } - } - checked={ isAllChecked } - indeterminate={ isMixed } - onChange={ ( newValue ) => - setLock( { - move: newValue, - remove: newValue, - ...( allowsEditLocking - ? { edit: newValue } - : {} ), - } ) - } - /> -
    - { allowsEditLocking && ( -
  • - - setLock( ( prevLock ) => ( { - ...prevLock, - edit, - } ) ) - } - /> - -
  • +
    + + { __( + 'Choose specific attributes to restrict or lock all available options.' ) } -
  • + + { /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + /* eslint-disable jsx-a11y/no-redundant-roles */ } +
      +
    • - setLock( ( prevLock ) => ( { - ...prevLock, - move, - } ) ) + className="block-editor-block-lock-modal__options-all" + label={ __( 'Lock all' ) } + checked={ isAllChecked } + indeterminate={ isMixed } + onChange={ ( newValue ) => + setLock( { + move: newValue, + remove: newValue, + ...( allowsEditLocking + ? { edit: newValue } + : {} ), + } ) } /> - -
    • -
    • - - setLock( ( prevLock ) => ( { - ...prevLock, - remove, - } ) ) - } - /> - +
        + { allowsEditLocking && ( +
      • + + setLock( ( prevLock ) => ( { + ...prevLock, + edit, + } ) ) + } + /> + +
      • + ) } +
      • + + setLock( ( prevLock ) => ( { + ...prevLock, + move, + } ) ) + } + /> + +
      • +
      • + + setLock( ( prevLock ) => ( { + ...prevLock, + remove, + } ) ) + } + /> + +
      • +
    + { /* eslint-enable jsx-a11y/no-redundant-roles */ } { hasTemplateLock && ( ) } -
+ Date: Wed, 26 Jun 2024 02:47:39 +0900 Subject: [PATCH 03/34] CustomSelectControlV2: Handle long strings in selected value (#62198) * CustomSelectControlV2: Handle long strings in selected value * Add truncate styles to custom render with hint * Add changelog Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla Co-authored-by: fullofcaffeine Co-authored-by: ciampo --- packages/components/CHANGELOG.md | 1 + .../custom-select.tsx | 2 +- .../legacy-component/index.tsx | 4 +-- .../src/custom-select-control-v2/styles.ts | 32 +++++++++++++------ 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 7210a25bbf7dd..689be70595c5d 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -12,6 +12,7 @@ - `CustomSelectControl`: align unit tests for v1 and legacy v2 versions. ([#62706](https://github.com/WordPress/gutenberg/pull/62706)) - `CustomSelectControlV2`: fix handling of extra option attributes in the `onChange` callbacks and when forwarding them to the option DOM elements. ([#62255](https://github.com/WordPress/gutenberg/pull/62255)) - `CustomSelectControlV2`: fix setting initial value and reacting to external controlled updates. ([#62733](https://github.com/WordPress/gutenberg/pull/62733)) +- `CustomSelectControlV2`: Handle long strings in selected value ([#62198](https://github.com/WordPress/gutenberg/pull/62198)). ## 28.1.0 (2024-06-15) diff --git a/packages/components/src/custom-select-control-v2/custom-select.tsx b/packages/components/src/custom-select-control-v2/custom-select.tsx index 9ae402d37f40d..414a805eccfb1 100644 --- a/packages/components/src/custom-select-control-v2/custom-select.tsx +++ b/packages/components/src/custom-select-control-v2/custom-select.tsx @@ -74,7 +74,7 @@ const CustomSelectButton = ( { // move selection rather than open the popover showOnKeyDown={ false } > -
{ computedRenderSelectedValue( currentValue ) }
+ { computedRenderSelectedValue( currentValue ) } ); }; diff --git a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx index 41be4f58d9147..e2b9a8a7471e5 100644 --- a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx +++ b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx @@ -90,12 +90,12 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) { ); return ( - <> + { currentValue } { currentHint?.__experimentalHint } - + ); }; diff --git a/packages/components/src/custom-select-control-v2/styles.ts b/packages/components/src/custom-select-control-v2/styles.ts index 676a9c1a1ec59..c75a9a79c71c5 100644 --- a/packages/components/src/custom-select-control-v2/styles.ts +++ b/packages/components/src/custom-select-control-v2/styles.ts @@ -10,16 +10,27 @@ import styled from '@emotion/styled'; */ import { COLORS, CONFIG } from '../utils'; import { space } from '../utils/space'; +import { chevronIconSize } from '../select-control/styles/select-control-styles'; import type { CustomSelectButtonSize } from './types'; const ITEM_PADDING = space( 2 ); +const truncateStyles = css` + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +`; + export const WithHintWrapper = styled.div` display: flex; justify-content: space-between; flex: 1; `; +export const SelectedExperimentalHintWrapper = styled.div` + ${ truncateStyles } +`; + export const SelectedExperimentalHintItem = styled.span` color: ${ COLORS.theme.gray[ 600 ] }; margin-inline-start: ${ space( 2 ) }; @@ -55,19 +66,18 @@ export const Select = styled( Ariakit.Select, { const sizes = { compact: { [ heightProperty ]: 32, - paddingInlineStart: space( 2 ), - paddingInlineEnd: space( 1 ), + paddingInlineStart: 8, + paddingInlineEnd: 8 + chevronIconSize, }, default: { [ heightProperty ]: 40, - paddingInlineStart: space( 4 ), - paddingInlineEnd: space( 3 ), + paddingInlineStart: 16, + paddingInlineEnd: 16 + chevronIconSize, }, small: { [ heightProperty ]: 24, - paddingInlineStart: space( 2 ), - paddingInlineEnd: space( 1 ), - fontSize: 11, + paddingInlineStart: 8, + paddingInlineEnd: 8 + chevronIconSize, }, }; @@ -75,13 +85,14 @@ export const Select = styled( Ariakit.Select, { }; return css` - display: flex; - align-items: center; - justify-content: space-between; + display: block; background-color: ${ COLORS.theme.background }; border: none; + color: ${ COLORS.theme.foreground }; cursor: pointer; + font-family: inherit; font-size: ${ CONFIG.fontSize }; + text-align: left; width: 100%; &[data-focus-visible] { @@ -89,6 +100,7 @@ export const Select = styled( Ariakit.Select, { } ${ getSize() } + ${ ! hasCustomRenderProp && truncateStyles } `; } ); From 913ebe0f87961b40a854c5808595ced2a13830e2 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:04:37 +1000 Subject: [PATCH 04/34] Generic name for previous version of WP tests. (#62853) Co-authored-by: peterwilsoncc Co-authored-by: talldan --- .github/workflows/unit-test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c983b0fd33843..488f41c217e7c 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -158,15 +158,15 @@ jobs: include: # Test with the previous WP version. - php: '7.2' - wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }} + wordpress: 'previous major version' - php: '7.4' - wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }} + wordpress: 'previous major version' - php: '8.2' - wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }} + wordpress: 'previous major version' env: WP_ENV_PHP_VERSION: ${{ matrix.php }} - WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wordpress ) }} + WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', needs.compute-previous-wordpress-version.outputs.previous-wordpress-version ) }} steps: - name: Checkout repository @@ -240,6 +240,7 @@ jobs: npm run wp-env run tests-wordpress php -i npm run wp-env run tests-wordpress /var/www/html/wp-content/plugins/gutenberg/vendor/bin/phpunit -- --version npm run wp-env run tests-wordpress locale -a + npm run wp-env run tests-cli wp core version - name: Running single site unit tests if: ${{ ! matrix.multisite }} From d2bc04c26cac2240d58eb1a4bde9d5771f4b4731 Mon Sep 17 00:00:00 2001 From: Gutenberg Repository Automation Date: Wed, 26 Jun 2024 07:17:51 +0000 Subject: [PATCH 05/34] Bump plugin version to 18.7.0-rc.1 --- gutenberg.php | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gutenberg.php b/gutenberg.php index 0edf6868f1aa0..2eb7a849f8731 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -5,7 +5,7 @@ * Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality. * Requires at least: 6.4 * Requires PHP: 7.2 - * Version: 18.6.1 + * Version: 18.7.0-rc.1 * Author: Gutenberg Team * Text Domain: gutenberg * diff --git a/package-lock.json b/package-lock.json index 2440b27e0f08b..8117087a979b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gutenberg", - "version": "18.6.1", + "version": "18.7.0-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "gutenberg", - "version": "18.6.1", + "version": "18.7.0-rc.1", "hasInstallScript": true, "license": "GPL-2.0-or-later", "dependencies": { diff --git a/package.json b/package.json index 9b025db89016a..ea2e441ad758d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gutenberg", - "version": "18.6.1", + "version": "18.7.0-rc.1", "private": true, "description": "A new WordPress editor experience.", "author": "The WordPress Contributors", From b649ec42f8b3a1ee6628b8bc09970c6a05867016 Mon Sep 17 00:00:00 2001 From: Gutenberg Repository Automation Date: Wed, 26 Jun 2024 07:41:28 +0000 Subject: [PATCH 06/34] Update Changelog for 18.7.0-rc.1 --- changelog.txt | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) diff --git a/changelog.txt b/changelog.txt index 38dbcadaa4d9c..3a00bcf11396f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,195 @@ == Changelog == += 18.7.0-rc.1 = + + +## Changelog + +### Enhancements + +- Add: Content panel for template parts. ([62034](https://github.com/WordPress/gutenberg/pull/62034)) +- Move Sticky toggle to status popover. ([62782](https://github.com/WordPress/gutenberg/pull/62782)) +- Rename yieldToMain to splitTask and export from @wordpress/interactivity. ([62665](https://github.com/WordPress/gutenberg/pull/62665)) +- Update: Check assignable properties on the duplicate action. ([62590](https://github.com/WordPress/gutenberg/pull/62590)) +- Update: Followups to the template and template_lock rest api addition. ([62696](https://github.com/WordPress/gutenberg/pull/62696)) +- Update: Reverse backport changes on post type REST API changes. ([62751](https://github.com/WordPress/gutenberg/pull/62751)) +- Align naming modals. ([62788](https://github.com/WordPress/gutenberg/pull/62788))y +- Add writing mode support to other blocks. ([62727](https://github.com/WordPress/gutenberg/pull/62727)) +- Display the DocumentBar for Style Book and Style Revisions. ([62669](https://github.com/WordPress/gutenberg/pull/62669)) +- fetchLinkSuggestions: Allow for partial matching. ([62570](https://github.com/WordPress/gutenberg/pull/62570)) +- DataViews: Support passing the registry to actions callbacks. ([62505](https://github.com/WordPress/gutenberg/pull/62505)) +- Add tooltip on hover of color and typography presets. ([62201](https://github.com/WordPress/gutenberg/pull/62201)) +- Revert change that removes the social link block when pressing backspace in the URL Popover. ([61344](https://github.com/WordPress/gutenberg/pull/61344)) + + +### Bug Fixes + +- Add `context` in post actions API. ([62443](https://github.com/WordPress/gutenberg/pull/62443)) +- Add `html` to reset styles for the `.editor-styles-wrapper` container. ([62350](https://github.com/WordPress/gutenberg/pull/62350)) +- Cherry pick script: Make authenticated requests. ([62473](https://github.com/WordPress/gutenberg/pull/62473)) +- Editor: Fix blocked Post Publish Panel buttons on mobile. ([62736](https://github.com/WordPress/gutenberg/pull/62736)) +- Fix cherry-pick script, add missing --repo arg. ([62643](https://github.com/WordPress/gutenberg/pull/62643)) +- Fix rawHandling, pasteHandling for mixed content with blocks and classic. ([62545](https://github.com/WordPress/gutenberg/pull/62545)) +- Fix: Active template is not highlighted properly in list view. ([62811](https://github.com/WordPress/gutenberg/pull/62811)) +- Fix: Check Capability to create pages on DataViews add new page button. ([62592](https://github.com/WordPress/gutenberg/pull/62592)) +- Fix: Check ability to create patterns on the add new pattern modal. ([62633](https://github.com/WordPress/gutenberg/pull/62633)) +- Fix: Check create capability on duplicate post action. ([62620](https://github.com/WordPress/gutenberg/pull/62620)) +- Fix: Check permissions on duplicate pattern and template part actions. ([62757](https://github.com/WordPress/gutenberg/pull/62757)) +- Fix: Comments and Pingbacks get cleared out when a pattern is edited. ([62507](https://github.com/WordPress/gutenberg/pull/62507)) +- Fix: DataViews: Active page is not highlighted properly in list view. ([62378](https://github.com/WordPress/gutenberg/pull/62378)) +- Fix: Include permission management on permanently delete, rename, and restore. ([62754](https://github.com/WordPress/gutenberg/pull/62754)) +- Fix: List view renders an empty menu when no actions are eligible. ([62786](https://github.com/WordPress/gutenberg/pull/62786)) +- Fix: Post_type template is not used when creating a page in site editor. ([62488](https://github.com/WordPress/gutenberg/pull/62488)) +- Fix: Resetting template part causes notification saying it's been delete. ([62521](https://github.com/WordPress/gutenberg/pull/62521)) +- Fix: The trash post action doesn't take into account user capabilities. ([62589](https://github.com/WordPress/gutenberg/pull/62589)) +- Inspector: Improve handling of long words in post titles. ([62691](https://github.com/WordPress/gutenberg/pull/62691)) +- Revert "Revert test data for `WithSlug` variation (#62579)". ([62587](https://github.com/WordPress/gutenberg/pull/62587)) +- Show publish panel only in edit mode. ([62813](https://github.com/WordPress/gutenberg/pull/62813)) +- Site Editor: Improve the frame animation. ([62676](https://github.com/WordPress/gutenberg/pull/62676)) +- DataViews: Remove selection correcting, set initial state. ([62796](https://github.com/WordPress/gutenberg/pull/62796)) +- Pattern overrides: Disallow override for image with caption/href. ([62747](https://github.com/WordPress/gutenberg/pull/62747)) +- Editor: Make VisualEditor a stacking context. ([62681](https://github.com/WordPress/gutenberg/pull/62681)) +- Fix toggle active font logic. ([62614](https://github.com/WordPress/gutenberg/pull/62614)) +- Save Panel: Remove connections icon and fix padding. ([62542](https://github.com/WordPress/gutenberg/pull/62542)) +- Editor: Render editPost slots only in the post editor (same for site editor). ([62531](https://github.com/WordPress/gutenberg/pull/62531)) +- Fix: Don't allow synced patterns to be inserted on shuffling. ([62422](https://github.com/WordPress/gutenberg/pull/62422)) +- Fix ExcerptPanel decode issue. ([62336](https://github.com/WordPress/gutenberg/pull/62336)) + +#### Block Library +- Add letter spacing inheritance for the navigation block. ([62745](https://github.com/WordPress/gutenberg/pull/62745)) +- Caption utility component: Allow the main CSS Class Name to be excluded from the markup. ([62485](https://github.com/WordPress/gutenberg/pull/62485)) +- Fix: Empty style attribute issue in navigation block. ([62600](https://github.com/WordPress/gutenberg/pull/62600)) +- Image Block: Fix Aspect Ratio button position. ([62776](https://github.com/WordPress/gutenberg/pull/62776)) +- Media & text: Update the image replacement logic. ([62030](https://github.com/WordPress/gutenberg/pull/62030)) +- Post Date Block: Fix PHP warning error. ([62783](https://github.com/WordPress/gutenberg/pull/62783)) +- Template Part: Improve how the tag name attribute is handled. ([62785](https://github.com/WordPress/gutenberg/pull/62785)) +- fix: Update block category to design and build documentation. ([61905](https://github.com/WordPress/gutenberg/pull/61905)) + +#### Global Styles +- Allow children of alignfull flow layouts to have root padding. ([62670](https://github.com/WordPress/gutenberg/pull/62670)) +- Prevent duplicate block style variations CSS. ([62465](https://github.com/WordPress/gutenberg/pull/62465)) +- Remove obsolete hook resolving shared block style variations. ([62808](https://github.com/WordPress/gutenberg/pull/62808)) +- Section Styles: Switch away from using init for variation registration. ([62640](https://github.com/WordPress/gutenberg/pull/62640)) +- Skip registration of variation styles when unsupported. ([62529](https://github.com/WordPress/gutenberg/pull/62529)) +- Styles: Lower specificity of figcaption style to allow theme.json override. ([62689](https://github.com/WordPress/gutenberg/pull/62689)) + +#### Components +- CustomSelectControl V2: Fix setting initial value and reacting to external controlled updates. ([62733](https://github.com/WordPress/gutenberg/pull/62733)) +- CustomSelectControlV2: Handle long strings in selected value. ([62198](https://github.com/WordPress/gutenberg/pull/62198)) + +#### Block Editor +- Raw handling: Fix too aggressive indented list removal. ([62622](https://github.com/WordPress/gutenberg/pull/62622)) +- Writing flow: Split heading into default block. ([61891](https://github.com/WordPress/gutenberg/pull/61891)) + + +### Accessibility + +- Fix custom color palette. ([62753](https://github.com/WordPress/gutenberg/pull/62753)) +- Fix lock modal dialog accessibility and semantics. ([62795](https://github.com/WordPress/gutenberg/pull/62795)) +- Image block: Fix focus style not around whole image when linked. ([62556](https://github.com/WordPress/gutenberg/pull/62556)) +- Pages data view: Update view icons. ([62136](https://github.com/WordPress/gutenberg/pull/62136)) +- Make the fonts management modal dialog more discoverable. ([62129](https://github.com/WordPress/gutenberg/pull/62129)) + + +### Performance + +- Improve performance of `compute_style_properties` method. ([62522](https://github.com/WordPress/gutenberg/pull/62522)) +- Run block variation hook only for matches. ([62617](https://github.com/WordPress/gutenberg/pull/62617)) +- Section Styles: Improve performance and conceptual consistency. ([62712](https://github.com/WordPress/gutenberg/pull/62712)) + + +### Experiments + +- Grid interactivity: Allow blocks to be positioned in manual mode using drag and drop. ([61025](https://github.com/WordPress/gutenberg/pull/61025)) + + +### Documentation + +- Add `VisualEditorGlobalKeyboardShortcuts` documentation. ([62710](https://github.com/WordPress/gutenberg/pull/62710)) +- Add changelog entry for splitTask export from @wordpress/interactivity. ([62805](https://github.com/WordPress/gutenberg/pull/62805)) +- Add documentation for PostSlug and PostSlugCheck component. ([62102](https://github.com/WordPress/gutenberg/pull/62102)) +- Adds comment on blocks resource referencing wp_block post type. ([62722](https://github.com/WordPress/gutenberg/pull/62722)) +- Changelogs: Standardize sections. ([58268](https://github.com/WordPress/gutenberg/pull/58268)) +- Correct documentation for WP_Block_Parser_Frame class. ([62598](https://github.com/WordPress/gutenberg/pull/62598)) +- Create Block: Add missing changelog entries. ([62791](https://github.com/WordPress/gutenberg/pull/62791)) +- Docs/iAPI: Fix wrong code snippet in data-wp-run example. ([62835](https://github.com/WordPress/gutenberg/pull/62835)) +- Docs/iapi warnings new directives wp 6 6. ([62789](https://github.com/WordPress/gutenberg/pull/62789)) +- Fix async directives API documentation. ([62759](https://github.com/WordPress/gutenberg/pull/62759)) +- Fix: Remove inexistent link from the documentation. ([62624](https://github.com/WordPress/gutenberg/pull/62624)) +- Interactivity API docs: Add wp-async directives doc. ([62663](https://github.com/WordPress/gutenberg/pull/62663)) +- Query Loop block: Clarify explanation around query loop variation example. ([62605](https://github.com/WordPress/gutenberg/pull/62605)) +- Small Typo correction in block-library.md file. ([62765](https://github.com/WordPress/gutenberg/pull/62765)) +- Update link to API section in block-editor README.md. ([62671](https://github.com/WordPress/gutenberg/pull/62671)) +- Update old links in @wordpress/babel-preset-default. ([62616](https://github.com/WordPress/gutenberg/pull/62616)) +- Updates the reference links in @wordpress/compose documentation. ([62593](https://github.com/WordPress/gutenberg/pull/62593)) +- [Developer Documentation] fix link URL. ([62725](https://github.com/WordPress/gutenberg/pull/62725)) + + +### Code Quality + +- Autoformat changelogs. ([62650](https://github.com/WordPress/gutenberg/pull/62650)) +- Autoformat e2e-tests package JavaScript. ([62572](https://github.com/WordPress/gutenberg/pull/62572)) +- Edit site: Do not autoformat edit-site/lib. ([62573](https://github.com/WordPress/gutenberg/pull/62573)) +- Move dep to dev deps. ([62673](https://github.com/WordPress/gutenberg/pull/62673)) +- Rename readme file with uppercase extension. ([62697](https://github.com/WordPress/gutenberg/pull/62697)) +- Site Editor: Don't render empty body tag. ([62769](https://github.com/WordPress/gutenberg/pull/62769)) +- Change `grid-visualizer` folder name to `grid`. ([62810](https://github.com/WordPress/gutenberg/pull/62810)) +- Add lib-font credits and license in source code. ([60973](https://github.com/WordPress/gutenberg/pull/60973)) + +#### Components +- Remove Framer Motion from `DropZone`. ([62044](https://github.com/WordPress/gutenberg/pull/62044)) +- `CustomSelectControlV2`: Fix handling of extra attributes passed to `options` in the legacy adapter. ([62255](https://github.com/WordPress/gutenberg/pull/62255)) + + +### Tools + +- Dependencies: Upgrade @octokit/webhooks. ([62666](https://github.com/WordPress/gutenberg/pull/62666)) +- Rename the wp-env schema to not be a dotfile. ([62634](https://github.com/WordPress/gutenberg/pull/62634)) +- env: Ignore `\$schema` key in environment configuration parsing. ([62626](https://github.com/WordPress/gutenberg/pull/62626)) + +#### Testing +- Add end-to-end test to ensure block bindings work well with symbols and numbers. ([62410](https://github.com/WordPress/gutenberg/pull/62410)) +- CustomSelectControl: Align v1 and legacy v2 unit tests. ([62706](https://github.com/WordPress/gutenberg/pull/62706)) +- Fix end-to-end tests in dev mode. ([62642](https://github.com/WordPress/gutenberg/pull/62642)) +- Improve maintainability of theme json class tests. ([62463](https://github.com/WordPress/gutenberg/pull/62463)) +- Release automation: Try cherry-picking automation. ([62716](https://github.com/WordPress/gutenberg/pull/62716)) +- Remove changelog checks for branches other than trunk. ([62645](https://github.com/WordPress/gutenberg/pull/62645)) +- Skip failing image block test. ([62781](https://github.com/WordPress/gutenberg/pull/62781)) +- Skip test: Create a new page, edit template and toggle page template preview. ([62799](https://github.com/WordPress/gutenberg/pull/62799)) +- Tests: Simplify test set up in `WP_Block_Supports_Block_Style_Variations_Test`. ([62637](https://github.com/WordPress/gutenberg/pull/62637)) +- Theme JSON resolver: Read theme.json files from the styles/ folder only once. ([62638](https://github.com/WordPress/gutenberg/pull/62638)) + +#### Build Tooling +- Generic name for previous version of WP tests. ([62853](https://github.com/WordPress/gutenberg/pull/62853)) +- Github PHP changes workflow: Remove it. ([62609](https://github.com/WordPress/gutenberg/pull/62609)) + + +### Various + +- Update Private API opt-in string for WP 6.6. ([62635](https://github.com/WordPress/gutenberg/pull/62635)) +- Update caniuse-lite dependency to latest version. ([62611](https://github.com/WordPress/gutenberg/pull/62611)) + + +## First-time contributors + +The following PRs were merged by first-time contributors: + +- @aatanasovdev: Caption utility component: Allow the main CSS Class Name to be excluded from the markup. ([62485](https://github.com/WordPress/gutenberg/pull/62485)) +- @dilipbheda: Correct documentation for WP_Block_Parser_Frame class. ([62598](https://github.com/WordPress/gutenberg/pull/62598)) +- @graylaurenm: Add letter spacing inheritance for the navigation block. ([62745](https://github.com/WordPress/gutenberg/pull/62745)) +- @ivan-ottinger: Editor: Fix blocked Post Publish Panel buttons on mobile. ([62736](https://github.com/WordPress/gutenberg/pull/62736)) +- @michakrapp: [Developer Documentation] fix link URL. ([62725](https://github.com/WordPress/gutenberg/pull/62725)) +- @saulyz: Fix rawHandling, pasteHandling for mixed content with blocks and classic. ([62545](https://github.com/WordPress/gutenberg/pull/62545)) +- @snehapatil2001: fix: Update block category to design and build documentation. ([61905](https://github.com/WordPress/gutenberg/pull/61905)) + + +## Contributors + +The following contributors merged PRs in this release: + +@aaronrobertshaw @aatanasovdev @afercia @ajlende @akasunil @amitraj2203 @artemiomorales @carolinan @cbravobernal @ciampo @creativecoder @DaniGuardiola @dilipbheda @ellatrix @fullofcaffeine @geriux @graylaurenm @gziolo @itzmekhokan @ivan-ottinger @jameskoster @jorgefilipecosta @juanmaguitar @kevin940726 @luisherranz @MaggieCabrera @matiasbenedetto @michakrapp @mirka @noisysocks @ntsekouras @oandregal @peterwilsoncc @ramonjd @sabernhardt @SantosGuillamot @saulyz @shail-mehta @sirreal @snehapatil2001 @spacedmonkey @stokesman @t-hamano @talldan @tellthemachines @up1512001 @vcanales @vipul0425 @westonruter @youknowriad + + = 18.6.1 = From 7db68967f7e7a4348c9b67bccbb99318788204ef Mon Sep 17 00:00:00 2001 From: Gutenberg Repository Automation Date: Wed, 26 Jun 2024 07:46:06 +0000 Subject: [PATCH 07/34] Update changelog files --- packages/a11y/CHANGELOG.md | 2 ++ packages/a11y/package.json | 2 +- packages/annotations/CHANGELOG.md | 2 ++ packages/annotations/package.json | 2 +- packages/api-fetch/CHANGELOG.md | 2 ++ packages/api-fetch/package.json | 2 +- packages/autop/CHANGELOG.md | 2 ++ packages/autop/package.json | 2 +- packages/babel-plugin-import-jsx-pragma/CHANGELOG.md | 2 ++ packages/babel-plugin-import-jsx-pragma/package.json | 2 +- packages/babel-plugin-makepot/CHANGELOG.md | 2 ++ packages/babel-plugin-makepot/package.json | 2 +- packages/babel-preset-default/CHANGELOG.md | 2 ++ packages/babel-preset-default/package.json | 2 +- packages/base-styles/CHANGELOG.md | 2 ++ packages/base-styles/package.json | 2 +- packages/blob/CHANGELOG.md | 2 ++ packages/blob/package.json | 2 +- packages/block-directory/CHANGELOG.md | 2 ++ packages/block-directory/package.json | 2 +- packages/block-editor/CHANGELOG.md | 2 ++ packages/block-editor/package.json | 2 +- packages/block-library/CHANGELOG.md | 2 ++ packages/block-library/package.json | 2 +- packages/block-serialization-default-parser/CHANGELOG.md | 2 ++ packages/block-serialization-default-parser/package.json | 2 +- packages/block-serialization-spec-parser/CHANGELOG.md | 2 ++ packages/block-serialization-spec-parser/package.json | 2 +- packages/blocks/CHANGELOG.md | 2 ++ packages/blocks/package.json | 2 +- packages/browserslist-config/CHANGELOG.md | 2 ++ packages/browserslist-config/package.json | 2 +- packages/commands/CHANGELOG.md | 2 ++ packages/commands/package.json | 2 +- packages/components/CHANGELOG.md | 2 ++ packages/components/package.json | 2 +- packages/compose/CHANGELOG.md | 2 ++ packages/compose/package.json | 2 +- packages/core-commands/CHANGELOG.md | 2 ++ packages/core-commands/package.json | 2 +- packages/core-data/CHANGELOG.md | 2 ++ packages/core-data/package.json | 2 +- packages/create-block-interactive-template/CHANGELOG.md | 2 ++ packages/create-block-interactive-template/package.json | 2 +- packages/create-block-tutorial-template/CHANGELOG.md | 2 ++ packages/create-block-tutorial-template/package.json | 2 +- packages/create-block/CHANGELOG.md | 2 ++ packages/create-block/package.json | 2 +- packages/customize-widgets/CHANGELOG.md | 2 ++ packages/customize-widgets/package.json | 2 +- packages/data-controls/CHANGELOG.md | 2 ++ packages/data-controls/package.json | 2 +- packages/data/CHANGELOG.md | 2 ++ packages/data/package.json | 2 +- packages/dataviews/CHANGELOG.md | 2 ++ packages/dataviews/package.json | 2 +- packages/date/CHANGELOG.md | 2 ++ packages/date/package.json | 2 +- packages/dependency-extraction-webpack-plugin/CHANGELOG.md | 2 ++ packages/dependency-extraction-webpack-plugin/package.json | 2 +- packages/deprecated/CHANGELOG.md | 2 ++ packages/deprecated/package.json | 2 +- packages/docgen/CHANGELOG.md | 2 ++ packages/docgen/package.json | 2 +- packages/dom-ready/CHANGELOG.md | 2 ++ packages/dom-ready/package.json | 2 +- packages/dom/CHANGELOG.md | 2 ++ packages/dom/package.json | 2 +- packages/e2e-test-utils-playwright/CHANGELOG.md | 2 ++ packages/e2e-test-utils-playwright/package.json | 2 +- packages/e2e-test-utils/CHANGELOG.md | 2 ++ packages/e2e-test-utils/package.json | 2 +- packages/e2e-tests/CHANGELOG.md | 2 ++ packages/e2e-tests/package.json | 2 +- packages/edit-post/CHANGELOG.md | 2 ++ packages/edit-post/package.json | 2 +- packages/edit-site/CHANGELOG.md | 2 ++ packages/edit-site/package.json | 2 +- packages/edit-widgets/CHANGELOG.md | 2 ++ packages/edit-widgets/package.json | 2 +- packages/editor/CHANGELOG.md | 2 ++ packages/editor/package.json | 2 +- packages/element/CHANGELOG.md | 2 ++ packages/element/package.json | 2 +- packages/env/CHANGELOG.md | 2 ++ packages/env/package.json | 2 +- packages/escape-html/CHANGELOG.md | 2 ++ packages/escape-html/package.json | 2 +- packages/eslint-plugin/CHANGELOG.md | 2 ++ packages/eslint-plugin/package.json | 2 +- packages/format-library/CHANGELOG.md | 2 ++ packages/format-library/package.json | 2 +- packages/hooks/CHANGELOG.md | 2 ++ packages/hooks/package.json | 2 +- packages/html-entities/CHANGELOG.md | 2 ++ packages/html-entities/package.json | 2 +- packages/i18n/CHANGELOG.md | 2 ++ packages/i18n/package.json | 2 +- packages/icons/CHANGELOG.md | 2 ++ packages/icons/package.json | 2 +- packages/interactivity-router/CHANGELOG.md | 2 ++ packages/interactivity-router/package.json | 2 +- packages/interactivity/CHANGELOG.md | 2 ++ packages/interactivity/package.json | 2 +- packages/interface/CHANGELOG.md | 2 ++ packages/interface/package.json | 2 +- packages/is-shallow-equal/CHANGELOG.md | 2 ++ packages/is-shallow-equal/package.json | 2 +- packages/jest-console/CHANGELOG.md | 2 ++ packages/jest-console/package.json | 2 +- packages/jest-preset-default/CHANGELOG.md | 2 ++ packages/jest-preset-default/package.json | 2 +- packages/jest-puppeteer-axe/CHANGELOG.md | 2 ++ packages/jest-puppeteer-axe/package.json | 2 +- packages/keyboard-shortcuts/CHANGELOG.md | 2 ++ packages/keyboard-shortcuts/package.json | 2 +- packages/keycodes/CHANGELOG.md | 2 ++ packages/keycodes/package.json | 2 +- packages/lazy-import/CHANGELOG.md | 2 ++ packages/lazy-import/package.json | 2 +- packages/list-reusable-blocks/CHANGELOG.md | 2 ++ packages/list-reusable-blocks/package.json | 2 +- packages/media-utils/CHANGELOG.md | 2 ++ packages/media-utils/package.json | 2 +- packages/notices/CHANGELOG.md | 2 ++ packages/notices/package.json | 2 +- packages/npm-package-json-lint-config/CHANGELOG.md | 2 ++ packages/npm-package-json-lint-config/package.json | 2 +- packages/nux/CHANGELOG.md | 2 ++ packages/nux/package.json | 2 +- packages/patterns/CHANGELOG.md | 2 ++ packages/patterns/package.json | 2 +- packages/plugins/CHANGELOG.md | 2 ++ packages/plugins/package.json | 2 +- packages/postcss-plugins-preset/CHANGELOG.md | 2 ++ packages/postcss-plugins-preset/package.json | 2 +- packages/postcss-themes/CHANGELOG.md | 2 ++ packages/postcss-themes/package.json | 2 +- packages/preferences-persistence/CHANGELOG.md | 2 ++ packages/preferences-persistence/package.json | 2 +- packages/preferences/CHANGELOG.md | 2 ++ packages/preferences/package.json | 2 +- packages/prettier-config/CHANGELOG.md | 2 ++ packages/prettier-config/package.json | 2 +- packages/primitives/CHANGELOG.md | 2 ++ packages/primitives/package.json | 2 +- packages/priority-queue/CHANGELOG.md | 2 ++ packages/priority-queue/package.json | 2 +- packages/private-apis/CHANGELOG.md | 2 ++ packages/private-apis/package.json | 2 +- packages/project-management-automation/CHANGELOG.md | 2 ++ packages/project-management-automation/package.json | 2 +- packages/react-i18n/CHANGELOG.md | 2 ++ packages/react-i18n/package.json | 2 +- packages/readable-js-assets-webpack-plugin/CHANGELOG.md | 2 ++ packages/readable-js-assets-webpack-plugin/package.json | 2 +- packages/redux-routine/CHANGELOG.md | 2 ++ packages/redux-routine/package.json | 2 +- packages/reusable-blocks/CHANGELOG.md | 2 ++ packages/reusable-blocks/package.json | 2 +- packages/rich-text/CHANGELOG.md | 2 ++ packages/rich-text/package.json | 2 +- packages/router/CHANGELOG.md | 2 ++ packages/router/package.json | 2 +- packages/scripts/CHANGELOG.md | 2 ++ packages/scripts/package.json | 2 +- packages/server-side-render/CHANGELOG.md | 2 ++ packages/server-side-render/package.json | 2 +- packages/shortcode/CHANGELOG.md | 2 ++ packages/shortcode/package.json | 2 +- packages/style-engine/CHANGELOG.md | 2 ++ packages/style-engine/package.json | 2 +- packages/stylelint-config/CHANGELOG.md | 2 ++ packages/stylelint-config/package.json | 2 +- packages/sync/CHANGELOG.md | 2 ++ packages/sync/package.json | 2 +- packages/token-list/CHANGELOG.md | 2 ++ packages/token-list/package.json | 2 +- packages/undo-manager/CHANGELOG.md | 2 ++ packages/undo-manager/package.json | 2 +- packages/url/CHANGELOG.md | 2 ++ packages/url/package.json | 2 +- packages/viewport/CHANGELOG.md | 2 ++ packages/viewport/package.json | 2 +- packages/warning/CHANGELOG.md | 2 ++ packages/warning/package.json | 2 +- packages/widgets/CHANGELOG.md | 2 ++ packages/widgets/package.json | 2 +- packages/wordcount/CHANGELOG.md | 2 ++ packages/wordcount/package.json | 2 +- 190 files changed, 285 insertions(+), 95 deletions(-) diff --git a/packages/a11y/CHANGELOG.md b/packages/a11y/CHANGELOG.md index 296d6771e3d1a..d7098f67238bd 100644 --- a/packages/a11y/CHANGELOG.md +++ b/packages/a11y/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/a11y/package.json b/packages/a11y/package.json index a3c205af4905b..6004bbd72461d 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/a11y", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Accessibility (a11y) utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/annotations/CHANGELOG.md b/packages/annotations/CHANGELOG.md index 884c7582d758b..b92426072f135 100644 --- a/packages/annotations/CHANGELOG.md +++ b/packages/annotations/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ## 3.0.0 (2024-05-31) diff --git a/packages/annotations/package.json b/packages/annotations/package.json index 8b2013129ba06..f4ae2c321670c 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/annotations", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Annotate content in the Gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/api-fetch/CHANGELOG.md b/packages/api-fetch/CHANGELOG.md index 0d3ff564df08c..6abbab65d6a82 100644 --- a/packages/api-fetch/CHANGELOG.md +++ b/packages/api-fetch/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index a245dcd9e9e23..b606ae168db6b 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/api-fetch", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "Utility to make WordPress REST API requests.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/autop/CHANGELOG.md b/packages/autop/CHANGELOG.md index 0d6fd50267051..cfff0201fc277 100644 --- a/packages/autop/CHANGELOG.md +++ b/packages/autop/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ### Internal diff --git a/packages/autop/package.json b/packages/autop/package.json index dc2850c225b9a..3ea146bcd998b 100644 --- a/packages/autop/package.json +++ b/packages/autop/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/autop", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress's automatic paragraph functions `autop` and `removep`.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md b/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md index fd7411280670f..7bb25199ff847 100644 --- a/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md +++ b/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json index 4069427e2266f..d5022779d157b 100644 --- a/packages/babel-plugin-import-jsx-pragma/package.json +++ b/packages/babel-plugin-import-jsx-pragma/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-import-jsx-pragma", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Transform plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-makepot/CHANGELOG.md b/packages/babel-plugin-makepot/CHANGELOG.md index f6066a3b028ed..19214e1c79177 100644 --- a/packages/babel-plugin-makepot/CHANGELOG.md +++ b/packages/babel-plugin-makepot/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json index 6e0f58ed11f21..888468b909e5b 100644 --- a/packages/babel-plugin-makepot/package.json +++ b/packages/babel-plugin-makepot/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-makepot", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "WordPress Babel internationalization (i18n) plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-preset-default/CHANGELOG.md b/packages/babel-preset-default/CHANGELOG.md index 3d6abcf94784f..56b58422f47f3 100644 --- a/packages/babel-preset-default/CHANGELOG.md +++ b/packages/babel-preset-default/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 8.2.0 (2024-06-26) + ## 8.1.0 (2024-06-15) ## 8.0.0 (2024-05-31) diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json index 6e7f46a6480eb..0e6304fe40a5d 100644 --- a/packages/babel-preset-default/package.json +++ b/packages/babel-preset-default/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-preset-default", - "version": "8.1.0", + "version": "8.2.0-prerelease", "description": "Default Babel preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md index 9da665ba27209..89149ee5044f7 100644 --- a/packages/base-styles/CHANGELOG.md +++ b/packages/base-styles/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/base-styles/package.json b/packages/base-styles/package.json index 7d0f3abb46f42..06ee706c8a884 100644 --- a/packages/base-styles/package.json +++ b/packages/base-styles/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/base-styles", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Base SCSS utilities and variables for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/blob/CHANGELOG.md b/packages/blob/CHANGELOG.md index 3950fa54c64d8..c689b26bc5c8d 100644 --- a/packages/blob/CHANGELOG.md +++ b/packages/blob/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ### Internal diff --git a/packages/blob/package.json b/packages/blob/package.json index 335bf6cba8298..62b7945369417 100644 --- a/packages/blob/package.json +++ b/packages/blob/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/blob", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Blob utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-directory/CHANGELOG.md b/packages/block-directory/CHANGELOG.md index cfd5b50dcb7f1..1aca119d864be 100644 --- a/packages/block-directory/CHANGELOG.md +++ b/packages/block-directory/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json index 2aea90812b7b7..3c9179a9091ca 100644 --- a/packages/block-directory/package.json +++ b/packages/block-directory/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-directory", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Extend editor with block directory features to search, download and install blocks.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-editor/CHANGELOG.md b/packages/block-editor/CHANGELOG.md index 7b9fd378f2b0d..969e057850f74 100644 --- a/packages/block-editor/CHANGELOG.md +++ b/packages/block-editor/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 13.2.0 (2024-06-26) + ## 13.1.0 (2024-06-15) ## 13.0.0 (2024-05-31) diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index 22bca4dc5c310..5b0fc31d95628 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-editor", - "version": "13.1.0", + "version": "13.2.0-prerelease", "description": "Generic block editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-library/CHANGELOG.md b/packages/block-library/CHANGELOG.md index e9c3a59524b28..8c5e3320c99b2 100644 --- a/packages/block-library/CHANGELOG.md +++ b/packages/block-library/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 9.2.0 (2024-06-26) + ## 9.1.0 (2024-06-15) ## 9.0.0 (2024-05-31) diff --git a/packages/block-library/package.json b/packages/block-library/package.json index 909fc9a53ee67..6b00b49e6e3f4 100644 --- a/packages/block-library/package.json +++ b/packages/block-library/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-library", - "version": "9.1.0", + "version": "9.2.0-prerelease", "description": "Block library for the WordPress editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-serialization-default-parser/CHANGELOG.md b/packages/block-serialization-default-parser/CHANGELOG.md index bd9e2fdd350b8..368b0b5c91fe2 100644 --- a/packages/block-serialization-default-parser/CHANGELOG.md +++ b/packages/block-serialization-default-parser/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/block-serialization-default-parser/package.json b/packages/block-serialization-default-parser/package.json index 6a8bdb94fa935..ecc2633366793 100644 --- a/packages/block-serialization-default-parser/package.json +++ b/packages/block-serialization-default-parser/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-serialization-default-parser", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Block serialization specification parser for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-serialization-spec-parser/CHANGELOG.md b/packages/block-serialization-spec-parser/CHANGELOG.md index 619df831cd1d5..4e2f19c426c85 100644 --- a/packages/block-serialization-spec-parser/CHANGELOG.md +++ b/packages/block-serialization-spec-parser/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/block-serialization-spec-parser/package.json b/packages/block-serialization-spec-parser/package.json index c9cb21ee36148..0be9767493315 100644 --- a/packages/block-serialization-spec-parser/package.json +++ b/packages/block-serialization-spec-parser/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-serialization-spec-parser", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Block serialization specification parser for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/blocks/CHANGELOG.md b/packages/blocks/CHANGELOG.md index add1ab8a77399..d09d203e56ef4 100644 --- a/packages/blocks/CHANGELOG.md +++ b/packages/blocks/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 13.2.0 (2024-06-26) + ## 13.1.0 (2024-06-15) ## 13.0.0 (2024-05-31) diff --git a/packages/blocks/package.json b/packages/blocks/package.json index 54a434eb0b540..9de34da4251dd 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/blocks", - "version": "13.1.0", + "version": "13.2.0-prerelease", "description": "Block API for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/browserslist-config/CHANGELOG.md b/packages/browserslist-config/CHANGELOG.md index f5b8ad7b20f9a..55367687bd884 100644 --- a/packages/browserslist-config/CHANGELOG.md +++ b/packages/browserslist-config/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/browserslist-config/package.json b/packages/browserslist-config/package.json index 67fa4e317b051..c77bd38be0f3e 100644 --- a/packages/browserslist-config/package.json +++ b/packages/browserslist-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/browserslist-config", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "WordPress Browserslist shared configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/commands/CHANGELOG.md b/packages/commands/CHANGELOG.md index 741ffcefb437c..51c44022cdd37 100644 --- a/packages/commands/CHANGELOG.md +++ b/packages/commands/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/commands/package.json b/packages/commands/package.json index 88c18afa09e6a..ec25ebdefebc9 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/commands", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "Handles the commands menu.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 689be70595c5d..cbf32c9eab93b 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 28.2.0 (2024-06-26) + ### Enhancements - `DropZone`: rewrite animation without depending on framer-motion. ([#62044](https://github.com/WordPress/gutenberg/pull/62044)) diff --git a/packages/components/package.json b/packages/components/package.json index e5eaf23165509..5a5c6295ea79c 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/components", - "version": "28.1.0", + "version": "28.2.0-prerelease", "description": "UI components for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/compose/CHANGELOG.md b/packages/compose/CHANGELOG.md index 225798eb1f3a6..7c29649f5bce8 100644 --- a/packages/compose/CHANGELOG.md +++ b/packages/compose/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/compose/package.json b/packages/compose/package.json index 953a278324893..6137cfee0dd1b 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/compose", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "WordPress higher-order components (HOCs).", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/core-commands/CHANGELOG.md b/packages/core-commands/CHANGELOG.md index e320955adcfd1..77cf1361356a1 100644 --- a/packages/core-commands/CHANGELOG.md +++ b/packages/core-commands/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/core-commands/package.json b/packages/core-commands/package.json index 3ea0edbece9ad..54d6d614339c8 100644 --- a/packages/core-commands/package.json +++ b/packages/core-commands/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/core-commands", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "WordPress core reusable commands.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/core-data/CHANGELOG.md b/packages/core-data/CHANGELOG.md index 2971989bf35d4..c9157fba03a8b 100644 --- a/packages/core-data/CHANGELOG.md +++ b/packages/core-data/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/core-data/package.json b/packages/core-data/package.json index a2cd136ea7d42..392d4c88aea97 100644 --- a/packages/core-data/package.json +++ b/packages/core-data/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/core-data", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "Access to and manipulation of core WordPress entities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block-interactive-template/CHANGELOG.md b/packages/create-block-interactive-template/CHANGELOG.md index a79a7c26c415f..49a507443e6ce 100644 --- a/packages/create-block-interactive-template/CHANGELOG.md +++ b/packages/create-block-interactive-template/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/create-block-interactive-template/package.json b/packages/create-block-interactive-template/package.json index 2752f36bd5f48..59b631a5e96e2 100644 --- a/packages/create-block-interactive-template/package.json +++ b/packages/create-block-interactive-template/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block-interactive-template", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Template for @wordpress/create-block to create interactive blocks with the Interactivity API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block-tutorial-template/CHANGELOG.md b/packages/create-block-tutorial-template/CHANGELOG.md index f53046a8073c6..b5ea985dd15d1 100644 --- a/packages/create-block-tutorial-template/CHANGELOG.md +++ b/packages/create-block-tutorial-template/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/create-block-tutorial-template/package.json b/packages/create-block-tutorial-template/package.json index 5a557695b9888..6a3d46573b8fa 100644 --- a/packages/create-block-tutorial-template/package.json +++ b/packages/create-block-tutorial-template/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block-tutorial-template", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "This is a template for @wordpress/create-block that creates an example 'Copyright Date' block. This block is used in the official WordPress block development Quick Start Guide.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block/CHANGELOG.md b/packages/create-block/CHANGELOG.md index 01ad3cf768276..1c3e863de790e 100644 --- a/packages/create-block/CHANGELOG.md +++ b/packages/create-block/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.45.0 (2024-06-26) + ## 4.44.0 (2024-06-15) ### Bug fix diff --git a/packages/create-block/package.json b/packages/create-block/package.json index 9fe4b15655ffa..15597aff39581 100644 --- a/packages/create-block/package.json +++ b/packages/create-block/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block", - "version": "4.44.0", + "version": "4.45.0-prerelease", "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/customize-widgets/CHANGELOG.md b/packages/customize-widgets/CHANGELOG.md index 5f822cb8babcc..946dfe3e7dde6 100644 --- a/packages/customize-widgets/CHANGELOG.md +++ b/packages/customize-widgets/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/customize-widgets/package.json b/packages/customize-widgets/package.json index ba05e60e5a028..0593f3d0f204c 100644 --- a/packages/customize-widgets/package.json +++ b/packages/customize-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/customize-widgets", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Widgets blocks in Customizer Module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/data-controls/CHANGELOG.md b/packages/data-controls/CHANGELOG.md index e0c1fb8b1ccd9..10a4d4dd758bb 100644 --- a/packages/data-controls/CHANGELOG.md +++ b/packages/data-controls/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/data-controls/package.json b/packages/data-controls/package.json index e80259aba2b69..da77433737aae 100644 --- a/packages/data-controls/package.json +++ b/packages/data-controls/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/data-controls", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "A set of common controls for the @wordpress/data api.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/data/CHANGELOG.md b/packages/data/CHANGELOG.md index 53300f7c15f24..7f9b439774cec 100644 --- a/packages/data/CHANGELOG.md +++ b/packages/data/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 10.2.0 (2024-06-26) + ## 10.1.0 (2024-06-15) ## 10.0.0 (2024-05-31) diff --git a/packages/data/package.json b/packages/data/package.json index d74c410e20c40..7bb4e8b5466cd 100644 --- a/packages/data/package.json +++ b/packages/data/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/data", - "version": "10.1.0", + "version": "10.2.0-prerelease", "description": "Data module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dataviews/CHANGELOG.md b/packages/dataviews/CHANGELOG.md index 770402e6ffc8c..a26c854fad8a7 100644 --- a/packages/dataviews/CHANGELOG.md +++ b/packages/dataviews/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/dataviews/package.json b/packages/dataviews/package.json index 5de3498c9f647..28890663395d1 100644 --- a/packages/dataviews/package.json +++ b/packages/dataviews/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dataviews", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/date/CHANGELOG.md b/packages/date/CHANGELOG.md index 7ff862abf3ba2..c3c526d31f93e 100644 --- a/packages/date/CHANGELOG.md +++ b/packages/date/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/date/package.json b/packages/date/package.json index 46eae8f0e8496..5d47fb8cbc765 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/date", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Date module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dependency-extraction-webpack-plugin/CHANGELOG.md b/packages/dependency-extraction-webpack-plugin/CHANGELOG.md index 2c31706a9e57d..84e4dc94f387c 100644 --- a/packages/dependency-extraction-webpack-plugin/CHANGELOG.md +++ b/packages/dependency-extraction-webpack-plugin/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/dependency-extraction-webpack-plugin/package.json b/packages/dependency-extraction-webpack-plugin/package.json index f89a16fcb0c14..2f7ebcbe8aa1c 100644 --- a/packages/dependency-extraction-webpack-plugin/package.json +++ b/packages/dependency-extraction-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dependency-extraction-webpack-plugin", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Extract WordPress script dependencies from webpack bundles.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/deprecated/CHANGELOG.md b/packages/deprecated/CHANGELOG.md index f08c61884d0cc..100fcc4c507a5 100644 --- a/packages/deprecated/CHANGELOG.md +++ b/packages/deprecated/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/deprecated/package.json b/packages/deprecated/package.json index a8991a5ca260c..0c85630486246 100644 --- a/packages/deprecated/package.json +++ b/packages/deprecated/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/deprecated", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Deprecation utility for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/docgen/CHANGELOG.md b/packages/docgen/CHANGELOG.md index 3442e8359864e..18120bb23751b 100644 --- a/packages/docgen/CHANGELOG.md +++ b/packages/docgen/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/docgen/package.json b/packages/docgen/package.json index 6f1c8634514b8..13dc62757aa84 100644 --- a/packages/docgen/package.json +++ b/packages/docgen/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/docgen", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Autogenerate public API documentation from exports and JSDoc comments.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dom-ready/CHANGELOG.md b/packages/dom-ready/CHANGELOG.md index 572c4053b83fd..e9995262d485a 100644 --- a/packages/dom-ready/CHANGELOG.md +++ b/packages/dom-ready/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/dom-ready/package.json b/packages/dom-ready/package.json index 386b04a5f8fbb..ee4a20f79cf78 100644 --- a/packages/dom-ready/package.json +++ b/packages/dom-ready/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dom-ready", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Execute callback after the DOM is loaded.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dom/CHANGELOG.md b/packages/dom/CHANGELOG.md index e6f45cd3e8096..2e4d5f764ebb7 100644 --- a/packages/dom/CHANGELOG.md +++ b/packages/dom/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/dom/package.json b/packages/dom/package.json index 42393a456a3fa..0ca5752d4fd7f 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dom", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "DOM utilities module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-test-utils-playwright/CHANGELOG.md b/packages/e2e-test-utils-playwright/CHANGELOG.md index d1a178094f5c9..98cd05130e0d4 100644 --- a/packages/e2e-test-utils-playwright/CHANGELOG.md +++ b/packages/e2e-test-utils-playwright/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/e2e-test-utils-playwright/package.json b/packages/e2e-test-utils-playwright/package.json index ae41aaaf8e21f..59a5f2ba62666 100644 --- a/packages/e2e-test-utils-playwright/package.json +++ b/packages/e2e-test-utils-playwright/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-test-utils-playwright", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "End-To-End (E2E) test utils for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-test-utils/CHANGELOG.md b/packages/e2e-test-utils/CHANGELOG.md index 3f67b301ff942..fde3509c494d7 100644 --- a/packages/e2e-test-utils/CHANGELOG.md +++ b/packages/e2e-test-utils/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 11.2.0 (2024-06-26) + ## 11.1.0 (2024-06-15) ## 11.0.0 (2024-05-31) diff --git a/packages/e2e-test-utils/package.json b/packages/e2e-test-utils/package.json index e246d68e2da3a..f153f217ecabc 100644 --- a/packages/e2e-test-utils/package.json +++ b/packages/e2e-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-test-utils", - "version": "11.1.0", + "version": "11.2.0-prerelease", "description": "End-To-End (E2E) test utils for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-tests/CHANGELOG.md b/packages/e2e-tests/CHANGELOG.md index 23428a618aa36..59ba849c0c66f 100644 --- a/packages/e2e-tests/CHANGELOG.md +++ b/packages/e2e-tests/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 8.2.0 (2024-06-26) + ## 8.1.0 (2024-06-15) ## 8.0.0 (2024-05-31) diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 1990ffbc54f08..9737775e09386 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-tests", - "version": "8.1.0", + "version": "8.2.0-prerelease", "description": "End-To-End (E2E) tests for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-post/CHANGELOG.md b/packages/edit-post/CHANGELOG.md index 1f729223c957c..a34ffb8a1c824 100644 --- a/packages/edit-post/CHANGELOG.md +++ b/packages/edit-post/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 8.2.0 (2024-06-26) + ## 8.1.0 (2024-06-15) ### Bug Fixes diff --git a/packages/edit-post/package.json b/packages/edit-post/package.json index 1bab7905c74c1..71c29a97d14ef 100644 --- a/packages/edit-post/package.json +++ b/packages/edit-post/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-post", - "version": "8.1.0", + "version": "8.2.0-prerelease", "description": "Edit Post module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-site/CHANGELOG.md b/packages/edit-site/CHANGELOG.md index 87c868f6e1722..7542e80b68266 100644 --- a/packages/edit-site/CHANGELOG.md +++ b/packages/edit-site/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/edit-site/package.json b/packages/edit-site/package.json index 2e07e5a5cb9df..2dadb3245790c 100644 --- a/packages/edit-site/package.json +++ b/packages/edit-site/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-site", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Edit Site Page module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-widgets/CHANGELOG.md b/packages/edit-widgets/CHANGELOG.md index 2454c93fa0743..3d149c99982bb 100644 --- a/packages/edit-widgets/CHANGELOG.md +++ b/packages/edit-widgets/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/edit-widgets/package.json b/packages/edit-widgets/package.json index 91202f19fc013..c2f34d2c43850 100644 --- a/packages/edit-widgets/package.json +++ b/packages/edit-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-widgets", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Widgets Page module for WordPress..", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 446425f11c049..c39a194f0eb8e 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 14.2.0 (2024-06-26) + ## 14.1.0 (2024-06-15) ## 14.0.0 (2024-05-31) diff --git a/packages/editor/package.json b/packages/editor/package.json index 471a8c54abded..0b282d1e2c9f9 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/editor", - "version": "14.1.0", + "version": "14.2.0-prerelease", "description": "Enhanced block editor for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/element/CHANGELOG.md b/packages/element/CHANGELOG.md index 36216b3de6155..1409fbaab2036 100644 --- a/packages/element/CHANGELOG.md +++ b/packages/element/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/element/package.json b/packages/element/package.json index 066476f4429f2..0291a95a4146c 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/element", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Element React module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/env/CHANGELOG.md b/packages/env/CHANGELOG.md index 2ae9cd8d2cff3..0576e956fba48 100644 --- a/packages/env/CHANGELOG.md +++ b/packages/env/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 10.2.0 (2024-06-26) + ### Enhancements - Ignore `$schema` key in environment config parsing ([#62626](https://github.com/WordPress/gutenberg/pull/62626)). diff --git a/packages/env/package.json b/packages/env/package.json index 1b60a44e5676d..4e47866db5695 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/env", - "version": "10.1.0", + "version": "10.2.0-prerelease", "description": "A zero-config, self contained local WordPress environment for development and testing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/escape-html/CHANGELOG.md b/packages/escape-html/CHANGELOG.md index a216527b1fe67..616bf95d13252 100644 --- a/packages/escape-html/CHANGELOG.md +++ b/packages/escape-html/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ### Internal diff --git a/packages/escape-html/package.json b/packages/escape-html/package.json index 12238b3036e32..6f8862eaec62d 100644 --- a/packages/escape-html/package.json +++ b/packages/escape-html/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/escape-html", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Escape HTML utils.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 2a71eb5754996..35abe863afb3e 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 19.2.0 (2024-06-26) + ## 19.1.0 (2024-06-15) ## 19.0.0 (2024-05-31) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index bb10b13063b70..239ae3ada6a04 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/eslint-plugin", - "version": "19.1.0", + "version": "19.2.0-prerelease", "description": "ESLint plugin for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/format-library/CHANGELOG.md b/packages/format-library/CHANGELOG.md index 5b809d7a79c3a..5ae1b76b46cf3 100644 --- a/packages/format-library/CHANGELOG.md +++ b/packages/format-library/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/format-library/package.json b/packages/format-library/package.json index 054e12970d401..f7ccc8d9381ee 100644 --- a/packages/format-library/package.json +++ b/packages/format-library/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/format-library", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Format library for the WordPress editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/hooks/CHANGELOG.md b/packages/hooks/CHANGELOG.md index 7ec926f81b46b..44d39aaef3527 100644 --- a/packages/hooks/CHANGELOG.md +++ b/packages/hooks/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 86aa8aca76ca2..b017245407cfc 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/hooks", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress hooks library.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/html-entities/CHANGELOG.md b/packages/html-entities/CHANGELOG.md index 5720f22e4204f..27514cd6de1a4 100644 --- a/packages/html-entities/CHANGELOG.md +++ b/packages/html-entities/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/html-entities/package.json b/packages/html-entities/package.json index b3cc8bd8944e9..48c3d409dee13 100644 --- a/packages/html-entities/package.json +++ b/packages/html-entities/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/html-entities", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "HTML entity utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/i18n/CHANGELOG.md b/packages/i18n/CHANGELOG.md index 4fad217567b29..b7a04331c0bea 100644 --- a/packages/i18n/CHANGELOG.md +++ b/packages/i18n/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 8c62b68ee2aef..15523ea2692e9 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/i18n", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "WordPress internationalization (i18n) library.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index 6e496583b4ac9..5f5c1da448a87 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 10.2.0 (2024-06-26) + ## 10.1.0 (2024-06-15) ## 10.0.0 (2024-05-31) diff --git a/packages/icons/package.json b/packages/icons/package.json index 84cc88af2cc81..ac15049519ccc 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/icons", - "version": "10.1.0", + "version": "10.2.0-prerelease", "description": "WordPress Icons package, based on dashicon.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interactivity-router/CHANGELOG.md b/packages/interactivity-router/CHANGELOG.md index a1e2a8eec2e90..dafeefeb8eb35 100644 --- a/packages/interactivity-router/CHANGELOG.md +++ b/packages/interactivity-router/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/interactivity-router/package.json b/packages/interactivity-router/package.json index 9c323d7775872..d6fee3bba961f 100644 --- a/packages/interactivity-router/package.json +++ b/packages/interactivity-router/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interactivity-router", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Package that exposes state and actions from the `core/router` store, part of the Interactivity API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interactivity/CHANGELOG.md b/packages/interactivity/CHANGELOG.md index 3544e9dde459b..139fa562f058d 100644 --- a/packages/interactivity/CHANGELOG.md +++ b/packages/interactivity/CHANGELOG.md @@ -1,6 +1,8 @@ ## Unreleased + +## 6.2.0 (2024-06-26) ### Enhancements - Export `splitTask` function from `@wordpress/interactivity` package to facilitate yielding to the main thread. See example in [async actions](https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/interactivity-api/api-reference.md#async-actions) documentation. ([#62665](https://github.com/WordPress/gutenberg/pull/62665)) diff --git a/packages/interactivity/package.json b/packages/interactivity/package.json index c5f67a336346e..0c0add7a14316 100644 --- a/packages/interactivity/package.json +++ b/packages/interactivity/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interactivity", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Package that provides a standard and simple way to handle the frontend interactivity of Gutenberg blocks.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interface/CHANGELOG.md b/packages/interface/CHANGELOG.md index f22eff36604d9..9d3b1a8e52310 100644 --- a/packages/interface/CHANGELOG.md +++ b/packages/interface/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/interface/package.json b/packages/interface/package.json index a9e3c5826a9d1..e4083689efff8 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interface", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/is-shallow-equal/CHANGELOG.md b/packages/is-shallow-equal/CHANGELOG.md index 59c1d5233c085..e9bde69a947df 100644 --- a/packages/is-shallow-equal/CHANGELOG.md +++ b/packages/is-shallow-equal/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/is-shallow-equal/package.json b/packages/is-shallow-equal/package.json index f99f677c31ae7..2b740d60baee8 100644 --- a/packages/is-shallow-equal/package.json +++ b/packages/is-shallow-equal/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/is-shallow-equal", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Test for shallow equality between two objects or arrays.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-console/CHANGELOG.md b/packages/jest-console/CHANGELOG.md index 76a152458c78f..d7a42bcdfba88 100644 --- a/packages/jest-console/CHANGELOG.md +++ b/packages/jest-console/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 8.2.0 (2024-06-26) + ## 8.1.0 (2024-06-15) ## 8.0.0 (2024-05-31) diff --git a/packages/jest-console/package.json b/packages/jest-console/package.json index 837e0334eef67..b298bd96d7af7 100644 --- a/packages/jest-console/package.json +++ b/packages/jest-console/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-console", - "version": "8.1.0", + "version": "8.2.0-prerelease", "description": "Custom Jest matchers for the Console object.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-preset-default/CHANGELOG.md b/packages/jest-preset-default/CHANGELOG.md index 614b5bfa705ba..79734794bfa74 100644 --- a/packages/jest-preset-default/CHANGELOG.md +++ b/packages/jest-preset-default/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 12.2.0 (2024-06-26) + ## 12.1.0 (2024-06-15) ## 12.0.0 (2024-05-31) diff --git a/packages/jest-preset-default/package.json b/packages/jest-preset-default/package.json index 9581fd2aa0b20..1d4665f23cf65 100644 --- a/packages/jest-preset-default/package.json +++ b/packages/jest-preset-default/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-preset-default", - "version": "12.1.0", + "version": "12.2.0-prerelease", "description": "Default Jest preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-puppeteer-axe/CHANGELOG.md b/packages/jest-puppeteer-axe/CHANGELOG.md index 26d2672f17769..99d94318e961a 100644 --- a/packages/jest-puppeteer-axe/CHANGELOG.md +++ b/packages/jest-puppeteer-axe/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/jest-puppeteer-axe/package.json b/packages/jest-puppeteer-axe/package.json index 44ec042ed3d52..b4364923c5e5c 100644 --- a/packages/jest-puppeteer-axe/package.json +++ b/packages/jest-puppeteer-axe/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-puppeteer-axe", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "Axe API integration with Jest and Puppeteer.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/keyboard-shortcuts/CHANGELOG.md b/packages/keyboard-shortcuts/CHANGELOG.md index aa27d7f974540..96f140f07a57e 100644 --- a/packages/keyboard-shortcuts/CHANGELOG.md +++ b/packages/keyboard-shortcuts/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/keyboard-shortcuts/package.json b/packages/keyboard-shortcuts/package.json index 25f044dd9b288..7125c6f63f2b6 100644 --- a/packages/keyboard-shortcuts/package.json +++ b/packages/keyboard-shortcuts/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/keyboard-shortcuts", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Handling keyboard shortcuts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/keycodes/CHANGELOG.md b/packages/keycodes/CHANGELOG.md index 88914b5227e94..cb85849aecbfb 100644 --- a/packages/keycodes/CHANGELOG.md +++ b/packages/keycodes/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/keycodes/package.json b/packages/keycodes/package.json index 435f9d0931ea1..f1d4c56f518b5 100644 --- a/packages/keycodes/package.json +++ b/packages/keycodes/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/keycodes", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Keycodes utilities for WordPress. Used to check for keyboard events across browsers/operating systems.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/lazy-import/CHANGELOG.md b/packages/lazy-import/CHANGELOG.md index e27e55fb55c60..c471087d8b214 100644 --- a/packages/lazy-import/CHANGELOG.md +++ b/packages/lazy-import/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/lazy-import/package.json b/packages/lazy-import/package.json index 6c21a408471c4..6764baab49a73 100644 --- a/packages/lazy-import/package.json +++ b/packages/lazy-import/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/lazy-import", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Lazily import a module, installing it automatically if missing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/list-reusable-blocks/CHANGELOG.md b/packages/list-reusable-blocks/CHANGELOG.md index b55a3561a41bd..538bc0a82813f 100644 --- a/packages/list-reusable-blocks/CHANGELOG.md +++ b/packages/list-reusable-blocks/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/list-reusable-blocks/package.json b/packages/list-reusable-blocks/package.json index 9cfe85281d0db..0d7a40f65bd17 100644 --- a/packages/list-reusable-blocks/package.json +++ b/packages/list-reusable-blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/list-reusable-blocks", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Adding Export/Import support to the reusable blocks listing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/media-utils/CHANGELOG.md b/packages/media-utils/CHANGELOG.md index f3e869527421b..9eae3e8dcc74c 100644 --- a/packages/media-utils/CHANGELOG.md +++ b/packages/media-utils/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json index 8203bfbea69ff..26c4f3bbc1e24 100644 --- a/packages/media-utils/package.json +++ b/packages/media-utils/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/media-utils", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "WordPress Media Upload Utils.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/notices/CHANGELOG.md b/packages/notices/CHANGELOG.md index ba6ec9181302b..41f87112b4285 100644 --- a/packages/notices/CHANGELOG.md +++ b/packages/notices/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/notices/package.json b/packages/notices/package.json index 525e739f669ce..5f8e29da802ea 100644 --- a/packages/notices/package.json +++ b/packages/notices/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/notices", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "State management for notices.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/npm-package-json-lint-config/CHANGELOG.md b/packages/npm-package-json-lint-config/CHANGELOG.md index c7663b2d82013..a5fc41fa22cda 100644 --- a/packages/npm-package-json-lint-config/CHANGELOG.md +++ b/packages/npm-package-json-lint-config/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/npm-package-json-lint-config/package.json b/packages/npm-package-json-lint-config/package.json index 70db6bbb3cc6b..1b2ac5e2c135c 100644 --- a/packages/npm-package-json-lint-config/package.json +++ b/packages/npm-package-json-lint-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/npm-package-json-lint-config", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "WordPress npm-package-json-lint shareable configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/nux/CHANGELOG.md b/packages/nux/CHANGELOG.md index d6e7f3493f25e..9596f52275a50 100644 --- a/packages/nux/CHANGELOG.md +++ b/packages/nux/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 9.2.0 (2024-06-26) + ## 9.1.0 (2024-06-15) ## 9.0.0 (2024-05-31) diff --git a/packages/nux/package.json b/packages/nux/package.json index c5d06804ea583..5374fc8e19a27 100644 --- a/packages/nux/package.json +++ b/packages/nux/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/nux", - "version": "9.1.0", + "version": "9.2.0-prerelease", "description": "NUX (New User eXperience) module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/patterns/CHANGELOG.md b/packages/patterns/CHANGELOG.md index d7e44b3766787..7c627bc99fb7b 100644 --- a/packages/patterns/CHANGELOG.md +++ b/packages/patterns/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 9c8559284363a..220dea2557ce2 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/patterns", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Management of user pattern editing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/plugins/CHANGELOG.md b/packages/plugins/CHANGELOG.md index be2b3ae0e2082..a15b1b0b29e4f 100644 --- a/packages/plugins/CHANGELOG.md +++ b/packages/plugins/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/plugins/package.json b/packages/plugins/package.json index 4efe766c5f167..a684a1b7e3c46 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/plugins", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "Plugins module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/postcss-plugins-preset/CHANGELOG.md b/packages/postcss-plugins-preset/CHANGELOG.md index 216baf221e8d0..a66b36b206445 100644 --- a/packages/postcss-plugins-preset/CHANGELOG.md +++ b/packages/postcss-plugins-preset/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/postcss-plugins-preset/package.json b/packages/postcss-plugins-preset/package.json index f7876cf44cf7a..e0850a7bd0d28 100644 --- a/packages/postcss-plugins-preset/package.json +++ b/packages/postcss-plugins-preset/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/postcss-plugins-preset", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "PostCSS sharable plugins preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/postcss-themes/CHANGELOG.md b/packages/postcss-themes/CHANGELOG.md index d5a2905b521b6..a4a2ffb23d54e 100644 --- a/packages/postcss-themes/CHANGELOG.md +++ b/packages/postcss-themes/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/postcss-themes/package.json b/packages/postcss-themes/package.json index 8ba9357397990..7d84aa85bca64 100644 --- a/packages/postcss-themes/package.json +++ b/packages/postcss-themes/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/postcss-themes", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "PostCSS plugin to generate theme colors.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/preferences-persistence/CHANGELOG.md b/packages/preferences-persistence/CHANGELOG.md index c406b533623b4..a04cb3eb405a3 100644 --- a/packages/preferences-persistence/CHANGELOG.md +++ b/packages/preferences-persistence/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/preferences-persistence/package.json b/packages/preferences-persistence/package.json index a7c6bd72b5131..49538d0bf5b8b 100644 --- a/packages/preferences-persistence/package.json +++ b/packages/preferences-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/preferences-persistence", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "Persistence utilities for `wordpress/preferences`.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/preferences/CHANGELOG.md b/packages/preferences/CHANGELOG.md index ae63e09566a73..8d56a835c66d0 100644 --- a/packages/preferences/CHANGELOG.md +++ b/packages/preferences/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/preferences/package.json b/packages/preferences/package.json index a13f00eb6abcd..366964689f074 100644 --- a/packages/preferences/package.json +++ b/packages/preferences/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/preferences", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Utilities for managing WordPress preferences.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/prettier-config/CHANGELOG.md b/packages/prettier-config/CHANGELOG.md index 4a305e1277c05..a003a3232de44 100644 --- a/packages/prettier-config/CHANGELOG.md +++ b/packages/prettier-config/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index d846963e30e13..b9912e792404b 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/prettier-config", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress Prettier shared configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/primitives/CHANGELOG.md b/packages/primitives/CHANGELOG.md index aa898cca909af..fdc4faf852621 100644 --- a/packages/primitives/CHANGELOG.md +++ b/packages/primitives/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/primitives/package.json b/packages/primitives/package.json index 13b9814e572af..e9af63eba76ee 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/primitives", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress cross-platform primitives.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/priority-queue/CHANGELOG.md b/packages/priority-queue/CHANGELOG.md index b69d8813c8580..eabd78e7e5ad0 100644 --- a/packages/priority-queue/CHANGELOG.md +++ b/packages/priority-queue/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ## 3.0.0 (2024-05-31) diff --git a/packages/priority-queue/package.json b/packages/priority-queue/package.json index e1dd5720fb1ae..ab0feebc0b678 100644 --- a/packages/priority-queue/package.json +++ b/packages/priority-queue/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/priority-queue", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Generic browser priority queue.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/private-apis/CHANGELOG.md b/packages/private-apis/CHANGELOG.md index f9ff4f1f743b4..70142127ff5c6 100644 --- a/packages/private-apis/CHANGELOG.md +++ b/packages/private-apis/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/private-apis/package.json b/packages/private-apis/package.json index 72d2a446913ff..e52c541531422 100644 --- a/packages/private-apis/package.json +++ b/packages/private-apis/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/private-apis", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "Internal experimental APIs for WordPress core.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/project-management-automation/CHANGELOG.md b/packages/project-management-automation/CHANGELOG.md index 9ff1bf76fea1a..c446b48e41933 100644 --- a/packages/project-management-automation/CHANGELOG.md +++ b/packages/project-management-automation/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ### Internal - Upgrade `@octokit/webhooks` dependency ([#62666](https://github.com/WordPress/gutenberg/pull/62666)). diff --git a/packages/project-management-automation/package.json b/packages/project-management-automation/package.json index 9959e064845ce..7c5663de50b8b 100644 --- a/packages/project-management-automation/package.json +++ b/packages/project-management-automation/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/project-management-automation", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "GitHub Action that implements various automation to assist with managing the Gutenberg GitHub repository.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/react-i18n/CHANGELOG.md b/packages/react-i18n/CHANGELOG.md index d88231c98c9e4..67a0fa62b6e38 100644 --- a/packages/react-i18n/CHANGELOG.md +++ b/packages/react-i18n/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/react-i18n/package.json b/packages/react-i18n/package.json index b7adfdba6bfd8..e57d553c74b64 100644 --- a/packages/react-i18n/package.json +++ b/packages/react-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-i18n", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "React bindings for @wordpress/i18n.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/readable-js-assets-webpack-plugin/CHANGELOG.md b/packages/readable-js-assets-webpack-plugin/CHANGELOG.md index 9c4082b9c8e94..0a1f754e9af20 100644 --- a/packages/readable-js-assets-webpack-plugin/CHANGELOG.md +++ b/packages/readable-js-assets-webpack-plugin/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ## 3.0.0 (2024-05-31) diff --git a/packages/readable-js-assets-webpack-plugin/package.json b/packages/readable-js-assets-webpack-plugin/package.json index d9dc135a1f95d..698a6748a3322 100644 --- a/packages/readable-js-assets-webpack-plugin/package.json +++ b/packages/readable-js-assets-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/readable-js-assets-webpack-plugin", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Generate a readable JS file for each JS asset.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/redux-routine/CHANGELOG.md b/packages/redux-routine/CHANGELOG.md index be901169919a7..82bcf42b40152 100644 --- a/packages/redux-routine/CHANGELOG.md +++ b/packages/redux-routine/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/redux-routine/package.json b/packages/redux-routine/package.json index eda47226c9b98..ea10f5c68fa2c 100644 --- a/packages/redux-routine/package.json +++ b/packages/redux-routine/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/redux-routine", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Redux middleware for generator coroutines.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/reusable-blocks/CHANGELOG.md b/packages/reusable-blocks/CHANGELOG.md index a8a37abeeeea0..d8a826950ca48 100644 --- a/packages/reusable-blocks/CHANGELOG.md +++ b/packages/reusable-blocks/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/reusable-blocks/package.json b/packages/reusable-blocks/package.json index 57d26bac79c8b..b12827bfaee56 100644 --- a/packages/reusable-blocks/package.json +++ b/packages/reusable-blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/reusable-blocks", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "Reusable blocks utilities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/rich-text/CHANGELOG.md b/packages/rich-text/CHANGELOG.md index 7de8229a671d7..9ccecf6b5d994 100644 --- a/packages/rich-text/CHANGELOG.md +++ b/packages/rich-text/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 7.2.0 (2024-06-26) + ## 7.1.0 (2024-06-15) ## 7.0.0 (2024-05-31) diff --git a/packages/rich-text/package.json b/packages/rich-text/package.json index 613b8353e54d4..191d5eeea6c26 100644 --- a/packages/rich-text/package.json +++ b/packages/rich-text/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/rich-text", - "version": "7.1.0", + "version": "7.2.0-prerelease", "description": "Rich text value and manipulation API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index e320955adcfd1..77cf1361356a1 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/router/package.json b/packages/router/package.json index 1350ff461cdc1..0cc13fc466b48 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/router", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "Router API for WordPress pages.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index 858bf21309b4d..bef9d4713dae3 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 28.2.0 (2024-06-26) + ## 28.1.0 (2024-06-15) ## 28.0.0 (2024-05-31) diff --git a/packages/scripts/package.json b/packages/scripts/package.json index de70a76cabf83..044397a8c1739 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/scripts", - "version": "28.1.0", + "version": "28.2.0-prerelease", "description": "Collection of reusable scripts for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/server-side-render/CHANGELOG.md b/packages/server-side-render/CHANGELOG.md index a018444c20667..ec8e3fa605ad6 100644 --- a/packages/server-side-render/CHANGELOG.md +++ b/packages/server-side-render/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.2.0 (2024-06-26) + ## 5.1.0 (2024-06-15) ## 5.0.0 (2024-05-31) diff --git a/packages/server-side-render/package.json b/packages/server-side-render/package.json index 76685756bccda..d04ade4b85f86 100644 --- a/packages/server-side-render/package.json +++ b/packages/server-side-render/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/server-side-render", - "version": "5.1.0", + "version": "5.2.0-prerelease", "description": "The component used with WordPress to server-side render a preview of dynamic blocks to display in the editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/shortcode/CHANGELOG.md b/packages/shortcode/CHANGELOG.md index f4535e7d89be2..3db0df4e6eb11 100644 --- a/packages/shortcode/CHANGELOG.md +++ b/packages/shortcode/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/shortcode/package.json b/packages/shortcode/package.json index 08c1f775bf110..eff5de4d43436 100644 --- a/packages/shortcode/package.json +++ b/packages/shortcode/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/shortcode", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Shortcode module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/style-engine/CHANGELOG.md b/packages/style-engine/CHANGELOG.md index 808d27b9c0440..bbcbb8ebd91c1 100644 --- a/packages/style-engine/CHANGELOG.md +++ b/packages/style-engine/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.2.0 (2024-06-26) + ## 2.1.0 (2024-06-15) ## 2.0.0 (2024-05-31) diff --git a/packages/style-engine/package.json b/packages/style-engine/package.json index 029b43ad3384c..89544c0e71274 100644 --- a/packages/style-engine/package.json +++ b/packages/style-engine/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/style-engine", - "version": "2.1.0", + "version": "2.2.0-prerelease", "description": "A suite of parsers and compilers for WordPress styles.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/stylelint-config/CHANGELOG.md b/packages/stylelint-config/CHANGELOG.md index 38e27123da7b1..03fb47e0c8064 100644 --- a/packages/stylelint-config/CHANGELOG.md +++ b/packages/stylelint-config/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 22.2.0 (2024-06-26) + ## 22.1.0 (2024-06-15) ## 22.0.0 (2024-05-31) diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 57aa1eb9c2564..d44ba58c004aa 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/stylelint-config", - "version": "22.1.0", + "version": "22.2.0-prerelease", "description": "stylelint config for WordPress development.", "author": "The WordPress Contributors", "license": "MIT", diff --git a/packages/sync/CHANGELOG.md b/packages/sync/CHANGELOG.md index 83b651222361e..01e72f266c729 100644 --- a/packages/sync/CHANGELOG.md +++ b/packages/sync/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/sync/package.json b/packages/sync/package.json index 5112e568aa9d7..e485d5975739b 100644 --- a/packages/sync/package.json +++ b/packages/sync/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/sync", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "Sync Data.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/token-list/CHANGELOG.md b/packages/token-list/CHANGELOG.md index 7ec1f620d080f..1ed665bdd6660 100644 --- a/packages/token-list/CHANGELOG.md +++ b/packages/token-list/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ### Internal diff --git a/packages/token-list/package.json b/packages/token-list/package.json index 4c080f2d0ddf8..aae00d3f9bffb 100644 --- a/packages/token-list/package.json +++ b/packages/token-list/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/token-list", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Constructable, plain JavaScript DOMTokenList implementation, supporting non-browser runtimes.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/undo-manager/CHANGELOG.md b/packages/undo-manager/CHANGELOG.md index 53eea442c0522..9cd57a1a45e50 100644 --- a/packages/undo-manager/CHANGELOG.md +++ b/packages/undo-manager/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.2.0 (2024-06-26) + ## 1.1.0 (2024-06-15) ## 1.0.0 (2024-05-31) diff --git a/packages/undo-manager/package.json b/packages/undo-manager/package.json index 7ff682f391ed0..c00967f822825 100644 --- a/packages/undo-manager/package.json +++ b/packages/undo-manager/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/undo-manager", - "version": "1.1.0", + "version": "1.2.0-prerelease", "description": "A small package to manage undo/redo.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/url/CHANGELOG.md b/packages/url/CHANGELOG.md index 28d60428b798a..8e18247f0abea 100644 --- a/packages/url/CHANGELOG.md +++ b/packages/url/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/url/package.json b/packages/url/package.json index f12b30c8777aa..5d374b73a62e3 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/url", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress URL utilities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/viewport/CHANGELOG.md b/packages/viewport/CHANGELOG.md index 1c9812d647f80..c45d93cf957a9 100644 --- a/packages/viewport/CHANGELOG.md +++ b/packages/viewport/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 6.2.0 (2024-06-26) + ## 6.1.0 (2024-06-15) ## 6.0.0 (2024-05-31) diff --git a/packages/viewport/package.json b/packages/viewport/package.json index c50eecd6c3531..10813d233f42b 100644 --- a/packages/viewport/package.json +++ b/packages/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/viewport", - "version": "6.1.0", + "version": "6.2.0-prerelease", "description": "Viewport module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/warning/CHANGELOG.md b/packages/warning/CHANGELOG.md index 5671b28dbbd9e..a095d017f105d 100644 --- a/packages/warning/CHANGELOG.md +++ b/packages/warning/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.2.0 (2024-06-26) + ## 3.1.0 (2024-06-15) ### Internal diff --git a/packages/warning/package.json b/packages/warning/package.json index ef19454cb0b77..ca59a115d1a70 100644 --- a/packages/warning/package.json +++ b/packages/warning/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/warning", - "version": "3.1.0", + "version": "3.2.0-prerelease", "description": "Warning utility for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/widgets/CHANGELOG.md b/packages/widgets/CHANGELOG.md index 3596456b136c6..59c8aa78ad477 100644 --- a/packages/widgets/CHANGELOG.md +++ b/packages/widgets/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/widgets/package.json b/packages/widgets/package.json index 49d7c2e29fead..63ad7d0e1673b 100644 --- a/packages/widgets/package.json +++ b/packages/widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/widgets", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "Functionality used by the widgets block editor in the Widgets screen and the Customizer.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/wordcount/CHANGELOG.md b/packages/wordcount/CHANGELOG.md index 5fd0348844195..faa99087917e7 100644 --- a/packages/wordcount/CHANGELOG.md +++ b/packages/wordcount/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 4.2.0 (2024-06-26) + ## 4.1.0 (2024-06-15) ## 4.0.0 (2024-05-31) diff --git a/packages/wordcount/package.json b/packages/wordcount/package.json index 8210b0328a46b..ff65760bc60bc 100644 --- a/packages/wordcount/package.json +++ b/packages/wordcount/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/wordcount", - "version": "4.1.0", + "version": "4.2.0-prerelease", "description": "WordPress word count utility.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From 9f8c26024ce7ffb36223708e0f180f0645967fd3 Mon Sep 17 00:00:00 2001 From: Gutenberg Repository Automation Date: Wed, 26 Jun 2024 07:47:53 +0000 Subject: [PATCH 08/34] chore(release): publish - @wordpress/a11y@4.2.0 - @wordpress/annotations@3.2.0 - @wordpress/api-fetch@7.2.0 - @wordpress/autop@4.2.0 - @wordpress/babel-plugin-import-jsx-pragma@5.2.0 - @wordpress/babel-plugin-makepot@6.2.0 - @wordpress/babel-preset-default@8.2.0 - @wordpress/base-styles@5.2.0 - @wordpress/blob@4.2.0 - @wordpress/block-directory@5.2.0 - @wordpress/block-editor@13.2.0 - @wordpress/block-library@9.2.0 - @wordpress/block-serialization-default-parser@5.2.0 - @wordpress/block-serialization-spec-parser@5.2.0 - @wordpress/blocks@13.2.0 - @wordpress/browserslist-config@6.2.0 - @wordpress/commands@1.2.0 - @wordpress/components@28.2.0 - @wordpress/compose@7.2.0 - @wordpress/core-commands@1.2.0 - @wordpress/core-data@7.2.0 - @wordpress/create-block@4.45.0 - @wordpress/create-block-interactive-template@2.2.0 - @wordpress/create-block-tutorial-template@4.2.0 - @wordpress/customize-widgets@5.2.0 - @wordpress/data@10.2.0 - @wordpress/data-controls@4.2.0 - @wordpress/dataviews@2.2.0 - @wordpress/date@5.2.0 - @wordpress/dependency-extraction-webpack-plugin@6.2.0 - @wordpress/deprecated@4.2.0 - @wordpress/docgen@2.2.0 - @wordpress/dom@4.2.0 - @wordpress/dom-ready@4.2.0 - @wordpress/e2e-test-utils@11.2.0 - @wordpress/e2e-test-utils-playwright@1.2.0 - @wordpress/e2e-tests@8.2.0 - @wordpress/edit-post@8.2.0 - @wordpress/edit-site@6.2.0 - @wordpress/edit-widgets@6.2.0 - @wordpress/editor@14.2.0 - @wordpress/element@6.2.0 - @wordpress/env@10.2.0 - @wordpress/escape-html@3.2.0 - @wordpress/eslint-plugin@19.2.0 - @wordpress/format-library@5.2.0 - @wordpress/hooks@4.2.0 - @wordpress/html-entities@4.2.0 - @wordpress/i18n@5.2.0 - @wordpress/icons@10.2.0 - @wordpress/interactivity@6.2.0 - @wordpress/interactivity-router@2.2.0 - @wordpress/interface@6.2.0 - @wordpress/is-shallow-equal@5.2.0 - @wordpress/jest-console@8.2.0 - @wordpress/jest-preset-default@12.2.0 - @wordpress/jest-puppeteer-axe@7.2.0 - @wordpress/keyboard-shortcuts@5.2.0 - @wordpress/keycodes@4.2.0 - @wordpress/lazy-import@2.2.0 - @wordpress/list-reusable-blocks@5.2.0 - @wordpress/media-utils@5.2.0 - @wordpress/notices@5.2.0 - @wordpress/npm-package-json-lint-config@5.2.0 - @wordpress/nux@9.2.0 - @wordpress/patterns@2.2.0 - @wordpress/plugins@7.2.0 - @wordpress/postcss-plugins-preset@5.2.0 - @wordpress/postcss-themes@6.2.0 - @wordpress/preferences@4.2.0 - @wordpress/preferences-persistence@2.2.0 - @wordpress/prettier-config@4.2.0 - @wordpress/primitives@4.2.0 - @wordpress/priority-queue@3.2.0 - @wordpress/private-apis@1.2.0 - @wordpress/project-management-automation@2.2.0 - @wordpress/react-i18n@4.2.0 - @wordpress/readable-js-assets-webpack-plugin@3.2.0 - @wordpress/redux-routine@5.2.0 - @wordpress/reusable-blocks@5.2.0 - @wordpress/rich-text@7.2.0 - @wordpress/router@1.2.0 - @wordpress/scripts@28.2.0 - @wordpress/server-side-render@5.2.0 - @wordpress/shortcode@4.2.0 - @wordpress/style-engine@2.2.0 - @wordpress/stylelint-config@22.2.0 - @wordpress/sync@1.2.0 - @wordpress/token-list@3.2.0 - @wordpress/undo-manager@1.2.0 - @wordpress/url@4.2.0 - @wordpress/viewport@6.2.0 - @wordpress/warning@3.2.0 - @wordpress/widgets@4.2.0 - @wordpress/wordcount@4.2.0 --- package-lock.json | 188 +++++++++--------- packages/a11y/package.json | 2 +- packages/annotations/package.json | 2 +- packages/api-fetch/package.json | 2 +- packages/autop/package.json | 2 +- .../package.json | 2 +- packages/babel-plugin-makepot/package.json | 2 +- packages/babel-preset-default/package.json | 2 +- packages/base-styles/package.json | 2 +- packages/blob/package.json | 2 +- packages/block-directory/package.json | 2 +- packages/block-editor/package.json | 2 +- packages/block-library/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/blocks/package.json | 2 +- packages/browserslist-config/package.json | 2 +- packages/commands/package.json | 2 +- packages/components/package.json | 2 +- packages/compose/package.json | 2 +- packages/core-commands/package.json | 2 +- packages/core-data/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/create-block/package.json | 2 +- packages/customize-widgets/package.json | 2 +- packages/data-controls/package.json | 2 +- packages/data/package.json | 2 +- packages/dataviews/package.json | 2 +- packages/date/package.json | 2 +- .../package.json | 2 +- packages/deprecated/package.json | 2 +- packages/docgen/package.json | 2 +- packages/dom-ready/package.json | 2 +- packages/dom/package.json | 2 +- .../e2e-test-utils-playwright/package.json | 2 +- packages/e2e-test-utils/package.json | 2 +- packages/e2e-tests/package.json | 2 +- packages/edit-post/package.json | 2 +- packages/edit-site/package.json | 2 +- packages/edit-widgets/package.json | 2 +- packages/editor/package.json | 2 +- packages/element/package.json | 2 +- packages/env/package.json | 2 +- packages/escape-html/package.json | 2 +- packages/eslint-plugin/package.json | 2 +- packages/format-library/package.json | 2 +- packages/hooks/package.json | 2 +- packages/html-entities/package.json | 2 +- packages/i18n/package.json | 2 +- packages/icons/package.json | 2 +- packages/interactivity-router/package.json | 2 +- packages/interactivity/package.json | 2 +- packages/interface/package.json | 2 +- packages/is-shallow-equal/package.json | 2 +- packages/jest-console/package.json | 2 +- packages/jest-preset-default/package.json | 2 +- packages/jest-puppeteer-axe/package.json | 2 +- packages/keyboard-shortcuts/package.json | 2 +- packages/keycodes/package.json | 2 +- packages/lazy-import/package.json | 2 +- packages/list-reusable-blocks/package.json | 2 +- packages/media-utils/package.json | 2 +- packages/notices/package.json | 2 +- .../npm-package-json-lint-config/package.json | 2 +- packages/nux/package.json | 2 +- packages/patterns/package.json | 2 +- packages/plugins/package.json | 2 +- packages/postcss-plugins-preset/package.json | 2 +- packages/postcss-themes/package.json | 2 +- packages/preferences-persistence/package.json | 2 +- packages/preferences/package.json | 2 +- packages/prettier-config/package.json | 2 +- packages/primitives/package.json | 2 +- packages/priority-queue/package.json | 2 +- packages/private-apis/package.json | 2 +- .../package.json | 2 +- packages/react-i18n/package.json | 2 +- .../package.json | 2 +- packages/redux-routine/package.json | 2 +- packages/reusable-blocks/package.json | 2 +- packages/rich-text/package.json | 2 +- packages/router/package.json | 2 +- packages/scripts/package.json | 2 +- packages/server-side-render/package.json | 2 +- packages/shortcode/package.json | 2 +- packages/style-engine/package.json | 2 +- packages/stylelint-config/package.json | 2 +- packages/sync/package.json | 2 +- packages/token-list/package.json | 2 +- packages/undo-manager/package.json | 2 +- packages/url/package.json | 2 +- packages/viewport/package.json | 2 +- packages/warning/package.json | 2 +- packages/widgets/package.json | 2 +- packages/wordcount/package.json | 2 +- 96 files changed, 189 insertions(+), 189 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8117087a979b4..6ceb95551a3e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53078,7 +53078,7 @@ }, "packages/a11y": { "name": "@wordpress/a11y", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53092,7 +53092,7 @@ }, "packages/annotations": { "name": "@wordpress/annotations", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53120,7 +53120,7 @@ }, "packages/api-fetch": { "name": "@wordpress/api-fetch", - "version": "7.1.0", + "version": "7.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53134,7 +53134,7 @@ }, "packages/autop": { "name": "@wordpress/autop", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -53146,7 +53146,7 @@ }, "packages/babel-plugin-import-jsx-pragma": { "name": "@wordpress/babel-plugin-import-jsx-pragma", - "version": "5.1.0", + "version": "5.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -53159,7 +53159,7 @@ }, "packages/babel-plugin-makepot": { "name": "@wordpress/babel-plugin-makepot", - "version": "6.1.0", + "version": "6.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -53177,7 +53177,7 @@ }, "packages/babel-preset-default": { "name": "@wordpress/babel-preset-default", - "version": "8.1.0", + "version": "8.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -53200,7 +53200,7 @@ }, "packages/base-styles": { "name": "@wordpress/base-styles", - "version": "5.1.0", + "version": "5.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -53210,7 +53210,7 @@ }, "packages/blob": { "name": "@wordpress/blob", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -53222,7 +53222,7 @@ }, "packages/block-directory": { "name": "@wordpress/block-directory", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53258,7 +53258,7 @@ }, "packages/block-editor": { "name": "@wordpress/block-editor", - "version": "13.1.0", + "version": "13.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53372,7 +53372,7 @@ }, "packages/block-library": { "name": "@wordpress/block-library", - "version": "9.1.0", + "version": "9.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53438,7 +53438,7 @@ }, "packages/block-serialization-default-parser": { "name": "@wordpress/block-serialization-default-parser", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -53450,7 +53450,7 @@ }, "packages/block-serialization-spec-parser": { "name": "@wordpress/block-serialization-spec-parser", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "pegjs": "^0.10.0", @@ -53463,7 +53463,7 @@ }, "packages/blocks": { "name": "@wordpress/blocks", - "version": "13.1.0", + "version": "13.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53516,7 +53516,7 @@ }, "packages/browserslist-config": { "name": "@wordpress/browserslist-config", - "version": "6.1.0", + "version": "6.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -53526,7 +53526,7 @@ }, "packages/commands": { "name": "@wordpress/commands", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53551,7 +53551,7 @@ }, "packages/components": { "name": "@wordpress/components", - "version": "28.1.0", + "version": "28.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@ariakit/react": "^0.3.12", @@ -53643,7 +53643,7 @@ }, "packages/compose": { "name": "@wordpress/compose", - "version": "7.1.0", + "version": "7.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53680,7 +53680,7 @@ }, "packages/core-commands": { "name": "@wordpress/core-commands", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53707,7 +53707,7 @@ }, "packages/core-data": { "name": "@wordpress/core-data", - "version": "7.1.0", + "version": "7.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53751,7 +53751,7 @@ }, "packages/create-block": { "name": "@wordpress/create-block", - "version": "4.44.0", + "version": "4.45.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -53779,7 +53779,7 @@ }, "packages/create-block-tutorial-template": { "name": "@wordpress/create-block-tutorial-template", - "version": "4.1.0", + "version": "4.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -53789,7 +53789,7 @@ }, "packages/customize-widgets": { "name": "@wordpress/customize-widgets", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53827,7 +53827,7 @@ }, "packages/data": { "name": "@wordpress/data", - "version": "10.1.0", + "version": "10.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53856,7 +53856,7 @@ }, "packages/data-controls": { "name": "@wordpress/data-controls", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53874,7 +53874,7 @@ }, "packages/dataviews": { "name": "@wordpress/dataviews", - "version": "2.1.0", + "version": "2.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@ariakit/react": "^0.3.12", @@ -53935,7 +53935,7 @@ }, "packages/date": { "name": "@wordpress/date", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53950,7 +53950,7 @@ }, "packages/dependency-extraction-webpack-plugin": { "name": "@wordpress/dependency-extraction-webpack-plugin", - "version": "6.1.0", + "version": "6.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -53966,7 +53966,7 @@ }, "packages/deprecated": { "name": "@wordpress/deprecated", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -53979,7 +53979,7 @@ }, "packages/docgen": { "name": "@wordpress/docgen", - "version": "2.1.0", + "version": "2.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54001,7 +54001,7 @@ }, "packages/dom": { "name": "@wordpress/dom", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54014,7 +54014,7 @@ }, "packages/dom-ready": { "name": "@wordpress/dom-ready", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -54026,7 +54026,7 @@ }, "packages/e2e-test-utils": { "name": "@wordpress/e2e-test-utils", - "version": "11.1.0", + "version": "11.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54049,7 +54049,7 @@ }, "packages/e2e-test-utils-playwright": { "name": "@wordpress/e2e-test-utils-playwright", - "version": "1.1.0", + "version": "1.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54070,7 +54070,7 @@ }, "packages/e2e-tests": { "name": "@wordpress/e2e-tests", - "version": "8.1.0", + "version": "8.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54110,7 +54110,7 @@ }, "packages/edit-post": { "name": "@wordpress/edit-post", - "version": "8.1.0", + "version": "8.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54157,7 +54157,7 @@ }, "packages/edit-site": { "name": "@wordpress/edit-site", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54219,7 +54219,7 @@ }, "packages/edit-widgets": { "name": "@wordpress/edit-widgets", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54262,7 +54262,7 @@ }, "packages/editor": { "name": "@wordpress/editor", - "version": "14.1.0", + "version": "14.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54321,7 +54321,7 @@ }, "packages/element": { "name": "@wordpress/element", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54340,7 +54340,7 @@ }, "packages/env": { "name": "@wordpress/env", - "version": "10.1.0", + "version": "10.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54481,7 +54481,7 @@ }, "packages/escape-html": { "name": "@wordpress/escape-html", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -54493,7 +54493,7 @@ }, "packages/eslint-plugin": { "name": "@wordpress/eslint-plugin", - "version": "19.1.0", + "version": "19.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54536,7 +54536,7 @@ }, "packages/format-library": { "name": "@wordpress/format-library", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54564,7 +54564,7 @@ }, "packages/hooks": { "name": "@wordpress/hooks", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -54576,7 +54576,7 @@ }, "packages/html-entities": { "name": "@wordpress/html-entities", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -54588,7 +54588,7 @@ }, "packages/i18n": { "name": "@wordpress/i18n", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54608,7 +54608,7 @@ }, "packages/icons": { "name": "@wordpress/icons", - "version": "10.1.0", + "version": "10.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54622,7 +54622,7 @@ }, "packages/interactivity": { "name": "@wordpress/interactivity", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@preact/signals": "^1.2.2", @@ -54636,7 +54636,7 @@ }, "packages/interactivity-router": { "name": "@wordpress/interactivity-router", - "version": "2.1.0", + "version": "2.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/interactivity": "file:../interactivity" @@ -54697,7 +54697,7 @@ }, "packages/interface": { "name": "@wordpress/interface", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54726,7 +54726,7 @@ }, "packages/is-shallow-equal": { "name": "@wordpress/is-shallow-equal", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -54738,7 +54738,7 @@ }, "packages/jest-console": { "name": "@wordpress/jest-console", - "version": "8.1.0", + "version": "8.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54755,7 +54755,7 @@ }, "packages/jest-preset-default": { "name": "@wordpress/jest-preset-default", - "version": "12.1.0", + "version": "12.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54773,7 +54773,7 @@ }, "packages/jest-puppeteer-axe": { "name": "@wordpress/jest-puppeteer-axe", - "version": "7.1.0", + "version": "7.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54796,7 +54796,7 @@ }, "packages/keyboard-shortcuts": { "name": "@wordpress/keyboard-shortcuts", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54814,7 +54814,7 @@ }, "packages/keycodes": { "name": "@wordpress/keycodes", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54827,7 +54827,7 @@ }, "packages/lazy-import": { "name": "@wordpress/lazy-import", - "version": "2.1.0", + "version": "2.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -54842,7 +54842,7 @@ }, "packages/list-reusable-blocks": { "name": "@wordpress/list-reusable-blocks", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54865,7 +54865,7 @@ }, "packages/media-utils": { "name": "@wordpress/media-utils", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54881,7 +54881,7 @@ }, "packages/notices": { "name": "@wordpress/notices", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54898,7 +54898,7 @@ }, "packages/npm-package-json-lint-config": { "name": "@wordpress/npm-package-json-lint-config", - "version": "5.1.0", + "version": "5.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -54911,7 +54911,7 @@ }, "packages/nux": { "name": "@wordpress/nux", - "version": "9.1.0", + "version": "9.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54934,7 +54934,7 @@ }, "packages/patterns": { "name": "@wordpress/patterns", - "version": "2.1.0", + "version": "2.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54964,7 +54964,7 @@ }, "packages/plugins": { "name": "@wordpress/plugins", - "version": "7.1.0", + "version": "7.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -54987,7 +54987,7 @@ }, "packages/postcss-plugins-preset": { "name": "@wordpress/postcss-plugins-preset", - "version": "5.1.0", + "version": "5.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -55004,7 +55004,7 @@ }, "packages/postcss-themes": { "name": "@wordpress/postcss-themes", - "version": "6.1.0", + "version": "6.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -55017,7 +55017,7 @@ }, "packages/preferences": { "name": "@wordpress/preferences", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55043,7 +55043,7 @@ }, "packages/preferences-persistence": { "name": "@wordpress/preferences-persistence", - "version": "2.1.0", + "version": "2.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55056,7 +55056,7 @@ }, "packages/prettier-config": { "name": "@wordpress/prettier-config", - "version": "4.1.0", + "version": "4.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -55069,7 +55069,7 @@ }, "packages/primitives": { "name": "@wordpress/primitives", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55083,7 +55083,7 @@ }, "packages/priority-queue": { "name": "@wordpress/priority-queue", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55096,7 +55096,7 @@ }, "packages/private-apis": { "name": "@wordpress/private-apis", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -55108,7 +55108,7 @@ }, "packages/project-management-automation": { "name": "@wordpress/project-management-automation", - "version": "2.1.0", + "version": "2.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -55162,7 +55162,7 @@ }, "packages/react-i18n": { "name": "@wordpress/react-i18n", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55318,7 +55318,7 @@ }, "packages/readable-js-assets-webpack-plugin": { "name": "@wordpress/readable-js-assets-webpack-plugin", - "version": "3.1.0", + "version": "3.2.0", "dev": true, "license": "GPL-2.0-or-later", "engines": { @@ -55331,7 +55331,7 @@ }, "packages/redux-routine": { "name": "@wordpress/redux-routine", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55376,7 +55376,7 @@ }, "packages/reusable-blocks": { "name": "@wordpress/reusable-blocks", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55403,7 +55403,7 @@ }, "packages/rich-text": { "name": "@wordpress/rich-text", - "version": "7.1.0", + "version": "7.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55427,7 +55427,7 @@ }, "packages/router": { "name": "@wordpress/router", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55446,7 +55446,7 @@ }, "packages/scripts": { "name": "@wordpress/scripts", - "version": "28.1.0", + "version": "28.2.0", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -55832,7 +55832,7 @@ }, "packages/server-side-render": { "name": "@wordpress/server-side-render", - "version": "5.1.0", + "version": "5.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55858,7 +55858,7 @@ }, "packages/shortcode": { "name": "@wordpress/shortcode", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55871,7 +55871,7 @@ }, "packages/style-engine": { "name": "@wordpress/style-engine", - "version": "2.1.0", + "version": "2.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55884,7 +55884,7 @@ }, "packages/stylelint-config": { "name": "@wordpress/stylelint-config", - "version": "22.1.0", + "version": "22.2.0", "dev": true, "license": "MIT", "dependencies": { @@ -55901,7 +55901,7 @@ }, "packages/sync": { "name": "@wordpress/sync", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55922,7 +55922,7 @@ }, "packages/token-list": { "name": "@wordpress/token-list", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" @@ -55934,7 +55934,7 @@ }, "packages/undo-manager": { "name": "@wordpress/undo-manager", - "version": "1.1.0", + "version": "1.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55947,7 +55947,7 @@ }, "packages/url": { "name": "@wordpress/url", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55960,7 +55960,7 @@ }, "packages/viewport": { "name": "@wordpress/viewport", - "version": "6.1.0", + "version": "6.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -55978,7 +55978,7 @@ }, "packages/warning": { "name": "@wordpress/warning", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "engines": { "node": ">=18.12.0", @@ -55987,7 +55987,7 @@ }, "packages/widgets": { "name": "@wordpress/widgets", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0", @@ -56015,7 +56015,7 @@ }, "packages/wordcount": { "name": "@wordpress/wordcount", - "version": "4.1.0", + "version": "4.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "^7.16.0" diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 6004bbd72461d..0e9590381a290 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/a11y", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Accessibility (a11y) utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/annotations/package.json b/packages/annotations/package.json index f4ae2c321670c..2f030df0e6cb9 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/annotations", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Annotate content in the Gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index b606ae168db6b..112d5d8fb501d 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/api-fetch", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "Utility to make WordPress REST API requests.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/autop/package.json b/packages/autop/package.json index 3ea146bcd998b..a232e196e3c24 100644 --- a/packages/autop/package.json +++ b/packages/autop/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/autop", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress's automatic paragraph functions `autop` and `removep`.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json index d5022779d157b..88d09cecebf37 100644 --- a/packages/babel-plugin-import-jsx-pragma/package.json +++ b/packages/babel-plugin-import-jsx-pragma/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-import-jsx-pragma", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Transform plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json index 888468b909e5b..1ff539297bddb 100644 --- a/packages/babel-plugin-makepot/package.json +++ b/packages/babel-plugin-makepot/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-plugin-makepot", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "WordPress Babel internationalization (i18n) plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json index 0e6304fe40a5d..6a44e479bd02b 100644 --- a/packages/babel-preset-default/package.json +++ b/packages/babel-preset-default/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/babel-preset-default", - "version": "8.2.0-prerelease", + "version": "8.2.0", "description": "Default Babel preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/base-styles/package.json b/packages/base-styles/package.json index 06ee706c8a884..b573693574d82 100644 --- a/packages/base-styles/package.json +++ b/packages/base-styles/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/base-styles", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Base SCSS utilities and variables for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/blob/package.json b/packages/blob/package.json index 62b7945369417..42b65ae434b21 100644 --- a/packages/blob/package.json +++ b/packages/blob/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/blob", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Blob utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json index 3c9179a9091ca..d62b4adb9c0dc 100644 --- a/packages/block-directory/package.json +++ b/packages/block-directory/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-directory", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Extend editor with block directory features to search, download and install blocks.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index 5b0fc31d95628..7e16ca0e3f6f0 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-editor", - "version": "13.2.0-prerelease", + "version": "13.2.0", "description": "Generic block editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-library/package.json b/packages/block-library/package.json index 6b00b49e6e3f4..7a940fca79ba1 100644 --- a/packages/block-library/package.json +++ b/packages/block-library/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-library", - "version": "9.2.0-prerelease", + "version": "9.2.0", "description": "Block library for the WordPress editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-serialization-default-parser/package.json b/packages/block-serialization-default-parser/package.json index ecc2633366793..ce1a6f738c076 100644 --- a/packages/block-serialization-default-parser/package.json +++ b/packages/block-serialization-default-parser/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-serialization-default-parser", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Block serialization specification parser for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/block-serialization-spec-parser/package.json b/packages/block-serialization-spec-parser/package.json index 0be9767493315..560cbe7a288b2 100644 --- a/packages/block-serialization-spec-parser/package.json +++ b/packages/block-serialization-spec-parser/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/block-serialization-spec-parser", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Block serialization specification parser for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/blocks/package.json b/packages/blocks/package.json index 9de34da4251dd..dbd3471c74d17 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/blocks", - "version": "13.2.0-prerelease", + "version": "13.2.0", "description": "Block API for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/browserslist-config/package.json b/packages/browserslist-config/package.json index c77bd38be0f3e..62c4d589878d8 100644 --- a/packages/browserslist-config/package.json +++ b/packages/browserslist-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/browserslist-config", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "WordPress Browserslist shared configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/commands/package.json b/packages/commands/package.json index ec25ebdefebc9..9293229379a9e 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/commands", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "Handles the commands menu.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/components/package.json b/packages/components/package.json index 5a5c6295ea79c..cf2db01951948 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/components", - "version": "28.2.0-prerelease", + "version": "28.2.0", "description": "UI components for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/compose/package.json b/packages/compose/package.json index 6137cfee0dd1b..2f4ddbf49666a 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/compose", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "WordPress higher-order components (HOCs).", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/core-commands/package.json b/packages/core-commands/package.json index 54d6d614339c8..0dccaf7c9c809 100644 --- a/packages/core-commands/package.json +++ b/packages/core-commands/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/core-commands", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "WordPress core reusable commands.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/core-data/package.json b/packages/core-data/package.json index 392d4c88aea97..cb8376461c067 100644 --- a/packages/core-data/package.json +++ b/packages/core-data/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/core-data", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "Access to and manipulation of core WordPress entities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block-interactive-template/package.json b/packages/create-block-interactive-template/package.json index 59b631a5e96e2..ebdd119306ee2 100644 --- a/packages/create-block-interactive-template/package.json +++ b/packages/create-block-interactive-template/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block-interactive-template", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Template for @wordpress/create-block to create interactive blocks with the Interactivity API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block-tutorial-template/package.json b/packages/create-block-tutorial-template/package.json index 6a3d46573b8fa..25baa61ca2394 100644 --- a/packages/create-block-tutorial-template/package.json +++ b/packages/create-block-tutorial-template/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block-tutorial-template", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "This is a template for @wordpress/create-block that creates an example 'Copyright Date' block. This block is used in the official WordPress block development Quick Start Guide.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/create-block/package.json b/packages/create-block/package.json index 15597aff39581..44d2a598f4181 100644 --- a/packages/create-block/package.json +++ b/packages/create-block/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/create-block", - "version": "4.45.0-prerelease", + "version": "4.45.0", "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/customize-widgets/package.json b/packages/customize-widgets/package.json index 0593f3d0f204c..ec53f1efeaebc 100644 --- a/packages/customize-widgets/package.json +++ b/packages/customize-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/customize-widgets", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Widgets blocks in Customizer Module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/data-controls/package.json b/packages/data-controls/package.json index da77433737aae..de6cc8a8908c4 100644 --- a/packages/data-controls/package.json +++ b/packages/data-controls/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/data-controls", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "A set of common controls for the @wordpress/data api.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/data/package.json b/packages/data/package.json index 7bb4e8b5466cd..250e075a7972d 100644 --- a/packages/data/package.json +++ b/packages/data/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/data", - "version": "10.2.0-prerelease", + "version": "10.2.0", "description": "Data module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dataviews/package.json b/packages/dataviews/package.json index 28890663395d1..c6213c42973eb 100644 --- a/packages/dataviews/package.json +++ b/packages/dataviews/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dataviews", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/date/package.json b/packages/date/package.json index 5d47fb8cbc765..c36acd44eed33 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/date", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Date module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dependency-extraction-webpack-plugin/package.json b/packages/dependency-extraction-webpack-plugin/package.json index 2f7ebcbe8aa1c..b0e08b7f4839b 100644 --- a/packages/dependency-extraction-webpack-plugin/package.json +++ b/packages/dependency-extraction-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dependency-extraction-webpack-plugin", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Extract WordPress script dependencies from webpack bundles.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/deprecated/package.json b/packages/deprecated/package.json index 0c85630486246..14531ff6acd77 100644 --- a/packages/deprecated/package.json +++ b/packages/deprecated/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/deprecated", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Deprecation utility for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/docgen/package.json b/packages/docgen/package.json index 13dc62757aa84..9ff54b339c3d1 100644 --- a/packages/docgen/package.json +++ b/packages/docgen/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/docgen", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Autogenerate public API documentation from exports and JSDoc comments.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dom-ready/package.json b/packages/dom-ready/package.json index ee4a20f79cf78..abf5ed3c6ebd2 100644 --- a/packages/dom-ready/package.json +++ b/packages/dom-ready/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dom-ready", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Execute callback after the DOM is loaded.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/dom/package.json b/packages/dom/package.json index 0ca5752d4fd7f..eb29e016ba344 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/dom", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "DOM utilities module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-test-utils-playwright/package.json b/packages/e2e-test-utils-playwright/package.json index 59a5f2ba62666..e56a2d8e1211d 100644 --- a/packages/e2e-test-utils-playwright/package.json +++ b/packages/e2e-test-utils-playwright/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-test-utils-playwright", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "End-To-End (E2E) test utils for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-test-utils/package.json b/packages/e2e-test-utils/package.json index f153f217ecabc..9d05ec61e413c 100644 --- a/packages/e2e-test-utils/package.json +++ b/packages/e2e-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-test-utils", - "version": "11.2.0-prerelease", + "version": "11.2.0", "description": "End-To-End (E2E) test utils for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 9737775e09386..d2c58a6e3ff87 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/e2e-tests", - "version": "8.2.0-prerelease", + "version": "8.2.0", "description": "End-To-End (E2E) tests for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-post/package.json b/packages/edit-post/package.json index 71c29a97d14ef..603db6cad02a0 100644 --- a/packages/edit-post/package.json +++ b/packages/edit-post/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-post", - "version": "8.2.0-prerelease", + "version": "8.2.0", "description": "Edit Post module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-site/package.json b/packages/edit-site/package.json index 2dadb3245790c..b2aa60312fe68 100644 --- a/packages/edit-site/package.json +++ b/packages/edit-site/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-site", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Edit Site Page module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/edit-widgets/package.json b/packages/edit-widgets/package.json index c2f34d2c43850..e9634d51b7f41 100644 --- a/packages/edit-widgets/package.json +++ b/packages/edit-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/edit-widgets", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Widgets Page module for WordPress..", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/editor/package.json b/packages/editor/package.json index 0b282d1e2c9f9..932be1a1799fc 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/editor", - "version": "14.2.0-prerelease", + "version": "14.2.0", "description": "Enhanced block editor for WordPress posts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/element/package.json b/packages/element/package.json index 0291a95a4146c..95b8e52c2b026 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/element", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Element React module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/env/package.json b/packages/env/package.json index 4e47866db5695..5a6b162be7dd6 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/env", - "version": "10.2.0-prerelease", + "version": "10.2.0", "description": "A zero-config, self contained local WordPress environment for development and testing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/escape-html/package.json b/packages/escape-html/package.json index 6f8862eaec62d..8079837dc8761 100644 --- a/packages/escape-html/package.json +++ b/packages/escape-html/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/escape-html", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Escape HTML utils.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 239ae3ada6a04..f43b29a74b1d5 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/eslint-plugin", - "version": "19.2.0-prerelease", + "version": "19.2.0", "description": "ESLint plugin for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/format-library/package.json b/packages/format-library/package.json index f7ccc8d9381ee..ac20b8ca0dd32 100644 --- a/packages/format-library/package.json +++ b/packages/format-library/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/format-library", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Format library for the WordPress editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index b017245407cfc..d84718d270d78 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/hooks", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress hooks library.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/html-entities/package.json b/packages/html-entities/package.json index 48c3d409dee13..3f30a2f1e3021 100644 --- a/packages/html-entities/package.json +++ b/packages/html-entities/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/html-entities", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "HTML entity utilities for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 15523ea2692e9..6830316da4433 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/i18n", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "WordPress internationalization (i18n) library.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/icons/package.json b/packages/icons/package.json index ac15049519ccc..a155cbc50dec6 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/icons", - "version": "10.2.0-prerelease", + "version": "10.2.0", "description": "WordPress Icons package, based on dashicon.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interactivity-router/package.json b/packages/interactivity-router/package.json index d6fee3bba961f..2e4197a2e480a 100644 --- a/packages/interactivity-router/package.json +++ b/packages/interactivity-router/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interactivity-router", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Package that exposes state and actions from the `core/router` store, part of the Interactivity API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interactivity/package.json b/packages/interactivity/package.json index 0c0add7a14316..2ef6c241bf204 100644 --- a/packages/interactivity/package.json +++ b/packages/interactivity/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interactivity", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Package that provides a standard and simple way to handle the frontend interactivity of Gutenberg blocks.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/interface/package.json b/packages/interface/package.json index e4083689efff8..070a0aa9a46c0 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/interface", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/is-shallow-equal/package.json b/packages/is-shallow-equal/package.json index 2b740d60baee8..5410b081cd1e4 100644 --- a/packages/is-shallow-equal/package.json +++ b/packages/is-shallow-equal/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/is-shallow-equal", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Test for shallow equality between two objects or arrays.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-console/package.json b/packages/jest-console/package.json index b298bd96d7af7..325d64b0b2251 100644 --- a/packages/jest-console/package.json +++ b/packages/jest-console/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-console", - "version": "8.2.0-prerelease", + "version": "8.2.0", "description": "Custom Jest matchers for the Console object.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-preset-default/package.json b/packages/jest-preset-default/package.json index 1d4665f23cf65..973d6c0cff49a 100644 --- a/packages/jest-preset-default/package.json +++ b/packages/jest-preset-default/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-preset-default", - "version": "12.2.0-prerelease", + "version": "12.2.0", "description": "Default Jest preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/jest-puppeteer-axe/package.json b/packages/jest-puppeteer-axe/package.json index b4364923c5e5c..03e03c65eae1d 100644 --- a/packages/jest-puppeteer-axe/package.json +++ b/packages/jest-puppeteer-axe/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/jest-puppeteer-axe", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "Axe API integration with Jest and Puppeteer.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/keyboard-shortcuts/package.json b/packages/keyboard-shortcuts/package.json index 7125c6f63f2b6..37dbea2281efc 100644 --- a/packages/keyboard-shortcuts/package.json +++ b/packages/keyboard-shortcuts/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/keyboard-shortcuts", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Handling keyboard shortcuts.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/keycodes/package.json b/packages/keycodes/package.json index f1d4c56f518b5..b2d7dff90758d 100644 --- a/packages/keycodes/package.json +++ b/packages/keycodes/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/keycodes", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Keycodes utilities for WordPress. Used to check for keyboard events across browsers/operating systems.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/lazy-import/package.json b/packages/lazy-import/package.json index 6764baab49a73..e54740b979774 100644 --- a/packages/lazy-import/package.json +++ b/packages/lazy-import/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/lazy-import", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Lazily import a module, installing it automatically if missing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/list-reusable-blocks/package.json b/packages/list-reusable-blocks/package.json index 0d7a40f65bd17..69731f55f86b2 100644 --- a/packages/list-reusable-blocks/package.json +++ b/packages/list-reusable-blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/list-reusable-blocks", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Adding Export/Import support to the reusable blocks listing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json index 26c4f3bbc1e24..efe17f01c7875 100644 --- a/packages/media-utils/package.json +++ b/packages/media-utils/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/media-utils", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "WordPress Media Upload Utils.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/notices/package.json b/packages/notices/package.json index 5f8e29da802ea..922e8d5eaeb3e 100644 --- a/packages/notices/package.json +++ b/packages/notices/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/notices", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "State management for notices.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/npm-package-json-lint-config/package.json b/packages/npm-package-json-lint-config/package.json index 1b2ac5e2c135c..c96b85d998bbd 100644 --- a/packages/npm-package-json-lint-config/package.json +++ b/packages/npm-package-json-lint-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/npm-package-json-lint-config", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "WordPress npm-package-json-lint shareable configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/nux/package.json b/packages/nux/package.json index 5374fc8e19a27..61501ed716abe 100644 --- a/packages/nux/package.json +++ b/packages/nux/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/nux", - "version": "9.2.0-prerelease", + "version": "9.2.0", "description": "NUX (New User eXperience) module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 220dea2557ce2..560e09c940e64 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/patterns", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Management of user pattern editing.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/plugins/package.json b/packages/plugins/package.json index a684a1b7e3c46..7e7c7afcbd839 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/plugins", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "Plugins module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/postcss-plugins-preset/package.json b/packages/postcss-plugins-preset/package.json index e0850a7bd0d28..24afb5c0f131b 100644 --- a/packages/postcss-plugins-preset/package.json +++ b/packages/postcss-plugins-preset/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/postcss-plugins-preset", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "PostCSS sharable plugins preset for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/postcss-themes/package.json b/packages/postcss-themes/package.json index 7d84aa85bca64..139c8515ec796 100644 --- a/packages/postcss-themes/package.json +++ b/packages/postcss-themes/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/postcss-themes", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "PostCSS plugin to generate theme colors.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/preferences-persistence/package.json b/packages/preferences-persistence/package.json index 49538d0bf5b8b..181dbb5ae4e4f 100644 --- a/packages/preferences-persistence/package.json +++ b/packages/preferences-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/preferences-persistence", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "Persistence utilities for `wordpress/preferences`.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/preferences/package.json b/packages/preferences/package.json index 366964689f074..aa807b9e15d3c 100644 --- a/packages/preferences/package.json +++ b/packages/preferences/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/preferences", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Utilities for managing WordPress preferences.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index b9912e792404b..9665edd077694 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/prettier-config", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress Prettier shared configuration.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/primitives/package.json b/packages/primitives/package.json index e9af63eba76ee..8af0e925605ee 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/primitives", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress cross-platform primitives.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/priority-queue/package.json b/packages/priority-queue/package.json index ab0feebc0b678..8de52265595bf 100644 --- a/packages/priority-queue/package.json +++ b/packages/priority-queue/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/priority-queue", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Generic browser priority queue.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/private-apis/package.json b/packages/private-apis/package.json index e52c541531422..b03e13b5165c3 100644 --- a/packages/private-apis/package.json +++ b/packages/private-apis/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/private-apis", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "Internal experimental APIs for WordPress core.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/project-management-automation/package.json b/packages/project-management-automation/package.json index 7c5663de50b8b..de1ed83fcf587 100644 --- a/packages/project-management-automation/package.json +++ b/packages/project-management-automation/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/project-management-automation", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "GitHub Action that implements various automation to assist with managing the Gutenberg GitHub repository.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/react-i18n/package.json b/packages/react-i18n/package.json index e57d553c74b64..7cc9c60e0d257 100644 --- a/packages/react-i18n/package.json +++ b/packages/react-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-i18n", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "React bindings for @wordpress/i18n.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/readable-js-assets-webpack-plugin/package.json b/packages/readable-js-assets-webpack-plugin/package.json index 698a6748a3322..a5a889eb81fa5 100644 --- a/packages/readable-js-assets-webpack-plugin/package.json +++ b/packages/readable-js-assets-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/readable-js-assets-webpack-plugin", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Generate a readable JS file for each JS asset.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/redux-routine/package.json b/packages/redux-routine/package.json index ea10f5c68fa2c..a9af0f63619d6 100644 --- a/packages/redux-routine/package.json +++ b/packages/redux-routine/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/redux-routine", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Redux middleware for generator coroutines.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/reusable-blocks/package.json b/packages/reusable-blocks/package.json index b12827bfaee56..86a5c27a582bc 100644 --- a/packages/reusable-blocks/package.json +++ b/packages/reusable-blocks/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/reusable-blocks", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "Reusable blocks utilities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/rich-text/package.json b/packages/rich-text/package.json index 191d5eeea6c26..612644052dec2 100644 --- a/packages/rich-text/package.json +++ b/packages/rich-text/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/rich-text", - "version": "7.2.0-prerelease", + "version": "7.2.0", "description": "Rich text value and manipulation API.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/router/package.json b/packages/router/package.json index 0cc13fc466b48..30f5ab5f1e353 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/router", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "Router API for WordPress pages.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 044397a8c1739..b2eb09328acd3 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/scripts", - "version": "28.2.0-prerelease", + "version": "28.2.0", "description": "Collection of reusable scripts for WordPress development.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/server-side-render/package.json b/packages/server-side-render/package.json index d04ade4b85f86..190ae3ecf1562 100644 --- a/packages/server-side-render/package.json +++ b/packages/server-side-render/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/server-side-render", - "version": "5.2.0-prerelease", + "version": "5.2.0", "description": "The component used with WordPress to server-side render a preview of dynamic blocks to display in the editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/shortcode/package.json b/packages/shortcode/package.json index eff5de4d43436..38d5be36d98b6 100644 --- a/packages/shortcode/package.json +++ b/packages/shortcode/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/shortcode", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Shortcode module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/style-engine/package.json b/packages/style-engine/package.json index 89544c0e71274..dab2e7fc3ec79 100644 --- a/packages/style-engine/package.json +++ b/packages/style-engine/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/style-engine", - "version": "2.2.0-prerelease", + "version": "2.2.0", "description": "A suite of parsers and compilers for WordPress styles.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index d44ba58c004aa..ee83327d49726 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/stylelint-config", - "version": "22.2.0-prerelease", + "version": "22.2.0", "description": "stylelint config for WordPress development.", "author": "The WordPress Contributors", "license": "MIT", diff --git a/packages/sync/package.json b/packages/sync/package.json index e485d5975739b..1fde6f22c795f 100644 --- a/packages/sync/package.json +++ b/packages/sync/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/sync", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "Sync Data.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/token-list/package.json b/packages/token-list/package.json index aae00d3f9bffb..c90710a7d0310 100644 --- a/packages/token-list/package.json +++ b/packages/token-list/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/token-list", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Constructable, plain JavaScript DOMTokenList implementation, supporting non-browser runtimes.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/undo-manager/package.json b/packages/undo-manager/package.json index c00967f822825..a3c64e3d8a28d 100644 --- a/packages/undo-manager/package.json +++ b/packages/undo-manager/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/undo-manager", - "version": "1.2.0-prerelease", + "version": "1.2.0", "description": "A small package to manage undo/redo.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/url/package.json b/packages/url/package.json index 5d374b73a62e3..b1f404f8fa938 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/url", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress URL utilities.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/viewport/package.json b/packages/viewport/package.json index 10813d233f42b..64850d419d078 100644 --- a/packages/viewport/package.json +++ b/packages/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/viewport", - "version": "6.2.0-prerelease", + "version": "6.2.0", "description": "Viewport module for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/warning/package.json b/packages/warning/package.json index ca59a115d1a70..17c4cfaf5e5f3 100644 --- a/packages/warning/package.json +++ b/packages/warning/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/warning", - "version": "3.2.0-prerelease", + "version": "3.2.0", "description": "Warning utility for WordPress.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/widgets/package.json b/packages/widgets/package.json index 63ad7d0e1673b..e70e6e689ee4d 100644 --- a/packages/widgets/package.json +++ b/packages/widgets/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/widgets", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "Functionality used by the widgets block editor in the Widgets screen and the Customizer.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", diff --git a/packages/wordcount/package.json b/packages/wordcount/package.json index ff65760bc60bc..bea7e4816a76e 100644 --- a/packages/wordcount/package.json +++ b/packages/wordcount/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/wordcount", - "version": "4.2.0-prerelease", + "version": "4.2.0", "description": "WordPress word count utility.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From 0e8bcf16e7d561e11c8cb64e348306311df3d9f3 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 26 Jun 2024 12:23:16 +0400 Subject: [PATCH 09/34] Block Editor: Remove duplicate translator comment (#62860) Co-authored-by: Mamaduka Co-authored-by: ellatrix --- .../src/components/block-patterns-paging/index.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/block-editor/src/components/block-patterns-paging/index.js b/packages/block-editor/src/components/block-patterns-paging/index.js index 2ad9ff3405e20..66be81d1eae19 100644 --- a/packages/block-editor/src/components/block-patterns-paging/index.js +++ b/packages/block-editor/src/components/block-patterns-paging/index.js @@ -18,14 +18,11 @@ export default function Pagination( { return ( - { + { sprintf( // translators: %s: Total number of patterns. - sprintf( - // translators: %s: Total number of patterns. - _n( '%s item', '%s items', totalItems ), - totalItems - ) - } + _n( '%s item', '%s items', totalItems ), + totalItems + ) } { numPages > 1 && ( From bdd11d5b1341769981594d4c87b56a9604f0c74c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 26 Jun 2024 17:01:17 +0800 Subject: [PATCH 10/34] Update new release issue template to remove core editor chat item (#62864) Co-authored-by: talldan Co-authored-by: Mamaduka --- .github/ISSUE_TEMPLATE/New_release.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/New_release.md b/.github/ISSUE_TEMPLATE/New_release.md index 629a4dafa5ba5..c07dcfa3c466c 100644 --- a/.github/ISSUE_TEMPLATE/New_release.md +++ b/.github/ISSUE_TEMPLATE/New_release.md @@ -23,7 +23,6 @@ This issue is to provide visibility on the progress of the release process of Gu ### RC Day - {Weekday, Month, Date} -- [ ] _Optional:_ Attend `#core-editor` meeting (14:00UTC) - [ ] Post a message in `#core-editor` channel to let folks know you are starting the RC release process - [ ] Organize and Label PRs on the relevant milestone - [ ] Start the release process by triggering the `rc` [workflow](https://developer.wordpress.org/block-editor/contributors/code/release/#running-workflow) From f4f770d74e794bdc586a6f0919ecc4eb20d1003d Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:22:49 +0300 Subject: [PATCH 11/34] Cherry pick workflow: improve message after conflict (#62826) Co-authored-by: ellatrix Co-authored-by: desrosj --- .github/workflows/cherry-pick-wp-release.yml | 27 +++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cherry-pick-wp-release.yml b/.github/workflows/cherry-pick-wp-release.yml index fd7d365600c5e..d1089aa99f6ae 100644 --- a/.github/workflows/cherry-pick-wp-release.yml +++ b/.github/workflows/cherry-pick-wp-release.yml @@ -66,6 +66,7 @@ jobs: git cherry-pick $COMMIT_SHA || echo "cherry-pick-failed" > result if [ -f result ] && grep -q "cherry-pick-failed" result; then echo "conflict=true" >> $GITHUB_ENV + echo "commit_sha=$COMMIT_SHA" >> $GITHUB_ENV git cherry-pick --abort else NEW_COMMIT_SHA=$(git rev-parse HEAD) @@ -122,6 +123,7 @@ jobs: with: script: | const prNumber = context.issue.number; + const commitSha = process.env.commit_sha; const targetBranch = `wp/${process.env.version}`; console.log(`prNumber: ${prNumber}`); console.log(`targetBranch: ${targetBranch}`); @@ -129,5 +131,28 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: prNumber, - body: `There was a conflict while trying to cherry-pick the commit to the ${targetBranch} branch. Please resolve the conflict manually and create a PR to the ${targetBranch} branch.` + body: `There was a conflict while trying to cherry-pick the commit to the ${targetBranch} branch. Please resolve the conflict manually and create a PR to the ${targetBranch} branch. + + PRs to ${targetBranch} are similar to PRs to trunk, but you should base your PR on the ${targetBranch} branch instead of trunk. + + \`\`\` + # Checkout the ${targetBranch} branch instead of trunk. + git checkout ${targetBranch} + # Create a new branch for your PR. + git checkout -b my-branch + # Cherry-pick the commit. + git cherry-pick ${commitSha} + # Check which files have conflicts. + git status + # Resolve the conflict... + # Add the resolved files to the staging area. + git status + git add . + git cherry-pick --continue + # Push the branch to the repository + git push origin my-branch + # Create a PR and set the base to the ${targetBranch} branch. + # See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request. + \`\`\` + ` }); From c14c434a5353fcd3db0a23b1daf3c9db0369fb08 Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 26 Jun 2024 11:18:20 +0100 Subject: [PATCH 12/34] Fix filter chip contrast (#62865) Co-authored-by: jameskoster Co-authored-by: jasmussen Co-authored-by: annezazu Co-authored-by: joedolson --- packages/dataviews/src/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataviews/src/style.scss b/packages/dataviews/src/style.scss index 5844e0c913336..20190623a3da8 100644 --- a/packages/dataviews/src/style.scss +++ b/packages/dataviews/src/style.scss @@ -759,7 +759,7 @@ padding: 0 $grid-unit-15; height: $grid-unit-40; background: $gray-100; - color: $gray-700; + color: $gray-800; position: relative; display: flex; align-items: center; From 3f0c4e09ba3e34718cc2b2ac8bc8ddff8e668754 Mon Sep 17 00:00:00 2001 From: Marcin Pietrzak Date: Wed, 26 Jun 2024 12:26:49 +0200 Subject: [PATCH 13/34] Editor: Translation should depend on number of items (#62857) Co-authored-by: iworks Co-authored-by: Mamaduka Co-authored-by: ellatrix --- packages/editor/src/components/post-actions/actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-actions/actions.js b/packages/editor/src/components/post-actions/actions.js index edf67bb1da924..0783478126a1e 100644 --- a/packages/editor/src/components/post-actions/actions.js +++ b/packages/editor/src/components/post-actions/actions.js @@ -223,7 +223,11 @@ const trashPostAction = { } else if ( items[ 0 ].type === 'page' ) { successMessage = sprintf( /* translators: The number of items. */ - __( '%s items moved to trash.' ), + _n( + '%s item moved to trash.', + '%s items moved to trash.', + items.length + ), items.length ); } else { From 59e38b2133bed3352fa7024cef1d0e26ce3a779c Mon Sep 17 00:00:00 2001 From: Amit Raj <77401999+amitraj2203@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:06:47 +0530 Subject: [PATCH 14/34] Patterns Explorer: Makes the pagination items horizontally stacked on larger screens only * Adds CSS to make the Patterns Explorer pagination items horizontally stacked on larger screens * Stacks the pagination items vertically in catogories list Co-authored-by: amitraj2203 Co-authored-by: afercia --- .../block-patterns-paging/style.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/block-editor/src/components/block-patterns-paging/style.scss b/packages/block-editor/src/components/block-patterns-paging/style.scss index ce57f96cd327a..383d4d72a8e38 100644 --- a/packages/block-editor/src/components/block-patterns-paging/style.scss +++ b/packages/block-editor/src/components/block-patterns-paging/style.scss @@ -42,4 +42,22 @@ } } } + + @media screen and (min-width: $break-large) { + .block-editor-patterns__grid-pagination { + flex-direction: row; + .block-editor-patterns__grid-pagination-previous, + .block-editor-patterns__grid-pagination-next { + flex-direction: row; + } + } + } +} + +.block-editor-block-patterns-list .block-editor-patterns__grid-pagination { + flex-direction: column; + .block-editor-patterns__grid-pagination-previous, + .block-editor-patterns__grid-pagination-next { + flex-direction: column; + } } From 2972e37b2c61bf195bbd96fa4e9f7aebc9fbfdb2 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:45:35 +0900 Subject: [PATCH 15/34] Featured Image Panel: Align text and icons horizontally to avoid clipping (#62842) * Featured Image Panel: Align text and icons horizontally to avoid clipping * Apply rounded corner to drop zone Co-authored-by: t-hamano Co-authored-by: jasmussen Co-authored-by: annezazu --- .../src/components/post-featured-image/style.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/editor/src/components/post-featured-image/style.scss b/packages/editor/src/components/post-featured-image/style.scss index 052f694301259..d3a4fbbcaef68 100644 --- a/packages/editor/src/components/post-featured-image/style.scss +++ b/packages/editor/src/components/post-featured-image/style.scss @@ -20,6 +20,21 @@ opacity: 1; } } + + .components-drop-zone__content { + border-radius: $radius-block-ui; + } + + // Align text and icons horizontally to avoid clipping when the featured image is not set. + &:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner { + display: flex; + align-items: center; + gap: $grid-unit-10; + + .components-drop-zone__content-icon { + margin: 0; + } + } } .editor-post-featured-image__toggle, From 2be17bbda1bd81010f004d30115d418902fa1b1c Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 26 Jun 2024 17:19:46 +0200 Subject: [PATCH 16/34] CustomSelectControlV2: Add root element wrapper (#62803) * Add root element wrapper * Add legacy root className + ability to pass one externally * CHANGELOG --- Co-authored-by: ciampo Co-authored-by: mirka <0mirka00@git.wordpress.org> --- packages/components/CHANGELOG.md | 4 ++++ .../src/custom-select-control-v2/custom-select.tsx | 6 ++++-- .../src/custom-select-control-v2/legacy-component/index.tsx | 6 ++++++ packages/components/src/custom-select-control-v2/types.ts | 4 ++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index cbf32c9eab93b..708fd49b13ed4 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Internal + +- `CustomSelectControlV2`: add root element wrapper. ([#62803](https://github.com/WordPress/gutenberg/pull/62803)) + ## 28.2.0 (2024-06-26) ### Enhancements diff --git a/packages/components/src/custom-select-control-v2/custom-select.tsx b/packages/components/src/custom-select-control-v2/custom-select.tsx index 414a805eccfb1..f76c7f67ea77b 100644 --- a/packages/components/src/custom-select-control-v2/custom-select.tsx +++ b/packages/components/src/custom-select-control-v2/custom-select.tsx @@ -88,11 +88,13 @@ function _CustomSelect( label, size, store, + className, ...restProps } = props; return ( - <> + // Where should `restProps` be forwarded to? +
{ hideLabelFromVision ? ( // TODO: Replace with BaseControl { label } ) : ( @@ -116,7 +118,7 @@ function _CustomSelect( - +
); } diff --git a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx index e2b9a8a7471e5..209483775db9e 100644 --- a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx +++ b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx @@ -3,6 +3,7 @@ */ // eslint-disable-next-line no-restricted-imports import * as Ariakit from '@ariakit/react'; +import clsx from 'clsx'; /** * Internal dependencies @@ -21,6 +22,7 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) { onChange, size = 'default', value, + className: classNameProp, ...restProps } = props; @@ -122,6 +124,10 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) { } size={ translatedSize } store={ store } + className={ clsx( + 'components-custom-select-control', + classNameProp + ) } { ...restProps } > { children } diff --git a/packages/components/src/custom-select-control-v2/types.ts b/packages/components/src/custom-select-control-v2/types.ts index 12b41ba54f4a2..3c192cfa56711 100644 --- a/packages/components/src/custom-select-control-v2/types.ts +++ b/packages/components/src/custom-select-control-v2/types.ts @@ -50,6 +50,10 @@ export type CustomSelectButtonProps = { }; export type _CustomSelectProps = CustomSelectButtonProps & { + /** + * Additional className added to the root wrapper element. + */ + className?: string; /** * The child elements. This should be composed of `CustomSelectItem` components. */ From 4ef2a6206da8dd1ff02693e08506b370bad6552a Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 26 Jun 2024 18:00:24 +0200 Subject: [PATCH 17/34] CustomSelectControlV2: fix popover styles (#62821) * Set max height and overflow behaviour * add z-index matching legacy popover * CHANGELOG * Remove extra prop, revert to 400px * Switch to flexbox * Better z-index comment --- Co-authored-by: ciampo Co-authored-by: mirka <0mirka00@git.wordpress.org> --- packages/components/CHANGELOG.md | 1 + .../src/custom-select-control-v2/styles.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 708fd49b13ed4..7d84ff872be22 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -5,6 +5,7 @@ ### Internal - `CustomSelectControlV2`: add root element wrapper. ([#62803](https://github.com/WordPress/gutenberg/pull/62803)) +- `CustomSelectControlV2`: fix popover styles. ([#62821](https://github.com/WordPress/gutenberg/pull/62821)) ## 28.2.0 (2024-06-26) diff --git a/packages/components/src/custom-select-control-v2/styles.ts b/packages/components/src/custom-select-control-v2/styles.ts index c75a9a79c71c5..683bb1d157994 100644 --- a/packages/components/src/custom-select-control-v2/styles.ts +++ b/packages/components/src/custom-select-control-v2/styles.ts @@ -105,10 +105,20 @@ export const Select = styled( Ariakit.Select, { } ); export const SelectPopover = styled( Ariakit.SelectPopover )` + display: flex; + flex-direction: column; + + background-color: ${ COLORS.theme.background }; border-radius: 2px; - background: ${ COLORS.theme.background }; border: 1px solid ${ COLORS.theme.foreground }; + /* z-index(".components-popover") */ + z-index: 1000000; + + max-height: min( var( --popover-available-height, 400px ), 400px ); + overflow: auto; + overscroll-behavior: contain; + &[data-focus-visible] { outline: none; // outline will be on the trigger, rather than the popover } From 4b49d833ae7532fb57be9eae88de1e98a7813832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 26 Jun 2024 18:55:34 +0200 Subject: [PATCH 18/34] DataViews: make `view.hiddenFields` optional (#62876) Co-authored-by: oandregal Co-authored-by: youknowriad --- packages/dataviews/src/types.ts | 2 +- packages/dataviews/src/view-grid.tsx | 2 +- packages/dataviews/src/view-list.tsx | 2 +- packages/dataviews/src/view-table.tsx | 8 ++++---- packages/edit-site/src/components/page-patterns/index.js | 1 - 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/dataviews/src/types.ts b/packages/dataviews/src/types.ts index 8c1819b3a7c67..b01394c7f846a 100644 --- a/packages/dataviews/src/types.ts +++ b/packages/dataviews/src/types.ts @@ -216,7 +216,7 @@ interface ViewBase { /** * The hidden fields. */ - hiddenFields: string[]; + hiddenFields?: string[]; } export interface ViewTable extends ViewBase { diff --git a/packages/dataviews/src/view-grid.tsx b/packages/dataviews/src/view-grid.tsx index 77ac3c9273852..4538ab145d213 100644 --- a/packages/dataviews/src/view-grid.tsx +++ b/packages/dataviews/src/view-grid.tsx @@ -206,7 +206,7 @@ export default function ViewGrid< Item extends AnyItem >( { const { visibleFields, badgeFields } = fields.reduce( ( accumulator: Record< string, NormalizedField< Item >[] >, field ) => { if ( - view.hiddenFields.includes( field.id ) || + view.hiddenFields?.includes( field.id ) || [ view.layout.mediaField, view.layout.primaryField ].includes( field.id ) diff --git a/packages/dataviews/src/view-list.tsx b/packages/dataviews/src/view-list.tsx index 295c3d28856eb..eb2b9c6c077a6 100644 --- a/packages/dataviews/src/view-list.tsx +++ b/packages/dataviews/src/view-list.tsx @@ -329,7 +329,7 @@ export default function ViewList< Item extends AnyItem >( ); const visibleFields = fields.filter( ( field ) => - ! view.hiddenFields.includes( field.id ) && + ! view.hiddenFields?.includes( field.id ) && ! [ view.layout.primaryField, view.layout.mediaField ].includes( field.id ) diff --git a/packages/dataviews/src/view-table.tsx b/packages/dataviews/src/view-table.tsx index 2ddb09e2640a0..66e59a8ebb423 100644 --- a/packages/dataviews/src/view-table.tsx +++ b/packages/dataviews/src/view-table.tsx @@ -223,9 +223,9 @@ const _HeaderMenu = forwardRef( function HeaderMenu< Item extends AnyItem >( onHide( field ); onChangeView( { ...view, - hiddenFields: view.hiddenFields.concat( - field.id - ), + hiddenFields: ( + view.hiddenFields ?? [] + ).concat( field.id ), } ); } } > @@ -473,7 +473,7 @@ function ViewTable< Item extends AnyItem >( { }; const visibleFields = fields.filter( ( field ) => - ! view.hiddenFields.includes( field.id ) && + ! view.hiddenFields?.includes( field.id ) && ! [ view.layout.mediaField ].includes( field.id ) ); const hasData = !! data?.length; diff --git a/packages/edit-site/src/components/page-patterns/index.js b/packages/edit-site/src/components/page-patterns/index.js index 7080ff8f185f4..0a6a4469cef4e 100644 --- a/packages/edit-site/src/components/page-patterns/index.js +++ b/packages/edit-site/src/components/page-patterns/index.js @@ -76,7 +76,6 @@ const DEFAULT_VIEW = { search: '', page: 1, perPage: 20, - hiddenFields: [], layout: { ...defaultConfigPerViewType[ LAYOUT_GRID ], }, From 37a60b2068ccd1db022d07305eb4f385d8182f69 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Wed, 26 Jun 2024 12:12:50 -0500 Subject: [PATCH 19/34] Escape moves focus to editor region when in select mode (#62196) An escape keypress previously toggled the state between editing and select mode. This returns the behavior to the previous implementation of Escape clearing block focus and returning focus to the wrapping region, if available, showing a blue outline. If no region is available, it will focus the editor iframe or content region. --- .../block-tools/block-selection-button.js | 13 ++----- .../block-tools/block-toolbar-breadcrumb.js | 13 +++++-- .../src/components/block-tools/index.js | 38 ++++++++++++++++++- .../higher-order/navigate-regions/style.scss | 38 ++++++++++++------- .../specs/editor/various/writing-flow.spec.js | 14 +++---- 5 files changed, 81 insertions(+), 35 deletions(-) diff --git a/packages/block-editor/src/components/block-tools/block-selection-button.js b/packages/block-editor/src/components/block-tools/block-selection-button.js index d4ec0f8cf79fb..805e41c580f95 100644 --- a/packages/block-editor/src/components/block-tools/block-selection-button.js +++ b/packages/block-editor/src/components/block-tools/block-selection-button.js @@ -9,7 +9,7 @@ import clsx from 'clsx'; import { dragHandle, trash } from '@wordpress/icons'; import { Button, Flex, FlexItem, ToolbarButton } from '@wordpress/components'; import { useSelect, useDispatch } from '@wordpress/data'; -import { useEffect, useRef } from '@wordpress/element'; +import { forwardRef, useEffect } from '@wordpress/element'; import { BACKSPACE, DELETE, @@ -48,10 +48,11 @@ import Shuffle from '../block-toolbar/shuffle'; * * @param {string} props Component props. * @param {string} props.clientId Client ID of block. + * @param {Object} ref Reference to the component. * * @return {Component} The component to be rendered. */ -function BlockSelectionButton( { clientId, rootClientId } ) { +function BlockSelectionButton( { clientId, rootClientId }, ref ) { const selected = useSelect( ( select ) => { const { @@ -125,7 +126,6 @@ function BlockSelectionButton( { clientId, rootClientId } ) { canMove, } = selected; const { setNavigationMode, removeBlock } = useDispatch( blockEditorStore ); - const ref = useRef(); // Focus the breadcrumb in navigation mode. useEffect( () => { @@ -164,11 +164,6 @@ function BlockSelectionButton( { clientId, rootClientId } ) { const isEnter = keyCode === ENTER; const isSpace = keyCode === SPACE; const isShift = event.shiftKey; - if ( isEscape && editorMode === 'navigation' ) { - setNavigationMode( false ); - event.preventDefault(); - return; - } if ( keyCode === BACKSPACE || keyCode === DELETE ) { removeBlock( clientId ); @@ -368,4 +363,4 @@ function BlockSelectionButton( { clientId, rootClientId } ) { ); } -export default BlockSelectionButton; +export default forwardRef( BlockSelectionButton ); diff --git a/packages/block-editor/src/components/block-tools/block-toolbar-breadcrumb.js b/packages/block-editor/src/components/block-tools/block-toolbar-breadcrumb.js index 0ae67e1be0001..ae03bdb4f5164 100644 --- a/packages/block-editor/src/components/block-tools/block-toolbar-breadcrumb.js +++ b/packages/block-editor/src/components/block-tools/block-toolbar-breadcrumb.js @@ -3,6 +3,11 @@ */ import clsx from 'clsx'; +/** + * WordPress dependencies + */ +import { forwardRef } from '@wordpress/element'; + /** * Internal dependencies */ @@ -11,10 +16,7 @@ import { PrivateBlockPopover } from '../block-popover'; import useBlockToolbarPopoverProps from './use-block-toolbar-popover-props'; import useSelectedBlockToolProps from './use-selected-block-tool-props'; -export default function BlockToolbarBreadcrumb( { - clientId, - __unstableContentRef, -} ) { +function BlockToolbarBreadcrumb( { clientId, __unstableContentRef }, ref ) { const { capturingClientId, isInsertionPointVisible, @@ -38,9 +40,12 @@ export default function BlockToolbarBreadcrumb( { { ...popoverProps } > ); } + +export default forwardRef( BlockToolbarBreadcrumb ); diff --git a/packages/block-editor/src/components/block-tools/index.js b/packages/block-editor/src/components/block-tools/index.js index ad744a81cca62..0e89e7991320e 100644 --- a/packages/block-editor/src/components/block-tools/index.js +++ b/packages/block-editor/src/components/block-tools/index.js @@ -81,6 +81,7 @@ export default function BlockTools( { } = useShowBlockTools(); const { + clearSelectedBlock, duplicateBlocks, removeBlocks, replaceBlocks, @@ -92,6 +93,8 @@ export default function BlockTools( { expandBlock, } = unlock( useDispatch( blockEditorStore ) ); + const blockSelectionButtonRef = useRef(); + function onKeyDown( event ) { if ( event.defaultPrevented ) { return; @@ -152,6 +155,39 @@ export default function BlockTools( { // block so that focus is directed back to the beginning of the selection. // In effect, to the user this feels like deselecting the multi-selection. selectBlock( clientIds[ 0 ] ); + } else if ( + clientIds.length === 1 && + event.target === blockSelectionButtonRef?.current + ) { + event.preventDefault(); + clearSelectedBlock(); + // If there are multiple editors, we need to find the iframe that contains our contentRef to make sure + // we're focusing the region that contains this editor. + const editorCanvas = + Array.from( + document + .querySelectorAll( 'iframe[name="editor-canvas"]' ) + .values() + ).find( ( iframe ) => { + // Find the iframe that contains our contentRef + const iframeDocument = + iframe.contentDocument || + iframe.contentWindow.document; + + return ( + iframeDocument === + __unstableContentRef.current.ownerDocument + ); + } ) ?? __unstableContentRef.current; + + // The region is provivided by the editor, not the block-editor. + // We should send focus to the region if one is available to reuse the + // same interface for navigating landmarks. If no region is available, + // use the canvas instead. + const focusableWrapper = + editorCanvas?.closest( '[role="region"]' ) ?? editorCanvas; + + focusableWrapper.focus(); } } else if ( isMatch( 'core/block-editor/collapse-list-view', event ) ) { // If focus is currently within a text field, such as a rich text block or other editable field, @@ -182,7 +218,6 @@ export default function BlockTools( { } } } - const blockToolbarRef = usePopoverScroll( __unstableContentRef ); const blockToolbarAfterRef = usePopoverScroll( __unstableContentRef ); @@ -213,6 +248,7 @@ export default function BlockTools( { { showBreadcrumb && ( diff --git a/packages/components/src/higher-order/navigate-regions/style.scss b/packages/components/src/higher-order/navigate-regions/style.scss index b3a4a0c1a9d1b..5c3767e310b8f 100644 --- a/packages/components/src/higher-order/navigate-regions/style.scss +++ b/packages/components/src/higher-order/navigate-regions/style.scss @@ -1,22 +1,35 @@ // Allow the position to be easily overridden to e.g. fixed. + +@mixin region-selection-outline { + outline: 4px solid $components-color-accent; + outline-offset: -4px; +} + +@mixin region-selection-focus { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + content: ""; + pointer-events: none; + @include region-selection-outline; + z-index: z-index(".is-focusing-regions {region} :focus::after"); +} + [role="region"] { position: relative; + + // Handles the focus when we programatically send focus to this region + &.interface-interface-skeleton__content:focus-visible::after { + @include region-selection-focus; + } } .is-focusing-regions { [role="region"]:focus::after { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - content: ""; - pointer-events: none; - outline: 4px solid $components-color-accent; - outline-offset: -4px; - z-index: z-index(".is-focusing-regions {region} :focus::after"); + @include region-selection-focus; } - // Fixes for edge cases. // Some of the regions are currently used for layout purposes as 'interface skeleton' // items. When they're absolutely positioned or when they contain absolutely @@ -33,7 +46,6 @@ .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel, .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel, .editor-post-publish-panel { - outline: 4px solid $components-color-accent; - outline-offset: -4px; + @include region-selection-outline; } } diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index 1af46a80896f0..bd1552ad4cb66 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -958,7 +958,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { ` ); } ); - test( 'escape should toggle between edit and navigation modes', async ( { + test( 'escape should set select mode and then focus the canvas', async ( { page, writingFlowUtils, } ) => { @@ -975,15 +975,13 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { .poll( writingFlowUtils.getActiveBlockName ) .toBe( 'core/paragraph' ); - // Second escape Toggles back to Edit Mode + // Second escape should send focus to the canvas await page.keyboard.press( 'Escape' ); + // The navigation button should be hidden. await expect( navigationButton ).toBeHidden(); - const blockToolbar = page.getByLabel( 'Block tools' ); - - await expect( blockToolbar ).toBeVisible(); - await expect - .poll( writingFlowUtils.getActiveBlockName ) - .toBe( 'core/paragraph' ); + await expect( + page.getByRole( 'region', { name: 'Editor content' } ) + ).toBeFocused(); } ); // Checks for regressions of https://github.com/WordPress/gutenberg/issues/40091. From cea3b8dcbf092879790d3eb422bcdd9212e2eae7 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 26 Jun 2024 19:19:10 +0200 Subject: [PATCH 20/34] CustomSelectControl V2: fix trigger RTL text alignment(#62869) * CustomSelectControl V2: fix trigger text alignment in RTL languages * CHANGELOG --- Co-authored-by: ciampo Co-authored-by: mirka <0mirka00@git.wordpress.org> --- packages/components/CHANGELOG.md | 1 + packages/components/src/custom-select-control-v2/styles.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 7d84ff872be22..728151987c9ef 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -6,6 +6,7 @@ - `CustomSelectControlV2`: add root element wrapper. ([#62803](https://github.com/WordPress/gutenberg/pull/62803)) - `CustomSelectControlV2`: fix popover styles. ([#62821](https://github.com/WordPress/gutenberg/pull/62821)) +- `CustomSelectControlV2`: fix trigger text alignment in RTL languages ([#62869](https://github.com/WordPress/gutenberg/pull/62869)). ## 28.2.0 (2024-06-26) diff --git a/packages/components/src/custom-select-control-v2/styles.ts b/packages/components/src/custom-select-control-v2/styles.ts index 683bb1d157994..c806bbee794d1 100644 --- a/packages/components/src/custom-select-control-v2/styles.ts +++ b/packages/components/src/custom-select-control-v2/styles.ts @@ -92,7 +92,7 @@ export const Select = styled( Ariakit.Select, { cursor: pointer; font-family: inherit; font-size: ${ CONFIG.fontSize }; - text-align: left; + text-align: start; width: 100%; &[data-focus-visible] { From 2139bc2ceb6101537be196ef3fddc965b90a6b75 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Wed, 26 Jun 2024 14:11:32 -0500 Subject: [PATCH 21/34] Focus Editor Region from Template Footer Click (#62595) --- .../src/components/block-breadcrumb/index.js | 17 +++++++++- .../src/components/block-tools/index.js | 29 ++--------------- .../src/utils/get-editor-region.js | 31 +++++++++++++++++++ 3 files changed, 49 insertions(+), 28 deletions(-) create mode 100644 packages/block-editor/src/utils/get-editor-region.js diff --git a/packages/block-editor/src/components/block-breadcrumb/index.js b/packages/block-editor/src/components/block-breadcrumb/index.js index b1fd13dbf3475..70f038181237b 100644 --- a/packages/block-editor/src/components/block-breadcrumb/index.js +++ b/packages/block-editor/src/components/block-breadcrumb/index.js @@ -12,6 +12,8 @@ import { chevronRightSmall, Icon } from '@wordpress/icons'; import BlockTitle from '../block-title'; import { store as blockEditorStore } from '../../store'; import { unlock } from '../../lock-unlock'; +import { __unstableUseBlockRef as useBlockRef } from '../block-list/use-block-props/use-block-refs'; +import getEditorRegion from '../../utils/get-editor-region'; /** * Block breadcrumb component, displaying the hierarchy of the current block selection as a breadcrumb. @@ -37,6 +39,10 @@ function BlockBreadcrumb( { rootLabelText } ) { }, [] ); const rootLabel = rootLabelText || __( 'Document' ); + // We don't care about this specific ref, but this is a way + // to get a ref within the editor canvas so we can focus it later. + const blockRef = useBlockRef( clientId ); + /* * Disable reason: The `list` ARIA role is redundant but * Safari+VoiceOver won't announce the list otherwise. @@ -60,7 +66,16 @@ function BlockBreadcrumb( { rootLabelText } ) { diff --git a/packages/block-editor/src/components/block-tools/index.js b/packages/block-editor/src/components/block-tools/index.js index 0e89e7991320e..5cde3cccaf57e 100644 --- a/packages/block-editor/src/components/block-tools/index.js +++ b/packages/block-editor/src/components/block-tools/index.js @@ -25,6 +25,7 @@ import usePopoverScroll from '../block-popover/use-popover-scroll'; import ZoomOutModeInserters from './zoom-out-mode-inserters'; import { useShowBlockTools } from './use-show-block-tools'; import { unlock } from '../../lock-unlock'; +import getEditorRegion from '../../utils/get-editor-region'; function selector( select ) { const { @@ -161,33 +162,7 @@ export default function BlockTools( { ) { event.preventDefault(); clearSelectedBlock(); - // If there are multiple editors, we need to find the iframe that contains our contentRef to make sure - // we're focusing the region that contains this editor. - const editorCanvas = - Array.from( - document - .querySelectorAll( 'iframe[name="editor-canvas"]' ) - .values() - ).find( ( iframe ) => { - // Find the iframe that contains our contentRef - const iframeDocument = - iframe.contentDocument || - iframe.contentWindow.document; - - return ( - iframeDocument === - __unstableContentRef.current.ownerDocument - ); - } ) ?? __unstableContentRef.current; - - // The region is provivided by the editor, not the block-editor. - // We should send focus to the region if one is available to reuse the - // same interface for navigating landmarks. If no region is available, - // use the canvas instead. - const focusableWrapper = - editorCanvas?.closest( '[role="region"]' ) ?? editorCanvas; - - focusableWrapper.focus(); + getEditorRegion( __unstableContentRef.current ).focus(); } } else if ( isMatch( 'core/block-editor/collapse-list-view', event ) ) { // If focus is currently within a text field, such as a rich text block or other editable field, diff --git a/packages/block-editor/src/utils/get-editor-region.js b/packages/block-editor/src/utils/get-editor-region.js new file mode 100644 index 0000000000000..7edc57d1157fb --- /dev/null +++ b/packages/block-editor/src/utils/get-editor-region.js @@ -0,0 +1,31 @@ +/** + * Gets the editor region for a given editor canvas element or + * returns the passed element if no region is found + * + * @param { Object } editor The editor canvas element. + * @return { Object } The editor region or given editor element + */ +export default function getEditorRegion( editor ) { + if ( ! editor ) { + return null; + } + + // If there are multiple editors, we need to find the iframe that contains our contentRef to make sure + // we're focusing the region that contains this editor. + const editorCanvas = + Array.from( + document.querySelectorAll( 'iframe[name="editor-canvas"]' ).values() + ).find( ( iframe ) => { + // Find the iframe that contains our contentRef + const iframeDocument = + iframe.contentDocument || iframe.contentWindow.document; + + return iframeDocument === editor.ownerDocument; + } ) ?? editor; + + // The region is provivided by the editor, not the block-editor. + // We should send focus to the region if one is available to reuse the + // same interface for navigating landmarks. If no region is available, + // use the canvas instead. + return editorCanvas?.closest( '[role="region"]' ) ?? editorCanvas; +} From 12ee69658a2dc250cc112e27136e0af1f3fbd6b4 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:39:44 +1000 Subject: [PATCH 22/34] Section Styles: Clean up block style variation filters (#62858) Co-authored-by: aaronrobertshaw Co-authored-by: ramonjd Co-authored-by: andrewserong --- lib/block-supports/block-style-variations.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/block-supports/block-style-variations.php b/lib/block-supports/block-style-variations.php index 12c2453681b41..1c049f4a0fee5 100644 --- a/lib/block-supports/block-style-variations.php +++ b/lib/block-supports/block-style-variations.php @@ -274,19 +274,3 @@ function gutenberg_register_block_style_variations_from_theme_json_partials( $va } } } - -// DO NOT BACKPORT TO CORE. -// To be removed when core has backported this PR. -if ( function_exists( 'wp_resolve_block_style_variations_from_styles_registry' ) ) { - remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_styles_registry' ); -} -if ( function_exists( 'wp_resolve_block_style_variations_from_primary_theme_json' ) ) { - remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_primary_theme_json' ); -} -if ( function_exists( 'wp_resolve_block_style_variations_from_theme_json_partials' ) ) { - remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_theme_json_partials' ); -} -if ( function_exists( 'wp_resolve_block_style_variations_from_theme_style_variation' ) ) { - remove_filter( 'wp_theme_json_data_user', 'wp_resolve_block_style_variations_from_theme_style_variation' ); -} -// END OF DO NOT BACKPORT TO CORE. From 7717c1e199732e9701c27db646cc59d28762dc68 Mon Sep 17 00:00:00 2001 From: Jeff Ong Date: Thu, 27 Jun 2024 00:31:47 -0400 Subject: [PATCH 23/34] Fix minor typos in Interactivity API Reference (#62890) Co-authored-by: jffng Co-authored-by: fabiankaegy --- docs/reference-guides/interactivity-api/api-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/interactivity-api/api-reference.md b/docs/reference-guides/interactivity-api/api-reference.md index ba93e7fc529eb..a898e437b40de 100644 --- a/docs/reference-guides/interactivity-api/api-reference.md +++ b/docs/reference-guides/interactivity-api/api-reference.md @@ -531,7 +531,7 @@ The `unique-id` doesn't need to be unique globally. It just needs to be differen See store used with the directive above ```js -import { store, useState, useEffect } from '@wordpress/interactivity'; +import { getElement, store, useState, useEffect } from '@wordpress/interactivity'; // Unlike `data-wp-init` and `data-wp-watch`, you can use any hooks inside // `data-wp-run` callbacks. @@ -1071,7 +1071,7 @@ Those attributes will contain the directives of that element. In the button exam ```js // store -import { store, getContext } from '@wordpress/interactivity'; +import { store, getElement } from '@wordpress/interactivity'; store( "myPlugin", { actions: { From 8758b5c3da8111cb100f11487d33a963778ec4ea Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 26 Jun 2024 22:01:47 -0700 Subject: [PATCH 24/34] Remove link to polyfill.io (#62883) Co-authored-by: westonruter Co-authored-by: ockham Co-authored-by: ellatrix --- docs/contributors/code/scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributors/code/scripts.md b/docs/contributors/code/scripts.md index 1483a409a4d08..bcbbdbabc15a1 100644 --- a/docs/contributors/code/scripts.md +++ b/docs/contributors/code/scripts.md @@ -64,7 +64,7 @@ It is recommended to use the main `wp-polyfill` script handle which takes care o | [Fetch Polyfill](https://www.npmjs.com/package/whatwg-fetch) | wp-polyfill-fetch | Polyfill that implements a subset of the standard Fetch specification | | [Promise Polyfill](https://www.npmjs.com/package/promise-polyfill) | wp-polyfill-promise | Lightweight ES6 Promise polyfill for the browser and node | | [Formdata Polyfill](https://www.npmjs.com/package/formdata-polyfill) | wp-polyfill-formdata | Polyfill conditionally replaces the native implementation | -| [Node Contains Polyfill](https://polyfill.io) | wp-polyfill-node-contains | Polyfill for Node.contains | +| [Node Contains Polyfill](https://www.npmjs.com/package/polyfill-library) | wp-polyfill-node-contains | Polyfill for Node.contains | | [Element Closest Polyfill](https://www.npmjs.com/package/element-closest) | wp-polyfill-element-closest | Return the closest element matching a selector up the DOM tree | ## Bundling and code sharing From 69edb243e0652da57b5f1a4ecacc13246e27b85c Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 27 Jun 2024 15:49:51 +1000 Subject: [PATCH 25/34] Block supports: ensure tools panel dropdown are visible on mobile (#62896) * Remove the const `TOOLSPANEL_DROPDOWNMENU_PROPS` in favour of a hook that returns different popover props depending on the viewport width * Remove offset completely * Add to block support panels * Replace in block library. Co-authored-by: ramonjd Co-authored-by: talldan --- .../global-styles/background-panel.js | 5 ++-- .../components/global-styles/border-panel.js | 5 ++-- .../components/global-styles/color-panel.js | 5 ++-- .../global-styles/dimensions-panel.js | 5 ++-- .../components/global-styles/filters-panel.js | 5 ++-- .../global-styles/image-settings-panel.js | 5 ++-- .../global-styles/typography-panel.js | 5 ++-- .../src/components/global-styles/utils.js | 23 ++++++++++++++----- .../block-support-tools-panel.js | 6 ++--- packages/block-library/src/image/image.js | 8 ++++--- packages/block-library/src/media-text/edit.js | 5 ++-- .../query/edit/inspector-controls/index.js | 5 ++-- packages/block-library/src/utils/constants.js | 8 ------- packages/block-library/src/utils/hooks.js | 14 +++++++++++ 14 files changed, 66 insertions(+), 38 deletions(-) delete mode 100644 packages/block-library/src/utils/constants.js diff --git a/packages/block-editor/src/components/global-styles/background-panel.js b/packages/block-editor/src/components/global-styles/background-panel.js index 307c742befafd..d4b2468bf2a25 100644 --- a/packages/block-editor/src/components/global-styles/background-panel.js +++ b/packages/block-editor/src/components/global-styles/background-panel.js @@ -34,7 +34,7 @@ import { isBlobURL } from '@wordpress/blob'; /** * Internal dependencies */ -import { TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { useToolsPanelDropdownMenuProps } from './utils'; import { setImmutably } from '../../utils/object'; import MediaReplaceFlow from '../media-replace-flow'; import { store as blockEditorStore } from '../../store'; @@ -600,6 +600,7 @@ function BackgroundToolsPanel( { children, headerLabel, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetAll = () => { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -612,7 +613,7 @@ function BackgroundToolsPanel( { label={ headerLabel } resetAll={ resetAll } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children }
diff --git a/packages/block-editor/src/components/global-styles/border-panel.js b/packages/block-editor/src/components/global-styles/border-panel.js index a20bb15c044c5..cc7a464f8634a 100644 --- a/packages/block-editor/src/components/global-styles/border-panel.js +++ b/packages/block-editor/src/components/global-styles/border-panel.js @@ -18,7 +18,7 @@ import { __ } from '@wordpress/i18n'; */ import BorderRadiusControl from '../border-radius-control'; import { useColorsPerOrigin } from './hooks'; -import { getValueFromVariable, TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { getValueFromVariable, useToolsPanelDropdownMenuProps } from './utils'; import { setImmutably } from '../../utils/object'; import { useBorderPanelLabel } from '../../hooks/border'; import { ShadowPopover, useShadowPresets } from './shadow-panel-components'; @@ -69,6 +69,7 @@ function BorderToolsPanel( { children, label, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetAll = () => { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -79,7 +80,7 @@ function BorderToolsPanel( { label={ label } resetAll={ resetAll } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children } diff --git a/packages/block-editor/src/components/global-styles/color-panel.js b/packages/block-editor/src/components/global-styles/color-panel.js index 7b49ab453bb45..957d68edaf849 100644 --- a/packages/block-editor/src/components/global-styles/color-panel.js +++ b/packages/block-editor/src/components/global-styles/color-panel.js @@ -27,7 +27,7 @@ import { __, sprintf } from '@wordpress/i18n'; */ import ColorGradientControl from '../colors-gradients/control'; import { useColorsPerOrigin, useGradientsPerOrigin } from './hooks'; -import { getValueFromVariable, TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { getValueFromVariable, useToolsPanelDropdownMenuProps } from './utils'; import { setImmutably } from '../../utils/object'; import { unlock } from '../../lock-unlock'; @@ -116,6 +116,7 @@ function ColorToolsPanel( { panelId, children, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetAll = () => { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -131,7 +132,7 @@ function ColorToolsPanel( { className="color-block-support-panel" __experimentalFirstVisibleItemClass="first" __experimentalLastVisibleItemClass="last" - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } >
{ children } diff --git a/packages/block-editor/src/components/global-styles/dimensions-panel.js b/packages/block-editor/src/components/global-styles/dimensions-panel.js index 9718545795f7c..5711e16ffadcb 100644 --- a/packages/block-editor/src/components/global-styles/dimensions-panel.js +++ b/packages/block-editor/src/components/global-styles/dimensions-panel.js @@ -22,7 +22,7 @@ import { useCallback, useState, Platform } from '@wordpress/element'; /** * Internal dependencies */ -import { getValueFromVariable, TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { getValueFromVariable, useToolsPanelDropdownMenuProps } from './utils'; import SpacingSizesControl from '../spacing-sizes-control'; import HeightControl from '../height-control'; import ChildLayoutControl from '../child-layout-control'; @@ -175,6 +175,7 @@ function DimensionsToolsPanel( { panelId, children, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetAll = () => { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -185,7 +186,7 @@ function DimensionsToolsPanel( { label={ __( 'Dimensions' ) } resetAll={ resetAll } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children } diff --git a/packages/block-editor/src/components/global-styles/filters-panel.js b/packages/block-editor/src/components/global-styles/filters-panel.js index c22891684278b..9eee1b3ff0ec7 100644 --- a/packages/block-editor/src/components/global-styles/filters-panel.js +++ b/packages/block-editor/src/components/global-styles/filters-panel.js @@ -28,7 +28,7 @@ import { useCallback, useMemo } from '@wordpress/element'; /** * Internal dependencies */ -import { getValueFromVariable, TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { getValueFromVariable, useToolsPanelDropdownMenuProps } from './utils'; import { setImmutably } from '../../utils/object'; const EMPTY_ARRAY = []; @@ -72,6 +72,7 @@ function FiltersToolsPanel( { panelId, children, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetAll = () => { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -82,7 +83,7 @@ function FiltersToolsPanel( { label={ _x( 'Filters', 'Name for applying graphical effects' ) } resetAll={ resetAll } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children } diff --git a/packages/block-editor/src/components/global-styles/image-settings-panel.js b/packages/block-editor/src/components/global-styles/image-settings-panel.js index 17c5ac1dd3112..f668e7e5efc24 100644 --- a/packages/block-editor/src/components/global-styles/image-settings-panel.js +++ b/packages/block-editor/src/components/global-styles/image-settings-panel.js @@ -11,7 +11,7 @@ import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies */ -import { TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils'; +import { useToolsPanelDropdownMenuProps } from './utils'; export function useHasImageSettingsPanel( name, value, inheritedValue ) { // Note: If lightbox `value` exists, that means it was @@ -30,6 +30,7 @@ export default function ImageSettingsPanel( { inheritedValue, panelId, } ) { + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const resetLightbox = () => { onChange( undefined ); }; @@ -52,7 +53,7 @@ export default function ImageSettingsPanel( { label={ _x( 'Settings', 'Image settings' ) } resetAll={ resetLightbox } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { const updatedValue = resetAllFilter( value ); onChange( updatedValue ); @@ -145,7 +146,7 @@ function TypographyToolsPanel( { label={ __( 'Typography' ) } resetAll={ resetAll } panelId={ panelId } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children } diff --git a/packages/block-editor/src/components/global-styles/utils.js b/packages/block-editor/src/components/global-styles/utils.js index 5275259659483..bf84e6f0b5765 100644 --- a/packages/block-editor/src/components/global-styles/utils.js +++ b/packages/block-editor/src/components/global-styles/utils.js @@ -3,6 +3,11 @@ */ import fastDeepEqual from 'fast-deep-equal/es6'; +/** + * WordPress dependencies + */ +import { useViewportMatch } from '@wordpress/compose'; + /** * Internal dependencies */ @@ -136,12 +141,18 @@ export const STYLE_PATH_TO_PRESET_BLOCK_ATTRIBUTE = { 'typography.fontFamily': 'fontFamily', }; -export const TOOLSPANEL_DROPDOWNMENU_PROPS = { - popoverProps: { - placement: 'left-start', - offset: 259, // Inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px) - }, -}; +export function useToolsPanelDropdownMenuProps() { + const isMobile = useViewportMatch( 'medium', '<' ); + return ! isMobile + ? { + popoverProps: { + placement: 'left-start', + // For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px) + offset: 259, + }, + } + : {}; +} function findInPresetsBy( features, diff --git a/packages/block-editor/src/components/inspector-controls/block-support-tools-panel.js b/packages/block-editor/src/components/inspector-controls/block-support-tools-panel.js index 3f67135ad3c10..3eee7bf1b0957 100644 --- a/packages/block-editor/src/components/inspector-controls/block-support-tools-panel.js +++ b/packages/block-editor/src/components/inspector-controls/block-support-tools-panel.js @@ -10,7 +10,7 @@ import { useCallback } from '@wordpress/element'; */ import { store as blockEditorStore } from '../../store'; import { cleanEmptyObject } from '../../hooks/utils'; -import { TOOLSPANEL_DROPDOWNMENU_PROPS } from '../global-styles/utils'; +import { useToolsPanelDropdownMenuProps } from '../global-styles/utils'; export default function BlockSupportToolsPanel( { children, group, label } ) { const { updateBlockAttributes } = useDispatch( blockEditorStore ); @@ -20,7 +20,7 @@ export default function BlockSupportToolsPanel( { children, group, label } ) { getSelectedBlockClientId, hasMultiSelection, } = useSelect( blockEditorStore ); - + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); const panelId = getSelectedBlockClientId(); const resetAll = useCallback( ( resetFilters = [] ) => { @@ -72,7 +72,7 @@ export default function BlockSupportToolsPanel( { children, group, label } ) { shouldRenderPlaceholderItems // Required to maintain fills ordering. __experimentalFirstVisibleItemClass="first" __experimentalLastVisibleItemClass="last" - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { children } diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index c96eb4e45117d..a491ed5f1dfaa 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -49,7 +49,7 @@ import { Caption } from '../utils/caption'; /** * Module constants */ -import { TOOLSPANEL_DROPDOWNMENU_PROPS } from '../utils/constants'; +import { useToolsPanelDropdownMenuProps } from '../utils/hooks'; import { MIN_SIZE, ALLOWED_MEDIA_TYPES } from './constants'; import { evalAspectRatio } from './utils'; @@ -373,6 +373,8 @@ export default function Image( { const lightboxChecked = !! lightbox?.enabled || ( ! lightbox && !! lightboxSetting?.enabled ); + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); + const dimensionsControl = ( { isResizable && dimensionsControl } @@ -691,7 +693,7 @@ export default function Image( { { isSingleSelected && ( @@ -223,7 +224,7 @@ export default function QueryInspectorControls( props ) { } ); setQuerySearch( '' ); } } - dropdownMenuProps={ TOOLSPANEL_DROPDOWNMENU_PROPS } + dropdownMenuProps={ dropdownMenuProps } > { showTaxControl && ( Date: Thu, 27 Jun 2024 15:52:26 +1000 Subject: [PATCH 26/34] Fix extra scrollbar when a popover extends past the viewport. (#62894) Co-authored-by: tellthemachines Co-authored-by: talldan --- packages/editor/src/components/visual-editor/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/visual-editor/style.scss b/packages/editor/src/components/visual-editor/style.scss index f340f9f1313e3..b7fbf882a897b 100644 --- a/packages/editor/src/components/visual-editor/style.scss +++ b/packages/editor/src/components/visual-editor/style.scss @@ -19,7 +19,7 @@ // In the iframed canvas this keeps extra scrollbars from appearing (when block toolbars overflow). In the // legacy (non-iframed) canvas, overflow must not be hidden in order to maintain support for sticky positioning. - .is-iframed { + &.is-iframed { overflow: hidden; } From 2e41a461dbb45ed34224fa446dcff47c813d1d89 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Thu, 27 Jun 2024 08:34:27 +0200 Subject: [PATCH 27/34] DataViews: remove the AnyItem type (#62856) Co-authored-by: jsnajdr Co-authored-by: ellatrix Co-authored-by: youknowriad --- .../dataviews/src/bulk-actions-toolbar.tsx | 18 +++--- packages/dataviews/src/bulk-actions.tsx | 22 +++---- packages/dataviews/src/dataviews.tsx | 18 ++++-- .../src/filter-and-sort-data-view.ts | 4 +- packages/dataviews/src/filters.tsx | 6 +- packages/dataviews/src/item-actions.tsx | 29 ++++----- packages/dataviews/src/normalize-fields.ts | 8 ++- .../src/single-selection-checkbox.tsx | 6 +- packages/dataviews/src/types.ts | 64 ++++++++++--------- packages/dataviews/src/utils.ts | 6 +- packages/dataviews/src/view-actions.tsx | 14 ++-- packages/dataviews/src/view-grid.tsx | 8 +-- packages/dataviews/src/view-list.tsx | 10 ++- packages/dataviews/src/view-table.tsx | 17 +++-- .../src/dataviews/store/private-actions.ts | 4 +- 15 files changed, 119 insertions(+), 115 deletions(-) diff --git a/packages/dataviews/src/bulk-actions-toolbar.tsx b/packages/dataviews/src/bulk-actions-toolbar.tsx index 56a8aa58e7dc4..50a1386aadec0 100644 --- a/packages/dataviews/src/bulk-actions-toolbar.tsx +++ b/packages/dataviews/src/bulk-actions-toolbar.tsx @@ -18,24 +18,24 @@ import { useRegistry } from '@wordpress/data'; * Internal dependencies */ import { ActionWithModal } from './item-actions'; -import type { Action, AnyItem } from './types'; +import type { Action } from './types'; import type { ActionTriggerProps } from './item-actions'; -interface ActionButtonProps< Item extends AnyItem > { +interface ActionButtonProps< Item > { action: Action< Item >; selectedItems: Item[]; actionInProgress: string | null; setActionInProgress: ( actionId: string | null ) => void; } -interface ToolbarContentProps< Item extends AnyItem > { +interface ToolbarContentProps< Item > { selection: string[]; actionsToShow: Action< Item >[]; selectedItems: Item[]; onSelectionChange: ( selection: Item[] ) => void; } -interface BulkActionsToolbarProps< Item extends AnyItem > { +interface BulkActionsToolbarProps< Item > { data: Item[]; selection: string[]; actions: Action< Item >[]; @@ -62,7 +62,7 @@ const SNACKBAR_VARIANTS = { }, }; -function ActionTrigger< Item extends AnyItem >( { +function ActionTrigger< Item >( { action, onClick, isBusy, @@ -87,7 +87,7 @@ function ActionTrigger< Item extends AnyItem >( { const EMPTY_ARRAY: [] = []; -function ActionButton< Item extends AnyItem >( { +function ActionButton< Item >( { action, selectedItems, actionInProgress, @@ -125,7 +125,7 @@ function ActionButton< Item extends AnyItem >( { ); } -function renderToolbarContent< Item extends AnyItem >( +function renderToolbarContent< Item >( selection: string[], actionsToShow: Action< Item >[], selectedItems: Item[], @@ -179,7 +179,7 @@ function renderToolbarContent< Item extends AnyItem >( ); } -function ToolbarContent< Item extends AnyItem >( { +function ToolbarContent< Item >( { selection, actionsToShow, selectedItems, @@ -214,7 +214,7 @@ function ToolbarContent< Item extends AnyItem >( { return buttons.current; } -export default function BulkActionsToolbar< Item extends AnyItem >( { +export default function BulkActionsToolbar< Item >( { data, selection, actions = EMPTY_ARRAY, diff --git a/packages/dataviews/src/bulk-actions.tsx b/packages/dataviews/src/bulk-actions.tsx index fd4d5c390948d..7f743bbeea1a2 100644 --- a/packages/dataviews/src/bulk-actions.tsx +++ b/packages/dataviews/src/bulk-actions.tsx @@ -14,7 +14,7 @@ import { useRegistry } from '@wordpress/data'; * Internal dependencies */ import { unlock } from './lock-unlock'; -import type { Action, ActionModal, AnyItem } from './types'; +import type { Action, ActionModal } from './types'; const { DropdownMenuV2: DropdownMenu, @@ -23,26 +23,26 @@ const { DropdownMenuSeparatorV2: DropdownMenuSeparator, } = unlock( componentsPrivateApis ); -interface ActionWithModalProps< Item extends AnyItem > { +interface ActionWithModalProps< Item > { action: ActionModal< Item >; selectedItems: Item[]; setActionWithModal: ( action?: ActionModal< Item > ) => void; onMenuOpenChange: ( isOpen: boolean ) => void; } -interface BulkActionsItemProps< Item extends AnyItem > { +interface BulkActionsItemProps< Item > { action: Action< Item >; selectedItems: Item[]; setActionWithModal: ( action?: ActionModal< Item > ) => void; } -interface ActionsMenuGroupProps< Item extends AnyItem > { +interface ActionsMenuGroupProps< Item > { actions: Action< Item >[]; selectedItems: Item[]; setActionWithModal: ( action?: ActionModal< Item > ) => void; } -interface BulkActionsProps< Item extends AnyItem > { +interface BulkActionsProps< Item > { data: Item[]; actions: Action< Item >[]; selection: string[]; @@ -50,7 +50,7 @@ interface BulkActionsProps< Item extends AnyItem > { getItemId: ( item: Item ) => string; } -export function useHasAPossibleBulkAction< Item extends AnyItem >( +export function useHasAPossibleBulkAction< Item >( actions: Action< Item >[], item: Item ) { @@ -64,7 +64,7 @@ export function useHasAPossibleBulkAction< Item extends AnyItem >( }, [ actions, item ] ); } -export function useSomeItemHasAPossibleBulkAction< Item extends AnyItem >( +export function useSomeItemHasAPossibleBulkAction< Item >( actions: Action< Item >[], data: Item[] ) { @@ -80,7 +80,7 @@ export function useSomeItemHasAPossibleBulkAction< Item extends AnyItem >( }, [ actions, data ] ); } -function ActionWithModal< Item extends AnyItem >( { +function ActionWithModal< Item >( { action, selectedItems, setActionWithModal, @@ -115,7 +115,7 @@ function ActionWithModal< Item extends AnyItem >( { ); } -function BulkActionItem< Item extends AnyItem >( { +function BulkActionItem< Item >( { action, selectedItems, setActionWithModal, @@ -150,7 +150,7 @@ function BulkActionItem< Item extends AnyItem >( { ); } -function ActionsMenuGroup< Item extends AnyItem >( { +function ActionsMenuGroup< Item >( { actions, selectedItems, setActionWithModal, @@ -172,7 +172,7 @@ function ActionsMenuGroup< Item extends AnyItem >( { ); } -export default function BulkActions< Item extends AnyItem >( { +export default function BulkActions< Item >( { data, actions, selection, diff --git a/packages/dataviews/src/dataviews.tsx b/packages/dataviews/src/dataviews.tsx index de4deb36659f4..476ed895ed529 100644 --- a/packages/dataviews/src/dataviews.tsx +++ b/packages/dataviews/src/dataviews.tsx @@ -21,9 +21,11 @@ import { VIEW_LAYOUTS } from './layouts'; import BulkActions from './bulk-actions'; import { normalizeFields } from './normalize-fields'; import BulkActionsToolbar from './bulk-actions-toolbar'; -import type { Action, AnyItem, Field, View, ViewBaseProps } from './types'; +import type { Action, Field, View, ViewBaseProps } from './types'; -interface DataViewsProps< Item extends AnyItem > { +type ItemWithId = { id: string }; + +type DataViewsProps< Item > = { view: View; onChangeView: ( view: View ) => void; fields: Field< Item >[]; @@ -31,7 +33,6 @@ interface DataViewsProps< Item extends AnyItem > { searchLabel?: string; actions?: Action< Item >[]; data: Item[]; - getItemId?: ( item: Item ) => string; isLoading?: boolean; paginationInfo: { totalItems: number; @@ -41,12 +42,15 @@ interface DataViewsProps< Item extends AnyItem > { selection?: string[]; setSelection?: ( selection: string[] ) => void; onSelectionChange?: ( items: Item[] ) => void; -} +} & ( Item extends ItemWithId + ? { getItemId?: ( item: Item ) => string } + : { getItemId: ( item: Item ) => string } ); + +const defaultGetItemId = ( item: ItemWithId ) => item.id; -const defaultGetItemId = ( item: AnyItem ) => item.id; const defaultOnSelectionChange = () => {}; -function useSomeItemHasAPossibleBulkAction< Item extends AnyItem >( +function useSomeItemHasAPossibleBulkAction< Item >( actions: Action< Item >[], data: Item[] ) { @@ -62,7 +66,7 @@ function useSomeItemHasAPossibleBulkAction< Item extends AnyItem >( }, [ actions, data ] ); } -export default function DataViews< Item extends AnyItem >( { +export default function DataViews< Item >( { view, onChangeView, fields, diff --git a/packages/dataviews/src/filter-and-sort-data-view.ts b/packages/dataviews/src/filter-and-sort-data-view.ts index a2906fdc4869e..a62cdcccf6b86 100644 --- a/packages/dataviews/src/filter-and-sort-data-view.ts +++ b/packages/dataviews/src/filter-and-sort-data-view.ts @@ -15,7 +15,7 @@ import { OPERATOR_IS_NOT_ALL, } from './constants'; import { normalizeFields } from './normalize-fields'; -import type { Field, AnyItem, View } from './types'; +import type { Field, View } from './types'; function normalizeSearchInput( input = '' ) { return removeAccents( input.trim().toLowerCase() ); @@ -32,7 +32,7 @@ const EMPTY_ARRAY: [] = []; * * @return Filtered, sorted and paginated data. */ -export function filterSortAndPaginate< Item extends AnyItem >( +export function filterSortAndPaginate< Item >( data: Item[], view: View, fields: Field< Item >[] diff --git a/packages/dataviews/src/filters.tsx b/packages/dataviews/src/filters.tsx index 0cf017fce191b..187f34b532dde 100644 --- a/packages/dataviews/src/filters.tsx +++ b/packages/dataviews/src/filters.tsx @@ -12,9 +12,9 @@ import AddFilter from './add-filter'; import ResetFilters from './reset-filters'; import { sanitizeOperators } from './utils'; import { ALL_OPERATORS, OPERATOR_IS, OPERATOR_IS_NOT } from './constants'; -import type { AnyItem, NormalizedField, NormalizedFilter, View } from './types'; +import type { NormalizedField, NormalizedFilter, View } from './types'; -interface FiltersProps< Item extends AnyItem > { +interface FiltersProps< Item > { fields: NormalizedField< Item >[]; view: View; onChangeView: ( view: View ) => void; @@ -22,7 +22,7 @@ interface FiltersProps< Item extends AnyItem > { setOpenedFilter: ( openedFilter: string | null ) => void; } -function _Filters< Item extends AnyItem >( { +function _Filters< Item >( { fields, view, onChangeView, diff --git a/packages/dataviews/src/item-actions.tsx b/packages/dataviews/src/item-actions.tsx index fa6aae3336464..631bcbf485de3 100644 --- a/packages/dataviews/src/item-actions.tsx +++ b/packages/dataviews/src/item-actions.tsx @@ -21,7 +21,7 @@ import { useRegistry } from '@wordpress/data'; * Internal dependencies */ import { unlock } from './lock-unlock'; -import type { Action, ActionModal as ActionModalType, AnyItem } from './types'; +import type { Action, ActionModal as ActionModalType } from './types'; const { DropdownMenuV2: DropdownMenu, @@ -31,42 +31,41 @@ const { kebabCase, } = unlock( componentsPrivateApis ); -export interface ActionTriggerProps< Item extends AnyItem > { +export interface ActionTriggerProps< Item > { action: Action< Item >; onClick: MouseEventHandler; isBusy?: boolean; items: Item[]; } -interface ActionModalProps< Item extends AnyItem > { +interface ActionModalProps< Item > { action: ActionModalType< Item >; items: Item[]; closeModal?: () => void; } -interface ActionWithModalProps< Item extends AnyItem > - extends ActionModalProps< Item > { +interface ActionWithModalProps< Item > extends ActionModalProps< Item > { ActionTrigger: ( props: ActionTriggerProps< Item > ) => ReactElement; isBusy?: boolean; } -interface ActionsDropdownMenuGroupProps< Item extends AnyItem > { +interface ActionsDropdownMenuGroupProps< Item > { actions: Action< Item >[]; item: Item; } -interface ItemActionsProps< Item extends AnyItem > { +interface ItemActionsProps< Item > { item: Item; actions: Action< Item >[]; isCompact?: boolean; } -interface CompactItemActionsProps< Item extends AnyItem > { +interface CompactItemActionsProps< Item > { item: Item; actions: Action< Item >[]; } -function ButtonTrigger< Item extends AnyItem >( { +function ButtonTrigger< Item >( { action, onClick, items, @@ -84,7 +83,7 @@ function ButtonTrigger< Item extends AnyItem >( { ); } -function DropdownMenuItemTrigger< Item extends AnyItem >( { +function DropdownMenuItemTrigger< Item >( { action, onClick, items, @@ -101,7 +100,7 @@ function DropdownMenuItemTrigger< Item extends AnyItem >( { ); } -export function ActionModal< Item extends AnyItem >( { +export function ActionModal< Item >( { action, items, closeModal, @@ -124,7 +123,7 @@ export function ActionModal< Item extends AnyItem >( { ); } -export function ActionWithModal< Item extends AnyItem >( { +export function ActionWithModal< Item >( { action, items, ActionTrigger, @@ -153,7 +152,7 @@ export function ActionWithModal< Item extends AnyItem >( { ); } -export function ActionsDropdownMenuGroup< Item extends AnyItem >( { +export function ActionsDropdownMenuGroup< Item >( { actions, item, }: ActionsDropdownMenuGroupProps< Item > ) { @@ -186,7 +185,7 @@ export function ActionsDropdownMenuGroup< Item extends AnyItem >( { ); } -export default function ItemActions< Item extends AnyItem >( { +export default function ItemActions< Item >( { item, actions, isCompact, @@ -247,7 +246,7 @@ export default function ItemActions< Item extends AnyItem >( { ); } -function CompactItemActions< Item extends AnyItem >( { +function CompactItemActions< Item >( { item, actions, }: CompactItemActionsProps< Item > ) { diff --git a/packages/dataviews/src/normalize-fields.ts b/packages/dataviews/src/normalize-fields.ts index 2c5edd91070c7..a7a9a47734a96 100644 --- a/packages/dataviews/src/normalize-fields.ts +++ b/packages/dataviews/src/normalize-fields.ts @@ -1,7 +1,7 @@ /** * Internal dependencies */ -import type { Field, AnyItem, NormalizedField } from './types'; +import type { Field, NormalizedField, ItemRecord } from './types'; /** * Apply default values and normalize the fields config. @@ -9,11 +9,13 @@ import type { Field, AnyItem, NormalizedField } from './types'; * @param fields Fields config. * @return Normalized fields config. */ -export function normalizeFields< Item extends AnyItem >( +export function normalizeFields< Item >( fields: Field< Item >[] ): NormalizedField< Item >[] { return fields.map( ( field ) => { - const getValue = field.getValue || ( ( { item } ) => item[ field.id ] ); + const getValue = + field.getValue || + ( ( { item }: { item: ItemRecord } ) => item[ field.id ] ); return { ...field, diff --git a/packages/dataviews/src/single-selection-checkbox.tsx b/packages/dataviews/src/single-selection-checkbox.tsx index 7c61b8e4aaa83..84b359508663b 100644 --- a/packages/dataviews/src/single-selection-checkbox.tsx +++ b/packages/dataviews/src/single-selection-checkbox.tsx @@ -7,9 +7,9 @@ import { CheckboxControl } from '@wordpress/components'; /** * Internal dependencies */ -import type { Field, AnyItem } from './types'; +import type { Field } from './types'; -interface SingleSelectionCheckboxProps< Item extends AnyItem > { +interface SingleSelectionCheckboxProps< Item > { selection: string[]; onSelectionChange: ( selection: Item[] ) => void; item: Item; @@ -19,7 +19,7 @@ interface SingleSelectionCheckboxProps< Item extends AnyItem > { disabled: boolean; } -export default function SingleSelectionCheckbox< Item extends AnyItem >( { +export default function SingleSelectionCheckbox< Item >( { selection, onSelectionChange, item, diff --git a/packages/dataviews/src/types.ts b/packages/dataviews/src/types.ts index b01394c7f846a..76b514755056a 100644 --- a/packages/dataviews/src/types.ts +++ b/packages/dataviews/src/types.ts @@ -37,12 +37,12 @@ export type Operator = | 'isAll' | 'isNotAll'; -export type AnyItem = Record< string, any >; +export type ItemRecord = Record< string, unknown >; /** * A dataview field for a specific property of a data type. */ -export interface Field< Item extends AnyItem > { +export type Field< Item > = { /** * The unique identifier of the field. */ @@ -53,12 +53,6 @@ export interface Field< Item extends AnyItem > { */ header?: string; - /** - * Callback used to retrieve the value of the field from the item. - * Defaults to `item[ field.id ]`. - */ - getValue?: ( args: { item: Item } ) => any; - /** * Callback used to render the field. Defaults to `field.getValue`. */ @@ -103,17 +97,34 @@ export interface Field< Item extends AnyItem > { * Filter config for the field. */ filterBy?: FilterByConfig | undefined; -} - -export type NormalizedField< Item extends AnyItem > = Field< Item > & - Required< Pick< Field< Item >, 'header' | 'getValue' | 'render' > >; +} & ( Item extends ItemRecord + ? { + /** + * Callback used to retrieve the value of the field from the item. + * Defaults to `item[ field.id ]`. + */ + getValue?: ( args: { item: Item } ) => any; + } + : { + /** + * Callback used to retrieve the value of the field from the item. + * Defaults to `item[ field.id ]`. + */ + getValue: ( args: { item: Item } ) => any; + } ); + +export type NormalizedField< Item > = Field< Item > & { + header: string; + getValue: ( args: { item: Item } ) => any; + render: ( args: { item: Item } ) => ReactNode; +}; /** * A collection of dataview fields for a data type. */ -export type Fields< Item extends AnyItem > = Field< Item >[]; +export type Fields< Item > = Field< Item >[]; -export type Data< Item extends AnyItem > = Item[]; +export type Data< Item > = Item[]; /** * The filters applied to the dataset. @@ -279,7 +290,7 @@ export interface ViewGrid extends ViewBase { export type View = ViewList | ViewGrid | ViewTable; -interface ActionBase< Item extends AnyItem > { +interface ActionBase< Item > { /** * The unique identifier of the action. */ @@ -325,8 +336,7 @@ interface ActionBase< Item extends AnyItem > { supportsBulk?: boolean; } -export interface ActionModal< Item extends AnyItem > - extends ActionBase< Item > { +export interface ActionModal< Item > extends ActionBase< Item > { /** * Modal to render when the action is triggered. */ @@ -351,8 +361,7 @@ export interface ActionModal< Item extends AnyItem > modalHeader?: string; } -export interface ActionButton< Item extends AnyItem > - extends ActionBase< AnyItem > { +export interface ActionButton< Item > extends ActionBase< Item > { /** * The callback to execute when the action is triggered. */ @@ -365,11 +374,9 @@ export interface ActionButton< Item extends AnyItem > ) => void; } -export type Action< Item extends AnyItem > = - | ActionModal< Item > - | ActionButton< Item >; +export type Action< Item > = ActionModal< Item > | ActionButton< Item >; -export interface ViewBaseProps< Item extends AnyItem > { +export interface ViewBaseProps< Item > { actions: Action< Item >[]; data: Item[]; fields: NormalizedField< Item >[]; @@ -382,22 +389,19 @@ export interface ViewBaseProps< Item extends AnyItem > { view: View; } -export interface ViewTableProps< Item extends AnyItem > - extends ViewBaseProps< Item > { +export interface ViewTableProps< Item > extends ViewBaseProps< Item > { view: ViewTable; } -export interface ViewListProps< Item extends AnyItem > - extends ViewBaseProps< Item > { +export interface ViewListProps< Item > extends ViewBaseProps< Item > { view: ViewList; } -export interface ViewGridProps< Item extends AnyItem > - extends ViewBaseProps< Item > { +export interface ViewGridProps< Item > extends ViewBaseProps< Item > { view: ViewGrid; } -export type ViewProps< Item extends AnyItem > = +export type ViewProps< Item > = | ViewTableProps< Item > | ViewGridProps< Item > | ViewListProps< Item >; diff --git a/packages/dataviews/src/utils.ts b/packages/dataviews/src/utils.ts index d895289318da0..408288c517489 100644 --- a/packages/dataviews/src/utils.ts +++ b/packages/dataviews/src/utils.ts @@ -8,11 +8,9 @@ import { OPERATOR_IS_ANY, OPERATOR_IS_NONE, } from './constants'; -import type { AnyItem, NormalizedField } from './types'; +import type { NormalizedField } from './types'; -export function sanitizeOperators< Item extends AnyItem >( - field: NormalizedField< Item > -) { +export function sanitizeOperators< Item >( field: NormalizedField< Item > ) { let operators = field.filterBy?.operators; // Assign default values. diff --git a/packages/dataviews/src/view-actions.tsx b/packages/dataviews/src/view-actions.tsx index 9009841757531..f83a5887065ec 100644 --- a/packages/dataviews/src/view-actions.tsx +++ b/packages/dataviews/src/view-actions.tsx @@ -20,7 +20,7 @@ import { settings } from '@wordpress/icons'; import { unlock } from './lock-unlock'; import { SORTING_DIRECTIONS, sortLabels } from './constants'; import { VIEW_LAYOUTS } from './layouts'; -import type { AnyItem, NormalizedField, View } from './types'; +import type { NormalizedField, View } from './types'; const { DropdownMenuV2: DropdownMenu, @@ -42,19 +42,19 @@ interface PageSizeMenuProps { onChangeView: ( view: View ) => void; } -interface FieldsVisibilityMenuProps< Item extends AnyItem > { +interface FieldsVisibilityMenuProps< Item > { view: View; onChangeView: ( view: View ) => void; fields: NormalizedField< Item >[]; } -interface SortMenuProps< Item extends AnyItem > { +interface SortMenuProps< Item > { fields: NormalizedField< Item >[]; view: View; onChangeView: ( view: View ) => void; } -interface ViewActionsProps< Item extends AnyItem > { +interface ViewActionsProps< Item > { fields: NormalizedField< Item >[]; view: View; onChangeView: ( view: View ) => void; @@ -161,7 +161,7 @@ function PageSizeMenu( { view, onChangeView }: PageSizeMenuProps ) { ); } -function FieldsVisibilityMenu< Item extends AnyItem >( { +function FieldsVisibilityMenu< Item >( { view, onChangeView, fields, @@ -215,7 +215,7 @@ function FieldsVisibilityMenu< Item extends AnyItem >( { ); } -function SortMenu< Item extends AnyItem >( { +function SortMenu< Item >( { fields, view, onChangeView, @@ -303,7 +303,7 @@ function SortMenu< Item extends AnyItem >( { ); } -function _ViewActions< Item extends AnyItem >( { +function _ViewActions< Item >( { fields, view, onChangeView, diff --git a/packages/dataviews/src/view-grid.tsx b/packages/dataviews/src/view-grid.tsx index 4538ab145d213..8fa9d6413d851 100644 --- a/packages/dataviews/src/view-grid.tsx +++ b/packages/dataviews/src/view-grid.tsx @@ -22,9 +22,9 @@ import { __ } from '@wordpress/i18n'; import ItemActions from './item-actions'; import SingleSelectionCheckbox from './single-selection-checkbox'; import { useHasAPossibleBulkAction } from './bulk-actions'; -import type { Action, AnyItem, NormalizedField, ViewGridProps } from './types'; +import type { Action, NormalizedField, ViewGridProps } from './types'; -interface GridItemProps< Item extends AnyItem > { +interface GridItemProps< Item > { selection: string[]; data: Item[]; onSelectionChange: ( items: Item[] ) => void; @@ -38,7 +38,7 @@ interface GridItemProps< Item extends AnyItem > { columnFields?: string[]; } -function GridItem< Item extends AnyItem >( { +function GridItem< Item >( { selection, data, onSelectionChange, @@ -187,7 +187,7 @@ function GridItem< Item extends AnyItem >( { ); } -export default function ViewGrid< Item extends AnyItem >( { +export default function ViewGrid< Item >( { actions, data, fields, diff --git a/packages/dataviews/src/view-list.tsx b/packages/dataviews/src/view-list.tsx index eb2b9c6c077a6..d6714a16e82df 100644 --- a/packages/dataviews/src/view-list.tsx +++ b/packages/dataviews/src/view-list.tsx @@ -33,11 +33,11 @@ import { useRegistry } from '@wordpress/data'; * Internal dependencies */ import { unlock } from './lock-unlock'; -import type { Action, AnyItem, NormalizedField, ViewListProps } from './types'; +import type { Action, NormalizedField, ViewListProps } from './types'; import { ActionsDropdownMenuGroup, ActionModal } from './item-actions'; -interface ListViewItemProps< Item extends AnyItem > { +interface ListViewItemProps< Item > { actions: Action< Item >[]; id?: string; isSelected: boolean; @@ -57,7 +57,7 @@ const { DropdownMenuV2: DropdownMenu, } = unlock( componentsPrivateApis ); -function ListItem< Item extends AnyItem >( { +function ListItem< Item >( { actions, id, isSelected, @@ -303,9 +303,7 @@ function ListItem< Item extends AnyItem >( { ); } -export default function ViewList< Item extends AnyItem >( - props: ViewListProps< Item > -) { +export default function ViewList< Item >( props: ViewListProps< Item > ) { const { actions, data, diff --git a/packages/dataviews/src/view-table.tsx b/packages/dataviews/src/view-table.tsx index 66e59a8ebb423..f09b46733e1a8 100644 --- a/packages/dataviews/src/view-table.tsx +++ b/packages/dataviews/src/view-table.tsx @@ -46,7 +46,6 @@ import { } from './bulk-actions'; import type { Action, - AnyItem, NormalizedField, SortDirection, ViewTable as ViewTableType, @@ -62,7 +61,7 @@ const { DropdownMenuSeparatorV2: DropdownMenuSeparator, } = unlock( componentsPrivateApis ); -interface HeaderMenuProps< Item extends AnyItem > { +interface HeaderMenuProps< Item > { field: NormalizedField< Item >; view: ViewTableType; onChangeView: ( view: ViewTableType ) => void; @@ -70,7 +69,7 @@ interface HeaderMenuProps< Item extends AnyItem > { setOpenedFilter: ( fieldId: string ) => void; } -interface BulkSelectionCheckboxProps< Item extends AnyItem > { +interface BulkSelectionCheckboxProps< Item > { selection: string[]; onSelectionChange: ( items: Item[] ) => void; data: Item[]; @@ -78,7 +77,7 @@ interface BulkSelectionCheckboxProps< Item extends AnyItem > { getItemId: ( item: Item ) => string; } -interface TableRowProps< Item extends AnyItem > { +interface TableRowProps< Item > { hasBulkActions: boolean; item: Item; actions: Action< Item >[]; @@ -102,7 +101,7 @@ function WithDropDownMenuSeparators( { children }: { children: ReactNode } ) { ) ); } -const _HeaderMenu = forwardRef( function HeaderMenu< Item extends AnyItem >( +const _HeaderMenu = forwardRef( function HeaderMenu< Item >( { field, view, @@ -240,12 +239,12 @@ const _HeaderMenu = forwardRef( function HeaderMenu< Item extends AnyItem >( } ); // @ts-expect-error Lift the `Item` type argument through the forwardRef. -const HeaderMenu: < Item extends AnyItem >( +const HeaderMenu: < Item >( props: PropsWithoutRef< HeaderMenuProps< Item > > & RefAttributes< HTMLButtonElement > ) => ReturnType< typeof _HeaderMenu > = _HeaderMenu; -function BulkSelectionCheckbox< Item extends AnyItem >( { +function BulkSelectionCheckbox< Item >( { selection, onSelectionChange, data, @@ -287,7 +286,7 @@ function BulkSelectionCheckbox< Item extends AnyItem >( { ); } -function TableRow< Item extends AnyItem >( { +function TableRow< Item >( { hasBulkActions, item, actions, @@ -425,7 +424,7 @@ function TableRow< Item extends AnyItem >( { ); } -function ViewTable< Item extends AnyItem >( { +function ViewTable< Item >( { actions, data, fields, diff --git a/packages/editor/src/dataviews/store/private-actions.ts b/packages/editor/src/dataviews/store/private-actions.ts index a74e1b5e79844..562e4140ed806 100644 --- a/packages/editor/src/dataviews/store/private-actions.ts +++ b/packages/editor/src/dataviews/store/private-actions.ts @@ -1,9 +1,9 @@ /** * WordPress dependencies */ -import type { Action, AnyItem } from '@wordpress/dataviews'; +import type { Action } from '@wordpress/dataviews'; -export function registerEntityAction< Item extends AnyItem >( +export function registerEntityAction< Item >( kind: string, name: string, config: Action< Item > From 49b9692a793a6d5cbc2eb23e5fd93a2f31091de0 Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 27 Jun 2024 16:34:34 +1000 Subject: [PATCH 28/34] Global styles revisions: ensure that user-defined variation styles CSS is generated (#62768) * Render styles after the variation style overrides have been saved to stage. Getting closer. But the overrides in state need to be merged with incoming revision styles. * For every current override, update the variation CSS with the incoming config from the revision. * Rename hook Destructure in hook so the consumer doesn't have to clone Only send the override overrides to EditorStyles that need to be overridden. * Fetching overrides in the hook * Feedback suggestions from review: add overrides to dep array in Editor Styles rename hook * Return getBlockStyles from the useSelect callback * Refactor so we don't have to change the EditorStyles props Register revision overrides with useStyleOverride * Adding some explanatory comments Add rudimentary E2E test covering block style partials, applying them, updating them and viewing styles revisions. * Removed unused style fixture Co-authored-by: ramonjd Co-authored-by: aaronrobertshaw Co-authored-by: ellatrix --- .../src/hooks/block-style-variation.js | 122 ++++++ packages/block-editor/src/hooks/index.js | 1 + packages/block-editor/src/hooks/utils.js | 2 + packages/block-editor/src/private-apis.js | 7 +- .../src/components/revisions/index.js | 10 +- .../block-style-variations.spec.js | 366 ++++++++++++++++++ .../block-templates/singular.html | 2 + .../styles/block-style-variation-a.json | 20 + .../styles/block-style-variation-b.json | 20 + 9 files changed, 548 insertions(+), 2 deletions(-) create mode 100644 test/e2e/specs/site-editor/block-style-variations.spec.js create mode 100644 test/gutenberg-test-themes/style-variations/block-templates/singular.html create mode 100644 test/gutenberg-test-themes/style-variations/styles/block-style-variation-a.json create mode 100644 test/gutenberg-test-themes/style-variations/styles/block-style-variation-b.json diff --git a/packages/block-editor/src/hooks/block-style-variation.js b/packages/block-editor/src/hooks/block-style-variation.js index 336db687558f5..21259966d8a63 100644 --- a/packages/block-editor/src/hooks/block-style-variation.js +++ b/packages/block-editor/src/hooks/block-style-variation.js @@ -16,6 +16,7 @@ import { import { useStyleOverride } from './utils'; import { store as blockEditorStore } from '../store'; import { globalStylesDataKey } from '../store/private-keys'; +import { unlock } from '../lock-unlock'; const VARIATION_PREFIX = 'is-style-'; @@ -59,6 +60,126 @@ function getVariationNameFromClass( className, registeredStyles = [] ) { return null; } +// A helper component to apply a style override using the useStyleOverride hook. +function OverrideStyles( { override } ) { + useStyleOverride( override ); +} + +/** + * This component is used to generate new block style variation overrides + * based on an incoming theme config. If a matching style is found in the config, + * a new override is created and returned. The overrides can be used in conjunction with + * useStyleOverride to apply the new styles to the editor. Its use is + * subject to change. + * + * @param {Object} props Props. + * @param {Object} props.config A global styles object, containing settings and styles. + * @return {JSX.Element|undefined} An array of new block variation overrides. + */ +export function __unstableBlockStyleVariationOverridesWithConfig( { config } ) { + const { getBlockStyles, overrides } = useSelect( + ( select ) => ( { + getBlockStyles: select( blocksStore ).getBlockStyles, + overrides: unlock( select( blockEditorStore ) ).getStyleOverrides(), + } ), + [] + ); + const { getBlockName } = useSelect( blockEditorStore ); + + const overridesWithConfig = useMemo( () => { + if ( ! overrides?.length ) { + return; + } + const newOverrides = []; + const overriddenClientIds = []; + for ( const [ , override ] of overrides ) { + if ( + override?.variation && + override?.clientId && + /* + * Because this component overwrites existing style overrides, + * filter out any overrides that are already present in the store. + */ + ! overriddenClientIds.includes( override.clientId ) + ) { + const blockName = getBlockName( override.clientId ); + const configStyles = + config?.styles?.blocks?.[ blockName ]?.variations?.[ + override.variation + ]; + if ( configStyles ) { + const variationConfig = { + settings: config?.settings, + // The variation style data is all that is needed to generate + // the styles for the current application to a block. The variation + // name is updated to match the instance specific class name. + styles: { + blocks: { + [ blockName ]: { + variations: { + [ `${ override.variation }-${ override.clientId }` ]: + configStyles, + }, + }, + }, + }, + }; + const blockSelectors = getBlockSelectors( + getBlockTypes(), + getBlockStyles, + override.clientId + ); + const hasBlockGapSupport = false; + const hasFallbackGapSupport = true; + const disableLayoutStyles = true; + const disableRootPadding = true; + const variationStyles = toStyles( + variationConfig, + blockSelectors, + hasBlockGapSupport, + hasFallbackGapSupport, + disableLayoutStyles, + disableRootPadding, + { + blockGap: false, + blockStyles: true, + layoutStyles: false, + marginReset: false, + presets: false, + rootPadding: false, + variationStyles: true, + } + ); + newOverrides.push( { + id: `${ override.variation }-${ override.clientId }`, + css: variationStyles, + __unstableType: 'variation', + variation: override.variation, + // The clientId will be stored with the override and used to ensure + // the order of overrides matches the order of blocks so that the + // correct CSS cascade is maintained. + clientId: override.clientId, + } ); + overriddenClientIds.push( override.clientId ); + } + } + } + return newOverrides; + }, [ config, overrides, getBlockStyles, getBlockName ] ); + + if ( ! overridesWithConfig || ! overridesWithConfig.length ) { + return; + } + + return ( + <> + { overridesWithConfig.map( ( override ) => ( + + ) ) } + + ); +} + function useBlockStyleVariation( name, variation, clientId ) { // Prefer global styles data in GlobalStylesContext, which are available // if in the site editor. Otherwise fall back to whatever is in the @@ -157,6 +278,7 @@ function useBlockProps( { name, className, clientId } ) { id: `variation-${ clientId }`, css: variationStyles, __unstableType: 'variation', + variation, // The clientId will be stored with the override and used to ensure // the order of overrides matches the order of blocks so that the // correct CSS cascade is maintained. diff --git a/packages/block-editor/src/hooks/index.js b/packages/block-editor/src/hooks/index.js index 89e6819c1d031..bd1835571fdd4 100644 --- a/packages/block-editor/src/hooks/index.js +++ b/packages/block-editor/src/hooks/index.js @@ -88,3 +88,4 @@ export { getTypographyClassesAndStyles } from './use-typography-props'; export { getGapCSSValue } from './gap'; export { useCachedTruthy } from './use-cached-truthy'; export { useZoomOut } from './use-zoom-out'; +export { __unstableBlockStyleVariationOverridesWithConfig } from './block-style-variation'; diff --git a/packages/block-editor/src/hooks/utils.js b/packages/block-editor/src/hooks/utils.js index d4eb7df553d3c..26700ecf7b3fa 100644 --- a/packages/block-editor/src/hooks/utils.js +++ b/packages/block-editor/src/hooks/utils.js @@ -140,6 +140,7 @@ export function useStyleOverride( { css, assets, __unstableType, + variation, clientId, } = {} ) { const { setStyleOverride, deleteStyleOverride } = unlock( @@ -159,6 +160,7 @@ export function useStyleOverride( { css, assets, __unstableType, + variation, clientId, }; // Batch updates to style overrides to avoid triggering cascading renders diff --git a/packages/block-editor/src/private-apis.js b/packages/block-editor/src/private-apis.js index e6f3fc4cc39d6..bfa6ac0c90c84 100644 --- a/packages/block-editor/src/private-apis.js +++ b/packages/block-editor/src/private-apis.js @@ -20,7 +20,11 @@ import { cleanEmptyObject, useStyleOverride } from './hooks/utils'; import BlockQuickNavigation from './components/block-quick-navigation'; import { LayoutStyle } from './components/block-list/layout'; import { BlockRemovalWarningModal } from './components/block-removal-warning-modal'; -import { useLayoutClasses, useLayoutStyles } from './hooks'; +import { + useLayoutClasses, + useLayoutStyles, + __unstableBlockStyleVariationOverridesWithConfig, +} from './hooks'; import DimensionsTool from './components/dimensions-tool'; import ResolutionTool from './components/resolution-tool'; import TextAlignmentControl from './components/text-alignment-control'; @@ -88,4 +92,5 @@ lock( privateApis, { PrivatePublishDateTimePicker, useSpacingSizes, useBlockDisplayTitle, + __unstableBlockStyleVariationOverridesWithConfig, } ); diff --git a/packages/edit-site/src/components/revisions/index.js b/packages/edit-site/src/components/revisions/index.js index b726e79b15f2f..d43b5e8d2ac02 100644 --- a/packages/edit-site/src/components/revisions/index.js +++ b/packages/edit-site/src/components/revisions/index.js @@ -25,6 +25,7 @@ const { ExperimentalBlockEditorProvider, GlobalStylesContext, useGlobalStylesOutputWithConfig, + __unstableBlockStyleVariationOverridesWithConfig, } = unlock( blockEditorPrivateApis ); const { mergeBaseAndUserConfigs } = unlock( editorPrivateApis ); @@ -74,7 +75,6 @@ function Revisions( { userConfig, blocks } ) { name="revisions" tabIndex={ 0 } > -